@uibot/registry 0.20.0 → 0.22.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/dist/index.d.ts +5 -0
- package/dist/index.js +2117 -12
- package/dist/materialize-templates.d.ts +28 -0
- package/dist/materialize.d.ts +63 -0
- package/dist/resources.d.ts +4 -0
- package/dist/resources.js +2108 -3
- package/dist/shadcn/r/admin-apps.json +1 -1
- package/dist/shadcn/r/admin-chats.json +1 -1
- package/dist/shadcn/r/admin-settings-account.json +1 -1
- package/dist/shadcn/r/admin-settings-appearance.json +1 -1
- package/dist/shadcn/r/admin-settings-display.json +1 -1
- package/dist/shadcn/r/admin-settings-notifications.json +1 -1
- package/dist/shadcn/r/admin-settings-profile.json +1 -1
- package/dist/shadcn/r/admin-settings.json +1 -1
- package/dist/shadcn/r/admin-shell.json +1 -1
- package/dist/shadcn/r/admin-tasks.json +1 -1
- package/dist/shadcn/r/admin-users.json +1 -1
- package/dist/shadcn/r/agent-run-console.json +64 -0
- package/dist/shadcn/r/auth-minimal.json +59 -0
- package/dist/shadcn/r/billing-overview.json +66 -0
- package/dist/shadcn/r/billing-usage-ledger.json +66 -0
- package/dist/shadcn/r/chat-workspace.json +1 -1
- package/dist/shadcn/r/collection-cell-editor.json +1 -1
- package/dist/shadcn/r/collection-kanban.json +134 -0
- package/dist/shadcn/r/collection-panel-drawer.json +1 -1
- package/dist/shadcn/r/collection-record-menu.json +1 -1
- package/dist/shadcn/r/collection-shared.json +1 -1
- package/dist/shadcn/r/commerce-workspace.json +1 -1
- package/dist/shadcn/r/console-billing.json +1 -1
- package/dist/shadcn/r/console-page.json +13 -13
- package/dist/shadcn/r/console-shell.json +2 -2
- package/dist/shadcn/r/creation-html-generation.json +2 -2
- package/dist/shadcn/r/creation-reference-generation.json +2 -2
- package/dist/shadcn/r/creation-revision-export.json +2 -2
- package/dist/shadcn/r/creation-shared.json +2 -2
- package/dist/shadcn/r/creation-variant-compare.json +3 -3
- package/dist/shadcn/r/creation-workspace.json +3 -3
- package/dist/shadcn/r/crm-workspace.json +1 -1
- package/dist/shadcn/r/dashboard-01.json +1 -1
- package/dist/shadcn/r/data-crud-gallery.json +66 -0
- package/dist/shadcn/r/data-crud-kanban.json +66 -0
- package/dist/shadcn/r/data-crud-master-detail.json +66 -0
- package/dist/shadcn/r/data-crud-table.json +66 -0
- package/dist/shadcn/r/document-workspace.json +1 -1
- package/dist/shadcn/r/education-workspace.json +1 -1
- package/dist/shadcn/r/launch-site.json +72 -0
- package/dist/shadcn/r/layout.json +34 -18
- package/dist/shadcn/r/onboarding-checklist.json +63 -0
- package/dist/shadcn/r/onboarding-wizard.json +66 -0
- package/dist/shadcn/r/prompt-eval-workbench.json +65 -0
- package/dist/shadcn/r/record-master-detail.json +132 -0
- package/dist/shadcn/r/shadcn-admin.json +1 -1
- package/dist/shadcn/r/workspace.json +1 -1
- package/dist/shadcn/registry.json +194 -20
- package/dist/solution-regions.d.ts +12 -2
- package/dist/spec-blueprint.d.ts +11 -0
- package/dist/spec-patch.d.ts +10 -0
- package/dist/variant-swap.d.ts +22 -0
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"path": "lib/uibot/templates/admin-apps.uibot.yaml",
|
|
16
16
|
"target": "lib/uibot/templates/admin-apps.uibot.yaml",
|
|
17
|
-
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: apps\n path: /apps\n title: Apps\n state:\n direction: ltr\n font: Inter\n submitted: false\n theme: light\n currentPath: /apps\n integrationSettings: []\n editorOpen: false\n draft: {}\n saving: false\n uiError: null\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: App Integrations\n - type: Paragraph\n props:\n text: Here’s a list of your apps for the integration!\n muted: true\n size: sm\n - type: IntegrationGrid\n props:\n items:\n - id: telegram\n brand: telegram\n name: Telegram\n description: Connect with Telegram for real-time communication.\n icon: boxes\n available: false\n connected: false\n - id: notion\n brand: notion\n name: Notion\n description: Sync Notion pages for collaboration.\n icon: boxes\n available: false\n connected: false\n - id: figma\n brand: figma\n name: Figma\n description: View and collaborate on Figma designs in one place.\n icon: boxes\n available: false\n connected: false\n - id: trello\n brand: trello\n name: Trello\n description: Sync Trello cards for project management.\n icon: boxes\n available: false\n connected: false\n - id: slack\n brand: slack\n name: Slack\n description: Integrate Slack for team communication.\n icon: boxes\n available: false\n connected: false\n - id: zoom\n brand: zoom\n name: Zoom\n description: Host Zoom meetings from your dashboard.\n icon: boxes\n available: false\n connected: false\n - id: stripe\n brand: stripe\n name: Stripe\n description: Manage Stripe transactions and payments.\n icon: boxes\n available: false\n connected: false\n - id: gmail\n brand: gmail\n name: Gmail\n description: Access and manage Gmail messages.\n icon: boxes\n available: false\n connected: false\n - id: medium\n brand: medium\n name: Medium\n description: Explore and share Medium stories.\n icon: boxes\n available: false\n connected: false\n - id: skype\n brand: skype\n name: Skype\n description: Connect with Skype contacts.\n icon: boxes\n available: false\n connected: false\n - id: docker\n brand: docker\n name: Docker\n description: Manage Docker containers.\n icon: boxes\n available: false\n connected: false\n - id: github\n brand: github\n name: GitHub\n description: Connect your repositories and issues.\n icon: boxes\n available: false\n connected: false\n - id: gitlab\n brand: gitlab\n name: GitLab\n description: Coordinate projects with GitLab.\n icon: boxes\n available: false\n connected: false\n - id: discord\n brand: discord\n name: Discord\n description: Connect with your Discord community.\n icon: boxes\n available: false\n connected: false\n - id: whatsapp\n brand: whatsapp\n name: WhatsApp\n description: Keep in touch with your contacts.\n icon: boxes\n available: false\n connected: false\n configurable: true\n configurations:\n _state: integrationSettings\n pending:\n _state: saving\n error:\n _state: uiError.message\n events:\n onConfigure:\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Drawer\n props:\n title: Integration preferences\n description: Save workspace configuration. External provider authorization\n remains unavailable.\n open:\n _state: editorOpen\n pending:\n _state: saving\n events:\n onClose:\n - action: SetState\n params:\n path: editorOpen\n value: false\n children:\n - type: Form\n props:\n label: Integration preferences\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: enabled\n label: Enable in workspace\n kind: switch\n value:\n _bindState: draft.enabled\n - type: Field\n props:\n name: label\n label: Display label\n kind: text\n value:\n _bindState: draft.label\n - type: Field\n props:\n name: channel\n label: Channel\n kind: text\n value:\n _bindState: draft.channel\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save preferences\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: SetState\n params:\n path: submitted\n value:\n _event: values\n - action: Request\n params:\n connectionId: integrations-db\n request:\n id: save-integration\n connectionId: integrations-db\n payload:\n operation:\n _if:\n - _state: draft.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: draft.id\n expectedVersion:\n _state: draft.version\n idempotencyKey:\n _event: value\n data:\n provider:\n _state: draft.provider\n enabled:\n _state: submitted.enabled\n config:\n label:\n _state: submitted.label\n channel:\n _state: submitted.channel\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: integrations-db\n request:\n id: load-integrations\n connectionId: integrations-db\n payload:\n operation: FindAll\n responsePath: integrationSettings\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: editorOpen\n value: false\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Apps\n href: /apps\n appearance: admin\n routes:\n - label: Apps\n href: /apps\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: integrations-db\n request:\n id: load-integrations\n connectionId: integrations-db\n payload:\n operation: FindAll\n responsePath: integrationSettings\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: integrations-db\n type: NowAPI.Collection\n",
|
|
17
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: apps\n path: /apps\n title: Apps\n state:\n direction: ltr\n font: Inter\n submitted: false\n theme: light\n currentPath: /apps\n integrationSettings: []\n editorOpen: false\n draft: {}\n saving: false\n loading: false\n uiError: null\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: App Integrations\n - type: Paragraph\n props:\n text: Here’s a list of your apps for the integration!\n muted: true\n size: sm\n - type: IntegrationGrid\n props:\n items:\n - id: telegram\n brand: telegram\n name: Telegram\n description: Connect with Telegram for real-time communication.\n icon: boxes\n available: false\n connected: false\n - id: notion\n brand: notion\n name: Notion\n description: Sync Notion pages for collaboration.\n icon: boxes\n available: false\n connected: false\n - id: figma\n brand: figma\n name: Figma\n description: View and collaborate on Figma designs in one place.\n icon: boxes\n available: false\n connected: false\n - id: trello\n brand: trello\n name: Trello\n description: Sync Trello cards for project management.\n icon: boxes\n available: false\n connected: false\n - id: slack\n brand: slack\n name: Slack\n description: Integrate Slack for team communication.\n icon: boxes\n available: false\n connected: false\n - id: zoom\n brand: zoom\n name: Zoom\n description: Host Zoom meetings from your dashboard.\n icon: boxes\n available: false\n connected: false\n - id: stripe\n brand: stripe\n name: Stripe\n description: Manage Stripe transactions and payments.\n icon: boxes\n available: false\n connected: false\n - id: gmail\n brand: gmail\n name: Gmail\n description: Access and manage Gmail messages.\n icon: boxes\n available: false\n connected: false\n - id: medium\n brand: medium\n name: Medium\n description: Explore and share Medium stories.\n icon: boxes\n available: false\n connected: false\n - id: skype\n brand: skype\n name: Skype\n description: Connect with Skype contacts.\n icon: boxes\n available: false\n connected: false\n - id: docker\n brand: docker\n name: Docker\n description: Manage Docker containers.\n icon: boxes\n available: false\n connected: false\n - id: github\n brand: github\n name: GitHub\n description: Connect your repositories and issues.\n icon: boxes\n available: false\n connected: false\n - id: gitlab\n brand: gitlab\n name: GitLab\n description: Coordinate projects with GitLab.\n icon: boxes\n available: false\n connected: false\n - id: discord\n brand: discord\n name: Discord\n description: Connect with your Discord community.\n icon: boxes\n available: false\n connected: false\n - id: whatsapp\n brand: whatsapp\n name: WhatsApp\n description: Keep in touch with your contacts.\n icon: boxes\n available: false\n connected: false\n configurable: true\n configurations:\n _state: integrationSettings\n pending:\n _state: saving\n error:\n _state: uiError.message\n events:\n onConfigure:\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Drawer\n props:\n title: Integration preferences\n description: Save workspace configuration. External provider authorization\n remains unavailable.\n open:\n _state: editorOpen\n pending:\n _state: saving\n events:\n onClose:\n - action: SetState\n params:\n path: editorOpen\n value: false\n children:\n - type: Form\n props:\n label: Integration preferences\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: enabled\n label: Enable in workspace\n kind: switch\n value:\n _bindState: draft.enabled\n - type: Field\n props:\n name: label\n label: Display label\n kind: text\n value:\n _bindState: draft.label\n - type: Field\n props:\n name: channel\n label: Channel\n kind: text\n value:\n _bindState: draft.channel\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save preferences\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: SetState\n params:\n path: submitted\n value:\n _event: values\n - action: Request\n params:\n connectionId: integrations-db\n request:\n id: save-integration\n connectionId: integrations-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: draft.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n provider:\n _state: draft.provider\n enabled:\n _state: submitted.enabled\n config:\n label:\n _state: submitted.label\n channel:\n _state: submitted.channel\n - operation: UpdateOne\n data:\n provider:\n _state: draft.provider\n enabled:\n _state: submitted.enabled\n config:\n label:\n _state: submitted.label\n channel:\n _state: submitted.channel\n filter:\n id:\n _state: draft.id\n version:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: integrations-db\n request:\n id: load-integrations\n connectionId: integrations-db\n payload:\n operation: Find\n responsePath: integrationSettings\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: editorOpen\n value: false\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Apps\n href: /apps\n appearance: admin\n routes:\n - label: Apps\n href: /apps\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: integrations-db\n request:\n id: load-integrations\n connectionId: integrations-db\n payload:\n operation: Find\n responsePath: integrationSettings\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: integrations-db\n type: Collection\n entity: integrations\n mock:\n seed: []\ndata:\n entities:\n tasks:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n title:\n type: string\n label:\n type: string\n status:\n type: string\n priority:\n type: string\n users:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n phoneNumber:\n type: string\n status:\n type: string\n role:\n type: string\n preferences:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n section:\n type: string\n values:\n type: json\n integrations:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n provider:\n type: string\n enabled:\n type: boolean\n config:\n type: json\n conversations:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n name:\n type: string\n initials:\n type: string\n preview:\n type: string\n createdAt:\n type: datetime\n readOnly: true\n messages:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n conversationId:\n type: string\n text:\n type: string\n time:\n type: string\n own:\n type: boolean\n createdAt:\n type: datetime\n senderId:\n type: string\n readOnly: true\n",
|
|
18
18
|
"type": "registry:lib"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{
|
|
13
13
|
"path": "lib/uibot/templates/admin-chats.uibot.yaml",
|
|
14
14
|
"target": "lib/uibot/templates/admin-chats.uibot.yaml",
|
|
15
|
-
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: chats\n path: /chats\n title: Chats\n state:\n currentUserId: user-demo\n direction: ltr\n font: Inter\n messageSubmission: null\n theme: light\n currentPath: /chats\n conversations:\n - id: conversation-0\n name: Alex Johnson\n initials: AJ\n preview: Hey, how’s it going?\n - id: conversation-1\n name: Sarah Wilson\n initials: SW\n preview: Did you see the new design?\n - id: conversation-2\n name: Michael Brown\n initials: MB\n preview: Thanks for your help!\n - id: conversation-3\n name: Emily Davis\n initials: ED\n preview: Let’s catch up tomorrow.\n - id: conversation-4\n name: David Miller\n initials: DM\n preview: The update looks great.\n - id: conversation-5\n name: Jessica Garcia\n initials: JG\n preview: Can you review my pull request?\n messages:\n - id: m1\n conversationId: conversation-0\n text: Hey, how’s it going?\n time: 10:30 AM\n own: false\n - id: m2\n conversationId: conversation-0\n text: Pretty good! Working on the dashboard.\n time: 10:31 AM\n own: true\n draft: \"\"\n selectedId: \"\"\n sending: false\n uiError: null\n blocks:\n - type: PageLayout\n children:\n - type: ChatPanel\n props:\n conversations:\n _state: conversations\n messages:\n _state: messages\n selectedId:\n _state: selectedId\n draft:\n _state: draft\n pending:\n _state: sending\n error:\n _state: uiError.message\n canSend: true\n currentUserId:\n _state: currentUserId\n events:\n onSelect:\n - action: SetState\n params:\n path: selectedId\n value:\n _event: value\n onDraftChange:\n - action: SetState\n params:\n path: draft\n value:\n _event: value\n onSend:\n - action: SetState\n params:\n path: messageSubmission\n value:\n _event: values\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: send-message\n connectionId: messages-db\n payload:\n operation: InsertOne\n data:\n conversationId:\n _state: messageSubmission.conversationId\n text:\n _state: messageSubmission.text\n
|
|
15
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: chats\n path: /chats\n title: Chats\n state:\n currentUserId: user-demo\n direction: ltr\n font: Inter\n messageSubmission: null\n theme: light\n currentPath: /chats\n conversations:\n - id: conversation-0\n name: Alex Johnson\n initials: AJ\n preview: Hey, how’s it going?\n - id: conversation-1\n name: Sarah Wilson\n initials: SW\n preview: Did you see the new design?\n - id: conversation-2\n name: Michael Brown\n initials: MB\n preview: Thanks for your help!\n - id: conversation-3\n name: Emily Davis\n initials: ED\n preview: Let’s catch up tomorrow.\n - id: conversation-4\n name: David Miller\n initials: DM\n preview: The update looks great.\n - id: conversation-5\n name: Jessica Garcia\n initials: JG\n preview: Can you review my pull request?\n messages:\n - id: m1\n conversationId: conversation-0\n text: Hey, how’s it going?\n time: 10:30 AM\n own: false\n - id: m2\n conversationId: conversation-0\n text: Pretty good! Working on the dashboard.\n time: 10:31 AM\n own: true\n draft: \"\"\n selectedId: \"\"\n sending: false\n uiError: null\n blocks:\n - type: PageLayout\n children:\n - type: ChatPanel\n props:\n conversations:\n _state: conversations\n messages:\n _state: messages\n selectedId:\n _state: selectedId\n draft:\n _state: draft\n pending:\n _state: sending\n error:\n _state: uiError.message\n canSend: true\n currentUserId:\n _state: currentUserId\n events:\n onSelect:\n - action: SetState\n params:\n path: selectedId\n value:\n _event: value\n onDraftChange:\n - action: SetState\n params:\n path: draft\n value:\n _event: value\n onSend:\n - action: SetState\n params:\n path: messageSubmission\n value:\n _event: values\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: send-message\n connectionId: messages-db\n payload:\n operation: InsertOne\n data:\n conversationId:\n _state: messageSubmission.conversationId\n text:\n _state: messageSubmission.text\n createdAt:\n _state: messageSubmission.createdAt\n loadingPath: sending\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: load-messages\n connectionId: messages-db\n payload:\n operation: Find\n responsePath: messages\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: draft\n value: \"\"\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Workspace messages are stored here. External delivery is not configured.\n muted: true\n size: sm\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Chats\n href: /chats\n appearance: admin\n routes:\n - label: Chats\n href: /chats\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: conversations-db\n request:\n id: load-conversations\n connectionId: conversations-db\n payload:\n operation: Find\n responsePath: conversations\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: load-messages\n connectionId: messages-db\n payload:\n operation: Find\n responsePath: messages\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: conversations-db\n type: Collection\n entity: conversations\n mock:\n seed:\n - id: conversation-0\n name: Alex Johnson\n initials: AJ\n preview: Hey, how’s it going?\n - id: conversation-1\n name: Sarah Wilson\n initials: SW\n preview: Did you see the new design?\n - id: conversation-2\n name: Michael Brown\n initials: MB\n preview: Thanks for your help!\n - id: conversation-3\n name: Emily Davis\n initials: ED\n preview: Let’s catch up tomorrow.\n - id: conversation-4\n name: David Miller\n initials: DM\n preview: The update looks great.\n - id: conversation-5\n name: Jessica Garcia\n initials: JG\n preview: Can you review my pull request?\n - id: messages-db\n type: Collection\n entity: messages\n mock:\n seed:\n - id: m1\n conversationId: conversation-0\n text: Hey, how’s it going?\n time: 10:30 AM\n own: false\n - id: m2\n conversationId: conversation-0\n text: Pretty good! Working on the dashboard.\n time: 10:31 AM\n own: true\ndata:\n entities:\n tasks:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n title:\n type: string\n label:\n type: string\n status:\n type: string\n priority:\n type: string\n users:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n phoneNumber:\n type: string\n status:\n type: string\n role:\n type: string\n preferences:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n section:\n type: string\n values:\n type: json\n integrations:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n provider:\n type: string\n enabled:\n type: boolean\n config:\n type: json\n conversations:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n name:\n type: string\n initials:\n type: string\n preview:\n type: string\n createdAt:\n type: datetime\n readOnly: true\n messages:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n conversationId:\n type: string\n text:\n type: string\n time:\n type: string\n own:\n type: boolean\n createdAt:\n type: datetime\n senderId:\n type: string\n readOnly: true\n",
|
|
16
16
|
"type": "registry:lib"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"path": "lib/uibot/templates/admin-settings-account.uibot.yaml",
|
|
16
16
|
"target": "lib/uibot/templates/admin-settings-account.uibot.yaml",
|
|
17
|
-
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-account\n path: /settings/account\n title: Settings · Account\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/account\n saving: false\n uiError: null\n saved: false\n form:\n name: shadcn\n birthday: \"\"\n language: English\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Account\n - type: Paragraph\n props:\n text: Update your account settings. Set your preferred language and timezone.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Account settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: name\n label: Name\n description: This is the name that will be displayed on your profile.\n required: true\n value:\n _bindState: form.name\n - type: Field\n props:\n name: birthday\n label: Date of birth\n kind: date\n description: Your date of birth is used to calculate your age.\n value:\n _bindState: form.birthday\n - type: Field\n props:\n name: language\n label: Language\n kind: combobox\n options:\n - value: English\n label: English\n - value: Chinese\n label: Chinese\n - value: French\n label: French\n - value: German\n label: German\n - value: Japanese\n label: Japanese\n value:\n _bindState: form.language\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update account\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: account\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: account\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Account\n href: /settings/account\n appearance: admin\n routes:\n - label: Settings · Account\n href: /settings/account\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: account\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: NowAPI.Collection\n",
|
|
17
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-account\n path: /settings/account\n title: Settings · Account\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/account\n saving: false\n uiError: null\n saved: false\n form:\n name: shadcn\n birthday: \"\"\n language: English\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Account\n - type: Paragraph\n props:\n text: Update your account settings. Set your preferred language and timezone.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Account settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: name\n label: Name\n description: This is the name that will be displayed on your profile.\n required: true\n value:\n _bindState: form.name\n - type: Field\n props:\n name: birthday\n label: Date of birth\n kind: date\n description: Your date of birth is used to calculate your age.\n value:\n _bindState: form.birthday\n - type: Field\n props:\n name: language\n label: Language\n kind: combobox\n options:\n - value: English\n label: English\n - value: Chinese\n label: Chinese\n - value: French\n label: French\n - value: German\n label: German\n - value: Japanese\n label: Japanese\n value:\n _bindState: form.language\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update account\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: account\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: account\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: account\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Account\n href: /settings/account\n appearance: admin\n routes:\n - label: Settings · Account\n href: /settings/account\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: account\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: Collection\n entity: preferences\n mock:\n seed: []\ndata:\n entities:\n tasks:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n title:\n type: string\n label:\n type: string\n status:\n type: string\n priority:\n type: string\n users:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n phoneNumber:\n type: string\n status:\n type: string\n role:\n type: string\n preferences:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n section:\n type: string\n values:\n type: json\n integrations:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n provider:\n type: string\n enabled:\n type: boolean\n config:\n type: json\n conversations:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n name:\n type: string\n initials:\n type: string\n preview:\n type: string\n createdAt:\n type: datetime\n readOnly: true\n messages:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n conversationId:\n type: string\n text:\n type: string\n time:\n type: string\n own:\n type: boolean\n createdAt:\n type: datetime\n senderId:\n type: string\n readOnly: true\n",
|
|
18
18
|
"type": "registry:lib"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"path": "lib/uibot/templates/admin-settings-appearance.uibot.yaml",
|
|
16
16
|
"target": "lib/uibot/templates/admin-settings-appearance.uibot.yaml",
|
|
17
|
-
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-appearance\n path: /settings/appearance\n title: Settings · Appearance\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/appearance\n saving: false\n uiError: null\n saved: false\n form:\n font: Inter\n theme: light\n direction: ltr\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Appearance\n - type: Paragraph\n props:\n text: Customize the appearance of the app. Automatically switch between day and\n night themes.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Appearance settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: font\n label: Font\n kind: select\n options:\n - value: Inter\n label: Inter\n - value: System\n label: System\n - value: Manrope\n label: Manrope\n value:\n _bindState: form.font\n - type: Field\n props:\n name: theme\n label: Theme\n kind: radio\n options:\n - value: light\n label: Light\n - value: dark\n label: Dark\n - value: system\n label: System\n value:\n _bindState: form.theme\n - type: Field\n props:\n name: direction\n label: Direction\n kind: select\n options:\n - value: ltr\n label: Ltr\n - value: rtl\n label: Rtl\n value:\n _bindState: form.direction\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update appearance\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: appearance\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: appearance\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n - action: SetState\n params:\n path: theme\n value:\n _state: form.theme\n - action: SetState\n params:\n path: direction\n value:\n _state: form.direction\n - action: SetState\n params:\n path: font\n value:\n _state: form.font\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Appearance\n href: /settings/appearance\n appearance: admin\n routes:\n - label: Settings · Appearance\n href: /settings/appearance\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: appearance\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: NowAPI.Collection\n",
|
|
17
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-appearance\n path: /settings/appearance\n title: Settings · Appearance\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/appearance\n saving: false\n uiError: null\n saved: false\n form:\n font: Inter\n theme: light\n direction: ltr\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Appearance\n - type: Paragraph\n props:\n text: Customize the appearance of the app. Automatically switch between day and\n night themes.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Appearance settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: font\n label: Font\n kind: select\n options:\n - value: Inter\n label: Inter\n - value: System\n label: System\n - value: Manrope\n label: Manrope\n value:\n _bindState: form.font\n - type: Field\n props:\n name: theme\n label: Theme\n kind: radio\n options:\n - value: light\n label: Light\n - value: dark\n label: Dark\n - value: system\n label: System\n value:\n _bindState: form.theme\n - type: Field\n props:\n name: direction\n label: Direction\n kind: select\n options:\n - value: ltr\n label: Ltr\n - value: rtl\n label: Rtl\n value:\n _bindState: form.direction\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update appearance\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: appearance\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: appearance\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: appearance\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n - action: SetState\n params:\n path: theme\n value:\n _state: form.theme\n - action: SetState\n params:\n path: direction\n value:\n _state: form.direction\n - action: SetState\n params:\n path: font\n value:\n _state: form.font\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Appearance\n href: /settings/appearance\n appearance: admin\n routes:\n - label: Settings · Appearance\n href: /settings/appearance\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: appearance\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: Collection\n entity: preferences\n mock:\n seed: []\ndata:\n entities:\n tasks:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n title:\n type: string\n label:\n type: string\n status:\n type: string\n priority:\n type: string\n users:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n phoneNumber:\n type: string\n status:\n type: string\n role:\n type: string\n preferences:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n section:\n type: string\n values:\n type: json\n integrations:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n provider:\n type: string\n enabled:\n type: boolean\n config:\n type: json\n conversations:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n name:\n type: string\n initials:\n type: string\n preview:\n type: string\n createdAt:\n type: datetime\n readOnly: true\n messages:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n conversationId:\n type: string\n text:\n type: string\n time:\n type: string\n own:\n type: boolean\n createdAt:\n type: datetime\n senderId:\n type: string\n readOnly: true\n",
|
|
18
18
|
"type": "registry:lib"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"path": "lib/uibot/templates/admin-settings-display.uibot.yaml",
|
|
16
16
|
"target": "lib/uibot/templates/admin-settings-display.uibot.yaml",
|
|
17
|
-
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-display\n path: /settings/display\n title: Settings · Display\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/display\n saving: false\n uiError: null\n saved: false\n form:\n recents: true\n home: true\n applications: true\n desktop: true\n downloads: true\n documents: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Display\n - type: Paragraph\n props:\n text: Turn items on or off to control what’s displayed in the app.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Display settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Paragraph\n props:\n text: Select the items you want to display in the sidebar.\n muted: true\n - type: Field\n props:\n name: recents\n label: Recents\n kind: checkbox\n value:\n _bindState: form.recents\n - type: Field\n props:\n name: home\n label: Home\n kind: checkbox\n value:\n _bindState: form.home\n - type: Field\n props:\n name: applications\n label: Applications\n kind: checkbox\n value:\n _bindState: form.applications\n - type: Field\n props:\n name: desktop\n label: Desktop\n kind: checkbox\n value:\n _bindState: form.desktop\n - type: Field\n props:\n name: downloads\n label: Downloads\n kind: checkbox\n value:\n _bindState: form.downloads\n - type: Field\n props:\n name: documents\n label: Documents\n kind: checkbox\n value:\n _bindState: form.documents\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update display\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: display\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: display\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Display\n href: /settings/display\n appearance: admin\n routes:\n - label: Settings · Display\n href: /settings/display\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: display\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: NowAPI.Collection\n",
|
|
17
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-display\n path: /settings/display\n title: Settings · Display\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/display\n saving: false\n uiError: null\n saved: false\n form:\n recents: true\n home: true\n applications: true\n desktop: true\n downloads: true\n documents: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Display\n - type: Paragraph\n props:\n text: Turn items on or off to control what’s displayed in the app.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Display settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Paragraph\n props:\n text: Select the items you want to display in the sidebar.\n muted: true\n - type: Field\n props:\n name: recents\n label: Recents\n kind: checkbox\n value:\n _bindState: form.recents\n - type: Field\n props:\n name: home\n label: Home\n kind: checkbox\n value:\n _bindState: form.home\n - type: Field\n props:\n name: applications\n label: Applications\n kind: checkbox\n value:\n _bindState: form.applications\n - type: Field\n props:\n name: desktop\n label: Desktop\n kind: checkbox\n value:\n _bindState: form.desktop\n - type: Field\n props:\n name: downloads\n label: Downloads\n kind: checkbox\n value:\n _bindState: form.downloads\n - type: Field\n props:\n name: documents\n label: Documents\n kind: checkbox\n value:\n _bindState: form.documents\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update display\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: display\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: display\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: display\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Display\n href: /settings/display\n appearance: admin\n routes:\n - label: Settings · Display\n href: /settings/display\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: display\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: Collection\n entity: preferences\n mock:\n seed: []\ndata:\n entities:\n tasks:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n title:\n type: string\n label:\n type: string\n status:\n type: string\n priority:\n type: string\n users:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n phoneNumber:\n type: string\n status:\n type: string\n role:\n type: string\n preferences:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n section:\n type: string\n values:\n type: json\n integrations:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n provider:\n type: string\n enabled:\n type: boolean\n config:\n type: json\n conversations:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n name:\n type: string\n initials:\n type: string\n preview:\n type: string\n createdAt:\n type: datetime\n readOnly: true\n messages:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n conversationId:\n type: string\n text:\n type: string\n time:\n type: string\n own:\n type: boolean\n createdAt:\n type: datetime\n senderId:\n type: string\n readOnly: true\n",
|
|
18
18
|
"type": "registry:lib"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"path": "lib/uibot/templates/admin-settings-notifications.uibot.yaml",
|
|
16
16
|
"target": "lib/uibot/templates/admin-settings-notifications.uibot.yaml",
|
|
17
|
-
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-notifications\n path: /settings/notifications\n title: Settings · Notifications\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/notifications\n saving: false\n uiError: null\n saved: false\n form:\n notify: all\n communication: false\n marketing: false\n social: true\n security: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Notifications\n - type: Paragraph\n props:\n text: Configure how you receive notifications.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Notifications settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: notify\n label: Notify me about...\n kind: radio\n options:\n - label: All new messages\n value: all\n - label: Direct messages and mentions\n value: mentions\n - label: Nothing\n value: none\n value:\n _bindState: form.notify\n - type: Field\n props:\n name: communication\n kind: switch\n label: Communication emails\n description: Receive emails about your account activity.\n value:\n _bindState: form.communication\n - type: Field\n props:\n name: marketing\n kind: switch\n label: Marketing emails\n description: Receive emails about new products and features.\n value:\n _bindState: form.marketing\n - type: Field\n props:\n name: social\n kind: switch\n label: Social emails\n description: Receive emails for friend requests and follows.\n value:\n _bindState: form.social\n - type: Field\n props:\n name: security\n kind: switch\n label: Security emails\n description: Receive emails about your account security.\n value:\n _bindState: form.security\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update notifications\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: notifications\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: notifications\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Notifications\n href: /settings/notifications\n appearance: admin\n routes:\n - label: Settings · Notifications\n href: /settings/notifications\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: notifications\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: NowAPI.Collection\n",
|
|
17
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-notifications\n path: /settings/notifications\n title: Settings · Notifications\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/notifications\n saving: false\n uiError: null\n saved: false\n form:\n notify: all\n communication: false\n marketing: false\n social: true\n security: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48\n [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md\n lg:[&>a]:px-0 lg:[&>a]:py-0\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Notifications\n - type: Paragraph\n props:\n text: Configure how you receive notifications.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Notifications settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: notify\n label: Notify me about...\n kind: radio\n options:\n - label: All new messages\n value: all\n - label: Direct messages and mentions\n value: mentions\n - label: Nothing\n value: none\n value:\n _bindState: form.notify\n - type: Field\n props:\n name: communication\n kind: switch\n label: Communication emails\n description: Receive emails about your account activity.\n value:\n _bindState: form.communication\n - type: Field\n props:\n name: marketing\n kind: switch\n label: Marketing emails\n description: Receive emails about new products and features.\n value:\n _bindState: form.marketing\n - type: Field\n props:\n name: social\n kind: switch\n label: Social emails\n description: Receive emails for friend requests and follows.\n value:\n _bindState: form.social\n - type: Field\n props:\n name: security\n kind: switch\n label: Security emails\n description: Receive emails about your account security.\n value:\n _bindState: form.security\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update notifications\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: notifications\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: notifications\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: notifications\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Notifications\n href: /settings/notifications\n appearance: admin\n routes:\n - label: Settings · Notifications\n href: /settings/notifications\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: notifications\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: Collection\n entity: preferences\n mock:\n seed: []\ndata:\n entities:\n tasks:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n title:\n type: string\n label:\n type: string\n status:\n type: string\n priority:\n type: string\n users:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n phoneNumber:\n type: string\n status:\n type: string\n role:\n type: string\n preferences:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n section:\n type: string\n values:\n type: json\n integrations:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n provider:\n type: string\n enabled:\n type: boolean\n config:\n type: json\n conversations:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n name:\n type: string\n initials:\n type: string\n preview:\n type: string\n createdAt:\n type: datetime\n readOnly: true\n messages:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n conversationId:\n type: string\n text:\n type: string\n time:\n type: string\n own:\n type: boolean\n createdAt:\n type: datetime\n senderId:\n type: string\n readOnly: true\n",
|
|
18
18
|
"type": "registry:lib"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"path": "lib/uibot/templates/admin-settings-profile.uibot.yaml",
|
|
16
16
|
"target": "lib/uibot/templates/admin-settings-profile.uibot.yaml",
|
|
17
|
-
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-profile\n path: /settings/profile\n title: Settings · Profile\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/profile\n saving: false\n uiError: null\n saved: false\n form:\n username: shadcn\n email: m@example.com\n bio: I own a computer.\n urls:\n - https://shadcn.com\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3\n [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\n direction: row\n wrap: true\n gap: md\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Profile\n - type: Paragraph\n props:\n text: This is how others will see you on the site.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Profile settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: username\n label: Username\n description: This is your public display name.\n required: true\n value:\n _bindState: form.username\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n value:\n _bindState: form.email\n - type: Field\n props:\n name: bio\n label: Bio\n kind: textarea\n description: Describe your role and what you work on.\n value:\n _bindState: form.bio\n - type: Field\n props:\n name: urls\n label: URLs\n kind: urls\n description: Add links to your website, blog, or social media profiles.\n value:\n _bindState: form.urls\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update profile\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: profile\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: profile\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Profile\n href: /settings/profile\n appearance: admin\n routes:\n - label: Settings · Profile\n href: /settings/profile\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: profile\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: NowAPI.Collection\n",
|
|
17
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: settings-profile\n path: /settings/profile\n title: Settings · Profile\n state:\n direction: ltr\n font: Inter\n loading: false\n theme: light\n currentPath: /settings/profile\n saving: false\n uiError: null\n saved: false\n form:\n username: shadcn\n email: m@example.com\n bio: I own a computer.\n urls:\n - https://shadcn.com\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: w-full shrink-0 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3\n [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\n direction: row\n wrap: true\n gap: md\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: default\n className: bg-muted font-medium lg:bg-transparent\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Profile\n - type: Paragraph\n props:\n text: This is how others will see you on the site.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Profile settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: username\n label: Username\n description: This is your public display name.\n required: true\n value:\n _bindState: form.username\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n value:\n _bindState: form.email\n - type: Field\n props:\n name: bio\n label: Bio\n kind: textarea\n description: Describe your role and what you work on.\n value:\n _bindState: form.bio\n - type: Field\n props:\n name: urls\n label: URLs\n kind: urls\n description: Add links to your website, blog, or social media profiles.\n value:\n _bindState: form.urls\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update profile\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n _if:\n - _eq:\n - _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n - InsertOne\n - operation: InsertOne\n data:\n section: profile\n values:\n _event: values\n - operation: UpdateOne\n data:\n section: profile\n values:\n _event: values\n filter:\n id:\n _state: preferences.0.id\n version:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: profile\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Settings · Profile\n href: /settings/profile\n appearance: admin\n routes:\n - label: Settings · Profile\n href: /settings/profile\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: profile\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\nconnections:\n - id: preferences-db\n type: Collection\n entity: preferences\n mock:\n seed: []\ndata:\n entities:\n tasks:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n title:\n type: string\n label:\n type: string\n status:\n type: string\n priority:\n type: string\n users:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n username:\n type: string\n firstName:\n type: string\n lastName:\n type: string\n email:\n type: string\n phoneNumber:\n type: string\n status:\n type: string\n role:\n type: string\n preferences:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n section:\n type: string\n values:\n type: json\n integrations:\n key: id\n version: version\n fields:\n version:\n type: number\n readOnly: true\n id:\n type: string\n readOnly: true\n provider:\n type: string\n enabled:\n type: boolean\n config:\n type: json\n conversations:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n name:\n type: string\n initials:\n type: string\n preview:\n type: string\n createdAt:\n type: datetime\n readOnly: true\n messages:\n key: id\n fields:\n id:\n type: string\n readOnly: true\n conversationId:\n type: string\n text:\n type: string\n time:\n type: string\n own:\n type: boolean\n createdAt:\n type: datetime\n senderId:\n type: string\n readOnly: true\n",
|
|
18
18
|
"type": "registry:lib"
|
|
19
19
|
},
|
|
20
20
|
{
|