@allbluecn/admin-app 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/package.json +5 -5
  2. package/src/components/admin/admin-user-menu.tsx +4 -4
  3. package/src/components/admin/developer-log.tsx +7 -7
  4. package/src/components/ai-memory/memory-facts-panel.tsx +9 -9
  5. package/src/components/ai-prompts/preview-panel.tsx +1 -1
  6. package/src/components/ai-prompts/prompt-editor.tsx +8 -8
  7. package/src/components/ai-prompts/prompt-table.tsx +6 -6
  8. package/src/components/ai-prompts/section-editor.tsx +3 -3
  9. package/src/components/ai-prompts/variable-panel.tsx +2 -2
  10. package/src/components/ai-prompts/version-history.tsx +5 -5
  11. package/src/components/ai-provider/model-list-editor.tsx +2 -2
  12. package/src/components/ai-provider/provider-form.tsx +7 -7
  13. package/src/components/ai-provider/provider-table.tsx +6 -6
  14. package/src/components/auth/admin-login-form.tsx +6 -6
  15. package/src/components/auth/icon-input.tsx +2 -2
  16. package/src/components/auth/password-input.tsx +2 -2
  17. package/src/components/component/component-form-dialog.tsx +8 -8
  18. package/src/components/component/component-import-dialog.tsx +6 -6
  19. package/src/components/component/component-table.tsx +3 -3
  20. package/{allblue-ui/src → src}/components/confirm-dialog.tsx +2 -2
  21. package/src/components/dependency/changelog-dialog.tsx +2 -2
  22. package/src/components/dependency/columns.tsx +3 -3
  23. package/src/components/dependency/dependency-table.tsx +7 -7
  24. package/src/components/dependency/edit-dialog.tsx +8 -8
  25. package/src/components/invitations/invitations-page.tsx +13 -13
  26. package/src/components/knowledge-public/bookmark-form-dialog.tsx +6 -6
  27. package/src/components/knowledge-public/compliance-form-dialog.tsx +6 -6
  28. package/src/components/knowledge-public/legal-form-dialog.tsx +7 -7
  29. package/src/components/layout/sidebar-02/app-sidebar.tsx +1 -1
  30. package/src/components/layout/sidebar-02/index.tsx +1 -1
  31. package/src/components/layout/sidebar-02/nav-main.tsx +2 -2
  32. package/src/components/layout/sidebar-02/nav-notifications.tsx +3 -3
  33. package/src/components/market/columns.tsx +4 -4
  34. package/src/components/market/market-app-form.tsx +6 -6
  35. package/src/components/market/market-app-list.tsx +4 -4
  36. package/src/components/monitoring/error-list.tsx +1 -1
  37. package/src/components/monitoring/metrics-stats.tsx +1 -1
  38. package/src/components/monitoring/request-log-table.tsx +1 -1
  39. package/src/components/oauth-providers/provider-page.tsx +9 -9
  40. package/src/components/permissions/assign-dialog.tsx +5 -5
  41. package/src/components/permissions/create-role-dialog.tsx +6 -6
  42. package/{allblue-ui/src → src/components}/ui/sidebar.tsx +1 -1
  43. package/src/components/user/columns.tsx +4 -4
  44. package/src/components/user/settings-activity-log.tsx +7 -7
  45. package/src/components/user/settings-profile/avatar-uploader.tsx +2 -2
  46. package/src/components/user/settings-profile/social-links.tsx +2 -2
  47. package/src/components/user/settings-profile.tsx +6 -6
  48. package/src/components/user/user-create-dialog.tsx +6 -6
  49. package/src/components/user/user-detail/error-boundary.tsx +1 -1
  50. package/src/components/user/user-detail/user-detail-dialogs.tsx +6 -6
  51. package/src/components/user/user-filters.tsx +3 -3
  52. package/src/providers/index.tsx +1 -1
  53. package/src/routes/__root.tsx +1 -1
  54. package/src/routes/_nav/audit/route.lazy.tsx +1 -1
  55. package/src/routes/_nav/compliance/route.lazy.tsx +3 -3
  56. package/src/routes/_nav/components/route.lazy.tsx +4 -4
  57. package/src/routes/_nav/knowledge-public/bookmarks/route.lazy.tsx +6 -6
  58. package/src/routes/_nav/knowledge-public/compliance/route.lazy.tsx +6 -6
  59. package/src/routes/_nav/knowledge-public/legal/route.lazy.tsx +6 -6
  60. package/src/routes/_nav/licenses/$licenseId/route.lazy.tsx +3 -3
  61. package/src/routes/_nav/licenses/new/route.lazy.tsx +5 -5
  62. package/src/routes/_nav/licenses/route.lazy.tsx +1 -1
  63. package/src/routes/_nav/monitoring/ai-usage/route.lazy.tsx +2 -2
  64. package/src/routes/_nav/monitoring/errors/route.lazy.tsx +1 -1
  65. package/src/routes/_nav/monitoring/health/route.lazy.tsx +3 -3
  66. package/src/routes/_nav/monitoring/logs/route.lazy.tsx +3 -3
  67. package/src/routes/_nav/monitoring/metrics/route.lazy.tsx +3 -3
  68. package/src/routes/_nav/monitoring/route.lazy.tsx +2 -2
  69. package/src/routes/_nav/monitoring/sentry/route.lazy.tsx +1 -1
  70. package/src/routes/_nav/permissions/route.lazy.tsx +4 -4
  71. package/src/routes/_nav/sso/route.lazy.tsx +2 -2
  72. package/src/routes/_nav/users/$userId/route.lazy.tsx +8 -8
  73. package/src/routes/_nav/users/-components/users-table.tsx +1 -1
  74. package/src/routes/_nav/users/route.lazy.tsx +1 -1
  75. package/src/routes/setup/route.lazy.tsx +2 -2
  76. package/src/server/dependency/helpers.ts +0 -1
  77. package/src/styles/globals.css +3 -3
  78. package/allblue-ui/package.json +0 -6
  79. package/allblue-ui/src/components/infinite-scroll-sentinel.tsx +0 -37
  80. package/allblue-ui/src/hooks/use-load-more.ts +0 -57
  81. package/allblue-ui/src/index.ts +0 -31
  82. package/allblue-ui/src/lib/avatar.ts +0 -41
  83. package/allblue-ui/src/lib/utils.ts +0 -1
  84. /package/{allblue-ui/src → src/components}/data-table/data-table-pagination.tsx +0 -0
  85. /package/{allblue-ui/src → src/components}/data-table/data-table.tsx +0 -0
  86. /package/{allblue-ui/src → src/components}/data-table/table-detail-layout.tsx +0 -0
  87. /package/{allblue-ui/src → src}/components/notion-avatar.tsx +0 -0
  88. /package/{allblue-ui/src → src/components}/ui/alert-dialog.tsx +0 -0
  89. /package/{allblue-ui/src → src/components}/ui/alert.tsx +0 -0
  90. /package/{allblue-ui/src → src/components}/ui/avatar.tsx +0 -0
  91. /package/{allblue-ui/src → src/components}/ui/badge.tsx +0 -0
  92. /package/{allblue-ui/src → src/components}/ui/button.tsx +0 -0
  93. /package/{allblue-ui/src → src/components}/ui/card.tsx +0 -0
  94. /package/{allblue-ui/src → src/components}/ui/checkbox.tsx +0 -0
  95. /package/{allblue-ui/src → src/components}/ui/collapsible.tsx +0 -0
  96. /package/{allblue-ui/src → src/components}/ui/dialog.tsx +0 -0
  97. /package/{allblue-ui/src → src/components}/ui/dropdown-menu.tsx +0 -0
  98. /package/{allblue-ui/src → src/components}/ui/field.tsx +0 -0
  99. /package/{allblue-ui/src → src/components}/ui/input-group.tsx +0 -0
  100. /package/{allblue-ui/src → src/components}/ui/input.tsx +0 -0
  101. /package/{allblue-ui/src → src/components}/ui/label.tsx +0 -0
  102. /package/{allblue-ui/src → src/components}/ui/pagination.tsx +0 -0
  103. /package/{allblue-ui/src → src/components}/ui/select.tsx +0 -0
  104. /package/{allblue-ui/src → src/components}/ui/separator.tsx +0 -0
  105. /package/{allblue-ui/src → src/components}/ui/sheet.tsx +0 -0
  106. /package/{allblue-ui/src → src/components}/ui/skeleton.tsx +0 -0
  107. /package/{allblue-ui/src → src/components}/ui/switch.tsx +0 -0
  108. /package/{allblue-ui/src → src/components}/ui/table.tsx +0 -0
  109. /package/{allblue-ui/src → src/components}/ui/textarea.tsx +0 -0
  110. /package/{allblue-ui/src → src/components}/ui/toast.tsx +0 -0
  111. /package/{allblue-ui/src → src/components}/ui/tooltip.tsx +0 -0
  112. /package/{allblue-ui/src → src}/components/user-avatar.tsx +0 -0
  113. /package/{allblue-ui/src → src}/hooks/use-mobile.ts +0 -0
  114. /package/{allblue-ui/src → src}/lib/datetime.ts +0 -0
  115. /package/{allblue-ui/src → src}/lib/sanitize.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allbluecn/admin-app",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "private": false,
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "type": "module",
@@ -36,6 +36,8 @@
36
36
  "clsx": "^2.1.1",
37
37
  "cn": "^0.3.0",
38
38
  "date-fns": "^4.4.0",
39
+ "date-fns-tz": "^3.2.0",
40
+ "isomorphic-dompurify": "^3.22.0",
39
41
  "lucide-react": "^1.47.0",
40
42
  "motion": "^13.4.0",
41
43
  "next-themes": "^0.4.6",
@@ -75,13 +77,11 @@
75
77
  "typescript-eslint": "^8.70.1",
76
78
  "vite": "^8.3.3",
77
79
  "vitest": "5.0.0",
78
- "wrangler": "^4.99.0",
79
- "@allbluecn/ui": "0.1.0"
80
+ "wrangler": "^4.99.0"
80
81
  },
81
82
  "files": [
82
83
  "src",
83
- "public",
84
- "allblue-ui"
84
+ "public"
85
85
  ],
86
86
  "publishConfig": {
87
87
  "access": "public"
@@ -17,17 +17,17 @@
17
17
 
18
18
  import { LogOut } from "lucide-react";
19
19
  import { m } from '@/paraglide/messages.js'
20
- import { Badge } from "@allbluecn/ui/badge";
20
+ import { Badge } from "@/components/ui/badge";
21
21
  import {
22
22
  SidebarMenu,
23
23
  SidebarMenuAction,
24
24
  SidebarMenuButton,
25
25
  SidebarMenuItem,
26
- } from "@allbluecn/ui/sidebar";
27
- import { Tooltip, TooltipContent, TooltipTrigger } from "@allbluecn/ui/tooltip";
26
+ } from "@/components/ui/sidebar";
27
+ import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
28
28
  import { useRouter, useMatches } from "@tanstack/react-router";
29
29
  import { signOut, useSession } from "@/lib/auth-client";
30
- import { UserAvatar } from "@allbluecn/ui/components/user-avatar";
30
+ import { UserAvatar } from "@/components/user-avatar";
31
31
  import type { AvatarConfig, ShapeType } from "@allbluecn/kernel";
32
32
 
33
33
  const ROLE_LABELS: Record<string, () => string> = {
@@ -4,7 +4,7 @@ import { Route } from '@/routes/_nav/developer-logs/route'
4
4
  import type { DeveloperLogEntry } from '@allbluecn/kernel'
5
5
  import { useQueryClient } from '@tanstack/react-query'
6
6
  import { useServerFn } from '@tanstack/react-start'
7
- import { toast } from '@allbluecn/ui/toast'
7
+ import { toast } from '@/components/ui/toast'
8
8
  import {
9
9
  Plus,
10
10
  Pencil,
@@ -19,12 +19,12 @@ import {
19
19
  DialogHeader,
20
20
  DialogTitle,
21
21
  DialogFooter,
22
- } from '@allbluecn/ui/dialog'
23
- import { ConfirmDialog } from '@allbluecn/ui/components/confirm-dialog'
24
- import { Input } from '@allbluecn/ui/input'
25
- import { Textarea } from '@allbluecn/ui/textarea'
26
- import { Label } from '@allbluecn/ui/label'
27
- import { Button } from '@allbluecn/ui/button'
22
+ } from '@/components/ui/dialog'
23
+ import { ConfirmDialog } from '@/components/confirm-dialog'
24
+ import { Input } from '@/components/ui/input'
25
+ import { Textarea } from '@/components/ui/textarea'
26
+ import { Label } from '@/components/ui/label'
27
+ import { Button } from '@/components/ui/button'
28
28
  import { createDeveloperLogFn, updateDeveloperLogFn, deleteDeveloperLogFn } from '@/server/serverFns/developer-logs'
29
29
  import { autoGenerateLogsFn, backfillLogDetailsFn } from '@/server/serverFns/developer-log-auto-generate'
30
30
 
@@ -26,21 +26,21 @@ import {
26
26
  } from "lucide-react"
27
27
 
28
28
  import { m } from "@/paraglide/messages.js"
29
- import { formatTimestamp } from "@allbluecn/ui/lib/datetime"
30
- import { toast } from "@allbluecn/ui/toast"
31
- import { Alert, AlertDescription, AlertTitle } from "@allbluecn/ui/alert"
32
- import { Badge } from "@allbluecn/ui/badge"
33
- import { Button } from "@allbluecn/ui/button"
34
- import { Card, CardContent } from "@allbluecn/ui/card"
35
- import { ConfirmDialog } from "@allbluecn/ui/components/confirm-dialog"
29
+ import { formatTimestamp } from "@/lib/datetime"
30
+ import { toast } from "@/components/ui/toast"
31
+ import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
32
+ import { Badge } from "@/components/ui/badge"
33
+ import { Button } from "@/components/ui/button"
34
+ import { Card, CardContent } from "@/components/ui/card"
35
+ import { ConfirmDialog } from "@/components/confirm-dialog"
36
36
  import {
37
37
  Select,
38
38
  SelectContent,
39
39
  SelectItem,
40
40
  SelectTrigger,
41
41
  SelectValue,
42
- } from "@allbluecn/ui/select"
43
- import { DataTable, type AdminColumnDef } from "@allbluecn/ui/data-table"
42
+ } from "@/components/ui/select"
43
+ import { DataTable, type AdminColumnDef } from "@/components/data-table/data-table"
44
44
  import { listMemoryFactsFn } from "@/server/serverFns/ai-memory/list"
45
45
  import { deleteMemoryFactFn } from "@/server/serverFns/ai-memory/delete"
46
46
  import { clearMemoryFactsFn } from "@/server/serverFns/ai-memory/clear"
@@ -20,7 +20,7 @@ import { useCallback, useEffect, useRef, useState } from "react"
20
20
  import { AlertTriangle, Loader2 } from "lucide-react"
21
21
 
22
22
  import { m } from "@/paraglide/messages.js"
23
- import { Input } from "@allbluecn/ui/input"
23
+ import { Input } from "@/components/ui/input"
24
24
  import {
25
25
  PROMPT_PREVIEW_DEBOUNCE_MS,
26
26
  useDebouncedCallback,
@@ -25,18 +25,18 @@ import { Link } from "@tanstack/react-router"
25
25
  import { ArrowLeft, Loader2, Save, ShieldCheck } from "lucide-react"
26
26
 
27
27
  import { m } from "@/paraglide/messages.js"
28
- import { toast } from "@allbluecn/ui/toast"
29
- import { Badge } from "@allbluecn/ui/badge"
30
- import { Button } from "@allbluecn/ui/button"
31
- import { Field, FieldContent, FieldLabel } from "@allbluecn/ui/field"
32
- import { Input } from "@allbluecn/ui/input"
33
- import { Switch } from "@allbluecn/ui/switch"
34
- import { Textarea } from "@allbluecn/ui/textarea"
28
+ import { toast } from "@/components/ui/toast"
29
+ import { Badge } from "@/components/ui/badge"
30
+ import { Button } from "@/components/ui/button"
31
+ import { Field, FieldContent, FieldLabel } from "@/components/ui/field"
32
+ import { Input } from "@/components/ui/input"
33
+ import { Switch } from "@/components/ui/switch"
34
+ import { Textarea } from "@/components/ui/textarea"
35
35
  import {
36
36
  Tooltip,
37
37
  TooltipContent,
38
38
  TooltipTrigger,
39
- } from "@allbluecn/ui/tooltip"
39
+ } from "@/components/ui/tooltip"
40
40
  import { activatePromptTemplateFn } from "@/server/serverFns/ai-prompts/activate"
41
41
  import { getPromptTemplateFn } from "@/server/serverFns/ai-prompts/get"
42
42
  import { rollbackPromptTemplateFn } from "@/server/serverFns/ai-prompts/rollback"
@@ -19,14 +19,14 @@
19
19
  import { useMutation } from "@tanstack/react-query"
20
20
  import { Link, useRouter } from "@tanstack/react-router"
21
21
  import { Edit, ShieldCheck } from "lucide-react"
22
- import { formatTimestamp } from "@allbluecn/ui/lib/datetime"
22
+ import { formatTimestamp } from "@/lib/datetime"
23
23
 
24
24
  import { m } from "@/paraglide/messages.js"
25
- import { toast } from "@allbluecn/ui/toast"
26
- import { Badge } from "@allbluecn/ui/badge"
27
- import { Button } from "@allbluecn/ui/button"
28
- import { Switch } from "@allbluecn/ui/switch"
29
- import { DataTable, type AdminColumnDef } from "@allbluecn/ui/data-table"
25
+ import { toast } from "@/components/ui/toast"
26
+ import { Badge } from "@/components/ui/badge"
27
+ import { Button } from "@/components/ui/button"
28
+ import { Switch } from "@/components/ui/switch"
29
+ import { DataTable, type AdminColumnDef } from "@/components/data-table/data-table"
30
30
  import { activatePromptTemplateFn } from "@/server/serverFns/ai-prompts/activate"
31
31
  import type { PromptTemplateRow } from "./prompt-utils"
32
32
 
@@ -19,9 +19,9 @@
19
19
  import { ArrowDown, ArrowUp, Plus, Trash2 } from "lucide-react"
20
20
 
21
21
  import { m } from "@/paraglide/messages.js"
22
- import { Button } from "@allbluecn/ui/button"
23
- import { Input } from "@allbluecn/ui/input"
24
- import { Textarea } from "@allbluecn/ui/textarea"
22
+ import { Button } from "@/components/ui/button"
23
+ import { Input } from "@/components/ui/input"
24
+ import { Textarea } from "@/components/ui/textarea"
25
25
  import {
26
26
  appendSection,
27
27
  moveSection,
@@ -19,8 +19,8 @@
19
19
  import { AlertTriangle, Plus, Trash2 } from "lucide-react"
20
20
 
21
21
  import { m } from "@/paraglide/messages.js"
22
- import { Button } from "@allbluecn/ui/button"
23
- import { Input } from "@allbluecn/ui/input"
22
+ import { Button } from "@/components/ui/button"
23
+ import { Input } from "@/components/ui/input"
24
24
  import {
25
25
  addVariable,
26
26
  removeVariable,
@@ -18,17 +18,17 @@
18
18
  // apps/admin/src/components/ai-prompts/version-history.tsx
19
19
  import { useState } from "react"
20
20
  import { History, Loader2, RotateCcw } from "lucide-react"
21
- import { formatTimestamp } from "@allbluecn/ui/lib/datetime"
21
+ import { formatTimestamp } from "@/lib/datetime"
22
22
 
23
23
  import { m } from "@/paraglide/messages.js"
24
- import { Badge } from "@allbluecn/ui/badge"
25
- import { Button } from "@allbluecn/ui/button"
24
+ import { Badge } from "@/components/ui/badge"
25
+ import { Button } from "@/components/ui/button"
26
26
  import {
27
27
  Collapsible,
28
28
  CollapsibleContent,
29
29
  CollapsibleTrigger,
30
- } from "@allbluecn/ui/collapsible"
31
- import { ConfirmDialog } from "@allbluecn/ui/components/confirm-dialog"
30
+ } from "@/components/ui/collapsible"
31
+ import { ConfirmDialog } from "@/components/confirm-dialog"
32
32
  import type { PromptVersionSummary } from "./prompt-utils"
33
33
 
34
34
  interface VersionHistoryProps {
@@ -17,8 +17,8 @@
17
17
 
18
18
  // apps/admin/src/components/ai-provider/model-list-editor.tsx
19
19
  import { Plus, Trash2 } from "lucide-react"
20
- import { Button } from "@allbluecn/ui/button"
21
- import { Input } from "@allbluecn/ui/input"
20
+ import { Button } from "@/components/ui/button"
21
+ import { Input } from "@/components/ui/input"
22
22
  import { cn } from "@/lib/utils"
23
23
  import {
24
24
  MODEL_CAPABILITY_OPTIONS,
@@ -21,7 +21,7 @@ import { m } from '@/paraglide/messages.js'
21
21
  import { useMutation } from "@tanstack/react-query"
22
22
  import { Link, useNavigate, useRouter } from "@tanstack/react-router"
23
23
  import { ArrowLeft, Loader2, Save } from "lucide-react"
24
- import { toast } from '@allbluecn/ui/toast'
24
+ import { toast } from '@/components/ui/toast'
25
25
  import {
26
26
  ADAPTER_KINDS,
27
27
  PROVIDER_CATEGORIES,
@@ -29,17 +29,17 @@ import {
29
29
  type AdapterKind,
30
30
  type ProviderCategory,
31
31
  } from "@allbluecn/kernel"
32
- import { Button } from "@allbluecn/ui/button"
33
- import { Input } from "@allbluecn/ui/input"
34
- import { Textarea } from "@allbluecn/ui/textarea"
35
- import { Switch } from "@allbluecn/ui/switch"
32
+ import { Button } from "@/components/ui/button"
33
+ import { Input } from "@/components/ui/input"
34
+ import { Textarea } from "@/components/ui/textarea"
35
+ import { Switch } from "@/components/ui/switch"
36
36
  import {
37
37
  Select,
38
38
  SelectContent,
39
39
  SelectItem,
40
40
  SelectTrigger,
41
41
  SelectValue,
42
- } from "@allbluecn/ui/select"
42
+ } from "@/components/ui/select"
43
43
  import {
44
44
  Field,
45
45
  FieldContent,
@@ -49,7 +49,7 @@ import {
49
49
  FieldSet,
50
50
  FieldLegend,
51
51
  FieldSeparator,
52
- } from "@allbluecn/ui/field"
52
+ } from "@/components/ui/field"
53
53
  import { createAiProviderAdminFn } from "@/server/serverFns/ai-provider/create"
54
54
  import { updateAiProviderAdminFn } from "@/server/serverFns/ai-provider/update"
55
55
  import { ModelListEditor } from "./model-list-editor"
@@ -21,13 +21,13 @@ import { m } from '@/paraglide/messages.js'
21
21
  import { useMutation } from "@tanstack/react-query"
22
22
  import { Link, useRouter } from "@tanstack/react-router"
23
23
  import { Edit, Plus, RefreshCw, Trash2, Users } from "lucide-react"
24
- import { toast } from '@allbluecn/ui/toast'
24
+ import { toast } from '@/components/ui/toast'
25
25
  import { ADAPTER_KINDS, PROVIDER_BADGE_STYLES, type AiProviderRow } from "@allbluecn/kernel"
26
- import { Button } from "@allbluecn/ui/button"
27
- import { Switch } from "@allbluecn/ui/switch"
28
- import { Badge } from "@allbluecn/ui/badge"
29
- import { ConfirmDialog } from "@allbluecn/ui/components/confirm-dialog"
30
- import { DataTable, type AdminColumnDef } from "@allbluecn/ui/data-table"
26
+ import { Button } from "@/components/ui/button"
27
+ import { Switch } from "@/components/ui/switch"
28
+ import { Badge } from "@/components/ui/badge"
29
+ import { ConfirmDialog } from "@/components/confirm-dialog"
30
+ import { DataTable, type AdminColumnDef } from "@/components/data-table/data-table"
31
31
  import { ProviderIcon } from "./provider-icon"
32
32
  import { updateAiProviderAdminFn } from "@/server/serverFns/ai-provider/update"
33
33
  import { deleteAiProviderAdminFn } from "@/server/serverFns/ai-provider/delete"
@@ -19,12 +19,12 @@ import { LogOut, Mail, Users, BarChart3, Shield, Settings, ArrowRight, ArrowLeft
19
19
  import { m } from '@/paraglide/messages.js'
20
20
  import { useState } from "react";
21
21
  import { signIn, signOut } from "@/lib/auth-client";
22
- import { Button } from "@allbluecn/ui/button";
23
- import { Checkbox } from "@allbluecn/ui/checkbox";
24
- import { Field, FieldLabel } from "@allbluecn/ui/field";
25
- import { Card, CardContent } from "@allbluecn/ui/card";
26
- import { toast } from '@allbluecn/ui/toast';
27
- import { UserAvatar } from "@allbluecn/ui/components/user-avatar";
22
+ import { Button } from "@/components/ui/button";
23
+ import { Checkbox } from "@/components/ui/checkbox";
24
+ import { Field, FieldLabel } from "@/components/ui/field";
25
+ import { Card, CardContent } from "@/components/ui/card";
26
+ import { toast } from '@/components/ui/toast';
27
+ import { UserAvatar } from "@/components/user-avatar";
28
28
  import type { AvatarConfig, ShapeType } from "@allbluecn/kernel";
29
29
  import { AuthLayout, AuthLayoutLeft, AuthLayoutRight } from "@/components/auth/auth-layout";
30
30
  import { AuthHeader } from "@/components/auth/auth-header";
@@ -16,8 +16,8 @@
16
16
  // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
17
 
18
18
 
19
- import { Input } from '@allbluecn/ui/input'
20
- import { Label } from '@allbluecn/ui/label'
19
+ import { Input } from '@/components/ui/input'
20
+ import { Label } from '@/components/ui/label'
21
21
  import type { LucideIcon } from 'lucide-react'
22
22
 
23
23
  interface IconInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
@@ -17,8 +17,8 @@
17
17
 
18
18
  import { useState } from 'react'
19
19
  import { m } from '@/paraglide/messages.js'
20
- import { Input } from '@allbluecn/ui/input'
21
- import { Label } from '@allbluecn/ui/label'
20
+ import { Input } from '@/components/ui/input'
21
+ import { Label } from '@/components/ui/label'
22
22
  import { Lock } from 'lucide-react'
23
23
 
24
24
  interface PasswordInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
@@ -17,28 +17,28 @@
17
17
 
18
18
  import { useState, useEffect } from 'react'
19
19
  import { m } from '@/paraglide/messages.js'
20
- import { Button } from '@allbluecn/ui/button'
21
- import { Input } from '@allbluecn/ui/input'
22
- import { Label } from '@allbluecn/ui/label'
23
- import { Textarea } from '@allbluecn/ui/textarea'
24
- import { Switch } from '@allbluecn/ui/switch'
20
+ import { Button } from '@/components/ui/button'
21
+ import { Input } from '@/components/ui/input'
22
+ import { Label } from '@/components/ui/label'
23
+ import { Textarea } from '@/components/ui/textarea'
24
+ import { Switch } from '@/components/ui/switch'
25
25
  import {
26
26
  Select,
27
27
  SelectContent,
28
28
  SelectItem,
29
29
  SelectTrigger,
30
30
  SelectValue,
31
- } from '@allbluecn/ui/select'
31
+ } from '@/components/ui/select'
32
32
  import {
33
33
  Dialog,
34
34
  DialogContent,
35
35
  DialogFooter,
36
36
  DialogHeader,
37
37
  DialogTitle,
38
- } from '@allbluecn/ui/dialog'
38
+ } from '@/components/ui/dialog'
39
39
  import { ComponentPreview } from './component-preview'
40
40
  import { createComponentFn, updateComponentFn } from '@/server/serverFns/components/mutations'
41
- import { toast } from '@allbluecn/ui/toast'
41
+ import { toast } from '@/components/ui/toast'
42
42
  import type { ComponentItem } from './component-table'
43
43
 
44
44
  const CATEGORY_KEYS = ['base', 'block', 'template'] as const
@@ -16,16 +16,16 @@
16
16
  // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
17
 
18
18
  import { useState } from 'react'
19
- import { Button } from '@allbluecn/ui/button'
20
- import { Input } from '@allbluecn/ui/input'
21
- import { Label } from '@allbluecn/ui/label'
19
+ import { Button } from '@/components/ui/button'
20
+ import { Input } from '@/components/ui/input'
21
+ import { Label } from '@/components/ui/label'
22
22
  import {
23
23
  Select,
24
24
  SelectContent,
25
25
  SelectItem,
26
26
  SelectTrigger,
27
27
  SelectValue,
28
- } from '@allbluecn/ui/select'
28
+ } from '@/components/ui/select'
29
29
  import {
30
30
  Dialog,
31
31
  DialogContent,
@@ -33,9 +33,9 @@ import {
33
33
  DialogFooter,
34
34
  DialogHeader,
35
35
  DialogTitle,
36
- } from '@allbluecn/ui/dialog'
36
+ } from '@/components/ui/dialog'
37
37
  import { importComponentFn } from '@/server/serverFns/components/import'
38
- import { toast } from '@allbluecn/ui/toast'
38
+ import { toast } from '@/components/ui/toast'
39
39
  import { Loader2, Sparkles } from 'lucide-react'
40
40
  import { cn } from '@/lib/utils'
41
41
 
@@ -17,8 +17,8 @@
17
17
 
18
18
  import { Edit, Trash2 } from 'lucide-react'
19
19
  import { m } from '@/paraglide/messages.js'
20
- import { Badge } from '@allbluecn/ui/badge'
21
- import { Button } from '@allbluecn/ui/button'
20
+ import { Badge } from '@/components/ui/badge'
21
+ import { Button } from '@/components/ui/button'
22
22
  import {
23
23
  Table,
24
24
  TableBody,
@@ -26,7 +26,7 @@ import {
26
26
  TableHead,
27
27
  TableHeader,
28
28
  TableRow,
29
- } from '@allbluecn/ui/table'
29
+ } from '@/components/ui/table'
30
30
  import { cn } from '@/lib/utils'
31
31
 
32
32
  export interface ComponentItem {
@@ -13,8 +13,8 @@ import {
13
13
  AlertDialogHeader,
14
14
  AlertDialogTitle,
15
15
  AlertDialogTrigger,
16
- } from "../ui/alert-dialog"
17
- import type { Button } from "../ui/button"
16
+ } from "./ui/alert-dialog"
17
+ import type { Button } from "./ui/button"
18
18
 
19
19
  export interface ConfirmDialogProps {
20
20
  /** 受控 open;不传则由 trigger 非受控驱动 */
@@ -21,14 +21,14 @@ import ReactMarkdown from "react-markdown"
21
21
  import remarkGfm from "remark-gfm"
22
22
  import { ExternalLink, FileText } from "lucide-react"
23
23
  import type { ThirdPartyDependencyRow } from "@allbluecn/kernel"
24
- import { Button } from "@allbluecn/ui/button"
24
+ import { Button } from "@/components/ui/button"
25
25
  import {
26
26
  Dialog,
27
27
  DialogContent,
28
28
  DialogHeader,
29
29
  DialogTitle,
30
30
  DialogTrigger,
31
- } from "@allbluecn/ui/dialog"
31
+ } from "@/components/ui/dialog"
32
32
 
33
33
  export function ChangelogDialog({ row }: { row: ThirdPartyDependencyRow }) {
34
34
  const [open, setOpen] = useState(false)
@@ -29,9 +29,9 @@ import {
29
29
  type ThirdPartyDependencyRow,
30
30
  type VersionStatus,
31
31
  } from "@allbluecn/kernel"
32
- import { Badge } from "@allbluecn/ui/badge"
33
- import { Button } from "@allbluecn/ui/button"
34
- import { Tooltip, TooltipContent, TooltipTrigger } from "@allbluecn/ui/tooltip"
32
+ import { Badge } from "@/components/ui/badge"
33
+ import { Button } from "@/components/ui/button"
34
+ import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
35
35
  import { cn } from "@/lib/utils"
36
36
  import { EditDependencyDialog } from "./edit-dialog"
37
37
  import { ChangelogDialog } from "./changelog-dialog"
@@ -22,7 +22,7 @@ import {
22
22
  useTable,
23
23
  type PaginationState,
24
24
  } from "@tanstack/react-table"
25
- import { toast } from '@allbluecn/ui/toast'
25
+ import { toast } from '@/components/ui/toast'
26
26
  import { RefreshCw, Search, TriangleAlert, Loader2 } from "lucide-react"
27
27
  import {
28
28
  DEPENDENCY_CATEGORIES,
@@ -31,10 +31,10 @@ import {
31
31
  type VersionStatus,
32
32
  } from "@allbluecn/kernel"
33
33
  import { syncAllDependenciesFn, syncDependencyFn } from "@/server/serverFns/dependency/sync"
34
- import { Badge } from "@allbluecn/ui/badge"
35
- import { Button } from "@allbluecn/ui/button"
36
- import { Input } from "@allbluecn/ui/input"
37
- import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@allbluecn/ui/select"
34
+ import { Badge } from "@/components/ui/badge"
35
+ import { Button } from "@/components/ui/button"
36
+ import { Input } from "@/components/ui/input"
37
+ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
38
38
  import {
39
39
  Table,
40
40
  TableBody,
@@ -42,7 +42,7 @@ import {
42
42
  TableHead,
43
43
  TableHeader,
44
44
  TableRow,
45
- } from "@allbluecn/ui/table"
45
+ } from "@/components/ui/table"
46
46
  import {
47
47
  Pagination,
48
48
  PaginationContent,
@@ -51,7 +51,7 @@ import {
51
51
  PaginationLink,
52
52
  PaginationNext,
53
53
  PaginationPrevious,
54
- } from "@allbluecn/ui/pagination"
54
+ } from "@/components/ui/pagination"
55
55
  import { cn } from "@/lib/utils"
56
56
  import { dependencyTableFeatures, getDependencyColumns } from "./columns"
57
57
 
@@ -17,7 +17,7 @@
17
17
 
18
18
  import { useState } from "react"
19
19
  import { m } from '@/paraglide/messages.js'
20
- import { toast } from '@allbluecn/ui/toast'
20
+ import { toast } from '@/components/ui/toast'
21
21
  import { Loader2, Pencil } from "lucide-react"
22
22
  import {
23
23
  DEPENDENCY_CATEGORIES,
@@ -26,13 +26,13 @@ import {
26
26
  type ThirdPartyDependencyRow,
27
27
  } from "@allbluecn/kernel"
28
28
  import { updateDependencyFn } from "@/server/serverFns/dependency/update"
29
- import { Button } from "@allbluecn/ui/button"
30
- import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "@allbluecn/ui/dialog"
31
- import { Input } from "@allbluecn/ui/input"
32
- import { Label } from "@allbluecn/ui/label"
33
- import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@allbluecn/ui/select"
34
- import { Textarea } from "@allbluecn/ui/textarea"
35
- import { Tooltip, TooltipContent, TooltipTrigger } from "@allbluecn/ui/tooltip"
29
+ import { Button } from "@/components/ui/button"
30
+ import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog"
31
+ import { Input } from "@/components/ui/input"
32
+ import { Label } from "@/components/ui/label"
33
+ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
34
+ import { Textarea } from "@/components/ui/textarea"
35
+ import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
36
36
 
37
37
  export function EditDependencyDialog({
38
38
  row,
@@ -19,15 +19,15 @@ import { useState } from "react"
19
19
  import type React from "react"
20
20
  import { m } from "@/paraglide/messages.js"
21
21
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"
22
- import { toast } from "@allbluecn/ui/toast"
22
+ import { toast } from "@/components/ui/toast"
23
23
  import { Ticket, Plus, Copy, Ban, CheckCircle2, Trash2, Users } from "lucide-react"
24
24
  import { PageHeader } from "@/components/common/page-header"
25
- import { Button } from "@allbluecn/ui/button"
26
- import { Badge } from "@allbluecn/ui/badge"
27
- import { Input } from "@allbluecn/ui/input"
28
- import { Label } from "@allbluecn/ui/label"
29
- import { Switch } from "@allbluecn/ui/switch"
30
- import { Skeleton } from "@allbluecn/ui/skeleton"
25
+ import { Button } from "@/components/ui/button"
26
+ import { Badge } from "@/components/ui/badge"
27
+ import { Input } from "@/components/ui/input"
28
+ import { Label } from "@/components/ui/label"
29
+ import { Switch } from "@/components/ui/switch"
30
+ import { Skeleton } from "@/components/ui/skeleton"
31
31
  import {
32
32
  Dialog,
33
33
  DialogContent,
@@ -35,8 +35,8 @@ import {
35
35
  DialogFooter,
36
36
  DialogHeader,
37
37
  DialogTitle,
38
- } from "@allbluecn/ui/dialog"
39
- import { ConfirmDialog } from "@allbluecn/ui/components/confirm-dialog"
38
+ } from "@/components/ui/dialog"
39
+ import { ConfirmDialog } from "@/components/confirm-dialog"
40
40
  import {
41
41
  Table,
42
42
  TableBody,
@@ -44,13 +44,13 @@ import {
44
44
  TableHead,
45
45
  TableHeader,
46
46
  TableRow,
47
- } from "@allbluecn/ui/table"
47
+ } from "@/components/ui/table"
48
48
  import {
49
49
  Tooltip,
50
50
  TooltipContent,
51
51
  TooltipTrigger,
52
- } from "@allbluecn/ui/tooltip"
53
- import { Card, CardContent } from "@allbluecn/ui/card"
52
+ } from "@/components/ui/tooltip"
53
+ import { Card, CardContent } from "@/components/ui/card"
54
54
  import {
55
55
  listInvitationCodesFn,
56
56
  createInvitationCodeFn,
@@ -59,7 +59,7 @@ import {
59
59
  getRegistrationModeFn,
60
60
  setRegistrationModeFn,
61
61
  } from "@/server/serverFns/invitations"
62
- import { formatTimestamp } from "@allbluecn/ui/lib/datetime"
62
+ import { formatTimestamp } from "@/lib/datetime"
63
63
 
64
64
  type RegistrationMode = "invite" | "open"
65
65