@almadar/std 10.0.0 → 11.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/agent/atoms/std-agent-activity-log.orb +80 -80
- package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
- package/behaviors/registry/agent/atoms/std-agent-classifier.orb +131 -113
- package/behaviors/registry/agent/atoms/std-agent-completion.orb +116 -98
- package/behaviors/registry/agent/atoms/std-agent-context-window.orb +384 -384
- package/behaviors/registry/agent/atoms/std-agent-conversation.orb +106 -106
- package/behaviors/registry/agent/atoms/std-agent-memory.orb +75 -75
- package/behaviors/registry/agent/atoms/std-agent-provider.orb +163 -139
- package/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
- package/behaviors/registry/agent/atoms/std-agent-session.orb +130 -130
- package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +185 -185
- package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +344 -344
- package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +81 -63
- package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +189 -189
- package/behaviors/registry/agent/molecules/std-agent-learner.orb +163 -163
- package/behaviors/registry/agent/molecules/std-agent-planner.orb +120 -120
- package/behaviors/registry/agent/molecules/std-agent-rag.orb +108 -108
- package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
- package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1097 -1072
- package/behaviors/registry/agent/organisms/std-agent-builder.orb +3183 -3043
- package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2309 -2217
- package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1083 -1029
- package/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -768
- package/behaviors/registry/app/organisms/std-api-gateway.orb +929 -887
- package/behaviors/registry/app/organisms/std-booking-system.orb +1247 -1163
- package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +822 -780
- package/behaviors/registry/app/organisms/std-cms.orb +608 -512
- package/behaviors/registry/app/organisms/std-coding-academy.orb +393 -393
- package/behaviors/registry/app/organisms/std-crm.orb +887 -791
- package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1408 -1366
- package/behaviors/registry/app/organisms/std-ecommerce.orb +1147 -1021
- package/behaviors/registry/app/organisms/std-finance-tracker.orb +670 -616
- package/behaviors/registry/app/organisms/std-healthcare.orb +1447 -1351
- package/behaviors/registry/app/organisms/std-helpdesk.orb +720 -666
- package/behaviors/registry/app/organisms/std-hr-portal.orb +1286 -1202
- package/behaviors/registry/app/organisms/std-iot-dashboard.orb +925 -883
- package/behaviors/registry/app/organisms/std-lms.orb +935 -893
- package/behaviors/registry/app/organisms/std-project-manager.orb +834 -750
- package/behaviors/registry/app/organisms/std-realtime-chat.orb +735 -681
- package/behaviors/registry/app/organisms/std-social-feed.orb +235 -211
- package/behaviors/registry/app/organisms/std-trading-dashboard.orb +730 -688
- package/behaviors/registry/core/atoms/std-browse.orb +56 -56
- package/behaviors/registry/core/atoms/std-cache-aside.orb +95 -95
- package/behaviors/registry/core/atoms/std-calendar.orb +54 -54
- package/behaviors/registry/core/atoms/std-circuit-breaker.orb +180 -180
- package/behaviors/registry/core/atoms/std-confirmation.orb +20 -19
- package/behaviors/registry/core/atoms/std-display.orb +388 -388
- package/behaviors/registry/core/atoms/std-drawer.orb +54 -54
- package/behaviors/registry/core/atoms/std-filter.orb +47 -47
- package/behaviors/registry/core/atoms/std-gallery.orb +51 -51
- package/behaviors/registry/core/atoms/std-modal.orb +19 -10
- package/behaviors/registry/core/atoms/std-pagination.orb +42 -42
- package/behaviors/registry/core/atoms/std-push.orb +43 -43
- package/behaviors/registry/core/atoms/std-rate-limiter.orb +194 -194
- package/behaviors/registry/core/atoms/std-related.orb +37 -37
- package/behaviors/registry/core/atoms/std-search.orb +68 -68
- package/behaviors/registry/core/atoms/std-selection.orb +90 -90
- package/behaviors/registry/core/atoms/std-tabs.orb +44 -44
- package/behaviors/registry/core/molecules/std-cart.orb +47 -47
- package/behaviors/registry/core/molecules/std-filtered-list.orb +6 -6
- package/behaviors/registry/core/molecules/std-form-advanced.orb +132 -132
- package/behaviors/registry/core/molecules/std-list.orb +72 -76
- package/behaviors/registry/core/molecules/std-wizard-form.orb +146 -146
- package/behaviors/registry/game/atoms/std-collision.orb +122 -122
- package/behaviors/registry/game/atoms/std-combat.orb +66 -66
- package/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
- package/behaviors/registry/game/atoms/std-game-canvas2d.orb +43 -43
- package/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
- package/behaviors/registry/game/atoms/std-movement.orb +291 -291
- package/behaviors/registry/game/atoms/std-overworld.orb +69 -69
- package/behaviors/registry/game/atoms/std-physics2d.orb +77 -77
- package/behaviors/registry/game/atoms/std-quest.orb +133 -133
- package/behaviors/registry/game/atoms/std-timer.orb +291 -291
- package/behaviors/registry/game/organisms/std-arcade-game.orb +139 -139
- package/behaviors/registry/game/organisms/std-logic-training.orb +81 -81
- package/behaviors/registry/game/organisms/std-platformer-app.orb +273 -237
- package/behaviors/registry/game/organisms/std-puzzle-app.orb +98 -98
- package/behaviors/registry/game/organisms/std-rpg-game.orb +407 -371
- package/behaviors/registry/game/organisms/std-stem-lab.orb +378 -378
- package/behaviors/registry/game/organisms/std-strategy-game.orb +557 -557
- package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +282 -20
- package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +84 -84
- package/behaviors/registry/service/atoms/std-service-email.orb +88 -88
- package/behaviors/registry/service/atoms/std-service-github.orb +88 -88
- package/behaviors/registry/service/atoms/std-service-llm.orb +119 -119
- package/behaviors/registry/service/atoms/std-service-oauth.orb +122 -122
- package/behaviors/registry/service/atoms/std-service-redis.orb +99 -99
- package/behaviors/registry/service/atoms/std-service-storage.orb +109 -109
- package/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
- package/behaviors/registry/service/atoms/std-service-twilio.orb +112 -112
- package/behaviors/registry/service/atoms/std-service-youtube.orb +111 -111
- package/behaviors/registry/service/organisms/std-service-marketplace.orb +1098 -1014
- package/behaviors/registry/service/organisms/std-service-research-assistant.orb +956 -956
- package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +80 -80
- package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
- package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +131 -113
- package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +116 -98
- package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +384 -384
- package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +106 -106
- package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +75 -75
- package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +163 -139
- package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +64 -64
- package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +130 -130
- package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +185 -185
- package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +344 -344
- package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +81 -63
- package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +189 -189
- package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +163 -163
- package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +120 -120
- package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +108 -108
- package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
- package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1097 -1072
- package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3183 -3043
- package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2309 -2217
- package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +1083 -1029
- package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +793 -768
- package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +929 -887
- package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1247 -1163
- package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +822 -780
- package/dist/behaviors/registry/app/organisms/std-cms.orb +608 -512
- package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +393 -393
- package/dist/behaviors/registry/app/organisms/std-crm.orb +887 -791
- package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1408 -1366
- package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +1147 -1021
- package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +670 -616
- package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1447 -1351
- package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +720 -666
- package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1286 -1202
- package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +925 -883
- package/dist/behaviors/registry/app/organisms/std-lms.orb +935 -893
- package/dist/behaviors/registry/app/organisms/std-project-manager.orb +834 -750
- package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +735 -681
- package/dist/behaviors/registry/app/organisms/std-social-feed.orb +235 -211
- package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +730 -688
- package/dist/behaviors/registry/core/atoms/std-browse.orb +56 -56
- package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +95 -95
- package/dist/behaviors/registry/core/atoms/std-calendar.orb +54 -54
- package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +180 -180
- package/dist/behaviors/registry/core/atoms/std-confirmation.orb +20 -19
- package/dist/behaviors/registry/core/atoms/std-display.orb +388 -388
- package/dist/behaviors/registry/core/atoms/std-drawer.orb +54 -54
- package/dist/behaviors/registry/core/atoms/std-filter.orb +47 -47
- package/dist/behaviors/registry/core/atoms/std-gallery.orb +51 -51
- package/dist/behaviors/registry/core/atoms/std-modal.orb +19 -10
- package/dist/behaviors/registry/core/atoms/std-pagination.orb +42 -42
- package/dist/behaviors/registry/core/atoms/std-push.orb +43 -43
- package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +194 -194
- package/dist/behaviors/registry/core/atoms/std-related.orb +37 -37
- package/dist/behaviors/registry/core/atoms/std-search.orb +68 -68
- package/dist/behaviors/registry/core/atoms/std-selection.orb +90 -90
- package/dist/behaviors/registry/core/atoms/std-tabs.orb +44 -44
- package/dist/behaviors/registry/core/molecules/std-cart.orb +47 -47
- package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +6 -6
- package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +132 -132
- package/dist/behaviors/registry/core/molecules/std-list.orb +72 -76
- package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +146 -146
- package/dist/behaviors/registry/game/atoms/std-collision.orb +122 -122
- package/dist/behaviors/registry/game/atoms/std-combat.orb +66 -66
- package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +25 -25
- package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +43 -43
- package/dist/behaviors/registry/game/atoms/std-gameflow.orb +37 -37
- package/dist/behaviors/registry/game/atoms/std-movement.orb +291 -291
- package/dist/behaviors/registry/game/atoms/std-overworld.orb +69 -69
- package/dist/behaviors/registry/game/atoms/std-physics2d.orb +77 -77
- package/dist/behaviors/registry/game/atoms/std-quest.orb +133 -133
- package/dist/behaviors/registry/game/atoms/std-timer.orb +291 -291
- package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +139 -139
- package/dist/behaviors/registry/game/organisms/std-logic-training.orb +81 -81
- package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +273 -237
- package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +98 -98
- package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +407 -371
- package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +378 -378
- package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +557 -557
- package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +282 -20
- package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +84 -84
- package/dist/behaviors/registry/service/atoms/std-service-email.orb +88 -88
- package/dist/behaviors/registry/service/atoms/std-service-github.orb +88 -88
- package/dist/behaviors/registry/service/atoms/std-service-llm.orb +119 -119
- package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +122 -122
- package/dist/behaviors/registry/service/atoms/std-service-redis.orb +99 -99
- package/dist/behaviors/registry/service/atoms/std-service-storage.orb +109 -109
- package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
- package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +112 -112
- package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +111 -111
- package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +1098 -1014
- package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +956 -956
- package/package.json +1 -1
|
@@ -581,21 +581,21 @@
|
|
|
581
581
|
"main",
|
|
582
582
|
{
|
|
583
583
|
"align": "center",
|
|
584
|
-
"
|
|
584
|
+
"className": "py-12",
|
|
585
585
|
"children": [
|
|
586
586
|
{
|
|
587
587
|
"type": "spinner"
|
|
588
588
|
},
|
|
589
589
|
{
|
|
590
|
-
"content": "Loading…",
|
|
591
|
-
"variant": "caption",
|
|
592
590
|
"type": "typography",
|
|
591
|
+
"variant": "caption",
|
|
592
|
+
"content": "Loading…",
|
|
593
593
|
"color": "muted"
|
|
594
594
|
}
|
|
595
595
|
],
|
|
596
|
+
"direction": "vertical",
|
|
596
597
|
"type": "stack",
|
|
597
|
-
"gap": "md"
|
|
598
|
-
"className": "py-12"
|
|
598
|
+
"gap": "md"
|
|
599
599
|
}
|
|
600
600
|
]
|
|
601
601
|
]
|
|
@@ -610,42 +610,22 @@
|
|
|
610
610
|
"main",
|
|
611
611
|
{
|
|
612
612
|
"appName": "CmsApp",
|
|
613
|
-
"type": "dashboard-layout",
|
|
614
|
-
"navItems": [
|
|
615
|
-
{
|
|
616
|
-
"href": "/articles",
|
|
617
|
-
"label": "Articles",
|
|
618
|
-
"icon": "file-text"
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
"href": "/media",
|
|
622
|
-
"icon": "image",
|
|
623
|
-
"label": "Media"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"href": "/categories",
|
|
627
|
-
"icon": "folder",
|
|
628
|
-
"label": "Categories"
|
|
629
|
-
}
|
|
630
|
-
],
|
|
631
613
|
"children": [
|
|
632
614
|
{
|
|
615
|
+
"gap": "lg",
|
|
616
|
+
"type": "stack",
|
|
617
|
+
"direction": "vertical",
|
|
633
618
|
"children": [
|
|
634
619
|
{
|
|
635
|
-
"justify": "between",
|
|
636
|
-
"gap": "md",
|
|
637
|
-
"direction": "horizontal",
|
|
638
620
|
"type": "stack",
|
|
639
|
-
"align": "center",
|
|
640
621
|
"children": [
|
|
641
622
|
{
|
|
642
|
-
"direction": "horizontal",
|
|
643
|
-
"type": "stack",
|
|
644
623
|
"gap": "sm",
|
|
624
|
+
"align": "center",
|
|
645
625
|
"children": [
|
|
646
626
|
{
|
|
647
|
-
"
|
|
648
|
-
"
|
|
627
|
+
"name": "file-text",
|
|
628
|
+
"type": "icon"
|
|
649
629
|
},
|
|
650
630
|
{
|
|
651
631
|
"content": "Articles",
|
|
@@ -653,38 +633,39 @@
|
|
|
653
633
|
"type": "typography"
|
|
654
634
|
}
|
|
655
635
|
],
|
|
656
|
-
"
|
|
636
|
+
"type": "stack",
|
|
637
|
+
"direction": "horizontal"
|
|
657
638
|
},
|
|
658
639
|
{
|
|
659
|
-
"gap": "sm",
|
|
660
640
|
"type": "stack",
|
|
641
|
+
"gap": "sm",
|
|
642
|
+
"direction": "horizontal",
|
|
661
643
|
"children": [
|
|
662
644
|
{
|
|
645
|
+
"type": "button",
|
|
646
|
+
"variant": "primary",
|
|
663
647
|
"icon": "plus",
|
|
664
648
|
"action": "CREATE",
|
|
665
|
-
"
|
|
666
|
-
"label": "Create Article",
|
|
667
|
-
"type": "button"
|
|
649
|
+
"label": "Create Article"
|
|
668
650
|
}
|
|
669
|
-
]
|
|
670
|
-
"direction": "horizontal"
|
|
651
|
+
]
|
|
671
652
|
}
|
|
672
|
-
]
|
|
653
|
+
],
|
|
654
|
+
"align": "center",
|
|
655
|
+
"direction": "horizontal",
|
|
656
|
+
"gap": "md",
|
|
657
|
+
"justify": "between"
|
|
673
658
|
},
|
|
674
659
|
{
|
|
675
660
|
"type": "divider"
|
|
676
661
|
},
|
|
677
662
|
{
|
|
678
|
-
"gap": "sm",
|
|
679
|
-
"fields": [],
|
|
680
|
-
"type": "data-list",
|
|
681
|
-
"variant": "card",
|
|
682
663
|
"entity": "@payload.data",
|
|
683
664
|
"columns": [
|
|
684
665
|
{
|
|
685
666
|
"name": "title",
|
|
686
|
-
"
|
|
687
|
-
"
|
|
667
|
+
"variant": "h3",
|
|
668
|
+
"icon": "file-text"
|
|
688
669
|
},
|
|
689
670
|
{
|
|
690
671
|
"name": "status",
|
|
@@ -695,40 +676,59 @@
|
|
|
695
676
|
"variant": "body"
|
|
696
677
|
},
|
|
697
678
|
{
|
|
698
|
-
"
|
|
699
|
-
"
|
|
679
|
+
"variant": "caption",
|
|
680
|
+
"name": "slug"
|
|
700
681
|
},
|
|
701
682
|
{
|
|
702
|
-
"variant": "caption",
|
|
703
|
-
"name": "publishedAt",
|
|
704
683
|
"format": "date",
|
|
705
|
-
"
|
|
684
|
+
"name": "publishedAt",
|
|
685
|
+
"label": "Published",
|
|
686
|
+
"variant": "caption"
|
|
706
687
|
}
|
|
707
688
|
],
|
|
708
689
|
"itemActions": [
|
|
709
690
|
{
|
|
710
|
-
"event": "VIEW",
|
|
711
691
|
"label": "View",
|
|
692
|
+
"event": "VIEW",
|
|
712
693
|
"variant": "ghost"
|
|
713
694
|
},
|
|
714
695
|
{
|
|
696
|
+
"event": "EDIT",
|
|
715
697
|
"label": "Edit",
|
|
716
|
-
"variant": "ghost"
|
|
717
|
-
"event": "EDIT"
|
|
698
|
+
"variant": "ghost"
|
|
718
699
|
},
|
|
719
700
|
{
|
|
720
|
-
"
|
|
701
|
+
"label": "Delete",
|
|
721
702
|
"event": "DELETE",
|
|
722
|
-
"
|
|
703
|
+
"variant": "danger"
|
|
723
704
|
}
|
|
724
|
-
]
|
|
705
|
+
],
|
|
706
|
+
"variant": "card",
|
|
707
|
+
"gap": "sm",
|
|
708
|
+
"fields": [],
|
|
709
|
+
"type": "data-list"
|
|
725
710
|
}
|
|
726
711
|
],
|
|
727
|
-
"type": "stack",
|
|
728
|
-
"gap": "lg",
|
|
729
|
-
"direction": "vertical",
|
|
730
712
|
"className": "max-w-5xl mx-auto w-full"
|
|
731
713
|
}
|
|
714
|
+
],
|
|
715
|
+
"type": "dashboard-layout",
|
|
716
|
+
"navItems": [
|
|
717
|
+
{
|
|
718
|
+
"href": "/articles",
|
|
719
|
+
"icon": "file-text",
|
|
720
|
+
"label": "Articles"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"href": "/media",
|
|
724
|
+
"label": "Media",
|
|
725
|
+
"icon": "image"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"icon": "folder",
|
|
729
|
+
"href": "/categories",
|
|
730
|
+
"label": "Categories"
|
|
731
|
+
}
|
|
732
732
|
]
|
|
733
733
|
}
|
|
734
734
|
]
|
|
@@ -743,36 +743,36 @@
|
|
|
743
743
|
"render-ui",
|
|
744
744
|
"main",
|
|
745
745
|
{
|
|
746
|
-
"gap": "md",
|
|
747
746
|
"type": "stack",
|
|
748
|
-
"align": "center",
|
|
749
|
-
"className": "py-12",
|
|
750
747
|
"children": [
|
|
751
748
|
{
|
|
752
|
-
"type": "icon",
|
|
753
749
|
"name": "alert-triangle",
|
|
750
|
+
"type": "icon",
|
|
754
751
|
"color": "destructive"
|
|
755
752
|
},
|
|
756
753
|
{
|
|
754
|
+
"content": "Failed to load article",
|
|
757
755
|
"type": "typography",
|
|
758
|
-
"variant": "h3"
|
|
759
|
-
"content": "Failed to load article"
|
|
756
|
+
"variant": "h3"
|
|
760
757
|
},
|
|
761
758
|
{
|
|
762
|
-
"variant": "body",
|
|
763
759
|
"type": "typography",
|
|
764
760
|
"color": "muted",
|
|
765
|
-
"content": "@payload.error"
|
|
761
|
+
"content": "@payload.error",
|
|
762
|
+
"variant": "body"
|
|
766
763
|
},
|
|
767
764
|
{
|
|
768
|
-
"icon": "rotate-ccw",
|
|
769
|
-
"action": "INIT",
|
|
770
765
|
"label": "Retry",
|
|
771
766
|
"type": "button",
|
|
767
|
+
"icon": "rotate-ccw",
|
|
768
|
+
"action": "INIT",
|
|
772
769
|
"variant": "primary"
|
|
773
770
|
}
|
|
774
771
|
],
|
|
775
|
-
"direction": "vertical"
|
|
772
|
+
"direction": "vertical",
|
|
773
|
+
"align": "center",
|
|
774
|
+
"className": "py-12",
|
|
775
|
+
"gap": "md"
|
|
776
776
|
}
|
|
777
777
|
]
|
|
778
778
|
]
|
|
@@ -941,8 +941,14 @@
|
|
|
941
941
|
"event": "INIT",
|
|
942
942
|
"effects": [
|
|
943
943
|
[
|
|
944
|
-
"
|
|
945
|
-
"Article"
|
|
944
|
+
"fetch",
|
|
945
|
+
"Article",
|
|
946
|
+
{
|
|
947
|
+
"emit": {
|
|
948
|
+
"failure": "ArticleLoadFailed",
|
|
949
|
+
"success": "ArticleLoaded"
|
|
950
|
+
}
|
|
951
|
+
}
|
|
946
952
|
]
|
|
947
953
|
]
|
|
948
954
|
},
|
|
@@ -966,33 +972,30 @@
|
|
|
966
972
|
"modal",
|
|
967
973
|
{
|
|
968
974
|
"gap": "md",
|
|
969
|
-
"direction": "vertical",
|
|
970
975
|
"type": "stack",
|
|
971
976
|
"children": [
|
|
972
977
|
{
|
|
978
|
+
"gap": "sm",
|
|
973
979
|
"type": "stack",
|
|
980
|
+
"direction": "horizontal",
|
|
974
981
|
"children": [
|
|
975
982
|
{
|
|
976
983
|
"type": "icon",
|
|
977
984
|
"name": "plus-circle"
|
|
978
985
|
},
|
|
979
986
|
{
|
|
980
|
-
"
|
|
987
|
+
"type": "typography",
|
|
981
988
|
"content": "Create Article",
|
|
982
|
-
"
|
|
989
|
+
"variant": "h3"
|
|
983
990
|
}
|
|
984
|
-
]
|
|
985
|
-
"direction": "horizontal",
|
|
986
|
-
"gap": "sm"
|
|
991
|
+
]
|
|
987
992
|
},
|
|
988
993
|
{
|
|
989
994
|
"type": "divider"
|
|
990
995
|
},
|
|
991
996
|
{
|
|
992
|
-
"submitEvent": "SAVE",
|
|
993
|
-
"mode": "create",
|
|
994
|
-
"type": "form-section",
|
|
995
997
|
"cancelEvent": "CLOSE",
|
|
998
|
+
"submitEvent": "SAVE",
|
|
996
999
|
"fields": [
|
|
997
1000
|
"title",
|
|
998
1001
|
"slug",
|
|
@@ -1000,9 +1003,12 @@
|
|
|
1000
1003
|
"author",
|
|
1001
1004
|
"status",
|
|
1002
1005
|
"publishedAt"
|
|
1003
|
-
]
|
|
1006
|
+
],
|
|
1007
|
+
"type": "form-section",
|
|
1008
|
+
"mode": "create"
|
|
1004
1009
|
}
|
|
1005
|
-
]
|
|
1010
|
+
],
|
|
1011
|
+
"direction": "vertical"
|
|
1006
1012
|
}
|
|
1007
1013
|
]
|
|
1008
1014
|
]
|
|
@@ -1043,8 +1049,8 @@
|
|
|
1043
1049
|
"@payload.data",
|
|
1044
1050
|
{
|
|
1045
1051
|
"emit": {
|
|
1046
|
-
"
|
|
1047
|
-
"
|
|
1052
|
+
"success": "ArticleSaved",
|
|
1053
|
+
"failure": "ArticleSaveFailed"
|
|
1048
1054
|
}
|
|
1049
1055
|
}
|
|
1050
1056
|
],
|
|
@@ -1241,8 +1247,14 @@
|
|
|
1241
1247
|
"event": "INIT",
|
|
1242
1248
|
"effects": [
|
|
1243
1249
|
[
|
|
1244
|
-
"
|
|
1245
|
-
"Article"
|
|
1250
|
+
"fetch",
|
|
1251
|
+
"Article",
|
|
1252
|
+
{
|
|
1253
|
+
"emit": {
|
|
1254
|
+
"failure": "ArticleLoadFailed",
|
|
1255
|
+
"success": "ArticleLoaded"
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1246
1258
|
]
|
|
1247
1259
|
]
|
|
1248
1260
|
},
|
|
@@ -1257,8 +1269,8 @@
|
|
|
1257
1269
|
{
|
|
1258
1270
|
"id": "@payload.id",
|
|
1259
1271
|
"emit": {
|
|
1260
|
-
"
|
|
1261
|
-
"
|
|
1272
|
+
"success": "ArticleLoaded",
|
|
1273
|
+
"failure": "ArticleLoadFailed"
|
|
1262
1274
|
}
|
|
1263
1275
|
}
|
|
1264
1276
|
],
|
|
@@ -1266,34 +1278,31 @@
|
|
|
1266
1278
|
"render-ui",
|
|
1267
1279
|
"modal",
|
|
1268
1280
|
{
|
|
1269
|
-
"direction": "vertical",
|
|
1270
1281
|
"gap": "md",
|
|
1271
|
-
"
|
|
1282
|
+
"direction": "vertical",
|
|
1272
1283
|
"children": [
|
|
1273
1284
|
{
|
|
1285
|
+
"gap": "sm",
|
|
1286
|
+
"direction": "horizontal",
|
|
1274
1287
|
"type": "stack",
|
|
1275
1288
|
"children": [
|
|
1276
1289
|
{
|
|
1277
|
-
"
|
|
1278
|
-
"
|
|
1290
|
+
"type": "icon",
|
|
1291
|
+
"name": "edit"
|
|
1279
1292
|
},
|
|
1280
1293
|
{
|
|
1281
|
-
"variant": "h3",
|
|
1282
1294
|
"type": "typography",
|
|
1295
|
+
"variant": "h3",
|
|
1283
1296
|
"content": "Edit Article"
|
|
1284
1297
|
}
|
|
1285
|
-
]
|
|
1286
|
-
"direction": "horizontal",
|
|
1287
|
-
"gap": "sm"
|
|
1298
|
+
]
|
|
1288
1299
|
},
|
|
1289
1300
|
{
|
|
1290
1301
|
"type": "divider"
|
|
1291
1302
|
},
|
|
1292
1303
|
{
|
|
1293
|
-
"entity": "@payload.row",
|
|
1294
|
-
"submitEvent": "SAVE",
|
|
1295
1304
|
"type": "form-section",
|
|
1296
|
-
"
|
|
1305
|
+
"entity": "@payload.row",
|
|
1297
1306
|
"mode": "edit",
|
|
1298
1307
|
"fields": [
|
|
1299
1308
|
"title",
|
|
@@ -1302,9 +1311,12 @@
|
|
|
1302
1311
|
"author",
|
|
1303
1312
|
"status",
|
|
1304
1313
|
"publishedAt"
|
|
1305
|
-
]
|
|
1314
|
+
],
|
|
1315
|
+
"cancelEvent": "CLOSE",
|
|
1316
|
+
"submitEvent": "SAVE"
|
|
1306
1317
|
}
|
|
1307
|
-
]
|
|
1318
|
+
],
|
|
1319
|
+
"type": "stack"
|
|
1308
1320
|
}
|
|
1309
1321
|
]
|
|
1310
1322
|
]
|
|
@@ -1345,8 +1357,8 @@
|
|
|
1345
1357
|
"@payload.data",
|
|
1346
1358
|
{
|
|
1347
1359
|
"emit": {
|
|
1348
|
-
"
|
|
1349
|
-
"
|
|
1360
|
+
"success": "ArticleUpdated",
|
|
1361
|
+
"failure": "ArticleUpdateFailed"
|
|
1350
1362
|
}
|
|
1351
1363
|
}
|
|
1352
1364
|
],
|
|
@@ -1477,8 +1489,14 @@
|
|
|
1477
1489
|
"event": "INIT",
|
|
1478
1490
|
"effects": [
|
|
1479
1491
|
[
|
|
1480
|
-
"
|
|
1481
|
-
"Article"
|
|
1492
|
+
"fetch",
|
|
1493
|
+
"Article",
|
|
1494
|
+
{
|
|
1495
|
+
"emit": {
|
|
1496
|
+
"success": "ArticleLoaded",
|
|
1497
|
+
"failure": "ArticleLoadFailed"
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1482
1500
|
]
|
|
1483
1501
|
]
|
|
1484
1502
|
},
|
|
@@ -1492,8 +1510,8 @@
|
|
|
1492
1510
|
"Article",
|
|
1493
1511
|
{
|
|
1494
1512
|
"emit": {
|
|
1495
|
-
"
|
|
1496
|
-
"
|
|
1513
|
+
"failure": "ArticleLoadFailed",
|
|
1514
|
+
"success": "ArticleLoaded"
|
|
1497
1515
|
},
|
|
1498
1516
|
"id": "@payload.id"
|
|
1499
1517
|
}
|
|
@@ -1502,82 +1520,84 @@
|
|
|
1502
1520
|
"render-ui",
|
|
1503
1521
|
"modal",
|
|
1504
1522
|
{
|
|
1505
|
-
"type": "stack",
|
|
1506
1523
|
"gap": "md",
|
|
1507
|
-
"
|
|
1524
|
+
"type": "stack",
|
|
1508
1525
|
"children": [
|
|
1509
1526
|
{
|
|
1510
1527
|
"align": "center",
|
|
1511
|
-
"gap": "sm",
|
|
1512
|
-
"direction": "horizontal",
|
|
1513
|
-
"type": "stack",
|
|
1514
1528
|
"children": [
|
|
1515
1529
|
{
|
|
1516
|
-
"
|
|
1517
|
-
"
|
|
1530
|
+
"type": "icon",
|
|
1531
|
+
"name": "eye"
|
|
1518
1532
|
},
|
|
1519
1533
|
{
|
|
1520
|
-
"content": "@entity.title",
|
|
1521
1534
|
"type": "typography",
|
|
1522
|
-
"variant": "h3"
|
|
1535
|
+
"variant": "h3",
|
|
1536
|
+
"content": "@entity.title"
|
|
1523
1537
|
}
|
|
1524
|
-
]
|
|
1538
|
+
],
|
|
1539
|
+
"gap": "sm",
|
|
1540
|
+
"direction": "horizontal",
|
|
1541
|
+
"type": "stack"
|
|
1525
1542
|
},
|
|
1526
1543
|
{
|
|
1527
1544
|
"type": "divider"
|
|
1528
1545
|
},
|
|
1529
1546
|
{
|
|
1530
|
-
"
|
|
1547
|
+
"gap": "md",
|
|
1531
1548
|
"children": [
|
|
1532
1549
|
{
|
|
1533
|
-
"
|
|
1550
|
+
"variant": "caption",
|
|
1534
1551
|
"content": "Title",
|
|
1535
|
-
"
|
|
1552
|
+
"type": "typography"
|
|
1536
1553
|
},
|
|
1537
1554
|
{
|
|
1538
|
-
"type": "typography",
|
|
1539
1555
|
"variant": "body",
|
|
1556
|
+
"type": "typography",
|
|
1540
1557
|
"content": "@entity.title"
|
|
1541
1558
|
}
|
|
1542
1559
|
],
|
|
1543
|
-
"
|
|
1544
|
-
"
|
|
1560
|
+
"type": "stack",
|
|
1561
|
+
"direction": "horizontal"
|
|
1545
1562
|
},
|
|
1546
1563
|
{
|
|
1564
|
+
"direction": "horizontal",
|
|
1565
|
+
"gap": "md",
|
|
1547
1566
|
"children": [
|
|
1548
1567
|
{
|
|
1549
|
-
"variant": "caption",
|
|
1550
1568
|
"type": "typography",
|
|
1551
|
-
"content": "Slug"
|
|
1569
|
+
"content": "Slug",
|
|
1570
|
+
"variant": "caption"
|
|
1552
1571
|
},
|
|
1553
1572
|
{
|
|
1554
|
-
"
|
|
1573
|
+
"content": "@entity.slug",
|
|
1555
1574
|
"variant": "body",
|
|
1556
|
-
"
|
|
1575
|
+
"type": "typography"
|
|
1557
1576
|
}
|
|
1558
1577
|
],
|
|
1559
|
-
"type": "stack"
|
|
1560
|
-
"gap": "md",
|
|
1561
|
-
"direction": "horizontal"
|
|
1578
|
+
"type": "stack"
|
|
1562
1579
|
},
|
|
1563
1580
|
{
|
|
1564
1581
|
"type": "stack",
|
|
1565
1582
|
"children": [
|
|
1566
1583
|
{
|
|
1567
|
-
"type": "typography",
|
|
1568
1584
|
"variant": "caption",
|
|
1585
|
+
"type": "typography",
|
|
1569
1586
|
"content": "Content"
|
|
1570
1587
|
},
|
|
1571
1588
|
{
|
|
1572
|
-
"
|
|
1589
|
+
"variant": "body",
|
|
1573
1590
|
"content": "@entity.content",
|
|
1574
|
-
"
|
|
1591
|
+
"type": "typography"
|
|
1575
1592
|
}
|
|
1576
1593
|
],
|
|
1577
1594
|
"gap": "md",
|
|
1578
1595
|
"direction": "horizontal"
|
|
1579
1596
|
},
|
|
1580
1597
|
{
|
|
1598
|
+
"direction": "horizontal",
|
|
1599
|
+
"type": "stack",
|
|
1600
|
+
"gap": "md",
|
|
1581
1601
|
"children": [
|
|
1582
1602
|
{
|
|
1583
1603
|
"type": "typography",
|
|
@@ -1585,74 +1605,72 @@
|
|
|
1585
1605
|
"variant": "caption"
|
|
1586
1606
|
},
|
|
1587
1607
|
{
|
|
1588
|
-
"content": "@entity.author",
|
|
1589
1608
|
"type": "typography",
|
|
1590
|
-
"variant": "body"
|
|
1609
|
+
"variant": "body",
|
|
1610
|
+
"content": "@entity.author"
|
|
1591
1611
|
}
|
|
1592
|
-
]
|
|
1593
|
-
"type": "stack",
|
|
1594
|
-
"gap": "md",
|
|
1595
|
-
"direction": "horizontal"
|
|
1612
|
+
]
|
|
1596
1613
|
},
|
|
1597
1614
|
{
|
|
1598
|
-
"
|
|
1599
|
-
"gap": "md",
|
|
1615
|
+
"type": "stack",
|
|
1600
1616
|
"children": [
|
|
1601
1617
|
{
|
|
1618
|
+
"content": "Status",
|
|
1602
1619
|
"type": "typography",
|
|
1603
|
-
"variant": "caption"
|
|
1604
|
-
"content": "Status"
|
|
1620
|
+
"variant": "caption"
|
|
1605
1621
|
},
|
|
1606
1622
|
{
|
|
1607
|
-
"variant": "body",
|
|
1608
1623
|
"content": "@entity.status",
|
|
1624
|
+
"variant": "body",
|
|
1609
1625
|
"type": "typography"
|
|
1610
1626
|
}
|
|
1611
1627
|
],
|
|
1612
|
-
"
|
|
1628
|
+
"direction": "horizontal",
|
|
1629
|
+
"gap": "md"
|
|
1613
1630
|
},
|
|
1614
1631
|
{
|
|
1615
1632
|
"gap": "md",
|
|
1633
|
+
"type": "stack",
|
|
1634
|
+
"direction": "horizontal",
|
|
1616
1635
|
"children": [
|
|
1617
1636
|
{
|
|
1618
|
-
"type": "typography",
|
|
1619
1637
|
"variant": "caption",
|
|
1620
|
-
"content": "Published At"
|
|
1638
|
+
"content": "Published At",
|
|
1639
|
+
"type": "typography"
|
|
1621
1640
|
},
|
|
1622
1641
|
{
|
|
1623
1642
|
"variant": "body",
|
|
1624
1643
|
"content": "@entity.publishedAt",
|
|
1625
1644
|
"type": "typography"
|
|
1626
1645
|
}
|
|
1627
|
-
]
|
|
1628
|
-
"direction": "horizontal",
|
|
1629
|
-
"type": "stack"
|
|
1646
|
+
]
|
|
1630
1647
|
},
|
|
1631
1648
|
{
|
|
1632
1649
|
"type": "divider"
|
|
1633
1650
|
},
|
|
1634
1651
|
{
|
|
1652
|
+
"gap": "sm",
|
|
1653
|
+
"type": "stack",
|
|
1654
|
+
"direction": "horizontal",
|
|
1635
1655
|
"children": [
|
|
1636
1656
|
{
|
|
1637
|
-
"
|
|
1657
|
+
"action": "EDIT",
|
|
1638
1658
|
"variant": "primary",
|
|
1659
|
+
"type": "button",
|
|
1639
1660
|
"label": "Edit",
|
|
1640
|
-
"icon": "edit"
|
|
1641
|
-
"action": "EDIT"
|
|
1661
|
+
"icon": "edit"
|
|
1642
1662
|
},
|
|
1643
1663
|
{
|
|
1644
|
-
"type": "button",
|
|
1645
|
-
"action": "CLOSE",
|
|
1646
1664
|
"label": "Close",
|
|
1647
|
-
"
|
|
1665
|
+
"type": "button",
|
|
1666
|
+
"variant": "ghost",
|
|
1667
|
+
"action": "CLOSE"
|
|
1648
1668
|
}
|
|
1649
1669
|
],
|
|
1650
|
-
"direction": "horizontal",
|
|
1651
|
-
"gap": "sm",
|
|
1652
|
-
"type": "stack",
|
|
1653
1670
|
"justify": "end"
|
|
1654
1671
|
}
|
|
1655
|
-
]
|
|
1672
|
+
],
|
|
1673
|
+
"direction": "vertical"
|
|
1656
1674
|
}
|
|
1657
1675
|
]
|
|
1658
1676
|
]
|
|
@@ -1868,8 +1886,14 @@
|
|
|
1868
1886
|
"event": "INIT",
|
|
1869
1887
|
"effects": [
|
|
1870
1888
|
[
|
|
1871
|
-
"
|
|
1872
|
-
"Article"
|
|
1889
|
+
"fetch",
|
|
1890
|
+
"Article",
|
|
1891
|
+
{
|
|
1892
|
+
"emit": {
|
|
1893
|
+
"failure": "ArticleLoadFailed",
|
|
1894
|
+
"success": "ArticleLoaded"
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1873
1897
|
]
|
|
1874
1898
|
]
|
|
1875
1899
|
},
|
|
@@ -1887,11 +1911,11 @@
|
|
|
1887
1911
|
"fetch",
|
|
1888
1912
|
"Article",
|
|
1889
1913
|
{
|
|
1914
|
+
"id": "@payload.id",
|
|
1890
1915
|
"emit": {
|
|
1891
|
-
"
|
|
1892
|
-
"
|
|
1893
|
-
}
|
|
1894
|
-
"id": "@payload.id"
|
|
1916
|
+
"success": "ArticleLoaded",
|
|
1917
|
+
"failure": "ArticleLoadFailed"
|
|
1918
|
+
}
|
|
1895
1919
|
}
|
|
1896
1920
|
],
|
|
1897
1921
|
[
|
|
@@ -1899,55 +1923,55 @@
|
|
|
1899
1923
|
"modal",
|
|
1900
1924
|
{
|
|
1901
1925
|
"type": "stack",
|
|
1926
|
+
"direction": "vertical",
|
|
1902
1927
|
"children": [
|
|
1903
1928
|
{
|
|
1904
1929
|
"align": "center",
|
|
1905
|
-
"type": "stack",
|
|
1906
1930
|
"direction": "horizontal",
|
|
1907
|
-
"
|
|
1931
|
+
"type": "stack",
|
|
1908
1932
|
"children": [
|
|
1909
1933
|
{
|
|
1910
1934
|
"type": "icon",
|
|
1911
1935
|
"name": "alert-triangle"
|
|
1912
1936
|
},
|
|
1913
1937
|
{
|
|
1914
|
-
"content": "Delete Article",
|
|
1915
1938
|
"variant": "h3",
|
|
1916
|
-
"type": "typography"
|
|
1939
|
+
"type": "typography",
|
|
1940
|
+
"content": "Delete Article"
|
|
1917
1941
|
}
|
|
1918
|
-
]
|
|
1942
|
+
],
|
|
1943
|
+
"gap": "sm"
|
|
1919
1944
|
},
|
|
1920
1945
|
{
|
|
1921
1946
|
"type": "divider"
|
|
1922
1947
|
},
|
|
1923
1948
|
{
|
|
1924
1949
|
"type": "alert",
|
|
1925
|
-
"
|
|
1926
|
-
"
|
|
1950
|
+
"variant": "error",
|
|
1951
|
+
"message": "This action cannot be undone."
|
|
1927
1952
|
},
|
|
1928
1953
|
{
|
|
1929
|
-
"justify": "end",
|
|
1930
1954
|
"direction": "horizontal",
|
|
1931
1955
|
"type": "stack",
|
|
1932
1956
|
"gap": "sm",
|
|
1933
1957
|
"children": [
|
|
1934
1958
|
{
|
|
1935
|
-
"action": "CANCEL",
|
|
1936
1959
|
"variant": "ghost",
|
|
1937
1960
|
"type": "button",
|
|
1938
|
-
"label": "Cancel"
|
|
1961
|
+
"label": "Cancel",
|
|
1962
|
+
"action": "CANCEL"
|
|
1939
1963
|
},
|
|
1940
1964
|
{
|
|
1941
1965
|
"icon": "check",
|
|
1942
|
-
"variant": "danger",
|
|
1943
|
-
"label": "Delete",
|
|
1944
1966
|
"type": "button",
|
|
1945
|
-
"
|
|
1967
|
+
"variant": "danger",
|
|
1968
|
+
"action": "CONFIRM_DELETE",
|
|
1969
|
+
"label": "Delete"
|
|
1946
1970
|
}
|
|
1947
|
-
]
|
|
1971
|
+
],
|
|
1972
|
+
"justify": "end"
|
|
1948
1973
|
}
|
|
1949
1974
|
],
|
|
1950
|
-
"direction": "vertical",
|
|
1951
1975
|
"gap": "md"
|
|
1952
1976
|
}
|
|
1953
1977
|
]
|
|
@@ -1983,8 +2007,14 @@
|
|
|
1983
2007
|
}
|
|
1984
2008
|
],
|
|
1985
2009
|
[
|
|
1986
|
-
"
|
|
1987
|
-
"Article"
|
|
2010
|
+
"fetch",
|
|
2011
|
+
"Article",
|
|
2012
|
+
{
|
|
2013
|
+
"emit": {
|
|
2014
|
+
"success": "ArticleLoaded",
|
|
2015
|
+
"failure": "ArticleLoadFailed"
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
1988
2018
|
],
|
|
1989
2019
|
[
|
|
1990
2020
|
"emit",
|
|
@@ -2010,8 +2040,14 @@
|
|
|
2010
2040
|
}
|
|
2011
2041
|
],
|
|
2012
2042
|
[
|
|
2013
|
-
"
|
|
2014
|
-
"Article"
|
|
2043
|
+
"fetch",
|
|
2044
|
+
"Article",
|
|
2045
|
+
{
|
|
2046
|
+
"emit": {
|
|
2047
|
+
"success": "ArticleLoaded",
|
|
2048
|
+
"failure": "ArticleLoadFailed"
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2015
2051
|
]
|
|
2016
2052
|
]
|
|
2017
2053
|
},
|
|
@@ -2033,8 +2069,14 @@
|
|
|
2033
2069
|
}
|
|
2034
2070
|
],
|
|
2035
2071
|
[
|
|
2036
|
-
"
|
|
2037
|
-
"Article"
|
|
2072
|
+
"fetch",
|
|
2073
|
+
"Article",
|
|
2074
|
+
{
|
|
2075
|
+
"emit": {
|
|
2076
|
+
"failure": "ArticleLoadFailed",
|
|
2077
|
+
"success": "ArticleLoaded"
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2038
2080
|
]
|
|
2039
2081
|
]
|
|
2040
2082
|
}
|
|
@@ -2197,8 +2239,8 @@
|
|
|
2197
2239
|
"MediaAsset",
|
|
2198
2240
|
{
|
|
2199
2241
|
"emit": {
|
|
2200
|
-
"
|
|
2201
|
-
"
|
|
2242
|
+
"failure": "MediaAssetLoadFailed",
|
|
2243
|
+
"success": "MediaAssetLoaded"
|
|
2202
2244
|
}
|
|
2203
2245
|
}
|
|
2204
2246
|
],
|
|
@@ -2207,10 +2249,6 @@
|
|
|
2207
2249
|
"main",
|
|
2208
2250
|
{
|
|
2209
2251
|
"gap": "md",
|
|
2210
|
-
"align": "center",
|
|
2211
|
-
"direction": "vertical",
|
|
2212
|
-
"type": "stack",
|
|
2213
|
-
"className": "py-12",
|
|
2214
2252
|
"children": [
|
|
2215
2253
|
{
|
|
2216
2254
|
"type": "spinner"
|
|
@@ -2221,7 +2259,11 @@
|
|
|
2221
2259
|
"type": "typography",
|
|
2222
2260
|
"content": "Loading…"
|
|
2223
2261
|
}
|
|
2224
|
-
]
|
|
2262
|
+
],
|
|
2263
|
+
"type": "stack",
|
|
2264
|
+
"align": "center",
|
|
2265
|
+
"direction": "vertical",
|
|
2266
|
+
"className": "py-12"
|
|
2225
2267
|
}
|
|
2226
2268
|
]
|
|
2227
2269
|
]
|
|
@@ -2235,80 +2277,58 @@
|
|
|
2235
2277
|
"render-ui",
|
|
2236
2278
|
"main",
|
|
2237
2279
|
{
|
|
2238
|
-
"navItems": [
|
|
2239
|
-
{
|
|
2240
|
-
"href": "/articles",
|
|
2241
|
-
"icon": "file-text",
|
|
2242
|
-
"label": "Articles"
|
|
2243
|
-
},
|
|
2244
|
-
{
|
|
2245
|
-
"icon": "image",
|
|
2246
|
-
"href": "/media",
|
|
2247
|
-
"label": "Media"
|
|
2248
|
-
},
|
|
2249
|
-
{
|
|
2250
|
-
"href": "/categories",
|
|
2251
|
-
"icon": "folder",
|
|
2252
|
-
"label": "Categories"
|
|
2253
|
-
}
|
|
2254
|
-
],
|
|
2255
2280
|
"type": "dashboard-layout",
|
|
2256
2281
|
"appName": "CmsApp",
|
|
2257
2282
|
"children": [
|
|
2258
2283
|
{
|
|
2259
|
-
"direction": "vertical",
|
|
2260
2284
|
"className": "max-w-5xl mx-auto w-full",
|
|
2261
|
-
"type": "stack",
|
|
2262
|
-
"gap": "lg",
|
|
2263
2285
|
"children": [
|
|
2264
2286
|
{
|
|
2265
2287
|
"align": "center",
|
|
2288
|
+
"direction": "horizontal",
|
|
2266
2289
|
"children": [
|
|
2267
2290
|
{
|
|
2268
|
-
"type": "stack",
|
|
2269
2291
|
"direction": "horizontal",
|
|
2270
|
-
"gap": "sm",
|
|
2271
2292
|
"align": "center",
|
|
2293
|
+
"type": "stack",
|
|
2272
2294
|
"children": [
|
|
2273
2295
|
{
|
|
2274
|
-
"
|
|
2275
|
-
"
|
|
2296
|
+
"type": "icon",
|
|
2297
|
+
"name": "image"
|
|
2276
2298
|
},
|
|
2277
2299
|
{
|
|
2300
|
+
"variant": "h2",
|
|
2278
2301
|
"type": "typography",
|
|
2279
|
-
"content": "Media Library"
|
|
2280
|
-
"variant": "h2"
|
|
2302
|
+
"content": "Media Library"
|
|
2281
2303
|
}
|
|
2282
|
-
]
|
|
2304
|
+
],
|
|
2305
|
+
"gap": "sm"
|
|
2283
2306
|
},
|
|
2284
2307
|
{
|
|
2308
|
+
"gap": "sm",
|
|
2285
2309
|
"type": "stack",
|
|
2310
|
+
"direction": "horizontal",
|
|
2286
2311
|
"children": [
|
|
2287
2312
|
{
|
|
2288
2313
|
"type": "button",
|
|
2289
|
-
"variant": "primary",
|
|
2290
|
-
"action": "CREATE",
|
|
2291
2314
|
"icon": "plus",
|
|
2292
|
-
"
|
|
2315
|
+
"variant": "primary",
|
|
2316
|
+
"label": "Create MediaAsset",
|
|
2317
|
+
"action": "CREATE"
|
|
2293
2318
|
}
|
|
2294
|
-
]
|
|
2295
|
-
"gap": "sm",
|
|
2296
|
-
"direction": "horizontal"
|
|
2319
|
+
]
|
|
2297
2320
|
}
|
|
2298
2321
|
],
|
|
2299
2322
|
"justify": "between",
|
|
2300
|
-
"
|
|
2301
|
-
"
|
|
2302
|
-
"type": "stack"
|
|
2323
|
+
"type": "stack",
|
|
2324
|
+
"gap": "md"
|
|
2303
2325
|
},
|
|
2304
2326
|
{
|
|
2305
2327
|
"type": "divider"
|
|
2306
2328
|
},
|
|
2307
2329
|
{
|
|
2308
|
-
"fields": [],
|
|
2309
|
-
"type": "data-grid",
|
|
2310
2330
|
"entity": "@payload.data",
|
|
2311
|
-
"
|
|
2331
|
+
"fields": [],
|
|
2312
2332
|
"itemActions": [
|
|
2313
2333
|
{
|
|
2314
2334
|
"label": "View",
|
|
@@ -2316,33 +2336,55 @@
|
|
|
2316
2336
|
"variant": "ghost"
|
|
2317
2337
|
}
|
|
2318
2338
|
],
|
|
2319
|
-
"
|
|
2339
|
+
"type": "data-grid",
|
|
2320
2340
|
"columns": [
|
|
2321
2341
|
{
|
|
2342
|
+
"label": "File",
|
|
2322
2343
|
"name": "fileName",
|
|
2323
2344
|
"icon": "image",
|
|
2324
|
-
"variant": "h3"
|
|
2325
|
-
"label": "File"
|
|
2345
|
+
"variant": "h3"
|
|
2326
2346
|
},
|
|
2327
2347
|
{
|
|
2328
|
-
"variant": "badge",
|
|
2329
2348
|
"name": "fileType",
|
|
2330
|
-
"label": "Type"
|
|
2349
|
+
"label": "Type",
|
|
2350
|
+
"variant": "badge"
|
|
2331
2351
|
},
|
|
2332
2352
|
{
|
|
2333
|
-
"variant": "body",
|
|
2334
|
-
"format": "number",
|
|
2335
2353
|
"label": "Size",
|
|
2354
|
+
"format": "number",
|
|
2355
|
+
"variant": "body",
|
|
2336
2356
|
"name": "fileSize"
|
|
2337
2357
|
},
|
|
2338
2358
|
{
|
|
2359
|
+
"variant": "caption",
|
|
2339
2360
|
"name": "altText",
|
|
2340
|
-
"label": "Alt Text"
|
|
2341
|
-
"variant": "caption"
|
|
2361
|
+
"label": "Alt Text"
|
|
2342
2362
|
}
|
|
2343
|
-
]
|
|
2363
|
+
],
|
|
2364
|
+
"gap": "md",
|
|
2365
|
+
"cols": 3.0
|
|
2344
2366
|
}
|
|
2345
|
-
]
|
|
2367
|
+
],
|
|
2368
|
+
"type": "stack",
|
|
2369
|
+
"gap": "lg",
|
|
2370
|
+
"direction": "vertical"
|
|
2371
|
+
}
|
|
2372
|
+
],
|
|
2373
|
+
"navItems": [
|
|
2374
|
+
{
|
|
2375
|
+
"label": "Articles",
|
|
2376
|
+
"href": "/articles",
|
|
2377
|
+
"icon": "file-text"
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
"icon": "image",
|
|
2381
|
+
"href": "/media",
|
|
2382
|
+
"label": "Media"
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"label": "Categories",
|
|
2386
|
+
"href": "/categories",
|
|
2387
|
+
"icon": "folder"
|
|
2346
2388
|
}
|
|
2347
2389
|
]
|
|
2348
2390
|
}
|
|
@@ -2360,34 +2402,34 @@
|
|
|
2360
2402
|
{
|
|
2361
2403
|
"className": "py-12",
|
|
2362
2404
|
"type": "stack",
|
|
2363
|
-
"direction": "vertical",
|
|
2364
|
-
"gap": "md",
|
|
2365
|
-
"align": "center",
|
|
2366
2405
|
"children": [
|
|
2367
2406
|
{
|
|
2407
|
+
"name": "alert-triangle",
|
|
2368
2408
|
"type": "icon",
|
|
2369
|
-
"color": "destructive"
|
|
2370
|
-
"name": "alert-triangle"
|
|
2409
|
+
"color": "destructive"
|
|
2371
2410
|
},
|
|
2372
2411
|
{
|
|
2373
|
-
"
|
|
2412
|
+
"variant": "h3",
|
|
2374
2413
|
"type": "typography",
|
|
2375
|
-
"
|
|
2414
|
+
"content": "Failed to load mediaasset"
|
|
2376
2415
|
},
|
|
2377
2416
|
{
|
|
2378
|
-
"type": "typography",
|
|
2379
2417
|
"color": "muted",
|
|
2418
|
+
"type": "typography",
|
|
2380
2419
|
"variant": "body",
|
|
2381
2420
|
"content": "@payload.error"
|
|
2382
2421
|
},
|
|
2383
2422
|
{
|
|
2384
|
-
"type": "button",
|
|
2385
|
-
"action": "INIT",
|
|
2386
|
-
"icon": "rotate-ccw",
|
|
2387
2423
|
"variant": "primary",
|
|
2388
|
-
"
|
|
2424
|
+
"icon": "rotate-ccw",
|
|
2425
|
+
"label": "Retry",
|
|
2426
|
+
"action": "INIT",
|
|
2427
|
+
"type": "button"
|
|
2389
2428
|
}
|
|
2390
|
-
]
|
|
2429
|
+
],
|
|
2430
|
+
"align": "center",
|
|
2431
|
+
"direction": "vertical",
|
|
2432
|
+
"gap": "md"
|
|
2391
2433
|
}
|
|
2392
2434
|
]
|
|
2393
2435
|
]
|
|
@@ -2541,8 +2583,14 @@
|
|
|
2541
2583
|
"event": "INIT",
|
|
2542
2584
|
"effects": [
|
|
2543
2585
|
[
|
|
2544
|
-
"
|
|
2545
|
-
"MediaAsset"
|
|
2586
|
+
"fetch",
|
|
2587
|
+
"MediaAsset",
|
|
2588
|
+
{
|
|
2589
|
+
"emit": {
|
|
2590
|
+
"success": "MediaAssetLoaded",
|
|
2591
|
+
"failure": "MediaAssetLoadFailed"
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2546
2594
|
]
|
|
2547
2595
|
]
|
|
2548
2596
|
},
|
|
@@ -2556,8 +2604,8 @@
|
|
|
2556
2604
|
"MediaAsset",
|
|
2557
2605
|
{
|
|
2558
2606
|
"emit": {
|
|
2559
|
-
"
|
|
2560
|
-
"
|
|
2607
|
+
"success": "MediaAssetLoaded",
|
|
2608
|
+
"failure": "MediaAssetLoadFailed"
|
|
2561
2609
|
}
|
|
2562
2610
|
}
|
|
2563
2611
|
],
|
|
@@ -2566,12 +2614,10 @@
|
|
|
2566
2614
|
"modal",
|
|
2567
2615
|
{
|
|
2568
2616
|
"type": "stack",
|
|
2617
|
+
"gap": "md",
|
|
2569
2618
|
"direction": "vertical",
|
|
2570
2619
|
"children": [
|
|
2571
2620
|
{
|
|
2572
|
-
"gap": "sm",
|
|
2573
|
-
"type": "stack",
|
|
2574
|
-
"direction": "horizontal",
|
|
2575
2621
|
"children": [
|
|
2576
2622
|
{
|
|
2577
2623
|
"type": "icon",
|
|
@@ -2579,17 +2625,20 @@
|
|
|
2579
2625
|
},
|
|
2580
2626
|
{
|
|
2581
2627
|
"type": "typography",
|
|
2582
|
-
"
|
|
2583
|
-
"
|
|
2628
|
+
"variant": "h3",
|
|
2629
|
+
"content": "New MediaAsset"
|
|
2584
2630
|
}
|
|
2585
|
-
]
|
|
2631
|
+
],
|
|
2632
|
+
"type": "stack",
|
|
2633
|
+
"direction": "horizontal",
|
|
2634
|
+
"gap": "sm"
|
|
2586
2635
|
},
|
|
2587
2636
|
{
|
|
2588
2637
|
"type": "divider"
|
|
2589
2638
|
},
|
|
2590
2639
|
{
|
|
2640
|
+
"type": "form-section",
|
|
2591
2641
|
"submitEvent": "SAVE",
|
|
2592
|
-
"mode": "create",
|
|
2593
2642
|
"fields": [
|
|
2594
2643
|
"fileName",
|
|
2595
2644
|
"fileType",
|
|
@@ -2598,11 +2647,10 @@
|
|
|
2598
2647
|
"altText",
|
|
2599
2648
|
"uploadedAt"
|
|
2600
2649
|
],
|
|
2601
|
-
"
|
|
2602
|
-
"
|
|
2650
|
+
"cancelEvent": "CLOSE",
|
|
2651
|
+
"mode": "create"
|
|
2603
2652
|
}
|
|
2604
|
-
]
|
|
2605
|
-
"gap": "md"
|
|
2653
|
+
]
|
|
2606
2654
|
}
|
|
2607
2655
|
]
|
|
2608
2656
|
]
|
|
@@ -2643,8 +2691,8 @@
|
|
|
2643
2691
|
"@payload.data",
|
|
2644
2692
|
{
|
|
2645
2693
|
"emit": {
|
|
2646
|
-
"
|
|
2647
|
-
"
|
|
2694
|
+
"success": "MediaAssetSaved",
|
|
2695
|
+
"failure": "MediaAssetSaveFailed"
|
|
2648
2696
|
}
|
|
2649
2697
|
}
|
|
2650
2698
|
],
|
|
@@ -2763,8 +2811,14 @@
|
|
|
2763
2811
|
"event": "INIT",
|
|
2764
2812
|
"effects": [
|
|
2765
2813
|
[
|
|
2766
|
-
"
|
|
2767
|
-
"MediaAsset"
|
|
2814
|
+
"fetch",
|
|
2815
|
+
"MediaAsset",
|
|
2816
|
+
{
|
|
2817
|
+
"emit": {
|
|
2818
|
+
"success": "MediaAssetLoaded",
|
|
2819
|
+
"failure": "MediaAssetLoadFailed"
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2768
2822
|
]
|
|
2769
2823
|
]
|
|
2770
2824
|
},
|
|
@@ -2777,61 +2831,56 @@
|
|
|
2777
2831
|
"fetch",
|
|
2778
2832
|
"MediaAsset",
|
|
2779
2833
|
{
|
|
2780
|
-
"id": "@payload.id",
|
|
2781
2834
|
"emit": {
|
|
2782
|
-
"
|
|
2783
|
-
"
|
|
2784
|
-
}
|
|
2835
|
+
"success": "MediaAssetLoaded",
|
|
2836
|
+
"failure": "MediaAssetLoadFailed"
|
|
2837
|
+
},
|
|
2838
|
+
"id": "@payload.id"
|
|
2785
2839
|
}
|
|
2786
2840
|
],
|
|
2787
2841
|
[
|
|
2788
2842
|
"render-ui",
|
|
2789
2843
|
"modal",
|
|
2790
2844
|
{
|
|
2791
|
-
"gap": "md",
|
|
2792
|
-
"type": "stack",
|
|
2793
2845
|
"children": [
|
|
2794
2846
|
{
|
|
2847
|
+
"type": "stack",
|
|
2848
|
+
"direction": "horizontal",
|
|
2849
|
+
"align": "center",
|
|
2795
2850
|
"children": [
|
|
2796
2851
|
{
|
|
2797
|
-
"
|
|
2798
|
-
"
|
|
2852
|
+
"name": "eye",
|
|
2853
|
+
"type": "icon"
|
|
2799
2854
|
},
|
|
2800
2855
|
{
|
|
2801
2856
|
"type": "typography",
|
|
2802
|
-
"
|
|
2803
|
-
"
|
|
2857
|
+
"variant": "h3",
|
|
2858
|
+
"content": "@entity.fileName"
|
|
2804
2859
|
}
|
|
2805
2860
|
],
|
|
2806
|
-
"gap": "sm"
|
|
2807
|
-
"direction": "horizontal",
|
|
2808
|
-
"type": "stack",
|
|
2809
|
-
"align": "center"
|
|
2861
|
+
"gap": "sm"
|
|
2810
2862
|
},
|
|
2811
2863
|
{
|
|
2812
2864
|
"type": "divider"
|
|
2813
2865
|
},
|
|
2814
2866
|
{
|
|
2815
|
-
"direction": "horizontal",
|
|
2816
2867
|
"gap": "md",
|
|
2868
|
+
"type": "stack",
|
|
2869
|
+
"direction": "horizontal",
|
|
2817
2870
|
"children": [
|
|
2818
2871
|
{
|
|
2819
|
-
"variant": "caption",
|
|
2820
2872
|
"content": "File Name",
|
|
2821
|
-
"type": "typography"
|
|
2873
|
+
"type": "typography",
|
|
2874
|
+
"variant": "caption"
|
|
2822
2875
|
},
|
|
2823
2876
|
{
|
|
2877
|
+
"variant": "body",
|
|
2824
2878
|
"type": "typography",
|
|
2825
|
-
"content": "@entity.fileName"
|
|
2826
|
-
"variant": "body"
|
|
2879
|
+
"content": "@entity.fileName"
|
|
2827
2880
|
}
|
|
2828
|
-
]
|
|
2829
|
-
"type": "stack"
|
|
2881
|
+
]
|
|
2830
2882
|
},
|
|
2831
2883
|
{
|
|
2832
|
-
"type": "stack",
|
|
2833
|
-
"direction": "horizontal",
|
|
2834
|
-
"gap": "md",
|
|
2835
2884
|
"children": [
|
|
2836
2885
|
{
|
|
2837
2886
|
"content": "File Type",
|
|
@@ -2840,35 +2889,37 @@
|
|
|
2840
2889
|
},
|
|
2841
2890
|
{
|
|
2842
2891
|
"type": "typography",
|
|
2843
|
-
"
|
|
2844
|
-
"
|
|
2892
|
+
"variant": "body",
|
|
2893
|
+
"content": "@entity.fileType"
|
|
2845
2894
|
}
|
|
2846
|
-
]
|
|
2895
|
+
],
|
|
2896
|
+
"gap": "md",
|
|
2897
|
+
"type": "stack",
|
|
2898
|
+
"direction": "horizontal"
|
|
2847
2899
|
},
|
|
2848
2900
|
{
|
|
2849
2901
|
"direction": "horizontal",
|
|
2850
|
-
"gap": "md",
|
|
2851
2902
|
"type": "stack",
|
|
2903
|
+
"gap": "md",
|
|
2852
2904
|
"children": [
|
|
2853
2905
|
{
|
|
2854
2906
|
"type": "typography",
|
|
2855
|
-
"
|
|
2856
|
-
"
|
|
2907
|
+
"variant": "caption",
|
|
2908
|
+
"content": "File Size"
|
|
2857
2909
|
},
|
|
2858
2910
|
{
|
|
2859
2911
|
"type": "typography",
|
|
2860
|
-
"
|
|
2861
|
-
"
|
|
2912
|
+
"content": "@entity.fileSize",
|
|
2913
|
+
"variant": "body"
|
|
2862
2914
|
}
|
|
2863
2915
|
]
|
|
2864
2916
|
},
|
|
2865
2917
|
{
|
|
2866
|
-
"direction": "horizontal",
|
|
2867
2918
|
"gap": "md",
|
|
2868
2919
|
"children": [
|
|
2869
2920
|
{
|
|
2870
|
-
"type": "typography",
|
|
2871
2921
|
"variant": "caption",
|
|
2922
|
+
"type": "typography",
|
|
2872
2923
|
"content": "Url"
|
|
2873
2924
|
},
|
|
2874
2925
|
{
|
|
@@ -2877,38 +2928,39 @@
|
|
|
2877
2928
|
"content": "@entity.url"
|
|
2878
2929
|
}
|
|
2879
2930
|
],
|
|
2931
|
+
"direction": "horizontal",
|
|
2880
2932
|
"type": "stack"
|
|
2881
2933
|
},
|
|
2882
2934
|
{
|
|
2935
|
+
"gap": "md",
|
|
2883
2936
|
"direction": "horizontal",
|
|
2937
|
+
"type": "stack",
|
|
2884
2938
|
"children": [
|
|
2885
2939
|
{
|
|
2940
|
+
"content": "Alt Text",
|
|
2886
2941
|
"type": "typography",
|
|
2887
|
-
"variant": "caption"
|
|
2888
|
-
"content": "Alt Text"
|
|
2942
|
+
"variant": "caption"
|
|
2889
2943
|
},
|
|
2890
2944
|
{
|
|
2945
|
+
"content": "@entity.altText",
|
|
2891
2946
|
"type": "typography",
|
|
2892
|
-
"variant": "body"
|
|
2893
|
-
"content": "@entity.altText"
|
|
2947
|
+
"variant": "body"
|
|
2894
2948
|
}
|
|
2895
|
-
]
|
|
2896
|
-
"type": "stack",
|
|
2897
|
-
"gap": "md"
|
|
2949
|
+
]
|
|
2898
2950
|
},
|
|
2899
2951
|
{
|
|
2952
|
+
"gap": "md",
|
|
2900
2953
|
"type": "stack",
|
|
2901
2954
|
"direction": "horizontal",
|
|
2902
|
-
"gap": "md",
|
|
2903
2955
|
"children": [
|
|
2904
2956
|
{
|
|
2905
|
-
"variant": "caption",
|
|
2906
2957
|
"content": "Uploaded At",
|
|
2958
|
+
"variant": "caption",
|
|
2907
2959
|
"type": "typography"
|
|
2908
2960
|
},
|
|
2909
2961
|
{
|
|
2910
|
-
"type": "typography",
|
|
2911
2962
|
"content": "@entity.uploadedAt",
|
|
2963
|
+
"type": "typography",
|
|
2912
2964
|
"variant": "body"
|
|
2913
2965
|
}
|
|
2914
2966
|
]
|
|
@@ -2917,21 +2969,23 @@
|
|
|
2917
2969
|
"type": "divider"
|
|
2918
2970
|
},
|
|
2919
2971
|
{
|
|
2920
|
-
"
|
|
2972
|
+
"direction": "horizontal",
|
|
2921
2973
|
"justify": "end",
|
|
2974
|
+
"gap": "sm",
|
|
2975
|
+
"type": "stack",
|
|
2922
2976
|
"children": [
|
|
2923
2977
|
{
|
|
2924
|
-
"type": "button",
|
|
2925
|
-
"action": "CLOSE",
|
|
2926
2978
|
"label": "Close",
|
|
2927
|
-
"
|
|
2979
|
+
"type": "button",
|
|
2980
|
+
"variant": "ghost",
|
|
2981
|
+
"action": "CLOSE"
|
|
2928
2982
|
}
|
|
2929
|
-
]
|
|
2930
|
-
"direction": "horizontal",
|
|
2931
|
-
"gap": "sm"
|
|
2983
|
+
]
|
|
2932
2984
|
}
|
|
2933
2985
|
],
|
|
2934
|
-
"direction": "vertical"
|
|
2986
|
+
"direction": "vertical",
|
|
2987
|
+
"type": "stack",
|
|
2988
|
+
"gap": "md"
|
|
2935
2989
|
}
|
|
2936
2990
|
]
|
|
2937
2991
|
]
|
|
@@ -3157,8 +3211,8 @@
|
|
|
3157
3211
|
"Category",
|
|
3158
3212
|
{
|
|
3159
3213
|
"emit": {
|
|
3160
|
-
"
|
|
3161
|
-
"
|
|
3214
|
+
"failure": "CategoryLoadFailed",
|
|
3215
|
+
"success": "CategoryLoaded"
|
|
3162
3216
|
}
|
|
3163
3217
|
}
|
|
3164
3218
|
],
|
|
@@ -3166,22 +3220,22 @@
|
|
|
3166
3220
|
"render-ui",
|
|
3167
3221
|
"main",
|
|
3168
3222
|
{
|
|
3223
|
+
"align": "center",
|
|
3169
3224
|
"children": [
|
|
3170
3225
|
{
|
|
3171
3226
|
"type": "spinner"
|
|
3172
3227
|
},
|
|
3173
3228
|
{
|
|
3174
|
-
"variant": "caption",
|
|
3175
|
-
"type": "typography",
|
|
3176
3229
|
"color": "muted",
|
|
3177
|
-
"
|
|
3230
|
+
"variant": "caption",
|
|
3231
|
+
"content": "Loading…",
|
|
3232
|
+
"type": "typography"
|
|
3178
3233
|
}
|
|
3179
3234
|
],
|
|
3180
3235
|
"direction": "vertical",
|
|
3181
|
-
"
|
|
3236
|
+
"className": "py-12",
|
|
3182
3237
|
"type": "stack",
|
|
3183
|
-
"
|
|
3184
|
-
"className": "py-12"
|
|
3238
|
+
"gap": "md"
|
|
3185
3239
|
}
|
|
3186
3240
|
]
|
|
3187
3241
|
]
|
|
@@ -3195,123 +3249,123 @@
|
|
|
3195
3249
|
"render-ui",
|
|
3196
3250
|
"main",
|
|
3197
3251
|
{
|
|
3198
|
-
"navItems": [
|
|
3199
|
-
{
|
|
3200
|
-
"href": "/articles",
|
|
3201
|
-
"label": "Articles",
|
|
3202
|
-
"icon": "file-text"
|
|
3203
|
-
},
|
|
3204
|
-
{
|
|
3205
|
-
"label": "Media",
|
|
3206
|
-
"href": "/media",
|
|
3207
|
-
"icon": "image"
|
|
3208
|
-
},
|
|
3209
|
-
{
|
|
3210
|
-
"label": "Categories",
|
|
3211
|
-
"href": "/categories",
|
|
3212
|
-
"icon": "folder"
|
|
3213
|
-
}
|
|
3214
|
-
],
|
|
3215
3252
|
"children": [
|
|
3216
3253
|
{
|
|
3217
|
-
"gap": "lg",
|
|
3218
|
-
"type": "stack",
|
|
3219
|
-
"className": "max-w-5xl mx-auto w-full",
|
|
3220
|
-
"direction": "vertical",
|
|
3221
3254
|
"children": [
|
|
3222
3255
|
{
|
|
3223
|
-
"
|
|
3256
|
+
"justify": "between",
|
|
3224
3257
|
"children": [
|
|
3225
3258
|
{
|
|
3259
|
+
"type": "stack",
|
|
3260
|
+
"align": "center",
|
|
3226
3261
|
"children": [
|
|
3227
3262
|
{
|
|
3228
3263
|
"type": "icon",
|
|
3229
3264
|
"name": "folder"
|
|
3230
3265
|
},
|
|
3231
3266
|
{
|
|
3232
|
-
"content": "Categories",
|
|
3233
3267
|
"type": "typography",
|
|
3268
|
+
"content": "Categories",
|
|
3234
3269
|
"variant": "h2"
|
|
3235
3270
|
}
|
|
3236
3271
|
],
|
|
3237
3272
|
"gap": "sm",
|
|
3238
|
-
"direction": "horizontal"
|
|
3239
|
-
"type": "stack",
|
|
3240
|
-
"align": "center"
|
|
3273
|
+
"direction": "horizontal"
|
|
3241
3274
|
},
|
|
3242
3275
|
{
|
|
3243
|
-
"
|
|
3244
|
-
"type": "stack",
|
|
3276
|
+
"gap": "sm",
|
|
3245
3277
|
"children": [
|
|
3246
3278
|
{
|
|
3247
|
-
"type": "button",
|
|
3248
|
-
"label": "Create Category",
|
|
3249
3279
|
"action": "CREATE",
|
|
3280
|
+
"label": "Create Category",
|
|
3250
3281
|
"variant": "primary",
|
|
3251
|
-
"icon": "plus"
|
|
3282
|
+
"icon": "plus",
|
|
3283
|
+
"type": "button"
|
|
3252
3284
|
}
|
|
3253
3285
|
],
|
|
3254
|
-
"
|
|
3286
|
+
"direction": "horizontal",
|
|
3287
|
+
"type": "stack"
|
|
3255
3288
|
}
|
|
3256
3289
|
],
|
|
3257
|
-
"direction": "horizontal",
|
|
3258
3290
|
"type": "stack",
|
|
3291
|
+
"gap": "md",
|
|
3259
3292
|
"align": "center",
|
|
3260
|
-
"
|
|
3293
|
+
"direction": "horizontal"
|
|
3261
3294
|
},
|
|
3262
3295
|
{
|
|
3263
3296
|
"type": "divider"
|
|
3264
3297
|
},
|
|
3265
3298
|
{
|
|
3266
|
-
"
|
|
3267
|
-
"type": "data-list",
|
|
3268
|
-
"fields": [],
|
|
3299
|
+
"gap": "sm",
|
|
3269
3300
|
"itemActions": [
|
|
3270
3301
|
{
|
|
3302
|
+
"label": "View",
|
|
3271
3303
|
"event": "VIEW",
|
|
3272
|
-
"variant": "ghost"
|
|
3273
|
-
"label": "View"
|
|
3304
|
+
"variant": "ghost"
|
|
3274
3305
|
},
|
|
3275
3306
|
{
|
|
3276
|
-
"variant": "ghost",
|
|
3277
3307
|
"label": "Edit",
|
|
3308
|
+
"variant": "ghost",
|
|
3278
3309
|
"event": "EDIT"
|
|
3279
3310
|
},
|
|
3280
3311
|
{
|
|
3312
|
+
"variant": "danger",
|
|
3281
3313
|
"event": "DELETE",
|
|
3282
|
-
"label": "Delete"
|
|
3283
|
-
"variant": "danger"
|
|
3314
|
+
"label": "Delete"
|
|
3284
3315
|
}
|
|
3285
3316
|
],
|
|
3286
|
-
"
|
|
3317
|
+
"type": "data-list",
|
|
3318
|
+
"fields": [],
|
|
3319
|
+
"entity": "@payload.data",
|
|
3287
3320
|
"columns": [
|
|
3288
3321
|
{
|
|
3289
|
-
"
|
|
3322
|
+
"icon": "folder",
|
|
3290
3323
|
"name": "name",
|
|
3291
|
-
"
|
|
3324
|
+
"variant": "h3"
|
|
3292
3325
|
},
|
|
3293
3326
|
{
|
|
3294
|
-
"name": "articleCount",
|
|
3295
|
-
"variant": "badge",
|
|
3296
3327
|
"format": "number",
|
|
3297
|
-
"
|
|
3328
|
+
"variant": "badge",
|
|
3329
|
+
"label": "Articles",
|
|
3330
|
+
"name": "articleCount"
|
|
3298
3331
|
},
|
|
3299
3332
|
{
|
|
3300
3333
|
"variant": "body",
|
|
3301
3334
|
"name": "description"
|
|
3302
3335
|
},
|
|
3303
3336
|
{
|
|
3304
|
-
"
|
|
3305
|
-
"
|
|
3337
|
+
"name": "slug",
|
|
3338
|
+
"variant": "caption"
|
|
3306
3339
|
}
|
|
3307
3340
|
],
|
|
3308
|
-
"
|
|
3341
|
+
"variant": "card"
|
|
3309
3342
|
}
|
|
3310
|
-
]
|
|
3343
|
+
],
|
|
3344
|
+
"direction": "vertical",
|
|
3345
|
+
"className": "max-w-5xl mx-auto w-full",
|
|
3346
|
+
"gap": "lg",
|
|
3347
|
+
"type": "stack"
|
|
3311
3348
|
}
|
|
3312
3349
|
],
|
|
3313
|
-
"
|
|
3314
|
-
|
|
3350
|
+
"navItems": [
|
|
3351
|
+
{
|
|
3352
|
+
"href": "/articles",
|
|
3353
|
+
"label": "Articles",
|
|
3354
|
+
"icon": "file-text"
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"label": "Media",
|
|
3358
|
+
"href": "/media",
|
|
3359
|
+
"icon": "image"
|
|
3360
|
+
},
|
|
3361
|
+
{
|
|
3362
|
+
"href": "/categories",
|
|
3363
|
+
"label": "Categories",
|
|
3364
|
+
"icon": "folder"
|
|
3365
|
+
}
|
|
3366
|
+
],
|
|
3367
|
+
"type": "dashboard-layout",
|
|
3368
|
+
"appName": "CmsApp"
|
|
3315
3369
|
}
|
|
3316
3370
|
]
|
|
3317
3371
|
]
|
|
@@ -3325,10 +3379,6 @@
|
|
|
3325
3379
|
"render-ui",
|
|
3326
3380
|
"main",
|
|
3327
3381
|
{
|
|
3328
|
-
"className": "py-12",
|
|
3329
|
-
"direction": "vertical",
|
|
3330
|
-
"align": "center",
|
|
3331
|
-
"gap": "md",
|
|
3332
3382
|
"children": [
|
|
3333
3383
|
{
|
|
3334
3384
|
"color": "destructive",
|
|
@@ -3336,25 +3386,29 @@
|
|
|
3336
3386
|
"name": "alert-triangle"
|
|
3337
3387
|
},
|
|
3338
3388
|
{
|
|
3339
|
-
"
|
|
3389
|
+
"content": "Failed to load category",
|
|
3340
3390
|
"type": "typography",
|
|
3341
|
-
"
|
|
3391
|
+
"variant": "h3"
|
|
3342
3392
|
},
|
|
3343
3393
|
{
|
|
3344
3394
|
"variant": "body",
|
|
3345
3395
|
"color": "muted",
|
|
3346
|
-
"
|
|
3347
|
-
"
|
|
3396
|
+
"content": "@payload.error",
|
|
3397
|
+
"type": "typography"
|
|
3348
3398
|
},
|
|
3349
3399
|
{
|
|
3350
|
-
"action": "INIT",
|
|
3351
|
-
"label": "Retry",
|
|
3352
3400
|
"type": "button",
|
|
3401
|
+
"icon": "rotate-ccw",
|
|
3353
3402
|
"variant": "primary",
|
|
3354
|
-
"
|
|
3403
|
+
"action": "INIT",
|
|
3404
|
+
"label": "Retry"
|
|
3355
3405
|
}
|
|
3356
3406
|
],
|
|
3357
|
-
"
|
|
3407
|
+
"className": "py-12",
|
|
3408
|
+
"type": "stack",
|
|
3409
|
+
"direction": "vertical",
|
|
3410
|
+
"align": "center",
|
|
3411
|
+
"gap": "md"
|
|
3358
3412
|
}
|
|
3359
3413
|
]
|
|
3360
3414
|
]
|
|
@@ -3515,8 +3569,14 @@
|
|
|
3515
3569
|
"event": "INIT",
|
|
3516
3570
|
"effects": [
|
|
3517
3571
|
[
|
|
3518
|
-
"
|
|
3519
|
-
"Category"
|
|
3572
|
+
"fetch",
|
|
3573
|
+
"Category",
|
|
3574
|
+
{
|
|
3575
|
+
"emit": {
|
|
3576
|
+
"failure": "CategoryLoadFailed",
|
|
3577
|
+
"success": "CategoryLoaded"
|
|
3578
|
+
}
|
|
3579
|
+
}
|
|
3520
3580
|
]
|
|
3521
3581
|
]
|
|
3522
3582
|
},
|
|
@@ -3530,8 +3590,8 @@
|
|
|
3530
3590
|
"Category",
|
|
3531
3591
|
{
|
|
3532
3592
|
"emit": {
|
|
3533
|
-
"
|
|
3534
|
-
"
|
|
3593
|
+
"success": "CategoryLoaded",
|
|
3594
|
+
"failure": "CategoryLoadFailed"
|
|
3535
3595
|
}
|
|
3536
3596
|
}
|
|
3537
3597
|
],
|
|
@@ -3539,30 +3599,27 @@
|
|
|
3539
3599
|
"render-ui",
|
|
3540
3600
|
"modal",
|
|
3541
3601
|
{
|
|
3542
|
-
"type": "stack",
|
|
3543
|
-
"gap": "md",
|
|
3544
3602
|
"children": [
|
|
3545
3603
|
{
|
|
3546
|
-
"
|
|
3547
|
-
"direction": "horizontal",
|
|
3604
|
+
"type": "stack",
|
|
3548
3605
|
"children": [
|
|
3549
3606
|
{
|
|
3550
3607
|
"type": "icon",
|
|
3551
3608
|
"name": "plus-circle"
|
|
3552
3609
|
},
|
|
3553
3610
|
{
|
|
3554
|
-
"variant": "h3",
|
|
3555
3611
|
"type": "typography",
|
|
3556
|
-
"content": "Create Category"
|
|
3612
|
+
"content": "Create Category",
|
|
3613
|
+
"variant": "h3"
|
|
3557
3614
|
}
|
|
3558
3615
|
],
|
|
3559
|
-
"
|
|
3616
|
+
"direction": "horizontal",
|
|
3617
|
+
"gap": "sm"
|
|
3560
3618
|
},
|
|
3561
3619
|
{
|
|
3562
3620
|
"type": "divider"
|
|
3563
3621
|
},
|
|
3564
3622
|
{
|
|
3565
|
-
"cancelEvent": "CLOSE",
|
|
3566
3623
|
"fields": [
|
|
3567
3624
|
"name",
|
|
3568
3625
|
"slug",
|
|
@@ -3571,11 +3628,14 @@
|
|
|
3571
3628
|
"articleCount"
|
|
3572
3629
|
],
|
|
3573
3630
|
"mode": "create",
|
|
3574
|
-
"
|
|
3575
|
-
"
|
|
3631
|
+
"type": "form-section",
|
|
3632
|
+
"cancelEvent": "CLOSE",
|
|
3633
|
+
"submitEvent": "SAVE"
|
|
3576
3634
|
}
|
|
3577
3635
|
],
|
|
3578
|
-
"
|
|
3636
|
+
"gap": "md",
|
|
3637
|
+
"direction": "vertical",
|
|
3638
|
+
"type": "stack"
|
|
3579
3639
|
}
|
|
3580
3640
|
]
|
|
3581
3641
|
]
|
|
@@ -3805,8 +3865,14 @@
|
|
|
3805
3865
|
"event": "INIT",
|
|
3806
3866
|
"effects": [
|
|
3807
3867
|
[
|
|
3808
|
-
"
|
|
3809
|
-
"Category"
|
|
3868
|
+
"fetch",
|
|
3869
|
+
"Category",
|
|
3870
|
+
{
|
|
3871
|
+
"emit": {
|
|
3872
|
+
"failure": "CategoryLoadFailed",
|
|
3873
|
+
"success": "CategoryLoaded"
|
|
3874
|
+
}
|
|
3875
|
+
}
|
|
3810
3876
|
]
|
|
3811
3877
|
]
|
|
3812
3878
|
},
|
|
@@ -3831,11 +3897,10 @@
|
|
|
3831
3897
|
"modal",
|
|
3832
3898
|
{
|
|
3833
3899
|
"type": "stack",
|
|
3900
|
+
"direction": "vertical",
|
|
3834
3901
|
"children": [
|
|
3835
3902
|
{
|
|
3836
3903
|
"gap": "sm",
|
|
3837
|
-
"type": "stack",
|
|
3838
|
-
"direction": "horizontal",
|
|
3839
3904
|
"children": [
|
|
3840
3905
|
{
|
|
3841
3906
|
"type": "icon",
|
|
@@ -3846,13 +3911,14 @@
|
|
|
3846
3911
|
"variant": "h3",
|
|
3847
3912
|
"content": "Edit Category"
|
|
3848
3913
|
}
|
|
3849
|
-
]
|
|
3914
|
+
],
|
|
3915
|
+
"direction": "horizontal",
|
|
3916
|
+
"type": "stack"
|
|
3850
3917
|
},
|
|
3851
3918
|
{
|
|
3852
3919
|
"type": "divider"
|
|
3853
3920
|
},
|
|
3854
3921
|
{
|
|
3855
|
-
"entity": "@payload.row",
|
|
3856
3922
|
"fields": [
|
|
3857
3923
|
"name",
|
|
3858
3924
|
"slug",
|
|
@@ -3860,13 +3926,13 @@
|
|
|
3860
3926
|
"parentCategory",
|
|
3861
3927
|
"articleCount"
|
|
3862
3928
|
],
|
|
3863
|
-
"mode": "edit",
|
|
3864
3929
|
"type": "form-section",
|
|
3930
|
+
"entity": "@payload.row",
|
|
3865
3931
|
"submitEvent": "SAVE",
|
|
3866
|
-
"cancelEvent": "CLOSE"
|
|
3932
|
+
"cancelEvent": "CLOSE",
|
|
3933
|
+
"mode": "edit"
|
|
3867
3934
|
}
|
|
3868
3935
|
],
|
|
3869
|
-
"direction": "vertical",
|
|
3870
3936
|
"gap": "md"
|
|
3871
3937
|
}
|
|
3872
3938
|
]
|
|
@@ -4032,8 +4098,14 @@
|
|
|
4032
4098
|
"event": "INIT",
|
|
4033
4099
|
"effects": [
|
|
4034
4100
|
[
|
|
4035
|
-
"
|
|
4036
|
-
"Category"
|
|
4101
|
+
"fetch",
|
|
4102
|
+
"Category",
|
|
4103
|
+
{
|
|
4104
|
+
"emit": {
|
|
4105
|
+
"failure": "CategoryLoadFailed",
|
|
4106
|
+
"success": "CategoryLoaded"
|
|
4107
|
+
}
|
|
4108
|
+
}
|
|
4037
4109
|
]
|
|
4038
4110
|
]
|
|
4039
4111
|
},
|
|
@@ -4057,98 +4129,101 @@
|
|
|
4057
4129
|
"render-ui",
|
|
4058
4130
|
"modal",
|
|
4059
4131
|
{
|
|
4132
|
+
"gap": "md",
|
|
4060
4133
|
"type": "stack",
|
|
4061
4134
|
"direction": "vertical",
|
|
4062
4135
|
"children": [
|
|
4063
4136
|
{
|
|
4137
|
+
"type": "stack",
|
|
4138
|
+
"gap": "sm",
|
|
4139
|
+
"direction": "horizontal",
|
|
4140
|
+
"align": "center",
|
|
4064
4141
|
"children": [
|
|
4065
4142
|
{
|
|
4066
|
-
"
|
|
4067
|
-
"
|
|
4143
|
+
"type": "icon",
|
|
4144
|
+
"name": "eye"
|
|
4068
4145
|
},
|
|
4069
4146
|
{
|
|
4070
|
-
"type": "typography",
|
|
4071
4147
|
"content": "@entity.name",
|
|
4148
|
+
"type": "typography",
|
|
4072
4149
|
"variant": "h3"
|
|
4073
4150
|
}
|
|
4074
|
-
]
|
|
4075
|
-
"gap": "sm",
|
|
4076
|
-
"direction": "horizontal",
|
|
4077
|
-
"align": "center",
|
|
4078
|
-
"type": "stack"
|
|
4151
|
+
]
|
|
4079
4152
|
},
|
|
4080
4153
|
{
|
|
4081
4154
|
"type": "divider"
|
|
4082
4155
|
},
|
|
4083
4156
|
{
|
|
4157
|
+
"direction": "horizontal",
|
|
4158
|
+
"type": "stack",
|
|
4159
|
+
"gap": "md",
|
|
4084
4160
|
"children": [
|
|
4085
4161
|
{
|
|
4086
4162
|
"variant": "caption",
|
|
4087
|
-
"
|
|
4088
|
-
"
|
|
4163
|
+
"type": "typography",
|
|
4164
|
+
"content": "Name"
|
|
4089
4165
|
},
|
|
4090
4166
|
{
|
|
4091
|
-
"type": "typography",
|
|
4092
4167
|
"content": "@entity.name",
|
|
4168
|
+
"type": "typography",
|
|
4093
4169
|
"variant": "body"
|
|
4094
4170
|
}
|
|
4095
|
-
]
|
|
4096
|
-
"type": "stack",
|
|
4097
|
-
"direction": "horizontal",
|
|
4098
|
-
"gap": "md"
|
|
4171
|
+
]
|
|
4099
4172
|
},
|
|
4100
4173
|
{
|
|
4174
|
+
"direction": "horizontal",
|
|
4175
|
+
"gap": "md",
|
|
4176
|
+
"type": "stack",
|
|
4101
4177
|
"children": [
|
|
4102
4178
|
{
|
|
4103
4179
|
"variant": "caption",
|
|
4104
|
-
"
|
|
4105
|
-
"
|
|
4180
|
+
"type": "typography",
|
|
4181
|
+
"content": "Slug"
|
|
4106
4182
|
},
|
|
4107
4183
|
{
|
|
4108
|
-
"variant": "body",
|
|
4109
4184
|
"content": "@entity.slug",
|
|
4110
|
-
"type": "typography"
|
|
4185
|
+
"type": "typography",
|
|
4186
|
+
"variant": "body"
|
|
4111
4187
|
}
|
|
4112
|
-
]
|
|
4113
|
-
"gap": "md",
|
|
4114
|
-
"type": "stack",
|
|
4115
|
-
"direction": "horizontal"
|
|
4188
|
+
]
|
|
4116
4189
|
},
|
|
4117
4190
|
{
|
|
4118
4191
|
"direction": "horizontal",
|
|
4119
|
-
"gap": "md",
|
|
4120
4192
|
"children": [
|
|
4121
4193
|
{
|
|
4122
|
-
"
|
|
4194
|
+
"content": "Description",
|
|
4123
4195
|
"variant": "caption",
|
|
4124
|
-
"
|
|
4196
|
+
"type": "typography"
|
|
4125
4197
|
},
|
|
4126
4198
|
{
|
|
4127
|
-
"content": "@entity.description",
|
|
4128
4199
|
"type": "typography",
|
|
4129
|
-
"variant": "body"
|
|
4200
|
+
"variant": "body",
|
|
4201
|
+
"content": "@entity.description"
|
|
4130
4202
|
}
|
|
4131
4203
|
],
|
|
4204
|
+
"gap": "md",
|
|
4132
4205
|
"type": "stack"
|
|
4133
4206
|
},
|
|
4134
4207
|
{
|
|
4135
|
-
"gap": "md",
|
|
4136
4208
|
"type": "stack",
|
|
4209
|
+
"direction": "horizontal",
|
|
4210
|
+
"gap": "md",
|
|
4137
4211
|
"children": [
|
|
4138
4212
|
{
|
|
4139
|
-
"content": "Parent Category",
|
|
4140
4213
|
"type": "typography",
|
|
4141
|
-
"variant": "caption"
|
|
4214
|
+
"variant": "caption",
|
|
4215
|
+
"content": "Parent Category"
|
|
4142
4216
|
},
|
|
4143
4217
|
{
|
|
4218
|
+
"variant": "body",
|
|
4144
4219
|
"type": "typography",
|
|
4145
|
-
"content": "@entity.parentCategory"
|
|
4146
|
-
"variant": "body"
|
|
4220
|
+
"content": "@entity.parentCategory"
|
|
4147
4221
|
}
|
|
4148
|
-
]
|
|
4149
|
-
"direction": "horizontal"
|
|
4222
|
+
]
|
|
4150
4223
|
},
|
|
4151
4224
|
{
|
|
4225
|
+
"gap": "md",
|
|
4226
|
+
"direction": "horizontal",
|
|
4152
4227
|
"children": [
|
|
4153
4228
|
{
|
|
4154
4229
|
"content": "Article Count",
|
|
@@ -4156,41 +4231,38 @@
|
|
|
4156
4231
|
"type": "typography"
|
|
4157
4232
|
},
|
|
4158
4233
|
{
|
|
4159
|
-
"
|
|
4234
|
+
"type": "typography",
|
|
4160
4235
|
"variant": "body",
|
|
4161
|
-
"
|
|
4236
|
+
"content": "@entity.articleCount"
|
|
4162
4237
|
}
|
|
4163
4238
|
],
|
|
4164
|
-
"type": "stack"
|
|
4165
|
-
"gap": "md",
|
|
4166
|
-
"direction": "horizontal"
|
|
4239
|
+
"type": "stack"
|
|
4167
4240
|
},
|
|
4168
4241
|
{
|
|
4169
4242
|
"type": "divider"
|
|
4170
4243
|
},
|
|
4171
4244
|
{
|
|
4245
|
+
"direction": "horizontal",
|
|
4246
|
+
"gap": "sm",
|
|
4172
4247
|
"justify": "end",
|
|
4248
|
+
"type": "stack",
|
|
4173
4249
|
"children": [
|
|
4174
4250
|
{
|
|
4175
|
-
"type": "button",
|
|
4176
4251
|
"label": "Edit",
|
|
4252
|
+
"action": "EDIT",
|
|
4253
|
+
"type": "button",
|
|
4177
4254
|
"variant": "primary",
|
|
4178
|
-
"icon": "edit"
|
|
4179
|
-
"action": "EDIT"
|
|
4255
|
+
"icon": "edit"
|
|
4180
4256
|
},
|
|
4181
4257
|
{
|
|
4258
|
+
"type": "button",
|
|
4182
4259
|
"label": "Close",
|
|
4183
|
-
"action": "CLOSE",
|
|
4184
4260
|
"variant": "ghost",
|
|
4185
|
-
"
|
|
4261
|
+
"action": "CLOSE"
|
|
4186
4262
|
}
|
|
4187
|
-
]
|
|
4188
|
-
"type": "stack",
|
|
4189
|
-
"direction": "horizontal",
|
|
4190
|
-
"gap": "sm"
|
|
4263
|
+
]
|
|
4191
4264
|
}
|
|
4192
|
-
]
|
|
4193
|
-
"gap": "md"
|
|
4265
|
+
]
|
|
4194
4266
|
}
|
|
4195
4267
|
]
|
|
4196
4268
|
]
|
|
@@ -4398,8 +4470,14 @@
|
|
|
4398
4470
|
"event": "INIT",
|
|
4399
4471
|
"effects": [
|
|
4400
4472
|
[
|
|
4401
|
-
"
|
|
4402
|
-
"Category"
|
|
4473
|
+
"fetch",
|
|
4474
|
+
"Category",
|
|
4475
|
+
{
|
|
4476
|
+
"emit": {
|
|
4477
|
+
"success": "CategoryLoaded",
|
|
4478
|
+
"failure": "CategoryLoadFailed"
|
|
4479
|
+
}
|
|
4480
|
+
}
|
|
4403
4481
|
]
|
|
4404
4482
|
]
|
|
4405
4483
|
},
|
|
@@ -4417,68 +4495,68 @@
|
|
|
4417
4495
|
"fetch",
|
|
4418
4496
|
"Category",
|
|
4419
4497
|
{
|
|
4420
|
-
"id": "@payload.id",
|
|
4421
4498
|
"emit": {
|
|
4422
|
-
"
|
|
4423
|
-
"
|
|
4424
|
-
}
|
|
4499
|
+
"failure": "CategoryLoadFailed",
|
|
4500
|
+
"success": "CategoryLoaded"
|
|
4501
|
+
},
|
|
4502
|
+
"id": "@payload.id"
|
|
4425
4503
|
}
|
|
4426
4504
|
],
|
|
4427
4505
|
[
|
|
4428
4506
|
"render-ui",
|
|
4429
4507
|
"modal",
|
|
4430
4508
|
{
|
|
4431
|
-
"type": "stack",
|
|
4432
4509
|
"children": [
|
|
4433
4510
|
{
|
|
4511
|
+
"gap": "sm",
|
|
4434
4512
|
"type": "stack",
|
|
4435
|
-
"direction": "horizontal",
|
|
4436
4513
|
"children": [
|
|
4437
4514
|
{
|
|
4438
|
-
"
|
|
4439
|
-
"
|
|
4515
|
+
"name": "alert-triangle",
|
|
4516
|
+
"type": "icon"
|
|
4440
4517
|
},
|
|
4441
4518
|
{
|
|
4442
4519
|
"type": "typography",
|
|
4443
|
-
"
|
|
4444
|
-
"
|
|
4520
|
+
"variant": "h3",
|
|
4521
|
+
"content": "Delete Category"
|
|
4445
4522
|
}
|
|
4446
4523
|
],
|
|
4447
|
-
"
|
|
4448
|
-
"
|
|
4524
|
+
"direction": "horizontal",
|
|
4525
|
+
"align": "center"
|
|
4449
4526
|
},
|
|
4450
4527
|
{
|
|
4451
4528
|
"type": "divider"
|
|
4452
4529
|
},
|
|
4453
4530
|
{
|
|
4454
|
-
"
|
|
4531
|
+
"type": "alert",
|
|
4455
4532
|
"message": "This action cannot be undone.",
|
|
4456
|
-
"
|
|
4533
|
+
"variant": "error"
|
|
4457
4534
|
},
|
|
4458
4535
|
{
|
|
4459
|
-
"direction": "horizontal",
|
|
4460
4536
|
"gap": "sm",
|
|
4537
|
+
"type": "stack",
|
|
4538
|
+
"justify": "end",
|
|
4461
4539
|
"children": [
|
|
4462
4540
|
{
|
|
4463
|
-
"variant": "ghost",
|
|
4464
4541
|
"type": "button",
|
|
4465
4542
|
"label": "Cancel",
|
|
4543
|
+
"variant": "ghost",
|
|
4466
4544
|
"action": "CANCEL"
|
|
4467
4545
|
},
|
|
4468
4546
|
{
|
|
4547
|
+
"icon": "check",
|
|
4469
4548
|
"action": "CONFIRM_DELETE",
|
|
4470
|
-
"variant": "danger",
|
|
4471
4549
|
"type": "button",
|
|
4472
4550
|
"label": "Delete",
|
|
4473
|
-
"
|
|
4551
|
+
"variant": "danger"
|
|
4474
4552
|
}
|
|
4475
4553
|
],
|
|
4476
|
-
"
|
|
4477
|
-
"type": "stack"
|
|
4554
|
+
"direction": "horizontal"
|
|
4478
4555
|
}
|
|
4479
4556
|
],
|
|
4480
|
-
"
|
|
4481
|
-
"
|
|
4557
|
+
"direction": "vertical",
|
|
4558
|
+
"type": "stack",
|
|
4559
|
+
"gap": "md"
|
|
4482
4560
|
}
|
|
4483
4561
|
]
|
|
4484
4562
|
]
|
|
@@ -4495,8 +4573,8 @@
|
|
|
4495
4573
|
"@entity.pendingId",
|
|
4496
4574
|
{
|
|
4497
4575
|
"emit": {
|
|
4498
|
-
"
|
|
4499
|
-
"
|
|
4576
|
+
"success": "CategoryDeleted",
|
|
4577
|
+
"failure": "CategoryDeleteFailed"
|
|
4500
4578
|
}
|
|
4501
4579
|
}
|
|
4502
4580
|
],
|
|
@@ -4513,8 +4591,14 @@
|
|
|
4513
4591
|
}
|
|
4514
4592
|
],
|
|
4515
4593
|
[
|
|
4516
|
-
"
|
|
4517
|
-
"Category"
|
|
4594
|
+
"fetch",
|
|
4595
|
+
"Category",
|
|
4596
|
+
{
|
|
4597
|
+
"emit": {
|
|
4598
|
+
"success": "CategoryLoaded",
|
|
4599
|
+
"failure": "CategoryLoadFailed"
|
|
4600
|
+
}
|
|
4601
|
+
}
|
|
4518
4602
|
],
|
|
4519
4603
|
[
|
|
4520
4604
|
"emit",
|
|
@@ -4540,8 +4624,14 @@
|
|
|
4540
4624
|
}
|
|
4541
4625
|
],
|
|
4542
4626
|
[
|
|
4543
|
-
"
|
|
4544
|
-
"Category"
|
|
4627
|
+
"fetch",
|
|
4628
|
+
"Category",
|
|
4629
|
+
{
|
|
4630
|
+
"emit": {
|
|
4631
|
+
"failure": "CategoryLoadFailed",
|
|
4632
|
+
"success": "CategoryLoaded"
|
|
4633
|
+
}
|
|
4634
|
+
}
|
|
4545
4635
|
]
|
|
4546
4636
|
]
|
|
4547
4637
|
},
|
|
@@ -4563,8 +4653,14 @@
|
|
|
4563
4653
|
}
|
|
4564
4654
|
],
|
|
4565
4655
|
[
|
|
4566
|
-
"
|
|
4567
|
-
"Category"
|
|
4656
|
+
"fetch",
|
|
4657
|
+
"Category",
|
|
4658
|
+
{
|
|
4659
|
+
"emit": {
|
|
4660
|
+
"failure": "CategoryLoadFailed",
|
|
4661
|
+
"success": "CategoryLoaded"
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4568
4664
|
]
|
|
4569
4665
|
]
|
|
4570
4666
|
}
|