@almadar/std 8.2.0 → 8.4.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.
Files changed (187) hide show
  1. package/behaviors/registry/agent/atoms/std-agent-activity-log.orb +74 -74
  2. package/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
  3. package/behaviors/registry/agent/atoms/std-agent-classifier.orb +104 -98
  4. package/behaviors/registry/agent/atoms/std-agent-completion.orb +126 -111
  5. package/behaviors/registry/agent/atoms/std-agent-context-window.orb +406 -400
  6. package/behaviors/registry/agent/atoms/std-agent-conversation.orb +87 -87
  7. package/behaviors/registry/agent/atoms/std-agent-memory.orb +82 -82
  8. package/behaviors/registry/agent/atoms/std-agent-provider.orb +120 -114
  9. package/behaviors/registry/agent/atoms/std-agent-search.orb +68 -68
  10. package/behaviors/registry/agent/atoms/std-agent-session.orb +126 -126
  11. package/behaviors/registry/agent/atoms/std-agent-step-progress.orb +208 -208
  12. package/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +342 -342
  13. package/behaviors/registry/agent/atoms/std-agent-tool-call.orb +77 -76
  14. package/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +181 -181
  15. package/behaviors/registry/agent/molecules/std-agent-learner.orb +183 -183
  16. package/behaviors/registry/agent/molecules/std-agent-planner.orb +139 -139
  17. package/behaviors/registry/agent/molecules/std-agent-rag.orb +124 -124
  18. package/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  19. package/behaviors/registry/agent/organisms/std-agent-assistant.orb +1124 -1124
  20. package/behaviors/registry/agent/organisms/std-agent-builder.orb +3064 -3064
  21. package/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2165 -2165
  22. package/behaviors/registry/agent/organisms/std-agent-reviewer.orb +917 -917
  23. package/behaviors/registry/agent/organisms/std-agent-tutor.orb +759 -759
  24. package/behaviors/registry/app/organisms/std-api-gateway.orb +827 -827
  25. package/behaviors/registry/app/organisms/std-booking-system.orb +1181 -1181
  26. package/behaviors/registry/app/organisms/std-cicd-pipeline.orb +745 -745
  27. package/behaviors/registry/app/organisms/std-cms.orb +432 -432
  28. package/behaviors/registry/app/organisms/std-coding-academy.orb +378 -378
  29. package/behaviors/registry/app/organisms/std-crm.orb +813 -813
  30. package/behaviors/registry/app/organisms/std-devops-dashboard.orb +1290 -1290
  31. package/behaviors/registry/app/organisms/std-ecommerce.orb +989 -989
  32. package/behaviors/registry/app/organisms/std-finance-tracker.orb +575 -575
  33. package/behaviors/registry/app/organisms/std-healthcare.orb +1374 -1374
  34. package/behaviors/registry/app/organisms/std-helpdesk.orb +714 -714
  35. package/behaviors/registry/app/organisms/std-hr-portal.orb +1175 -1175
  36. package/behaviors/registry/app/organisms/std-iot-dashboard.orb +834 -834
  37. package/behaviors/registry/app/organisms/std-lms.orb +858 -858
  38. package/behaviors/registry/app/organisms/std-project-manager.orb +654 -654
  39. package/behaviors/registry/app/organisms/std-realtime-chat.orb +720 -720
  40. package/behaviors/registry/app/organisms/std-social-feed.orb +197 -197
  41. package/behaviors/registry/app/organisms/std-trading-dashboard.orb +744 -744
  42. package/behaviors/registry/core/atoms/std-browse.orb +64 -64
  43. package/behaviors/registry/core/atoms/std-cache-aside.orb +93 -93
  44. package/behaviors/registry/core/atoms/std-calendar.orb +52 -52
  45. package/behaviors/registry/core/atoms/std-circuit-breaker.orb +178 -178
  46. package/behaviors/registry/core/atoms/std-confirmation.orb +24 -42
  47. package/behaviors/registry/core/atoms/std-display.orb +413 -413
  48. package/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  49. package/behaviors/registry/core/atoms/std-filter.orb +50 -50
  50. package/behaviors/registry/core/atoms/std-gallery.orb +53 -53
  51. package/behaviors/registry/core/atoms/std-modal.orb +13 -31
  52. package/behaviors/registry/core/atoms/std-pagination.orb +48 -48
  53. package/behaviors/registry/core/atoms/std-push.orb +47 -47
  54. package/behaviors/registry/core/atoms/std-rate-limiter.orb +176 -176
  55. package/behaviors/registry/core/atoms/std-related.orb +31 -31
  56. package/behaviors/registry/core/atoms/std-search.orb +75 -75
  57. package/behaviors/registry/core/atoms/std-selection.orb +91 -91
  58. package/behaviors/registry/core/atoms/std-tabs.orb +45 -45
  59. package/behaviors/registry/core/molecules/std-cart.orb +49 -49
  60. package/behaviors/registry/core/molecules/std-filtered-list.orb +8 -8
  61. package/behaviors/registry/core/molecules/std-form-advanced.orb +115 -115
  62. package/behaviors/registry/core/molecules/std-list.orb +58 -58
  63. package/behaviors/registry/core/molecules/std-wizard-form.orb +136 -136
  64. package/behaviors/registry/game/atoms/std-collision.orb +132 -132
  65. package/behaviors/registry/game/atoms/std-combat.orb +59 -59
  66. package/behaviors/registry/game/atoms/std-dialogue-box.orb +26 -26
  67. package/behaviors/registry/game/atoms/std-game-canvas2d.orb +49 -49
  68. package/behaviors/registry/game/atoms/std-gameflow.orb +32 -32
  69. package/behaviors/registry/game/atoms/std-movement.orb +287 -287
  70. package/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  71. package/behaviors/registry/game/atoms/std-physics2d.orb +80 -80
  72. package/behaviors/registry/game/atoms/std-quest.orb +133 -133
  73. package/behaviors/registry/game/atoms/std-timer.orb +266 -275
  74. package/behaviors/registry/game/organisms/std-arcade-game.orb +149 -149
  75. package/behaviors/registry/game/organisms/std-logic-training.orb +78 -78
  76. package/behaviors/registry/game/organisms/std-platformer-app.orb +207 -207
  77. package/behaviors/registry/game/organisms/std-puzzle-app.orb +103 -103
  78. package/behaviors/registry/game/organisms/std-rpg-game.orb +368 -368
  79. package/behaviors/registry/game/organisms/std-stem-lab.orb +331 -331
  80. package/behaviors/registry/game/organisms/std-strategy-game.orb +528 -528
  81. package/behaviors/registry/probes/molecules/std-source-scope-probe.orb +15 -15
  82. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +76 -76
  83. package/behaviors/registry/service/atoms/std-service-email.orb +78 -78
  84. package/behaviors/registry/service/atoms/std-service-github.orb +91 -91
  85. package/behaviors/registry/service/atoms/std-service-llm.orb +107 -107
  86. package/behaviors/registry/service/atoms/std-service-oauth.orb +113 -113
  87. package/behaviors/registry/service/atoms/std-service-redis.orb +101 -101
  88. package/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  89. package/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
  90. package/behaviors/registry/service/atoms/std-service-twilio.orb +92 -92
  91. package/behaviors/registry/service/atoms/std-service-youtube.orb +113 -113
  92. package/behaviors/registry/service/organisms/std-service-marketplace.orb +943 -943
  93. package/behaviors/registry/service/organisms/std-service-research-assistant.orb +965 -965
  94. package/dist/behaviors/registry/agent/atoms/std-agent-activity-log.orb +74 -74
  95. package/dist/behaviors/registry/agent/atoms/std-agent-chat-thread.orb +103 -103
  96. package/dist/behaviors/registry/agent/atoms/std-agent-classifier.orb +104 -98
  97. package/dist/behaviors/registry/agent/atoms/std-agent-completion.orb +126 -111
  98. package/dist/behaviors/registry/agent/atoms/std-agent-context-window.orb +406 -400
  99. package/dist/behaviors/registry/agent/atoms/std-agent-conversation.orb +87 -87
  100. package/dist/behaviors/registry/agent/atoms/std-agent-memory.orb +82 -82
  101. package/dist/behaviors/registry/agent/atoms/std-agent-provider.orb +120 -114
  102. package/dist/behaviors/registry/agent/atoms/std-agent-search.orb +68 -68
  103. package/dist/behaviors/registry/agent/atoms/std-agent-session.orb +126 -126
  104. package/dist/behaviors/registry/agent/atoms/std-agent-step-progress.orb +208 -208
  105. package/dist/behaviors/registry/agent/atoms/std-agent-token-gauge.orb +342 -342
  106. package/dist/behaviors/registry/agent/atoms/std-agent-tool-call.orb +77 -76
  107. package/dist/behaviors/registry/agent/molecules/std-agent-fix-loop.orb +181 -181
  108. package/dist/behaviors/registry/agent/molecules/std-agent-learner.orb +183 -183
  109. package/dist/behaviors/registry/agent/molecules/std-agent-planner.orb +139 -139
  110. package/dist/behaviors/registry/agent/molecules/std-agent-rag.orb +124 -124
  111. package/dist/behaviors/registry/agent/molecules/std-agent-tool-loop.orb +188 -188
  112. package/dist/behaviors/registry/agent/organisms/std-agent-assistant.orb +1124 -1124
  113. package/dist/behaviors/registry/agent/organisms/std-agent-builder.orb +3064 -3064
  114. package/dist/behaviors/registry/agent/organisms/std-agent-pipeline.orb +2165 -2165
  115. package/dist/behaviors/registry/agent/organisms/std-agent-reviewer.orb +917 -917
  116. package/dist/behaviors/registry/agent/organisms/std-agent-tutor.orb +759 -759
  117. package/dist/behaviors/registry/app/organisms/std-api-gateway.orb +827 -827
  118. package/dist/behaviors/registry/app/organisms/std-booking-system.orb +1181 -1181
  119. package/dist/behaviors/registry/app/organisms/std-cicd-pipeline.orb +745 -745
  120. package/dist/behaviors/registry/app/organisms/std-cms.orb +432 -432
  121. package/dist/behaviors/registry/app/organisms/std-coding-academy.orb +378 -378
  122. package/dist/behaviors/registry/app/organisms/std-crm.orb +813 -813
  123. package/dist/behaviors/registry/app/organisms/std-devops-dashboard.orb +1290 -1290
  124. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +989 -989
  125. package/dist/behaviors/registry/app/organisms/std-finance-tracker.orb +575 -575
  126. package/dist/behaviors/registry/app/organisms/std-healthcare.orb +1374 -1374
  127. package/dist/behaviors/registry/app/organisms/std-helpdesk.orb +714 -714
  128. package/dist/behaviors/registry/app/organisms/std-hr-portal.orb +1175 -1175
  129. package/dist/behaviors/registry/app/organisms/std-iot-dashboard.orb +834 -834
  130. package/dist/behaviors/registry/app/organisms/std-lms.orb +858 -858
  131. package/dist/behaviors/registry/app/organisms/std-project-manager.orb +654 -654
  132. package/dist/behaviors/registry/app/organisms/std-realtime-chat.orb +720 -720
  133. package/dist/behaviors/registry/app/organisms/std-social-feed.orb +197 -197
  134. package/dist/behaviors/registry/app/organisms/std-trading-dashboard.orb +744 -744
  135. package/dist/behaviors/registry/core/atoms/std-browse.orb +64 -64
  136. package/dist/behaviors/registry/core/atoms/std-cache-aside.orb +93 -93
  137. package/dist/behaviors/registry/core/atoms/std-calendar.orb +52 -52
  138. package/dist/behaviors/registry/core/atoms/std-circuit-breaker.orb +178 -178
  139. package/dist/behaviors/registry/core/atoms/std-confirmation.orb +24 -42
  140. package/dist/behaviors/registry/core/atoms/std-display.orb +413 -413
  141. package/dist/behaviors/registry/core/atoms/std-drawer.orb +61 -61
  142. package/dist/behaviors/registry/core/atoms/std-filter.orb +50 -50
  143. package/dist/behaviors/registry/core/atoms/std-gallery.orb +53 -53
  144. package/dist/behaviors/registry/core/atoms/std-modal.orb +13 -31
  145. package/dist/behaviors/registry/core/atoms/std-pagination.orb +48 -48
  146. package/dist/behaviors/registry/core/atoms/std-push.orb +47 -47
  147. package/dist/behaviors/registry/core/atoms/std-rate-limiter.orb +176 -176
  148. package/dist/behaviors/registry/core/atoms/std-related.orb +31 -31
  149. package/dist/behaviors/registry/core/atoms/std-search.orb +75 -75
  150. package/dist/behaviors/registry/core/atoms/std-selection.orb +91 -91
  151. package/dist/behaviors/registry/core/atoms/std-tabs.orb +45 -45
  152. package/dist/behaviors/registry/core/molecules/std-cart.orb +49 -49
  153. package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +8 -8
  154. package/dist/behaviors/registry/core/molecules/std-form-advanced.orb +115 -115
  155. package/dist/behaviors/registry/core/molecules/std-list.orb +58 -58
  156. package/dist/behaviors/registry/core/molecules/std-wizard-form.orb +136 -136
  157. package/dist/behaviors/registry/game/atoms/std-collision.orb +132 -132
  158. package/dist/behaviors/registry/game/atoms/std-combat.orb +59 -59
  159. package/dist/behaviors/registry/game/atoms/std-dialogue-box.orb +26 -26
  160. package/dist/behaviors/registry/game/atoms/std-game-canvas2d.orb +49 -49
  161. package/dist/behaviors/registry/game/atoms/std-gameflow.orb +32 -32
  162. package/dist/behaviors/registry/game/atoms/std-movement.orb +287 -287
  163. package/dist/behaviors/registry/game/atoms/std-overworld.orb +64 -64
  164. package/dist/behaviors/registry/game/atoms/std-physics2d.orb +80 -80
  165. package/dist/behaviors/registry/game/atoms/std-quest.orb +133 -133
  166. package/dist/behaviors/registry/game/atoms/std-timer.orb +266 -275
  167. package/dist/behaviors/registry/game/organisms/std-arcade-game.orb +149 -149
  168. package/dist/behaviors/registry/game/organisms/std-logic-training.orb +78 -78
  169. package/dist/behaviors/registry/game/organisms/std-platformer-app.orb +207 -207
  170. package/dist/behaviors/registry/game/organisms/std-puzzle-app.orb +103 -103
  171. package/dist/behaviors/registry/game/organisms/std-rpg-game.orb +368 -368
  172. package/dist/behaviors/registry/game/organisms/std-stem-lab.orb +331 -331
  173. package/dist/behaviors/registry/game/organisms/std-strategy-game.orb +528 -528
  174. package/dist/behaviors/registry/probes/molecules/std-source-scope-probe.orb +15 -15
  175. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +76 -76
  176. package/dist/behaviors/registry/service/atoms/std-service-email.orb +78 -78
  177. package/dist/behaviors/registry/service/atoms/std-service-github.orb +91 -91
  178. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +107 -107
  179. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +113 -113
  180. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +101 -101
  181. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +105 -105
  182. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +105 -105
  183. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +92 -92
  184. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +113 -113
  185. package/dist/behaviors/registry/service/organisms/std-service-marketplace.orb +943 -943
  186. package/dist/behaviors/registry/service/organisms/std-service-research-assistant.orb +965 -965
  187. package/package.json +1 -1
@@ -167,23 +167,23 @@
167
167
  "render-ui",
168
168
  "main",
169
169
  {
170
- "showTopBar": true,
170
+ "appName": "Strategy Game",
171
171
  "children": [
172
172
  {
173
+ "type": "game-menu",
174
+ "title": "Army Battle",
175
+ "subtitle": "Turn-Based Strategy",
173
176
  "menuItems": [
174
177
  {
178
+ "event": "START",
175
179
  "variant": "primary",
176
- "label": "Start Battle",
177
- "event": "START"
180
+ "label": "Start Battle"
178
181
  }
179
- ],
180
- "type": "game-menu",
181
- "title": "Army Battle",
182
- "subtitle": "Turn-Based Strategy"
182
+ ]
183
183
  }
184
184
  ],
185
185
  "type": "game-shell",
186
- "appName": "Strategy Game"
186
+ "showTopBar": true
187
187
  }
188
188
  ]
189
189
  ]
@@ -197,24 +197,24 @@
197
197
  "render-ui",
198
198
  "main",
199
199
  {
200
- "appName": "Strategy Game",
201
200
  "showTopBar": true,
202
- "type": "game-shell",
203
201
  "children": [
204
202
  {
205
- "type": "game-hud",
206
203
  "stats": [
207
204
  {
208
- "value": "@entity.turn",
209
- "label": "Turn"
205
+ "label": "Turn",
206
+ "value": "@entity.turn"
210
207
  },
211
208
  {
212
- "value": "@entity.score",
213
- "label": "Score"
209
+ "label": "Score",
210
+ "value": "@entity.score"
214
211
  }
215
- ]
212
+ ],
213
+ "type": "game-hud"
216
214
  }
217
- ]
215
+ ],
216
+ "type": "game-shell",
217
+ "appName": "Strategy Game"
218
218
  }
219
219
  ]
220
220
  ]
@@ -242,7 +242,6 @@
242
242
  "render-ui",
243
243
  "main",
244
244
  {
245
- "showTopBar": true,
246
245
  "appName": "Strategy Game",
247
246
  "type": "game-shell",
248
247
  "children": [
@@ -259,7 +258,8 @@
259
258
  ],
260
259
  "type": "game-hud"
261
260
  }
262
- ]
261
+ ],
262
+ "showTopBar": true
263
263
  }
264
264
  ]
265
265
  ]
@@ -273,20 +273,20 @@
273
273
  "render-ui",
274
274
  "modal",
275
275
  {
276
- "type": "game-menu",
277
276
  "menuItems": [
278
277
  {
279
278
  "event": "RESUME",
280
- "variant": "primary",
281
- "label": "Resume"
279
+ "label": "Resume",
280
+ "variant": "primary"
282
281
  },
283
282
  {
283
+ "label": "Quit",
284
284
  "event": "RESTART",
285
- "variant": "ghost",
286
- "label": "Quit"
285
+ "variant": "ghost"
287
286
  }
288
287
  ],
289
- "title": "Paused"
288
+ "title": "Paused",
289
+ "type": "game-menu"
290
290
  }
291
291
  ]
292
292
  ]
@@ -300,10 +300,23 @@
300
300
  "render-ui",
301
301
  "main",
302
302
  {
303
+ "type": "game-shell",
303
304
  "appName": "Strategy Game",
304
305
  "showTopBar": true,
305
306
  "children": [
306
307
  {
308
+ "type": "game-over-screen",
309
+ "title": "Battle Over",
310
+ "stats": [
311
+ {
312
+ "label": "Turns",
313
+ "value": "@entity.turn"
314
+ },
315
+ {
316
+ "label": "Score",
317
+ "value": "@entity.score"
318
+ }
319
+ ],
307
320
  "menuItems": [
308
321
  {
309
322
  "label": "Play Again",
@@ -311,26 +324,13 @@
311
324
  "variant": "primary"
312
325
  },
313
326
  {
314
- "variant": "secondary",
315
327
  "event": "RESTART",
328
+ "variant": "secondary",
316
329
  "label": "Main Menu"
317
330
  }
318
- ],
319
- "type": "game-over-screen",
320
- "title": "Battle Over",
321
- "stats": [
322
- {
323
- "label": "Turns",
324
- "value": "@entity.turn"
325
- },
326
- {
327
- "value": "@entity.score",
328
- "label": "Score"
329
- }
330
331
  ]
331
332
  }
332
- ],
333
- "type": "game-shell"
333
+ ]
334
334
  }
335
335
  ]
336
336
  ]
@@ -354,9 +354,9 @@
354
354
  "render-ui",
355
355
  "main",
356
356
  {
357
- "type": "game-shell",
358
357
  "appName": "Strategy Game",
359
358
  "showTopBar": true,
359
+ "type": "game-shell",
360
360
  "children": [
361
361
  {
362
362
  "type": "game-hud",
@@ -390,9 +390,9 @@
390
390
  "render-ui",
391
391
  "main",
392
392
  {
393
+ "type": "game-shell",
393
394
  "showTopBar": true,
394
395
  "appName": "Strategy Game",
395
- "type": "game-shell",
396
396
  "children": [
397
397
  {
398
398
  "type": "game-hud",
@@ -402,8 +402,8 @@
402
402
  "value": "@entity.turn"
403
403
  },
404
404
  {
405
- "value": "@entity.score",
406
- "label": "Score"
405
+ "label": "Score",
406
+ "value": "@entity.score"
407
407
  }
408
408
  ]
409
409
  }
@@ -431,16 +431,16 @@
431
431
  "showTopBar": true,
432
432
  "children": [
433
433
  {
434
- "type": "game-menu",
435
- "subtitle": "Turn-Based Strategy",
436
- "title": "Army Battle",
437
434
  "menuItems": [
438
435
  {
439
436
  "variant": "primary",
440
437
  "label": "Start Battle",
441
438
  "event": "START"
442
439
  }
443
- ]
440
+ ],
441
+ "type": "game-menu",
442
+ "title": "Army Battle",
443
+ "subtitle": "Turn-Based Strategy"
444
444
  }
445
445
  ]
446
446
  }
@@ -461,16 +461,16 @@
461
461
  "appName": "Strategy Game",
462
462
  "children": [
463
463
  {
464
+ "subtitle": "Turn-Based Strategy",
464
465
  "menuItems": [
465
466
  {
466
- "label": "Start Battle",
467
467
  "event": "START",
468
- "variant": "primary"
468
+ "variant": "primary",
469
+ "label": "Start Battle"
469
470
  }
470
471
  ],
471
- "subtitle": "Turn-Based Strategy",
472
- "title": "Army Battle",
473
- "type": "game-menu"
472
+ "type": "game-menu",
473
+ "title": "Army Battle"
474
474
  }
475
475
  ]
476
476
  }
@@ -592,19 +592,19 @@
592
592
  "render-ui",
593
593
  "main",
594
594
  {
595
- "showTopBar": true,
596
595
  "children": [
597
596
  {
597
+ "title": "Combat Log",
598
+ "autoScroll": true,
598
599
  "type": "combat-log",
599
600
  "showTimestamps": true,
600
601
  "events": "@ArmyBattle",
601
- "title": "Combat Log",
602
- "maxVisible": 10.0,
603
- "autoScroll": true
602
+ "maxVisible": 10.0
604
603
  }
605
604
  ],
606
- "appName": "Strategy Game",
607
- "type": "game-shell"
605
+ "showTopBar": true,
606
+ "type": "game-shell",
607
+ "appName": "Strategy Game"
608
608
  }
609
609
  ]
610
610
  ]
@@ -619,18 +619,18 @@
619
619
  "main",
620
620
  {
621
621
  "showTopBar": true,
622
+ "type": "game-shell",
623
+ "appName": "Strategy Game",
622
624
  "children": [
623
625
  {
626
+ "events": "@ArmyBattle",
627
+ "maxVisible": 10.0,
628
+ "type": "combat-log",
624
629
  "showTimestamps": true,
625
630
  "title": "Combat Log",
626
- "type": "combat-log",
627
- "autoScroll": true,
628
- "events": "@ArmyBattle",
629
- "maxVisible": 10.0
631
+ "autoScroll": true
630
632
  }
631
- ],
632
- "type": "game-shell",
633
- "appName": "Strategy Game"
633
+ ]
634
634
  }
635
635
  ]
636
636
  ]
@@ -793,20 +793,20 @@
793
793
  "render-ui",
794
794
  "main",
795
795
  {
796
+ "align": "center",
797
+ "className": "py-12",
796
798
  "children": [
797
799
  {
798
800
  "type": "spinner"
799
801
  },
800
802
  {
801
- "color": "muted",
802
- "type": "typography",
803
+ "content": "Loading…",
803
804
  "variant": "caption",
804
- "content": "Loading…"
805
+ "color": "muted",
806
+ "type": "typography"
805
807
  }
806
808
  ],
807
- "className": "py-12",
808
809
  "type": "stack",
809
- "align": "center",
810
810
  "direction": "vertical",
811
811
  "gap": "md"
812
812
  }
@@ -822,19 +822,16 @@
822
822
  "render-ui",
823
823
  "main",
824
824
  {
825
- "appName": "Strategy Game",
826
825
  "children": [
827
826
  {
828
- "type": "stack",
829
- "direction": "vertical",
830
- "gap": "lg",
831
827
  "children": [
832
828
  {
829
+ "direction": "horizontal",
830
+ "justify": "between",
831
+ "type": "stack",
833
832
  "children": [
834
833
  {
835
834
  "type": "stack",
836
- "direction": "horizontal",
837
- "gap": "md",
838
835
  "children": [
839
836
  {
840
837
  "type": "icon",
@@ -842,10 +839,12 @@
842
839
  },
843
840
  {
844
841
  "type": "typography",
845
- "content": "Territory Map",
846
- "variant": "h2"
842
+ "variant": "h2",
843
+ "content": "Territory Map"
847
844
  }
848
- ]
845
+ ],
846
+ "gap": "md",
847
+ "direction": "horizontal"
849
848
  },
850
849
  {
851
850
  "status": "online",
@@ -854,10 +853,7 @@
854
853
  "label": "Exploring"
855
854
  }
856
855
  ],
857
- "gap": "md",
858
- "direction": "horizontal",
859
- "type": "stack",
860
- "justify": "between"
856
+ "gap": "md"
861
857
  },
862
858
  {
863
859
  "type": "divider"
@@ -865,68 +861,72 @@
865
861
  {
866
862
  "type": "map-view",
867
863
  "zoom": 10.0,
868
- "height": "200px",
869
- "markers": []
864
+ "markers": [],
865
+ "height": "200px"
870
866
  },
871
867
  {
872
- "itemActions": [
873
- {
874
- "event": "TRAVEL",
875
- "label": "Travel"
876
- }
877
- ],
878
- "fields": [],
879
868
  "renderItem": [
880
869
  "fn",
881
870
  "item",
882
871
  {
872
+ "type": "stack",
873
+ "direction": "vertical",
874
+ "gap": "sm",
883
875
  "children": [
884
876
  {
885
- "direction": "horizontal",
886
- "justify": "between",
887
- "align": "center",
888
877
  "children": [
889
878
  {
890
- "align": "center",
879
+ "gap": "sm",
891
880
  "children": [
892
881
  {
893
- "type": "icon",
894
- "name": "map-pin"
882
+ "name": "map-pin",
883
+ "type": "icon"
895
884
  },
896
885
  {
897
- "variant": "h4",
898
886
  "content": "@item.name",
899
- "type": "typography"
887
+ "type": "typography",
888
+ "variant": "h4"
900
889
  }
901
890
  ],
902
891
  "direction": "horizontal",
903
892
  "type": "stack",
904
- "gap": "sm"
893
+ "align": "center"
905
894
  },
906
895
  {
907
- "label": "@item.owner",
908
- "type": "badge"
896
+ "type": "badge",
897
+ "label": "@item.owner"
909
898
  }
910
899
  ],
911
- "type": "stack"
900
+ "type": "stack",
901
+ "direction": "horizontal",
902
+ "align": "center",
903
+ "justify": "between"
912
904
  },
913
905
  {
914
906
  "variant": "caption",
915
- "content": "@item.defense",
916
- "type": "typography"
907
+ "type": "typography",
908
+ "content": "@item.defense"
917
909
  }
918
- ],
919
- "type": "stack",
920
- "gap": "sm",
921
- "direction": "vertical"
910
+ ]
911
+ }
912
+ ],
913
+ "itemActions": [
914
+ {
915
+ "label": "Travel",
916
+ "event": "TRAVEL"
922
917
  }
923
918
  ],
919
+ "type": "data-grid",
924
920
  "entity": "@payload.data",
925
- "type": "data-grid"
921
+ "fields": []
926
922
  }
927
- ]
923
+ ],
924
+ "direction": "vertical",
925
+ "gap": "lg",
926
+ "type": "stack"
928
927
  }
929
928
  ],
929
+ "appName": "Strategy Game",
930
930
  "type": "game-shell",
931
931
  "showTopBar": true
932
932
  }
@@ -942,19 +942,18 @@
942
942
  "render-ui",
943
943
  "main",
944
944
  {
945
- "gap": "md",
946
945
  "align": "center",
947
946
  "className": "py-12",
948
947
  "children": [
949
948
  {
950
- "name": "alert-triangle",
951
949
  "type": "icon",
952
- "color": "destructive"
950
+ "color": "destructive",
951
+ "name": "alert-triangle"
953
952
  },
954
953
  {
955
- "variant": "h3",
956
954
  "content": "Failed to load territory",
957
- "type": "typography"
955
+ "type": "typography",
956
+ "variant": "h3"
958
957
  },
959
958
  {
960
959
  "content": "@payload.error",
@@ -963,15 +962,16 @@
963
962
  "type": "typography"
964
963
  },
965
964
  {
966
- "type": "button",
967
- "icon": "rotate-ccw",
968
965
  "action": "INIT",
966
+ "type": "button",
967
+ "variant": "primary",
969
968
  "label": "Retry",
970
- "variant": "primary"
969
+ "icon": "rotate-ccw"
971
970
  }
972
971
  ],
973
- "type": "stack",
974
- "direction": "vertical"
972
+ "direction": "vertical",
973
+ "gap": "md",
974
+ "type": "stack"
975
975
  }
976
976
  ]
977
977
  ]
@@ -987,17 +987,20 @@
987
987
  {
988
988
  "type": "game-shell",
989
989
  "appName": "Strategy Game",
990
- "showTopBar": true,
991
990
  "children": [
992
991
  {
992
+ "gap": "lg",
993
+ "align": "center",
994
+ "type": "stack",
993
995
  "direction": "vertical",
994
996
  "children": [
995
997
  {
996
998
  "type": "stack",
999
+ "direction": "horizontal",
997
1000
  "children": [
998
1001
  {
999
- "type": "icon",
1000
- "name": "loader"
1002
+ "name": "loader",
1003
+ "type": "icon"
1001
1004
  },
1002
1005
  {
1003
1006
  "type": "typography",
@@ -1005,23 +1008,20 @@
1005
1008
  "content": "Traveling..."
1006
1009
  }
1007
1010
  ],
1008
- "direction": "horizontal",
1009
1011
  "gap": "md"
1010
1012
  },
1011
1013
  {
1012
1014
  "type": "divider"
1013
1015
  },
1014
1016
  {
1015
- "type": "typography",
1016
1017
  "content": "Traveling to the destination territorys map.",
1018
+ "type": "typography",
1017
1019
  "variant": "body"
1018
1020
  }
1019
- ],
1020
- "align": "center",
1021
- "type": "stack",
1022
- "gap": "lg"
1021
+ ]
1023
1022
  }
1024
- ]
1023
+ ],
1024
+ "showTopBar": true
1025
1025
  }
1026
1026
  ]
1027
1027
  ]
@@ -1045,22 +1045,22 @@
1045
1045
  "render-ui",
1046
1046
  "main",
1047
1047
  {
1048
- "direction": "vertical",
1048
+ "type": "stack",
1049
1049
  "align": "center",
1050
+ "gap": "md",
1051
+ "className": "py-12",
1052
+ "direction": "vertical",
1050
1053
  "children": [
1051
1054
  {
1052
1055
  "type": "spinner"
1053
1056
  },
1054
1057
  {
1055
- "content": "Loading…",
1058
+ "variant": "caption",
1056
1059
  "type": "typography",
1057
1060
  "color": "muted",
1058
- "variant": "caption"
1061
+ "content": "Loading…"
1059
1062
  }
1060
- ],
1061
- "gap": "md",
1062
- "type": "stack",
1063
- "className": "py-12"
1063
+ ]
1064
1064
  }
1065
1065
  ]
1066
1066
  ]
@@ -1074,39 +1074,41 @@
1074
1074
  "render-ui",
1075
1075
  "main",
1076
1076
  {
1077
+ "appName": "Strategy Game",
1077
1078
  "showTopBar": true,
1078
1079
  "type": "game-shell",
1079
- "appName": "Strategy Game",
1080
1080
  "children": [
1081
1081
  {
1082
+ "type": "stack",
1082
1083
  "gap": "lg",
1084
+ "direction": "vertical",
1083
1085
  "children": [
1084
1086
  {
1085
- "justify": "between",
1086
1087
  "type": "stack",
1087
- "direction": "horizontal",
1088
+ "justify": "between",
1088
1089
  "gap": "md",
1090
+ "direction": "horizontal",
1089
1091
  "children": [
1090
1092
  {
1091
- "gap": "md",
1092
- "type": "stack",
1093
1093
  "direction": "horizontal",
1094
1094
  "children": [
1095
1095
  {
1096
- "type": "icon",
1097
- "name": "map"
1096
+ "name": "map",
1097
+ "type": "icon"
1098
1098
  },
1099
1099
  {
1100
+ "content": "Territorys Map",
1100
1101
  "variant": "h2",
1101
- "type": "typography",
1102
- "content": "Territorys Map"
1102
+ "type": "typography"
1103
1103
  }
1104
- ]
1104
+ ],
1105
+ "type": "stack",
1106
+ "gap": "md"
1105
1107
  },
1106
1108
  {
1107
1109
  "status": "online",
1108
- "label": "Entered",
1109
- "type": "status-dot"
1110
+ "type": "status-dot",
1111
+ "label": "Entered"
1110
1112
  }
1111
1113
  ]
1112
1114
  },
@@ -1119,71 +1121,69 @@
1119
1121
  "fn",
1120
1122
  "item",
1121
1123
  {
1122
- "type": "stack",
1123
1124
  "gap": "sm",
1125
+ "type": "stack",
1124
1126
  "direction": "vertical",
1125
1127
  "children": [
1126
1128
  {
1127
- "align": "center",
1129
+ "type": "stack",
1130
+ "direction": "horizontal",
1128
1131
  "justify": "between",
1132
+ "align": "center",
1129
1133
  "children": [
1130
1134
  {
1131
- "align": "center",
1132
1135
  "gap": "sm",
1136
+ "type": "stack",
1137
+ "direction": "horizontal",
1138
+ "align": "center",
1133
1139
  "children": [
1134
1140
  {
1135
- "type": "icon",
1136
- "name": "map-pin"
1141
+ "name": "map-pin",
1142
+ "type": "icon"
1137
1143
  },
1138
1144
  {
1145
+ "type": "typography",
1139
1146
  "variant": "h4",
1140
- "content": "@item.name",
1141
- "type": "typography"
1147
+ "content": "@item.name"
1142
1148
  }
1143
- ],
1144
- "type": "stack",
1145
- "direction": "horizontal"
1149
+ ]
1146
1150
  },
1147
1151
  {
1148
- "type": "badge",
1149
- "label": "@item.owner"
1152
+ "label": "@item.owner",
1153
+ "type": "badge"
1150
1154
  }
1151
- ],
1152
- "direction": "horizontal",
1153
- "type": "stack"
1155
+ ]
1154
1156
  },
1155
1157
  {
1156
- "content": "@item.defense",
1157
1158
  "type": "typography",
1159
+ "content": "@item.defense",
1158
1160
  "variant": "caption"
1159
1161
  }
1160
1162
  ]
1161
1163
  }
1162
1164
  ],
1163
- "entity": "@payload.data",
1164
- "fields": []
1165
+ "fields": [],
1166
+ "entity": "@payload.data"
1165
1167
  },
1166
1168
  {
1167
1169
  "type": "divider"
1168
1170
  },
1169
1171
  {
1170
1172
  "direction": "horizontal",
1171
- "gap": "sm",
1172
- "justify": "end",
1173
- "type": "stack",
1174
1173
  "children": [
1175
1174
  {
1176
1175
  "type": "button",
1177
- "icon": "arrow-left",
1178
1176
  "label": "Back to Map",
1179
1177
  "variant": "ghost",
1180
- "action": "BACK"
1178
+ "action": "BACK",
1179
+ "icon": "arrow-left"
1181
1180
  }
1182
- ]
1181
+ ],
1182
+ "justify": "end",
1183
+ "gap": "sm",
1184
+ "type": "stack"
1183
1185
  }
1184
- ],
1185
- "direction": "vertical",
1186
- "type": "stack"
1186
+ ]
1187
1187
  }
1188
1188
  ]
1189
1189
  }
@@ -1199,36 +1199,36 @@
1199
1199
  "render-ui",
1200
1200
  "main",
1201
1201
  {
1202
- "align": "center",
1203
- "className": "py-12",
1204
1202
  "children": [
1205
1203
  {
1206
- "name": "alert-triangle",
1207
1204
  "type": "icon",
1205
+ "name": "alert-triangle",
1208
1206
  "color": "destructive"
1209
1207
  },
1210
1208
  {
1211
- "variant": "h3",
1212
1209
  "content": "Failed to load territory",
1213
- "type": "typography"
1210
+ "type": "typography",
1211
+ "variant": "h3"
1214
1212
  },
1215
1213
  {
1214
+ "content": "@payload.error",
1216
1215
  "type": "typography",
1217
1216
  "variant": "body",
1218
- "color": "muted",
1219
- "content": "@payload.error"
1217
+ "color": "muted"
1220
1218
  },
1221
1219
  {
1222
1220
  "icon": "rotate-ccw",
1223
- "label": "Retry",
1224
1221
  "type": "button",
1222
+ "label": "Retry",
1225
1223
  "action": "INIT",
1226
1224
  "variant": "primary"
1227
1225
  }
1228
1226
  ],
1229
1227
  "direction": "vertical",
1230
1228
  "type": "stack",
1231
- "gap": "md"
1229
+ "align": "center",
1230
+ "gap": "md",
1231
+ "className": "py-12"
1232
1232
  }
1233
1233
  ]
1234
1234
  ]
@@ -1243,8 +1243,8 @@
1243
1243
  "Territory",
1244
1244
  {
1245
1245
  "emit": {
1246
- "success": "TerritoryLoaded",
1247
- "failure": "TerritoryLoadFailed"
1246
+ "failure": "TerritoryLoadFailed",
1247
+ "success": "TerritoryLoaded"
1248
1248
  }
1249
1249
  }
1250
1250
  ],
@@ -1252,22 +1252,22 @@
1252
1252
  "render-ui",
1253
1253
  "main",
1254
1254
  {
1255
- "gap": "md",
1256
1255
  "className": "py-12",
1256
+ "type": "stack",
1257
1257
  "children": [
1258
1258
  {
1259
1259
  "type": "spinner"
1260
1260
  },
1261
1261
  {
1262
- "variant": "caption",
1263
1262
  "content": "Loading…",
1264
- "type": "typography",
1265
- "color": "muted"
1263
+ "color": "muted",
1264
+ "variant": "caption",
1265
+ "type": "typography"
1266
1266
  }
1267
1267
  ],
1268
- "align": "center",
1269
1268
  "direction": "vertical",
1270
- "type": "stack"
1269
+ "gap": "md",
1270
+ "align": "center"
1271
1271
  }
1272
1272
  ]
1273
1273
  ]
@@ -1281,25 +1281,20 @@
1281
1281
  "render-ui",
1282
1282
  "main",
1283
1283
  {
1284
- "type": "game-shell",
1285
1284
  "appName": "Strategy Game",
1286
1285
  "children": [
1287
1286
  {
1288
1287
  "gap": "lg",
1289
1288
  "type": "stack",
1290
- "direction": "vertical",
1291
1289
  "children": [
1292
1290
  {
1293
- "justify": "between",
1294
1291
  "direction": "horizontal",
1295
1292
  "children": [
1296
1293
  {
1297
- "direction": "horizontal",
1298
- "gap": "md",
1299
1294
  "children": [
1300
1295
  {
1301
- "name": "map",
1302
- "type": "icon"
1296
+ "type": "icon",
1297
+ "name": "map"
1303
1298
  },
1304
1299
  {
1305
1300
  "content": "Territory Map",
@@ -1307,50 +1302,47 @@
1307
1302
  "type": "typography"
1308
1303
  }
1309
1304
  ],
1305
+ "direction": "horizontal",
1306
+ "gap": "md",
1310
1307
  "type": "stack"
1311
1308
  },
1312
1309
  {
1313
- "status": "online",
1314
1310
  "type": "status-dot",
1315
- "label": "Exploring",
1316
- "pulse": false
1311
+ "status": "online",
1312
+ "pulse": false,
1313
+ "label": "Exploring"
1317
1314
  }
1318
1315
  ],
1319
1316
  "gap": "md",
1320
- "type": "stack"
1317
+ "type": "stack",
1318
+ "justify": "between"
1321
1319
  },
1322
1320
  {
1323
1321
  "type": "divider"
1324
1322
  },
1325
1323
  {
1324
+ "height": "200px",
1326
1325
  "markers": [],
1327
1326
  "type": "map-view",
1328
- "height": "200px",
1329
1327
  "zoom": 10.0
1330
1328
  },
1331
1329
  {
1332
- "itemActions": [
1333
- {
1334
- "event": "TRAVEL",
1335
- "label": "Travel"
1336
- }
1337
- ],
1338
- "entity": "@payload.data",
1339
1330
  "type": "data-grid",
1331
+ "entity": "@payload.data",
1340
1332
  "renderItem": [
1341
1333
  "fn",
1342
1334
  "item",
1343
1335
  {
1344
- "gap": "sm",
1336
+ "type": "stack",
1345
1337
  "direction": "vertical",
1346
1338
  "children": [
1347
1339
  {
1348
1340
  "direction": "horizontal",
1349
1341
  "align": "center",
1342
+ "type": "stack",
1343
+ "justify": "between",
1350
1344
  "children": [
1351
1345
  {
1352
- "align": "center",
1353
- "type": "stack",
1354
1346
  "children": [
1355
1347
  {
1356
1348
  "type": "icon",
@@ -1362,32 +1354,40 @@
1362
1354
  "type": "typography"
1363
1355
  }
1364
1356
  ],
1365
- "gap": "sm",
1366
- "direction": "horizontal"
1357
+ "align": "center",
1358
+ "direction": "horizontal",
1359
+ "type": "stack",
1360
+ "gap": "sm"
1367
1361
  },
1368
1362
  {
1369
1363
  "label": "@item.owner",
1370
1364
  "type": "badge"
1371
1365
  }
1372
- ],
1373
- "type": "stack",
1374
- "justify": "between"
1366
+ ]
1375
1367
  },
1376
1368
  {
1377
1369
  "variant": "caption",
1378
- "type": "typography",
1379
- "content": "@item.defense"
1370
+ "content": "@item.defense",
1371
+ "type": "typography"
1380
1372
  }
1381
1373
  ],
1382
- "type": "stack"
1374
+ "gap": "sm"
1383
1375
  }
1384
1376
  ],
1385
- "fields": []
1377
+ "fields": [],
1378
+ "itemActions": [
1379
+ {
1380
+ "label": "Travel",
1381
+ "event": "TRAVEL"
1382
+ }
1383
+ ]
1386
1384
  }
1387
- ]
1385
+ ],
1386
+ "direction": "vertical"
1388
1387
  }
1389
1388
  ],
1390
- "showTopBar": true
1389
+ "showTopBar": true,
1390
+ "type": "game-shell"
1391
1391
  }
1392
1392
  ]
1393
1393
  ]
@@ -1402,13 +1402,11 @@
1402
1402
  "main",
1403
1403
  {
1404
1404
  "direction": "vertical",
1405
- "type": "stack",
1406
1405
  "align": "center",
1407
- "className": "py-12",
1408
1406
  "children": [
1409
1407
  {
1410
- "name": "alert-triangle",
1411
1408
  "type": "icon",
1409
+ "name": "alert-triangle",
1412
1410
  "color": "destructive"
1413
1411
  },
1414
1412
  {
@@ -1417,19 +1415,21 @@
1417
1415
  "variant": "h3"
1418
1416
  },
1419
1417
  {
1420
- "color": "muted",
1421
- "variant": "body",
1422
1418
  "type": "typography",
1423
- "content": "@payload.error"
1419
+ "content": "@payload.error",
1420
+ "color": "muted",
1421
+ "variant": "body"
1424
1422
  },
1425
1423
  {
1426
- "label": "Retry",
1427
- "type": "button",
1428
- "variant": "primary",
1429
1424
  "icon": "rotate-ccw",
1430
- "action": "INIT"
1425
+ "type": "button",
1426
+ "action": "INIT",
1427
+ "label": "Retry",
1428
+ "variant": "primary"
1431
1429
  }
1432
1430
  ],
1431
+ "className": "py-12",
1432
+ "type": "stack",
1433
1433
  "gap": "md"
1434
1434
  }
1435
1435
  ]
@@ -1580,8 +1580,8 @@
1580
1580
  "Resource",
1581
1581
  {
1582
1582
  "emit": {
1583
- "failure": "ResourceLoadFailed",
1584
- "success": "ResourceLoaded"
1583
+ "success": "ResourceLoaded",
1584
+ "failure": "ResourceLoadFailed"
1585
1585
  }
1586
1586
  }
1587
1587
  ],
@@ -1589,10 +1589,15 @@
1589
1589
  "render-ui",
1590
1590
  "main",
1591
1591
  {
1592
+ "showTopBar": true,
1593
+ "type": "game-shell",
1592
1594
  "children": [
1593
1595
  {
1596
+ "type": "scaled-diagram",
1594
1597
  "children": [
1595
1598
  {
1599
+ "gap": "lg",
1600
+ "type": "stack",
1596
1601
  "children": [
1597
1602
  {
1598
1603
  "type": "breadcrumb",
@@ -1609,14 +1614,14 @@
1609
1614
  {
1610
1615
  "gap": "md",
1611
1616
  "justify": "between",
1612
- "type": "stack",
1613
1617
  "children": [
1614
1618
  {
1615
- "direction": "horizontal",
1619
+ "gap": "md",
1620
+ "type": "stack",
1616
1621
  "children": [
1617
1622
  {
1618
- "type": "icon",
1619
- "name": "database"
1623
+ "name": "database",
1624
+ "type": "icon"
1620
1625
  },
1621
1626
  {
1622
1627
  "type": "typography",
@@ -1624,83 +1629,83 @@
1624
1629
  "variant": "h2"
1625
1630
  }
1626
1631
  ],
1627
- "gap": "md",
1628
- "type": "stack"
1632
+ "direction": "horizontal"
1629
1633
  },
1630
1634
  {
1631
1635
  "label": "Refresh",
1632
- "icon": "refresh-cw",
1633
- "type": "button",
1634
1636
  "action": "REFRESH",
1635
- "variant": "secondary"
1637
+ "type": "button",
1638
+ "variant": "secondary",
1639
+ "icon": "refresh-cw"
1636
1640
  }
1637
1641
  ],
1642
+ "type": "stack",
1638
1643
  "direction": "horizontal"
1639
1644
  },
1640
1645
  {
1641
1646
  "type": "divider"
1642
1647
  },
1643
1648
  {
1649
+ "padding": "md",
1650
+ "type": "box",
1644
1651
  "children": [
1645
1652
  {
1646
- "cols": 3.0,
1647
1653
  "type": "simple-grid",
1654
+ "cols": 3.0,
1648
1655
  "children": [
1649
1656
  {
1650
- "type": "stat-display",
1651
1657
  "label": "Gold",
1652
- "value": "@entity.gold"
1658
+ "value": "@entity.gold",
1659
+ "type": "stat-display"
1653
1660
  },
1654
1661
  {
1655
- "type": "stat-display",
1662
+ "value": "@entity.food",
1656
1663
  "label": "Food",
1657
- "value": "@entity.food"
1664
+ "type": "stat-display"
1658
1665
  },
1659
1666
  {
1660
1667
  "value": "@entity.wood",
1661
- "label": "Wood",
1662
- "type": "stat-display"
1668
+ "type": "stat-display",
1669
+ "label": "Wood"
1663
1670
  },
1664
1671
  {
1665
- "label": "Iron",
1666
1672
  "value": "@entity.iron",
1667
- "type": "stat-display"
1673
+ "type": "stat-display",
1674
+ "label": "Iron"
1668
1675
  }
1669
1676
  ]
1670
1677
  }
1671
- ],
1672
- "padding": "md",
1673
- "type": "box"
1678
+ ]
1674
1679
  },
1675
1680
  {
1676
1681
  "type": "divider"
1677
1682
  },
1678
1683
  {
1679
- "cols": 2.0,
1680
1684
  "children": [
1681
1685
  {
1682
1686
  "type": "card",
1683
1687
  "children": [
1684
1688
  {
1685
- "variant": "caption",
1686
1689
  "type": "typography",
1690
+ "variant": "caption",
1687
1691
  "content": "Chart View"
1688
1692
  }
1689
1693
  ]
1690
1694
  },
1691
1695
  {
1692
- "type": "card",
1693
1696
  "children": [
1694
1697
  {
1695
- "content": "Graph View",
1698
+ "type": "typography",
1696
1699
  "variant": "caption",
1697
- "type": "typography"
1700
+ "content": "Graph View"
1698
1701
  }
1699
- ]
1702
+ ],
1703
+ "type": "card"
1700
1704
  }
1701
1705
  ],
1702
- "type": "grid",
1703
- "gap": "md"
1706
+ "cols": 2.0,
1707
+ "gap": "md",
1708
+ "type": "grid"
1704
1709
  },
1705
1710
  {
1706
1711
  "data": [
@@ -1713,8 +1718,8 @@
1713
1718
  "value": 19.0
1714
1719
  },
1715
1720
  {
1716
- "value": 15.0,
1717
- "date": "Mar"
1721
+ "date": "Mar",
1722
+ "value": 15.0
1718
1723
  },
1719
1724
  {
1720
1725
  "value": 25.0,
@@ -1725,8 +1730,8 @@
1725
1730
  "value": 22.0
1726
1731
  },
1727
1732
  {
1728
- "value": 30.0,
1729
- "date": "Jun"
1733
+ "date": "Jun",
1734
+ "value": 30.0
1730
1735
  }
1731
1736
  ],
1732
1737
  "type": "line-chart"
@@ -1739,52 +1744,47 @@
1739
1744
  "label": "Current"
1740
1745
  },
1741
1746
  {
1742
- "color": "muted",
1743
- "label": "Previous"
1747
+ "label": "Previous",
1748
+ "color": "muted"
1744
1749
  }
1745
1750
  ]
1746
1751
  },
1747
1752
  {
1748
- "width": 400.0,
1749
- "height": 200.0,
1750
- "nodes": [
1751
- {
1752
- "id": "a",
1753
- "label": "Start"
1754
- },
1753
+ "edges": [
1755
1754
  {
1756
- "label": "Process",
1757
- "id": "b"
1755
+ "target": "b",
1756
+ "source": "a"
1758
1757
  },
1759
1758
  {
1760
- "id": "c",
1761
- "label": "End"
1759
+ "source": "b",
1760
+ "target": "c"
1762
1761
  }
1763
1762
  ],
1764
- "edges": [
1763
+ "height": 200.0,
1764
+ "type": "graph-view",
1765
+ "nodes": [
1765
1766
  {
1766
- "target": "b",
1767
- "source": "a"
1767
+ "label": "Start",
1768
+ "id": "a"
1768
1769
  },
1769
1770
  {
1770
- "target": "c",
1771
- "source": "b"
1771
+ "id": "b",
1772
+ "label": "Process"
1773
+ },
1774
+ {
1775
+ "label": "End",
1776
+ "id": "c"
1772
1777
  }
1773
1778
  ],
1774
- "type": "graph-view"
1779
+ "width": 400.0
1775
1780
  }
1776
1781
  ],
1777
- "type": "stack",
1778
- "direction": "vertical",
1779
- "gap": "lg"
1782
+ "direction": "vertical"
1780
1783
  }
1781
- ],
1782
- "type": "scaled-diagram"
1784
+ ]
1783
1785
  }
1784
1786
  ],
1785
- "appName": "Strategy Game",
1786
- "showTopBar": true,
1787
- "type": "game-shell"
1787
+ "appName": "Strategy Game"
1788
1788
  }
1789
1789
  ]
1790
1790
  ]
@@ -1813,13 +1813,12 @@
1813
1813
  {
1814
1814
  "children": [
1815
1815
  {
1816
- "type": "stack",
1817
1816
  "children": [
1818
1817
  {
1819
1818
  "items": [
1820
1819
  {
1821
- "href": "/",
1822
- "label": "Home"
1820
+ "label": "Home",
1821
+ "href": "/"
1823
1822
  },
1824
1823
  {
1825
1824
  "label": "Resources"
@@ -1828,68 +1827,68 @@
1828
1827
  "type": "breadcrumb"
1829
1828
  },
1830
1829
  {
1830
+ "type": "stack",
1831
+ "direction": "horizontal",
1832
+ "justify": "between",
1833
+ "gap": "md",
1831
1834
  "children": [
1832
1835
  {
1833
- "direction": "horizontal",
1834
1836
  "children": [
1835
1837
  {
1836
- "type": "icon",
1837
- "name": "database"
1838
+ "name": "database",
1839
+ "type": "icon"
1838
1840
  },
1839
1841
  {
1842
+ "content": "Resources",
1840
1843
  "variant": "h2",
1841
- "type": "typography",
1842
- "content": "Resources"
1844
+ "type": "typography"
1843
1845
  }
1844
1846
  ],
1845
- "type": "stack",
1846
- "gap": "md"
1847
+ "gap": "md",
1848
+ "direction": "horizontal",
1849
+ "type": "stack"
1847
1850
  },
1848
1851
  {
1849
- "type": "button",
1850
1852
  "variant": "secondary",
1851
- "action": "REFRESH",
1853
+ "label": "Refresh",
1852
1854
  "icon": "refresh-cw",
1853
- "label": "Refresh"
1855
+ "type": "button",
1856
+ "action": "REFRESH"
1854
1857
  }
1855
- ],
1856
- "gap": "md",
1857
- "justify": "between",
1858
- "direction": "horizontal",
1859
- "type": "stack"
1858
+ ]
1860
1859
  },
1861
1860
  {
1862
1861
  "type": "divider"
1863
1862
  },
1864
1863
  {
1865
- "type": "box",
1866
1864
  "padding": "md",
1865
+ "type": "box",
1867
1866
  "children": [
1868
1867
  {
1868
+ "type": "simple-grid",
1869
1869
  "cols": 3.0,
1870
1870
  "children": [
1871
1871
  {
1872
- "value": "@entity.gold",
1873
1872
  "type": "stat-display",
1873
+ "value": "@entity.gold",
1874
1874
  "label": "Gold"
1875
1875
  },
1876
1876
  {
1877
- "label": "Food",
1878
1877
  "type": "stat-display",
1879
- "value": "@entity.food"
1878
+ "value": "@entity.food",
1879
+ "label": "Food"
1880
1880
  },
1881
1881
  {
1882
+ "type": "stat-display",
1882
1883
  "label": "Wood",
1883
- "value": "@entity.wood",
1884
- "type": "stat-display"
1884
+ "value": "@entity.wood"
1885
1885
  },
1886
1886
  {
1887
- "value": "@entity.iron",
1887
+ "label": "Iron",
1888
1888
  "type": "stat-display",
1889
- "label": "Iron"
1889
+ "value": "@entity.iron"
1890
1890
  }
1891
- ],
1892
- "type": "simple-grid"
1891
+ ]
1893
1892
  }
1894
1893
  ]
1895
1894
  },
@@ -1900,28 +1899,28 @@
1900
1899
  "cols": 2.0,
1901
1900
  "children": [
1902
1901
  {
1903
- "type": "card",
1904
1902
  "children": [
1905
1903
  {
1906
1904
  "variant": "caption",
1907
1905
  "content": "Chart View",
1908
1906
  "type": "typography"
1909
1907
  }
1910
- ]
1908
+ ],
1909
+ "type": "card"
1911
1910
  },
1912
1911
  {
1913
1912
  "children": [
1914
1913
  {
1914
+ "type": "typography",
1915
1915
  "content": "Graph View",
1916
- "variant": "caption",
1917
- "type": "typography"
1916
+ "variant": "caption"
1918
1917
  }
1919
1918
  ],
1920
1919
  "type": "card"
1921
1920
  }
1922
1921
  ],
1923
- "gap": "md",
1924
- "type": "grid"
1922
+ "type": "grid",
1923
+ "gap": "md"
1925
1924
  },
1926
1925
  {
1927
1926
  "type": "line-chart",
@@ -1935,8 +1934,8 @@
1935
1934
  "date": "Feb"
1936
1935
  },
1937
1936
  {
1938
- "date": "Mar",
1939
- "value": 15.0
1937
+ "value": 15.0,
1938
+ "date": "Mar"
1940
1939
  },
1941
1940
  {
1942
1941
  "date": "Apr",
@@ -1947,39 +1946,42 @@
1947
1946
  "value": 22.0
1948
1947
  },
1949
1948
  {
1950
- "value": 30.0,
1951
- "date": "Jun"
1949
+ "date": "Jun",
1950
+ "value": 30.0
1952
1951
  }
1953
1952
  ]
1954
1953
  },
1955
1954
  {
1955
+ "type": "chart-legend",
1956
1956
  "items": [
1957
1957
  {
1958
- "label": "Current",
1959
- "color": "primary"
1958
+ "color": "primary",
1959
+ "label": "Current"
1960
1960
  },
1961
1961
  {
1962
1962
  "label": "Previous",
1963
1963
  "color": "muted"
1964
1964
  }
1965
- ],
1966
- "type": "chart-legend"
1965
+ ]
1967
1966
  },
1968
1967
  {
1969
1968
  "nodes": [
1970
1969
  {
1971
- "id": "a",
1972
- "label": "Start"
1970
+ "label": "Start",
1971
+ "id": "a"
1973
1972
  },
1974
1973
  {
1975
- "label": "Process",
1976
- "id": "b"
1974
+ "id": "b",
1975
+ "label": "Process"
1977
1976
  },
1978
1977
  {
1979
1978
  "id": "c",
1980
1979
  "label": "End"
1981
1980
  }
1982
1981
  ],
1982
+ "width": 400.0,
1983
+ "height": 200.0,
1984
+ "type": "graph-view",
1983
1985
  "edges": [
1984
1986
  {
1985
1987
  "source": "a",
@@ -1989,14 +1991,12 @@
1989
1991
  "target": "c",
1990
1992
  "source": "b"
1991
1993
  }
1992
- ],
1993
- "type": "graph-view",
1994
- "width": 400.0,
1995
- "height": 200.0
1994
+ ]
1996
1995
  }
1997
1996
  ],
1998
1997
  "gap": "lg",
1999
- "direction": "vertical"
1998
+ "direction": "vertical",
1999
+ "type": "stack"
2000
2000
  }
2001
2001
  ],
2002
2002
  "type": "scaled-diagram"
@@ -2018,8 +2018,8 @@
2018
2018
  "Resource",
2019
2019
  {
2020
2020
  "emit": {
2021
- "failure": "ResourceLoadFailed",
2022
- "success": "ResourceLoaded"
2021
+ "success": "ResourceLoaded",
2022
+ "failure": "ResourceLoadFailed"
2023
2023
  }
2024
2024
  }
2025
2025
  ],
@@ -2027,15 +2027,11 @@
2027
2027
  "render-ui",
2028
2028
  "main",
2029
2029
  {
2030
- "appName": "Strategy Game",
2031
2030
  "showTopBar": true,
2032
2031
  "children": [
2033
2032
  {
2034
2033
  "children": [
2035
2034
  {
2036
- "gap": "lg",
2037
- "type": "stack",
2038
- "direction": "vertical",
2039
2035
  "children": [
2040
2036
  {
2041
2037
  "items": [
@@ -2051,13 +2047,10 @@
2051
2047
  },
2052
2048
  {
2053
2049
  "justify": "between",
2054
- "gap": "md",
2055
- "direction": "horizontal",
2056
2050
  "type": "stack",
2051
+ "direction": "horizontal",
2057
2052
  "children": [
2058
2053
  {
2059
- "gap": "md",
2060
- "direction": "horizontal",
2061
2054
  "type": "stack",
2062
2055
  "children": [
2063
2056
  {
@@ -2065,33 +2058,38 @@
2065
2058
  "name": "database"
2066
2059
  },
2067
2060
  {
2068
- "variant": "h2",
2069
2061
  "type": "typography",
2062
+ "variant": "h2",
2070
2063
  "content": "Resources"
2071
2064
  }
2072
- ]
2065
+ ],
2066
+ "direction": "horizontal",
2067
+ "gap": "md"
2073
2068
  },
2074
2069
  {
2075
- "icon": "refresh-cw",
2076
- "action": "REFRESH",
2077
2070
  "type": "button",
2071
+ "action": "REFRESH",
2078
2072
  "variant": "secondary",
2073
+ "icon": "refresh-cw",
2079
2074
  "label": "Refresh"
2080
2075
  }
2081
- ]
2076
+ ],
2077
+ "gap": "md"
2082
2078
  },
2083
2079
  {
2084
2080
  "type": "divider"
2085
2081
  },
2086
2082
  {
2083
+ "padding": "md",
2084
+ "type": "box",
2087
2085
  "children": [
2088
2086
  {
2089
- "type": "simple-grid",
2087
+ "cols": 3.0,
2090
2088
  "children": [
2091
2089
  {
2092
- "value": "@entity.gold",
2093
2090
  "type": "stat-display",
2094
- "label": "Gold"
2091
+ "label": "Gold",
2092
+ "value": "@entity.gold"
2095
2093
  },
2096
2094
  {
2097
2095
  "type": "stat-display",
@@ -2099,8 +2097,8 @@
2099
2097
  "label": "Food"
2100
2098
  },
2101
2099
  {
2102
- "value": "@entity.wood",
2103
2100
  "label": "Wood",
2101
+ "value": "@entity.wood",
2104
2102
  "type": "stat-display"
2105
2103
  },
2106
2104
  {
@@ -2109,55 +2107,54 @@
2109
2107
  "value": "@entity.iron"
2110
2108
  }
2111
2109
  ],
2112
- "cols": 3.0
2110
+ "type": "simple-grid"
2113
2111
  }
2114
- ],
2115
- "type": "box",
2116
- "padding": "md"
2112
+ ]
2117
2113
  },
2118
2114
  {
2119
2115
  "type": "divider"
2120
2116
  },
2121
2117
  {
2122
- "gap": "md",
2123
2118
  "cols": 2.0,
2124
2119
  "children": [
2125
2120
  {
2126
2121
  "type": "card",
2127
2122
  "children": [
2128
2123
  {
2129
- "variant": "caption",
2124
+ "type": "typography",
2130
2125
  "content": "Chart View",
2131
- "type": "typography"
2126
+ "variant": "caption"
2132
2127
  }
2133
2128
  ]
2134
2129
  },
2135
2130
  {
2136
- "type": "card",
2137
2131
  "children": [
2138
2132
  {
2139
- "content": "Graph View",
2140
2133
  "type": "typography",
2134
+ "content": "Graph View",
2141
2135
  "variant": "caption"
2142
2136
  }
2143
- ]
2137
+ ],
2138
+ "type": "card"
2144
2139
  }
2145
2140
  ],
2141
+ "gap": "md",
2146
2142
  "type": "grid"
2147
2143
  },
2148
2144
  {
2145
+ "type": "line-chart",
2149
2146
  "data": [
2150
2147
  {
2151
2148
  "date": "Jan",
2152
2149
  "value": 12.0
2153
2150
  },
2154
2151
  {
2155
- "date": "Feb",
2156
- "value": 19.0
2152
+ "value": 19.0,
2153
+ "date": "Feb"
2157
2154
  },
2158
2155
  {
2159
- "value": 15.0,
2160
- "date": "Mar"
2156
+ "date": "Mar",
2157
+ "value": 15.0
2161
2158
  },
2162
2159
  {
2163
2160
  "date": "Apr",
@@ -2168,11 +2165,10 @@
2168
2165
  "date": "May"
2169
2166
  },
2170
2167
  {
2171
- "value": 30.0,
2172
- "date": "Jun"
2168
+ "date": "Jun",
2169
+ "value": 30.0
2173
2170
  }
2174
- ],
2175
- "type": "line-chart"
2171
+ ]
2176
2172
  },
2177
2173
  {
2178
2174
  "items": [
@@ -2188,23 +2184,22 @@
2188
2184
  "type": "chart-legend"
2189
2185
  },
2190
2186
  {
2191
- "width": 400.0,
2192
2187
  "edges": [
2193
2188
  {
2194
- "source": "a",
2195
- "target": "b"
2189
+ "target": "b",
2190
+ "source": "a"
2196
2191
  },
2197
2192
  {
2198
- "target": "c",
2199
- "source": "b"
2193
+ "source": "b",
2194
+ "target": "c"
2200
2195
  }
2201
2196
  ],
2202
- "type": "graph-view",
2203
2197
  "height": 200.0,
2198
+ "type": "graph-view",
2204
2199
  "nodes": [
2205
2200
  {
2206
- "id": "a",
2207
- "label": "Start"
2201
+ "label": "Start",
2202
+ "id": "a"
2208
2203
  },
2209
2204
  {
2210
2205
  "label": "Process",
@@ -2214,14 +2209,19 @@
2214
2209
  "id": "c",
2215
2210
  "label": "End"
2216
2211
  }
2217
- ]
2212
+ ],
2213
+ "width": 400.0
2218
2214
  }
2219
- ]
2215
+ ],
2216
+ "gap": "lg",
2217
+ "type": "stack",
2218
+ "direction": "vertical"
2220
2219
  }
2221
2220
  ],
2222
2221
  "type": "scaled-diagram"
2223
2222
  }
2224
2223
  ],
2224
+ "appName": "Strategy Game",
2225
2225
  "type": "game-shell"
2226
2226
  }
2227
2227
  ]
@@ -2246,22 +2246,21 @@
2246
2246
  "render-ui",
2247
2247
  "main",
2248
2248
  {
2249
- "showTopBar": true,
2250
- "type": "game-shell",
2249
+ "appName": "Strategy Game",
2251
2250
  "children": [
2252
2251
  {
2253
2252
  "type": "scaled-diagram",
2254
2253
  "children": [
2255
2254
  {
2256
- "gap": "lg",
2257
2255
  "direction": "vertical",
2256
+ "type": "stack",
2258
2257
  "children": [
2259
2258
  {
2260
2259
  "type": "breadcrumb",
2261
2260
  "items": [
2262
2261
  {
2263
- "label": "Home",
2264
- "href": "/"
2262
+ "href": "/",
2263
+ "label": "Home"
2265
2264
  },
2266
2265
  {
2267
2266
  "label": "Resources"
@@ -2269,50 +2268,50 @@
2269
2268
  ]
2270
2269
  },
2271
2270
  {
2271
+ "gap": "md",
2272
+ "justify": "between",
2273
+ "type": "stack",
2274
+ "direction": "horizontal",
2272
2275
  "children": [
2273
2276
  {
2277
+ "direction": "horizontal",
2278
+ "type": "stack",
2279
+ "gap": "md",
2274
2280
  "children": [
2275
2281
  {
2276
- "type": "icon",
2277
- "name": "database"
2282
+ "name": "database",
2283
+ "type": "icon"
2278
2284
  },
2279
2285
  {
2280
- "variant": "h2",
2281
2286
  "content": "Resources",
2287
+ "variant": "h2",
2282
2288
  "type": "typography"
2283
2289
  }
2284
- ],
2285
- "direction": "horizontal",
2286
- "type": "stack",
2287
- "gap": "md"
2290
+ ]
2288
2291
  },
2289
2292
  {
2293
+ "icon": "refresh-cw",
2294
+ "action": "REFRESH",
2290
2295
  "type": "button",
2291
2296
  "variant": "secondary",
2292
- "action": "REFRESH",
2293
- "icon": "refresh-cw",
2294
2297
  "label": "Refresh"
2295
2298
  }
2296
- ],
2297
- "justify": "between",
2298
- "direction": "horizontal",
2299
- "gap": "md",
2300
- "type": "stack"
2299
+ ]
2301
2300
  },
2302
2301
  {
2303
2302
  "type": "divider"
2304
2303
  },
2305
2304
  {
2306
2305
  "type": "box",
2306
+ "padding": "md",
2307
2307
  "children": [
2308
2308
  {
2309
- "type": "simple-grid",
2310
2309
  "cols": 3.0,
2311
2310
  "children": [
2312
2311
  {
2313
- "value": "@entity.gold",
2312
+ "type": "stat-display",
2314
2313
  "label": "Gold",
2315
- "type": "stat-display"
2314
+ "value": "@entity.gold"
2316
2315
  },
2317
2316
  {
2318
2317
  "type": "stat-display",
@@ -2326,49 +2325,49 @@
2326
2325
  },
2327
2326
  {
2328
2327
  "type": "stat-display",
2329
- "value": "@entity.iron",
2330
- "label": "Iron"
2328
+ "label": "Iron",
2329
+ "value": "@entity.iron"
2331
2330
  }
2332
- ]
2331
+ ],
2332
+ "type": "simple-grid"
2333
2333
  }
2334
- ],
2335
- "padding": "md"
2334
+ ]
2336
2335
  },
2337
2336
  {
2338
2337
  "type": "divider"
2339
2338
  },
2340
2339
  {
2341
- "cols": 2.0,
2342
- "gap": "md",
2343
- "type": "grid",
2344
2340
  "children": [
2345
2341
  {
2342
+ "type": "card",
2346
2343
  "children": [
2347
2344
  {
2348
- "variant": "caption",
2349
2345
  "content": "Chart View",
2350
- "type": "typography"
2346
+ "type": "typography",
2347
+ "variant": "caption"
2351
2348
  }
2352
- ],
2353
- "type": "card"
2349
+ ]
2354
2350
  },
2355
2351
  {
2356
2352
  "type": "card",
2357
2353
  "children": [
2358
2354
  {
2359
- "type": "typography",
2360
2355
  "variant": "caption",
2356
+ "type": "typography",
2361
2357
  "content": "Graph View"
2362
2358
  }
2363
2359
  ]
2364
2360
  }
2365
- ]
2361
+ ],
2362
+ "type": "grid",
2363
+ "gap": "md",
2364
+ "cols": 2.0
2366
2365
  },
2367
2366
  {
2368
2367
  "data": [
2369
2368
  {
2370
- "value": 12.0,
2371
- "date": "Jan"
2369
+ "date": "Jan",
2370
+ "value": 12.0
2372
2371
  },
2373
2372
  {
2374
2373
  "date": "Feb",
@@ -2379,8 +2378,8 @@
2379
2378
  "value": 15.0
2380
2379
  },
2381
2380
  {
2382
- "value": 25.0,
2383
- "date": "Apr"
2381
+ "date": "Apr",
2382
+ "value": 25.0
2384
2383
  },
2385
2384
  {
2386
2385
  "date": "May",
@@ -2394,54 +2393,55 @@
2394
2393
  "type": "line-chart"
2395
2394
  },
2396
2395
  {
2396
+ "type": "chart-legend",
2397
2397
  "items": [
2398
2398
  {
2399
2399
  "label": "Current",
2400
2400
  "color": "primary"
2401
2401
  },
2402
2402
  {
2403
- "label": "Previous",
2404
- "color": "muted"
2403
+ "color": "muted",
2404
+ "label": "Previous"
2405
2405
  }
2406
- ],
2407
- "type": "chart-legend"
2406
+ ]
2408
2407
  },
2409
2408
  {
2410
- "height": 200.0,
2409
+ "type": "graph-view",
2410
+ "edges": [
2411
+ {
2412
+ "target": "b",
2413
+ "source": "a"
2414
+ },
2415
+ {
2416
+ "source": "b",
2417
+ "target": "c"
2418
+ }
2419
+ ],
2411
2420
  "nodes": [
2412
2421
  {
2413
2422
  "label": "Start",
2414
2423
  "id": "a"
2415
2424
  },
2416
2425
  {
2417
- "label": "Process",
2418
- "id": "b"
2426
+ "id": "b",
2427
+ "label": "Process"
2419
2428
  },
2420
2429
  {
2421
2430
  "label": "End",
2422
2431
  "id": "c"
2423
2432
  }
2424
2433
  ],
2425
- "edges": [
2426
- {
2427
- "source": "a",
2428
- "target": "b"
2429
- },
2430
- {
2431
- "target": "c",
2432
- "source": "b"
2433
- }
2434
- ],
2435
- "width": 400.0,
2436
- "type": "graph-view"
2434
+ "height": 200.0,
2435
+ "width": 400.0
2437
2436
  }
2438
2437
  ],
2439
- "type": "stack"
2438
+ "gap": "lg"
2440
2439
  }
2441
2440
  ]
2442
2441
  }
2443
2442
  ],
2444
- "appName": "Strategy Game"
2443
+ "showTopBar": true,
2444
+ "type": "game-shell"
2445
2445
  }
2446
2446
  ]
2447
2447
  ]
@@ -2456,8 +2456,8 @@
2456
2456
  "Resource",
2457
2457
  {
2458
2458
  "emit": {
2459
- "success": "ResourceLoaded",
2460
- "failure": "ResourceLoadFailed"
2459
+ "failure": "ResourceLoadFailed",
2460
+ "success": "ResourceLoaded"
2461
2461
  }
2462
2462
  }
2463
2463
  ],
@@ -2465,37 +2465,34 @@
2465
2465
  "render-ui",
2466
2466
  "main",
2467
2467
  {
2468
- "type": "game-shell",
2469
2468
  "appName": "Strategy Game",
2470
2469
  "showTopBar": true,
2471
2470
  "children": [
2472
2471
  {
2473
2472
  "children": [
2474
2473
  {
2475
- "gap": "lg",
2476
2474
  "direction": "vertical",
2477
- "type": "stack",
2478
2475
  "children": [
2479
2476
  {
2477
+ "type": "breadcrumb",
2480
2478
  "items": [
2481
2479
  {
2482
- "label": "Home",
2483
- "href": "/"
2480
+ "href": "/",
2481
+ "label": "Home"
2484
2482
  },
2485
2483
  {
2486
2484
  "label": "Resources"
2487
2485
  }
2488
- ],
2489
- "type": "breadcrumb"
2486
+ ]
2490
2487
  },
2491
2488
  {
2492
- "direction": "horizontal",
2493
- "gap": "md",
2494
2489
  "justify": "between",
2495
- "type": "stack",
2490
+ "gap": "md",
2491
+ "direction": "horizontal",
2496
2492
  "children": [
2497
2493
  {
2498
- "direction": "horizontal",
2494
+ "gap": "md",
2495
+ "type": "stack",
2499
2496
  "children": [
2500
2497
  {
2501
2498
  "type": "icon",
@@ -2503,21 +2500,21 @@
2503
2500
  },
2504
2501
  {
2505
2502
  "type": "typography",
2506
- "variant": "h2",
2507
- "content": "Resources"
2503
+ "content": "Resources",
2504
+ "variant": "h2"
2508
2505
  }
2509
2506
  ],
2510
- "type": "stack",
2511
- "gap": "md"
2507
+ "direction": "horizontal"
2512
2508
  },
2513
2509
  {
2514
- "icon": "refresh-cw",
2515
- "variant": "secondary",
2516
2510
  "label": "Refresh",
2511
+ "variant": "secondary",
2512
+ "icon": "refresh-cw",
2517
2513
  "type": "button",
2518
2514
  "action": "REFRESH"
2519
2515
  }
2520
- ]
2516
+ ],
2517
+ "type": "stack"
2521
2518
  },
2522
2519
  {
2523
2520
  "type": "divider"
@@ -2526,33 +2523,33 @@
2526
2523
  "children": [
2527
2524
  {
2528
2525
  "cols": 3.0,
2529
- "type": "simple-grid",
2530
2526
  "children": [
2531
2527
  {
2528
+ "value": "@entity.gold",
2532
2529
  "label": "Gold",
2533
- "type": "stat-display",
2534
- "value": "@entity.gold"
2530
+ "type": "stat-display"
2535
2531
  },
2536
2532
  {
2537
- "type": "stat-display",
2538
2533
  "label": "Food",
2534
+ "type": "stat-display",
2539
2535
  "value": "@entity.food"
2540
2536
  },
2541
2537
  {
2542
- "label": "Wood",
2538
+ "type": "stat-display",
2543
2539
  "value": "@entity.wood",
2544
- "type": "stat-display"
2540
+ "label": "Wood"
2545
2541
  },
2546
2542
  {
2547
2543
  "value": "@entity.iron",
2548
- "type": "stat-display",
2549
- "label": "Iron"
2544
+ "label": "Iron",
2545
+ "type": "stat-display"
2550
2546
  }
2551
- ]
2547
+ ],
2548
+ "type": "simple-grid"
2552
2549
  }
2553
2550
  ],
2554
- "type": "box",
2555
- "padding": "md"
2551
+ "padding": "md",
2552
+ "type": "box"
2556
2553
  },
2557
2554
  {
2558
2555
  "type": "divider"
@@ -2563,24 +2560,24 @@
2563
2560
  "cols": 2.0,
2564
2561
  "children": [
2565
2562
  {
2563
+ "type": "card",
2566
2564
  "children": [
2567
2565
  {
2568
- "content": "Chart View",
2569
2566
  "type": "typography",
2567
+ "content": "Chart View",
2570
2568
  "variant": "caption"
2571
2569
  }
2572
- ],
2573
- "type": "card"
2570
+ ]
2574
2571
  },
2575
2572
  {
2576
- "type": "card",
2577
2573
  "children": [
2578
2574
  {
2579
2575
  "content": "Graph View",
2580
- "variant": "caption",
2581
- "type": "typography"
2576
+ "type": "typography",
2577
+ "variant": "caption"
2582
2578
  }
2583
- ]
2579
+ ],
2580
+ "type": "card"
2584
2581
  }
2585
2582
  ]
2586
2583
  },
@@ -2588,57 +2585,48 @@
2588
2585
  "type": "line-chart",
2589
2586
  "data": [
2590
2587
  {
2591
- "date": "Jan",
2592
- "value": 12.0
2588
+ "value": 12.0,
2589
+ "date": "Jan"
2593
2590
  },
2594
2591
  {
2595
- "date": "Feb",
2596
- "value": 19.0
2592
+ "value": 19.0,
2593
+ "date": "Feb"
2597
2594
  },
2598
2595
  {
2599
- "date": "Mar",
2600
- "value": 15.0
2596
+ "value": 15.0,
2597
+ "date": "Mar"
2601
2598
  },
2602
2599
  {
2603
- "date": "Apr",
2604
- "value": 25.0
2600
+ "value": 25.0,
2601
+ "date": "Apr"
2605
2602
  },
2606
2603
  {
2607
2604
  "date": "May",
2608
2605
  "value": 22.0
2609
2606
  },
2610
2607
  {
2611
- "date": "Jun",
2612
- "value": 30.0
2608
+ "value": 30.0,
2609
+ "date": "Jun"
2613
2610
  }
2614
2611
  ]
2615
2612
  },
2616
2613
  {
2614
+ "type": "chart-legend",
2617
2615
  "items": [
2618
2616
  {
2619
2617
  "color": "primary",
2620
2618
  "label": "Current"
2621
2619
  },
2622
2620
  {
2623
- "color": "muted",
2624
- "label": "Previous"
2621
+ "label": "Previous",
2622
+ "color": "muted"
2625
2623
  }
2626
- ],
2627
- "type": "chart-legend"
2624
+ ]
2628
2625
  },
2629
2626
  {
2630
2627
  "type": "graph-view",
2628
+ "height": 200.0,
2631
2629
  "width": 400.0,
2632
- "edges": [
2633
- {
2634
- "target": "b",
2635
- "source": "a"
2636
- },
2637
- {
2638
- "source": "b",
2639
- "target": "c"
2640
- }
2641
- ],
2642
2630
  "nodes": [
2643
2631
  {
2644
2632
  "id": "a",
@@ -2649,18 +2637,30 @@
2649
2637
  "id": "b"
2650
2638
  },
2651
2639
  {
2652
- "label": "End",
2653
- "id": "c"
2640
+ "id": "c",
2641
+ "label": "End"
2654
2642
  }
2655
2643
  ],
2656
- "height": 200.0
2644
+ "edges": [
2645
+ {
2646
+ "source": "a",
2647
+ "target": "b"
2648
+ },
2649
+ {
2650
+ "target": "c",
2651
+ "source": "b"
2652
+ }
2653
+ ]
2657
2654
  }
2658
- ]
2655
+ ],
2656
+ "type": "stack",
2657
+ "gap": "lg"
2659
2658
  }
2660
2659
  ],
2661
2660
  "type": "scaled-diagram"
2662
2661
  }
2663
- ]
2662
+ ],
2663
+ "type": "game-shell"
2664
2664
  }
2665
2665
  ]
2666
2666
  ]
@@ -2683,4 +2683,4 @@
2683
2683
  ]
2684
2684
  }
2685
2685
  ]
2686
- }
2686
+ }