@almadar/std 14.2.0 → 14.3.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/app/organisms/std-cms.orb +639 -519
- package/behaviors/registry/core/molecules/std-app-layout.orb +60 -18
- package/dist/behaviors/registry/app/organisms/std-cms.orb +639 -519
- package/dist/behaviors/registry/core/molecules/std-app-layout.orb +60 -18
- package/package.json +1 -1
|
@@ -66,15 +66,11 @@
|
|
|
66
66
|
"ref": "AppShell.traits.AppLayout",
|
|
67
67
|
"name": "CmsArticleAppLayout",
|
|
68
68
|
"config": {
|
|
69
|
-
"contentTrait": "@trait.ArticleBrowse",
|
|
70
|
-
"notificationClickEvent": "NOTIFICATIONS_OPEN",
|
|
71
|
-
"appName": "CmsApp",
|
|
72
|
-
"searchEvent": "ARTICLE_SEARCH",
|
|
73
69
|
"navItems": [
|
|
74
70
|
{
|
|
75
|
-
"
|
|
71
|
+
"icon": "layout-grid",
|
|
76
72
|
"href": "/cms-hub",
|
|
77
|
-
"
|
|
73
|
+
"label": "CMS Hub"
|
|
78
74
|
},
|
|
79
75
|
{
|
|
80
76
|
"label": "Articles",
|
|
@@ -82,17 +78,25 @@
|
|
|
82
78
|
"icon": "file-text"
|
|
83
79
|
},
|
|
84
80
|
{
|
|
85
|
-
"icon": "image",
|
|
86
81
|
"href": "/media",
|
|
87
|
-
"label": "Media"
|
|
82
|
+
"label": "Media",
|
|
83
|
+
"icon": "image"
|
|
88
84
|
},
|
|
89
85
|
{
|
|
90
|
-
"
|
|
86
|
+
"label": "Categories",
|
|
91
87
|
"icon": "folder",
|
|
92
|
-
"
|
|
88
|
+
"href": "/categories"
|
|
93
89
|
}
|
|
94
90
|
],
|
|
95
|
-
"notifications": []
|
|
91
|
+
"notifications": [],
|
|
92
|
+
"notificationClickEvent": "NOTIFICATIONS_OPEN",
|
|
93
|
+
"contentTrait": "@trait.ArticleBrowse",
|
|
94
|
+
"appName": "CmsApp",
|
|
95
|
+
"searchEvent": "ARTICLE_SEARCH"
|
|
96
|
+
},
|
|
97
|
+
"events": {
|
|
98
|
+
"NOTIFY_CLICK": "NOTIFICATIONS_OPEN",
|
|
99
|
+
"SEARCH": "ARTICLE_SEARCH"
|
|
96
100
|
}
|
|
97
101
|
},
|
|
98
102
|
{
|
|
@@ -477,6 +481,22 @@
|
|
|
477
481
|
"kind": "trait",
|
|
478
482
|
"trait": "ArticleDelete"
|
|
479
483
|
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"event": "ARTICLE_SEARCH",
|
|
487
|
+
"triggers": "ARTICLE_SEARCH",
|
|
488
|
+
"source": {
|
|
489
|
+
"kind": "trait",
|
|
490
|
+
"trait": "CmsArticleAppLayout"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"event": "NOTIFICATIONS_OPEN",
|
|
495
|
+
"triggers": "NOTIFICATIONS_OPEN",
|
|
496
|
+
"source": {
|
|
497
|
+
"kind": "trait",
|
|
498
|
+
"trait": "CmsArticleAppLayout"
|
|
499
|
+
}
|
|
480
500
|
}
|
|
481
501
|
],
|
|
482
502
|
"stateMachine": {
|
|
@@ -491,6 +511,26 @@
|
|
|
491
511
|
"key": "INIT",
|
|
492
512
|
"name": "Initialize"
|
|
493
513
|
},
|
|
514
|
+
{
|
|
515
|
+
"key": "ARTICLE_SEARCH",
|
|
516
|
+
"name": "Article Search",
|
|
517
|
+
"payloadSchema": [
|
|
518
|
+
{
|
|
519
|
+
"name": "value",
|
|
520
|
+
"type": "string"
|
|
521
|
+
}
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"key": "NOTIFICATIONS_OPEN",
|
|
526
|
+
"name": "Notifications Open",
|
|
527
|
+
"payloadSchema": [
|
|
528
|
+
{
|
|
529
|
+
"name": "id",
|
|
530
|
+
"type": "string"
|
|
531
|
+
}
|
|
532
|
+
]
|
|
533
|
+
},
|
|
494
534
|
{
|
|
495
535
|
"key": "ArticleLoaded",
|
|
496
536
|
"name": "Article loaded",
|
|
@@ -752,8 +792,8 @@
|
|
|
752
792
|
"Article",
|
|
753
793
|
{
|
|
754
794
|
"emit": {
|
|
755
|
-
"
|
|
756
|
-
"
|
|
795
|
+
"success": "ArticleLoaded",
|
|
796
|
+
"failure": "ArticleLoadFailed"
|
|
757
797
|
}
|
|
758
798
|
}
|
|
759
799
|
],
|
|
@@ -761,22 +801,102 @@
|
|
|
761
801
|
"render-ui",
|
|
762
802
|
"main",
|
|
763
803
|
{
|
|
764
|
-
"
|
|
804
|
+
"type": "stack",
|
|
765
805
|
"gap": "md",
|
|
766
|
-
"
|
|
806
|
+
"align": "center",
|
|
807
|
+
"children": [
|
|
808
|
+
{
|
|
809
|
+
"type": "spinner"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"color": "muted",
|
|
813
|
+
"content": "Loading…",
|
|
814
|
+
"type": "typography",
|
|
815
|
+
"variant": "caption"
|
|
816
|
+
}
|
|
817
|
+
],
|
|
818
|
+
"direction": "vertical",
|
|
819
|
+
"className": "py-12"
|
|
820
|
+
}
|
|
821
|
+
]
|
|
822
|
+
]
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"from": "browsing",
|
|
826
|
+
"to": "browsing",
|
|
827
|
+
"event": "ARTICLE_SEARCH",
|
|
828
|
+
"effects": [
|
|
829
|
+
[
|
|
830
|
+
"fetch",
|
|
831
|
+
"Article",
|
|
832
|
+
{
|
|
833
|
+
"emit": {
|
|
834
|
+
"success": "ArticleLoaded",
|
|
835
|
+
"failure": "ArticleLoadFailed"
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
[
|
|
840
|
+
"render-ui",
|
|
841
|
+
"main",
|
|
842
|
+
{
|
|
843
|
+
"direction": "vertical",
|
|
844
|
+
"type": "stack",
|
|
845
|
+
"align": "center",
|
|
767
846
|
"children": [
|
|
768
847
|
{
|
|
769
848
|
"type": "spinner"
|
|
770
849
|
},
|
|
850
|
+
{
|
|
851
|
+
"content": "Searching…",
|
|
852
|
+
"color": "muted",
|
|
853
|
+
"variant": "caption",
|
|
854
|
+
"type": "typography"
|
|
855
|
+
}
|
|
856
|
+
],
|
|
857
|
+
"gap": "md",
|
|
858
|
+
"className": "py-12"
|
|
859
|
+
}
|
|
860
|
+
]
|
|
861
|
+
]
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"from": "browsing",
|
|
865
|
+
"to": "browsing",
|
|
866
|
+
"event": "NOTIFICATIONS_OPEN",
|
|
867
|
+
"effects": [
|
|
868
|
+
[
|
|
869
|
+
"render-ui",
|
|
870
|
+
"main",
|
|
871
|
+
{
|
|
872
|
+
"className": "py-8",
|
|
873
|
+
"type": "stack",
|
|
874
|
+
"direction": "vertical",
|
|
875
|
+
"children": [
|
|
876
|
+
{
|
|
877
|
+
"name": "bell",
|
|
878
|
+
"type": "icon"
|
|
879
|
+
},
|
|
771
880
|
{
|
|
772
881
|
"type": "typography",
|
|
882
|
+
"content": "No notifications",
|
|
883
|
+
"variant": "h3"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
773
886
|
"variant": "caption",
|
|
887
|
+
"type": "typography",
|
|
774
888
|
"color": "muted",
|
|
775
|
-
"content": "
|
|
889
|
+
"content": "You're all caught up."
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"label": "Back to articles",
|
|
893
|
+
"type": "button",
|
|
894
|
+
"action": "INIT",
|
|
895
|
+
"variant": "ghost"
|
|
776
896
|
}
|
|
777
897
|
],
|
|
778
|
-
"
|
|
779
|
-
"
|
|
898
|
+
"gap": "md",
|
|
899
|
+
"align": "center"
|
|
780
900
|
}
|
|
781
901
|
]
|
|
782
902
|
]
|
|
@@ -790,101 +910,101 @@
|
|
|
790
910
|
"render-ui",
|
|
791
911
|
"main",
|
|
792
912
|
{
|
|
913
|
+
"type": "stack",
|
|
914
|
+
"direction": "vertical",
|
|
793
915
|
"children": [
|
|
794
916
|
{
|
|
795
|
-
"gap": "md",
|
|
796
|
-
"align": "center",
|
|
797
|
-
"direction": "horizontal",
|
|
798
|
-
"justify": "between",
|
|
799
|
-
"type": "stack",
|
|
800
917
|
"children": [
|
|
801
918
|
{
|
|
802
|
-
"align": "center",
|
|
803
919
|
"gap": "sm",
|
|
920
|
+
"align": "center",
|
|
921
|
+
"direction": "horizontal",
|
|
804
922
|
"children": [
|
|
805
923
|
{
|
|
806
924
|
"type": "icon",
|
|
807
925
|
"name": "file-text"
|
|
808
926
|
},
|
|
809
927
|
{
|
|
810
|
-
"variant": "h2",
|
|
811
928
|
"type": "typography",
|
|
929
|
+
"variant": "h2",
|
|
812
930
|
"content": "Articles"
|
|
813
931
|
}
|
|
814
932
|
],
|
|
815
|
-
"type": "stack"
|
|
816
|
-
"direction": "horizontal"
|
|
933
|
+
"type": "stack"
|
|
817
934
|
},
|
|
818
935
|
{
|
|
819
936
|
"type": "stack",
|
|
820
|
-
"gap": "sm",
|
|
821
|
-
"direction": "horizontal",
|
|
822
937
|
"children": [
|
|
823
938
|
{
|
|
824
|
-
"label": "Create Article",
|
|
825
|
-
"icon": "plus",
|
|
826
939
|
"action": "CREATE",
|
|
940
|
+
"type": "button",
|
|
941
|
+
"label": "Create Article",
|
|
827
942
|
"variant": "primary",
|
|
828
|
-
"
|
|
943
|
+
"icon": "plus"
|
|
829
944
|
}
|
|
830
|
-
]
|
|
945
|
+
],
|
|
946
|
+
"gap": "sm",
|
|
947
|
+
"direction": "horizontal"
|
|
831
948
|
}
|
|
832
|
-
]
|
|
949
|
+
],
|
|
950
|
+
"direction": "horizontal",
|
|
951
|
+
"type": "stack",
|
|
952
|
+
"gap": "md",
|
|
953
|
+
"justify": "between",
|
|
954
|
+
"align": "center"
|
|
833
955
|
},
|
|
834
956
|
{
|
|
835
957
|
"type": "divider"
|
|
836
958
|
},
|
|
837
959
|
{
|
|
838
|
-
"
|
|
839
|
-
"type": "data-list",
|
|
960
|
+
"variant": "card",
|
|
840
961
|
"itemActions": [
|
|
841
962
|
{
|
|
842
963
|
"event": "VIEW",
|
|
843
|
-
"
|
|
844
|
-
"
|
|
964
|
+
"variant": "ghost",
|
|
965
|
+
"label": "View"
|
|
845
966
|
},
|
|
846
967
|
{
|
|
847
|
-
"event": "EDIT",
|
|
848
968
|
"label": "Edit",
|
|
969
|
+
"event": "EDIT",
|
|
849
970
|
"variant": "ghost"
|
|
850
971
|
},
|
|
851
972
|
{
|
|
852
|
-
"
|
|
973
|
+
"label": "Delete",
|
|
853
974
|
"event": "DELETE",
|
|
854
|
-
"
|
|
975
|
+
"variant": "danger"
|
|
855
976
|
}
|
|
856
977
|
],
|
|
978
|
+
"type": "data-list",
|
|
979
|
+
"gap": "sm",
|
|
857
980
|
"entity": "@payload.data",
|
|
858
981
|
"fields": [
|
|
859
982
|
{
|
|
860
983
|
"icon": "file-text",
|
|
861
|
-
"
|
|
862
|
-
"
|
|
984
|
+
"variant": "h3",
|
|
985
|
+
"name": "title"
|
|
863
986
|
},
|
|
864
987
|
{
|
|
865
|
-
"
|
|
866
|
-
"
|
|
988
|
+
"variant": "badge",
|
|
989
|
+
"name": "status"
|
|
867
990
|
},
|
|
868
991
|
{
|
|
869
|
-
"
|
|
870
|
-
"
|
|
992
|
+
"name": "author",
|
|
993
|
+
"variant": "body"
|
|
871
994
|
},
|
|
872
995
|
{
|
|
873
|
-
"
|
|
874
|
-
"
|
|
996
|
+
"name": "slug",
|
|
997
|
+
"variant": "caption"
|
|
875
998
|
},
|
|
876
999
|
{
|
|
877
|
-
"format": "date",
|
|
878
|
-
"name": "publishedAt",
|
|
879
1000
|
"label": "Published",
|
|
1001
|
+
"name": "publishedAt",
|
|
1002
|
+
"format": "date",
|
|
880
1003
|
"variant": "caption"
|
|
881
1004
|
}
|
|
882
|
-
]
|
|
883
|
-
"variant": "card"
|
|
1005
|
+
]
|
|
884
1006
|
}
|
|
885
1007
|
],
|
|
886
|
-
"type": "stack",
|
|
887
|
-
"direction": "vertical",
|
|
888
1008
|
"gap": "lg"
|
|
889
1009
|
}
|
|
890
1010
|
]
|
|
@@ -899,10 +1019,6 @@
|
|
|
899
1019
|
"render-ui",
|
|
900
1020
|
"main",
|
|
901
1021
|
{
|
|
902
|
-
"type": "stack",
|
|
903
|
-
"direction": "vertical",
|
|
904
|
-
"gap": "md",
|
|
905
|
-
"align": "center",
|
|
906
1022
|
"className": "py-12",
|
|
907
1023
|
"children": [
|
|
908
1024
|
{
|
|
@@ -911,24 +1027,28 @@
|
|
|
911
1027
|
"name": "alert-triangle"
|
|
912
1028
|
},
|
|
913
1029
|
{
|
|
914
|
-
"variant": "h3",
|
|
915
1030
|
"type": "typography",
|
|
916
|
-
"content": "Failed to load article"
|
|
1031
|
+
"content": "Failed to load article",
|
|
1032
|
+
"variant": "h3"
|
|
917
1033
|
},
|
|
918
1034
|
{
|
|
919
|
-
"
|
|
1035
|
+
"color": "muted",
|
|
920
1036
|
"type": "typography",
|
|
921
1037
|
"variant": "body",
|
|
922
|
-
"
|
|
1038
|
+
"content": "@payload.error"
|
|
923
1039
|
},
|
|
924
1040
|
{
|
|
925
|
-
"action": "INIT",
|
|
926
|
-
"label": "Retry",
|
|
927
1041
|
"type": "button",
|
|
928
|
-
"
|
|
929
|
-
"
|
|
1042
|
+
"label": "Retry",
|
|
1043
|
+
"action": "INIT",
|
|
1044
|
+
"icon": "rotate-ccw",
|
|
1045
|
+
"variant": "primary"
|
|
930
1046
|
}
|
|
931
|
-
]
|
|
1047
|
+
],
|
|
1048
|
+
"gap": "md",
|
|
1049
|
+
"align": "center",
|
|
1050
|
+
"direction": "vertical",
|
|
1051
|
+
"type": "stack"
|
|
932
1052
|
}
|
|
933
1053
|
]
|
|
934
1054
|
]
|
|
@@ -1111,8 +1231,8 @@
|
|
|
1111
1231
|
"Article",
|
|
1112
1232
|
{
|
|
1113
1233
|
"emit": {
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1234
|
+
"success": "ArticleLoaded",
|
|
1235
|
+
"failure": "ArticleLoadFailed"
|
|
1116
1236
|
}
|
|
1117
1237
|
}
|
|
1118
1238
|
]
|
|
@@ -1128,8 +1248,8 @@
|
|
|
1128
1248
|
"Article",
|
|
1129
1249
|
{
|
|
1130
1250
|
"emit": {
|
|
1131
|
-
"
|
|
1132
|
-
"
|
|
1251
|
+
"failure": "ArticleLoadFailed",
|
|
1252
|
+
"success": "ArticleLoaded"
|
|
1133
1253
|
}
|
|
1134
1254
|
}
|
|
1135
1255
|
],
|
|
@@ -1137,33 +1257,30 @@
|
|
|
1137
1257
|
"render-ui",
|
|
1138
1258
|
"modal",
|
|
1139
1259
|
{
|
|
1140
|
-
"gap": "md",
|
|
1141
1260
|
"type": "stack",
|
|
1261
|
+
"gap": "md",
|
|
1142
1262
|
"direction": "vertical",
|
|
1143
1263
|
"children": [
|
|
1144
1264
|
{
|
|
1145
1265
|
"children": [
|
|
1146
1266
|
{
|
|
1147
|
-
"
|
|
1148
|
-
"
|
|
1267
|
+
"name": "plus-circle",
|
|
1268
|
+
"type": "icon"
|
|
1149
1269
|
},
|
|
1150
1270
|
{
|
|
1151
|
-
"type": "typography",
|
|
1152
1271
|
"variant": "h3",
|
|
1272
|
+
"type": "typography",
|
|
1153
1273
|
"content": "Create Article"
|
|
1154
1274
|
}
|
|
1155
1275
|
],
|
|
1156
|
-
"direction": "horizontal",
|
|
1157
1276
|
"gap": "sm",
|
|
1158
|
-
"type": "stack"
|
|
1277
|
+
"type": "stack",
|
|
1278
|
+
"direction": "horizontal"
|
|
1159
1279
|
},
|
|
1160
1280
|
{
|
|
1161
1281
|
"type": "divider"
|
|
1162
1282
|
},
|
|
1163
1283
|
{
|
|
1164
|
-
"type": "form-section",
|
|
1165
|
-
"submitEvent": "SAVE",
|
|
1166
|
-
"cancelEvent": "CLOSE",
|
|
1167
1284
|
"fields": [
|
|
1168
1285
|
"title",
|
|
1169
1286
|
"slug",
|
|
@@ -1172,7 +1289,10 @@
|
|
|
1172
1289
|
"status",
|
|
1173
1290
|
"publishedAt"
|
|
1174
1291
|
],
|
|
1175
|
-
"mode": "create"
|
|
1292
|
+
"mode": "create",
|
|
1293
|
+
"cancelEvent": "CLOSE",
|
|
1294
|
+
"submitEvent": "SAVE",
|
|
1295
|
+
"type": "form-section"
|
|
1176
1296
|
}
|
|
1177
1297
|
]
|
|
1178
1298
|
}
|
|
@@ -1435,8 +1555,8 @@
|
|
|
1435
1555
|
"Article",
|
|
1436
1556
|
{
|
|
1437
1557
|
"emit": {
|
|
1438
|
-
"
|
|
1439
|
-
"
|
|
1558
|
+
"success": "ArticleLoaded",
|
|
1559
|
+
"failure": "ArticleLoadFailed"
|
|
1440
1560
|
}
|
|
1441
1561
|
}
|
|
1442
1562
|
]
|
|
@@ -1463,31 +1583,30 @@
|
|
|
1463
1583
|
"modal",
|
|
1464
1584
|
{
|
|
1465
1585
|
"gap": "md",
|
|
1586
|
+
"direction": "vertical",
|
|
1466
1587
|
"type": "stack",
|
|
1467
1588
|
"children": [
|
|
1468
1589
|
{
|
|
1469
1590
|
"gap": "sm",
|
|
1591
|
+
"direction": "horizontal",
|
|
1470
1592
|
"children": [
|
|
1471
1593
|
{
|
|
1472
1594
|
"name": "edit",
|
|
1473
1595
|
"type": "icon"
|
|
1474
1596
|
},
|
|
1475
1597
|
{
|
|
1598
|
+
"content": "Edit Article",
|
|
1476
1599
|
"type": "typography",
|
|
1477
|
-
"variant": "h3"
|
|
1478
|
-
"content": "Edit Article"
|
|
1600
|
+
"variant": "h3"
|
|
1479
1601
|
}
|
|
1480
1602
|
],
|
|
1481
|
-
"type": "stack"
|
|
1482
|
-
"direction": "horizontal"
|
|
1603
|
+
"type": "stack"
|
|
1483
1604
|
},
|
|
1484
1605
|
{
|
|
1485
1606
|
"type": "divider"
|
|
1486
1607
|
},
|
|
1487
1608
|
{
|
|
1488
|
-
"
|
|
1489
|
-
"mode": "edit",
|
|
1490
|
-
"cancelEvent": "CLOSE",
|
|
1609
|
+
"type": "form-section",
|
|
1491
1610
|
"fields": [
|
|
1492
1611
|
"title",
|
|
1493
1612
|
"slug",
|
|
@@ -1496,11 +1615,12 @@
|
|
|
1496
1615
|
"status",
|
|
1497
1616
|
"publishedAt"
|
|
1498
1617
|
],
|
|
1499
|
-
"
|
|
1500
|
-
"
|
|
1618
|
+
"mode": "edit",
|
|
1619
|
+
"cancelEvent": "CLOSE",
|
|
1620
|
+
"entity": "@payload.row",
|
|
1621
|
+
"submitEvent": "SAVE"
|
|
1501
1622
|
}
|
|
1502
|
-
]
|
|
1503
|
-
"direction": "vertical"
|
|
1623
|
+
]
|
|
1504
1624
|
}
|
|
1505
1625
|
]
|
|
1506
1626
|
]
|
|
@@ -1750,166 +1870,166 @@
|
|
|
1750
1870
|
"fetch",
|
|
1751
1871
|
"Article",
|
|
1752
1872
|
{
|
|
1753
|
-
"id": "@payload.id",
|
|
1754
1873
|
"emit": {
|
|
1755
1874
|
"success": "ArticleLoaded",
|
|
1756
1875
|
"failure": "ArticleLoadFailed"
|
|
1757
|
-
}
|
|
1876
|
+
},
|
|
1877
|
+
"id": "@payload.id"
|
|
1758
1878
|
}
|
|
1759
1879
|
],
|
|
1760
1880
|
[
|
|
1761
1881
|
"render-ui",
|
|
1762
1882
|
"modal",
|
|
1763
1883
|
{
|
|
1884
|
+
"type": "stack",
|
|
1764
1885
|
"children": [
|
|
1765
1886
|
{
|
|
1887
|
+
"direction": "horizontal",
|
|
1888
|
+
"type": "stack",
|
|
1889
|
+
"align": "center",
|
|
1766
1890
|
"children": [
|
|
1767
1891
|
{
|
|
1768
1892
|
"type": "icon",
|
|
1769
1893
|
"name": "eye"
|
|
1770
1894
|
},
|
|
1771
1895
|
{
|
|
1896
|
+
"content": "@entity.title",
|
|
1772
1897
|
"type": "typography",
|
|
1773
|
-
"variant": "h3"
|
|
1774
|
-
"content": "@entity.title"
|
|
1898
|
+
"variant": "h3"
|
|
1775
1899
|
}
|
|
1776
1900
|
],
|
|
1777
|
-
"
|
|
1778
|
-
"gap": "sm",
|
|
1779
|
-
"direction": "horizontal",
|
|
1780
|
-
"align": "center"
|
|
1901
|
+
"gap": "sm"
|
|
1781
1902
|
},
|
|
1782
1903
|
{
|
|
1783
1904
|
"type": "divider"
|
|
1784
1905
|
},
|
|
1785
1906
|
{
|
|
1786
|
-
"gap": "md",
|
|
1787
1907
|
"type": "stack",
|
|
1788
1908
|
"children": [
|
|
1789
1909
|
{
|
|
1910
|
+
"type": "typography",
|
|
1790
1911
|
"variant": "caption",
|
|
1791
|
-
"content": "Title"
|
|
1792
|
-
"type": "typography"
|
|
1912
|
+
"content": "Title"
|
|
1793
1913
|
},
|
|
1794
1914
|
{
|
|
1795
1915
|
"type": "typography",
|
|
1796
|
-
"
|
|
1797
|
-
"
|
|
1916
|
+
"content": "@entity.title",
|
|
1917
|
+
"variant": "body"
|
|
1798
1918
|
}
|
|
1799
1919
|
],
|
|
1800
|
-
"direction": "horizontal"
|
|
1920
|
+
"direction": "horizontal",
|
|
1921
|
+
"gap": "md"
|
|
1801
1922
|
},
|
|
1802
1923
|
{
|
|
1803
|
-
"
|
|
1804
|
-
"direction": "horizontal",
|
|
1924
|
+
"gap": "md",
|
|
1805
1925
|
"children": [
|
|
1806
1926
|
{
|
|
1927
|
+
"variant": "caption",
|
|
1807
1928
|
"type": "typography",
|
|
1808
|
-
"content": "Slug"
|
|
1809
|
-
"variant": "caption"
|
|
1929
|
+
"content": "Slug"
|
|
1810
1930
|
},
|
|
1811
1931
|
{
|
|
1812
|
-
"variant": "body",
|
|
1813
1932
|
"content": "@entity.slug",
|
|
1814
|
-
"type": "typography"
|
|
1933
|
+
"type": "typography",
|
|
1934
|
+
"variant": "body"
|
|
1815
1935
|
}
|
|
1816
1936
|
],
|
|
1817
|
-
"
|
|
1937
|
+
"direction": "horizontal",
|
|
1938
|
+
"type": "stack"
|
|
1818
1939
|
},
|
|
1819
1940
|
{
|
|
1820
1941
|
"type": "stack",
|
|
1821
|
-
"direction": "horizontal",
|
|
1822
|
-
"gap": "md",
|
|
1823
1942
|
"children": [
|
|
1824
1943
|
{
|
|
1944
|
+
"content": "Content",
|
|
1825
1945
|
"type": "typography",
|
|
1826
|
-
"variant": "caption"
|
|
1827
|
-
"content": "Content"
|
|
1946
|
+
"variant": "caption"
|
|
1828
1947
|
},
|
|
1829
1948
|
{
|
|
1949
|
+
"variant": "body",
|
|
1830
1950
|
"content": "@entity.content",
|
|
1831
|
-
"type": "typography"
|
|
1832
|
-
"variant": "body"
|
|
1951
|
+
"type": "typography"
|
|
1833
1952
|
}
|
|
1834
|
-
]
|
|
1953
|
+
],
|
|
1954
|
+
"direction": "horizontal",
|
|
1955
|
+
"gap": "md"
|
|
1835
1956
|
},
|
|
1836
1957
|
{
|
|
1837
|
-
"
|
|
1958
|
+
"type": "stack",
|
|
1838
1959
|
"children": [
|
|
1839
1960
|
{
|
|
1840
1961
|
"content": "Author",
|
|
1841
|
-
"
|
|
1842
|
-
"
|
|
1962
|
+
"type": "typography",
|
|
1963
|
+
"variant": "caption"
|
|
1843
1964
|
},
|
|
1844
1965
|
{
|
|
1845
|
-
"
|
|
1966
|
+
"variant": "body",
|
|
1846
1967
|
"type": "typography",
|
|
1847
|
-
"
|
|
1968
|
+
"content": "@entity.author"
|
|
1848
1969
|
}
|
|
1849
1970
|
],
|
|
1850
|
-
"
|
|
1851
|
-
"
|
|
1971
|
+
"direction": "horizontal",
|
|
1972
|
+
"gap": "md"
|
|
1852
1973
|
},
|
|
1853
1974
|
{
|
|
1975
|
+
"direction": "horizontal",
|
|
1854
1976
|
"gap": "md",
|
|
1977
|
+
"type": "stack",
|
|
1855
1978
|
"children": [
|
|
1856
1979
|
{
|
|
1857
1980
|
"type": "typography",
|
|
1858
|
-
"
|
|
1859
|
-
"
|
|
1981
|
+
"variant": "caption",
|
|
1982
|
+
"content": "Status"
|
|
1860
1983
|
},
|
|
1861
1984
|
{
|
|
1862
|
-
"variant": "body",
|
|
1863
1985
|
"content": "@entity.status",
|
|
1864
|
-
"type": "typography"
|
|
1986
|
+
"type": "typography",
|
|
1987
|
+
"variant": "body"
|
|
1865
1988
|
}
|
|
1866
|
-
]
|
|
1867
|
-
"direction": "horizontal",
|
|
1868
|
-
"type": "stack"
|
|
1989
|
+
]
|
|
1869
1990
|
},
|
|
1870
1991
|
{
|
|
1871
|
-
"gap": "md",
|
|
1872
|
-
"direction": "horizontal",
|
|
1873
1992
|
"type": "stack",
|
|
1993
|
+
"gap": "md",
|
|
1874
1994
|
"children": [
|
|
1875
1995
|
{
|
|
1876
|
-
"content": "Published At",
|
|
1877
1996
|
"type": "typography",
|
|
1878
|
-
"variant": "caption"
|
|
1997
|
+
"variant": "caption",
|
|
1998
|
+
"content": "Published At"
|
|
1879
1999
|
},
|
|
1880
2000
|
{
|
|
1881
|
-
"content": "@entity.publishedAt",
|
|
1882
2001
|
"variant": "body",
|
|
1883
|
-
"type": "typography"
|
|
2002
|
+
"type": "typography",
|
|
2003
|
+
"content": "@entity.publishedAt"
|
|
1884
2004
|
}
|
|
1885
|
-
]
|
|
2005
|
+
],
|
|
2006
|
+
"direction": "horizontal"
|
|
1886
2007
|
},
|
|
1887
2008
|
{
|
|
1888
2009
|
"type": "divider"
|
|
1889
2010
|
},
|
|
1890
2011
|
{
|
|
1891
|
-
"type": "stack",
|
|
1892
|
-
"direction": "horizontal",
|
|
1893
|
-
"gap": "sm",
|
|
1894
2012
|
"justify": "end",
|
|
2013
|
+
"gap": "sm",
|
|
2014
|
+
"direction": "horizontal",
|
|
2015
|
+
"type": "stack",
|
|
1895
2016
|
"children": [
|
|
1896
2017
|
{
|
|
1897
2018
|
"type": "button",
|
|
1898
|
-
"variant": "primary",
|
|
1899
2019
|
"action": "EDIT",
|
|
1900
|
-
"
|
|
1901
|
-
"
|
|
2020
|
+
"label": "Edit",
|
|
2021
|
+
"variant": "primary",
|
|
2022
|
+
"icon": "edit"
|
|
1902
2023
|
},
|
|
1903
2024
|
{
|
|
1904
|
-
"
|
|
2025
|
+
"label": "Close",
|
|
1905
2026
|
"action": "CLOSE",
|
|
1906
2027
|
"type": "button",
|
|
1907
|
-
"
|
|
2028
|
+
"variant": "ghost"
|
|
1908
2029
|
}
|
|
1909
2030
|
]
|
|
1910
2031
|
}
|
|
1911
2032
|
],
|
|
1912
|
-
"type": "stack",
|
|
1913
2033
|
"gap": "md",
|
|
1914
2034
|
"direction": "vertical"
|
|
1915
2035
|
}
|
|
@@ -2164,8 +2284,8 @@
|
|
|
2164
2284
|
{
|
|
2165
2285
|
"id": "@payload.id",
|
|
2166
2286
|
"emit": {
|
|
2167
|
-
"
|
|
2168
|
-
"
|
|
2287
|
+
"success": "ArticleLoaded",
|
|
2288
|
+
"failure": "ArticleLoadFailed"
|
|
2169
2289
|
}
|
|
2170
2290
|
}
|
|
2171
2291
|
],
|
|
@@ -2173,11 +2293,13 @@
|
|
|
2173
2293
|
"render-ui",
|
|
2174
2294
|
"modal",
|
|
2175
2295
|
{
|
|
2296
|
+
"type": "stack",
|
|
2176
2297
|
"direction": "vertical",
|
|
2298
|
+
"gap": "md",
|
|
2177
2299
|
"children": [
|
|
2178
2300
|
{
|
|
2179
2301
|
"type": "stack",
|
|
2180
|
-
"
|
|
2302
|
+
"align": "center",
|
|
2181
2303
|
"children": [
|
|
2182
2304
|
{
|
|
2183
2305
|
"type": "icon",
|
|
@@ -2185,12 +2307,12 @@
|
|
|
2185
2307
|
},
|
|
2186
2308
|
{
|
|
2187
2309
|
"content": "Delete Article",
|
|
2188
|
-
"
|
|
2189
|
-
"
|
|
2310
|
+
"type": "typography",
|
|
2311
|
+
"variant": "h3"
|
|
2190
2312
|
}
|
|
2191
2313
|
],
|
|
2192
2314
|
"direction": "horizontal",
|
|
2193
|
-
"
|
|
2315
|
+
"gap": "sm"
|
|
2194
2316
|
},
|
|
2195
2317
|
{
|
|
2196
2318
|
"type": "divider"
|
|
@@ -2201,29 +2323,27 @@
|
|
|
2201
2323
|
"message": "This action cannot be undone."
|
|
2202
2324
|
},
|
|
2203
2325
|
{
|
|
2204
|
-
"justify": "end",
|
|
2205
2326
|
"direction": "horizontal",
|
|
2206
|
-
"
|
|
2327
|
+
"justify": "end",
|
|
2207
2328
|
"children": [
|
|
2208
2329
|
{
|
|
2209
|
-
"type": "button",
|
|
2210
2330
|
"label": "Cancel",
|
|
2211
2331
|
"action": "CANCEL",
|
|
2212
|
-
"variant": "ghost"
|
|
2332
|
+
"variant": "ghost",
|
|
2333
|
+
"type": "button"
|
|
2213
2334
|
},
|
|
2214
2335
|
{
|
|
2215
|
-
"
|
|
2336
|
+
"label": "Delete",
|
|
2216
2337
|
"action": "CONFIRM_DELETE",
|
|
2338
|
+
"type": "button",
|
|
2217
2339
|
"icon": "check",
|
|
2218
|
-
"variant": "danger"
|
|
2219
|
-
"label": "Delete"
|
|
2340
|
+
"variant": "danger"
|
|
2220
2341
|
}
|
|
2221
2342
|
],
|
|
2222
|
-
"gap": "sm"
|
|
2343
|
+
"gap": "sm",
|
|
2344
|
+
"type": "stack"
|
|
2223
2345
|
}
|
|
2224
|
-
]
|
|
2225
|
-
"type": "stack",
|
|
2226
|
-
"gap": "md"
|
|
2346
|
+
]
|
|
2227
2347
|
}
|
|
2228
2348
|
]
|
|
2229
2349
|
]
|
|
@@ -2240,8 +2360,8 @@
|
|
|
2240
2360
|
"@entity.pendingId",
|
|
2241
2361
|
{
|
|
2242
2362
|
"emit": {
|
|
2243
|
-
"
|
|
2244
|
-
"
|
|
2363
|
+
"success": "ArticleDeleted",
|
|
2364
|
+
"failure": "ArticleDeleteFailed"
|
|
2245
2365
|
}
|
|
2246
2366
|
}
|
|
2247
2367
|
],
|
|
@@ -2262,8 +2382,8 @@
|
|
|
2262
2382
|
"Article",
|
|
2263
2383
|
{
|
|
2264
2384
|
"emit": {
|
|
2265
|
-
"
|
|
2266
|
-
"
|
|
2385
|
+
"failure": "ArticleLoadFailed",
|
|
2386
|
+
"success": "ArticleLoaded"
|
|
2267
2387
|
}
|
|
2268
2388
|
}
|
|
2269
2389
|
],
|
|
@@ -2295,8 +2415,8 @@
|
|
|
2295
2415
|
"Article",
|
|
2296
2416
|
{
|
|
2297
2417
|
"emit": {
|
|
2298
|
-
"
|
|
2299
|
-
"
|
|
2418
|
+
"failure": "ArticleLoadFailed",
|
|
2419
|
+
"success": "ArticleLoaded"
|
|
2300
2420
|
}
|
|
2301
2421
|
}
|
|
2302
2422
|
]
|
|
@@ -2547,8 +2667,8 @@
|
|
|
2547
2667
|
"MediaAsset",
|
|
2548
2668
|
{
|
|
2549
2669
|
"emit": {
|
|
2550
|
-
"
|
|
2551
|
-
"
|
|
2670
|
+
"success": "MediaAssetLoaded",
|
|
2671
|
+
"failure": "MediaAssetLoadFailed"
|
|
2552
2672
|
}
|
|
2553
2673
|
}
|
|
2554
2674
|
],
|
|
@@ -2556,22 +2676,22 @@
|
|
|
2556
2676
|
"render-ui",
|
|
2557
2677
|
"main",
|
|
2558
2678
|
{
|
|
2679
|
+
"align": "center",
|
|
2559
2680
|
"children": [
|
|
2560
2681
|
{
|
|
2561
2682
|
"type": "spinner"
|
|
2562
2683
|
},
|
|
2563
2684
|
{
|
|
2685
|
+
"variant": "caption",
|
|
2564
2686
|
"content": "Loading…",
|
|
2565
2687
|
"color": "muted",
|
|
2566
|
-
"type": "typography"
|
|
2567
|
-
"variant": "caption"
|
|
2688
|
+
"type": "typography"
|
|
2568
2689
|
}
|
|
2569
2690
|
],
|
|
2570
2691
|
"direction": "vertical",
|
|
2571
|
-
"
|
|
2572
|
-
"className": "py-12",
|
|
2692
|
+
"gap": "md",
|
|
2573
2693
|
"type": "stack",
|
|
2574
|
-
"
|
|
2694
|
+
"className": "py-12"
|
|
2575
2695
|
}
|
|
2576
2696
|
]
|
|
2577
2697
|
]
|
|
@@ -2589,92 +2709,92 @@
|
|
|
2589
2709
|
"type": "dashboard-layout",
|
|
2590
2710
|
"children": [
|
|
2591
2711
|
{
|
|
2712
|
+
"direction": "vertical",
|
|
2713
|
+
"gap": "lg",
|
|
2714
|
+
"type": "stack",
|
|
2715
|
+
"className": "max-w-5xl mx-auto w-full",
|
|
2592
2716
|
"children": [
|
|
2593
2717
|
{
|
|
2594
|
-
"gap": "md",
|
|
2595
|
-
"type": "stack",
|
|
2596
2718
|
"justify": "between",
|
|
2597
|
-
"align": "center",
|
|
2598
2719
|
"children": [
|
|
2599
2720
|
{
|
|
2600
|
-
"
|
|
2601
|
-
"
|
|
2721
|
+
"type": "stack",
|
|
2722
|
+
"direction": "horizontal",
|
|
2602
2723
|
"children": [
|
|
2603
2724
|
{
|
|
2604
|
-
"
|
|
2605
|
-
"
|
|
2725
|
+
"name": "image",
|
|
2726
|
+
"type": "icon"
|
|
2606
2727
|
},
|
|
2607
2728
|
{
|
|
2608
2729
|
"type": "typography",
|
|
2609
|
-
"
|
|
2610
|
-
"
|
|
2730
|
+
"content": "Media Library",
|
|
2731
|
+
"variant": "h2"
|
|
2611
2732
|
}
|
|
2612
2733
|
],
|
|
2613
|
-
"
|
|
2614
|
-
"
|
|
2734
|
+
"align": "center",
|
|
2735
|
+
"gap": "sm"
|
|
2615
2736
|
},
|
|
2616
2737
|
{
|
|
2738
|
+
"type": "stack",
|
|
2617
2739
|
"children": [
|
|
2618
2740
|
{
|
|
2619
|
-
"action": "CREATE",
|
|
2620
|
-
"label": "Create MediaAsset",
|
|
2621
2741
|
"variant": "primary",
|
|
2622
|
-
"
|
|
2623
|
-
"
|
|
2742
|
+
"type": "button",
|
|
2743
|
+
"label": "Create MediaAsset",
|
|
2744
|
+
"action": "CREATE",
|
|
2745
|
+
"icon": "plus"
|
|
2624
2746
|
}
|
|
2625
2747
|
],
|
|
2626
|
-
"
|
|
2627
|
-
"
|
|
2628
|
-
"gap": "sm"
|
|
2748
|
+
"gap": "sm",
|
|
2749
|
+
"direction": "horizontal"
|
|
2629
2750
|
}
|
|
2630
2751
|
],
|
|
2631
|
-
"
|
|
2752
|
+
"type": "stack",
|
|
2753
|
+
"direction": "horizontal",
|
|
2754
|
+
"gap": "md",
|
|
2755
|
+
"align": "center"
|
|
2632
2756
|
},
|
|
2633
2757
|
{
|
|
2634
2758
|
"type": "divider"
|
|
2635
2759
|
},
|
|
2636
2760
|
{
|
|
2637
|
-
"gap": "md",
|
|
2638
|
-
"itemActions": [
|
|
2639
|
-
{
|
|
2640
|
-
"label": "View",
|
|
2641
|
-
"event": "VIEW",
|
|
2642
|
-
"variant": "ghost"
|
|
2643
|
-
}
|
|
2644
|
-
],
|
|
2645
|
-
"entity": "@payload.data",
|
|
2646
|
-
"type": "data-grid",
|
|
2647
|
-
"cols": 3.0,
|
|
2648
2761
|
"fields": [
|
|
2649
2762
|
{
|
|
2650
|
-
"label": "File",
|
|
2651
2763
|
"variant": "h3",
|
|
2652
2764
|
"icon": "image",
|
|
2653
|
-
"name": "fileName"
|
|
2765
|
+
"name": "fileName",
|
|
2766
|
+
"label": "File"
|
|
2654
2767
|
},
|
|
2655
2768
|
{
|
|
2656
2769
|
"label": "Type",
|
|
2657
|
-
"
|
|
2658
|
-
"
|
|
2770
|
+
"name": "fileType",
|
|
2771
|
+
"variant": "badge"
|
|
2659
2772
|
},
|
|
2660
2773
|
{
|
|
2661
|
-
"name": "fileSize",
|
|
2662
|
-
"format": "number",
|
|
2663
2774
|
"variant": "body",
|
|
2664
|
-
"
|
|
2775
|
+
"format": "number",
|
|
2776
|
+
"label": "Size",
|
|
2777
|
+
"name": "fileSize"
|
|
2665
2778
|
},
|
|
2666
2779
|
{
|
|
2667
|
-
"name": "altText",
|
|
2668
2780
|
"label": "Alt Text",
|
|
2781
|
+
"name": "altText",
|
|
2669
2782
|
"variant": "caption"
|
|
2670
2783
|
}
|
|
2784
|
+
],
|
|
2785
|
+
"cols": 3.0,
|
|
2786
|
+
"type": "data-grid",
|
|
2787
|
+
"entity": "@payload.data",
|
|
2788
|
+
"gap": "md",
|
|
2789
|
+
"itemActions": [
|
|
2790
|
+
{
|
|
2791
|
+
"variant": "ghost",
|
|
2792
|
+
"label": "View",
|
|
2793
|
+
"event": "VIEW"
|
|
2794
|
+
}
|
|
2671
2795
|
]
|
|
2672
2796
|
}
|
|
2673
|
-
]
|
|
2674
|
-
"type": "stack",
|
|
2675
|
-
"gap": "lg",
|
|
2676
|
-
"direction": "vertical",
|
|
2677
|
-
"className": "max-w-5xl mx-auto w-full"
|
|
2797
|
+
]
|
|
2678
2798
|
}
|
|
2679
2799
|
],
|
|
2680
2800
|
"navItems": [
|
|
@@ -2689,13 +2809,13 @@
|
|
|
2689
2809
|
"icon": "file-text"
|
|
2690
2810
|
},
|
|
2691
2811
|
{
|
|
2692
|
-
"href": "/media",
|
|
2693
2812
|
"label": "Media",
|
|
2813
|
+
"href": "/media",
|
|
2694
2814
|
"icon": "image"
|
|
2695
2815
|
},
|
|
2696
2816
|
{
|
|
2697
|
-
"icon": "folder",
|
|
2698
2817
|
"label": "Categories",
|
|
2818
|
+
"icon": "folder",
|
|
2699
2819
|
"href": "/categories"
|
|
2700
2820
|
}
|
|
2701
2821
|
]
|
|
@@ -2712,11 +2832,15 @@
|
|
|
2712
2832
|
"render-ui",
|
|
2713
2833
|
"main",
|
|
2714
2834
|
{
|
|
2835
|
+
"type": "stack",
|
|
2836
|
+
"className": "py-12",
|
|
2837
|
+
"direction": "vertical",
|
|
2838
|
+
"align": "center",
|
|
2715
2839
|
"children": [
|
|
2716
2840
|
{
|
|
2717
2841
|
"color": "destructive",
|
|
2718
|
-
"
|
|
2719
|
-
"
|
|
2842
|
+
"name": "alert-triangle",
|
|
2843
|
+
"type": "icon"
|
|
2720
2844
|
},
|
|
2721
2845
|
{
|
|
2722
2846
|
"type": "typography",
|
|
@@ -2724,24 +2848,20 @@
|
|
|
2724
2848
|
"content": "Failed to load mediaasset"
|
|
2725
2849
|
},
|
|
2726
2850
|
{
|
|
2727
|
-
"variant": "body",
|
|
2728
2851
|
"type": "typography",
|
|
2852
|
+
"content": "@payload.error",
|
|
2729
2853
|
"color": "muted",
|
|
2730
|
-
"
|
|
2854
|
+
"variant": "body"
|
|
2731
2855
|
},
|
|
2732
2856
|
{
|
|
2733
2857
|
"type": "button",
|
|
2734
|
-
"
|
|
2858
|
+
"variant": "primary",
|
|
2735
2859
|
"icon": "rotate-ccw",
|
|
2736
|
-
"
|
|
2737
|
-
"
|
|
2860
|
+
"action": "INIT",
|
|
2861
|
+
"label": "Retry"
|
|
2738
2862
|
}
|
|
2739
2863
|
],
|
|
2740
|
-
"
|
|
2741
|
-
"gap": "md",
|
|
2742
|
-
"align": "center",
|
|
2743
|
-
"direction": "vertical",
|
|
2744
|
-
"className": "py-12"
|
|
2864
|
+
"gap": "md"
|
|
2745
2865
|
}
|
|
2746
2866
|
]
|
|
2747
2867
|
]
|
|
@@ -2936,11 +3056,10 @@
|
|
|
2936
3056
|
"modal",
|
|
2937
3057
|
{
|
|
2938
3058
|
"direction": "vertical",
|
|
2939
|
-
"gap": "md",
|
|
2940
3059
|
"children": [
|
|
2941
3060
|
{
|
|
2942
|
-
"type": "stack",
|
|
2943
3061
|
"gap": "sm",
|
|
3062
|
+
"type": "stack",
|
|
2944
3063
|
"direction": "horizontal",
|
|
2945
3064
|
"children": [
|
|
2946
3065
|
{
|
|
@@ -2948,8 +3067,8 @@
|
|
|
2948
3067
|
"name": "plus-circle"
|
|
2949
3068
|
},
|
|
2950
3069
|
{
|
|
2951
|
-
"variant": "h3",
|
|
2952
3070
|
"type": "typography",
|
|
3071
|
+
"variant": "h3",
|
|
2953
3072
|
"content": "New MediaAsset"
|
|
2954
3073
|
}
|
|
2955
3074
|
]
|
|
@@ -2958,6 +3077,7 @@
|
|
|
2958
3077
|
"type": "divider"
|
|
2959
3078
|
},
|
|
2960
3079
|
{
|
|
3080
|
+
"mode": "create",
|
|
2961
3081
|
"fields": [
|
|
2962
3082
|
"fileName",
|
|
2963
3083
|
"fileType",
|
|
@@ -2966,13 +3086,13 @@
|
|
|
2966
3086
|
"altText",
|
|
2967
3087
|
"uploadedAt"
|
|
2968
3088
|
],
|
|
2969
|
-
"submitEvent": "SAVE",
|
|
2970
|
-
"cancelEvent": "CLOSE",
|
|
2971
3089
|
"type": "form-section",
|
|
2972
|
-
"
|
|
3090
|
+
"submitEvent": "SAVE",
|
|
3091
|
+
"cancelEvent": "CLOSE"
|
|
2973
3092
|
}
|
|
2974
3093
|
],
|
|
2975
|
-
"type": "stack"
|
|
3094
|
+
"type": "stack",
|
|
3095
|
+
"gap": "md"
|
|
2976
3096
|
}
|
|
2977
3097
|
]
|
|
2978
3098
|
]
|
|
@@ -3013,8 +3133,8 @@
|
|
|
3013
3133
|
"@payload.data",
|
|
3014
3134
|
{
|
|
3015
3135
|
"emit": {
|
|
3016
|
-
"
|
|
3017
|
-
"
|
|
3136
|
+
"failure": "MediaAssetSaveFailed",
|
|
3137
|
+
"success": "MediaAssetSaved"
|
|
3018
3138
|
}
|
|
3019
3139
|
}
|
|
3020
3140
|
],
|
|
@@ -3210,128 +3330,129 @@
|
|
|
3210
3330
|
"modal",
|
|
3211
3331
|
{
|
|
3212
3332
|
"direction": "vertical",
|
|
3333
|
+
"gap": "md",
|
|
3213
3334
|
"children": [
|
|
3214
3335
|
{
|
|
3215
3336
|
"align": "center",
|
|
3216
3337
|
"type": "stack",
|
|
3217
|
-
"direction": "horizontal",
|
|
3218
3338
|
"children": [
|
|
3219
3339
|
{
|
|
3220
3340
|
"type": "icon",
|
|
3221
3341
|
"name": "eye"
|
|
3222
3342
|
},
|
|
3223
3343
|
{
|
|
3224
|
-
"content": "@entity.fileName",
|
|
3225
3344
|
"type": "typography",
|
|
3345
|
+
"content": "@entity.fileName",
|
|
3226
3346
|
"variant": "h3"
|
|
3227
3347
|
}
|
|
3228
3348
|
],
|
|
3349
|
+
"direction": "horizontal",
|
|
3229
3350
|
"gap": "sm"
|
|
3230
3351
|
},
|
|
3231
3352
|
{
|
|
3232
3353
|
"type": "divider"
|
|
3233
3354
|
},
|
|
3234
3355
|
{
|
|
3235
|
-
"type": "stack",
|
|
3236
|
-
"gap": "md",
|
|
3237
|
-
"direction": "horizontal",
|
|
3238
3356
|
"children": [
|
|
3239
3357
|
{
|
|
3240
|
-
"content": "File Name",
|
|
3241
3358
|
"type": "typography",
|
|
3242
|
-
"variant": "caption"
|
|
3359
|
+
"variant": "caption",
|
|
3360
|
+
"content": "File Name"
|
|
3243
3361
|
},
|
|
3244
3362
|
{
|
|
3245
3363
|
"variant": "body",
|
|
3246
|
-
"
|
|
3247
|
-
"
|
|
3364
|
+
"content": "@entity.fileName",
|
|
3365
|
+
"type": "typography"
|
|
3248
3366
|
}
|
|
3249
|
-
]
|
|
3367
|
+
],
|
|
3368
|
+
"direction": "horizontal",
|
|
3369
|
+
"gap": "md",
|
|
3370
|
+
"type": "stack"
|
|
3250
3371
|
},
|
|
3251
3372
|
{
|
|
3373
|
+
"type": "stack",
|
|
3374
|
+
"direction": "horizontal",
|
|
3252
3375
|
"children": [
|
|
3253
3376
|
{
|
|
3377
|
+
"content": "File Type",
|
|
3254
3378
|
"type": "typography",
|
|
3255
|
-
"variant": "caption"
|
|
3256
|
-
"content": "File Type"
|
|
3379
|
+
"variant": "caption"
|
|
3257
3380
|
},
|
|
3258
3381
|
{
|
|
3259
|
-
"
|
|
3382
|
+
"variant": "body",
|
|
3260
3383
|
"content": "@entity.fileType",
|
|
3261
|
-
"
|
|
3384
|
+
"type": "typography"
|
|
3262
3385
|
}
|
|
3263
3386
|
],
|
|
3264
|
-
"direction": "horizontal",
|
|
3265
|
-
"type": "stack",
|
|
3266
3387
|
"gap": "md"
|
|
3267
3388
|
},
|
|
3268
3389
|
{
|
|
3269
3390
|
"children": [
|
|
3270
3391
|
{
|
|
3271
|
-
"variant": "caption",
|
|
3272
3392
|
"content": "File Size",
|
|
3273
|
-
"type": "typography"
|
|
3393
|
+
"type": "typography",
|
|
3394
|
+
"variant": "caption"
|
|
3274
3395
|
},
|
|
3275
3396
|
{
|
|
3276
3397
|
"variant": "body",
|
|
3277
|
-
"
|
|
3278
|
-
"
|
|
3398
|
+
"content": "@entity.fileSize",
|
|
3399
|
+
"type": "typography"
|
|
3279
3400
|
}
|
|
3280
3401
|
],
|
|
3402
|
+
"type": "stack",
|
|
3281
3403
|
"gap": "md",
|
|
3282
|
-
"direction": "horizontal"
|
|
3283
|
-
"type": "stack"
|
|
3404
|
+
"direction": "horizontal"
|
|
3284
3405
|
},
|
|
3285
3406
|
{
|
|
3407
|
+
"gap": "md",
|
|
3408
|
+
"type": "stack",
|
|
3409
|
+
"direction": "horizontal",
|
|
3286
3410
|
"children": [
|
|
3287
3411
|
{
|
|
3288
|
-
"variant": "caption",
|
|
3289
3412
|
"content": "Url",
|
|
3413
|
+
"variant": "caption",
|
|
3290
3414
|
"type": "typography"
|
|
3291
3415
|
},
|
|
3292
3416
|
{
|
|
3293
|
-
"variant": "body",
|
|
3294
3417
|
"content": "@entity.url",
|
|
3295
|
-
"type": "typography"
|
|
3418
|
+
"type": "typography",
|
|
3419
|
+
"variant": "body"
|
|
3296
3420
|
}
|
|
3297
|
-
]
|
|
3298
|
-
"type": "stack",
|
|
3299
|
-
"gap": "md",
|
|
3300
|
-
"direction": "horizontal"
|
|
3421
|
+
]
|
|
3301
3422
|
},
|
|
3302
3423
|
{
|
|
3303
|
-
"type": "stack",
|
|
3304
|
-
"direction": "horizontal",
|
|
3305
|
-
"gap": "md",
|
|
3306
3424
|
"children": [
|
|
3307
3425
|
{
|
|
3308
|
-
"content": "Alt Text",
|
|
3309
3426
|
"variant": "caption",
|
|
3310
|
-
"type": "typography"
|
|
3427
|
+
"type": "typography",
|
|
3428
|
+
"content": "Alt Text"
|
|
3311
3429
|
},
|
|
3312
3430
|
{
|
|
3313
|
-
"variant": "body",
|
|
3314
3431
|
"type": "typography",
|
|
3432
|
+
"variant": "body",
|
|
3315
3433
|
"content": "@entity.altText"
|
|
3316
3434
|
}
|
|
3317
|
-
]
|
|
3435
|
+
],
|
|
3436
|
+
"type": "stack",
|
|
3437
|
+
"direction": "horizontal",
|
|
3438
|
+
"gap": "md"
|
|
3318
3439
|
},
|
|
3319
3440
|
{
|
|
3441
|
+
"gap": "md",
|
|
3320
3442
|
"children": [
|
|
3321
3443
|
{
|
|
3322
3444
|
"variant": "caption",
|
|
3323
|
-
"
|
|
3324
|
-
"
|
|
3445
|
+
"type": "typography",
|
|
3446
|
+
"content": "Uploaded At"
|
|
3325
3447
|
},
|
|
3326
3448
|
{
|
|
3327
|
-
"content": "@entity.uploadedAt",
|
|
3328
3449
|
"type": "typography",
|
|
3329
|
-
"variant": "body"
|
|
3450
|
+
"variant": "body",
|
|
3451
|
+
"content": "@entity.uploadedAt"
|
|
3330
3452
|
}
|
|
3331
3453
|
],
|
|
3332
3454
|
"type": "stack",
|
|
3333
|
-
"direction": "horizontal"
|
|
3334
|
-
"gap": "md"
|
|
3455
|
+
"direction": "horizontal"
|
|
3335
3456
|
},
|
|
3336
3457
|
{
|
|
3337
3458
|
"type": "divider"
|
|
@@ -3340,18 +3461,17 @@
|
|
|
3340
3461
|
"gap": "sm",
|
|
3341
3462
|
"justify": "end",
|
|
3342
3463
|
"direction": "horizontal",
|
|
3464
|
+
"type": "stack",
|
|
3343
3465
|
"children": [
|
|
3344
3466
|
{
|
|
3345
|
-
"label": "Close",
|
|
3346
|
-
"variant": "ghost",
|
|
3347
3467
|
"action": "CLOSE",
|
|
3348
|
-
"
|
|
3468
|
+
"variant": "ghost",
|
|
3469
|
+
"type": "button",
|
|
3470
|
+
"label": "Close"
|
|
3349
3471
|
}
|
|
3350
|
-
]
|
|
3351
|
-
"type": "stack"
|
|
3472
|
+
]
|
|
3352
3473
|
}
|
|
3353
3474
|
],
|
|
3354
|
-
"gap": "md",
|
|
3355
3475
|
"type": "stack"
|
|
3356
3476
|
}
|
|
3357
3477
|
]
|
|
@@ -3731,22 +3851,22 @@
|
|
|
3731
3851
|
"render-ui",
|
|
3732
3852
|
"main",
|
|
3733
3853
|
{
|
|
3734
|
-
"gap": "md",
|
|
3735
3854
|
"direction": "vertical",
|
|
3736
|
-
"
|
|
3855
|
+
"gap": "md",
|
|
3737
3856
|
"type": "stack",
|
|
3857
|
+
"align": "center",
|
|
3858
|
+
"className": "py-12",
|
|
3738
3859
|
"children": [
|
|
3739
3860
|
{
|
|
3740
3861
|
"type": "spinner"
|
|
3741
3862
|
},
|
|
3742
3863
|
{
|
|
3743
|
-
"
|
|
3744
|
-
"type": "typography",
|
|
3864
|
+
"content": "Loading…",
|
|
3745
3865
|
"color": "muted",
|
|
3746
|
-
"
|
|
3866
|
+
"type": "typography",
|
|
3867
|
+
"variant": "caption"
|
|
3747
3868
|
}
|
|
3748
|
-
]
|
|
3749
|
-
"className": "py-12"
|
|
3869
|
+
]
|
|
3750
3870
|
}
|
|
3751
3871
|
]
|
|
3752
3872
|
]
|
|
@@ -3760,45 +3880,44 @@
|
|
|
3760
3880
|
"render-ui",
|
|
3761
3881
|
"main",
|
|
3762
3882
|
{
|
|
3763
|
-
"appName": "CmsApp",
|
|
3764
3883
|
"navItems": [
|
|
3765
3884
|
{
|
|
3885
|
+
"href": "/cms-hub",
|
|
3766
3886
|
"icon": "layout-grid",
|
|
3767
|
-
"label": "CMS Hub"
|
|
3768
|
-
"href": "/cms-hub"
|
|
3887
|
+
"label": "CMS Hub"
|
|
3769
3888
|
},
|
|
3770
3889
|
{
|
|
3771
3890
|
"icon": "file-text",
|
|
3772
|
-
"
|
|
3773
|
-
"
|
|
3891
|
+
"label": "Articles",
|
|
3892
|
+
"href": "/articles"
|
|
3774
3893
|
},
|
|
3775
3894
|
{
|
|
3895
|
+
"href": "/media",
|
|
3776
3896
|
"icon": "image",
|
|
3777
|
-
"label": "Media"
|
|
3778
|
-
"href": "/media"
|
|
3897
|
+
"label": "Media"
|
|
3779
3898
|
},
|
|
3780
3899
|
{
|
|
3781
|
-
"icon": "folder",
|
|
3782
3900
|
"label": "Categories",
|
|
3783
|
-
"href": "/categories"
|
|
3901
|
+
"href": "/categories",
|
|
3902
|
+
"icon": "folder"
|
|
3784
3903
|
}
|
|
3785
3904
|
],
|
|
3905
|
+
"type": "dashboard-layout",
|
|
3906
|
+
"appName": "CmsApp",
|
|
3786
3907
|
"children": [
|
|
3787
3908
|
{
|
|
3788
|
-
"direction": "vertical",
|
|
3789
3909
|
"className": "max-w-5xl mx-auto w-full",
|
|
3790
3910
|
"type": "stack",
|
|
3791
|
-
"gap": "lg",
|
|
3792
3911
|
"children": [
|
|
3793
3912
|
{
|
|
3913
|
+
"gap": "md",
|
|
3914
|
+
"align": "center",
|
|
3794
3915
|
"direction": "horizontal",
|
|
3795
|
-
"type": "stack",
|
|
3796
|
-
"justify": "between",
|
|
3797
3916
|
"children": [
|
|
3798
3917
|
{
|
|
3799
|
-
"align": "center",
|
|
3800
3918
|
"type": "stack",
|
|
3801
|
-
"
|
|
3919
|
+
"align": "center",
|
|
3920
|
+
"gap": "sm",
|
|
3802
3921
|
"children": [
|
|
3803
3922
|
{
|
|
3804
3923
|
"type": "icon",
|
|
@@ -3810,60 +3929,59 @@
|
|
|
3810
3929
|
"content": "Categories"
|
|
3811
3930
|
}
|
|
3812
3931
|
],
|
|
3813
|
-
"
|
|
3932
|
+
"direction": "horizontal"
|
|
3814
3933
|
},
|
|
3815
3934
|
{
|
|
3935
|
+
"gap": "sm",
|
|
3816
3936
|
"type": "stack",
|
|
3817
3937
|
"children": [
|
|
3818
3938
|
{
|
|
3939
|
+
"variant": "primary",
|
|
3940
|
+
"type": "button",
|
|
3819
3941
|
"icon": "plus",
|
|
3820
3942
|
"action": "CREATE",
|
|
3821
|
-
"type": "button",
|
|
3822
|
-
"variant": "primary",
|
|
3823
3943
|
"label": "Create Category"
|
|
3824
3944
|
}
|
|
3825
3945
|
],
|
|
3826
|
-
"direction": "horizontal"
|
|
3827
|
-
"gap": "sm"
|
|
3946
|
+
"direction": "horizontal"
|
|
3828
3947
|
}
|
|
3829
3948
|
],
|
|
3830
|
-
"
|
|
3831
|
-
"
|
|
3949
|
+
"type": "stack",
|
|
3950
|
+
"justify": "between"
|
|
3832
3951
|
},
|
|
3833
3952
|
{
|
|
3834
3953
|
"type": "divider"
|
|
3835
3954
|
},
|
|
3836
3955
|
{
|
|
3956
|
+
"type": "data-list",
|
|
3837
3957
|
"fields": [
|
|
3838
3958
|
{
|
|
3959
|
+
"icon": "folder",
|
|
3839
3960
|
"name": "name",
|
|
3840
|
-
"variant": "h3"
|
|
3841
|
-
"icon": "folder"
|
|
3961
|
+
"variant": "h3"
|
|
3842
3962
|
},
|
|
3843
3963
|
{
|
|
3844
|
-
"name": "articleCount",
|
|
3845
|
-
"label": "Articles",
|
|
3846
3964
|
"variant": "badge",
|
|
3847
|
-
"format": "number"
|
|
3965
|
+
"format": "number",
|
|
3966
|
+
"name": "articleCount",
|
|
3967
|
+
"label": "Articles"
|
|
3848
3968
|
},
|
|
3849
3969
|
{
|
|
3850
|
-
"
|
|
3851
|
-
"
|
|
3970
|
+
"variant": "body",
|
|
3971
|
+
"name": "description"
|
|
3852
3972
|
},
|
|
3853
3973
|
{
|
|
3854
|
-
"
|
|
3855
|
-
"
|
|
3974
|
+
"name": "slug",
|
|
3975
|
+
"variant": "caption"
|
|
3856
3976
|
}
|
|
3857
3977
|
],
|
|
3858
|
-
"variant": "card",
|
|
3859
3978
|
"gap": "sm",
|
|
3860
3979
|
"entity": "@payload.data",
|
|
3861
|
-
"type": "data-list",
|
|
3862
3980
|
"itemActions": [
|
|
3863
3981
|
{
|
|
3982
|
+
"variant": "ghost",
|
|
3864
3983
|
"label": "View",
|
|
3865
|
-
"event": "VIEW"
|
|
3866
|
-
"variant": "ghost"
|
|
3984
|
+
"event": "VIEW"
|
|
3867
3985
|
},
|
|
3868
3986
|
{
|
|
3869
3987
|
"label": "Edit",
|
|
@@ -3872,15 +3990,17 @@
|
|
|
3872
3990
|
},
|
|
3873
3991
|
{
|
|
3874
3992
|
"label": "Delete",
|
|
3875
|
-
"
|
|
3876
|
-
"
|
|
3993
|
+
"variant": "danger",
|
|
3994
|
+
"event": "DELETE"
|
|
3877
3995
|
}
|
|
3878
|
-
]
|
|
3996
|
+
],
|
|
3997
|
+
"variant": "card"
|
|
3879
3998
|
}
|
|
3880
|
-
]
|
|
3999
|
+
],
|
|
4000
|
+
"direction": "vertical",
|
|
4001
|
+
"gap": "lg"
|
|
3881
4002
|
}
|
|
3882
|
-
]
|
|
3883
|
-
"type": "dashboard-layout"
|
|
4003
|
+
]
|
|
3884
4004
|
}
|
|
3885
4005
|
]
|
|
3886
4006
|
]
|
|
@@ -3894,36 +4014,36 @@
|
|
|
3894
4014
|
"render-ui",
|
|
3895
4015
|
"main",
|
|
3896
4016
|
{
|
|
4017
|
+
"className": "py-12",
|
|
4018
|
+
"type": "stack",
|
|
4019
|
+
"gap": "md",
|
|
3897
4020
|
"direction": "vertical",
|
|
3898
4021
|
"children": [
|
|
3899
4022
|
{
|
|
3900
4023
|
"type": "icon",
|
|
3901
|
-
"
|
|
3902
|
-
"
|
|
4024
|
+
"name": "alert-triangle",
|
|
4025
|
+
"color": "destructive"
|
|
3903
4026
|
},
|
|
3904
4027
|
{
|
|
4028
|
+
"type": "typography",
|
|
3905
4029
|
"content": "Failed to load category",
|
|
3906
|
-
"variant": "h3"
|
|
3907
|
-
"type": "typography"
|
|
4030
|
+
"variant": "h3"
|
|
3908
4031
|
},
|
|
3909
4032
|
{
|
|
3910
|
-
"content": "@payload.error",
|
|
3911
4033
|
"color": "muted",
|
|
3912
|
-
"
|
|
3913
|
-
"
|
|
4034
|
+
"variant": "body",
|
|
4035
|
+
"content": "@payload.error",
|
|
4036
|
+
"type": "typography"
|
|
3914
4037
|
},
|
|
3915
4038
|
{
|
|
3916
|
-
"label": "Retry",
|
|
3917
|
-
"variant": "primary",
|
|
3918
|
-
"action": "INIT",
|
|
3919
4039
|
"icon": "rotate-ccw",
|
|
3920
|
-
"type": "button"
|
|
4040
|
+
"type": "button",
|
|
4041
|
+
"action": "INIT",
|
|
4042
|
+
"label": "Retry",
|
|
4043
|
+
"variant": "primary"
|
|
3921
4044
|
}
|
|
3922
4045
|
],
|
|
3923
|
-
"
|
|
3924
|
-
"align": "center",
|
|
3925
|
-
"className": "py-12",
|
|
3926
|
-
"gap": "md"
|
|
4046
|
+
"align": "center"
|
|
3927
4047
|
}
|
|
3928
4048
|
]
|
|
3929
4049
|
]
|
|
@@ -4124,23 +4244,25 @@
|
|
|
4124
4244
|
"render-ui",
|
|
4125
4245
|
"modal",
|
|
4126
4246
|
{
|
|
4247
|
+
"direction": "vertical",
|
|
4127
4248
|
"type": "stack",
|
|
4249
|
+
"gap": "md",
|
|
4128
4250
|
"children": [
|
|
4129
4251
|
{
|
|
4130
|
-
"direction": "horizontal",
|
|
4131
|
-
"type": "stack",
|
|
4132
4252
|
"gap": "sm",
|
|
4133
4253
|
"children": [
|
|
4134
4254
|
{
|
|
4135
|
-
"
|
|
4136
|
-
"
|
|
4255
|
+
"type": "icon",
|
|
4256
|
+
"name": "plus-circle"
|
|
4137
4257
|
},
|
|
4138
4258
|
{
|
|
4139
|
-
"content": "Create Category",
|
|
4140
4259
|
"type": "typography",
|
|
4141
|
-
"variant": "h3"
|
|
4260
|
+
"variant": "h3",
|
|
4261
|
+
"content": "Create Category"
|
|
4142
4262
|
}
|
|
4143
|
-
]
|
|
4263
|
+
],
|
|
4264
|
+
"type": "stack",
|
|
4265
|
+
"direction": "horizontal"
|
|
4144
4266
|
},
|
|
4145
4267
|
{
|
|
4146
4268
|
"type": "divider"
|
|
@@ -4158,9 +4280,7 @@
|
|
|
4158
4280
|
"articleCount"
|
|
4159
4281
|
]
|
|
4160
4282
|
}
|
|
4161
|
-
]
|
|
4162
|
-
"direction": "vertical",
|
|
4163
|
-
"gap": "md"
|
|
4283
|
+
]
|
|
4164
4284
|
}
|
|
4165
4285
|
]
|
|
4166
4286
|
]
|
|
@@ -4412,8 +4532,8 @@
|
|
|
4412
4532
|
"Category",
|
|
4413
4533
|
{
|
|
4414
4534
|
"emit": {
|
|
4415
|
-
"
|
|
4416
|
-
"
|
|
4535
|
+
"success": "CategoryLoaded",
|
|
4536
|
+
"failure": "CategoryLoadFailed"
|
|
4417
4537
|
}
|
|
4418
4538
|
}
|
|
4419
4539
|
]
|
|
@@ -4430,8 +4550,8 @@
|
|
|
4430
4550
|
{
|
|
4431
4551
|
"id": "@payload.id",
|
|
4432
4552
|
"emit": {
|
|
4433
|
-
"
|
|
4434
|
-
"
|
|
4553
|
+
"failure": "CategoryLoadFailed",
|
|
4554
|
+
"success": "CategoryLoaded"
|
|
4435
4555
|
}
|
|
4436
4556
|
}
|
|
4437
4557
|
],
|
|
@@ -4439,12 +4559,11 @@
|
|
|
4439
4559
|
"render-ui",
|
|
4440
4560
|
"modal",
|
|
4441
4561
|
{
|
|
4442
|
-
"type": "stack",
|
|
4443
4562
|
"children": [
|
|
4444
4563
|
{
|
|
4445
4564
|
"gap": "sm",
|
|
4446
|
-
"type": "stack",
|
|
4447
4565
|
"direction": "horizontal",
|
|
4566
|
+
"type": "stack",
|
|
4448
4567
|
"children": [
|
|
4449
4568
|
{
|
|
4450
4569
|
"type": "icon",
|
|
@@ -4461,10 +4580,10 @@
|
|
|
4461
4580
|
"type": "divider"
|
|
4462
4581
|
},
|
|
4463
4582
|
{
|
|
4464
|
-
"cancelEvent": "CLOSE",
|
|
4465
|
-
"entity": "@payload.row",
|
|
4466
|
-
"mode": "edit",
|
|
4467
4583
|
"type": "form-section",
|
|
4584
|
+
"mode": "edit",
|
|
4585
|
+
"cancelEvent": "CLOSE",
|
|
4586
|
+
"submitEvent": "SAVE",
|
|
4468
4587
|
"fields": [
|
|
4469
4588
|
"name",
|
|
4470
4589
|
"slug",
|
|
@@ -4472,11 +4591,12 @@
|
|
|
4472
4591
|
"parentCategory",
|
|
4473
4592
|
"articleCount"
|
|
4474
4593
|
],
|
|
4475
|
-
"
|
|
4594
|
+
"entity": "@payload.row"
|
|
4476
4595
|
}
|
|
4477
4596
|
],
|
|
4478
|
-
"
|
|
4479
|
-
"
|
|
4597
|
+
"direction": "vertical",
|
|
4598
|
+
"type": "stack",
|
|
4599
|
+
"gap": "md"
|
|
4480
4600
|
}
|
|
4481
4601
|
]
|
|
4482
4602
|
]
|
|
@@ -4716,8 +4836,8 @@
|
|
|
4716
4836
|
{
|
|
4717
4837
|
"id": "@payload.id",
|
|
4718
4838
|
"emit": {
|
|
4719
|
-
"
|
|
4720
|
-
"
|
|
4839
|
+
"failure": "CategoryLoadFailed",
|
|
4840
|
+
"success": "CategoryLoaded"
|
|
4721
4841
|
}
|
|
4722
4842
|
}
|
|
4723
4843
|
],
|
|
@@ -4725,140 +4845,140 @@
|
|
|
4725
4845
|
"render-ui",
|
|
4726
4846
|
"modal",
|
|
4727
4847
|
{
|
|
4728
|
-
"type": "stack",
|
|
4729
4848
|
"gap": "md",
|
|
4730
|
-
"direction": "vertical",
|
|
4731
4849
|
"children": [
|
|
4732
4850
|
{
|
|
4851
|
+
"gap": "sm",
|
|
4733
4852
|
"children": [
|
|
4734
4853
|
{
|
|
4735
4854
|
"name": "eye",
|
|
4736
4855
|
"type": "icon"
|
|
4737
4856
|
},
|
|
4738
4857
|
{
|
|
4739
|
-
"
|
|
4858
|
+
"type": "typography",
|
|
4740
4859
|
"variant": "h3",
|
|
4741
|
-
"
|
|
4860
|
+
"content": "@entity.name"
|
|
4742
4861
|
}
|
|
4743
4862
|
],
|
|
4744
|
-
"
|
|
4745
|
-
"gap": "sm",
|
|
4863
|
+
"align": "center",
|
|
4746
4864
|
"type": "stack",
|
|
4747
|
-
"
|
|
4865
|
+
"direction": "horizontal"
|
|
4748
4866
|
},
|
|
4749
4867
|
{
|
|
4750
4868
|
"type": "divider"
|
|
4751
4869
|
},
|
|
4752
4870
|
{
|
|
4753
|
-
"gap": "md",
|
|
4754
|
-
"type": "stack",
|
|
4755
4871
|
"direction": "horizontal",
|
|
4756
4872
|
"children": [
|
|
4757
4873
|
{
|
|
4758
|
-
"type": "typography",
|
|
4759
4874
|
"variant": "caption",
|
|
4760
|
-
"content": "Name"
|
|
4875
|
+
"content": "Name",
|
|
4876
|
+
"type": "typography"
|
|
4761
4877
|
},
|
|
4762
4878
|
{
|
|
4879
|
+
"content": "@entity.name",
|
|
4763
4880
|
"type": "typography",
|
|
4764
|
-
"variant": "body"
|
|
4765
|
-
"content": "@entity.name"
|
|
4881
|
+
"variant": "body"
|
|
4766
4882
|
}
|
|
4767
|
-
]
|
|
4883
|
+
],
|
|
4884
|
+
"gap": "md",
|
|
4885
|
+
"type": "stack"
|
|
4768
4886
|
},
|
|
4769
4887
|
{
|
|
4888
|
+
"type": "stack",
|
|
4889
|
+
"gap": "md",
|
|
4890
|
+
"direction": "horizontal",
|
|
4770
4891
|
"children": [
|
|
4771
4892
|
{
|
|
4772
|
-
"
|
|
4893
|
+
"content": "Slug",
|
|
4773
4894
|
"type": "typography",
|
|
4774
|
-
"
|
|
4895
|
+
"variant": "caption"
|
|
4775
4896
|
},
|
|
4776
4897
|
{
|
|
4777
|
-
"type": "typography",
|
|
4778
4898
|
"variant": "body",
|
|
4899
|
+
"type": "typography",
|
|
4779
4900
|
"content": "@entity.slug"
|
|
4780
4901
|
}
|
|
4781
|
-
]
|
|
4782
|
-
"type": "stack",
|
|
4783
|
-
"gap": "md",
|
|
4784
|
-
"direction": "horizontal"
|
|
4902
|
+
]
|
|
4785
4903
|
},
|
|
4786
4904
|
{
|
|
4787
|
-
"gap": "md",
|
|
4788
4905
|
"direction": "horizontal",
|
|
4789
4906
|
"children": [
|
|
4790
4907
|
{
|
|
4791
|
-
"
|
|
4908
|
+
"content": "Description",
|
|
4792
4909
|
"type": "typography",
|
|
4793
|
-
"
|
|
4910
|
+
"variant": "caption"
|
|
4794
4911
|
},
|
|
4795
4912
|
{
|
|
4913
|
+
"type": "typography",
|
|
4796
4914
|
"content": "@entity.description",
|
|
4797
|
-
"variant": "body"
|
|
4798
|
-
"type": "typography"
|
|
4915
|
+
"variant": "body"
|
|
4799
4916
|
}
|
|
4800
4917
|
],
|
|
4801
|
-
"type": "stack"
|
|
4918
|
+
"type": "stack",
|
|
4919
|
+
"gap": "md"
|
|
4802
4920
|
},
|
|
4803
4921
|
{
|
|
4804
4922
|
"direction": "horizontal",
|
|
4805
|
-
"
|
|
4923
|
+
"gap": "md",
|
|
4806
4924
|
"children": [
|
|
4807
4925
|
{
|
|
4808
|
-
"
|
|
4926
|
+
"variant": "caption",
|
|
4809
4927
|
"content": "Parent Category",
|
|
4810
|
-
"
|
|
4928
|
+
"type": "typography"
|
|
4811
4929
|
},
|
|
4812
4930
|
{
|
|
4813
4931
|
"content": "@entity.parentCategory",
|
|
4814
|
-
"
|
|
4815
|
-
"
|
|
4932
|
+
"type": "typography",
|
|
4933
|
+
"variant": "body"
|
|
4816
4934
|
}
|
|
4817
4935
|
],
|
|
4818
|
-
"
|
|
4936
|
+
"type": "stack"
|
|
4819
4937
|
},
|
|
4820
4938
|
{
|
|
4821
4939
|
"gap": "md",
|
|
4822
|
-
"type": "stack",
|
|
4823
4940
|
"children": [
|
|
4824
4941
|
{
|
|
4825
4942
|
"variant": "caption",
|
|
4826
|
-
"
|
|
4827
|
-
"
|
|
4943
|
+
"content": "Article Count",
|
|
4944
|
+
"type": "typography"
|
|
4828
4945
|
},
|
|
4829
4946
|
{
|
|
4830
|
-
"
|
|
4947
|
+
"variant": "body",
|
|
4831
4948
|
"type": "typography",
|
|
4832
|
-
"
|
|
4949
|
+
"content": "@entity.articleCount"
|
|
4833
4950
|
}
|
|
4834
4951
|
],
|
|
4835
|
-
"direction": "horizontal"
|
|
4952
|
+
"direction": "horizontal",
|
|
4953
|
+
"type": "stack"
|
|
4836
4954
|
},
|
|
4837
4955
|
{
|
|
4838
4956
|
"type": "divider"
|
|
4839
4957
|
},
|
|
4840
4958
|
{
|
|
4841
|
-
"
|
|
4959
|
+
"direction": "horizontal",
|
|
4842
4960
|
"children": [
|
|
4843
4961
|
{
|
|
4844
|
-
"action": "EDIT",
|
|
4845
|
-
"icon": "edit",
|
|
4846
|
-
"variant": "primary",
|
|
4847
4962
|
"label": "Edit",
|
|
4848
|
-
"
|
|
4963
|
+
"variant": "primary",
|
|
4964
|
+
"icon": "edit",
|
|
4965
|
+
"type": "button",
|
|
4966
|
+
"action": "EDIT"
|
|
4849
4967
|
},
|
|
4850
4968
|
{
|
|
4851
|
-
"action": "CLOSE",
|
|
4852
4969
|
"type": "button",
|
|
4970
|
+
"action": "CLOSE",
|
|
4853
4971
|
"label": "Close",
|
|
4854
4972
|
"variant": "ghost"
|
|
4855
4973
|
}
|
|
4856
4974
|
],
|
|
4975
|
+
"gap": "sm",
|
|
4857
4976
|
"justify": "end",
|
|
4858
|
-
"
|
|
4859
|
-
"gap": "sm"
|
|
4977
|
+
"type": "stack"
|
|
4860
4978
|
}
|
|
4861
|
-
]
|
|
4979
|
+
],
|
|
4980
|
+
"type": "stack",
|
|
4981
|
+
"direction": "vertical"
|
|
4862
4982
|
}
|
|
4863
4983
|
]
|
|
4864
4984
|
]
|
|
@@ -5101,24 +5221,25 @@
|
|
|
5101
5221
|
"fetch",
|
|
5102
5222
|
"Category",
|
|
5103
5223
|
{
|
|
5104
|
-
"id": "@payload.id",
|
|
5105
5224
|
"emit": {
|
|
5106
|
-
"
|
|
5107
|
-
"
|
|
5108
|
-
}
|
|
5225
|
+
"failure": "CategoryLoadFailed",
|
|
5226
|
+
"success": "CategoryLoaded"
|
|
5227
|
+
},
|
|
5228
|
+
"id": "@payload.id"
|
|
5109
5229
|
}
|
|
5110
5230
|
],
|
|
5111
5231
|
[
|
|
5112
5232
|
"render-ui",
|
|
5113
5233
|
"modal",
|
|
5114
5234
|
{
|
|
5235
|
+
"type": "stack",
|
|
5236
|
+
"direction": "vertical",
|
|
5115
5237
|
"gap": "md",
|
|
5116
5238
|
"children": [
|
|
5117
5239
|
{
|
|
5118
5240
|
"direction": "horizontal",
|
|
5119
|
-
"type": "stack",
|
|
5120
5241
|
"gap": "sm",
|
|
5121
|
-
"
|
|
5242
|
+
"type": "stack",
|
|
5122
5243
|
"children": [
|
|
5123
5244
|
{
|
|
5124
5245
|
"type": "icon",
|
|
@@ -5126,43 +5247,42 @@
|
|
|
5126
5247
|
},
|
|
5127
5248
|
{
|
|
5128
5249
|
"variant": "h3",
|
|
5129
|
-
"
|
|
5130
|
-
"
|
|
5250
|
+
"content": "Delete Category",
|
|
5251
|
+
"type": "typography"
|
|
5131
5252
|
}
|
|
5132
|
-
]
|
|
5253
|
+
],
|
|
5254
|
+
"align": "center"
|
|
5133
5255
|
},
|
|
5134
5256
|
{
|
|
5135
5257
|
"type": "divider"
|
|
5136
5258
|
},
|
|
5137
5259
|
{
|
|
5138
|
-
"type": "alert",
|
|
5139
5260
|
"variant": "error",
|
|
5140
|
-
"message": "This action cannot be undone."
|
|
5261
|
+
"message": "This action cannot be undone.",
|
|
5262
|
+
"type": "alert"
|
|
5141
5263
|
},
|
|
5142
5264
|
{
|
|
5265
|
+
"justify": "end",
|
|
5266
|
+
"type": "stack",
|
|
5267
|
+
"direction": "horizontal",
|
|
5143
5268
|
"gap": "sm",
|
|
5144
5269
|
"children": [
|
|
5145
5270
|
{
|
|
5146
|
-
"label": "Cancel",
|
|
5147
5271
|
"action": "CANCEL",
|
|
5148
|
-
"
|
|
5149
|
-
"type": "button"
|
|
5272
|
+
"label": "Cancel",
|
|
5273
|
+
"type": "button",
|
|
5274
|
+
"variant": "ghost"
|
|
5150
5275
|
},
|
|
5151
5276
|
{
|
|
5277
|
+
"action": "CONFIRM_DELETE",
|
|
5278
|
+
"icon": "check",
|
|
5152
5279
|
"type": "button",
|
|
5153
5280
|
"variant": "danger",
|
|
5154
|
-
"label": "Delete"
|
|
5155
|
-
"action": "CONFIRM_DELETE",
|
|
5156
|
-
"icon": "check"
|
|
5281
|
+
"label": "Delete"
|
|
5157
5282
|
}
|
|
5158
|
-
]
|
|
5159
|
-
"direction": "horizontal",
|
|
5160
|
-
"justify": "end",
|
|
5161
|
-
"type": "stack"
|
|
5283
|
+
]
|
|
5162
5284
|
}
|
|
5163
|
-
]
|
|
5164
|
-
"type": "stack",
|
|
5165
|
-
"direction": "vertical"
|
|
5285
|
+
]
|
|
5166
5286
|
}
|
|
5167
5287
|
]
|
|
5168
5288
|
]
|
|
@@ -5179,8 +5299,8 @@
|
|
|
5179
5299
|
"@entity.pendingId",
|
|
5180
5300
|
{
|
|
5181
5301
|
"emit": {
|
|
5182
|
-
"
|
|
5183
|
-
"
|
|
5302
|
+
"failure": "CategoryDeleteFailed",
|
|
5303
|
+
"success": "CategoryDeleted"
|
|
5184
5304
|
}
|
|
5185
5305
|
}
|
|
5186
5306
|
],
|
|
@@ -5234,8 +5354,8 @@
|
|
|
5234
5354
|
"Category",
|
|
5235
5355
|
{
|
|
5236
5356
|
"emit": {
|
|
5237
|
-
"
|
|
5238
|
-
"
|
|
5357
|
+
"failure": "CategoryLoadFailed",
|
|
5358
|
+
"success": "CategoryLoaded"
|
|
5239
5359
|
}
|
|
5240
5360
|
}
|
|
5241
5361
|
]
|
|
@@ -5328,12 +5448,11 @@
|
|
|
5328
5448
|
"ref": "Tabs.traits.TabsItemTabs",
|
|
5329
5449
|
"name": "CmsHubTabs",
|
|
5330
5450
|
"config": {
|
|
5331
|
-
"defaultTab": "articles",
|
|
5332
5451
|
"tabs": [
|
|
5333
5452
|
{
|
|
5334
|
-
"label": "Articles",
|
|
5335
5453
|
"icon": "file-text",
|
|
5336
|
-
"id": "articles"
|
|
5454
|
+
"id": "articles",
|
|
5455
|
+
"label": "Articles"
|
|
5337
5456
|
},
|
|
5338
5457
|
{
|
|
5339
5458
|
"icon": "image",
|
|
@@ -5341,11 +5460,12 @@
|
|
|
5341
5460
|
"label": "Media"
|
|
5342
5461
|
},
|
|
5343
5462
|
{
|
|
5344
|
-
"
|
|
5463
|
+
"icon": "folder",
|
|
5345
5464
|
"id": "categories",
|
|
5346
|
-
"
|
|
5465
|
+
"label": "Categories"
|
|
5347
5466
|
}
|
|
5348
5467
|
],
|
|
5468
|
+
"defaultTab": "articles",
|
|
5349
5469
|
"variant": "underline"
|
|
5350
5470
|
}
|
|
5351
5471
|
},
|
|
@@ -5402,13 +5522,33 @@
|
|
|
5402
5522
|
"render-ui",
|
|
5403
5523
|
"main",
|
|
5404
5524
|
{
|
|
5405
|
-
"
|
|
5525
|
+
"navItems": [
|
|
5526
|
+
{
|
|
5527
|
+
"label": "CMS Hub",
|
|
5528
|
+
"href": "/cms-hub",
|
|
5529
|
+
"icon": "layout-grid"
|
|
5530
|
+
},
|
|
5531
|
+
{
|
|
5532
|
+
"label": "Articles",
|
|
5533
|
+
"icon": "file-text",
|
|
5534
|
+
"href": "/articles"
|
|
5535
|
+
},
|
|
5536
|
+
{
|
|
5537
|
+
"icon": "image",
|
|
5538
|
+
"href": "/media",
|
|
5539
|
+
"label": "Media"
|
|
5540
|
+
},
|
|
5541
|
+
{
|
|
5542
|
+
"label": "Categories",
|
|
5543
|
+
"href": "/categories",
|
|
5544
|
+
"icon": "folder"
|
|
5545
|
+
}
|
|
5546
|
+
],
|
|
5406
5547
|
"children": [
|
|
5407
5548
|
{
|
|
5408
|
-
"
|
|
5549
|
+
"type": "stack",
|
|
5409
5550
|
"children": [
|
|
5410
5551
|
{
|
|
5411
|
-
"type": "stack",
|
|
5412
5552
|
"direction": "horizontal",
|
|
5413
5553
|
"children": [
|
|
5414
5554
|
{
|
|
@@ -5421,8 +5561,9 @@
|
|
|
5421
5561
|
"type": "typography"
|
|
5422
5562
|
}
|
|
5423
5563
|
],
|
|
5564
|
+
"gap": "sm",
|
|
5424
5565
|
"align": "center",
|
|
5425
|
-
"
|
|
5566
|
+
"type": "stack"
|
|
5426
5567
|
},
|
|
5427
5568
|
{
|
|
5428
5569
|
"type": "divider"
|
|
@@ -5430,51 +5571,30 @@
|
|
|
5430
5571
|
"@trait.CmsHubTabs",
|
|
5431
5572
|
{
|
|
5432
5573
|
"gap": "sm",
|
|
5433
|
-
"type": "stack",
|
|
5434
5574
|
"className": "p-4 border rounded-md",
|
|
5575
|
+
"type": "stack",
|
|
5435
5576
|
"direction": "vertical",
|
|
5436
5577
|
"children": [
|
|
5437
5578
|
{
|
|
5438
|
-
"
|
|
5579
|
+
"color": "secondary",
|
|
5439
5580
|
"type": "typography",
|
|
5440
5581
|
"content": "Active section",
|
|
5441
|
-
"
|
|
5582
|
+
"variant": "overline"
|
|
5442
5583
|
},
|
|
5443
5584
|
{
|
|
5444
|
-
"
|
|
5585
|
+
"variant": "h3",
|
|
5445
5586
|
"type": "typography",
|
|
5446
|
-
"
|
|
5587
|
+
"content": "@entity.section"
|
|
5447
5588
|
}
|
|
5448
5589
|
]
|
|
5449
5590
|
}
|
|
5450
5591
|
],
|
|
5451
|
-
"
|
|
5592
|
+
"className": "max-w-5xl mx-auto w-full",
|
|
5452
5593
|
"gap": "lg",
|
|
5453
|
-
"
|
|
5454
|
-
}
|
|
5455
|
-
],
|
|
5456
|
-
"navItems": [
|
|
5457
|
-
{
|
|
5458
|
-
"icon": "layout-grid",
|
|
5459
|
-
"label": "CMS Hub",
|
|
5460
|
-
"href": "/cms-hub"
|
|
5461
|
-
},
|
|
5462
|
-
{
|
|
5463
|
-
"icon": "file-text",
|
|
5464
|
-
"href": "/articles",
|
|
5465
|
-
"label": "Articles"
|
|
5466
|
-
},
|
|
5467
|
-
{
|
|
5468
|
-
"label": "Media",
|
|
5469
|
-
"href": "/media",
|
|
5470
|
-
"icon": "image"
|
|
5471
|
-
},
|
|
5472
|
-
{
|
|
5473
|
-
"icon": "folder",
|
|
5474
|
-
"label": "Categories",
|
|
5475
|
-
"href": "/categories"
|
|
5594
|
+
"direction": "vertical"
|
|
5476
5595
|
}
|
|
5477
5596
|
],
|
|
5597
|
+
"appName": "CmsApp",
|
|
5478
5598
|
"type": "dashboard-layout"
|
|
5479
5599
|
}
|
|
5480
5600
|
]
|
|
@@ -5494,77 +5614,77 @@
|
|
|
5494
5614
|
"render-ui",
|
|
5495
5615
|
"main",
|
|
5496
5616
|
{
|
|
5497
|
-
"type": "dashboard-layout",
|
|
5498
5617
|
"appName": "CmsApp",
|
|
5618
|
+
"type": "dashboard-layout",
|
|
5499
5619
|
"navItems": [
|
|
5500
5620
|
{
|
|
5501
|
-
"
|
|
5621
|
+
"icon": "layout-grid",
|
|
5502
5622
|
"href": "/cms-hub",
|
|
5503
|
-
"
|
|
5623
|
+
"label": "CMS Hub"
|
|
5504
5624
|
},
|
|
5505
5625
|
{
|
|
5506
5626
|
"icon": "file-text",
|
|
5507
|
-
"
|
|
5508
|
-
"
|
|
5627
|
+
"label": "Articles",
|
|
5628
|
+
"href": "/articles"
|
|
5509
5629
|
},
|
|
5510
5630
|
{
|
|
5511
|
-
"
|
|
5631
|
+
"label": "Media",
|
|
5512
5632
|
"icon": "image",
|
|
5513
|
-
"
|
|
5633
|
+
"href": "/media"
|
|
5514
5634
|
},
|
|
5515
5635
|
{
|
|
5636
|
+
"label": "Categories",
|
|
5516
5637
|
"href": "/categories",
|
|
5517
|
-
"icon": "folder"
|
|
5518
|
-
"label": "Categories"
|
|
5638
|
+
"icon": "folder"
|
|
5519
5639
|
}
|
|
5520
5640
|
],
|
|
5521
5641
|
"children": [
|
|
5522
5642
|
{
|
|
5523
|
-
"type": "stack",
|
|
5524
5643
|
"gap": "lg",
|
|
5525
5644
|
"className": "max-w-5xl mx-auto w-full",
|
|
5526
5645
|
"children": [
|
|
5527
5646
|
{
|
|
5528
|
-
"type": "stack",
|
|
5529
5647
|
"align": "center",
|
|
5530
|
-
"
|
|
5648
|
+
"direction": "horizontal",
|
|
5531
5649
|
"children": [
|
|
5532
5650
|
{
|
|
5533
5651
|
"type": "icon",
|
|
5534
5652
|
"name": "layout-grid"
|
|
5535
5653
|
},
|
|
5536
5654
|
{
|
|
5655
|
+
"content": "CMS Hub",
|
|
5537
5656
|
"variant": "h2",
|
|
5538
|
-
"type": "typography"
|
|
5539
|
-
"content": "CMS Hub"
|
|
5657
|
+
"type": "typography"
|
|
5540
5658
|
}
|
|
5541
5659
|
],
|
|
5542
|
-
"
|
|
5660
|
+
"gap": "sm",
|
|
5661
|
+
"type": "stack"
|
|
5543
5662
|
},
|
|
5544
5663
|
{
|
|
5545
5664
|
"type": "divider"
|
|
5546
5665
|
},
|
|
5547
5666
|
"@trait.CmsHubTabs",
|
|
5548
5667
|
{
|
|
5549
|
-
"
|
|
5550
|
-
"gap": "sm",
|
|
5551
|
-
"type": "stack",
|
|
5668
|
+
"className": "p-4 border rounded-md",
|
|
5552
5669
|
"children": [
|
|
5553
5670
|
{
|
|
5554
|
-
"type": "typography",
|
|
5555
5671
|
"color": "secondary",
|
|
5556
5672
|
"content": "Active section",
|
|
5673
|
+
"type": "typography",
|
|
5557
5674
|
"variant": "overline"
|
|
5558
5675
|
},
|
|
5559
5676
|
{
|
|
5560
|
-
"variant": "h3",
|
|
5561
5677
|
"content": "@entity.section",
|
|
5678
|
+
"variant": "h3",
|
|
5562
5679
|
"type": "typography"
|
|
5563
5680
|
}
|
|
5564
5681
|
],
|
|
5565
|
-
"
|
|
5682
|
+
"type": "stack",
|
|
5683
|
+
"direction": "vertical",
|
|
5684
|
+
"gap": "sm"
|
|
5566
5685
|
}
|
|
5567
5686
|
],
|
|
5687
|
+
"type": "stack",
|
|
5568
5688
|
"direction": "vertical"
|
|
5569
5689
|
}
|
|
5570
5690
|
]
|