-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tested routing patterns, improved example, fixed bug when using inlin…
…e lambda in expression attribute
- Loading branch information
Showing
32 changed files
with
13,081 additions
and
6,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from taktk.component import Component | ||
import taktk | ||
|
||
|
||
class User(Component): | ||
r""" | ||
\frame weight:x='0: 10, 1: 2, 2: 10' padding=50 | ||
\label text={user.name} pos:grid=0,0 pos:sticky='w' font='arial 20' | ||
""" | ||
|
||
def __init__(self, user): | ||
self.user = user | ||
super().__init__() | ||
|
||
|
||
def handle(store, user): | ||
return User(user=user) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from taktk.component import Component | ||
from ..admin import User | ||
import taktk | ||
|
||
|
||
class Users(Component): | ||
r""" | ||
\frame weight:x='0: 10, 1: 2, 2: 10' padding=50 | ||
!enum users:(y, sub_users) | ||
!enum sub_users:(x, user) | ||
!if user is not None | ||
\frame pos:grid={(x * 2, y)} pos:sticky='nswe' padding=20 weight:x='1: 10' borderwidth=1 relief='solid' | ||
\label text={user.name} pos:grid=0,0 pos:sticky='w' font='arial 20' | ||
\button bootstyle='info' text=[pages.users.view] pos:grid=2,0 command={lambda u=user.uuid, v=visit: v(u)} | ||
""" | ||
def init(self): | ||
users = User.all() | ||
self['users'] = [(users[x], users[x + 1] if x + 1 < len(users) else None) for x in range(0, len(users), 2)] | ||
|
||
def visit(self, uuid): | ||
taktk.application(str(uuid)) | ||
|
||
|
||
def handle(store): | ||
return Users() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,66 @@ | ||
{ | ||
"language": "French", | ||
"__pageStore_todoapp.pages.todos__": { | ||
"entry:ama": "I love enterring my todos here!", | ||
"entry:ken-morel": "Noo!" | ||
"theme": "journal", | ||
"__pageStore_todoapp.admin__": { | ||
"users": [ | ||
{ | ||
"uuid": "d23acc8d-6577-11ef-82f6-28b2bda8b9ca", | ||
"name": "ama", | ||
"password": "02a6efa44deef545bc56c1aae1e1d9feb53d505bb269a2abd6efe8d8f4e237f2" | ||
}, | ||
{ | ||
"uuid": "3a779793-6592-11ef-8e09-28d244ed9304", | ||
"name": "ken-morel", | ||
"password": "02a6efa44deef545bc56c1aae1e1d9feb53d505bb269a2abd6efe8d8f4e237f2" | ||
} | ||
], | ||
"todos": [ | ||
{ | ||
"uuid": "d73a63ff-6577-11ef-b372-28b2bda8b9ca", | ||
"author_id": "d23acc8c-6577-11ef-9b00-28b2bda8b9ca", | ||
"desc": "colorama", | ||
"done": false | ||
}, | ||
{ | ||
"uuid": "db640900-6577-11ef-976c-28b2bda8b9ca", | ||
"author_id": "d23acc8c-6577-11ef-9b00-28b2bda8b9ca", | ||
"desc": "I love colorama", | ||
"done": false | ||
}, | ||
{ | ||
"uuid": "dec7d133-6577-11ef-9190-28b2bda8b9ca", | ||
"author_id": "d23acc8c-6577-11ef-9b00-28b2bda8b9ca", | ||
"desc": "WHat is?", | ||
"done": false | ||
}, | ||
{ | ||
"uuid": "e986fad6-6577-11ef-8973-28b2bda8b9ca", | ||
"author_id": "d23acc8c-6577-11ef-9b00-28b2bda8b9ca", | ||
"desc": "I love it!", | ||
"done": false | ||
}, | ||
{ | ||
"uuid": "ed72a4ba-6577-11ef-ad77-28b2bda8b9ca", | ||
"author_id": "d23acc8c-6577-11ef-9b00-28b2bda8b9ca", | ||
"desc": "I love eating", | ||
"done": false | ||
}, | ||
{ | ||
"uuid": "f12c3ef2-6577-11ef-99d3-28b2bda8b9ca", | ||
"author_id": "d23acc8c-6577-11ef-9b00-28b2bda8b9ca", | ||
"desc": "You do so too!", | ||
"done": false | ||
}, | ||
{ | ||
"uuid": "f13382e0-6593-11ef-a86c-28d244ed9304", | ||
"author_id": "d23acc8d-6577-11ef-82f6-28b2bda8b9ca", | ||
"desc": "kenpd", | ||
"done": true | ||
} | ||
] | ||
}, | ||
"theme": "sandstone" | ||
} | ||
"__pageStore_todoapp.pages.todos__": { | ||
"entry:ama": "", | ||
"entry:ken-morel": "Notez ici" | ||
} | ||
} |
Oops, something went wrong.