890 Commits

Author SHA1 Message Date
Yanzhen Yu
abbddda5e4 introduce widgets and impl module widget 2021-12-14 15:54:00 +08:00
Bowen Tan
dae1197ce2 Merge branch 'main' into feat/drag-to-reorder
* main:
  improve json schema fields UX
  impl style trait form

# Conflicts:
#	packages/editor/src/components/ComponentForm/ComponentForm.tsx
2021-12-14 10:49:42 +08:00
tanbowensg
d6360422fc
Merge pull request #164 from webzard-io/editor-ex
improve component form
2021-12-14 10:41:14 +08:00
Bowen Tan
65dec7e5e3 Merge branch 'main' into feat/drag-to-reorder
* main:
  remove CutOperation
  complete copy cut paste
  add cut paste
  can paste
  customize editor theme to a more compact style
  change path to relative
  Revert "add vite-tsconfig-path plugin"
  Revert "replace runtime relative path to absolute"
  Revert "replace editor relative path to absolute"
  improve editor style
  export Editor as component

# Conflicts:
#	packages/editor/src/components/ComponentForm/ComponentForm.tsx
#	packages/editor/src/components/Editor.tsx
#	packages/editor/src/components/KeyboardEventWrapper.tsx
#	packages/editor/src/components/StructureTree/StructureTree.tsx
#	packages/editor/src/operations/index.ts
#	packages/editor/src/operations/leaf/component/pasteComponentLeafOperation.ts
2021-12-14 10:36:36 +08:00
Bowen Tan
d4a348619a remove CutOperation 2021-12-13 18:26:15 +08:00
Bowen Tan
cb5c6173c6 complete copy cut paste 2021-12-13 18:26:14 +08:00
Bowen Tan
e24d97b0aa add cut paste 2021-12-13 18:25:21 +08:00
Bowen Tan
42e955b40d can paste 2021-12-13 18:25:21 +08:00
Yanzhen Yu
e6c8cf1026 improve json schema fields UX 2021-12-12 20:25:48 +08:00
Yanzhen Yu
d508119e7f impl style trait form 2021-12-10 15:55:59 +08:00
Yanzhen Yu
6a63d08753 customize editor theme to a more compact style 2021-12-09 11:02:01 +08:00
Bowen Tan
8722f4af54 Revert "replace editor relative path to absolute"
This reverts commit 8aff310bf5d5f400134bebe2e19a27f3ff6f7bd0.
2021-12-09 10:09:34 +08:00
Yanzhen Yu
4ceb2999af improve editor style 2021-12-08 23:02:36 +08:00
Yanzhen Yu
4724711b7c export Editor as component 2021-12-08 23:02:14 +08:00
Bowen Tan
6a697c0d33 fix keyboard event cannot trigger in tab bug 2021-12-08 09:58:27 +08:00
Bowen Tan
b6ca418880 add componentWrapper id label 2021-12-08 09:58:27 +08:00
Bowen Tan
987b749b97 add empty slot placeholder 2021-12-08 09:58:27 +08:00
Bowen Tan
afd60ffba2 fix move to root bug 2021-12-08 09:58:27 +08:00
Bowen Tan
12a43325fd add error boundary in editor 2021-12-08 09:58:27 +08:00
Bowen Tan
d315927842 divide components and datasources 2021-12-08 09:58:26 +08:00
Bowen Tan
8399579b1d add moveComponent Operation 2021-12-08 09:58:26 +08:00
Bowen Tan
d0df4c9259 add drag componentItem event 2021-12-08 09:58:26 +08:00
Bowen Tan
368a613223 fix mobx 'Dynamic observable objects cannot be frozen' bug 2021-12-08 09:58:26 +08:00
Bowen Tan
cbe43a0bef support creating component by dragging component to canvas 2021-12-08 09:58:26 +08:00
Bowen Tan
db9f77a576 complete copy cut paste 2021-12-08 09:58:13 +08:00
Bowen Tan
5cc864db4d add cut paste 2021-12-08 09:58:12 +08:00
Bowen Tan
bbe97dc486 can paste 2021-12-08 09:58:12 +08:00
yz-yu
ee058a7b0b
Merge pull request #151 from webzard-io/fix/module-bug
fix module bugs
2021-12-07 18:46:28 +08:00
Bowen Tan
f725f61dfe Publish
- @sunmao-ui/editor@0.3.5
 - @sunmao-ui/runtime@0.3.5
2021-12-07 18:07:50 +08:00
Bowen Tan
80aacaacfe Publish
- @sunmao-ui/core@0.3.1
 - @sunmao-ui/editor@0.3.4
 - @sunmao-ui/runtime@0.3.4
2021-12-07 17:28:21 +08:00
Bowen Tan
c3f8a41827 fix explorerTree init selectedItemId bug 2021-12-03 15:51:49 +08:00
Bowen Tan
b2c08f1222 fix modify module stateMap having $moduleId bug 2021-12-03 15:51:49 +08:00
Bowen Tan
3a12ac2413 fix cannot redo bug 2021-12-03 15:51:49 +08:00
Bowen Tan
92572025cc clear stateStore after change app or module 2021-12-03 15:51:49 +08:00
Bowen Tan
8aff310bf5 replace editor relative path to absolute 2021-12-03 10:21:18 +08:00
yz-yu
ec39d53fb7
Merge pull request #148 from webzard-io/feat/edit-metadata
Support edit app's and module's metadata in editor
2021-12-02 19:50:32 +08:00
Yanzhen Yu
596229ae18 allow customize editor container 2021-12-02 18:46:17 +08:00
Bowen Tan
d5e0f02d8d fix explorer style 2021-12-01 17:34:34 +08:00
Bowen Tan
5bfea34423 add module metaData form 2021-12-01 17:16:04 +08:00
Bowen Tan
daf67f128b add app metaData Form 2021-12-01 16:15:11 +08:00
Bowen Tan
78946ff767 add ExplorerForm 2021-12-01 16:15:10 +08:00
Sczlog
1dfc80a627 fix rebase error, remove apiservice from editor's prop 2021-12-01 15:21:30 +08:00
Sczlog
5db2f6ad57 replace snapshot test by logic test and fix bug 2021-12-01 15:08:14 +08:00
Sczlog
898521e182 fix import path 2021-12-01 15:08:10 +08:00
Sczlog
61c96bc77a use function to generate component to avoid misunderstand 2021-12-01 15:07:15 +08:00
Sczlog
6fba9b81a0 Update createComponentLeafOperation.ts
fix create component leaf operation
2021-12-01 15:03:12 +08:00
Bowen Tan
c1d8211435 use mobx in ComponentWrapper 2021-12-01 13:51:13 +08:00
Bowen Tan
69504f008b appStorage mobx 2021-12-01 10:57:35 +08:00
Bowen Tan
dcd448965c refactor AppStorage 2021-11-30 15:44:04 +08:00
Bowen Tan
a1e998702f move appStorage in editorStore 2021-11-30 14:40:40 +08:00