@almadar/std 6.5.2 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
- package/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
- package/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
- package/behaviors/registry/atoms/std-agent-completion.orb +404 -141
- package/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
- package/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
- package/behaviors/registry/atoms/std-agent-memory.orb +584 -150
- package/behaviors/registry/atoms/std-agent-provider.orb +431 -174
- package/behaviors/registry/atoms/std-agent-search.orb +217 -61
- package/behaviors/registry/atoms/std-agent-session.orb +406 -159
- package/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
- package/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
- package/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
- package/behaviors/registry/atoms/std-async.orb +147 -86
- package/behaviors/registry/atoms/std-autoregressive.orb +64 -73
- package/behaviors/registry/atoms/std-browse.orb +260 -126
- package/behaviors/registry/atoms/std-cache-aside.orb +358 -259
- package/behaviors/registry/atoms/std-calendar.orb +280 -215
- package/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
- package/behaviors/registry/atoms/std-collision.orb +136 -135
- package/behaviors/registry/atoms/std-combat-log.orb +108 -90
- package/behaviors/registry/atoms/std-combat.orb +171 -98
- package/behaviors/registry/atoms/std-confirmation.orb +28 -300
- package/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
- package/behaviors/registry/atoms/std-display.orb +491 -587
- package/behaviors/registry/atoms/std-drawer.orb +194 -121
- package/behaviors/registry/atoms/std-filter.orb +311 -326
- package/behaviors/registry/atoms/std-flip-card.orb +223 -177
- package/behaviors/registry/atoms/std-gallery.orb +130 -151
- package/behaviors/registry/atoms/std-game-audio.orb +133 -72
- package/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
- package/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
- package/behaviors/registry/atoms/std-game-hud.orb +87 -20
- package/behaviors/registry/atoms/std-game-menu.orb +32 -32
- package/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
- package/behaviors/registry/atoms/std-gameflow.orb +147 -80
- package/behaviors/registry/atoms/std-input.orb +128 -393
- package/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
- package/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
- package/behaviors/registry/atoms/std-loading.orb +127 -126
- package/behaviors/registry/atoms/std-modal.orb +30 -267
- package/behaviors/registry/atoms/std-movement.orb +391 -292
- package/behaviors/registry/atoms/std-notification.orb +133 -75
- package/behaviors/registry/atoms/std-overworld.orb +194 -121
- package/behaviors/registry/atoms/std-pagination.orb +120 -53
- package/behaviors/registry/atoms/std-physics2d.orb +94 -93
- package/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
- package/behaviors/registry/atoms/std-push.orb +172 -36
- package/behaviors/registry/atoms/std-quest.orb +552 -449
- package/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
- package/behaviors/registry/atoms/std-rating.orb +123 -65
- package/behaviors/registry/atoms/std-related.orb +202 -26
- package/behaviors/registry/atoms/std-score-board.orb +109 -28
- package/behaviors/registry/atoms/std-score.orb +210 -146
- package/behaviors/registry/atoms/std-search.orb +265 -138
- package/behaviors/registry/atoms/std-selection.orb +311 -220
- package/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
- package/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
- package/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
- package/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
- package/behaviors/registry/atoms/std-service-email.orb +195 -107
- package/behaviors/registry/atoms/std-service-github.orb +216 -122
- package/behaviors/registry/atoms/std-service-llm.orb +204 -122
- package/behaviors/registry/atoms/std-service-oauth.orb +290 -204
- package/behaviors/registry/atoms/std-service-redis.orb +177 -92
- package/behaviors/registry/atoms/std-service-storage.orb +211 -122
- package/behaviors/registry/atoms/std-service-stripe.orb +236 -154
- package/behaviors/registry/atoms/std-service-twilio.orb +221 -137
- package/behaviors/registry/atoms/std-service-youtube.orb +327 -241
- package/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
- package/behaviors/registry/atoms/std-sort.orb +284 -207
- package/behaviors/registry/atoms/std-sprite.orb +150 -74
- package/behaviors/registry/atoms/std-tabs.orb +129 -62
- package/behaviors/registry/atoms/std-text-effects.orb +251 -190
- package/behaviors/registry/atoms/std-theme.orb +193 -135
- package/behaviors/registry/atoms/std-timer.orb +320 -344
- package/behaviors/registry/atoms/std-undo.orb +278 -199
- package/behaviors/registry/atoms/std-upload.orb +112 -111
- package/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
- package/behaviors/registry/atoms/std-wizard.orb +445 -336
- package/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
- package/behaviors/registry/molecules/std-agent-learner.orb +635 -654
- package/behaviors/registry/molecules/std-agent-planner.orb +581 -548
- package/behaviors/registry/molecules/std-agent-rag.orb +414 -410
- package/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
- package/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
- package/behaviors/registry/molecules/std-builder-game.orb +86 -28
- package/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
- package/behaviors/registry/molecules/std-cart.orb +347 -406
- package/behaviors/registry/molecules/std-classifier-game.orb +95 -37
- package/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
- package/behaviors/registry/molecules/std-debugger-game.orb +95 -37
- package/behaviors/registry/molecules/std-detail.orb +133 -138
- package/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
- package/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
- package/behaviors/registry/molecules/std-filtered-list.orb +14 -8
- package/behaviors/registry/molecules/std-form-advanced.orb +242 -153
- package/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
- package/behaviors/registry/molecules/std-geospatial.orb +175 -122
- package/behaviors/registry/molecules/std-inventory.orb +216 -170
- package/behaviors/registry/molecules/std-list.orb +280 -205
- package/behaviors/registry/molecules/std-messaging.orb +146 -99
- package/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
- package/behaviors/registry/molecules/std-platformer-game.orb +300 -171
- package/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
- package/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
- package/behaviors/registry/molecules/std-quiz.orb +322 -263
- package/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
- package/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
- package/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
- package/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
- package/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
- package/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
- package/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
- package/behaviors/registry/molecules/std-simulator-game.orb +96 -38
- package/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
- package/behaviors/registry/molecules/std-wizard-form.orb +60 -9
- package/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
- package/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
- package/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
- package/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
- package/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
- package/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
- package/behaviors/registry/organisms/std-arcade-game.orb +488 -231
- package/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
- package/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
- package/behaviors/registry/organisms/std-cms.orb +1549 -566
- package/behaviors/registry/organisms/std-coding-academy.orb +744 -495
- package/behaviors/registry/organisms/std-crm.orb +1997 -1014
- package/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
- package/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
- package/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
- package/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
- package/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
- package/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
- package/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
- package/behaviors/registry/organisms/std-lms.orb +1629 -1046
- package/behaviors/registry/organisms/std-logic-training.orb +321 -134
- package/behaviors/registry/organisms/std-platformer-app.orb +855 -417
- package/behaviors/registry/organisms/std-project-manager.orb +1795 -877
- package/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
- package/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
- package/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
- package/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
- package/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
- package/behaviors/registry/organisms/std-social-feed.orb +612 -252
- package/behaviors/registry/organisms/std-stem-lab.orb +642 -450
- package/behaviors/registry/organisms/std-strategy-game.orb +893 -650
- package/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
- package/dist/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
- package/dist/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
- package/dist/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
- package/dist/behaviors/registry/atoms/std-agent-completion.orb +404 -141
- package/dist/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
- package/dist/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
- package/dist/behaviors/registry/atoms/std-agent-memory.orb +584 -150
- package/dist/behaviors/registry/atoms/std-agent-provider.orb +431 -174
- package/dist/behaviors/registry/atoms/std-agent-search.orb +217 -61
- package/dist/behaviors/registry/atoms/std-agent-session.orb +406 -159
- package/dist/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
- package/dist/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
- package/dist/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
- package/dist/behaviors/registry/atoms/std-async.orb +147 -86
- package/dist/behaviors/registry/atoms/std-autoregressive.orb +64 -73
- package/dist/behaviors/registry/atoms/std-browse.orb +260 -126
- package/dist/behaviors/registry/atoms/std-cache-aside.orb +358 -259
- package/dist/behaviors/registry/atoms/std-calendar.orb +280 -215
- package/dist/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
- package/dist/behaviors/registry/atoms/std-collision.orb +136 -135
- package/dist/behaviors/registry/atoms/std-combat-log.orb +108 -90
- package/dist/behaviors/registry/atoms/std-combat.orb +171 -98
- package/dist/behaviors/registry/atoms/std-confirmation.orb +28 -300
- package/dist/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
- package/dist/behaviors/registry/atoms/std-display.orb +491 -587
- package/dist/behaviors/registry/atoms/std-drawer.orb +194 -121
- package/dist/behaviors/registry/atoms/std-filter.orb +311 -326
- package/dist/behaviors/registry/atoms/std-flip-card.orb +223 -177
- package/dist/behaviors/registry/atoms/std-gallery.orb +130 -151
- package/dist/behaviors/registry/atoms/std-game-audio.orb +133 -72
- package/dist/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
- package/dist/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
- package/dist/behaviors/registry/atoms/std-game-hud.orb +87 -20
- package/dist/behaviors/registry/atoms/std-game-menu.orb +32 -32
- package/dist/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
- package/dist/behaviors/registry/atoms/std-gameflow.orb +147 -80
- package/dist/behaviors/registry/atoms/std-input.orb +128 -393
- package/dist/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
- package/dist/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
- package/dist/behaviors/registry/atoms/std-loading.orb +127 -126
- package/dist/behaviors/registry/atoms/std-modal.orb +30 -267
- package/dist/behaviors/registry/atoms/std-movement.orb +391 -292
- package/dist/behaviors/registry/atoms/std-notification.orb +133 -75
- package/dist/behaviors/registry/atoms/std-overworld.orb +194 -121
- package/dist/behaviors/registry/atoms/std-pagination.orb +120 -53
- package/dist/behaviors/registry/atoms/std-physics2d.orb +94 -93
- package/dist/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
- package/dist/behaviors/registry/atoms/std-push.orb +172 -36
- package/dist/behaviors/registry/atoms/std-quest.orb +552 -449
- package/dist/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
- package/dist/behaviors/registry/atoms/std-rating.orb +123 -65
- package/dist/behaviors/registry/atoms/std-related.orb +202 -26
- package/dist/behaviors/registry/atoms/std-score-board.orb +109 -28
- package/dist/behaviors/registry/atoms/std-score.orb +210 -146
- package/dist/behaviors/registry/atoms/std-search.orb +265 -138
- package/dist/behaviors/registry/atoms/std-selection.orb +311 -220
- package/dist/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
- package/dist/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
- package/dist/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
- package/dist/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
- package/dist/behaviors/registry/atoms/std-service-email.orb +195 -107
- package/dist/behaviors/registry/atoms/std-service-github.orb +216 -122
- package/dist/behaviors/registry/atoms/std-service-llm.orb +204 -122
- package/dist/behaviors/registry/atoms/std-service-oauth.orb +290 -204
- package/dist/behaviors/registry/atoms/std-service-redis.orb +177 -92
- package/dist/behaviors/registry/atoms/std-service-storage.orb +211 -122
- package/dist/behaviors/registry/atoms/std-service-stripe.orb +236 -154
- package/dist/behaviors/registry/atoms/std-service-twilio.orb +221 -137
- package/dist/behaviors/registry/atoms/std-service-youtube.orb +327 -241
- package/dist/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
- package/dist/behaviors/registry/atoms/std-sort.orb +284 -207
- package/dist/behaviors/registry/atoms/std-sprite.orb +150 -74
- package/dist/behaviors/registry/atoms/std-tabs.orb +129 -62
- package/dist/behaviors/registry/atoms/std-text-effects.orb +251 -190
- package/dist/behaviors/registry/atoms/std-theme.orb +193 -135
- package/dist/behaviors/registry/atoms/std-timer.orb +320 -344
- package/dist/behaviors/registry/atoms/std-undo.orb +278 -199
- package/dist/behaviors/registry/atoms/std-upload.orb +112 -111
- package/dist/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
- package/dist/behaviors/registry/atoms/std-wizard.orb +445 -336
- package/dist/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
- package/dist/behaviors/registry/molecules/std-agent-learner.orb +635 -654
- package/dist/behaviors/registry/molecules/std-agent-planner.orb +581 -548
- package/dist/behaviors/registry/molecules/std-agent-rag.orb +414 -410
- package/dist/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
- package/dist/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
- package/dist/behaviors/registry/molecules/std-builder-game.orb +86 -28
- package/dist/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
- package/dist/behaviors/registry/molecules/std-cart.orb +347 -406
- package/dist/behaviors/registry/molecules/std-classifier-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
- package/dist/behaviors/registry/molecules/std-debugger-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-detail.orb +133 -138
- package/dist/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
- package/dist/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
- package/dist/behaviors/registry/molecules/std-filtered-list.orb +14 -8
- package/dist/behaviors/registry/molecules/std-form-advanced.orb +242 -153
- package/dist/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
- package/dist/behaviors/registry/molecules/std-geospatial.orb +175 -122
- package/dist/behaviors/registry/molecules/std-inventory.orb +216 -170
- package/dist/behaviors/registry/molecules/std-list.orb +280 -205
- package/dist/behaviors/registry/molecules/std-messaging.orb +146 -99
- package/dist/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-platformer-game.orb +300 -171
- package/dist/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
- package/dist/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
- package/dist/behaviors/registry/molecules/std-quiz.orb +322 -263
- package/dist/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
- package/dist/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
- package/dist/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
- package/dist/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
- package/dist/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
- package/dist/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
- package/dist/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
- package/dist/behaviors/registry/molecules/std-simulator-game.orb +96 -38
- package/dist/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
- package/dist/behaviors/registry/molecules/std-wizard-form.orb +60 -9
- package/dist/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
- package/dist/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
- package/dist/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
- package/dist/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
- package/dist/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
- package/dist/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
- package/dist/behaviors/registry/organisms/std-arcade-game.orb +488 -231
- package/dist/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
- package/dist/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
- package/dist/behaviors/registry/organisms/std-cms.orb +1549 -566
- package/dist/behaviors/registry/organisms/std-coding-academy.orb +744 -495
- package/dist/behaviors/registry/organisms/std-crm.orb +1997 -1014
- package/dist/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
- package/dist/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
- package/dist/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
- package/dist/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
- package/dist/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
- package/dist/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
- package/dist/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
- package/dist/behaviors/registry/organisms/std-lms.orb +1629 -1046
- package/dist/behaviors/registry/organisms/std-logic-training.orb +321 -134
- package/dist/behaviors/registry/organisms/std-platformer-app.orb +855 -417
- package/dist/behaviors/registry/organisms/std-project-manager.orb +1795 -877
- package/dist/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
- package/dist/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
- package/dist/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
- package/dist/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
- package/dist/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
- package/dist/behaviors/registry/organisms/std-social-feed.orb +612 -252
- package/dist/behaviors/registry/organisms/std-stem-lab.orb +642 -450
- package/dist/behaviors/registry/organisms/std-strategy-game.orb +893 -650
- package/dist/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/modules/core.js +16 -4
- package/dist/modules/core.js.map +1 -1
- package/dist/modules/index.js +16 -4
- package/dist/modules/index.js.map +1 -1
- package/dist/registry.js +16 -4
- package/dist/registry.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "std-cms",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "std-cms as a Function",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
7
7
|
"name": "ArticleOrbital",
|
|
8
8
|
"entity": {
|
|
9
9
|
"name": "Article",
|
|
10
|
-
"persistence": "persistent",
|
|
11
10
|
"collection": "articles",
|
|
11
|
+
"persistence": "persistent",
|
|
12
12
|
"fields": [
|
|
13
13
|
{
|
|
14
14
|
"name": "id",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"name": "publishedAt",
|
|
49
|
-
"type": "
|
|
49
|
+
"type": "datetime"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"name": "pendingId",
|
|
@@ -58,23 +58,107 @@
|
|
|
58
58
|
"traits": [
|
|
59
59
|
{
|
|
60
60
|
"name": "ArticleBrowse",
|
|
61
|
-
"linkedEntity": "Article",
|
|
62
61
|
"category": "interaction",
|
|
62
|
+
"linkedEntity": "Article",
|
|
63
|
+
"emits": [
|
|
64
|
+
{
|
|
65
|
+
"event": "PUBLISH",
|
|
66
|
+
"scope": "external",
|
|
67
|
+
"payload": [
|
|
68
|
+
{
|
|
69
|
+
"name": "id",
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"event": "CATEGORIZE",
|
|
76
|
+
"scope": "external",
|
|
77
|
+
"payload": [
|
|
78
|
+
{
|
|
79
|
+
"name": "id",
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"event": "ArticleLoaded",
|
|
86
|
+
"description": "Fired when Article finishes loading",
|
|
87
|
+
"scope": "internal",
|
|
88
|
+
"payload": [
|
|
89
|
+
{
|
|
90
|
+
"name": "id",
|
|
91
|
+
"type": "string",
|
|
92
|
+
"required": true
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "title",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"required": true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "slug",
|
|
101
|
+
"type": "string",
|
|
102
|
+
"required": true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "content",
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "author",
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "status",
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "publishedAt",
|
|
118
|
+
"type": "datetime"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "pendingId",
|
|
122
|
+
"type": "string"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"event": "ArticleLoadFailed",
|
|
128
|
+
"description": "Fired when Article fails to load",
|
|
129
|
+
"scope": "internal",
|
|
130
|
+
"payload": [
|
|
131
|
+
{
|
|
132
|
+
"name": "message",
|
|
133
|
+
"type": "string"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
],
|
|
63
138
|
"listens": [
|
|
64
139
|
{
|
|
65
140
|
"event": "ARTICLE_CREATED",
|
|
66
141
|
"triggers": "INIT",
|
|
67
|
-
"
|
|
142
|
+
"source": {
|
|
143
|
+
"kind": "trait",
|
|
144
|
+
"trait": "ArticleCreate"
|
|
145
|
+
}
|
|
68
146
|
},
|
|
69
147
|
{
|
|
70
148
|
"event": "ARTICLE_UPDATED",
|
|
71
149
|
"triggers": "INIT",
|
|
72
|
-
"
|
|
150
|
+
"source": {
|
|
151
|
+
"kind": "trait",
|
|
152
|
+
"trait": "ArticleEdit"
|
|
153
|
+
}
|
|
73
154
|
},
|
|
74
155
|
{
|
|
75
156
|
"event": "ARTICLE_DELETED",
|
|
76
157
|
"triggers": "INIT",
|
|
77
|
-
"
|
|
158
|
+
"source": {
|
|
159
|
+
"kind": "trait",
|
|
160
|
+
"trait": "ArticleDelete"
|
|
161
|
+
}
|
|
78
162
|
}
|
|
79
163
|
],
|
|
80
164
|
"stateMachine": {
|
|
@@ -90,12 +174,30 @@
|
|
|
90
174
|
"name": "Initialize"
|
|
91
175
|
},
|
|
92
176
|
{
|
|
93
|
-
"key": "
|
|
94
|
-
"name": "
|
|
177
|
+
"key": "PUBLISH",
|
|
178
|
+
"name": "Publish"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"key": "CATEGORIZE",
|
|
182
|
+
"name": "Categorize"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"key": "ArticleLoaded",
|
|
186
|
+
"name": "Article loaded"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"key": "ArticleLoadFailed",
|
|
190
|
+
"name": "Article load failed",
|
|
191
|
+
"payload": [
|
|
192
|
+
{
|
|
193
|
+
"name": "message",
|
|
194
|
+
"type": "string"
|
|
195
|
+
}
|
|
196
|
+
]
|
|
95
197
|
},
|
|
96
198
|
{
|
|
97
199
|
"key": "VIEW",
|
|
98
|
-
"name": "
|
|
200
|
+
"name": "View",
|
|
99
201
|
"payload": [
|
|
100
202
|
{
|
|
101
203
|
"name": "id",
|
|
@@ -110,7 +212,7 @@
|
|
|
110
212
|
},
|
|
111
213
|
{
|
|
112
214
|
"key": "EDIT",
|
|
113
|
-
"name": "
|
|
215
|
+
"name": "Edit",
|
|
114
216
|
"payload": [
|
|
115
217
|
{
|
|
116
218
|
"name": "id",
|
|
@@ -125,7 +227,7 @@
|
|
|
125
227
|
},
|
|
126
228
|
{
|
|
127
229
|
"key": "DELETE",
|
|
128
|
-
"name": "
|
|
230
|
+
"name": "Delete",
|
|
129
231
|
"payload": [
|
|
130
232
|
{
|
|
131
233
|
"name": "id",
|
|
@@ -154,42 +256,15 @@
|
|
|
154
256
|
"main",
|
|
155
257
|
{
|
|
156
258
|
"type": "dashboard-layout",
|
|
157
|
-
"appName": "CmsApp",
|
|
158
|
-
"navItems": [
|
|
159
|
-
{
|
|
160
|
-
"label": "Articles",
|
|
161
|
-
"href": "/articles",
|
|
162
|
-
"icon": "file-text"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"label": "Media",
|
|
166
|
-
"href": "/media",
|
|
167
|
-
"icon": "image"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"label": "Categories",
|
|
171
|
-
"href": "/categories",
|
|
172
|
-
"icon": "folder"
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
259
|
"children": [
|
|
176
260
|
{
|
|
177
|
-
"type": "stack",
|
|
178
|
-
"direction": "vertical",
|
|
179
|
-
"gap": "lg",
|
|
180
261
|
"className": "max-w-5xl mx-auto w-full",
|
|
181
262
|
"children": [
|
|
182
263
|
{
|
|
183
|
-
"type": "stack",
|
|
184
|
-
"direction": "horizontal",
|
|
185
|
-
"gap": "md",
|
|
186
|
-
"justify": "space-between",
|
|
187
264
|
"align": "center",
|
|
188
265
|
"children": [
|
|
189
266
|
{
|
|
190
|
-
"type": "stack",
|
|
191
267
|
"direction": "horizontal",
|
|
192
|
-
"gap": "sm",
|
|
193
268
|
"align": "center",
|
|
194
269
|
"children": [
|
|
195
270
|
{
|
|
@@ -198,61 +273,69 @@
|
|
|
198
273
|
"size": "lg"
|
|
199
274
|
},
|
|
200
275
|
{
|
|
201
|
-
"type": "typography",
|
|
202
276
|
"content": "Articles",
|
|
277
|
+
"type": "typography",
|
|
203
278
|
"variant": "h2"
|
|
204
279
|
}
|
|
205
|
-
]
|
|
280
|
+
],
|
|
281
|
+
"gap": "sm",
|
|
282
|
+
"type": "stack"
|
|
206
283
|
},
|
|
207
284
|
{
|
|
208
|
-
"type": "stack",
|
|
209
285
|
"direction": "horizontal",
|
|
210
286
|
"gap": "sm",
|
|
211
287
|
"children": [
|
|
212
288
|
{
|
|
213
|
-
"type": "button",
|
|
214
289
|
"label": "Create Article",
|
|
290
|
+
"icon": "plus",
|
|
291
|
+
"type": "button",
|
|
215
292
|
"event": "CREATE",
|
|
216
|
-
"variant": "primary"
|
|
217
|
-
"icon": "plus"
|
|
293
|
+
"variant": "primary"
|
|
218
294
|
}
|
|
219
|
-
]
|
|
295
|
+
],
|
|
296
|
+
"type": "stack"
|
|
220
297
|
}
|
|
221
|
-
]
|
|
298
|
+
],
|
|
299
|
+
"direction": "horizontal",
|
|
300
|
+
"gap": "md",
|
|
301
|
+
"type": "stack",
|
|
302
|
+
"justify": "space-between"
|
|
222
303
|
},
|
|
223
304
|
{
|
|
224
305
|
"type": "divider"
|
|
225
306
|
},
|
|
226
307
|
{
|
|
227
|
-
"
|
|
228
|
-
"entity": "Article",
|
|
308
|
+
"gap": "sm",
|
|
229
309
|
"emptyIcon": "inbox",
|
|
230
310
|
"emptyTitle": "No articles yet",
|
|
231
|
-
"emptyDescription": "Write your first article.",
|
|
232
311
|
"itemActions": [
|
|
233
312
|
{
|
|
313
|
+
"size": "sm",
|
|
234
314
|
"label": "View",
|
|
235
315
|
"event": "VIEW",
|
|
236
|
-
"variant": "ghost"
|
|
237
|
-
"size": "sm"
|
|
316
|
+
"variant": "ghost"
|
|
238
317
|
},
|
|
239
318
|
{
|
|
240
|
-
"label": "Edit",
|
|
241
319
|
"event": "EDIT",
|
|
320
|
+
"label": "Edit",
|
|
242
321
|
"variant": "ghost",
|
|
243
322
|
"size": "sm"
|
|
244
323
|
},
|
|
245
324
|
{
|
|
246
|
-
"label": "Delete",
|
|
247
|
-
"event": "DELETE",
|
|
248
325
|
"variant": "danger",
|
|
249
|
-
"
|
|
326
|
+
"label": "Delete",
|
|
327
|
+
"size": "sm",
|
|
328
|
+
"event": "DELETE"
|
|
250
329
|
}
|
|
251
330
|
],
|
|
331
|
+
"entity": "Article",
|
|
332
|
+
"type": "data-list",
|
|
333
|
+
"emptyDescription": "Write your first article.",
|
|
334
|
+
"variant": "card",
|
|
252
335
|
"columns": [
|
|
253
336
|
{
|
|
254
|
-
"name": "title",
|
|
255
337
|
"variant": "h3",
|
|
338
|
+
"name": "title",
|
|
256
339
|
"icon": "file-text"
|
|
257
340
|
},
|
|
258
341
|
{
|
|
@@ -260,24 +343,43 @@
|
|
|
260
343
|
"variant": "badge"
|
|
261
344
|
},
|
|
262
345
|
{
|
|
263
|
-
"
|
|
264
|
-
"
|
|
346
|
+
"variant": "body",
|
|
347
|
+
"name": "author"
|
|
265
348
|
},
|
|
266
349
|
{
|
|
267
|
-
"
|
|
268
|
-
"
|
|
350
|
+
"variant": "caption",
|
|
351
|
+
"name": "slug"
|
|
269
352
|
},
|
|
270
353
|
{
|
|
271
|
-
"name": "publishedAt",
|
|
272
354
|
"label": "Published",
|
|
355
|
+
"format": "date",
|
|
273
356
|
"variant": "caption",
|
|
274
|
-
"
|
|
357
|
+
"name": "publishedAt"
|
|
275
358
|
}
|
|
276
|
-
]
|
|
277
|
-
"variant": "card",
|
|
278
|
-
"gap": "sm"
|
|
359
|
+
]
|
|
279
360
|
}
|
|
280
|
-
]
|
|
361
|
+
],
|
|
362
|
+
"direction": "vertical",
|
|
363
|
+
"gap": "lg",
|
|
364
|
+
"type": "stack"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"appName": "CmsApp",
|
|
368
|
+
"navItems": [
|
|
369
|
+
{
|
|
370
|
+
"href": "/articles",
|
|
371
|
+
"icon": "file-text",
|
|
372
|
+
"label": "Articles"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"href": "/media",
|
|
376
|
+
"icon": "image",
|
|
377
|
+
"label": "Media"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"icon": "folder",
|
|
381
|
+
"label": "Categories",
|
|
382
|
+
"href": "/categories"
|
|
281
383
|
}
|
|
282
384
|
]
|
|
283
385
|
}
|
|
@@ -286,43 +388,75 @@
|
|
|
286
388
|
}
|
|
287
389
|
]
|
|
288
390
|
},
|
|
391
|
+
"scope": "collection"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "ArticleCreate",
|
|
395
|
+
"category": "interaction",
|
|
396
|
+
"linkedEntity": "Article",
|
|
289
397
|
"emits": [
|
|
290
398
|
{
|
|
291
|
-
"event": "
|
|
399
|
+
"event": "ARTICLE_CREATED",
|
|
400
|
+
"scope": "external",
|
|
292
401
|
"payload": [
|
|
293
402
|
{
|
|
294
403
|
"name": "id",
|
|
295
|
-
"type": "string"
|
|
296
|
-
"required": true
|
|
404
|
+
"type": "string"
|
|
297
405
|
}
|
|
298
|
-
]
|
|
299
|
-
"scope": "external"
|
|
406
|
+
]
|
|
300
407
|
},
|
|
301
408
|
{
|
|
302
|
-
"event": "
|
|
409
|
+
"event": "ArticleLoaded",
|
|
410
|
+
"description": "Fired when Article finishes loading",
|
|
411
|
+
"scope": "internal",
|
|
303
412
|
"payload": [
|
|
304
413
|
{
|
|
305
414
|
"name": "id",
|
|
306
415
|
"type": "string",
|
|
307
416
|
"required": true
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "title",
|
|
420
|
+
"type": "string",
|
|
421
|
+
"required": true
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "slug",
|
|
425
|
+
"type": "string",
|
|
426
|
+
"required": true
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "content",
|
|
430
|
+
"type": "string"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "author",
|
|
434
|
+
"type": "string"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "status",
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"name": "publishedAt",
|
|
442
|
+
"type": "datetime"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"name": "pendingId",
|
|
446
|
+
"type": "string"
|
|
308
447
|
}
|
|
309
|
-
]
|
|
310
|
-
"scope": "external"
|
|
311
|
-
}
|
|
312
|
-
]
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "ArticleCreate",
|
|
316
|
-
"linkedEntity": "Article",
|
|
317
|
-
"category": "interaction",
|
|
318
|
-
"emits": [
|
|
319
|
-
{
|
|
320
|
-
"event": "SAVE",
|
|
321
|
-
"scope": "internal"
|
|
448
|
+
]
|
|
322
449
|
},
|
|
323
450
|
{
|
|
324
|
-
"event": "
|
|
325
|
-
"
|
|
451
|
+
"event": "ArticleLoadFailed",
|
|
452
|
+
"description": "Fired when Article fails to load",
|
|
453
|
+
"scope": "internal",
|
|
454
|
+
"payload": [
|
|
455
|
+
{
|
|
456
|
+
"name": "message",
|
|
457
|
+
"type": "string"
|
|
458
|
+
}
|
|
459
|
+
]
|
|
326
460
|
}
|
|
327
461
|
],
|
|
328
462
|
"stateMachine": {
|
|
@@ -342,7 +476,7 @@
|
|
|
342
476
|
},
|
|
343
477
|
{
|
|
344
478
|
"key": "CREATE",
|
|
345
|
-
"name": "
|
|
479
|
+
"name": "Create"
|
|
346
480
|
},
|
|
347
481
|
{
|
|
348
482
|
"key": "CLOSE",
|
|
@@ -358,6 +492,24 @@
|
|
|
358
492
|
"required": true
|
|
359
493
|
}
|
|
360
494
|
]
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"key": "ARTICLE_CREATED",
|
|
498
|
+
"name": "Article Created"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"key": "ArticleLoaded",
|
|
502
|
+
"name": "Article loaded"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"key": "ArticleLoadFailed",
|
|
506
|
+
"name": "Article load failed",
|
|
507
|
+
"payload": [
|
|
508
|
+
{
|
|
509
|
+
"name": "message",
|
|
510
|
+
"type": "string"
|
|
511
|
+
}
|
|
512
|
+
]
|
|
361
513
|
}
|
|
362
514
|
],
|
|
363
515
|
"transitions": [
|
|
@@ -379,15 +531,19 @@
|
|
|
379
531
|
"effects": [
|
|
380
532
|
[
|
|
381
533
|
"fetch",
|
|
382
|
-
"Article"
|
|
534
|
+
"Article",
|
|
535
|
+
{
|
|
536
|
+
"emit": {
|
|
537
|
+
"failure": "ArticleLoadFailed",
|
|
538
|
+
"success": "ArticleLoaded"
|
|
539
|
+
}
|
|
540
|
+
}
|
|
383
541
|
],
|
|
384
542
|
[
|
|
385
543
|
"render-ui",
|
|
386
544
|
"modal",
|
|
387
545
|
{
|
|
388
546
|
"type": "stack",
|
|
389
|
-
"direction": "vertical",
|
|
390
|
-
"gap": "md",
|
|
391
547
|
"children": [
|
|
392
548
|
{
|
|
393
549
|
"type": "stack",
|
|
@@ -395,13 +551,13 @@
|
|
|
395
551
|
"gap": "sm",
|
|
396
552
|
"children": [
|
|
397
553
|
{
|
|
398
|
-
"
|
|
554
|
+
"size": "md",
|
|
399
555
|
"name": "plus-circle",
|
|
400
|
-
"
|
|
556
|
+
"type": "icon"
|
|
401
557
|
},
|
|
402
558
|
{
|
|
403
|
-
"type": "typography",
|
|
404
559
|
"content": "Create Article",
|
|
560
|
+
"type": "typography",
|
|
405
561
|
"variant": "h3"
|
|
406
562
|
}
|
|
407
563
|
]
|
|
@@ -411,10 +567,10 @@
|
|
|
411
567
|
},
|
|
412
568
|
{
|
|
413
569
|
"type": "form-section",
|
|
414
|
-
"entity": "Article",
|
|
415
570
|
"mode": "create",
|
|
416
|
-
"
|
|
571
|
+
"entity": "Article",
|
|
417
572
|
"cancelEvent": "CLOSE",
|
|
573
|
+
"submitEvent": "SAVE",
|
|
418
574
|
"fields": [
|
|
419
575
|
"title",
|
|
420
576
|
"slug",
|
|
@@ -424,7 +580,9 @@
|
|
|
424
580
|
"publishedAt"
|
|
425
581
|
]
|
|
426
582
|
}
|
|
427
|
-
]
|
|
583
|
+
],
|
|
584
|
+
"direction": "vertical",
|
|
585
|
+
"gap": "md"
|
|
428
586
|
}
|
|
429
587
|
]
|
|
430
588
|
]
|
|
@@ -439,6 +597,13 @@
|
|
|
439
597
|
"modal",
|
|
440
598
|
null
|
|
441
599
|
],
|
|
600
|
+
[
|
|
601
|
+
"render-ui",
|
|
602
|
+
"main",
|
|
603
|
+
{
|
|
604
|
+
"type": "box"
|
|
605
|
+
}
|
|
606
|
+
],
|
|
442
607
|
[
|
|
443
608
|
"notify",
|
|
444
609
|
"Cancelled",
|
|
@@ -462,6 +627,13 @@
|
|
|
462
627
|
"modal",
|
|
463
628
|
null
|
|
464
629
|
],
|
|
630
|
+
[
|
|
631
|
+
"render-ui",
|
|
632
|
+
"main",
|
|
633
|
+
{
|
|
634
|
+
"type": "box"
|
|
635
|
+
}
|
|
636
|
+
],
|
|
465
637
|
[
|
|
466
638
|
"emit",
|
|
467
639
|
"ARTICLE_CREATED"
|
|
@@ -469,20 +641,76 @@
|
|
|
469
641
|
]
|
|
470
642
|
}
|
|
471
643
|
]
|
|
472
|
-
}
|
|
644
|
+
},
|
|
645
|
+
"scope": "collection"
|
|
473
646
|
},
|
|
474
647
|
{
|
|
475
648
|
"name": "ArticleEdit",
|
|
476
|
-
"linkedEntity": "Article",
|
|
477
649
|
"category": "interaction",
|
|
650
|
+
"linkedEntity": "Article",
|
|
478
651
|
"emits": [
|
|
479
652
|
{
|
|
480
|
-
"event": "
|
|
481
|
-
"scope": "
|
|
653
|
+
"event": "ARTICLE_UPDATED",
|
|
654
|
+
"scope": "external",
|
|
655
|
+
"payload": [
|
|
656
|
+
{
|
|
657
|
+
"name": "id",
|
|
658
|
+
"type": "string"
|
|
659
|
+
}
|
|
660
|
+
]
|
|
482
661
|
},
|
|
483
662
|
{
|
|
484
|
-
"event": "
|
|
485
|
-
"
|
|
663
|
+
"event": "ArticleLoaded",
|
|
664
|
+
"description": "Fired when Article finishes loading",
|
|
665
|
+
"scope": "internal",
|
|
666
|
+
"payload": [
|
|
667
|
+
{
|
|
668
|
+
"name": "id",
|
|
669
|
+
"type": "string",
|
|
670
|
+
"required": true
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"name": "title",
|
|
674
|
+
"type": "string",
|
|
675
|
+
"required": true
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "slug",
|
|
679
|
+
"type": "string",
|
|
680
|
+
"required": true
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "content",
|
|
684
|
+
"type": "string"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"name": "author",
|
|
688
|
+
"type": "string"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "status",
|
|
692
|
+
"type": "string"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"name": "publishedAt",
|
|
696
|
+
"type": "datetime"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"name": "pendingId",
|
|
700
|
+
"type": "string"
|
|
701
|
+
}
|
|
702
|
+
]
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"event": "ArticleLoadFailed",
|
|
706
|
+
"description": "Fired when Article fails to load",
|
|
707
|
+
"scope": "internal",
|
|
708
|
+
"payload": [
|
|
709
|
+
{
|
|
710
|
+
"name": "message",
|
|
711
|
+
"type": "string"
|
|
712
|
+
}
|
|
713
|
+
]
|
|
486
714
|
}
|
|
487
715
|
],
|
|
488
716
|
"stateMachine": {
|
|
@@ -502,7 +730,7 @@
|
|
|
502
730
|
},
|
|
503
731
|
{
|
|
504
732
|
"key": "EDIT",
|
|
505
|
-
"name": "
|
|
733
|
+
"name": "Edit",
|
|
506
734
|
"payload": [
|
|
507
735
|
{
|
|
508
736
|
"name": "id",
|
|
@@ -525,6 +753,24 @@
|
|
|
525
753
|
"required": true
|
|
526
754
|
}
|
|
527
755
|
]
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"key": "ARTICLE_UPDATED",
|
|
759
|
+
"name": "Article Updated"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"key": "ArticleLoaded",
|
|
763
|
+
"name": "Article loaded"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"key": "ArticleLoadFailed",
|
|
767
|
+
"name": "Article load failed",
|
|
768
|
+
"payload": [
|
|
769
|
+
{
|
|
770
|
+
"name": "message",
|
|
771
|
+
"type": "string"
|
|
772
|
+
}
|
|
773
|
+
]
|
|
528
774
|
}
|
|
529
775
|
],
|
|
530
776
|
"transitions": [
|
|
@@ -548,31 +794,34 @@
|
|
|
548
794
|
"fetch",
|
|
549
795
|
"Article",
|
|
550
796
|
{
|
|
551
|
-
"id": "@payload.id"
|
|
797
|
+
"id": "@payload.id",
|
|
798
|
+
"emit": {
|
|
799
|
+
"success": "ArticleLoaded",
|
|
800
|
+
"failure": "ArticleLoadFailed"
|
|
801
|
+
}
|
|
552
802
|
}
|
|
553
803
|
],
|
|
554
804
|
[
|
|
555
805
|
"render-ui",
|
|
556
806
|
"modal",
|
|
557
807
|
{
|
|
558
|
-
"type": "stack",
|
|
559
808
|
"direction": "vertical",
|
|
560
809
|
"gap": "md",
|
|
561
810
|
"children": [
|
|
562
811
|
{
|
|
563
|
-
"type": "stack",
|
|
564
|
-
"direction": "horizontal",
|
|
565
812
|
"gap": "sm",
|
|
813
|
+
"direction": "horizontal",
|
|
814
|
+
"type": "stack",
|
|
566
815
|
"children": [
|
|
567
816
|
{
|
|
817
|
+
"size": "md",
|
|
568
818
|
"type": "icon",
|
|
569
|
-
"name": "edit"
|
|
570
|
-
"size": "md"
|
|
819
|
+
"name": "edit"
|
|
571
820
|
},
|
|
572
821
|
{
|
|
822
|
+
"variant": "h3",
|
|
573
823
|
"type": "typography",
|
|
574
|
-
"content": "Edit Article"
|
|
575
|
-
"variant": "h3"
|
|
824
|
+
"content": "Edit Article"
|
|
576
825
|
}
|
|
577
826
|
]
|
|
578
827
|
},
|
|
@@ -580,10 +829,6 @@
|
|
|
580
829
|
"type": "divider"
|
|
581
830
|
},
|
|
582
831
|
{
|
|
583
|
-
"type": "form-section",
|
|
584
|
-
"entity": "Article",
|
|
585
|
-
"mode": "edit",
|
|
586
|
-
"submitEvent": "SAVE",
|
|
587
832
|
"cancelEvent": "CLOSE",
|
|
588
833
|
"fields": [
|
|
589
834
|
"title",
|
|
@@ -593,9 +838,14 @@
|
|
|
593
838
|
"status",
|
|
594
839
|
"publishedAt"
|
|
595
840
|
],
|
|
596
|
-
"entityId": "@entity.id"
|
|
841
|
+
"entityId": "@entity.id",
|
|
842
|
+
"type": "form-section",
|
|
843
|
+
"entity": "Article",
|
|
844
|
+
"mode": "edit",
|
|
845
|
+
"submitEvent": "SAVE"
|
|
597
846
|
}
|
|
598
|
-
]
|
|
847
|
+
],
|
|
848
|
+
"type": "stack"
|
|
599
849
|
}
|
|
600
850
|
]
|
|
601
851
|
]
|
|
@@ -610,6 +860,13 @@
|
|
|
610
860
|
"modal",
|
|
611
861
|
null
|
|
612
862
|
],
|
|
863
|
+
[
|
|
864
|
+
"render-ui",
|
|
865
|
+
"main",
|
|
866
|
+
{
|
|
867
|
+
"type": "box"
|
|
868
|
+
}
|
|
869
|
+
],
|
|
613
870
|
[
|
|
614
871
|
"notify",
|
|
615
872
|
"Cancelled",
|
|
@@ -633,6 +890,13 @@
|
|
|
633
890
|
"modal",
|
|
634
891
|
null
|
|
635
892
|
],
|
|
893
|
+
[
|
|
894
|
+
"render-ui",
|
|
895
|
+
"main",
|
|
896
|
+
{
|
|
897
|
+
"type": "box"
|
|
898
|
+
}
|
|
899
|
+
],
|
|
636
900
|
[
|
|
637
901
|
"emit",
|
|
638
902
|
"ARTICLE_UPDATED"
|
|
@@ -640,16 +904,66 @@
|
|
|
640
904
|
]
|
|
641
905
|
}
|
|
642
906
|
]
|
|
643
|
-
}
|
|
907
|
+
},
|
|
908
|
+
"scope": "collection"
|
|
644
909
|
},
|
|
645
910
|
{
|
|
646
911
|
"name": "ArticleView",
|
|
647
|
-
"linkedEntity": "Article",
|
|
648
912
|
"category": "interaction",
|
|
913
|
+
"linkedEntity": "Article",
|
|
649
914
|
"emits": [
|
|
650
915
|
{
|
|
651
|
-
"event": "
|
|
652
|
-
"
|
|
916
|
+
"event": "ArticleLoaded",
|
|
917
|
+
"description": "Fired when Article finishes loading",
|
|
918
|
+
"scope": "internal",
|
|
919
|
+
"payload": [
|
|
920
|
+
{
|
|
921
|
+
"name": "id",
|
|
922
|
+
"type": "string",
|
|
923
|
+
"required": true
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"name": "title",
|
|
927
|
+
"type": "string",
|
|
928
|
+
"required": true
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"name": "slug",
|
|
932
|
+
"type": "string",
|
|
933
|
+
"required": true
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"name": "content",
|
|
937
|
+
"type": "string"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"name": "author",
|
|
941
|
+
"type": "string"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"name": "status",
|
|
945
|
+
"type": "string"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "publishedAt",
|
|
949
|
+
"type": "datetime"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "pendingId",
|
|
953
|
+
"type": "string"
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"event": "ArticleLoadFailed",
|
|
959
|
+
"description": "Fired when Article fails to load",
|
|
960
|
+
"scope": "internal",
|
|
961
|
+
"payload": [
|
|
962
|
+
{
|
|
963
|
+
"name": "message",
|
|
964
|
+
"type": "string"
|
|
965
|
+
}
|
|
966
|
+
]
|
|
653
967
|
}
|
|
654
968
|
],
|
|
655
969
|
"stateMachine": {
|
|
@@ -669,7 +983,7 @@
|
|
|
669
983
|
},
|
|
670
984
|
{
|
|
671
985
|
"key": "VIEW",
|
|
672
|
-
"name": "
|
|
986
|
+
"name": "View",
|
|
673
987
|
"payload": [
|
|
674
988
|
{
|
|
675
989
|
"name": "id",
|
|
@@ -692,6 +1006,20 @@
|
|
|
692
1006
|
"required": true
|
|
693
1007
|
}
|
|
694
1008
|
]
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"key": "ArticleLoaded",
|
|
1012
|
+
"name": "Article loaded"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"key": "ArticleLoadFailed",
|
|
1016
|
+
"name": "Article load failed",
|
|
1017
|
+
"payload": [
|
|
1018
|
+
{
|
|
1019
|
+
"name": "message",
|
|
1020
|
+
"type": "string"
|
|
1021
|
+
}
|
|
1022
|
+
]
|
|
695
1023
|
}
|
|
696
1024
|
],
|
|
697
1025
|
"transitions": [
|
|
@@ -715,6 +1043,10 @@
|
|
|
715
1043
|
"fetch",
|
|
716
1044
|
"Article",
|
|
717
1045
|
{
|
|
1046
|
+
"emit": {
|
|
1047
|
+
"failure": "ArticleLoadFailed",
|
|
1048
|
+
"success": "ArticleLoaded"
|
|
1049
|
+
},
|
|
718
1050
|
"id": "@payload.id"
|
|
719
1051
|
}
|
|
720
1052
|
],
|
|
@@ -722,14 +1054,12 @@
|
|
|
722
1054
|
"render-ui",
|
|
723
1055
|
"modal",
|
|
724
1056
|
{
|
|
725
|
-
"type": "stack",
|
|
726
1057
|
"direction": "vertical",
|
|
727
|
-
"gap": "md",
|
|
728
1058
|
"children": [
|
|
729
1059
|
{
|
|
730
|
-
"type": "stack",
|
|
731
1060
|
"direction": "horizontal",
|
|
732
1061
|
"gap": "sm",
|
|
1062
|
+
"type": "stack",
|
|
733
1063
|
"align": "center",
|
|
734
1064
|
"children": [
|
|
735
1065
|
{
|
|
@@ -739,8 +1069,8 @@
|
|
|
739
1069
|
},
|
|
740
1070
|
{
|
|
741
1071
|
"type": "typography",
|
|
742
|
-
"
|
|
743
|
-
"
|
|
1072
|
+
"content": "@entity.title",
|
|
1073
|
+
"variant": "h3"
|
|
744
1074
|
}
|
|
745
1075
|
]
|
|
746
1076
|
},
|
|
@@ -748,94 +1078,94 @@
|
|
|
748
1078
|
"type": "divider"
|
|
749
1079
|
},
|
|
750
1080
|
{
|
|
1081
|
+
"gap": "md",
|
|
751
1082
|
"type": "stack",
|
|
752
1083
|
"direction": "horizontal",
|
|
753
|
-
"gap": "md",
|
|
754
1084
|
"children": [
|
|
755
1085
|
{
|
|
1086
|
+
"content": "Title",
|
|
756
1087
|
"type": "typography",
|
|
757
|
-
"variant": "caption"
|
|
758
|
-
"content": "Title"
|
|
1088
|
+
"variant": "caption"
|
|
759
1089
|
},
|
|
760
1090
|
{
|
|
1091
|
+
"content": "@entity.title",
|
|
761
1092
|
"type": "typography",
|
|
762
|
-
"variant": "body"
|
|
763
|
-
"content": "@entity.title"
|
|
1093
|
+
"variant": "body"
|
|
764
1094
|
}
|
|
765
1095
|
]
|
|
766
1096
|
},
|
|
767
1097
|
{
|
|
768
|
-
"type": "stack",
|
|
769
|
-
"direction": "horizontal",
|
|
770
1098
|
"gap": "md",
|
|
1099
|
+
"direction": "horizontal",
|
|
771
1100
|
"children": [
|
|
772
1101
|
{
|
|
773
|
-
"type": "typography",
|
|
774
1102
|
"variant": "caption",
|
|
775
|
-
"content": "Slug"
|
|
1103
|
+
"content": "Slug",
|
|
1104
|
+
"type": "typography"
|
|
776
1105
|
},
|
|
777
1106
|
{
|
|
1107
|
+
"content": "@entity.slug",
|
|
778
1108
|
"type": "typography",
|
|
779
|
-
"variant": "body"
|
|
780
|
-
"content": "@entity.slug"
|
|
1109
|
+
"variant": "body"
|
|
781
1110
|
}
|
|
782
|
-
]
|
|
1111
|
+
],
|
|
1112
|
+
"type": "stack"
|
|
783
1113
|
},
|
|
784
1114
|
{
|
|
785
|
-
"type": "stack",
|
|
786
|
-
"direction": "horizontal",
|
|
787
|
-
"gap": "md",
|
|
788
1115
|
"children": [
|
|
789
1116
|
{
|
|
790
|
-
"type": "typography",
|
|
791
1117
|
"variant": "caption",
|
|
792
|
-
"content": "Content"
|
|
1118
|
+
"content": "Content",
|
|
1119
|
+
"type": "typography"
|
|
793
1120
|
},
|
|
794
1121
|
{
|
|
795
|
-
"type": "typography",
|
|
796
1122
|
"variant": "body",
|
|
797
|
-
"content": "@entity.content"
|
|
1123
|
+
"content": "@entity.content",
|
|
1124
|
+
"type": "typography"
|
|
798
1125
|
}
|
|
799
|
-
]
|
|
1126
|
+
],
|
|
1127
|
+
"gap": "md",
|
|
1128
|
+
"direction": "horizontal",
|
|
1129
|
+
"type": "stack"
|
|
800
1130
|
},
|
|
801
1131
|
{
|
|
802
|
-
"type": "stack",
|
|
803
|
-
"direction": "horizontal",
|
|
804
1132
|
"gap": "md",
|
|
805
1133
|
"children": [
|
|
806
1134
|
{
|
|
807
|
-
"type": "typography",
|
|
808
1135
|
"variant": "caption",
|
|
1136
|
+
"type": "typography",
|
|
809
1137
|
"content": "Author"
|
|
810
1138
|
},
|
|
811
1139
|
{
|
|
1140
|
+
"content": "@entity.author",
|
|
812
1141
|
"type": "typography",
|
|
813
|
-
"variant": "body"
|
|
814
|
-
"content": "@entity.author"
|
|
1142
|
+
"variant": "body"
|
|
815
1143
|
}
|
|
816
|
-
]
|
|
1144
|
+
],
|
|
1145
|
+
"direction": "horizontal",
|
|
1146
|
+
"type": "stack"
|
|
817
1147
|
},
|
|
818
1148
|
{
|
|
819
1149
|
"type": "stack",
|
|
820
|
-
"direction": "horizontal",
|
|
821
|
-
"gap": "md",
|
|
822
1150
|
"children": [
|
|
823
1151
|
{
|
|
824
|
-
"type": "typography",
|
|
825
1152
|
"variant": "caption",
|
|
826
|
-
"content": "Status"
|
|
1153
|
+
"content": "Status",
|
|
1154
|
+
"type": "typography"
|
|
827
1155
|
},
|
|
828
1156
|
{
|
|
829
1157
|
"type": "typography",
|
|
830
1158
|
"variant": "body",
|
|
831
1159
|
"content": "@entity.status"
|
|
832
1160
|
}
|
|
833
|
-
]
|
|
1161
|
+
],
|
|
1162
|
+
"gap": "md",
|
|
1163
|
+
"direction": "horizontal"
|
|
834
1164
|
},
|
|
835
1165
|
{
|
|
836
|
-
"type": "stack",
|
|
837
|
-
"direction": "horizontal",
|
|
838
1166
|
"gap": "md",
|
|
1167
|
+
"direction": "horizontal",
|
|
1168
|
+
"type": "stack",
|
|
839
1169
|
"children": [
|
|
840
1170
|
{
|
|
841
1171
|
"type": "typography",
|
|
@@ -843,8 +1173,8 @@
|
|
|
843
1173
|
"content": "Published At"
|
|
844
1174
|
},
|
|
845
1175
|
{
|
|
846
|
-
"type": "typography",
|
|
847
1176
|
"variant": "body",
|
|
1177
|
+
"type": "typography",
|
|
848
1178
|
"content": "@entity.publishedAt"
|
|
849
1179
|
}
|
|
850
1180
|
]
|
|
@@ -854,26 +1184,28 @@
|
|
|
854
1184
|
},
|
|
855
1185
|
{
|
|
856
1186
|
"type": "stack",
|
|
1187
|
+
"justify": "end",
|
|
857
1188
|
"direction": "horizontal",
|
|
858
1189
|
"gap": "sm",
|
|
859
|
-
"justify": "end",
|
|
860
1190
|
"children": [
|
|
861
1191
|
{
|
|
862
1192
|
"type": "button",
|
|
863
1193
|
"label": "Edit",
|
|
864
1194
|
"event": "EDIT",
|
|
865
|
-
"
|
|
866
|
-
"
|
|
1195
|
+
"icon": "edit",
|
|
1196
|
+
"variant": "primary"
|
|
867
1197
|
},
|
|
868
1198
|
{
|
|
869
1199
|
"type": "button",
|
|
870
|
-
"label": "Close",
|
|
871
1200
|
"event": "CLOSE",
|
|
1201
|
+
"label": "Close",
|
|
872
1202
|
"variant": "ghost"
|
|
873
1203
|
}
|
|
874
1204
|
]
|
|
875
1205
|
}
|
|
876
|
-
]
|
|
1206
|
+
],
|
|
1207
|
+
"type": "stack",
|
|
1208
|
+
"gap": "md"
|
|
877
1209
|
}
|
|
878
1210
|
]
|
|
879
1211
|
]
|
|
@@ -888,6 +1220,13 @@
|
|
|
888
1220
|
"modal",
|
|
889
1221
|
null
|
|
890
1222
|
],
|
|
1223
|
+
[
|
|
1224
|
+
"render-ui",
|
|
1225
|
+
"main",
|
|
1226
|
+
{
|
|
1227
|
+
"type": "box"
|
|
1228
|
+
}
|
|
1229
|
+
],
|
|
891
1230
|
[
|
|
892
1231
|
"notify",
|
|
893
1232
|
"Cancelled",
|
|
@@ -904,24 +1243,87 @@
|
|
|
904
1243
|
"render-ui",
|
|
905
1244
|
"modal",
|
|
906
1245
|
null
|
|
1246
|
+
],
|
|
1247
|
+
[
|
|
1248
|
+
"render-ui",
|
|
1249
|
+
"main",
|
|
1250
|
+
{
|
|
1251
|
+
"type": "box"
|
|
1252
|
+
}
|
|
907
1253
|
]
|
|
908
1254
|
]
|
|
909
1255
|
}
|
|
910
1256
|
]
|
|
911
|
-
}
|
|
1257
|
+
},
|
|
1258
|
+
"scope": "collection"
|
|
912
1259
|
},
|
|
913
1260
|
{
|
|
914
1261
|
"name": "ArticleDelete",
|
|
915
|
-
"linkedEntity": "Article",
|
|
916
1262
|
"category": "interaction",
|
|
1263
|
+
"linkedEntity": "Article",
|
|
917
1264
|
"emits": [
|
|
918
1265
|
{
|
|
919
|
-
"event": "
|
|
920
|
-
"scope": "
|
|
1266
|
+
"event": "ARTICLE_DELETED",
|
|
1267
|
+
"scope": "external",
|
|
1268
|
+
"payload": [
|
|
1269
|
+
{
|
|
1270
|
+
"name": "id",
|
|
1271
|
+
"type": "string"
|
|
1272
|
+
}
|
|
1273
|
+
]
|
|
921
1274
|
},
|
|
922
1275
|
{
|
|
923
|
-
"event": "
|
|
924
|
-
"
|
|
1276
|
+
"event": "ArticleLoaded",
|
|
1277
|
+
"description": "Fired when Article finishes loading",
|
|
1278
|
+
"scope": "internal",
|
|
1279
|
+
"payload": [
|
|
1280
|
+
{
|
|
1281
|
+
"name": "id",
|
|
1282
|
+
"type": "string",
|
|
1283
|
+
"required": true
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"name": "title",
|
|
1287
|
+
"type": "string",
|
|
1288
|
+
"required": true
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "slug",
|
|
1292
|
+
"type": "string",
|
|
1293
|
+
"required": true
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "content",
|
|
1297
|
+
"type": "string"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"name": "author",
|
|
1301
|
+
"type": "string"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"name": "status",
|
|
1305
|
+
"type": "string"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"name": "publishedAt",
|
|
1309
|
+
"type": "datetime"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "pendingId",
|
|
1313
|
+
"type": "string"
|
|
1314
|
+
}
|
|
1315
|
+
]
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"event": "ArticleLoadFailed",
|
|
1319
|
+
"description": "Fired when Article fails to load",
|
|
1320
|
+
"scope": "internal",
|
|
1321
|
+
"payload": [
|
|
1322
|
+
{
|
|
1323
|
+
"name": "message",
|
|
1324
|
+
"type": "string"
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
925
1327
|
}
|
|
926
1328
|
],
|
|
927
1329
|
"stateMachine": {
|
|
@@ -941,7 +1343,7 @@
|
|
|
941
1343
|
},
|
|
942
1344
|
{
|
|
943
1345
|
"key": "DELETE",
|
|
944
|
-
"name": "
|
|
1346
|
+
"name": "Delete",
|
|
945
1347
|
"payload": [
|
|
946
1348
|
{
|
|
947
1349
|
"name": "id",
|
|
@@ -952,7 +1354,7 @@
|
|
|
952
1354
|
},
|
|
953
1355
|
{
|
|
954
1356
|
"key": "CONFIRM_DELETE",
|
|
955
|
-
"name": "Confirm"
|
|
1357
|
+
"name": "Confirm Delete"
|
|
956
1358
|
},
|
|
957
1359
|
{
|
|
958
1360
|
"key": "CANCEL",
|
|
@@ -961,6 +1363,24 @@
|
|
|
961
1363
|
{
|
|
962
1364
|
"key": "CLOSE",
|
|
963
1365
|
"name": "Close"
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"key": "ARTICLE_DELETED",
|
|
1369
|
+
"name": "Article Deleted"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"key": "ArticleLoaded",
|
|
1373
|
+
"name": "Article loaded"
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
"key": "ArticleLoadFailed",
|
|
1377
|
+
"name": "Article load failed",
|
|
1378
|
+
"payload": [
|
|
1379
|
+
{
|
|
1380
|
+
"name": "message",
|
|
1381
|
+
"type": "string"
|
|
1382
|
+
}
|
|
1383
|
+
]
|
|
964
1384
|
}
|
|
965
1385
|
],
|
|
966
1386
|
"transitions": [
|
|
@@ -989,26 +1409,27 @@
|
|
|
989
1409
|
"fetch",
|
|
990
1410
|
"Article",
|
|
991
1411
|
{
|
|
992
|
-
"id": "@payload.id"
|
|
1412
|
+
"id": "@payload.id",
|
|
1413
|
+
"emit": {
|
|
1414
|
+
"success": "ArticleLoaded",
|
|
1415
|
+
"failure": "ArticleLoadFailed"
|
|
1416
|
+
}
|
|
993
1417
|
}
|
|
994
1418
|
],
|
|
995
1419
|
[
|
|
996
1420
|
"render-ui",
|
|
997
1421
|
"modal",
|
|
998
1422
|
{
|
|
999
|
-
"type": "stack",
|
|
1000
|
-
"direction": "vertical",
|
|
1001
1423
|
"gap": "md",
|
|
1002
1424
|
"children": [
|
|
1003
1425
|
{
|
|
1426
|
+
"align": "center",
|
|
1004
1427
|
"type": "stack",
|
|
1005
|
-
"direction": "horizontal",
|
|
1006
1428
|
"gap": "sm",
|
|
1007
|
-
"align": "center",
|
|
1008
1429
|
"children": [
|
|
1009
1430
|
{
|
|
1010
|
-
"type": "icon",
|
|
1011
1431
|
"name": "alert-triangle",
|
|
1432
|
+
"type": "icon",
|
|
1012
1433
|
"size": "md"
|
|
1013
1434
|
},
|
|
1014
1435
|
{
|
|
@@ -1016,7 +1437,8 @@
|
|
|
1016
1437
|
"content": "Delete Article",
|
|
1017
1438
|
"variant": "h3"
|
|
1018
1439
|
}
|
|
1019
|
-
]
|
|
1440
|
+
],
|
|
1441
|
+
"direction": "horizontal"
|
|
1020
1442
|
},
|
|
1021
1443
|
{
|
|
1022
1444
|
"type": "divider"
|
|
@@ -1027,27 +1449,29 @@
|
|
|
1027
1449
|
"message": "This action cannot be undone."
|
|
1028
1450
|
},
|
|
1029
1451
|
{
|
|
1030
|
-
"type": "stack",
|
|
1031
1452
|
"direction": "horizontal",
|
|
1032
1453
|
"gap": "sm",
|
|
1033
1454
|
"justify": "end",
|
|
1034
1455
|
"children": [
|
|
1035
1456
|
{
|
|
1457
|
+
"variant": "ghost",
|
|
1036
1458
|
"type": "button",
|
|
1037
1459
|
"label": "Cancel",
|
|
1038
|
-
"event": "CANCEL"
|
|
1039
|
-
"variant": "ghost"
|
|
1460
|
+
"event": "CANCEL"
|
|
1040
1461
|
},
|
|
1041
1462
|
{
|
|
1042
|
-
"type": "button",
|
|
1043
1463
|
"label": "Delete",
|
|
1464
|
+
"icon": "check",
|
|
1465
|
+
"type": "button",
|
|
1044
1466
|
"event": "CONFIRM_DELETE",
|
|
1045
|
-
"variant": "danger"
|
|
1046
|
-
"icon": "check"
|
|
1467
|
+
"variant": "danger"
|
|
1047
1468
|
}
|
|
1048
|
-
]
|
|
1469
|
+
],
|
|
1470
|
+
"type": "stack"
|
|
1049
1471
|
}
|
|
1050
|
-
]
|
|
1472
|
+
],
|
|
1473
|
+
"type": "stack",
|
|
1474
|
+
"direction": "vertical"
|
|
1051
1475
|
}
|
|
1052
1476
|
]
|
|
1053
1477
|
]
|
|
@@ -1068,6 +1492,13 @@
|
|
|
1068
1492
|
"modal",
|
|
1069
1493
|
null
|
|
1070
1494
|
],
|
|
1495
|
+
[
|
|
1496
|
+
"render-ui",
|
|
1497
|
+
"main",
|
|
1498
|
+
{
|
|
1499
|
+
"type": "box"
|
|
1500
|
+
}
|
|
1501
|
+
],
|
|
1071
1502
|
[
|
|
1072
1503
|
"ref",
|
|
1073
1504
|
"Article"
|
|
@@ -1088,6 +1519,13 @@
|
|
|
1088
1519
|
"modal",
|
|
1089
1520
|
null
|
|
1090
1521
|
],
|
|
1522
|
+
[
|
|
1523
|
+
"render-ui",
|
|
1524
|
+
"main",
|
|
1525
|
+
{
|
|
1526
|
+
"type": "box"
|
|
1527
|
+
}
|
|
1528
|
+
],
|
|
1091
1529
|
[
|
|
1092
1530
|
"ref",
|
|
1093
1531
|
"Article"
|
|
@@ -1104,6 +1542,13 @@
|
|
|
1104
1542
|
"modal",
|
|
1105
1543
|
null
|
|
1106
1544
|
],
|
|
1545
|
+
[
|
|
1546
|
+
"render-ui",
|
|
1547
|
+
"main",
|
|
1548
|
+
{
|
|
1549
|
+
"type": "box"
|
|
1550
|
+
}
|
|
1551
|
+
],
|
|
1107
1552
|
[
|
|
1108
1553
|
"ref",
|
|
1109
1554
|
"Article"
|
|
@@ -1111,14 +1556,14 @@
|
|
|
1111
1556
|
]
|
|
1112
1557
|
}
|
|
1113
1558
|
]
|
|
1114
|
-
}
|
|
1559
|
+
},
|
|
1560
|
+
"scope": "collection"
|
|
1115
1561
|
}
|
|
1116
1562
|
],
|
|
1117
1563
|
"pages": [
|
|
1118
1564
|
{
|
|
1119
1565
|
"name": "ArticlesPage",
|
|
1120
1566
|
"path": "/articles",
|
|
1121
|
-
"isInitial": true,
|
|
1122
1567
|
"traits": [
|
|
1123
1568
|
{
|
|
1124
1569
|
"ref": "ArticleBrowse"
|
|
@@ -1143,8 +1588,8 @@
|
|
|
1143
1588
|
"name": "MediaAssetOrbital",
|
|
1144
1589
|
"entity": {
|
|
1145
1590
|
"name": "MediaAsset",
|
|
1146
|
-
"persistence": "persistent",
|
|
1147
1591
|
"collection": "mediaassets",
|
|
1592
|
+
"persistence": "persistent",
|
|
1148
1593
|
"fields": [
|
|
1149
1594
|
{
|
|
1150
1595
|
"name": "id",
|
|
@@ -1175,25 +1620,73 @@
|
|
|
1175
1620
|
},
|
|
1176
1621
|
{
|
|
1177
1622
|
"name": "uploadedAt",
|
|
1178
|
-
"type": "
|
|
1623
|
+
"type": "datetime"
|
|
1179
1624
|
}
|
|
1180
1625
|
]
|
|
1181
1626
|
},
|
|
1182
1627
|
"traits": [
|
|
1183
1628
|
{
|
|
1184
1629
|
"name": "MediaAssetBrowse",
|
|
1185
|
-
"linkedEntity": "MediaAsset",
|
|
1186
1630
|
"category": "interaction",
|
|
1187
|
-
"
|
|
1631
|
+
"linkedEntity": "MediaAsset",
|
|
1632
|
+
"emits": [
|
|
1188
1633
|
{
|
|
1189
|
-
"event": "
|
|
1190
|
-
"
|
|
1191
|
-
"scope": "internal"
|
|
1634
|
+
"event": "MediaAssetLoaded",
|
|
1635
|
+
"description": "Fired when MediaAsset finishes loading",
|
|
1636
|
+
"scope": "internal",
|
|
1637
|
+
"payload": [
|
|
1638
|
+
{
|
|
1639
|
+
"name": "id",
|
|
1640
|
+
"type": "string",
|
|
1641
|
+
"required": true
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"name": "fileName",
|
|
1645
|
+
"type": "string",
|
|
1646
|
+
"required": true
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"name": "fileType",
|
|
1650
|
+
"type": "string",
|
|
1651
|
+
"required": true
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"name": "fileSize",
|
|
1655
|
+
"type": "number"
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
"name": "url",
|
|
1659
|
+
"type": "string"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"name": "altText",
|
|
1663
|
+
"type": "string"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"name": "uploadedAt",
|
|
1667
|
+
"type": "datetime"
|
|
1668
|
+
}
|
|
1669
|
+
]
|
|
1192
1670
|
},
|
|
1671
|
+
{
|
|
1672
|
+
"event": "MediaAssetLoadFailed",
|
|
1673
|
+
"description": "Fired when MediaAsset fails to load",
|
|
1674
|
+
"scope": "internal",
|
|
1675
|
+
"payload": [
|
|
1676
|
+
{
|
|
1677
|
+
"name": "message",
|
|
1678
|
+
"type": "string"
|
|
1679
|
+
}
|
|
1680
|
+
]
|
|
1681
|
+
}
|
|
1682
|
+
],
|
|
1683
|
+
"listens": [
|
|
1193
1684
|
{
|
|
1194
1685
|
"event": "PUBLISH",
|
|
1195
1686
|
"triggers": "INIT",
|
|
1196
|
-
"
|
|
1687
|
+
"source": {
|
|
1688
|
+
"kind": "any"
|
|
1689
|
+
}
|
|
1197
1690
|
}
|
|
1198
1691
|
],
|
|
1199
1692
|
"stateMachine": {
|
|
@@ -1209,21 +1702,16 @@
|
|
|
1209
1702
|
"name": "Initialize"
|
|
1210
1703
|
},
|
|
1211
1704
|
{
|
|
1212
|
-
"key": "
|
|
1213
|
-
"name": "
|
|
1705
|
+
"key": "MediaAssetLoaded",
|
|
1706
|
+
"name": "MediaAsset loaded"
|
|
1214
1707
|
},
|
|
1215
1708
|
{
|
|
1216
|
-
"key": "
|
|
1217
|
-
"name": "
|
|
1709
|
+
"key": "MediaAssetLoadFailed",
|
|
1710
|
+
"name": "MediaAsset load failed",
|
|
1218
1711
|
"payload": [
|
|
1219
1712
|
{
|
|
1220
|
-
"name": "
|
|
1221
|
-
"type": "string"
|
|
1222
|
-
"required": true
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
"name": "row",
|
|
1226
|
-
"type": "object"
|
|
1713
|
+
"name": "message",
|
|
1714
|
+
"type": "string"
|
|
1227
1715
|
}
|
|
1228
1716
|
]
|
|
1229
1717
|
}
|
|
@@ -1242,135 +1730,181 @@
|
|
|
1242
1730
|
"render-ui",
|
|
1243
1731
|
"main",
|
|
1244
1732
|
{
|
|
1245
|
-
"type": "dashboard-layout",
|
|
1246
|
-
"appName": "CmsApp",
|
|
1247
|
-
"navItems": [
|
|
1248
|
-
{
|
|
1249
|
-
"label": "Articles",
|
|
1250
|
-
"href": "/articles",
|
|
1251
|
-
"icon": "file-text"
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
"label": "Media",
|
|
1255
|
-
"href": "/media",
|
|
1256
|
-
"icon": "image"
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
"label": "Categories",
|
|
1260
|
-
"href": "/categories",
|
|
1261
|
-
"icon": "folder"
|
|
1262
|
-
}
|
|
1263
|
-
],
|
|
1264
1733
|
"children": [
|
|
1265
1734
|
{
|
|
1266
1735
|
"type": "stack",
|
|
1267
|
-
"direction": "vertical",
|
|
1268
|
-
"gap": "lg",
|
|
1269
|
-
"className": "max-w-5xl mx-auto w-full",
|
|
1270
1736
|
"children": [
|
|
1271
1737
|
{
|
|
1272
|
-
"type": "stack",
|
|
1273
1738
|
"direction": "horizontal",
|
|
1274
|
-
"gap": "md",
|
|
1275
|
-
"justify": "space-between",
|
|
1276
1739
|
"align": "center",
|
|
1740
|
+
"type": "stack",
|
|
1277
1741
|
"children": [
|
|
1278
1742
|
{
|
|
1279
|
-
"type": "stack",
|
|
1280
1743
|
"direction": "horizontal",
|
|
1281
1744
|
"gap": "sm",
|
|
1282
1745
|
"align": "center",
|
|
1283
1746
|
"children": [
|
|
1284
1747
|
{
|
|
1748
|
+
"size": "lg",
|
|
1285
1749
|
"type": "icon",
|
|
1286
|
-
"name": "image"
|
|
1287
|
-
"size": "lg"
|
|
1750
|
+
"name": "image"
|
|
1288
1751
|
},
|
|
1289
1752
|
{
|
|
1290
|
-
"
|
|
1753
|
+
"variant": "h2",
|
|
1291
1754
|
"content": "Media Library",
|
|
1292
|
-
"
|
|
1755
|
+
"type": "typography"
|
|
1293
1756
|
}
|
|
1294
|
-
]
|
|
1757
|
+
],
|
|
1758
|
+
"type": "stack"
|
|
1295
1759
|
},
|
|
1296
1760
|
{
|
|
1297
|
-
"type": "stack",
|
|
1298
1761
|
"direction": "horizontal",
|
|
1299
|
-
"gap": "sm",
|
|
1300
1762
|
"children": [
|
|
1301
1763
|
{
|
|
1302
|
-
"type": "button",
|
|
1303
1764
|
"label": "Create MediaAsset",
|
|
1304
|
-
"event": "CREATE",
|
|
1305
1765
|
"variant": "primary",
|
|
1306
|
-
"
|
|
1766
|
+
"event": "CREATE",
|
|
1767
|
+
"icon": "plus",
|
|
1768
|
+
"type": "button"
|
|
1307
1769
|
}
|
|
1308
|
-
]
|
|
1770
|
+
],
|
|
1771
|
+
"gap": "sm",
|
|
1772
|
+
"type": "stack"
|
|
1309
1773
|
}
|
|
1310
|
-
]
|
|
1774
|
+
],
|
|
1775
|
+
"justify": "space-between",
|
|
1776
|
+
"gap": "md"
|
|
1311
1777
|
},
|
|
1312
1778
|
{
|
|
1313
1779
|
"type": "divider"
|
|
1314
1780
|
},
|
|
1315
1781
|
{
|
|
1316
1782
|
"type": "data-grid",
|
|
1317
|
-
"entity": "MediaAsset",
|
|
1318
|
-
"emptyIcon": "inbox",
|
|
1319
|
-
"emptyTitle": "No media assets",
|
|
1320
1783
|
"emptyDescription": "Upload media to build your library.",
|
|
1321
|
-
"itemActions": [
|
|
1322
|
-
{
|
|
1323
|
-
"label": "View",
|
|
1324
|
-
"event": "VIEW",
|
|
1325
|
-
"variant": "ghost",
|
|
1326
|
-
"size": "sm"
|
|
1327
|
-
}
|
|
1328
|
-
],
|
|
1329
1784
|
"columns": [
|
|
1330
1785
|
{
|
|
1331
1786
|
"name": "fileName",
|
|
1332
|
-
"label": "File",
|
|
1333
1787
|
"variant": "h3",
|
|
1788
|
+
"label": "File",
|
|
1334
1789
|
"icon": "image"
|
|
1335
1790
|
},
|
|
1336
1791
|
{
|
|
1337
|
-
"
|
|
1792
|
+
"variant": "badge",
|
|
1338
1793
|
"label": "Type",
|
|
1339
|
-
"
|
|
1794
|
+
"name": "fileType"
|
|
1340
1795
|
},
|
|
1341
1796
|
{
|
|
1342
|
-
"
|
|
1797
|
+
"format": "number",
|
|
1343
1798
|
"label": "Size",
|
|
1344
|
-
"
|
|
1345
|
-
"
|
|
1799
|
+
"name": "fileSize",
|
|
1800
|
+
"variant": "body"
|
|
1346
1801
|
},
|
|
1347
1802
|
{
|
|
1348
|
-
"name": "altText",
|
|
1349
1803
|
"label": "Alt Text",
|
|
1350
|
-
"variant": "caption"
|
|
1804
|
+
"variant": "caption",
|
|
1805
|
+
"name": "altText"
|
|
1351
1806
|
}
|
|
1352
1807
|
],
|
|
1353
|
-
"
|
|
1354
|
-
"gap": "md"
|
|
1808
|
+
"emptyTitle": "No media assets",
|
|
1809
|
+
"gap": "md",
|
|
1810
|
+
"emptyIcon": "inbox",
|
|
1811
|
+
"entity": "MediaAsset",
|
|
1812
|
+
"cols": 3.0,
|
|
1813
|
+
"itemActions": [
|
|
1814
|
+
{
|
|
1815
|
+
"label": "View",
|
|
1816
|
+
"variant": "ghost",
|
|
1817
|
+
"event": "VIEW",
|
|
1818
|
+
"size": "sm"
|
|
1819
|
+
}
|
|
1820
|
+
]
|
|
1355
1821
|
}
|
|
1356
|
-
]
|
|
1822
|
+
],
|
|
1823
|
+
"direction": "vertical",
|
|
1824
|
+
"className": "max-w-5xl mx-auto w-full",
|
|
1825
|
+
"gap": "lg"
|
|
1357
1826
|
}
|
|
1358
|
-
]
|
|
1827
|
+
],
|
|
1828
|
+
"type": "dashboard-layout",
|
|
1829
|
+
"navItems": [
|
|
1830
|
+
{
|
|
1831
|
+
"label": "Articles",
|
|
1832
|
+
"href": "/articles",
|
|
1833
|
+
"icon": "file-text"
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
"icon": "image",
|
|
1837
|
+
"href": "/media",
|
|
1838
|
+
"label": "Media"
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
"href": "/categories",
|
|
1842
|
+
"label": "Categories",
|
|
1843
|
+
"icon": "folder"
|
|
1844
|
+
}
|
|
1845
|
+
],
|
|
1846
|
+
"appName": "CmsApp"
|
|
1359
1847
|
}
|
|
1360
1848
|
]
|
|
1361
1849
|
]
|
|
1362
1850
|
}
|
|
1363
1851
|
]
|
|
1364
|
-
}
|
|
1852
|
+
},
|
|
1853
|
+
"scope": "collection"
|
|
1365
1854
|
},
|
|
1366
1855
|
{
|
|
1367
1856
|
"name": "MediaAssetCreate",
|
|
1368
|
-
"linkedEntity": "MediaAsset",
|
|
1369
1857
|
"category": "interaction",
|
|
1858
|
+
"linkedEntity": "MediaAsset",
|
|
1370
1859
|
"emits": [
|
|
1371
1860
|
{
|
|
1372
|
-
"event": "
|
|
1373
|
-
"
|
|
1861
|
+
"event": "MediaAssetLoaded",
|
|
1862
|
+
"description": "Fired when MediaAsset finishes loading",
|
|
1863
|
+
"scope": "internal",
|
|
1864
|
+
"payload": [
|
|
1865
|
+
{
|
|
1866
|
+
"name": "id",
|
|
1867
|
+
"type": "string",
|
|
1868
|
+
"required": true
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
"name": "fileName",
|
|
1872
|
+
"type": "string",
|
|
1873
|
+
"required": true
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"name": "fileType",
|
|
1877
|
+
"type": "string",
|
|
1878
|
+
"required": true
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
"name": "fileSize",
|
|
1882
|
+
"type": "number"
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"name": "url",
|
|
1886
|
+
"type": "string"
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
"name": "altText",
|
|
1890
|
+
"type": "string"
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"name": "uploadedAt",
|
|
1894
|
+
"type": "datetime"
|
|
1895
|
+
}
|
|
1896
|
+
]
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
"event": "MediaAssetLoadFailed",
|
|
1900
|
+
"description": "Fired when MediaAsset fails to load",
|
|
1901
|
+
"scope": "internal",
|
|
1902
|
+
"payload": [
|
|
1903
|
+
{
|
|
1904
|
+
"name": "message",
|
|
1905
|
+
"type": "string"
|
|
1906
|
+
}
|
|
1907
|
+
]
|
|
1374
1908
|
}
|
|
1375
1909
|
],
|
|
1376
1910
|
"stateMachine": {
|
|
@@ -1390,7 +1924,7 @@
|
|
|
1390
1924
|
},
|
|
1391
1925
|
{
|
|
1392
1926
|
"key": "CREATE",
|
|
1393
|
-
"name": "
|
|
1927
|
+
"name": "Create"
|
|
1394
1928
|
},
|
|
1395
1929
|
{
|
|
1396
1930
|
"key": "CLOSE",
|
|
@@ -1402,8 +1936,21 @@
|
|
|
1402
1936
|
"payload": [
|
|
1403
1937
|
{
|
|
1404
1938
|
"name": "data",
|
|
1405
|
-
"type": "
|
|
1406
|
-
|
|
1939
|
+
"type": "string"
|
|
1940
|
+
}
|
|
1941
|
+
]
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
"key": "MediaAssetLoaded",
|
|
1945
|
+
"name": "MediaAsset loaded"
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
"key": "MediaAssetLoadFailed",
|
|
1949
|
+
"name": "MediaAsset load failed",
|
|
1950
|
+
"payload": [
|
|
1951
|
+
{
|
|
1952
|
+
"name": "message",
|
|
1953
|
+
"type": "string"
|
|
1407
1954
|
}
|
|
1408
1955
|
]
|
|
1409
1956
|
}
|
|
@@ -1427,20 +1974,24 @@
|
|
|
1427
1974
|
"effects": [
|
|
1428
1975
|
[
|
|
1429
1976
|
"fetch",
|
|
1430
|
-
"MediaAsset"
|
|
1977
|
+
"MediaAsset",
|
|
1978
|
+
{
|
|
1979
|
+
"emit": {
|
|
1980
|
+
"success": "MediaAssetLoaded",
|
|
1981
|
+
"failure": "MediaAssetLoadFailed"
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1431
1984
|
],
|
|
1432
1985
|
[
|
|
1433
1986
|
"render-ui",
|
|
1434
1987
|
"modal",
|
|
1435
1988
|
{
|
|
1436
1989
|
"type": "stack",
|
|
1437
|
-
"direction": "vertical",
|
|
1438
|
-
"gap": "md",
|
|
1439
1990
|
"children": [
|
|
1440
1991
|
{
|
|
1441
|
-
"type": "stack",
|
|
1442
1992
|
"direction": "horizontal",
|
|
1443
1993
|
"gap": "sm",
|
|
1994
|
+
"type": "stack",
|
|
1444
1995
|
"children": [
|
|
1445
1996
|
{
|
|
1446
1997
|
"type": "icon",
|
|
@@ -1458,10 +2009,9 @@
|
|
|
1458
2009
|
"type": "divider"
|
|
1459
2010
|
},
|
|
1460
2011
|
{
|
|
2012
|
+
"mode": "create",
|
|
1461
2013
|
"type": "form-section",
|
|
1462
2014
|
"entity": "MediaAsset",
|
|
1463
|
-
"mode": "create",
|
|
1464
|
-
"submitEvent": "SAVE",
|
|
1465
2015
|
"cancelEvent": "CLOSE",
|
|
1466
2016
|
"fields": [
|
|
1467
2017
|
"fileName",
|
|
@@ -1470,9 +2020,12 @@
|
|
|
1470
2020
|
"url",
|
|
1471
2021
|
"altText",
|
|
1472
2022
|
"uploadedAt"
|
|
1473
|
-
]
|
|
2023
|
+
],
|
|
2024
|
+
"submitEvent": "SAVE"
|
|
1474
2025
|
}
|
|
1475
|
-
]
|
|
2026
|
+
],
|
|
2027
|
+
"gap": "md",
|
|
2028
|
+
"direction": "vertical"
|
|
1476
2029
|
}
|
|
1477
2030
|
]
|
|
1478
2031
|
]
|
|
@@ -1487,6 +2040,13 @@
|
|
|
1487
2040
|
"modal",
|
|
1488
2041
|
null
|
|
1489
2042
|
],
|
|
2043
|
+
[
|
|
2044
|
+
"render-ui",
|
|
2045
|
+
"main",
|
|
2046
|
+
{
|
|
2047
|
+
"type": "box"
|
|
2048
|
+
}
|
|
2049
|
+
],
|
|
1490
2050
|
[
|
|
1491
2051
|
"notify",
|
|
1492
2052
|
"Cancelled",
|
|
@@ -1509,20 +2069,73 @@
|
|
|
1509
2069
|
"render-ui",
|
|
1510
2070
|
"modal",
|
|
1511
2071
|
null
|
|
2072
|
+
],
|
|
2073
|
+
[
|
|
2074
|
+
"render-ui",
|
|
2075
|
+
"main",
|
|
2076
|
+
{
|
|
2077
|
+
"type": "box"
|
|
2078
|
+
}
|
|
1512
2079
|
]
|
|
1513
2080
|
]
|
|
1514
2081
|
}
|
|
1515
2082
|
]
|
|
1516
|
-
}
|
|
2083
|
+
},
|
|
2084
|
+
"scope": "collection"
|
|
1517
2085
|
},
|
|
1518
2086
|
{
|
|
1519
2087
|
"name": "MediaAssetView",
|
|
1520
|
-
"linkedEntity": "MediaAsset",
|
|
1521
2088
|
"category": "interaction",
|
|
2089
|
+
"linkedEntity": "MediaAsset",
|
|
1522
2090
|
"emits": [
|
|
1523
2091
|
{
|
|
1524
|
-
"event": "
|
|
1525
|
-
"
|
|
2092
|
+
"event": "MediaAssetLoaded",
|
|
2093
|
+
"description": "Fired when MediaAsset finishes loading",
|
|
2094
|
+
"scope": "internal",
|
|
2095
|
+
"payload": [
|
|
2096
|
+
{
|
|
2097
|
+
"name": "id",
|
|
2098
|
+
"type": "string",
|
|
2099
|
+
"required": true
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
"name": "fileName",
|
|
2103
|
+
"type": "string",
|
|
2104
|
+
"required": true
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
"name": "fileType",
|
|
2108
|
+
"type": "string",
|
|
2109
|
+
"required": true
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
"name": "fileSize",
|
|
2113
|
+
"type": "number"
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
"name": "url",
|
|
2117
|
+
"type": "string"
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"name": "altText",
|
|
2121
|
+
"type": "string"
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"name": "uploadedAt",
|
|
2125
|
+
"type": "datetime"
|
|
2126
|
+
}
|
|
2127
|
+
]
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
"event": "MediaAssetLoadFailed",
|
|
2131
|
+
"description": "Fired when MediaAsset fails to load",
|
|
2132
|
+
"scope": "internal",
|
|
2133
|
+
"payload": [
|
|
2134
|
+
{
|
|
2135
|
+
"name": "message",
|
|
2136
|
+
"type": "string"
|
|
2137
|
+
}
|
|
2138
|
+
]
|
|
1526
2139
|
}
|
|
1527
2140
|
],
|
|
1528
2141
|
"stateMachine": {
|
|
@@ -1542,12 +2155,11 @@
|
|
|
1542
2155
|
},
|
|
1543
2156
|
{
|
|
1544
2157
|
"key": "VIEW",
|
|
1545
|
-
"name": "
|
|
2158
|
+
"name": "View",
|
|
1546
2159
|
"payload": [
|
|
1547
2160
|
{
|
|
1548
2161
|
"name": "id",
|
|
1549
|
-
"type": "string"
|
|
1550
|
-
"required": true
|
|
2162
|
+
"type": "string"
|
|
1551
2163
|
}
|
|
1552
2164
|
]
|
|
1553
2165
|
},
|
|
@@ -1557,12 +2169,19 @@
|
|
|
1557
2169
|
},
|
|
1558
2170
|
{
|
|
1559
2171
|
"key": "SAVE",
|
|
1560
|
-
"name": "Save"
|
|
2172
|
+
"name": "Save"
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"key": "MediaAssetLoaded",
|
|
2176
|
+
"name": "MediaAsset loaded"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
"key": "MediaAssetLoadFailed",
|
|
2180
|
+
"name": "MediaAsset load failed",
|
|
1561
2181
|
"payload": [
|
|
1562
2182
|
{
|
|
1563
|
-
"name": "
|
|
1564
|
-
"type": "
|
|
1565
|
-
"required": true
|
|
2183
|
+
"name": "message",
|
|
2184
|
+
"type": "string"
|
|
1566
2185
|
}
|
|
1567
2186
|
]
|
|
1568
2187
|
}
|
|
@@ -1588,6 +2207,10 @@
|
|
|
1588
2207
|
"fetch",
|
|
1589
2208
|
"MediaAsset",
|
|
1590
2209
|
{
|
|
2210
|
+
"emit": {
|
|
2211
|
+
"failure": "MediaAssetLoadFailed",
|
|
2212
|
+
"success": "MediaAssetLoaded"
|
|
2213
|
+
},
|
|
1591
2214
|
"id": "@payload.id"
|
|
1592
2215
|
}
|
|
1593
2216
|
],
|
|
@@ -1595,15 +2218,10 @@
|
|
|
1595
2218
|
"render-ui",
|
|
1596
2219
|
"modal",
|
|
1597
2220
|
{
|
|
1598
|
-
"type": "stack",
|
|
1599
2221
|
"direction": "vertical",
|
|
1600
2222
|
"gap": "md",
|
|
1601
2223
|
"children": [
|
|
1602
2224
|
{
|
|
1603
|
-
"type": "stack",
|
|
1604
|
-
"direction": "horizontal",
|
|
1605
|
-
"gap": "sm",
|
|
1606
|
-
"align": "center",
|
|
1607
2225
|
"children": [
|
|
1608
2226
|
{
|
|
1609
2227
|
"type": "icon",
|
|
@@ -1612,30 +2230,34 @@
|
|
|
1612
2230
|
},
|
|
1613
2231
|
{
|
|
1614
2232
|
"type": "typography",
|
|
1615
|
-
"
|
|
1616
|
-
"
|
|
2233
|
+
"content": "@entity.fileName",
|
|
2234
|
+
"variant": "h3"
|
|
1617
2235
|
}
|
|
1618
|
-
]
|
|
2236
|
+
],
|
|
2237
|
+
"direction": "horizontal",
|
|
2238
|
+
"gap": "sm",
|
|
2239
|
+
"align": "center",
|
|
2240
|
+
"type": "stack"
|
|
1619
2241
|
},
|
|
1620
2242
|
{
|
|
1621
2243
|
"type": "divider"
|
|
1622
2244
|
},
|
|
1623
2245
|
{
|
|
1624
|
-
"type": "stack",
|
|
1625
2246
|
"direction": "horizontal",
|
|
1626
|
-
"gap": "md",
|
|
1627
2247
|
"children": [
|
|
1628
2248
|
{
|
|
1629
|
-
"type": "typography",
|
|
1630
2249
|
"variant": "caption",
|
|
1631
|
-
"content": "File Name"
|
|
2250
|
+
"content": "File Name",
|
|
2251
|
+
"type": "typography"
|
|
1632
2252
|
},
|
|
1633
2253
|
{
|
|
1634
2254
|
"type": "typography",
|
|
1635
2255
|
"variant": "body",
|
|
1636
2256
|
"content": "@entity.fileName"
|
|
1637
2257
|
}
|
|
1638
|
-
]
|
|
2258
|
+
],
|
|
2259
|
+
"gap": "md",
|
|
2260
|
+
"type": "stack"
|
|
1639
2261
|
},
|
|
1640
2262
|
{
|
|
1641
2263
|
"type": "stack",
|
|
@@ -1643,42 +2265,40 @@
|
|
|
1643
2265
|
"gap": "md",
|
|
1644
2266
|
"children": [
|
|
1645
2267
|
{
|
|
1646
|
-
"type": "typography",
|
|
1647
2268
|
"variant": "caption",
|
|
2269
|
+
"type": "typography",
|
|
1648
2270
|
"content": "File Type"
|
|
1649
2271
|
},
|
|
1650
2272
|
{
|
|
1651
|
-
"type": "typography",
|
|
1652
2273
|
"variant": "body",
|
|
1653
|
-
"content": "@entity.fileType"
|
|
2274
|
+
"content": "@entity.fileType",
|
|
2275
|
+
"type": "typography"
|
|
1654
2276
|
}
|
|
1655
2277
|
]
|
|
1656
2278
|
},
|
|
1657
2279
|
{
|
|
2280
|
+
"gap": "md",
|
|
1658
2281
|
"type": "stack",
|
|
1659
2282
|
"direction": "horizontal",
|
|
1660
|
-
"gap": "md",
|
|
1661
2283
|
"children": [
|
|
1662
2284
|
{
|
|
1663
|
-
"
|
|
2285
|
+
"content": "File Size",
|
|
1664
2286
|
"variant": "caption",
|
|
1665
|
-
"
|
|
2287
|
+
"type": "typography"
|
|
1666
2288
|
},
|
|
1667
2289
|
{
|
|
1668
2290
|
"type": "typography",
|
|
1669
|
-
"
|
|
1670
|
-
"
|
|
2291
|
+
"content": "@entity.fileSize",
|
|
2292
|
+
"variant": "body"
|
|
1671
2293
|
}
|
|
1672
2294
|
]
|
|
1673
2295
|
},
|
|
1674
2296
|
{
|
|
1675
2297
|
"type": "stack",
|
|
1676
|
-
"direction": "horizontal",
|
|
1677
|
-
"gap": "md",
|
|
1678
2298
|
"children": [
|
|
1679
2299
|
{
|
|
1680
|
-
"type": "typography",
|
|
1681
2300
|
"variant": "caption",
|
|
2301
|
+
"type": "typography",
|
|
1682
2302
|
"content": "Url"
|
|
1683
2303
|
},
|
|
1684
2304
|
{
|
|
@@ -1686,29 +2306,28 @@
|
|
|
1686
2306
|
"variant": "body",
|
|
1687
2307
|
"content": "@entity.url"
|
|
1688
2308
|
}
|
|
1689
|
-
]
|
|
2309
|
+
],
|
|
2310
|
+
"gap": "md",
|
|
2311
|
+
"direction": "horizontal"
|
|
1690
2312
|
},
|
|
1691
2313
|
{
|
|
1692
2314
|
"type": "stack",
|
|
1693
2315
|
"direction": "horizontal",
|
|
1694
|
-
"gap": "md",
|
|
1695
2316
|
"children": [
|
|
1696
2317
|
{
|
|
1697
2318
|
"type": "typography",
|
|
1698
|
-
"
|
|
1699
|
-
"
|
|
2319
|
+
"content": "Alt Text",
|
|
2320
|
+
"variant": "caption"
|
|
1700
2321
|
},
|
|
1701
2322
|
{
|
|
2323
|
+
"content": "@entity.altText",
|
|
1702
2324
|
"type": "typography",
|
|
1703
|
-
"variant": "body"
|
|
1704
|
-
"content": "@entity.altText"
|
|
2325
|
+
"variant": "body"
|
|
1705
2326
|
}
|
|
1706
|
-
]
|
|
2327
|
+
],
|
|
2328
|
+
"gap": "md"
|
|
1707
2329
|
},
|
|
1708
2330
|
{
|
|
1709
|
-
"type": "stack",
|
|
1710
|
-
"direction": "horizontal",
|
|
1711
|
-
"gap": "md",
|
|
1712
2331
|
"children": [
|
|
1713
2332
|
{
|
|
1714
2333
|
"type": "typography",
|
|
@@ -1716,30 +2335,34 @@
|
|
|
1716
2335
|
"content": "Uploaded At"
|
|
1717
2336
|
},
|
|
1718
2337
|
{
|
|
1719
|
-
"type": "typography",
|
|
1720
2338
|
"variant": "body",
|
|
1721
|
-
"content": "@entity.uploadedAt"
|
|
2339
|
+
"content": "@entity.uploadedAt",
|
|
2340
|
+
"type": "typography"
|
|
1722
2341
|
}
|
|
1723
|
-
]
|
|
2342
|
+
],
|
|
2343
|
+
"direction": "horizontal",
|
|
2344
|
+
"type": "stack",
|
|
2345
|
+
"gap": "md"
|
|
1724
2346
|
},
|
|
1725
2347
|
{
|
|
1726
2348
|
"type": "divider"
|
|
1727
2349
|
},
|
|
1728
2350
|
{
|
|
1729
|
-
"type": "stack",
|
|
1730
2351
|
"direction": "horizontal",
|
|
1731
2352
|
"gap": "sm",
|
|
1732
|
-
"justify": "end",
|
|
1733
2353
|
"children": [
|
|
1734
2354
|
{
|
|
1735
2355
|
"type": "button",
|
|
1736
|
-
"
|
|
2356
|
+
"variant": "ghost",
|
|
1737
2357
|
"event": "CLOSE",
|
|
1738
|
-
"
|
|
2358
|
+
"label": "Close"
|
|
1739
2359
|
}
|
|
1740
|
-
]
|
|
2360
|
+
],
|
|
2361
|
+
"type": "stack",
|
|
2362
|
+
"justify": "end"
|
|
1741
2363
|
}
|
|
1742
|
-
]
|
|
2364
|
+
],
|
|
2365
|
+
"type": "stack"
|
|
1743
2366
|
}
|
|
1744
2367
|
]
|
|
1745
2368
|
]
|
|
@@ -1754,6 +2377,13 @@
|
|
|
1754
2377
|
"modal",
|
|
1755
2378
|
null
|
|
1756
2379
|
],
|
|
2380
|
+
[
|
|
2381
|
+
"render-ui",
|
|
2382
|
+
"main",
|
|
2383
|
+
{
|
|
2384
|
+
"type": "box"
|
|
2385
|
+
}
|
|
2386
|
+
],
|
|
1757
2387
|
[
|
|
1758
2388
|
"notify",
|
|
1759
2389
|
"Cancelled",
|
|
@@ -1770,16 +2400,24 @@
|
|
|
1770
2400
|
"render-ui",
|
|
1771
2401
|
"modal",
|
|
1772
2402
|
null
|
|
2403
|
+
],
|
|
2404
|
+
[
|
|
2405
|
+
"render-ui",
|
|
2406
|
+
"main",
|
|
2407
|
+
{
|
|
2408
|
+
"type": "box"
|
|
2409
|
+
}
|
|
1773
2410
|
]
|
|
1774
2411
|
]
|
|
1775
2412
|
}
|
|
1776
2413
|
]
|
|
1777
|
-
}
|
|
2414
|
+
},
|
|
2415
|
+
"scope": "collection"
|
|
1778
2416
|
}
|
|
1779
2417
|
],
|
|
1780
2418
|
"pages": [
|
|
1781
2419
|
{
|
|
1782
|
-
"name": "
|
|
2420
|
+
"name": "Media",
|
|
1783
2421
|
"path": "/media",
|
|
1784
2422
|
"traits": [
|
|
1785
2423
|
{
|
|
@@ -1799,8 +2437,8 @@
|
|
|
1799
2437
|
"name": "CategoryOrbital",
|
|
1800
2438
|
"entity": {
|
|
1801
2439
|
"name": "Category",
|
|
1802
|
-
"persistence": "persistent",
|
|
1803
2440
|
"collection": "categorys",
|
|
2441
|
+
"persistence": "persistent",
|
|
1804
2442
|
"fields": [
|
|
1805
2443
|
{
|
|
1806
2444
|
"name": "id",
|
|
@@ -1827,8 +2465,7 @@
|
|
|
1827
2465
|
},
|
|
1828
2466
|
{
|
|
1829
2467
|
"name": "articleCount",
|
|
1830
|
-
"type": "number"
|
|
1831
|
-
"default": 0
|
|
2468
|
+
"type": "number"
|
|
1832
2469
|
},
|
|
1833
2470
|
{
|
|
1834
2471
|
"name": "pendingId",
|
|
@@ -1840,28 +2477,90 @@
|
|
|
1840
2477
|
"traits": [
|
|
1841
2478
|
{
|
|
1842
2479
|
"name": "CategoryBrowse",
|
|
1843
|
-
"linkedEntity": "Category",
|
|
1844
2480
|
"category": "interaction",
|
|
2481
|
+
"linkedEntity": "Category",
|
|
2482
|
+
"emits": [
|
|
2483
|
+
{
|
|
2484
|
+
"event": "CategoryLoaded",
|
|
2485
|
+
"description": "Fired when Category finishes loading",
|
|
2486
|
+
"scope": "internal",
|
|
2487
|
+
"payload": [
|
|
2488
|
+
{
|
|
2489
|
+
"name": "id",
|
|
2490
|
+
"type": "string",
|
|
2491
|
+
"required": true
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
"name": "name",
|
|
2495
|
+
"type": "string",
|
|
2496
|
+
"required": true
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
"name": "slug",
|
|
2500
|
+
"type": "string",
|
|
2501
|
+
"required": true
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
"name": "description",
|
|
2505
|
+
"type": "string"
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
"name": "parentCategory",
|
|
2509
|
+
"type": "string"
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
"name": "articleCount",
|
|
2513
|
+
"type": "number"
|
|
2514
|
+
},
|
|
2515
|
+
{
|
|
2516
|
+
"name": "pendingId",
|
|
2517
|
+
"type": "string"
|
|
2518
|
+
}
|
|
2519
|
+
]
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
"event": "CategoryLoadFailed",
|
|
2523
|
+
"description": "Fired when Category fails to load",
|
|
2524
|
+
"scope": "internal",
|
|
2525
|
+
"payload": [
|
|
2526
|
+
{
|
|
2527
|
+
"name": "message",
|
|
2528
|
+
"type": "string"
|
|
2529
|
+
}
|
|
2530
|
+
]
|
|
2531
|
+
}
|
|
2532
|
+
],
|
|
1845
2533
|
"listens": [
|
|
1846
2534
|
{
|
|
1847
2535
|
"event": "CATEGORY_CREATED",
|
|
1848
2536
|
"triggers": "INIT",
|
|
1849
|
-
"
|
|
2537
|
+
"source": {
|
|
2538
|
+
"kind": "trait",
|
|
2539
|
+
"trait": "CategoryCreate"
|
|
2540
|
+
}
|
|
1850
2541
|
},
|
|
1851
2542
|
{
|
|
1852
2543
|
"event": "CATEGORY_UPDATED",
|
|
1853
2544
|
"triggers": "INIT",
|
|
1854
|
-
"
|
|
2545
|
+
"source": {
|
|
2546
|
+
"kind": "trait",
|
|
2547
|
+
"trait": "CategoryEdit"
|
|
2548
|
+
}
|
|
1855
2549
|
},
|
|
1856
2550
|
{
|
|
1857
2551
|
"event": "CATEGORY_DELETED",
|
|
1858
2552
|
"triggers": "INIT",
|
|
1859
|
-
"
|
|
2553
|
+
"source": {
|
|
2554
|
+
"kind": "trait",
|
|
2555
|
+
"trait": "CategoryDelete"
|
|
2556
|
+
}
|
|
1860
2557
|
},
|
|
1861
2558
|
{
|
|
1862
2559
|
"event": "CATEGORIZE",
|
|
1863
2560
|
"triggers": "INIT",
|
|
1864
|
-
"
|
|
2561
|
+
"source": {
|
|
2562
|
+
"kind": "any"
|
|
2563
|
+
}
|
|
1865
2564
|
}
|
|
1866
2565
|
],
|
|
1867
2566
|
"stateMachine": {
|
|
@@ -1877,51 +2576,16 @@
|
|
|
1877
2576
|
"name": "Initialize"
|
|
1878
2577
|
},
|
|
1879
2578
|
{
|
|
1880
|
-
"key": "
|
|
1881
|
-
"name": "
|
|
1882
|
-
},
|
|
1883
|
-
{
|
|
1884
|
-
"key": "VIEW",
|
|
1885
|
-
"name": "VIEW",
|
|
1886
|
-
"payload": [
|
|
1887
|
-
{
|
|
1888
|
-
"name": "id",
|
|
1889
|
-
"type": "string",
|
|
1890
|
-
"required": true
|
|
1891
|
-
},
|
|
1892
|
-
{
|
|
1893
|
-
"name": "row",
|
|
1894
|
-
"type": "object"
|
|
1895
|
-
}
|
|
1896
|
-
]
|
|
1897
|
-
},
|
|
1898
|
-
{
|
|
1899
|
-
"key": "EDIT",
|
|
1900
|
-
"name": "EDIT",
|
|
1901
|
-
"payload": [
|
|
1902
|
-
{
|
|
1903
|
-
"name": "id",
|
|
1904
|
-
"type": "string",
|
|
1905
|
-
"required": true
|
|
1906
|
-
},
|
|
1907
|
-
{
|
|
1908
|
-
"name": "row",
|
|
1909
|
-
"type": "object"
|
|
1910
|
-
}
|
|
1911
|
-
]
|
|
2579
|
+
"key": "CategoryLoaded",
|
|
2580
|
+
"name": "Category loaded"
|
|
1912
2581
|
},
|
|
1913
2582
|
{
|
|
1914
|
-
"key": "
|
|
1915
|
-
"name": "
|
|
2583
|
+
"key": "CategoryLoadFailed",
|
|
2584
|
+
"name": "Category load failed",
|
|
1916
2585
|
"payload": [
|
|
1917
2586
|
{
|
|
1918
|
-
"name": "
|
|
1919
|
-
"type": "string"
|
|
1920
|
-
"required": true
|
|
1921
|
-
},
|
|
1922
|
-
{
|
|
1923
|
-
"name": "row",
|
|
1924
|
-
"type": "object"
|
|
2587
|
+
"name": "message",
|
|
2588
|
+
"type": "string"
|
|
1925
2589
|
}
|
|
1926
2590
|
]
|
|
1927
2591
|
}
|
|
@@ -1940,18 +2604,16 @@
|
|
|
1940
2604
|
"render-ui",
|
|
1941
2605
|
"main",
|
|
1942
2606
|
{
|
|
1943
|
-
"type": "dashboard-layout",
|
|
1944
|
-
"appName": "CmsApp",
|
|
1945
2607
|
"navItems": [
|
|
1946
2608
|
{
|
|
2609
|
+
"icon": "file-text",
|
|
1947
2610
|
"label": "Articles",
|
|
1948
|
-
"href": "/articles"
|
|
1949
|
-
"icon": "file-text"
|
|
2611
|
+
"href": "/articles"
|
|
1950
2612
|
},
|
|
1951
2613
|
{
|
|
2614
|
+
"icon": "image",
|
|
1952
2615
|
"label": "Media",
|
|
1953
|
-
"href": "/media"
|
|
1954
|
-
"icon": "image"
|
|
2616
|
+
"href": "/media"
|
|
1955
2617
|
},
|
|
1956
2618
|
{
|
|
1957
2619
|
"label": "Categories",
|
|
@@ -1959,51 +2621,49 @@
|
|
|
1959
2621
|
"icon": "folder"
|
|
1960
2622
|
}
|
|
1961
2623
|
],
|
|
2624
|
+
"appName": "CmsApp",
|
|
2625
|
+
"type": "dashboard-layout",
|
|
1962
2626
|
"children": [
|
|
1963
2627
|
{
|
|
1964
|
-
"type": "stack",
|
|
1965
|
-
"direction": "vertical",
|
|
1966
|
-
"gap": "lg",
|
|
1967
|
-
"className": "max-w-5xl mx-auto w-full",
|
|
1968
2628
|
"children": [
|
|
1969
2629
|
{
|
|
1970
|
-
"type": "stack",
|
|
1971
|
-
"direction": "horizontal",
|
|
1972
|
-
"gap": "md",
|
|
1973
2630
|
"justify": "space-between",
|
|
1974
2631
|
"align": "center",
|
|
2632
|
+
"direction": "horizontal",
|
|
2633
|
+
"gap": "md",
|
|
2634
|
+
"type": "stack",
|
|
1975
2635
|
"children": [
|
|
1976
2636
|
{
|
|
1977
2637
|
"type": "stack",
|
|
1978
|
-
"direction": "horizontal",
|
|
1979
2638
|
"gap": "sm",
|
|
2639
|
+
"direction": "horizontal",
|
|
1980
2640
|
"align": "center",
|
|
1981
2641
|
"children": [
|
|
1982
2642
|
{
|
|
1983
2643
|
"type": "icon",
|
|
1984
|
-
"
|
|
1985
|
-
"
|
|
2644
|
+
"size": "lg",
|
|
2645
|
+
"name": "folder"
|
|
1986
2646
|
},
|
|
1987
2647
|
{
|
|
2648
|
+
"variant": "h2",
|
|
1988
2649
|
"type": "typography",
|
|
1989
|
-
"content": "Categories"
|
|
1990
|
-
"variant": "h2"
|
|
2650
|
+
"content": "Categories"
|
|
1991
2651
|
}
|
|
1992
2652
|
]
|
|
1993
2653
|
},
|
|
1994
2654
|
{
|
|
1995
2655
|
"type": "stack",
|
|
1996
2656
|
"direction": "horizontal",
|
|
1997
|
-
"gap": "sm",
|
|
1998
2657
|
"children": [
|
|
1999
2658
|
{
|
|
2000
|
-
"type": "button",
|
|
2001
2659
|
"label": "Create Category",
|
|
2002
|
-
"event": "CREATE",
|
|
2003
2660
|
"variant": "primary",
|
|
2004
|
-
"icon": "plus"
|
|
2661
|
+
"icon": "plus",
|
|
2662
|
+
"type": "button",
|
|
2663
|
+
"event": "CREATE"
|
|
2005
2664
|
}
|
|
2006
|
-
]
|
|
2665
|
+
],
|
|
2666
|
+
"gap": "sm"
|
|
2007
2667
|
}
|
|
2008
2668
|
]
|
|
2009
2669
|
},
|
|
@@ -2011,56 +2671,60 @@
|
|
|
2011
2671
|
"type": "divider"
|
|
2012
2672
|
},
|
|
2013
2673
|
{
|
|
2014
|
-
"
|
|
2674
|
+
"gap": "sm",
|
|
2015
2675
|
"entity": "Category",
|
|
2016
|
-
"emptyIcon": "inbox",
|
|
2017
|
-
"emptyTitle": "No categories yet",
|
|
2018
|
-
"emptyDescription": "Create categories to organize your content.",
|
|
2019
2676
|
"itemActions": [
|
|
2020
2677
|
{
|
|
2021
2678
|
"label": "View",
|
|
2022
2679
|
"event": "VIEW",
|
|
2023
|
-
"
|
|
2024
|
-
"
|
|
2680
|
+
"size": "sm",
|
|
2681
|
+
"variant": "ghost"
|
|
2025
2682
|
},
|
|
2026
2683
|
{
|
|
2027
|
-
"label": "Edit",
|
|
2028
|
-
"event": "EDIT",
|
|
2029
2684
|
"variant": "ghost",
|
|
2030
|
-
"size": "sm"
|
|
2685
|
+
"size": "sm",
|
|
2686
|
+
"label": "Edit",
|
|
2687
|
+
"event": "EDIT"
|
|
2031
2688
|
},
|
|
2032
2689
|
{
|
|
2033
|
-
"label": "Delete",
|
|
2034
|
-
"event": "DELETE",
|
|
2035
2690
|
"variant": "danger",
|
|
2036
|
-
"
|
|
2691
|
+
"label": "Delete",
|
|
2692
|
+
"size": "sm",
|
|
2693
|
+
"event": "DELETE"
|
|
2037
2694
|
}
|
|
2038
2695
|
],
|
|
2039
2696
|
"columns": [
|
|
2040
2697
|
{
|
|
2698
|
+
"icon": "folder",
|
|
2041
2699
|
"name": "name",
|
|
2042
|
-
"variant": "h3"
|
|
2043
|
-
"icon": "folder"
|
|
2700
|
+
"variant": "h3"
|
|
2044
2701
|
},
|
|
2045
2702
|
{
|
|
2046
|
-
"name": "articleCount",
|
|
2047
|
-
"label": "Articles",
|
|
2048
2703
|
"variant": "badge",
|
|
2704
|
+
"label": "Articles",
|
|
2705
|
+
"name": "articleCount",
|
|
2049
2706
|
"format": "number"
|
|
2050
2707
|
},
|
|
2051
2708
|
{
|
|
2052
|
-
"
|
|
2053
|
-
"
|
|
2709
|
+
"variant": "body",
|
|
2710
|
+
"name": "description"
|
|
2054
2711
|
},
|
|
2055
2712
|
{
|
|
2056
2713
|
"name": "slug",
|
|
2057
2714
|
"variant": "caption"
|
|
2058
2715
|
}
|
|
2059
2716
|
],
|
|
2717
|
+
"emptyDescription": "Create categories to organize your content.",
|
|
2718
|
+
"emptyIcon": "inbox",
|
|
2060
2719
|
"variant": "card",
|
|
2061
|
-
"
|
|
2720
|
+
"emptyTitle": "No categories yet",
|
|
2721
|
+
"type": "data-list"
|
|
2062
2722
|
}
|
|
2063
|
-
]
|
|
2723
|
+
],
|
|
2724
|
+
"direction": "vertical",
|
|
2725
|
+
"type": "stack",
|
|
2726
|
+
"className": "max-w-5xl mx-auto w-full",
|
|
2727
|
+
"gap": "lg"
|
|
2064
2728
|
}
|
|
2065
2729
|
]
|
|
2066
2730
|
}
|
|
@@ -2068,20 +2732,65 @@
|
|
|
2068
2732
|
]
|
|
2069
2733
|
}
|
|
2070
2734
|
]
|
|
2071
|
-
}
|
|
2735
|
+
},
|
|
2736
|
+
"scope": "collection"
|
|
2072
2737
|
},
|
|
2073
2738
|
{
|
|
2074
2739
|
"name": "CategoryCreate",
|
|
2075
|
-
"linkedEntity": "Category",
|
|
2076
2740
|
"category": "interaction",
|
|
2741
|
+
"linkedEntity": "Category",
|
|
2077
2742
|
"emits": [
|
|
2078
2743
|
{
|
|
2079
|
-
"event": "
|
|
2080
|
-
"scope": "internal"
|
|
2744
|
+
"event": "CATEGORY_CREATED"
|
|
2081
2745
|
},
|
|
2082
2746
|
{
|
|
2083
|
-
"event": "
|
|
2084
|
-
"
|
|
2747
|
+
"event": "CategoryLoaded",
|
|
2748
|
+
"description": "Fired when Category finishes loading",
|
|
2749
|
+
"scope": "internal",
|
|
2750
|
+
"payload": [
|
|
2751
|
+
{
|
|
2752
|
+
"name": "id",
|
|
2753
|
+
"type": "string",
|
|
2754
|
+
"required": true
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"name": "name",
|
|
2758
|
+
"type": "string",
|
|
2759
|
+
"required": true
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
"name": "slug",
|
|
2763
|
+
"type": "string",
|
|
2764
|
+
"required": true
|
|
2765
|
+
},
|
|
2766
|
+
{
|
|
2767
|
+
"name": "description",
|
|
2768
|
+
"type": "string"
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
"name": "parentCategory",
|
|
2772
|
+
"type": "string"
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"name": "articleCount",
|
|
2776
|
+
"type": "number"
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
"name": "pendingId",
|
|
2780
|
+
"type": "string"
|
|
2781
|
+
}
|
|
2782
|
+
]
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
"event": "CategoryLoadFailed",
|
|
2786
|
+
"description": "Fired when Category fails to load",
|
|
2787
|
+
"scope": "internal",
|
|
2788
|
+
"payload": [
|
|
2789
|
+
{
|
|
2790
|
+
"name": "message",
|
|
2791
|
+
"type": "string"
|
|
2792
|
+
}
|
|
2793
|
+
]
|
|
2085
2794
|
}
|
|
2086
2795
|
],
|
|
2087
2796
|
"stateMachine": {
|
|
@@ -2101,7 +2810,7 @@
|
|
|
2101
2810
|
},
|
|
2102
2811
|
{
|
|
2103
2812
|
"key": "CREATE",
|
|
2104
|
-
"name": "
|
|
2813
|
+
"name": "Create"
|
|
2105
2814
|
},
|
|
2106
2815
|
{
|
|
2107
2816
|
"key": "CLOSE",
|
|
@@ -2113,8 +2822,25 @@
|
|
|
2113
2822
|
"payload": [
|
|
2114
2823
|
{
|
|
2115
2824
|
"name": "data",
|
|
2116
|
-
"type": "
|
|
2117
|
-
|
|
2825
|
+
"type": "string"
|
|
2826
|
+
}
|
|
2827
|
+
]
|
|
2828
|
+
},
|
|
2829
|
+
{
|
|
2830
|
+
"key": "CATEGORY_CREATED",
|
|
2831
|
+
"name": "Category Created"
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
"key": "CategoryLoaded",
|
|
2835
|
+
"name": "Category loaded"
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
"key": "CategoryLoadFailed",
|
|
2839
|
+
"name": "Category load failed",
|
|
2840
|
+
"payload": [
|
|
2841
|
+
{
|
|
2842
|
+
"name": "message",
|
|
2843
|
+
"type": "string"
|
|
2118
2844
|
}
|
|
2119
2845
|
]
|
|
2120
2846
|
}
|
|
@@ -2138,25 +2864,29 @@
|
|
|
2138
2864
|
"effects": [
|
|
2139
2865
|
[
|
|
2140
2866
|
"fetch",
|
|
2141
|
-
"Category"
|
|
2867
|
+
"Category",
|
|
2868
|
+
{
|
|
2869
|
+
"emit": {
|
|
2870
|
+
"success": "CategoryLoaded",
|
|
2871
|
+
"failure": "CategoryLoadFailed"
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2142
2874
|
],
|
|
2143
2875
|
[
|
|
2144
2876
|
"render-ui",
|
|
2145
2877
|
"modal",
|
|
2146
2878
|
{
|
|
2147
2879
|
"type": "stack",
|
|
2148
|
-
"direction": "vertical",
|
|
2149
|
-
"gap": "md",
|
|
2150
2880
|
"children": [
|
|
2151
2881
|
{
|
|
2152
|
-
"type": "stack",
|
|
2153
2882
|
"direction": "horizontal",
|
|
2883
|
+
"type": "stack",
|
|
2154
2884
|
"gap": "sm",
|
|
2155
2885
|
"children": [
|
|
2156
2886
|
{
|
|
2157
|
-
"type": "icon",
|
|
2158
2887
|
"name": "plus-circle",
|
|
2159
|
-
"size": "md"
|
|
2888
|
+
"size": "md",
|
|
2889
|
+
"type": "icon"
|
|
2160
2890
|
},
|
|
2161
2891
|
{
|
|
2162
2892
|
"type": "typography",
|
|
@@ -2169,20 +2899,22 @@
|
|
|
2169
2899
|
"type": "divider"
|
|
2170
2900
|
},
|
|
2171
2901
|
{
|
|
2902
|
+
"cancelEvent": "CLOSE",
|
|
2903
|
+
"mode": "create",
|
|
2172
2904
|
"type": "form-section",
|
|
2173
2905
|
"entity": "Category",
|
|
2174
|
-
"mode": "create",
|
|
2175
|
-
"submitEvent": "SAVE",
|
|
2176
|
-
"cancelEvent": "CLOSE",
|
|
2177
2906
|
"fields": [
|
|
2178
2907
|
"name",
|
|
2179
2908
|
"slug",
|
|
2180
2909
|
"description",
|
|
2181
2910
|
"parentCategory",
|
|
2182
2911
|
"articleCount"
|
|
2183
|
-
]
|
|
2912
|
+
],
|
|
2913
|
+
"submitEvent": "SAVE"
|
|
2184
2914
|
}
|
|
2185
|
-
]
|
|
2915
|
+
],
|
|
2916
|
+
"gap": "md",
|
|
2917
|
+
"direction": "vertical"
|
|
2186
2918
|
}
|
|
2187
2919
|
]
|
|
2188
2920
|
]
|
|
@@ -2197,6 +2929,13 @@
|
|
|
2197
2929
|
"modal",
|
|
2198
2930
|
null
|
|
2199
2931
|
],
|
|
2932
|
+
[
|
|
2933
|
+
"render-ui",
|
|
2934
|
+
"main",
|
|
2935
|
+
{
|
|
2936
|
+
"type": "box"
|
|
2937
|
+
}
|
|
2938
|
+
],
|
|
2200
2939
|
[
|
|
2201
2940
|
"notify",
|
|
2202
2941
|
"Cancelled",
|
|
@@ -2217,8 +2956,15 @@
|
|
|
2217
2956
|
],
|
|
2218
2957
|
[
|
|
2219
2958
|
"render-ui",
|
|
2220
|
-
"modal",
|
|
2221
|
-
null
|
|
2959
|
+
"modal",
|
|
2960
|
+
null
|
|
2961
|
+
],
|
|
2962
|
+
[
|
|
2963
|
+
"render-ui",
|
|
2964
|
+
"main",
|
|
2965
|
+
{
|
|
2966
|
+
"type": "box"
|
|
2967
|
+
}
|
|
2222
2968
|
],
|
|
2223
2969
|
[
|
|
2224
2970
|
"emit",
|
|
@@ -2227,20 +2973,65 @@
|
|
|
2227
2973
|
]
|
|
2228
2974
|
}
|
|
2229
2975
|
]
|
|
2230
|
-
}
|
|
2976
|
+
},
|
|
2977
|
+
"scope": "collection"
|
|
2231
2978
|
},
|
|
2232
2979
|
{
|
|
2233
2980
|
"name": "CategoryEdit",
|
|
2234
|
-
"linkedEntity": "Category",
|
|
2235
2981
|
"category": "interaction",
|
|
2982
|
+
"linkedEntity": "Category",
|
|
2236
2983
|
"emits": [
|
|
2237
2984
|
{
|
|
2238
|
-
"event": "
|
|
2239
|
-
"scope": "internal"
|
|
2985
|
+
"event": "CATEGORY_UPDATED"
|
|
2240
2986
|
},
|
|
2241
2987
|
{
|
|
2242
|
-
"event": "
|
|
2243
|
-
"
|
|
2988
|
+
"event": "CategoryLoaded",
|
|
2989
|
+
"description": "Fired when Category finishes loading",
|
|
2990
|
+
"scope": "internal",
|
|
2991
|
+
"payload": [
|
|
2992
|
+
{
|
|
2993
|
+
"name": "id",
|
|
2994
|
+
"type": "string",
|
|
2995
|
+
"required": true
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
"name": "name",
|
|
2999
|
+
"type": "string",
|
|
3000
|
+
"required": true
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
"name": "slug",
|
|
3004
|
+
"type": "string",
|
|
3005
|
+
"required": true
|
|
3006
|
+
},
|
|
3007
|
+
{
|
|
3008
|
+
"name": "description",
|
|
3009
|
+
"type": "string"
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
"name": "parentCategory",
|
|
3013
|
+
"type": "string"
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
"name": "articleCount",
|
|
3017
|
+
"type": "number"
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
"name": "pendingId",
|
|
3021
|
+
"type": "string"
|
|
3022
|
+
}
|
|
3023
|
+
]
|
|
3024
|
+
},
|
|
3025
|
+
{
|
|
3026
|
+
"event": "CategoryLoadFailed",
|
|
3027
|
+
"description": "Fired when Category fails to load",
|
|
3028
|
+
"scope": "internal",
|
|
3029
|
+
"payload": [
|
|
3030
|
+
{
|
|
3031
|
+
"name": "message",
|
|
3032
|
+
"type": "string"
|
|
3033
|
+
}
|
|
3034
|
+
]
|
|
2244
3035
|
}
|
|
2245
3036
|
],
|
|
2246
3037
|
"stateMachine": {
|
|
@@ -2260,12 +3051,11 @@
|
|
|
2260
3051
|
},
|
|
2261
3052
|
{
|
|
2262
3053
|
"key": "EDIT",
|
|
2263
|
-
"name": "
|
|
3054
|
+
"name": "Edit",
|
|
2264
3055
|
"payload": [
|
|
2265
3056
|
{
|
|
2266
3057
|
"name": "id",
|
|
2267
|
-
"type": "string"
|
|
2268
|
-
"required": true
|
|
3058
|
+
"type": "string"
|
|
2269
3059
|
}
|
|
2270
3060
|
]
|
|
2271
3061
|
},
|
|
@@ -2279,8 +3069,25 @@
|
|
|
2279
3069
|
"payload": [
|
|
2280
3070
|
{
|
|
2281
3071
|
"name": "data",
|
|
2282
|
-
"type": "
|
|
2283
|
-
|
|
3072
|
+
"type": "string"
|
|
3073
|
+
}
|
|
3074
|
+
]
|
|
3075
|
+
},
|
|
3076
|
+
{
|
|
3077
|
+
"key": "CATEGORY_UPDATED",
|
|
3078
|
+
"name": "Category Updated"
|
|
3079
|
+
},
|
|
3080
|
+
{
|
|
3081
|
+
"key": "CategoryLoaded",
|
|
3082
|
+
"name": "Category loaded"
|
|
3083
|
+
},
|
|
3084
|
+
{
|
|
3085
|
+
"key": "CategoryLoadFailed",
|
|
3086
|
+
"name": "Category load failed",
|
|
3087
|
+
"payload": [
|
|
3088
|
+
{
|
|
3089
|
+
"name": "message",
|
|
3090
|
+
"type": "string"
|
|
2284
3091
|
}
|
|
2285
3092
|
]
|
|
2286
3093
|
}
|
|
@@ -2306,31 +3113,32 @@
|
|
|
2306
3113
|
"fetch",
|
|
2307
3114
|
"Category",
|
|
2308
3115
|
{
|
|
2309
|
-
"id": "@payload.id"
|
|
3116
|
+
"id": "@payload.id",
|
|
3117
|
+
"emit": {
|
|
3118
|
+
"success": "CategoryLoaded",
|
|
3119
|
+
"failure": "CategoryLoadFailed"
|
|
3120
|
+
}
|
|
2310
3121
|
}
|
|
2311
3122
|
],
|
|
2312
3123
|
[
|
|
2313
3124
|
"render-ui",
|
|
2314
3125
|
"modal",
|
|
2315
3126
|
{
|
|
2316
|
-
"type": "stack",
|
|
2317
|
-
"direction": "vertical",
|
|
2318
|
-
"gap": "md",
|
|
2319
3127
|
"children": [
|
|
2320
3128
|
{
|
|
2321
|
-
"type": "stack",
|
|
2322
3129
|
"direction": "horizontal",
|
|
3130
|
+
"type": "stack",
|
|
2323
3131
|
"gap": "sm",
|
|
2324
3132
|
"children": [
|
|
2325
3133
|
{
|
|
3134
|
+
"size": "md",
|
|
2326
3135
|
"type": "icon",
|
|
2327
|
-
"name": "edit"
|
|
2328
|
-
"size": "md"
|
|
3136
|
+
"name": "edit"
|
|
2329
3137
|
},
|
|
2330
3138
|
{
|
|
3139
|
+
"variant": "h3",
|
|
2331
3140
|
"type": "typography",
|
|
2332
|
-
"content": "Edit Category"
|
|
2333
|
-
"variant": "h3"
|
|
3141
|
+
"content": "Edit Category"
|
|
2334
3142
|
}
|
|
2335
3143
|
]
|
|
2336
3144
|
},
|
|
@@ -2338,9 +3146,10 @@
|
|
|
2338
3146
|
"type": "divider"
|
|
2339
3147
|
},
|
|
2340
3148
|
{
|
|
2341
|
-
"
|
|
3149
|
+
"entityId": "@entity.id",
|
|
2342
3150
|
"entity": "Category",
|
|
2343
3151
|
"mode": "edit",
|
|
3152
|
+
"type": "form-section",
|
|
2344
3153
|
"submitEvent": "SAVE",
|
|
2345
3154
|
"cancelEvent": "CLOSE",
|
|
2346
3155
|
"fields": [
|
|
@@ -2349,10 +3158,12 @@
|
|
|
2349
3158
|
"description",
|
|
2350
3159
|
"parentCategory",
|
|
2351
3160
|
"articleCount"
|
|
2352
|
-
]
|
|
2353
|
-
"entityId": "@entity.id"
|
|
3161
|
+
]
|
|
2354
3162
|
}
|
|
2355
|
-
]
|
|
3163
|
+
],
|
|
3164
|
+
"gap": "md",
|
|
3165
|
+
"type": "stack",
|
|
3166
|
+
"direction": "vertical"
|
|
2356
3167
|
}
|
|
2357
3168
|
]
|
|
2358
3169
|
]
|
|
@@ -2367,6 +3178,13 @@
|
|
|
2367
3178
|
"modal",
|
|
2368
3179
|
null
|
|
2369
3180
|
],
|
|
3181
|
+
[
|
|
3182
|
+
"render-ui",
|
|
3183
|
+
"main",
|
|
3184
|
+
{
|
|
3185
|
+
"type": "box"
|
|
3186
|
+
}
|
|
3187
|
+
],
|
|
2370
3188
|
[
|
|
2371
3189
|
"notify",
|
|
2372
3190
|
"Cancelled",
|
|
@@ -2390,6 +3208,13 @@
|
|
|
2390
3208
|
"modal",
|
|
2391
3209
|
null
|
|
2392
3210
|
],
|
|
3211
|
+
[
|
|
3212
|
+
"render-ui",
|
|
3213
|
+
"main",
|
|
3214
|
+
{
|
|
3215
|
+
"type": "box"
|
|
3216
|
+
}
|
|
3217
|
+
],
|
|
2393
3218
|
[
|
|
2394
3219
|
"emit",
|
|
2395
3220
|
"CATEGORY_UPDATED"
|
|
@@ -2397,16 +3222,62 @@
|
|
|
2397
3222
|
]
|
|
2398
3223
|
}
|
|
2399
3224
|
]
|
|
2400
|
-
}
|
|
3225
|
+
},
|
|
3226
|
+
"scope": "collection"
|
|
2401
3227
|
},
|
|
2402
3228
|
{
|
|
2403
3229
|
"name": "CategoryView",
|
|
2404
|
-
"linkedEntity": "Category",
|
|
2405
3230
|
"category": "interaction",
|
|
3231
|
+
"linkedEntity": "Category",
|
|
2406
3232
|
"emits": [
|
|
2407
3233
|
{
|
|
2408
|
-
"event": "
|
|
2409
|
-
"
|
|
3234
|
+
"event": "CategoryLoaded",
|
|
3235
|
+
"description": "Fired when Category finishes loading",
|
|
3236
|
+
"scope": "internal",
|
|
3237
|
+
"payload": [
|
|
3238
|
+
{
|
|
3239
|
+
"name": "id",
|
|
3240
|
+
"type": "string",
|
|
3241
|
+
"required": true
|
|
3242
|
+
},
|
|
3243
|
+
{
|
|
3244
|
+
"name": "name",
|
|
3245
|
+
"type": "string",
|
|
3246
|
+
"required": true
|
|
3247
|
+
},
|
|
3248
|
+
{
|
|
3249
|
+
"name": "slug",
|
|
3250
|
+
"type": "string",
|
|
3251
|
+
"required": true
|
|
3252
|
+
},
|
|
3253
|
+
{
|
|
3254
|
+
"name": "description",
|
|
3255
|
+
"type": "string"
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
"name": "parentCategory",
|
|
3259
|
+
"type": "string"
|
|
3260
|
+
},
|
|
3261
|
+
{
|
|
3262
|
+
"name": "articleCount",
|
|
3263
|
+
"type": "number"
|
|
3264
|
+
},
|
|
3265
|
+
{
|
|
3266
|
+
"name": "pendingId",
|
|
3267
|
+
"type": "string"
|
|
3268
|
+
}
|
|
3269
|
+
]
|
|
3270
|
+
},
|
|
3271
|
+
{
|
|
3272
|
+
"event": "CategoryLoadFailed",
|
|
3273
|
+
"description": "Fired when Category fails to load",
|
|
3274
|
+
"scope": "internal",
|
|
3275
|
+
"payload": [
|
|
3276
|
+
{
|
|
3277
|
+
"name": "message",
|
|
3278
|
+
"type": "string"
|
|
3279
|
+
}
|
|
3280
|
+
]
|
|
2410
3281
|
}
|
|
2411
3282
|
],
|
|
2412
3283
|
"stateMachine": {
|
|
@@ -2426,12 +3297,11 @@
|
|
|
2426
3297
|
},
|
|
2427
3298
|
{
|
|
2428
3299
|
"key": "VIEW",
|
|
2429
|
-
"name": "
|
|
3300
|
+
"name": "View",
|
|
2430
3301
|
"payload": [
|
|
2431
3302
|
{
|
|
2432
3303
|
"name": "id",
|
|
2433
|
-
"type": "string"
|
|
2434
|
-
"required": true
|
|
3304
|
+
"type": "string"
|
|
2435
3305
|
}
|
|
2436
3306
|
]
|
|
2437
3307
|
},
|
|
@@ -2441,12 +3311,19 @@
|
|
|
2441
3311
|
},
|
|
2442
3312
|
{
|
|
2443
3313
|
"key": "SAVE",
|
|
2444
|
-
"name": "Save"
|
|
3314
|
+
"name": "Save"
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
"key": "CategoryLoaded",
|
|
3318
|
+
"name": "Category loaded"
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
"key": "CategoryLoadFailed",
|
|
3322
|
+
"name": "Category load failed",
|
|
2445
3323
|
"payload": [
|
|
2446
3324
|
{
|
|
2447
|
-
"name": "
|
|
2448
|
-
"type": "
|
|
2449
|
-
"required": true
|
|
3325
|
+
"name": "message",
|
|
3326
|
+
"type": "string"
|
|
2450
3327
|
}
|
|
2451
3328
|
]
|
|
2452
3329
|
}
|
|
@@ -2472,6 +3349,10 @@
|
|
|
2472
3349
|
"fetch",
|
|
2473
3350
|
"Category",
|
|
2474
3351
|
{
|
|
3352
|
+
"emit": {
|
|
3353
|
+
"success": "CategoryLoaded",
|
|
3354
|
+
"failure": "CategoryLoadFailed"
|
|
3355
|
+
},
|
|
2475
3356
|
"id": "@payload.id"
|
|
2476
3357
|
}
|
|
2477
3358
|
],
|
|
@@ -2479,51 +3360,50 @@
|
|
|
2479
3360
|
"render-ui",
|
|
2480
3361
|
"modal",
|
|
2481
3362
|
{
|
|
2482
|
-
"type": "stack",
|
|
2483
|
-
"direction": "vertical",
|
|
2484
3363
|
"gap": "md",
|
|
3364
|
+
"direction": "vertical",
|
|
2485
3365
|
"children": [
|
|
2486
3366
|
{
|
|
2487
3367
|
"type": "stack",
|
|
2488
|
-
"direction": "horizontal",
|
|
2489
|
-
"gap": "sm",
|
|
2490
3368
|
"align": "center",
|
|
2491
3369
|
"children": [
|
|
2492
3370
|
{
|
|
3371
|
+
"size": "md",
|
|
2493
3372
|
"type": "icon",
|
|
2494
|
-
"name": "eye"
|
|
2495
|
-
"size": "md"
|
|
3373
|
+
"name": "eye"
|
|
2496
3374
|
},
|
|
2497
3375
|
{
|
|
2498
|
-
"type": "typography",
|
|
2499
3376
|
"variant": "h3",
|
|
3377
|
+
"type": "typography",
|
|
2500
3378
|
"content": "@entity.name"
|
|
2501
3379
|
}
|
|
2502
|
-
]
|
|
3380
|
+
],
|
|
3381
|
+
"direction": "horizontal",
|
|
3382
|
+
"gap": "sm"
|
|
2503
3383
|
},
|
|
2504
3384
|
{
|
|
2505
3385
|
"type": "divider"
|
|
2506
3386
|
},
|
|
2507
3387
|
{
|
|
2508
|
-
"type": "stack",
|
|
2509
|
-
"direction": "horizontal",
|
|
2510
3388
|
"gap": "md",
|
|
3389
|
+
"type": "stack",
|
|
2511
3390
|
"children": [
|
|
2512
3391
|
{
|
|
3392
|
+
"content": "Name",
|
|
2513
3393
|
"type": "typography",
|
|
2514
|
-
"variant": "caption"
|
|
2515
|
-
"content": "Name"
|
|
3394
|
+
"variant": "caption"
|
|
2516
3395
|
},
|
|
2517
3396
|
{
|
|
2518
3397
|
"type": "typography",
|
|
2519
3398
|
"variant": "body",
|
|
2520
3399
|
"content": "@entity.name"
|
|
2521
3400
|
}
|
|
2522
|
-
]
|
|
3401
|
+
],
|
|
3402
|
+
"direction": "horizontal"
|
|
2523
3403
|
},
|
|
2524
3404
|
{
|
|
2525
|
-
"type": "stack",
|
|
2526
3405
|
"direction": "horizontal",
|
|
3406
|
+
"type": "stack",
|
|
2527
3407
|
"gap": "md",
|
|
2528
3408
|
"children": [
|
|
2529
3409
|
{
|
|
@@ -2539,81 +3419,82 @@
|
|
|
2539
3419
|
]
|
|
2540
3420
|
},
|
|
2541
3421
|
{
|
|
2542
|
-
"type": "stack",
|
|
2543
|
-
"direction": "horizontal",
|
|
2544
3422
|
"gap": "md",
|
|
3423
|
+
"direction": "horizontal",
|
|
2545
3424
|
"children": [
|
|
2546
3425
|
{
|
|
2547
3426
|
"type": "typography",
|
|
2548
|
-
"
|
|
2549
|
-
"
|
|
3427
|
+
"content": "Description",
|
|
3428
|
+
"variant": "caption"
|
|
2550
3429
|
},
|
|
2551
3430
|
{
|
|
2552
3431
|
"type": "typography",
|
|
2553
|
-
"
|
|
2554
|
-
"
|
|
3432
|
+
"content": "@entity.description",
|
|
3433
|
+
"variant": "body"
|
|
2555
3434
|
}
|
|
2556
|
-
]
|
|
3435
|
+
],
|
|
3436
|
+
"type": "stack"
|
|
2557
3437
|
},
|
|
2558
3438
|
{
|
|
2559
3439
|
"type": "stack",
|
|
2560
|
-
"direction": "horizontal",
|
|
2561
3440
|
"gap": "md",
|
|
3441
|
+
"direction": "horizontal",
|
|
2562
3442
|
"children": [
|
|
2563
3443
|
{
|
|
3444
|
+
"content": "Parent Category",
|
|
2564
3445
|
"type": "typography",
|
|
2565
|
-
"variant": "caption"
|
|
2566
|
-
"content": "Parent Category"
|
|
3446
|
+
"variant": "caption"
|
|
2567
3447
|
},
|
|
2568
3448
|
{
|
|
2569
3449
|
"type": "typography",
|
|
2570
|
-
"
|
|
2571
|
-
"
|
|
3450
|
+
"content": "@entity.parentCategory",
|
|
3451
|
+
"variant": "body"
|
|
2572
3452
|
}
|
|
2573
3453
|
]
|
|
2574
3454
|
},
|
|
2575
3455
|
{
|
|
2576
|
-
"type": "stack",
|
|
2577
3456
|
"direction": "horizontal",
|
|
2578
|
-
"gap": "md",
|
|
2579
3457
|
"children": [
|
|
2580
3458
|
{
|
|
2581
3459
|
"type": "typography",
|
|
2582
|
-
"
|
|
2583
|
-
"
|
|
3460
|
+
"content": "Article Count",
|
|
3461
|
+
"variant": "caption"
|
|
2584
3462
|
},
|
|
2585
3463
|
{
|
|
2586
|
-
"type": "typography",
|
|
2587
3464
|
"variant": "body",
|
|
2588
|
-
"content": "@entity.articleCount"
|
|
3465
|
+
"content": "@entity.articleCount",
|
|
3466
|
+
"type": "typography"
|
|
2589
3467
|
}
|
|
2590
|
-
]
|
|
3468
|
+
],
|
|
3469
|
+
"type": "stack",
|
|
3470
|
+
"gap": "md"
|
|
2591
3471
|
},
|
|
2592
3472
|
{
|
|
2593
3473
|
"type": "divider"
|
|
2594
3474
|
},
|
|
2595
3475
|
{
|
|
2596
|
-
"type": "stack",
|
|
2597
|
-
"direction": "horizontal",
|
|
2598
|
-
"gap": "sm",
|
|
2599
3476
|
"justify": "end",
|
|
3477
|
+
"gap": "sm",
|
|
2600
3478
|
"children": [
|
|
2601
3479
|
{
|
|
3480
|
+
"event": "EDIT",
|
|
2602
3481
|
"type": "button",
|
|
2603
3482
|
"label": "Edit",
|
|
2604
|
-
"event": "EDIT",
|
|
2605
3483
|
"variant": "primary",
|
|
2606
3484
|
"icon": "edit"
|
|
2607
3485
|
},
|
|
2608
3486
|
{
|
|
2609
|
-
"
|
|
3487
|
+
"variant": "ghost",
|
|
2610
3488
|
"label": "Close",
|
|
2611
3489
|
"event": "CLOSE",
|
|
2612
|
-
"
|
|
3490
|
+
"type": "button"
|
|
2613
3491
|
}
|
|
2614
|
-
]
|
|
3492
|
+
],
|
|
3493
|
+
"type": "stack",
|
|
3494
|
+
"direction": "horizontal"
|
|
2615
3495
|
}
|
|
2616
|
-
]
|
|
3496
|
+
],
|
|
3497
|
+
"type": "stack"
|
|
2617
3498
|
}
|
|
2618
3499
|
]
|
|
2619
3500
|
]
|
|
@@ -2628,6 +3509,13 @@
|
|
|
2628
3509
|
"modal",
|
|
2629
3510
|
null
|
|
2630
3511
|
],
|
|
3512
|
+
[
|
|
3513
|
+
"render-ui",
|
|
3514
|
+
"main",
|
|
3515
|
+
{
|
|
3516
|
+
"type": "box"
|
|
3517
|
+
}
|
|
3518
|
+
],
|
|
2631
3519
|
[
|
|
2632
3520
|
"notify",
|
|
2633
3521
|
"Cancelled",
|
|
@@ -2644,24 +3532,76 @@
|
|
|
2644
3532
|
"render-ui",
|
|
2645
3533
|
"modal",
|
|
2646
3534
|
null
|
|
3535
|
+
],
|
|
3536
|
+
[
|
|
3537
|
+
"render-ui",
|
|
3538
|
+
"main",
|
|
3539
|
+
{
|
|
3540
|
+
"type": "box"
|
|
3541
|
+
}
|
|
2647
3542
|
]
|
|
2648
3543
|
]
|
|
2649
3544
|
}
|
|
2650
3545
|
]
|
|
2651
|
-
}
|
|
3546
|
+
},
|
|
3547
|
+
"scope": "collection"
|
|
2652
3548
|
},
|
|
2653
3549
|
{
|
|
2654
3550
|
"name": "CategoryDelete",
|
|
2655
|
-
"linkedEntity": "Category",
|
|
2656
3551
|
"category": "interaction",
|
|
3552
|
+
"linkedEntity": "Category",
|
|
2657
3553
|
"emits": [
|
|
2658
3554
|
{
|
|
2659
|
-
"event": "
|
|
2660
|
-
"scope": "internal"
|
|
3555
|
+
"event": "CATEGORY_DELETED"
|
|
2661
3556
|
},
|
|
2662
3557
|
{
|
|
2663
|
-
"event": "
|
|
2664
|
-
"
|
|
3558
|
+
"event": "CategoryLoaded",
|
|
3559
|
+
"description": "Fired when Category finishes loading",
|
|
3560
|
+
"scope": "internal",
|
|
3561
|
+
"payload": [
|
|
3562
|
+
{
|
|
3563
|
+
"name": "id",
|
|
3564
|
+
"type": "string",
|
|
3565
|
+
"required": true
|
|
3566
|
+
},
|
|
3567
|
+
{
|
|
3568
|
+
"name": "name",
|
|
3569
|
+
"type": "string",
|
|
3570
|
+
"required": true
|
|
3571
|
+
},
|
|
3572
|
+
{
|
|
3573
|
+
"name": "slug",
|
|
3574
|
+
"type": "string",
|
|
3575
|
+
"required": true
|
|
3576
|
+
},
|
|
3577
|
+
{
|
|
3578
|
+
"name": "description",
|
|
3579
|
+
"type": "string"
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
"name": "parentCategory",
|
|
3583
|
+
"type": "string"
|
|
3584
|
+
},
|
|
3585
|
+
{
|
|
3586
|
+
"name": "articleCount",
|
|
3587
|
+
"type": "number"
|
|
3588
|
+
},
|
|
3589
|
+
{
|
|
3590
|
+
"name": "pendingId",
|
|
3591
|
+
"type": "string"
|
|
3592
|
+
}
|
|
3593
|
+
]
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
"event": "CategoryLoadFailed",
|
|
3597
|
+
"description": "Fired when Category fails to load",
|
|
3598
|
+
"scope": "internal",
|
|
3599
|
+
"payload": [
|
|
3600
|
+
{
|
|
3601
|
+
"name": "message",
|
|
3602
|
+
"type": "string"
|
|
3603
|
+
}
|
|
3604
|
+
]
|
|
2665
3605
|
}
|
|
2666
3606
|
],
|
|
2667
3607
|
"stateMachine": {
|
|
@@ -2681,18 +3621,17 @@
|
|
|
2681
3621
|
},
|
|
2682
3622
|
{
|
|
2683
3623
|
"key": "DELETE",
|
|
2684
|
-
"name": "
|
|
3624
|
+
"name": "Delete",
|
|
2685
3625
|
"payload": [
|
|
2686
3626
|
{
|
|
2687
3627
|
"name": "id",
|
|
2688
|
-
"type": "string"
|
|
2689
|
-
"required": true
|
|
3628
|
+
"type": "string"
|
|
2690
3629
|
}
|
|
2691
3630
|
]
|
|
2692
3631
|
},
|
|
2693
3632
|
{
|
|
2694
3633
|
"key": "CONFIRM_DELETE",
|
|
2695
|
-
"name": "Confirm"
|
|
3634
|
+
"name": "Confirm Delete"
|
|
2696
3635
|
},
|
|
2697
3636
|
{
|
|
2698
3637
|
"key": "CANCEL",
|
|
@@ -2701,6 +3640,24 @@
|
|
|
2701
3640
|
{
|
|
2702
3641
|
"key": "CLOSE",
|
|
2703
3642
|
"name": "Close"
|
|
3643
|
+
},
|
|
3644
|
+
{
|
|
3645
|
+
"key": "CATEGORY_DELETED",
|
|
3646
|
+
"name": "Category Deleted"
|
|
3647
|
+
},
|
|
3648
|
+
{
|
|
3649
|
+
"key": "CategoryLoaded",
|
|
3650
|
+
"name": "Category loaded"
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
"key": "CategoryLoadFailed",
|
|
3654
|
+
"name": "Category load failed",
|
|
3655
|
+
"payload": [
|
|
3656
|
+
{
|
|
3657
|
+
"name": "message",
|
|
3658
|
+
"type": "string"
|
|
3659
|
+
}
|
|
3660
|
+
]
|
|
2704
3661
|
}
|
|
2705
3662
|
],
|
|
2706
3663
|
"transitions": [
|
|
@@ -2729,22 +3686,21 @@
|
|
|
2729
3686
|
"fetch",
|
|
2730
3687
|
"Category",
|
|
2731
3688
|
{
|
|
2732
|
-
"id": "@payload.id"
|
|
3689
|
+
"id": "@payload.id",
|
|
3690
|
+
"emit": {
|
|
3691
|
+
"failure": "CategoryLoadFailed",
|
|
3692
|
+
"success": "CategoryLoaded"
|
|
3693
|
+
}
|
|
2733
3694
|
}
|
|
2734
3695
|
],
|
|
2735
3696
|
[
|
|
2736
3697
|
"render-ui",
|
|
2737
3698
|
"modal",
|
|
2738
3699
|
{
|
|
2739
|
-
"type": "stack",
|
|
2740
3700
|
"direction": "vertical",
|
|
2741
|
-
"gap": "md",
|
|
2742
3701
|
"children": [
|
|
2743
3702
|
{
|
|
2744
|
-
"type": "stack",
|
|
2745
3703
|
"direction": "horizontal",
|
|
2746
|
-
"gap": "sm",
|
|
2747
|
-
"align": "center",
|
|
2748
3704
|
"children": [
|
|
2749
3705
|
{
|
|
2750
3706
|
"type": "icon",
|
|
@@ -2752,42 +3708,47 @@
|
|
|
2752
3708
|
"size": "md"
|
|
2753
3709
|
},
|
|
2754
3710
|
{
|
|
2755
|
-
"type": "typography",
|
|
2756
3711
|
"content": "Delete Category",
|
|
3712
|
+
"type": "typography",
|
|
2757
3713
|
"variant": "h3"
|
|
2758
3714
|
}
|
|
2759
|
-
]
|
|
3715
|
+
],
|
|
3716
|
+
"align": "center",
|
|
3717
|
+
"gap": "sm",
|
|
3718
|
+
"type": "stack"
|
|
2760
3719
|
},
|
|
2761
3720
|
{
|
|
2762
3721
|
"type": "divider"
|
|
2763
3722
|
},
|
|
2764
3723
|
{
|
|
2765
|
-
"
|
|
3724
|
+
"message": "This action cannot be undone.",
|
|
2766
3725
|
"variant": "danger",
|
|
2767
|
-
"
|
|
3726
|
+
"type": "alert"
|
|
2768
3727
|
},
|
|
2769
3728
|
{
|
|
2770
|
-
"type": "stack",
|
|
2771
|
-
"direction": "horizontal",
|
|
2772
3729
|
"gap": "sm",
|
|
2773
|
-
"justify": "end",
|
|
2774
3730
|
"children": [
|
|
2775
3731
|
{
|
|
3732
|
+
"variant": "ghost",
|
|
2776
3733
|
"type": "button",
|
|
2777
|
-
"label": "Cancel",
|
|
2778
3734
|
"event": "CANCEL",
|
|
2779
|
-
"
|
|
3735
|
+
"label": "Cancel"
|
|
2780
3736
|
},
|
|
2781
3737
|
{
|
|
2782
3738
|
"type": "button",
|
|
2783
3739
|
"label": "Delete",
|
|
2784
3740
|
"event": "CONFIRM_DELETE",
|
|
2785
|
-
"
|
|
2786
|
-
"
|
|
3741
|
+
"icon": "check",
|
|
3742
|
+
"variant": "danger"
|
|
2787
3743
|
}
|
|
2788
|
-
]
|
|
3744
|
+
],
|
|
3745
|
+
"type": "stack",
|
|
3746
|
+
"direction": "horizontal",
|
|
3747
|
+
"justify": "end"
|
|
2789
3748
|
}
|
|
2790
|
-
]
|
|
3749
|
+
],
|
|
3750
|
+
"gap": "md",
|
|
3751
|
+
"type": "stack"
|
|
2791
3752
|
}
|
|
2792
3753
|
]
|
|
2793
3754
|
]
|
|
@@ -2808,6 +3769,13 @@
|
|
|
2808
3769
|
"modal",
|
|
2809
3770
|
null
|
|
2810
3771
|
],
|
|
3772
|
+
[
|
|
3773
|
+
"render-ui",
|
|
3774
|
+
"main",
|
|
3775
|
+
{
|
|
3776
|
+
"type": "box"
|
|
3777
|
+
}
|
|
3778
|
+
],
|
|
2811
3779
|
[
|
|
2812
3780
|
"ref",
|
|
2813
3781
|
"Category"
|
|
@@ -2828,6 +3796,13 @@
|
|
|
2828
3796
|
"modal",
|
|
2829
3797
|
null
|
|
2830
3798
|
],
|
|
3799
|
+
[
|
|
3800
|
+
"render-ui",
|
|
3801
|
+
"main",
|
|
3802
|
+
{
|
|
3803
|
+
"type": "box"
|
|
3804
|
+
}
|
|
3805
|
+
],
|
|
2831
3806
|
[
|
|
2832
3807
|
"ref",
|
|
2833
3808
|
"Category"
|
|
@@ -2844,6 +3819,13 @@
|
|
|
2844
3819
|
"modal",
|
|
2845
3820
|
null
|
|
2846
3821
|
],
|
|
3822
|
+
[
|
|
3823
|
+
"render-ui",
|
|
3824
|
+
"main",
|
|
3825
|
+
{
|
|
3826
|
+
"type": "box"
|
|
3827
|
+
}
|
|
3828
|
+
],
|
|
2847
3829
|
[
|
|
2848
3830
|
"ref",
|
|
2849
3831
|
"Category"
|
|
@@ -2851,12 +3833,13 @@
|
|
|
2851
3833
|
]
|
|
2852
3834
|
}
|
|
2853
3835
|
]
|
|
2854
|
-
}
|
|
3836
|
+
},
|
|
3837
|
+
"scope": "collection"
|
|
2855
3838
|
}
|
|
2856
3839
|
],
|
|
2857
3840
|
"pages": [
|
|
2858
3841
|
{
|
|
2859
|
-
"name": "
|
|
3842
|
+
"name": "Categories",
|
|
2860
3843
|
"path": "/categories",
|
|
2861
3844
|
"traits": [
|
|
2862
3845
|
{
|
|
@@ -2879,4 +3862,4 @@
|
|
|
2879
3862
|
]
|
|
2880
3863
|
}
|
|
2881
3864
|
]
|
|
2882
|
-
}
|
|
3865
|
+
}
|