@uibot/registry 0.18.1 → 0.20.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/README.md +59 -0
- package/dist/component-replacement.d.ts +10 -0
- package/dist/distribution-snapshot.d.ts +22 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -11
- package/dist/resource-query.d.ts +4 -0
- package/dist/resources.d.ts +4 -0
- package/dist/resources.js +3 -3
- package/dist/shadcn/r/admin-apps.json +61 -0
- package/dist/shadcn/r/admin-chats.json +54 -0
- package/dist/shadcn/r/admin-error-401.json +54 -0
- package/dist/shadcn/r/admin-error-403.json +54 -0
- package/dist/shadcn/r/admin-error-404.json +54 -0
- package/dist/shadcn/r/admin-error-500.json +54 -0
- package/dist/shadcn/r/admin-error-503.json +54 -0
- package/dist/shadcn/r/admin-forgot-password.json +59 -0
- package/dist/shadcn/r/admin-help.json +53 -0
- package/dist/shadcn/r/admin-otp.json +59 -0
- package/dist/shadcn/r/admin-overview.json +62 -0
- package/dist/shadcn/r/admin-settings-account.json +61 -0
- package/dist/shadcn/r/admin-settings-appearance.json +61 -0
- package/dist/shadcn/r/admin-settings-display.json +61 -0
- package/dist/shadcn/r/admin-settings-notifications.json +61 -0
- package/dist/shadcn/r/admin-settings-profile.json +61 -0
- package/dist/shadcn/r/admin-settings.json +65 -0
- package/dist/shadcn/r/admin-shell.json +25 -6
- package/dist/shadcn/r/admin-sign-in-2.json +67 -0
- package/dist/shadcn/r/admin-sign-in.json +59 -0
- package/dist/shadcn/r/admin-sign-up.json +59 -0
- package/dist/shadcn/r/admin-tasks.json +66 -0
- package/dist/shadcn/r/admin-users.json +66 -0
- package/dist/shadcn/r/auth-01.json +24 -0
- package/dist/shadcn/r/auth-02.json +24 -0
- package/dist/shadcn/r/auth-03.json +24 -0
- package/dist/shadcn/r/auth-04.json +24 -0
- package/dist/shadcn/r/auth-05.json +24 -0
- package/dist/shadcn/r/auth-centered.json +61 -0
- package/dist/shadcn/r/auth-enterprise.json +61 -0
- package/dist/shadcn/r/auth-primitives.json +58 -0
- package/dist/shadcn/r/auth-recovery.json +64 -0
- package/dist/shadcn/r/auth-registration.json +63 -0
- package/dist/shadcn/r/auth-split.json +67 -0
- package/dist/shadcn/r/auth.json +13 -13
- package/dist/shadcn/r/charts.json +45 -18
- package/dist/shadcn/r/chat-artifact.json +49 -0
- package/dist/shadcn/r/chat-focused.json +49 -0
- package/dist/shadcn/r/chat-history.json +49 -0
- package/dist/shadcn/r/chat-knowledge.json +49 -0
- package/dist/shadcn/r/chat-support.json +49 -0
- package/dist/shadcn/r/chat-workspace.json +136 -0
- package/dist/shadcn/r/collection-cell-editor.json +6 -6
- package/dist/shadcn/r/collection-panel-drawer.json +2 -2
- package/dist/shadcn/r/collection-record-menu.json +2 -2
- package/dist/shadcn/r/collection-shared.json +2 -2
- package/dist/shadcn/r/commerce-workspace.json +69 -0
- package/dist/shadcn/r/console-billing.json +68 -0
- package/dist/shadcn/r/console-page.json +289 -0
- package/dist/shadcn/r/console-shell.json +29 -0
- package/dist/shadcn/r/content.json +1 -1
- package/dist/shadcn/r/creation-html-generation.json +3 -3
- package/dist/shadcn/r/creation-reference-generation.json +3 -3
- package/dist/shadcn/r/creation-revision-export.json +3 -3
- package/dist/shadcn/r/creation-shared.json +3 -3
- package/dist/shadcn/r/creation-variant-compare.json +4 -4
- package/dist/shadcn/r/creation-workspace.json +4 -4
- package/dist/shadcn/r/crm-workspace.json +73 -0
- package/dist/shadcn/r/dashboard-01.json +78 -0
- package/dist/shadcn/r/dashboard.json +114 -4
- package/dist/shadcn/r/data-studio.json +1 -1
- package/dist/shadcn/r/data-table.json +138 -10
- package/dist/shadcn/r/data.json +88 -11
- package/dist/shadcn/r/document-assistant.json +54 -0
- package/dist/shadcn/r/document-library.json +49 -0
- package/dist/shadcn/r/document-reading.json +49 -0
- package/dist/shadcn/r/document-workspace.json +164 -0
- package/dist/shadcn/r/document-writing.json +49 -0
- package/dist/shadcn/r/drilldown-menu.json +233 -0
- package/dist/shadcn/r/education-workspace.json +82 -0
- package/dist/shadcn/r/feedback.json +19 -6
- package/dist/shadcn/r/field.json +1 -1
- package/dist/shadcn/r/form.json +12 -12
- package/dist/shadcn/r/grid.json +1 -1
- package/dist/shadcn/r/interactive.json +1 -1
- package/dist/shadcn/r/item-grid.json +219 -0
- package/dist/shadcn/r/kanban.json +1 -1
- package/dist/shadcn/r/layout.json +217 -18
- package/dist/shadcn/r/marketing.json +1 -1
- package/dist/shadcn/r/nav.json +39 -11
- package/dist/shadcn/r/presentation.json +1 -1
- package/dist/shadcn/r/preview-device-frame.json +2 -2
- package/dist/shadcn/r/primitives.json +2 -2
- package/dist/shadcn/r/sections.json +1 -1
- package/dist/shadcn/r/shadcn-admin-shell.json +1 -1
- package/dist/shadcn/r/shadcn-admin.json +23 -22
- package/dist/shadcn/r/sidebar-01.json +42 -0
- package/dist/shadcn/r/sidebar-02.json +42 -0
- package/dist/shadcn/r/sidebar-03.json +30 -0
- package/dist/shadcn/r/sidebar-04.json +30 -0
- package/dist/shadcn/r/sidebar-05.json +36 -0
- package/dist/shadcn/r/sidebar-06.json +42 -0
- package/dist/shadcn/r/sidebar-07.json +54 -0
- package/dist/shadcn/r/sidebar-08.json +54 -0
- package/dist/shadcn/r/sidebar-09.json +36 -0
- package/dist/shadcn/r/sidebar-10.json +66 -0
- package/dist/shadcn/r/sidebar-11.json +30 -0
- package/dist/shadcn/r/sidebar-12.json +48 -0
- package/dist/shadcn/r/sidebar-13.json +30 -0
- package/dist/shadcn/r/sidebar-14.json +30 -0
- package/dist/shadcn/r/sidebar-15.json +84 -0
- package/dist/shadcn/r/sidebar-16.json +66 -0
- package/dist/shadcn/r/sidebar-drilldown.json +29 -0
- package/dist/shadcn/r/sidebar-primitives.json +155 -0
- package/dist/shadcn/r/uibot-base.json +3 -3
- package/dist/shadcn/r/workspace.json +11 -4
- package/dist/shadcn/registry.json +1016 -176
- package/dist/shadcn.d.ts +0 -39
- package/dist/solution-composition.d.ts +45 -0
- package/dist/solution-regions.d.ts +3 -0
- package/dist/solution-spec.d.ts +7 -0
- package/dist/template-source.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "admin-tasks",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Task management: shared UiBot Admin page source.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/data-table",
|
|
9
|
+
"@uibot/feedback",
|
|
10
|
+
"@uibot/field",
|
|
11
|
+
"@uibot/form",
|
|
12
|
+
"@uibot/layout"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "lib/uibot/templates/admin-tasks.uibot.yaml",
|
|
17
|
+
"target": "lib/uibot/templates/admin-tasks.uibot.yaml",
|
|
18
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: tasks\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onStateChange:\n - watch:\n - editorOpen\n - draft.title\n - draft.label\n - draft.status\n - draft.priority\n run: []\n path: /tasks\n title: Tasks\n state:\n direction: ltr\n font: Inter\n selectionEvent: null\n theme: light\n currentPath: /tasks\n rows:\n - id: TASK-8782\n title: Document release rollback steps\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8783\n title: Fix keyboard focus in the task drawer\n label: bug\n status: todo\n priority: high\n - id: TASK-8784\n title: Add status filters to the task list\n label: feature\n status: in progress\n priority: low\n - id: TASK-8785\n title: Update deployment checklist\n label: documentation\n status: done\n priority: medium\n - id: TASK-8786\n title: Investigate duplicate task submissions\n label: bug\n status: canceled\n priority: high\n - id: TASK-8787\n title: Add saved table views\n label: feature\n status: backlog\n priority: low\n - id: TASK-8788\n title: Document task priority definitions\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8789\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8790\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8791\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8792\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8793\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8794\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8795\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8796\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8797\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8798\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8799\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8800\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8801\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8802\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8803\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8804\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8805\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8806\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8807\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8808\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8809\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8810\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8811\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8812\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8813\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8814\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8815\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8816\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8817\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8818\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8819\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8820\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8821\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8822\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8823\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8824\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8825\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8826\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8827\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8828\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8829\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8830\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8831\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8832\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8833\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8834\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8835\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8836\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8837\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8838\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8839\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8840\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8841\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8842\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8843\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8844\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8845\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8846\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8847\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8848\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8849\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8850\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8851\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8852\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8853\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8854\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8855\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8856\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8857\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8858\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8859\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8860\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8861\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8862\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8863\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8864\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8865\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8866\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8867\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8868\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8869\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8870\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8871\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8872\n title: You can’t compress the program without quantifying the open-source SSD\n pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8873\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8874\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8875\n title: The SAS interface is down, bypass the open-source pixel so we can back up\n the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8876\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8\n protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8877\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8878\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8879\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8880\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8881\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n editorOpen: false\n deleteOpen: false\n draft: {}\n loading: false\n saving: false\n uiError: null\n tableView: \"\"\n serverMode: false\n selectedIds: []\n total: null\n hasNextPage: false\n reloadRequested: 0\n pageNotice: \"\"\n bulkOpen: false\n bulkRequest: null\n bulkSubmit: false\n bulkAction: \"\"\n bulkStatus: backlog\n bulkSummary: \"\"\n bulkError: null\n bulkConfirmDisabled: true\n bulkDisabled: true\n bulkUnavailable: Select records with known versions to enable batch actions.\n editorBaseline: {}\n discardEditorOpen: false\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: Tasks\n - type: Paragraph\n props:\n text: Sample tasks for triage and prioritization.\n muted: true\n size: sm\n - type: Button\n props:\n label: Create\n variant: default\n events:\n onClick:\n - action: SetState\n params:\n path: draft\n value:\n action: create\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorBaseline\n value:\n title:\n _state: draft.title\n label:\n _state: draft.label\n status:\n _state: draft.status\n priority:\n _state: draft.priority\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: pageNotice\n muted: true\n size: sm\n - type: DataTable\n props:\n server:\n _state: serverMode\n total:\n _state: total\n hasNextPage:\n _state: hasNextPage\n selectedIds:\n _if:\n - _state: serverMode\n - _state: selectedIds\n - null\n rows:\n _state: rows\n loading:\n _state: loading\n error:\n _state: uiError.message\n columns:\n - key: id\n label: Task\n kind: muted\n - key: title\n label: Title\n kind: text\n badgeKey: label\n - key: status\n label: Status\n kind: badge\n - key: priority\n label: Priority\n kind: text\n filters:\n - key: status\n label: Status\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - key: priority\n label: Priority\n options:\n - value: low\n label: Low\n - value: medium\n label: Medium\n - value: high\n label: High\n searchKeys:\n - id\n - title\n searchPlaceholder: Filter tasks...\n actions:\n - id: edit\n label: Edit\n - id: delete\n label: Delete\n bulkActions:\n _if:\n - _state: serverMode\n - - id: delete\n label: Delete selected\n disabled:\n _state: bulkDisabled\n - id: status\n label: Change status\n disabled:\n _state: bulkDisabled\n - - id: delete\n label: Delete selected\n disabled: true\n view:\n _state: tableView\n minWidth: 950\n events:\n onRowAction:\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: editorBaseline\n value:\n title:\n _state: draft.title\n label:\n _state: draft.label\n status:\n _state: draft.status\n priority:\n _state: draft.priority\n - action: SetState\n params:\n path: editorOpen\n value:\n _eq:\n - _state: draft.action\n - edit\n - action: SetState\n params:\n path: deleteOpen\n value:\n _eq:\n - _state: draft.action\n - delete\n onBulkAction:\n - action: SetState\n params:\n path: bulkRequest\n value:\n _event: values\n onSelectionChange:\n - action: SetState\n params:\n path: selectionEvent\n value:\n _event: values\n - action: SetState\n params:\n path: selectedIds\n value:\n _state: selectionEvent.ids\n onViewChange:\n - action: SetState\n params:\n path: tableView\n value:\n _event: value\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: bulkUnavailable\n muted: true\n size: sm\n - type: Button\n visible:\n _state: serverMode\n props:\n label: Reload first page\n variant: outline\n disabled:\n _or:\n - _state: loading\n - _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: reloadRequested\n value:\n _not:\n _state: reloadRequested\n - type: Modal\n props:\n open:\n _state: bulkOpen\n pending:\n _state: saving\n title:\n _if:\n - _eq:\n - _state: bulkAction\n - delete\n - Delete selected records?\n - Change selected status?\n description: Review the selected IDs, versions and change before confirming.\n children:\n - type: Field\n visible:\n _eq:\n - _state: bulkAction\n - status\n props:\n name: bulkStatus\n label: New status\n kind: select\n value:\n _bindState: bulkStatus\n disabled:\n _state: saving\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - type: Paragraph\n props:\n text:\n _state: bulkSummary\n className: whitespace-pre-wrap break-all max-h-48 overflow-auto font-mono\n text-xs\n - type: Paragraph\n visible:\n _state: bulkError\n props:\n text:\n _state: bulkError.message\n className: text-destructive\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Button\n props:\n label: Confirm batch\n disabled:\n _state: bulkConfirmDisabled\n events:\n onClick:\n - action: SetState\n params:\n path: bulkSubmit\n value:\n _not:\n _state: bulkSubmit\n events:\n onClose:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Drawer\n props:\n open:\n _state: editorOpen\n pending:\n _state: saving\n title: Create or edit task\n description: Update the details below. Click save when you’re done.\n children:\n - type: Form\n props:\n label: Record details\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: title\n label: Title\n kind: text\n value:\n _bindState: draft.title\n required: true\n - type: Field\n props:\n name: label\n label: Label\n kind: select\n value:\n _bindState: draft.label\n required: true\n options:\n - value: documentation\n label: Documentation\n - value: bug\n label: Bug\n - value: feature\n label: Feature\n - type: Field\n props:\n name: status\n label: Status\n kind: select\n value:\n _bindState: draft.status\n required: true\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - type: Field\n props:\n name: priority\n label: Priority\n kind: radio\n value:\n _bindState: draft.priority\n required: true\n options:\n - value: low\n label: Low\n - value: medium\n label: Medium\n - value: high\n label: High\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n size: sm\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save changes\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: mutate-tasks\n connectionId: tasks-db\n payload:\n operation:\n _if:\n - _eq:\n - _state: draft.action\n - create\n - InsertOne\n - UpdateOne\n filter:\n id:\n _state: draft.id\n data:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: discardEditorOpen\n value:\n _computed: editorDirty\n - action: SetState\n params:\n path: editorOpen\n value:\n _computed: editorDirty\n - type: Modal\n props:\n open:\n _state: deleteOpen\n pending:\n _state: saving\n title: Delete this record?\n description: This action cannot be undone. The record will be permanently\n removed.\n children:\n - type: Paragraph\n visible:\n _state: uiError\n props:\n text:\n _state: uiError.message\n className: text-destructive\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - type: Button\n props:\n label: Delete\n variant: destructive\n disabled:\n _state: saving\n events:\n onClick:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: mutate-tasks\n connectionId: tasks-db\n payload:\n operation: DeleteOne\n filter:\n id:\n _state: draft.id\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Tasks\n href: /tasks\n appearance: admin\n routes:\n - label: Tasks\n href: /tasks\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n - type: Modal\n props:\n open:\n _state: discardEditorOpen\n pending:\n _state: saving\n title: Discard unsaved changes?\n description: Your edits will be lost if you discard them.\n events:\n onClose: &a1\n - &a2\n action: SetState\n params:\n path: discardEditorOpen\n value: false\n children:\n - type: Button\n props:\n label: Stay\n variant: outline\n events:\n onClick: *a1\n - type: Button\n props:\n label: Discard\n variant: destructive\n events:\n onClick:\n - *a2\n - action: SetState\n params:\n path: editorOpen\n value: false\n urlState:\n tableView:\n param: view\n default: \"\"\n computed:\n editorDirty:\n _not:\n _and:\n - _eq:\n - _if:\n - _state: draft.title\n - _state: draft.title\n - \"\"\n - _if:\n - _state: editorBaseline.title\n - _state: editorBaseline.title\n - \"\"\n - _eq:\n - _if:\n - _state: draft.label\n - _state: draft.label\n - \"\"\n - _if:\n - _state: editorBaseline.label\n - _state: editorBaseline.label\n - \"\"\n - _eq:\n - _if:\n - _state: draft.status\n - _state: draft.status\n - \"\"\n - _if:\n - _state: editorBaseline.status\n - _state: editorBaseline.status\n - \"\"\n - _eq:\n - _if:\n - _state: draft.priority\n - _state: draft.priority\n - \"\"\n - _if:\n - _state: editorBaseline.priority\n - _state: editorBaseline.priority\n - \"\"\nconnections:\n - id: tasks-db\n type: NowAPI.Collection\n",
|
|
19
|
+
"type": "registry:lib"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "lib/uibot/templates/admin-tasks.uibot.json",
|
|
23
|
+
"target": "lib/uibot/templates/admin-tasks.uibot.json",
|
|
24
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"admin-tasks\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"admin-tasks.uibot.yaml\",\n \"contract\": {\n \"name\": \"admin-tasks\",\n \"description\": \"Task management: shared UiBot Admin page source.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"admin-tasks\",\n \"任务管理\",\n \"Task management\",\n \"tasks\",\n \"data\",\n \"tasks\",\n \"table\"\n ],\n \"composedFrom\": [\n \"PageLayout\",\n \"Box\",\n \"Heading\",\n \"Paragraph\",\n \"Button\",\n \"DataTable\",\n \"Modal\",\n \"Field\",\n \"Drawer\",\n \"Form\",\n \"Form.Submit\"\n ]\n }\n }\n}\n",
|
|
25
|
+
"type": "registry:lib"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"meta": {
|
|
29
|
+
"uibot": {
|
|
30
|
+
"schema": "uibot.registry.item.v1",
|
|
31
|
+
"item": "admin-tasks",
|
|
32
|
+
"channel": "public",
|
|
33
|
+
"template": {
|
|
34
|
+
"file": "admin-tasks.uibot.yaml",
|
|
35
|
+
"contract": {
|
|
36
|
+
"name": "admin-tasks",
|
|
37
|
+
"description": "Task management: shared UiBot Admin page source.",
|
|
38
|
+
"level": "L4",
|
|
39
|
+
"category": "page",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"admin-tasks",
|
|
42
|
+
"任务管理",
|
|
43
|
+
"Task management",
|
|
44
|
+
"tasks",
|
|
45
|
+
"data",
|
|
46
|
+
"tasks",
|
|
47
|
+
"table"
|
|
48
|
+
],
|
|
49
|
+
"composedFrom": [
|
|
50
|
+
"PageLayout",
|
|
51
|
+
"Box",
|
|
52
|
+
"Heading",
|
|
53
|
+
"Paragraph",
|
|
54
|
+
"Button",
|
|
55
|
+
"DataTable",
|
|
56
|
+
"Modal",
|
|
57
|
+
"Field",
|
|
58
|
+
"Drawer",
|
|
59
|
+
"Form",
|
|
60
|
+
"Form.Submit"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "admin-users",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Members & records: shared UiBot Admin page source.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/data-table",
|
|
9
|
+
"@uibot/feedback",
|
|
10
|
+
"@uibot/field",
|
|
11
|
+
"@uibot/form",
|
|
12
|
+
"@uibot/layout"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "lib/uibot/templates/admin-users.uibot.yaml",
|
|
17
|
+
"target": "lib/uibot/templates/admin-users.uibot.yaml",
|
|
18
|
+
"content": "version: \"2.0\"\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\npages:\n - id: users\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: users-db\n request:\n id: load-users\n connectionId: users-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onStateChange:\n - watch:\n - editorOpen\n - draft.username\n - draft.firstName\n - draft.lastName\n - draft.email\n - draft.phoneNumber\n - draft.status\n - draft.role\n run: []\n path: /users\n title: Users\n state:\n direction: ltr\n font: Inter\n selectionEvent: null\n theme: light\n currentPath: /users\n rows:\n - id: user-1\n username: liam.anderson\n firstName: Liam\n lastName: Anderson\n email: liam.anderson@example.com\n phoneNumber: +1 (555) 010-0000\n status: active\n role: admin\n - id: user-2\n username: olivia.baker\n firstName: Olivia\n lastName: Baker\n email: olivia.baker@example.com\n phoneNumber: +1 (555) 010-0001\n status: inactive\n role: manager\n - id: user-3\n username: noah.carter\n firstName: Noah\n lastName: Carter\n email: noah.carter@example.com\n phoneNumber: +1 (555) 010-0002\n status: invited\n role: cashier\n - id: user-4\n username: emma.davis\n firstName: Emma\n lastName: Davis\n email: emma.davis@example.com\n phoneNumber: +1 (555) 010-0003\n status: suspended\n role: superadmin\n - id: user-5\n username: elijah.evans\n firstName: Elijah\n lastName: Evans\n email: elijah.evans@example.com\n phoneNumber: +1 (555) 010-0004\n status: active\n role: admin\n - id: user-6\n username: amelia.foster\n firstName: Amelia\n lastName: Foster\n email: amelia.foster@example.com\n phoneNumber: +1 (555) 010-0005\n status: inactive\n role: manager\n - id: user-7\n username: james.garcia\n firstName: James\n lastName: Garcia\n email: james.garcia@example.com\n phoneNumber: +1 (555) 010-0006\n status: invited\n role: cashier\n - id: user-8\n username: charlotte.harris\n firstName: Charlotte\n lastName: Harris\n email: charlotte.harris@example.com\n phoneNumber: +1 (555) 010-0007\n status: suspended\n role: superadmin\n - id: user-9\n username: william.irwin\n firstName: William\n lastName: Irwin\n email: william.irwin@example.com\n phoneNumber: +1 (555) 010-0008\n status: active\n role: admin\n - id: user-10\n username: sophia.jones\n firstName: Sophia\n lastName: Jones\n email: sophia.jones@example.com\n phoneNumber: +1 (555) 010-0009\n status: inactive\n role: manager\n - id: user-11\n username: benjamin.kim\n firstName: Benjamin\n lastName: Kim\n email: benjamin.kim@example.com\n phoneNumber: +1 (555) 010-0010\n status: invited\n role: cashier\n - id: user-12\n username: isabella.lewis\n firstName: Isabella\n lastName: Lewis\n email: isabella.lewis@example.com\n phoneNumber: +1 (555) 010-0011\n status: suspended\n role: superadmin\n - id: user-13\n username: liam.anderson\n firstName: Liam\n lastName: Anderson\n email: liam.anderson@example.com\n phoneNumber: +1 (555) 010-0012\n status: active\n role: admin\n - id: user-14\n username: olivia.baker\n firstName: Olivia\n lastName: Baker\n email: olivia.baker@example.com\n phoneNumber: +1 (555) 010-0013\n status: inactive\n role: manager\n - id: user-15\n username: noah.carter\n firstName: Noah\n lastName: Carter\n email: noah.carter@example.com\n phoneNumber: +1 (555) 010-0014\n status: invited\n role: cashier\n - id: user-16\n username: emma.davis\n firstName: Emma\n lastName: Davis\n email: emma.davis@example.com\n phoneNumber: +1 (555) 010-0015\n status: suspended\n role: superadmin\n - id: user-17\n username: elijah.evans\n firstName: Elijah\n lastName: Evans\n email: elijah.evans@example.com\n phoneNumber: +1 (555) 010-0016\n status: active\n role: admin\n - id: user-18\n username: amelia.foster\n firstName: Amelia\n lastName: Foster\n email: amelia.foster@example.com\n phoneNumber: +1 (555) 010-0017\n status: inactive\n role: manager\n - id: user-19\n username: james.garcia\n firstName: James\n lastName: Garcia\n email: james.garcia@example.com\n phoneNumber: +1 (555) 010-0018\n status: invited\n role: cashier\n - id: user-20\n username: charlotte.harris\n firstName: Charlotte\n lastName: Harris\n email: charlotte.harris@example.com\n phoneNumber: +1 (555) 010-0019\n status: suspended\n role: superadmin\n - id: user-21\n username: william.irwin\n firstName: William\n lastName: Irwin\n email: william.irwin@example.com\n phoneNumber: +1 (555) 010-0020\n status: active\n role: admin\n - id: user-22\n username: sophia.jones\n firstName: Sophia\n lastName: Jones\n email: sophia.jones@example.com\n phoneNumber: +1 (555) 010-0021\n status: inactive\n role: manager\n - id: user-23\n username: benjamin.kim\n firstName: Benjamin\n lastName: Kim\n email: benjamin.kim@example.com\n phoneNumber: +1 (555) 010-0022\n status: invited\n role: cashier\n - id: user-24\n username: isabella.lewis\n firstName: Isabella\n lastName: Lewis\n email: isabella.lewis@example.com\n phoneNumber: +1 (555) 010-0023\n status: suspended\n role: superadmin\n - id: user-25\n username: liam.anderson\n firstName: Liam\n lastName: Anderson\n email: liam.anderson@example.com\n phoneNumber: +1 (555) 010-0024\n status: active\n role: admin\n - id: user-26\n username: olivia.baker\n firstName: Olivia\n lastName: Baker\n email: olivia.baker@example.com\n phoneNumber: +1 (555) 010-0025\n status: inactive\n role: manager\n - id: user-27\n username: noah.carter\n firstName: Noah\n lastName: Carter\n email: noah.carter@example.com\n phoneNumber: +1 (555) 010-0026\n status: invited\n role: cashier\n - id: user-28\n username: emma.davis\n firstName: Emma\n lastName: Davis\n email: emma.davis@example.com\n phoneNumber: +1 (555) 010-0027\n status: suspended\n role: superadmin\n - id: user-29\n username: elijah.evans\n firstName: Elijah\n lastName: Evans\n email: elijah.evans@example.com\n phoneNumber: +1 (555) 010-0028\n status: active\n role: admin\n - id: user-30\n username: amelia.foster\n firstName: Amelia\n lastName: Foster\n email: amelia.foster@example.com\n phoneNumber: +1 (555) 010-0029\n status: inactive\n role: manager\n - id: user-31\n username: james.garcia\n firstName: James\n lastName: Garcia\n email: james.garcia@example.com\n phoneNumber: +1 (555) 010-0030\n status: invited\n role: cashier\n - id: user-32\n username: charlotte.harris\n firstName: Charlotte\n lastName: Harris\n email: charlotte.harris@example.com\n phoneNumber: +1 (555) 010-0031\n status: suspended\n role: superadmin\n - id: user-33\n username: william.irwin\n firstName: William\n lastName: Irwin\n email: william.irwin@example.com\n phoneNumber: +1 (555) 010-0032\n status: active\n role: admin\n - id: user-34\n username: sophia.jones\n firstName: Sophia\n lastName: Jones\n email: sophia.jones@example.com\n phoneNumber: +1 (555) 010-0033\n status: inactive\n role: manager\n - id: user-35\n username: benjamin.kim\n firstName: Benjamin\n lastName: Kim\n email: benjamin.kim@example.com\n phoneNumber: +1 (555) 010-0034\n status: invited\n role: cashier\n - id: user-36\n username: isabella.lewis\n firstName: Isabella\n lastName: Lewis\n email: isabella.lewis@example.com\n phoneNumber: +1 (555) 010-0035\n status: suspended\n role: superadmin\n editorOpen: false\n deleteOpen: false\n draft: {}\n loading: false\n saving: false\n uiError: null\n tableView: \"\"\n serverMode: false\n selectedIds: []\n total: null\n hasNextPage: false\n reloadRequested: 0\n pageNotice: \"\"\n bulkOpen: false\n bulkRequest: null\n bulkSubmit: false\n bulkAction: \"\"\n bulkStatus: active\n bulkSummary: \"\"\n bulkError: null\n bulkConfirmDisabled: true\n bulkDisabled: true\n bulkUnavailable: Select records with known versions to enable batch actions.\n editorBaseline: {}\n discardEditorOpen: false\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: Users\n - type: Paragraph\n props:\n text: Manage your users and their roles here.\n muted: true\n size: sm\n - type: Button\n props:\n label: Add User\n variant: default\n events:\n onClick:\n - action: SetState\n params:\n path: draft\n value:\n action: create\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorBaseline\n value:\n username:\n _state: draft.username\n firstName:\n _state: draft.firstName\n lastName:\n _state: draft.lastName\n email:\n _state: draft.email\n phoneNumber:\n _state: draft.phoneNumber\n status:\n _state: draft.status\n role:\n _state: draft.role\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: pageNotice\n muted: true\n size: sm\n - type: DataTable\n props:\n server:\n _state: serverMode\n total:\n _state: total\n hasNextPage:\n _state: hasNextPage\n selectedIds:\n _if:\n - _state: serverMode\n - _state: selectedIds\n - null\n rows:\n _state: rows\n loading:\n _state: loading\n error:\n _state: uiError.message\n columns:\n - key: username\n label: Username\n kind: muted\n - key: firstName\n displayKeys:\n - firstName\n - lastName\n label: Name\n kind: text\n - key: email\n label: Email\n kind: muted\n - key: phoneNumber\n label: Phone Number\n kind: muted\n - key: status\n label: Status\n kind: badge\n - key: role\n label: Role\n kind: text\n filters:\n - key: status\n label: Status\n options:\n - value: active\n label: Active\n - value: inactive\n label: Inactive\n - value: invited\n label: Invited\n - value: suspended\n label: Suspended\n - key: role\n label: Role\n options:\n - value: admin\n label: Admin\n - value: manager\n label: Manager\n - value: cashier\n label: Cashier\n - value: superadmin\n label: Superadmin\n searchKeys:\n - username\n - firstName\n - lastName\n - email\n searchPlaceholder: Filter users...\n actions:\n - id: edit\n label: Edit\n - id: delete\n label: Delete\n bulkActions:\n _if:\n - _state: serverMode\n - - id: delete\n label: Delete selected\n disabled:\n _state: bulkDisabled\n - id: status\n label: Change status\n disabled:\n _state: bulkDisabled\n - - id: delete\n label: Delete selected\n disabled: true\n view:\n _state: tableView\n minWidth: 950\n events:\n onRowAction:\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: editorBaseline\n value:\n username:\n _state: draft.username\n firstName:\n _state: draft.firstName\n lastName:\n _state: draft.lastName\n email:\n _state: draft.email\n phoneNumber:\n _state: draft.phoneNumber\n status:\n _state: draft.status\n role:\n _state: draft.role\n - action: SetState\n params:\n path: editorOpen\n value:\n _eq:\n - _state: draft.action\n - edit\n - action: SetState\n params:\n path: deleteOpen\n value:\n _eq:\n - _state: draft.action\n - delete\n onBulkAction:\n - action: SetState\n params:\n path: bulkRequest\n value:\n _event: values\n onSelectionChange:\n - action: SetState\n params:\n path: selectionEvent\n value:\n _event: values\n - action: SetState\n params:\n path: selectedIds\n value:\n _state: selectionEvent.ids\n onViewChange:\n - action: SetState\n params:\n path: tableView\n value:\n _event: value\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: bulkUnavailable\n muted: true\n size: sm\n - type: Button\n visible:\n _state: serverMode\n props:\n label: Reload first page\n variant: outline\n disabled:\n _or:\n - _state: loading\n - _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: reloadRequested\n value:\n _not:\n _state: reloadRequested\n - type: Modal\n props:\n open:\n _state: bulkOpen\n pending:\n _state: saving\n title:\n _if:\n - _eq:\n - _state: bulkAction\n - delete\n - Delete selected records?\n - Change selected status?\n description: Review the selected IDs, versions and change before confirming.\n children:\n - type: Field\n visible:\n _eq:\n - _state: bulkAction\n - status\n props:\n name: bulkStatus\n label: New status\n kind: select\n value:\n _bindState: bulkStatus\n disabled:\n _state: saving\n options:\n - value: active\n label: Active\n - value: inactive\n label: Inactive\n - value: invited\n label: Invited\n - value: suspended\n label: Suspended\n - type: Paragraph\n props:\n text:\n _state: bulkSummary\n className: whitespace-pre-wrap break-all max-h-48 overflow-auto font-mono\n text-xs\n - type: Paragraph\n visible:\n _state: bulkError\n props:\n text:\n _state: bulkError.message\n className: text-destructive\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Button\n props:\n label: Confirm batch\n disabled:\n _state: bulkConfirmDisabled\n events:\n onClick:\n - action: SetState\n params:\n path: bulkSubmit\n value:\n _not:\n _state: bulkSubmit\n events:\n onClose:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Drawer\n props:\n open:\n _state: editorOpen\n pending:\n _state: saving\n title: Create or edit user\n description: Update the details below. Click save when you’re done.\n children:\n - type: Form\n props:\n label: Record details\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: username\n label: Username\n kind: text\n value:\n _bindState: draft.username\n required: true\n - type: Field\n props:\n name: firstName\n label: First name\n kind: text\n value:\n _bindState: draft.firstName\n required: true\n - type: Field\n props:\n name: lastName\n label: Last name\n kind: text\n value:\n _bindState: draft.lastName\n required: true\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n value:\n _bindState: draft.email\n required: true\n - type: Field\n props:\n name: phoneNumber\n label: Phone Number\n kind: text\n value:\n _bindState: draft.phoneNumber\n required: true\n - type: Field\n props:\n name: status\n label: Status\n kind: select\n value:\n _bindState: draft.status\n required: true\n options:\n - value: active\n label: Active\n - value: inactive\n label: Inactive\n - value: invited\n label: Invited\n - value: suspended\n label: Suspended\n - type: Field\n props:\n name: role\n label: Role\n kind: select\n value:\n _bindState: draft.role\n required: true\n options:\n - value: admin\n label: Admin\n - value: manager\n label: Manager\n - value: cashier\n label: Cashier\n - value: superadmin\n label: Superadmin\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n size: sm\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save changes\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: Request\n params:\n connectionId: users-db\n request:\n id: mutate-users\n connectionId: users-db\n payload:\n operation:\n _if:\n - _eq:\n - _state: draft.action\n - create\n - InsertOne\n - UpdateOne\n filter:\n id:\n _state: draft.id\n data:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: users-db\n request:\n id: load-users\n connectionId: users-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: discardEditorOpen\n value:\n _computed: editorDirty\n - action: SetState\n params:\n path: editorOpen\n value:\n _computed: editorDirty\n - type: Modal\n props:\n open:\n _state: deleteOpen\n pending:\n _state: saving\n title: Delete this record?\n description: This action cannot be undone. The record will be permanently\n removed.\n children:\n - type: Paragraph\n visible:\n _state: uiError\n props:\n text:\n _state: uiError.message\n className: text-destructive\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - type: Button\n props:\n label: Delete\n variant: destructive\n disabled:\n _state: saving\n events:\n onClick:\n - action: Request\n params:\n connectionId: users-db\n request:\n id: mutate-users\n connectionId: users-db\n payload:\n operation: DeleteOne\n filter:\n id:\n _state: draft.id\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: users-db\n request:\n id: load-users\n connectionId: users-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n props:\n headerLinks:\n - label: Users\n href: /users\n appearance: admin\n routes:\n - label: Users\n href: /users\n theme:\n _state: theme\n direction:\n _state: direction\n font:\n _state: font\n - type: Modal\n props:\n open:\n _state: discardEditorOpen\n pending:\n _state: saving\n title: Discard unsaved changes?\n description: Your edits will be lost if you discard them.\n events:\n onClose: &a1\n - &a2\n action: SetState\n params:\n path: discardEditorOpen\n value: false\n children:\n - type: Button\n props:\n label: Stay\n variant: outline\n events:\n onClick: *a1\n - type: Button\n props:\n label: Discard\n variant: destructive\n events:\n onClick:\n - *a2\n - action: SetState\n params:\n path: editorOpen\n value: false\n urlState:\n tableView:\n param: view\n default: \"\"\n computed:\n editorDirty:\n _not:\n _and:\n - _eq:\n - _if:\n - _state: draft.username\n - _state: draft.username\n - \"\"\n - _if:\n - _state: editorBaseline.username\n - _state: editorBaseline.username\n - \"\"\n - _eq:\n - _if:\n - _state: draft.firstName\n - _state: draft.firstName\n - \"\"\n - _if:\n - _state: editorBaseline.firstName\n - _state: editorBaseline.firstName\n - \"\"\n - _eq:\n - _if:\n - _state: draft.lastName\n - _state: draft.lastName\n - \"\"\n - _if:\n - _state: editorBaseline.lastName\n - _state: editorBaseline.lastName\n - \"\"\n - _eq:\n - _if:\n - _state: draft.email\n - _state: draft.email\n - \"\"\n - _if:\n - _state: editorBaseline.email\n - _state: editorBaseline.email\n - \"\"\n - _eq:\n - _if:\n - _state: draft.phoneNumber\n - _state: draft.phoneNumber\n - \"\"\n - _if:\n - _state: editorBaseline.phoneNumber\n - _state: editorBaseline.phoneNumber\n - \"\"\n - _eq:\n - _if:\n - _state: draft.status\n - _state: draft.status\n - \"\"\n - _if:\n - _state: editorBaseline.status\n - _state: editorBaseline.status\n - \"\"\n - _eq:\n - _if:\n - _state: draft.role\n - _state: draft.role\n - \"\"\n - _if:\n - _state: editorBaseline.role\n - _state: editorBaseline.role\n - \"\"\nconnections:\n - id: users-db\n type: NowAPI.Collection\n",
|
|
19
|
+
"type": "registry:lib"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "lib/uibot/templates/admin-users.uibot.json",
|
|
23
|
+
"target": "lib/uibot/templates/admin-users.uibot.json",
|
|
24
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"admin-users\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"admin-users.uibot.yaml\",\n \"contract\": {\n \"name\": \"admin-users\",\n \"description\": \"Members & records: shared UiBot Admin page source.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"admin-users\",\n \"成员与记录管理\",\n \"Members & records\",\n \"collaboration\",\n \"data\",\n \"members\",\n \"table\"\n ],\n \"composedFrom\": [\n \"PageLayout\",\n \"Box\",\n \"Heading\",\n \"Paragraph\",\n \"Button\",\n \"DataTable\",\n \"Modal\",\n \"Field\",\n \"Drawer\",\n \"Form\",\n \"Form.Submit\"\n ]\n }\n }\n}\n",
|
|
25
|
+
"type": "registry:lib"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"meta": {
|
|
29
|
+
"uibot": {
|
|
30
|
+
"schema": "uibot.registry.item.v1",
|
|
31
|
+
"item": "admin-users",
|
|
32
|
+
"channel": "public",
|
|
33
|
+
"template": {
|
|
34
|
+
"file": "admin-users.uibot.yaml",
|
|
35
|
+
"contract": {
|
|
36
|
+
"name": "admin-users",
|
|
37
|
+
"description": "Members & records: shared UiBot Admin page source.",
|
|
38
|
+
"level": "L4",
|
|
39
|
+
"category": "page",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"admin-users",
|
|
42
|
+
"成员与记录管理",
|
|
43
|
+
"Members & records",
|
|
44
|
+
"collaboration",
|
|
45
|
+
"data",
|
|
46
|
+
"members",
|
|
47
|
+
"table"
|
|
48
|
+
],
|
|
49
|
+
"composedFrom": [
|
|
50
|
+
"PageLayout",
|
|
51
|
+
"Box",
|
|
52
|
+
"Heading",
|
|
53
|
+
"Paragraph",
|
|
54
|
+
"Button",
|
|
55
|
+
"DataTable",
|
|
56
|
+
"Modal",
|
|
57
|
+
"Field",
|
|
58
|
+
"Drawer",
|
|
59
|
+
"Form",
|
|
60
|
+
"Form.Submit"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "auth-01",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Centered card: paired login and signup pages with a shared layout and host-owned routes.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"react@19.3.0"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"@uibot/auth-primitives"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "components/uibot/auth/auth-01.tsx",
|
|
15
|
+
"target": "components/uibot/auth/auth-01.tsx",
|
|
16
|
+
"content": "import { AuthPage, type AuthPageProps } from \"./auth-page\";\nexport type { AuthMode, AuthPageProps, AuthProvider, AuthSubmission } from \"./auth-page\";\nexport default function Auth01(props: AuthPageProps) {\n return <AuthPage {...props} layout=\"centered\" />;\n}\n",
|
|
17
|
+
"type": "registry:component"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"meta": {
|
|
21
|
+
"composite": true,
|
|
22
|
+
"channel": "public"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "auth-02",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Brand split: paired login and signup pages with a shared layout and host-owned routes.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"react@19.3.0"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"@uibot/auth-primitives"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "components/uibot/auth/auth-02.tsx",
|
|
15
|
+
"target": "components/uibot/auth/auth-02.tsx",
|
|
16
|
+
"content": "import { AuthPage, type AuthPageProps } from \"./auth-page\";\nexport type { AuthMode, AuthPageProps, AuthProvider, AuthSubmission } from \"./auth-page\";\nexport default function Auth02(props: AuthPageProps) {\n return <AuthPage {...props} layout=\"split\" />;\n}\n",
|
|
17
|
+
"type": "registry:component"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"meta": {
|
|
21
|
+
"composite": true,
|
|
22
|
+
"channel": "public"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "auth-03",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Muted background: paired login and signup pages with a shared layout and host-owned routes.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"react@19.3.0"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"@uibot/auth-primitives"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "components/uibot/auth/auth-03.tsx",
|
|
15
|
+
"target": "components/uibot/auth/auth-03.tsx",
|
|
16
|
+
"content": "import { AuthPage, type AuthPageProps } from \"./auth-page\";\nexport type { AuthMode, AuthPageProps, AuthProvider, AuthSubmission } from \"./auth-page\";\nexport default function Auth03(props: AuthPageProps) {\n return <AuthPage {...props} layout=\"muted\" />;\n}\n",
|
|
17
|
+
"type": "registry:component"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"meta": {
|
|
21
|
+
"composite": true,
|
|
22
|
+
"channel": "public"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "auth-04",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Image card: paired login and signup pages with a shared layout and host-owned routes.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"react@19.3.0"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"@uibot/auth-primitives"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "components/uibot/auth/auth-04.tsx",
|
|
15
|
+
"target": "components/uibot/auth/auth-04.tsx",
|
|
16
|
+
"content": "import { AuthPage, type AuthPageProps } from \"./auth-page\";\nexport type { AuthMode, AuthPageProps, AuthProvider, AuthSubmission } from \"./auth-page\";\nexport default function Auth04(props: AuthPageProps) {\n return <AuthPage {...props} layout=\"image-card\" />;\n}\n",
|
|
17
|
+
"type": "registry:component"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"meta": {
|
|
21
|
+
"composite": true,
|
|
22
|
+
"channel": "public"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "auth-05",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Email and social: paired login and signup pages with a shared layout and host-owned routes.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"react@19.3.0"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"@uibot/auth-primitives"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "components/uibot/auth/auth-05.tsx",
|
|
15
|
+
"target": "components/uibot/auth/auth-05.tsx",
|
|
16
|
+
"content": "import { AuthPage, type AuthPageProps } from \"./auth-page\";\nexport type { AuthMode, AuthPageProps, AuthProvider, AuthSubmission } from \"./auth-page\";\nexport default function Auth05(props: AuthPageProps) {\n return <AuthPage {...props} layout=\"email\" />;\n}\n",
|
|
17
|
+
"type": "registry:component"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"meta": {
|
|
21
|
+
"composite": true,
|
|
22
|
+
"channel": "public"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "auth-centered",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Centered sign in: shared Admin forms, native validation and host-owned authentication.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/feedback",
|
|
9
|
+
"@uibot/field",
|
|
10
|
+
"@uibot/form",
|
|
11
|
+
"@uibot/layout",
|
|
12
|
+
"@uibot/nav"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "lib/uibot/templates/auth-centered.uibot.yaml",
|
|
17
|
+
"target": "lib/uibot/templates/auth-centered.uibot.yaml",
|
|
18
|
+
"content": "version: \"2.0\"\npages:\n - id: auth-centered-login\n path: /auth-centered-login\n title: Login\n state:\n saving: false\n currentPath: /auth-centered-login\n notice: \"\"\n showSso: false\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Login\n - type: Paragraph\n props:\n text: Enter your email and password below to log into your account.\n muted: true\n size: sm\n - type: Form\n props:\n label: Login\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Field\n props:\n name: password\n label: Password\n kind: password\n required: true\n - type: Form.Submit\n props:\n label: Login\n full: true\n disabled: false\n events:\n onSubmit:\n - action: SetState\n params:\n path: notice\n value: 本地校验完成,未执行认证、发信或密码变更。Local validation only; no authentication, email or\n credential change occurred.\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n visible: false\n - type: Link\n props:\n label: Create account\n href: /sign-up\n visible: false\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - type: Paragraph\n props:\n text:\n _state: notice\n - type: Button\n visible:\n _state: showSso\n props:\n label: 企业登录 / Enterprise sign in\n variant: outline\n events:\n onClick:\n - action: SetState\n params:\n path: notice\n value: 企业身份服务需由宿主接入。Connect your host identity provider.\n",
|
|
19
|
+
"type": "registry:lib"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "lib/uibot/templates/auth-centered.uibot.json",
|
|
23
|
+
"target": "lib/uibot/templates/auth-centered.uibot.json",
|
|
24
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"auth-centered\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"auth-centered.uibot.yaml\",\n \"contract\": {\n \"name\": \"auth-centered\",\n \"description\": \"Centered sign in: shared Admin forms, native validation and host-owned authentication.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"auth-centered\",\n \"居中登录\",\n \"Centered sign in\",\n \"auth\",\n \"login\"\n ],\n \"composedFrom\": [\n \"Box\",\n \"Heading\",\n \"Paragraph\",\n \"Form\",\n \"Field\",\n \"Form.Submit\",\n \"Link\",\n \"Button\"\n ]\n }\n }\n}\n",
|
|
25
|
+
"type": "registry:lib"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"meta": {
|
|
29
|
+
"uibot": {
|
|
30
|
+
"schema": "uibot.registry.item.v1",
|
|
31
|
+
"item": "auth-centered",
|
|
32
|
+
"channel": "public",
|
|
33
|
+
"template": {
|
|
34
|
+
"file": "auth-centered.uibot.yaml",
|
|
35
|
+
"contract": {
|
|
36
|
+
"name": "auth-centered",
|
|
37
|
+
"description": "Centered sign in: shared Admin forms, native validation and host-owned authentication.",
|
|
38
|
+
"level": "L4",
|
|
39
|
+
"category": "page",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"auth-centered",
|
|
42
|
+
"居中登录",
|
|
43
|
+
"Centered sign in",
|
|
44
|
+
"auth",
|
|
45
|
+
"login"
|
|
46
|
+
],
|
|
47
|
+
"composedFrom": [
|
|
48
|
+
"Box",
|
|
49
|
+
"Heading",
|
|
50
|
+
"Paragraph",
|
|
51
|
+
"Form",
|
|
52
|
+
"Field",
|
|
53
|
+
"Form.Submit",
|
|
54
|
+
"Link",
|
|
55
|
+
"Button"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "auth-enterprise",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "Enterprise sign in: shared Admin forms, native validation and host-owned authentication.",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/feedback",
|
|
9
|
+
"@uibot/field",
|
|
10
|
+
"@uibot/form",
|
|
11
|
+
"@uibot/layout",
|
|
12
|
+
"@uibot/nav"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "lib/uibot/templates/auth-enterprise.uibot.yaml",
|
|
17
|
+
"target": "lib/uibot/templates/auth-enterprise.uibot.yaml",
|
|
18
|
+
"content": "version: \"2.0\"\npages:\n - id: auth-enterprise-login\n path: /auth-enterprise-login\n title: Login\n state:\n saving: false\n currentPath: /auth-enterprise-login\n notice: \"\"\n showSso: true\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Login\n - type: Paragraph\n props:\n text: Enter your email and password below to log into your account.\n muted: true\n size: sm\n - type: Form\n props:\n label: Login\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Field\n props:\n name: password\n label: Password\n kind: password\n required: true\n - type: Form.Submit\n props:\n label: Login\n full: true\n disabled: false\n events:\n onSubmit:\n - action: SetState\n params:\n path: notice\n value: 本地校验完成,未执行认证、发信或密码变更。Local validation only; no authentication, email or\n credential change occurred.\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n visible: false\n - type: Link\n props:\n label: Create account\n href: /sign-up\n visible: false\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - type: Paragraph\n props:\n text:\n _state: notice\n - type: Button\n visible:\n _state: showSso\n props:\n label: 企业登录 / Enterprise sign in\n variant: outline\n events:\n onClick:\n - action: SetState\n params:\n path: notice\n value: 企业身份服务需由宿主接入。Connect your host identity provider.\n",
|
|
19
|
+
"type": "registry:lib"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "lib/uibot/templates/auth-enterprise.uibot.json",
|
|
23
|
+
"target": "lib/uibot/templates/auth-enterprise.uibot.json",
|
|
24
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"auth-enterprise\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"auth-enterprise.uibot.yaml\",\n \"contract\": {\n \"name\": \"auth-enterprise\",\n \"description\": \"Enterprise sign in: shared Admin forms, native validation and host-owned authentication.\",\n \"level\": \"L4\",\n \"category\": \"page\",\n \"keywords\": [\n \"auth-enterprise\",\n \"企业登录入口\",\n \"Enterprise sign in\",\n \"auth\",\n \"login\"\n ],\n \"composedFrom\": [\n \"Box\",\n \"Heading\",\n \"Paragraph\",\n \"Form\",\n \"Field\",\n \"Form.Submit\",\n \"Link\",\n \"Button\"\n ]\n }\n }\n}\n",
|
|
25
|
+
"type": "registry:lib"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"meta": {
|
|
29
|
+
"uibot": {
|
|
30
|
+
"schema": "uibot.registry.item.v1",
|
|
31
|
+
"item": "auth-enterprise",
|
|
32
|
+
"channel": "public",
|
|
33
|
+
"template": {
|
|
34
|
+
"file": "auth-enterprise.uibot.yaml",
|
|
35
|
+
"contract": {
|
|
36
|
+
"name": "auth-enterprise",
|
|
37
|
+
"description": "Enterprise sign in: shared Admin forms, native validation and host-owned authentication.",
|
|
38
|
+
"level": "L4",
|
|
39
|
+
"category": "page",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"auth-enterprise",
|
|
42
|
+
"企业登录入口",
|
|
43
|
+
"Enterprise sign in",
|
|
44
|
+
"auth",
|
|
45
|
+
"login"
|
|
46
|
+
],
|
|
47
|
+
"composedFrom": [
|
|
48
|
+
"Box",
|
|
49
|
+
"Heading",
|
|
50
|
+
"Paragraph",
|
|
51
|
+
"Form",
|
|
52
|
+
"Field",
|
|
53
|
+
"Form.Submit",
|
|
54
|
+
"Link",
|
|
55
|
+
"Button"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|