@allbluecn/web-app 0.9.1 → 0.9.3
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/package.json +32 -35
- package/src/__tests__/components/reference-inline.test.tsx +1 -1
- package/src/components/agents/agents-page.tsx +1 -1
- package/src/components/animated-icons/layout-panel-top.tsx +1 -1
- package/src/components/auth/auth-layout.tsx +1 -1
- package/src/components/devtools/ai-chat-panel.tsx +54 -0
- package/src/components/devtools/devtools-panel.tsx +100 -0
- package/src/components/{ui-shared/skeleton.tsx → devtools/index.ts} +3 -13
- package/src/components/devtools/session-panel.tsx +102 -0
- package/src/components/knowledge/dialog/knowledge-form-dialog.tsx +1 -1
- package/src/components/knowledge/editor/doc-header.tsx +1 -1
- package/src/components/knowledge-public/sharers-avatar-group.tsx +1 -1
- package/src/components/layout/sidebar-03/__tests__/nav-workspace.test.tsx +1 -1
- package/src/components/layout/sidebar-03/app-sidebar.tsx +1 -1
- package/src/components/layout/sidebar-03/nav-workspace.tsx +1 -1
- package/src/components/layout/sidebar-03/user-menu.tsx +1 -1
- package/src/components/magicui/animated-theme-toggler.tsx +1 -1
- package/src/components/magicui/grid-pattern.tsx +1 -1
- package/src/components/project/create-project-dialog.tsx +1 -1
- package/src/components/project/invite-member-dialog.tsx +1 -1
- package/src/components/project/project-activity-list.tsx +1 -1
- package/src/components/project/project-member-manager.tsx +1 -1
- package/src/components/settings/personal-team/account/avatar/notion-avatar.tsx +2 -2
- package/src/components/settings/personal-team/team/team-member-list.tsx +1 -1
- package/src/components/shadcn-space/blocks/hero-01/header.tsx +1 -1
- package/src/components/{ui-shared → shared-kit/auth}/auth-layout.tsx +1 -1
- package/src/components/{ui-shared → shared-kit/decorative}/grid-pattern.tsx +1 -1
- package/src/components/{ui-shared → shared-kit/dialogs}/name-confirm-dialog.tsx +6 -5
- package/src/components/{shared → shared-kit/icons}/__tests__/lucide-curated-icons.test.ts +2 -2
- package/src/components/{shared → shared-kit/icons}/__tests__/lucide-icon-data.test.ts +1 -1
- package/src/components/{shared → shared-kit/icons}/__tests__/lucide-icon-picker.test.tsx +5 -5
- package/src/components/{ui-shared → shared-kit}/index.ts +9 -6
- package/src/components/{ui-shared → shared-kit/layout}/layout-panel-top.tsx +1 -1
- package/src/components/{ui-shared → shared-kit/navigation}/nav-float-button.tsx +2 -2
- package/src/components/{ui-shared → shared-kit/theme}/animated-theme-toggler.tsx +1 -1
- package/src/components/story/columns.tsx +1 -1
- package/src/components/story/create-story-dialog.tsx +2 -2
- package/src/components/story/detail/__tests__/activity-timeline.test.tsx +1 -1
- package/src/components/story/detail/activity-timeline.tsx +2 -2
- package/src/components/story/detail/comment-item.tsx +1 -1
- package/src/components/story/detail/story-detail-body.tsx +2 -2
- package/src/components/story/detail/story-detail-toolbar/associated-attachments-panel.tsx +1 -1
- package/src/components/story/display/group-resolver.tsx +2 -2
- package/src/components/story/filters/applied-filters.tsx +1 -1
- package/src/components/story/inline-editors/assignee-editor.tsx +1 -1
- package/src/components/story/inline-editors/story-select-dialog.tsx +1 -1
- package/src/components/story/relations/story-ref-row.tsx +2 -2
- package/src/components/story/story-panel-header.tsx +1 -1
- package/src/components/story/story-toolbar.tsx +1 -1
- package/src/components/story/transfer-story-popover.tsx +1 -1
- package/src/components/story/views/create-view-dialog.tsx +1 -1
- package/src/components/story/views/kanban-card.tsx +1 -1
- package/src/components/story/views/story-list/index.tsx +1 -1
- package/src/components/story/views/story-list/inline-story-creator.tsx +1 -1
- package/src/components/tiptap/mindmap/mind-map.tsx +2 -2
- package/src/components/tiptap/mindmap/mindmap-fullscreen-dialog.tsx +1 -1
- package/src/components/tiptap/node/annotation-node/annotation-node-view.tsx +1 -1
- package/src/components/tiptap/node/doc-card-extension.tsx +2 -2
- package/src/components/tiptap/notion-like/notion-like-editor-header.tsx +2 -2
- package/src/components/tiptap/ui/doc-reference-interaction/doc-reference-interaction.tsx +2 -2
- package/src/components/tiptap/ui/mention-dropdown-menu/mention-dropdown-menu.tsx +2 -2
- package/src/components/tiptap/ui/reference-dropdown-menu/reference-dropdown-menu.tsx +1 -1
- package/src/components/tiptap/ui/slash-dropdown-menu/slash-dropdown-menu.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +216 -1
- package/src/components/ui/badge.tsx +66 -1
- package/src/components/ui/button.tsx +84 -1
- package/src/components/ui/card.tsx +120 -1
- package/src/components/ui/checkbox.tsx +50 -1
- package/src/components/ui/context-menu.tsx +280 -1
- package/src/components/ui/dialog.tsx +183 -1
- package/src/components/ui/dropdown-menu.tsx +286 -1
- package/src/components/ui/empty.tsx +121 -1
- package/src/components/ui/input.tsx +36 -1
- package/src/components/ui/label.tsx +39 -1
- package/src/components/ui/popover.tsx +106 -1
- package/src/components/ui/resizable.tsx +67 -1
- package/src/components/ui/select.tsx +207 -1
- package/src/components/ui/sidebar.tsx +708 -1
- package/src/components/ui/skeleton.tsx +30 -1
- package/src/components/ui/sonner.tsx +37 -1
- package/src/components/ui/switch.tsx +48 -1
- package/src/components/ui/textarea.tsx +35 -1
- package/src/components/ui/tooltip.tsx +72 -1
- package/src/components/workspace/create-workspace-dialog.tsx +1 -1
- package/src/lib/auth/auth-client.ts +1 -1
- package/src/lib/changelog/sdk-versions.ts +10 -3
- package/src/lib/perf.ts +1 -1
- package/src/lib/utils.ts +6 -1
- package/src/plugins/core/inspiration/pages/inspiration-page.tsx +1 -1
- package/src/plugins/core/inspiration/ui.tsx +1 -1
- package/src/plugins/core/prd/components/agent-input.tsx +3 -3
- package/src/plugins/core/prd/components/component-editor/collapsible-section.tsx +1 -1
- package/src/plugins/core/prd/components/component-editor/content-section.tsx +3 -3
- package/src/plugins/core/prd/components/component-editor/style-fields.tsx +3 -3
- package/src/plugins/core/prd/components/component-thumbnail.tsx +1 -1
- package/src/plugins/core/prd/components/dialog/create-prd-dialog.tsx +3 -3
- package/src/plugins/core/prd/components/dialog/prd-detail-client.tsx +4 -4
- package/src/plugins/core/prd/components/page-version-panel/components/create-version-dialog.tsx +2 -2
- package/src/plugins/core/prd/components/page-version-panel/components/delete-version-dialog.tsx +2 -2
- package/src/plugins/core/prd/components/page-version-panel/components/edit-version-dialog.tsx +2 -2
- package/src/plugins/core/prd/components/page-version-panel.tsx +9 -9
- package/src/plugins/core/prd/components/page-version-tree.tsx +5 -5
- package/src/plugins/core/prd/components/prd-agent-panel.tsx +3 -3
- package/src/plugins/core/prd/components/prd-comment-review-panel.tsx +7 -7
- package/src/plugins/core/prd/components/prd-component-editor-content.tsx +2 -2
- package/src/plugins/core/prd/components/prd-dashboard.tsx +8 -8
- package/src/plugins/core/prd/components/prd-doc-panel.tsx +2 -2
- package/src/plugins/core/prd/components/prd-editor-layout.tsx +4 -4
- package/src/plugins/core/prd/components/prd-filter-bar.tsx +1 -1
- package/src/plugins/core/prd/components/prd-left-sidebar.tsx +4 -4
- package/src/plugins/core/prd/components/prd-navigation.tsx +6 -6
- package/src/plugins/core/prd/components/prd-prototype-panel.tsx +2 -2
- package/src/plugins/core/prd/components/prd-right-sidebar.tsx +3 -3
- package/src/plugins/core/prd/components/prd-share-panel/components/single-version-share-card.tsx +7 -7
- package/src/plugins/core/prd/components/prd-share-panel.tsx +10 -10
- package/src/plugins/core/prd/components/prd-tree-page-tab.tsx +5 -5
- package/src/plugins/core/prd/components/prototype/PrototypeCanvas.tsx +2 -2
- package/src/plugins/core/prd/components/restore-version-dialog.tsx +2 -2
- package/src/plugins/core/prd/components/share/prd-share-client.tsx +1 -1
- package/src/plugins/core/prd/components/share/share-comment-panel.tsx +6 -6
- package/src/plugins/core/prd/components/share/share-comment-review-panel.tsx +2 -2
- package/src/plugins/core/prd/components/share/share-layout.tsx +1 -1
- package/src/plugins/core/prd/components/share/share-nav-bar.tsx +4 -4
- package/src/plugins/core/prd/components/share/share-password-gate.tsx +4 -4
- package/src/plugins/core/prd/components/share/share-prototype-view.tsx +1 -1
- package/src/plugins/core/prd/components/share/share-review-panel.tsx +5 -5
- package/src/plugins/core/prd/components/share/share-theme-toggle.tsx +1 -1
- package/src/plugins/core/prd/components/share/version-share-client.tsx +1 -1
- package/src/plugins/core/prd/pages/prd-detail-page.tsx +2 -2
- package/src/plugins/core/prd/pages/share-prd-page.tsx +1 -1
- package/src/plugins/core/prd/prd-nav.tsx +1 -1
- package/src/plugins/core/tags/nav-tag.tsx +7 -7
- package/src/plugins/core/tags/pages/tag-detail-page.tsx +1 -1
- package/src/plugins/core/tags/tag-badge.tsx +2 -2
- package/src/plugins/core/tags/tag-color-picker.tsx +1 -1
- package/src/plugins/core/tags/tag-manager.tsx +6 -6
- package/src/plugins/core/tags/tag-selector.tsx +3 -3
- package/src/providers/index.tsx +1 -1
- package/src/providers/timezone-provider.tsx +1 -1
- package/src/routes/__root.tsx +1 -1
- package/src/routes/_nav/acceptance-criteria/route.tsx +1 -1
- package/src/routes/_nav/apps/anyhub/$id/route.tsx +1 -1
- package/src/routes/_nav/apps/anyhub/route.tsx +1 -1
- package/src/routes/_nav/bugs/route.tsx +1 -1
- package/src/routes/_nav/dashboard/-components/avatar-group.tsx +1 -1
- package/src/routes/_nav/dashboard/route.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/$kbId/doc/$docId/route.lazy.tsx +1 -1
- package/src/routes/_nav/knowledge/index.lazy.tsx +1 -1
- package/src/routes/_nav/notion-like/route.tsx +1 -1
- package/src/routes/_nav/pricing-02/route.tsx +1 -1
- package/src/routes/_nav/projects/$projectId/$storyId/route.lazy.tsx +1 -1
- package/src/routes/_nav/projects/$projectId/index.lazy.tsx +3 -3
- package/src/routes/_nav/projects/$projectId/iterations/index.lazy.tsx +1 -1
- package/src/routes/_nav/projects/$projectId/settings/route.lazy.tsx +3 -3
- package/src/routes/_nav/route.lazy.tsx +1 -1
- package/src/routes/_nav/settings/general/route.lazy.tsx +1 -1
- package/src/routes/_nav/test-cases/route.tsx +1 -1
- package/src/routes/_nav/workspaces/$workspaceId/route.lazy.tsx +1 -1
- package/src/routes/_nav/workspaces/$workspaceId/settings/route.lazy.tsx +2 -2
- package/src/routes/_nav/workspaces/index.lazy.tsx +1 -1
- package/src/routes/invite/$token/route.lazy.tsx +1 -1
- package/src/server/__tests__/agent-client-graph.test.ts +1 -1
- package/src/components/shared/name-confirm-dialog.tsx +0 -1
- package/src/components/shared/nav-float-button.tsx +0 -1
- package/src/components/shared/placeholder-page.tsx +0 -1
- package/src/components/ui-shared/alert-dialog.tsx +0 -216
- package/src/components/ui-shared/avatar.tsx +0 -129
- package/src/components/ui-shared/badge.tsx +0 -66
- package/src/components/ui-shared/button.tsx +0 -84
- package/src/components/ui-shared/card.tsx +0 -120
- package/src/components/ui-shared/checkbox.tsx +0 -50
- package/src/components/ui-shared/context-menu.tsx +0 -280
- package/src/components/ui-shared/dialog.tsx +0 -183
- package/src/components/ui-shared/dropdown-menu.tsx +0 -286
- package/src/components/ui-shared/empty.tsx +0 -121
- package/src/components/ui-shared/input.tsx +0 -36
- package/src/components/ui-shared/item.tsx +0 -213
- package/src/components/ui-shared/kbd.tsx +0 -33
- package/src/components/ui-shared/label.tsx +0 -39
- package/src/components/ui-shared/popover.tsx +0 -106
- package/src/components/ui-shared/resizable.tsx +0 -67
- package/src/components/ui-shared/select.tsx +0 -207
- package/src/components/ui-shared/separator.tsx +0 -45
- package/src/components/ui-shared/sheet.tsx +0 -164
- package/src/components/ui-shared/sidebar.tsx +0 -708
- package/src/components/ui-shared/sonner.tsx +0 -37
- package/src/components/ui-shared/switch.tsx +0 -48
- package/src/components/ui-shared/textarea.tsx +0 -35
- package/src/components/ui-shared/tooltip.tsx +0 -72
- package/src/components/ui-shared/utils.ts +0 -6
- package/src/lib/utils.d.ts +0 -1
- package/src/plugins/.gen-manifest.json +0 -13
- package/src/plugins/modules.gen.ts +0 -20
- package/src/plugins/plugins.gen.ts +0 -20
- package/src/plugins/ui.gen.ts +0 -8
- package/src/routes/_nav/inspiration/route.tsx +0 -8
- package/src/routes/_nav/prd/$id/route.tsx +0 -9
- package/src/routes/_nav/prd/index.tsx +0 -9
- package/src/routes/_nav/prd/route.tsx +0 -8
- package/src/routes/_nav/tags/$id/route.tsx +0 -8
- package/src/routes/_nav/tags/index.tsx +0 -8
- package/src/routes/_nav/tags/route.tsx +0 -8
- package/src/routes/_nav/tags/settings/route.tsx +0 -9
- package/src/routes/share/prd/$prdId/route.tsx +0 -10
- package/src/types/open-file-viewer.d.ts +0 -14
- /package/src/components/{ui-shared → shared-kit/ai}/ai-command-button.tsx +0 -0
- /package/src/components/{ui-shared → shared-kit/ai}/ai-stream-text.tsx +0 -0
- /package/src/components/{ui-shared → shared-kit/auth}/auth-client.ts +0 -0
- /package/src/components/{ui-shared → shared-kit/avatars}/notion-avatar.tsx +0 -0
- /package/src/components/{ui-shared → shared-kit/avatars}/user-avatar.tsx +0 -0
- /package/src/components/{shared → shared-kit/data-viz}/contribution-graph-tooltip.tsx +0 -0
- /package/src/components/{shared → shared-kit/dev}/component-preview.tsx +0 -0
- /package/src/components/{ui-shared → shared-kit/hooks}/use-mobile.ts +0 -0
- /package/src/components/{shared → shared-kit/i18n}/language-switcher.tsx +0 -0
- /package/src/components/{shared → shared-kit/i18n}/translator-text.tsx +0 -0
- /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/curated-icons.ts +0 -0
- /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/icon-data.ts +0 -0
- /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/index.tsx +0 -0
- /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/lucide-icon-by-name.tsx +0 -0
- /package/src/components/{shared → shared-kit/icons}/lucide-icon-picker/panel.tsx +0 -0
- /package/src/components/{shared → shared-kit/loading}/wave-physics-loader.tsx +0 -0
- /package/src/components/{ui-shared → shared-kit/pages}/placeholder-page.tsx +0 -0
- /package/src/components/{ui-shared → shared-kit/reference}/reference-inline.tsx +0 -0
- /package/src/components/{ui-shared → shared-kit/reference}/reference-search.tsx +0 -0
- /package/src/components/{shared → shared-kit/theme}/theme-toggle.tsx +0 -0
- /package/src/components/{shared → shared-kit/timezone}/timezone-bootstrap.tsx +0 -0
- /package/src/components/{ui-shared → shared-kit/timezone}/timezone-provider.tsx +0 -0
- /package/src/components/{shared → shared-kit/timezone}/timezone-select.tsx +0 -0
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// AllBlue - 理想之海
|
|
3
|
+
// Copyright (C) 2026 AllBlue Contributors
|
|
4
|
+
//
|
|
5
|
+
// This program is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU Affero General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
import { cn } from "@/lib/utils"
|
|
19
|
+
|
|
20
|
+
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
|
|
21
|
+
return (
|
|
22
|
+
<div
|
|
23
|
+
data-slot="skeleton"
|
|
24
|
+
className={cn("animate-pulse rounded-md bg-muted", className)}
|
|
25
|
+
{...props}
|
|
26
|
+
/>
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { Skeleton }
|
|
@@ -1 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// AllBlue - 理想之海
|
|
3
|
+
// Copyright (C) 2026 AllBlue Contributors
|
|
4
|
+
//
|
|
5
|
+
// This program is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU Affero General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
import { Toaster as Sonner, type ToasterProps, toast } from "sonner"
|
|
19
|
+
import { CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon, Loader2Icon } from "lucide-react"
|
|
20
|
+
|
|
21
|
+
const Toaster = ({ ...props }: ToasterProps) => {
|
|
22
|
+
return (
|
|
23
|
+
<Sonner
|
|
24
|
+
className="toaster group"
|
|
25
|
+
icons={{
|
|
26
|
+
success: <CircleCheckIcon className="size-4 text-emerald-600 dark:text-emerald-500" />,
|
|
27
|
+
info: <InfoIcon className="size-4 text-sky-600 dark:text-sky-500" />,
|
|
28
|
+
warning: <TriangleAlertIcon className="size-4 text-amber-600 dark:text-amber-500" />,
|
|
29
|
+
error: <OctagonXIcon className="size-4 text-red-600 dark:text-red-500" />,
|
|
30
|
+
loading: <Loader2Icon className="size-4 animate-spin" />,
|
|
31
|
+
}}
|
|
32
|
+
{...props}
|
|
33
|
+
/>
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { Toaster, toast }
|
|
@@ -1 +1,48 @@
|
|
|
1
|
-
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// AllBlue - 理想之海
|
|
3
|
+
// Copyright (C) 2026 AllBlue Contributors
|
|
4
|
+
//
|
|
5
|
+
// This program is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU Affero General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
import * as React from "react"
|
|
19
|
+
import { Switch as SwitchPrimitive } from "radix-ui"
|
|
20
|
+
|
|
21
|
+
import { cn } from "@/lib/utils"
|
|
22
|
+
|
|
23
|
+
function Switch({
|
|
24
|
+
className,
|
|
25
|
+
size = "default",
|
|
26
|
+
...props
|
|
27
|
+
}: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
28
|
+
size?: "sm" | "default"
|
|
29
|
+
}) {
|
|
30
|
+
return (
|
|
31
|
+
<SwitchPrimitive.Root
|
|
32
|
+
data-slot="switch"
|
|
33
|
+
data-size={size}
|
|
34
|
+
className={cn(
|
|
35
|
+
"peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
36
|
+
className
|
|
37
|
+
)}
|
|
38
|
+
{...props}
|
|
39
|
+
>
|
|
40
|
+
<SwitchPrimitive.Thumb
|
|
41
|
+
data-slot="switch-thumb"
|
|
42
|
+
className="pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-[state=checked]:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[calc(100%-2px)] dark:data-[state=checked]:bg-primary-foreground group-data-[size=default]/switch:data-[state=unchecked]:translate-x-0 group-data-[size=sm]/switch:data-[state=unchecked]:translate-x-0 dark:data-[state=unchecked]:bg-foreground"
|
|
43
|
+
/>
|
|
44
|
+
</SwitchPrimitive.Root>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { Switch }
|
|
@@ -1 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// AllBlue - 理想之海
|
|
3
|
+
// Copyright (C) 2026 AllBlue Contributors
|
|
4
|
+
//
|
|
5
|
+
// This program is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU Affero General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
import * as React from "react"
|
|
19
|
+
|
|
20
|
+
import { cn } from "@/lib/utils"
|
|
21
|
+
|
|
22
|
+
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
|
|
23
|
+
return (
|
|
24
|
+
<textarea
|
|
25
|
+
data-slot="textarea"
|
|
26
|
+
className={cn(
|
|
27
|
+
"flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
28
|
+
className
|
|
29
|
+
)}
|
|
30
|
+
{...props}
|
|
31
|
+
/>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { Textarea }
|
|
@@ -1 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// AllBlue - 理想之海
|
|
3
|
+
// Copyright (C) 2026 AllBlue Contributors
|
|
4
|
+
//
|
|
5
|
+
// This program is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU Affero General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU Affero General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
|
+
|
|
18
|
+
import * as React from "react"
|
|
19
|
+
import { Tooltip as TooltipPrimitive } from "radix-ui"
|
|
20
|
+
|
|
21
|
+
import { cn } from "@/lib/utils"
|
|
22
|
+
|
|
23
|
+
function TooltipProvider({
|
|
24
|
+
delayDuration = 0,
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
|
|
27
|
+
return (
|
|
28
|
+
<TooltipPrimitive.Provider
|
|
29
|
+
data-slot="tooltip-provider"
|
|
30
|
+
delayDuration={delayDuration}
|
|
31
|
+
{...props}
|
|
32
|
+
/>
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function Tooltip({
|
|
37
|
+
...props
|
|
38
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Root>) {
|
|
39
|
+
return <TooltipPrimitive.Root data-slot="tooltip" {...props} />
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function TooltipTrigger({
|
|
43
|
+
...props
|
|
44
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
|
|
45
|
+
return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function TooltipContent({
|
|
49
|
+
className,
|
|
50
|
+
sideOffset = 0,
|
|
51
|
+
children,
|
|
52
|
+
...props
|
|
53
|
+
}: React.ComponentProps<typeof TooltipPrimitive.Content>) {
|
|
54
|
+
return (
|
|
55
|
+
<TooltipPrimitive.Portal>
|
|
56
|
+
<TooltipPrimitive.Content
|
|
57
|
+
data-slot="tooltip-content"
|
|
58
|
+
sideOffset={sideOffset}
|
|
59
|
+
className={cn(
|
|
60
|
+
"z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
61
|
+
className
|
|
62
|
+
)}
|
|
63
|
+
{...props}
|
|
64
|
+
>
|
|
65
|
+
{children}
|
|
66
|
+
<TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" />
|
|
67
|
+
</TooltipPrimitive.Content>
|
|
68
|
+
</TooltipPrimitive.Portal>
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
DialogHeader,
|
|
29
29
|
DialogTitle,
|
|
30
30
|
} from "@/components/ui/dialog";
|
|
31
|
-
import { LucideIconPicker } from "@/components/shared/lucide-icon-picker";
|
|
31
|
+
import { LucideIconPicker } from "@/components/shared-kit/icons/lucide-icon-picker";
|
|
32
32
|
import { createWorkspaceFn } from "@/server/serverFns/workspace";
|
|
33
33
|
import { createWorkspaceSchema, type CreateWorkspaceValues } from "./schemas/create-workspace";
|
|
34
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@/components/
|
|
1
|
+
export * from '@/components/shared-kit/auth/auth-client'
|
|
@@ -95,14 +95,14 @@ export const SDK_GROUPS: SdkGroup[] = [
|
|
|
95
95
|
"items": [
|
|
96
96
|
{
|
|
97
97
|
"name": "@allbluecn/web-app",
|
|
98
|
-
"version": "v0.9.
|
|
98
|
+
"version": "v0.9.3",
|
|
99
99
|
"lastUpdate": "Sep 3, 2026",
|
|
100
100
|
"source": "apps/web/package.json",
|
|
101
101
|
"docsUrl": "https://github.com/allbluecn/allblue"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"name": "@allbluecn/kernel",
|
|
105
|
-
"version": "v0.5.
|
|
105
|
+
"version": "v0.5.2",
|
|
106
106
|
"lastUpdate": "Sep 3, 2026",
|
|
107
107
|
"source": "packages/kernel/package.json",
|
|
108
108
|
"docsUrl": "https://github.com/allbluecn/allblue"
|
|
@@ -146,8 +146,15 @@ export const SDK_GROUPS: SdkGroup[] = [
|
|
|
146
146
|
"name": "TipTap",
|
|
147
147
|
"version": "v3.27.4",
|
|
148
148
|
"lastUpdate": "Sep 3, 2026",
|
|
149
|
-
"source": "
|
|
149
|
+
"source": "apps/web/package.json#dependencies",
|
|
150
150
|
"docsUrl": "https://tiptap.dev/"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "Lucide React",
|
|
154
|
+
"version": "v1.27.0",
|
|
155
|
+
"lastUpdate": "Sep 3, 2026",
|
|
156
|
+
"source": "apps/web/package.json#dependencies",
|
|
157
|
+
"docsUrl": "https://lucide.dev/"
|
|
151
158
|
}
|
|
152
159
|
]
|
|
153
160
|
}
|
package/src/lib/perf.ts
CHANGED
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
// 全站虚拟化/分页门槛常量统一自 @allbluecn/
|
|
18
|
+
// 全站虚拟化/分页门槛常量统一自 @allbluecn/kernel(web / admin / desktop 共享)
|
|
19
19
|
export { VIRTUALIZE_THRESHOLD, LOAD_MORE_STEP, DND_STICKY_THRESHOLD } from "@allbluecn/kernel";
|
package/src/lib/utils.ts
CHANGED
|
@@ -15,4 +15,9 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
import { clsx, type ClassValue } from 'clsx'
|
|
19
|
+
import { twMerge } from 'tailwind-merge'
|
|
20
|
+
|
|
21
|
+
export function cn(...inputs: ClassValue[]) {
|
|
22
|
+
return twMerge(clsx(inputs))
|
|
23
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTranslation } from 'react-i18next'
|
|
2
|
-
import { PlaceholderPage } from '@/components/
|
|
2
|
+
import { PlaceholderPage } from '@/components/shared-kit/pages/placeholder-page'
|
|
3
3
|
import { Lightbulb } from 'lucide-react'
|
|
4
4
|
|
|
5
5
|
export function InspirationPage() {
|
|
@@ -2,7 +2,7 @@ import type { ComponentType } from 'react'
|
|
|
2
2
|
import { Link, useLocation } from '@tanstack/react-router'
|
|
3
3
|
import { useTranslation } from 'react-i18next'
|
|
4
4
|
import { Lightbulb } from 'lucide-react'
|
|
5
|
-
import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from '@/components/ui
|
|
5
|
+
import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from '@/components/ui/sidebar'
|
|
6
6
|
|
|
7
7
|
export function InspirationNavItem() {
|
|
8
8
|
const { t } = useTranslation('common')
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { useRef, useEffect, useState, type KeyboardEvent } from "react";
|
|
19
19
|
import { useTranslation } from "react-i18next";
|
|
20
20
|
import { ArrowUp, Loader2, User, Bot, ChevronDown, Cpu } from "lucide-react";
|
|
21
|
-
import { Textarea } from "@/components/ui
|
|
21
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
22
22
|
import {
|
|
23
23
|
DropdownMenu,
|
|
24
24
|
DropdownMenuTrigger,
|
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
DropdownMenuGroup,
|
|
27
27
|
DropdownMenuItem,
|
|
28
28
|
DropdownMenuLabel,
|
|
29
|
-
} from "@/components/ui
|
|
30
|
-
import { cn } from "@/
|
|
29
|
+
} from "@/components/ui/dropdown-menu";
|
|
30
|
+
import { cn } from "@/lib/utils";
|
|
31
31
|
|
|
32
32
|
export interface ModelOption {
|
|
33
33
|
model: string;
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
18
|
import type { CanvasElement, EditablePropField } from "@allbluecn/kernel";
|
|
19
|
-
import { Input } from "@/components/ui
|
|
20
|
-
import { Textarea } from "@/components/ui
|
|
21
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui
|
|
19
|
+
import { Input } from "@/components/ui/input";
|
|
20
|
+
import { Textarea } from "@/components/ui/textarea";
|
|
21
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
|
|
22
22
|
import { FieldRow } from "./style-fields";
|
|
23
23
|
import { useField } from "./use-field";
|
|
24
24
|
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
import { useRef } from "react";
|
|
19
19
|
import { useTranslation } from "react-i18next";
|
|
20
20
|
import type { CanvasElement } from "@allbluecn/kernel";
|
|
21
|
-
import { Input } from "@/components/ui
|
|
21
|
+
import { Input } from "@/components/ui/input";
|
|
22
22
|
import {
|
|
23
23
|
Select,
|
|
24
24
|
SelectContent,
|
|
25
25
|
SelectItem,
|
|
26
26
|
SelectTrigger,
|
|
27
27
|
SelectValue,
|
|
28
|
-
} from "@/components/ui
|
|
29
|
-
import { Label } from "@/components/ui
|
|
28
|
+
} from "@/components/ui/select";
|
|
29
|
+
import { Label } from "@/components/ui/label";
|
|
30
30
|
import { useField } from "./use-field";
|
|
31
31
|
|
|
32
32
|
type StyleControl = "color" | "number" | "select";
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
|
|
18
|
-
import { cn } from "@/
|
|
18
|
+
import { cn } from "@/lib/utils";
|
|
19
19
|
|
|
20
20
|
interface ComponentThumbnailProps {
|
|
21
21
|
type: string;
|
|
@@ -19,15 +19,15 @@ import { useState } from "react";
|
|
|
19
19
|
import { useTranslation } from "react-i18next";
|
|
20
20
|
import { useForm } from "@tanstack/react-form";
|
|
21
21
|
import { useRouter } from "@tanstack/react-router";
|
|
22
|
-
import { Button } from "@/components/ui
|
|
23
|
-
import { Input } from "@/components/ui
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
|
+
import { Input } from "@/components/ui/input";
|
|
24
24
|
import {
|
|
25
25
|
Dialog,
|
|
26
26
|
DialogContent,
|
|
27
27
|
DialogFooter,
|
|
28
28
|
DialogHeader,
|
|
29
29
|
DialogTitle,
|
|
30
|
-
} from "@/components/ui
|
|
30
|
+
} from "@/components/ui/dialog";
|
|
31
31
|
import { getIconPicker } from "../../icon-picker-bridge";
|
|
32
32
|
import { createPrdFn } from "../../serverFns/prd";
|
|
33
33
|
import { createPrdSchema } from "../schemas/create-prd";
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
import { useRouter } from "@tanstack/react-router";
|
|
20
20
|
import { useState } from "react";
|
|
21
21
|
import { useTranslation } from "react-i18next";
|
|
22
|
-
import { NameConfirmDialog } from "@/components/
|
|
23
|
-
import { Badge } from "@/components/ui
|
|
22
|
+
import { NameConfirmDialog } from "@/components/shared-kit/dialogs/name-confirm-dialog";
|
|
23
|
+
import { Badge } from "@/components/ui/badge";
|
|
24
24
|
import { TagBadge } from '@/plugins/core/tags/tag-badge'
|
|
25
25
|
import { Trash2, FileText } from "lucide-react";
|
|
26
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui
|
|
26
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
27
27
|
import { ICON_MAP, type PRDDetail as PRD } from "@allbluecn/kernel";
|
|
28
28
|
import { deletePrdFn } from "../../serverFns/prd";
|
|
29
29
|
import { formatDate } from "@/lib/datetime";
|
|
30
|
-
import { useTimezone } from "@/components/
|
|
30
|
+
import { useTimezone } from "@/components/shared-kit/timezone/timezone-provider";
|
|
31
31
|
|
|
32
32
|
interface PRDDetailClientProps {
|
|
33
33
|
prd: PRD;
|
package/src/plugins/core/prd/components/page-version-panel/components/create-version-dialog.tsx
CHANGED
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
DialogTitle,
|
|
23
23
|
DialogDescription,
|
|
24
24
|
DialogFooter,
|
|
25
|
-
} from "@/components/ui
|
|
25
|
+
} from "@/components/ui/dialog";
|
|
26
26
|
import { useTranslation } from "react-i18next";
|
|
27
|
-
import { Button } from "@/components/ui
|
|
27
|
+
import { Button } from "@/components/ui/button";
|
|
28
28
|
|
|
29
29
|
interface CreateVersionDialogProps {
|
|
30
30
|
open: boolean;
|
package/src/plugins/core/prd/components/page-version-panel/components/delete-version-dialog.tsx
CHANGED
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
DialogTitle,
|
|
23
23
|
DialogDescription,
|
|
24
24
|
DialogFooter,
|
|
25
|
-
} from "@/components/ui
|
|
25
|
+
} from "@/components/ui/dialog";
|
|
26
26
|
import { useTranslation } from "react-i18next";
|
|
27
|
-
import { Button } from "@/components/ui
|
|
27
|
+
import { Button } from "@/components/ui/button";
|
|
28
28
|
|
|
29
29
|
interface DeleteVersionDialogProps {
|
|
30
30
|
open: boolean;
|
package/src/plugins/core/prd/components/page-version-panel/components/edit-version-dialog.tsx
CHANGED
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
DialogTitle,
|
|
23
23
|
DialogDescription,
|
|
24
24
|
DialogFooter,
|
|
25
|
-
} from "@/components/ui
|
|
25
|
+
} from "@/components/ui/dialog";
|
|
26
26
|
import { useTranslation } from "react-i18next";
|
|
27
|
-
import { Button } from "@/components/ui
|
|
27
|
+
import { Button } from "@/components/ui/button";
|
|
28
28
|
|
|
29
29
|
interface EditVersionDialogProps {
|
|
30
30
|
open: boolean;
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
|
|
19
19
|
import React, { useState, useEffect, useCallback, useMemo, useRef } from "react";
|
|
20
20
|
import { useTranslation } from "react-i18next";
|
|
21
|
-
import { Button } from "@/components/ui
|
|
22
|
-
import { Input } from "@/components/ui
|
|
23
|
-
import { Skeleton } from "@/components/ui
|
|
24
|
-
import { Checkbox } from "@/components/ui
|
|
25
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui
|
|
21
|
+
import { Button } from "@/components/ui/button";
|
|
22
|
+
import { Input } from "@/components/ui/input";
|
|
23
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
24
|
+
import { Checkbox } from "@/components/ui/checkbox";
|
|
25
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
26
26
|
import {
|
|
27
27
|
Select,
|
|
28
28
|
SelectContent,
|
|
29
29
|
SelectItem,
|
|
30
30
|
SelectTrigger,
|
|
31
31
|
SelectValue,
|
|
32
|
-
} from "@/components/ui
|
|
32
|
+
} from "@/components/ui/select";
|
|
33
33
|
import {
|
|
34
34
|
AlertDialog,
|
|
35
35
|
AlertDialogAction,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
AlertDialogFooter,
|
|
40
40
|
AlertDialogHeader,
|
|
41
41
|
AlertDialogTitle,
|
|
42
|
-
} from "@/components/ui
|
|
42
|
+
} from "@/components/ui/alert-dialog";
|
|
43
43
|
import { PageVersionTree, type VersionSnapshot } from "./page-version-tree";
|
|
44
44
|
import { executeRestoreVersion } from "@/plugins/core/prd/lib/restore-version";
|
|
45
45
|
import { RestoreVersionDialog } from "./restore-version-dialog";
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
RotateCcw,
|
|
54
54
|
Trash2,
|
|
55
55
|
} from "lucide-react";
|
|
56
|
-
import { cn } from "@/
|
|
56
|
+
import { cn } from "@/lib/utils";
|
|
57
57
|
import { buildTree, TreeNode, PRDPage } from "@/lib/prd-tree-utils";
|
|
58
58
|
import { type PRDVersionWithSemver as PRDVersion } from "@allbluecn/kernel";
|
|
59
59
|
import { SUBTABS } from "./page-version-panel/constants";
|
|
@@ -65,7 +65,7 @@ import { listPrdPagesFn } from "../serverFns/pages";
|
|
|
65
65
|
import { listPrdVersionsFn, createPrdVersionFn } from "../serverFns/versions";
|
|
66
66
|
import { listPrdPageVersionsFn, getPrdPageVersionFn, createPrdPageVersionFn, updatePrdPageVersionFn, deletePrdPageVersionFn } from "../serverFns/page-versions";
|
|
67
67
|
import { formatDate } from "@/lib/datetime";
|
|
68
|
-
import { useTimezone } from "@/components/
|
|
68
|
+
import { useTimezone } from "@/components/shared-kit/timezone/timezone-provider";
|
|
69
69
|
|
|
70
70
|
export function PageVersionPanel({ prdId, pageId }: PageVersionPanelProps) {
|
|
71
71
|
const { t } = useTranslation(["prd", "common"]);
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
|
|
19
19
|
import React, { useState, useMemo, useEffect } from "react";
|
|
20
20
|
import { useTranslation } from "react-i18next";
|
|
21
|
-
import { cn } from "@/
|
|
22
|
-
import { Button } from "@/components/ui
|
|
23
|
-
import { Badge } from "@/components/ui
|
|
21
|
+
import { cn } from "@/lib/utils";
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
|
+
import { Badge } from "@/components/ui/badge";
|
|
24
24
|
import { ChevronRight, ChevronDown, File, Folder, RotateCcw } from "lucide-react";
|
|
25
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui
|
|
25
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
26
26
|
import { type PRDVersionWithPages as PRDVersion } from "@allbluecn/kernel";
|
|
27
27
|
import { formatDate } from "@/lib/datetime";
|
|
28
|
-
import { useTimezone } from "@/components/
|
|
28
|
+
import { useTimezone } from "@/components/shared-kit/timezone/timezone-provider";
|
|
29
29
|
|
|
30
30
|
export interface VersionSnapshot {
|
|
31
31
|
pageId: string;
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
import { useState, useRef, useEffect, useCallback } from "react"
|
|
19
19
|
import { useTranslation } from "react-i18next"
|
|
20
20
|
import { Bot, Loader2, User, Plus, Trash2, ChevronDown, MessageSquare } from "lucide-react"
|
|
21
|
-
import { cn } from "@/
|
|
22
|
-
import { toast } from '@/components/ui
|
|
21
|
+
import { cn } from "@/lib/utils"
|
|
22
|
+
import { toast } from '@/components/ui/sonner'
|
|
23
23
|
import type { CanvasElement } from "@allbluecn/kernel"
|
|
24
24
|
import { getAllComponents } from "@/lib/prototype-registry"
|
|
25
25
|
import { generatePrototypeFn, type GeneratedComponent } from "@/plugins/core/prd/serverFns/ai/generate-prototype"
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
DropdownMenuItem,
|
|
42
42
|
DropdownMenuLabel,
|
|
43
43
|
DropdownMenuSeparator,
|
|
44
|
-
} from "@/components/ui
|
|
44
|
+
} from "@/components/ui/dropdown-menu"
|
|
45
45
|
import { AgentInput, type ModelOption } from "./agent-input"
|
|
46
46
|
|
|
47
47
|
interface ChatMessage {
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
|
|
19
19
|
import { useState, useEffect } from "react";
|
|
20
20
|
import { useTranslation } from "react-i18next";
|
|
21
|
-
import { cn } from "@/
|
|
22
|
-
import { Badge } from "@/components/ui
|
|
23
|
-
import { Button } from "@/components/ui
|
|
24
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui
|
|
21
|
+
import { cn } from "@/lib/utils";
|
|
22
|
+
import { Badge } from "@/components/ui/badge";
|
|
23
|
+
import { Button } from "@/components/ui/button";
|
|
24
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
25
25
|
import { MessageSquare, ClipboardCheck, Check, X, Reply, ChevronUp } from "lucide-react";
|
|
26
|
-
import { toast } from '@/components/ui
|
|
27
|
-
import { useSession } from "@/components/
|
|
26
|
+
import { toast } from '@/components/ui/sonner';
|
|
27
|
+
import { useSession } from "@/components/shared-kit/auth/auth-client";
|
|
28
28
|
import { maskEmail, formatTime, formatEditedTime } from "@/lib/comment-utils";
|
|
29
|
-
import { UserAvatar } from "@/components/
|
|
29
|
+
import { UserAvatar } from "@/components/shared-kit";
|
|
30
30
|
import type { AvatarConfig, ShapeType } from "@allbluecn/kernel";
|
|
31
31
|
import { listCommentsFn, ignoreCommentFn } from "@/plugins/core/prd/serverFns/comments";
|
|
32
32
|
|
|
@@ -19,8 +19,8 @@ import { useTranslation } from "react-i18next";
|
|
|
19
19
|
import { Trash2, Package } from "lucide-react";
|
|
20
20
|
import type { CanvasElement } from "@allbluecn/kernel";
|
|
21
21
|
import { getComponent } from "@/lib/prototype-registry";
|
|
22
|
-
import { Button } from "@/components/ui
|
|
23
|
-
import { Skeleton } from "@/components/ui
|
|
22
|
+
import { Button } from "@/components/ui/button";
|
|
23
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
24
24
|
import { CollapsibleSection } from "./component-editor/collapsible-section";
|
|
25
25
|
import { ContentSection } from "./component-editor/content-section";
|
|
26
26
|
import { PositionSection } from "./component-editor/position-section";
|