Commit Graph

1436 Commits

Author SHA1 Message Date
Sczlog
2aa537e458 initialize fetch trait
1. first version of fetch trait.
2. example of lazy and non-lazy.
2021-07-28 17:33:16 +08:00
Sczlog
d0db026a6f fetch trait init 2021-07-27 21:27:51 +08:00
yz-yu
5129756f86
Merge pull request #20 from webzard-io/runtime
add chakra-ui root component
2021-07-27 11:36:37 +08:00
Yanzhen Yu
0776e944b4 add chakra-ui root component 2021-07-27 11:35:35 +08:00
yz-yu
c1d746b54b
Merge pull request #19 from webzard-io/runtime
impl hidden trait
2021-07-27 10:50:27 +08:00
Yanzhen Yu
0f7825613a close #18 impl hidden trait 2021-07-27 10:44:29 +08:00
Yanzhen Yu
617784bdf2 let trait return a HOC as the wrapper of the component 2021-07-27 10:43:46 +08:00
Yanzhen Yu
010a70f5f3 rename traits 2021-07-27 10:43:12 +08:00
yz-yu
1580d57b25
Merge pull request #17 from webzard-io/runtime
impl slot trait
2021-07-26 16:43:05 +08:00
Yanzhen Yu
5850de1b33 impl slot trait
To implement slot trait, we do the following changes
1. Nestable components should embed <Slot /> inside itself.
2. Attachable components should use the slot trait to indicate which container they will be attached to.

During app render, we will resolve the nested relation by traversing the components spec. This process will return top-level components and a resolved slots tree.

Top-level components will be rendered directly. The resolved slots tree will be passed into every <Slot />, so the embed <Slot /> can render which has been attached to itself.
2021-07-26 16:30:36 +08:00
Yanzhen Yu
df84613296 refactor expression eval 2021-07-26 16:30:16 +08:00
yz-yu
3ceb82150d
Merge pull request #16 from webzard-io/runtime
impl #5 add chakra UI tabs component
2021-07-26 15:08:46 +08:00
Yanzhen Yu
7db050d812 impl #5 add chakra UI tabs component 2021-07-26 14:57:53 +08:00
Yanzhen Yu
cad320dd1b use JSONSchema7 instead of JSONSchema4 2021-07-26 14:43:47 +08:00
yz-yu
713a1ef0a3
Merge pull request #14 from webzard-io/runtime
update yarn.lock
2021-07-26 13:45:48 +08:00
Yanzhen Yu
f2ec51c866 update yarn.lock 2021-07-26 13:45:06 +08:00
yz-yu
615ad0e1bd
Merge pull request #13 from webzard-io/runtime
close #6 Use typebox to build JSON schema
2021-07-26 13:41:54 +08:00
Yanzhen Yu
96e409f1dc close #6 Use typebox to build JSON schema 2021-07-26 13:40:07 +08:00
yz-yu
81c123cfe8
Merge pull request #4 from webzard-io/runtime
trait: trait framework, state trait, event trait
2021-07-18 23:09:02 +08:00
Yanzhen Yu
aaa8caa998 add chakra-ui button component 2021-07-18 23:07:44 +08:00
Yanzhen Yu
6cf4619168 trait: trait framework, state trait, event trait 2021-07-18 23:07:24 +08:00
yz-yu
d8517ed9ef
Merge pull request #3 from webzard-io/runtime
basic component method
2021-07-07 15:03:03 +08:00
Yanzhen Yu
a7cb7176e2 impl basic component method 2021-07-07 15:01:07 +08:00
Yanzhen Yu
450ea057aa do not subscribe to store when expression is static 2021-07-07 13:45:34 +08:00
yz-yu
1a78734a2b
Merge pull request #2 from webzard-io/runtime
Runtime: playground, component, state store
2021-07-05 18:34:59 +08:00
Yanzhen Yu
26a32c6269 impl basic state management with zustand 2021-07-05 18:33:36 +08:00
Yanzhen Yu
07f7a9a8fa impl plain button, text and app 2021-07-05 14:49:45 +08:00
Yanzhen Yu
2fc08d5687 init runtime with playground 2021-07-02 18:23:20 +08:00
yz-yu
21a29661b4
Merge pull request #1 from webzard-io/runtime
init core package
2021-07-02 17:59:32 +08:00
Yanzhen Yu
a200468dbb update lock file 2021-07-02 16:55:40 +08:00
Yanzhen Yu
0a4199bde8 impl spec types and basic runtime 2021-07-02 16:55:22 +08:00
Yanzhen Yu
cd8014c4eb init core package 2021-07-02 16:06:02 +08:00
Yanzhen Yu
322e72b1ef add lerna monorepo 2021-06-30 22:25:51 +08:00
Yanzhen Yu
6e0536335e fix image link 2021-06-16 13:32:24 +08:00
Yanzhen Yu
a3b6f6a7d9 init spec v0.1.0 2021-06-16 13:30:04 +08:00
yz-yu
b06803316f
Initial commit 2021-06-15 16:10:25 +08:00