betterstart-cli 0.0.7 → 0.0.9

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.
@@ -66,7 +66,7 @@ export function CopyableCodeBlock({ label, code, language, tabs }: CopyableCodeB
66
66
 
67
67
  {codeTabs.map((tab) => (
68
68
  <TabsContent key={tab.id} value={tab.id} className="min-h-0 overflow-auto">
69
- <CardContent className="p-0 overflow-auto select-text">
69
+ <CardContent className="p-0 overflow-auto">
70
70
  <React.Suspense fallback={<PlainCodeFallback code={tab.code} />}>
71
71
  <LazyCodeMirror code={tab.code} language={tab.language} theme={codeTheme} />
72
72
  </React.Suspense>
@@ -92,7 +92,7 @@ export function CopyableCodeBlock({ label, code, language, tabs }: CopyableCodeB
92
92
  {isCopied ? <Check /> : <Copy />}
93
93
  </Button>
94
94
  </CardHeader>
95
- <CardContent className="p-0 overflow-auto select-text">
95
+ <CardContent className="p-0 overflow-auto">
96
96
  <React.Suspense fallback={<PlainCodeFallback code={code} />}>
97
97
  <LazyCodeMirror code={code} language={language} theme={codeTheme} />
98
98
  </React.Suspense>
@@ -19,20 +19,10 @@ const compactCodeTheme = EditorView.theme({
19
19
  '&': {
20
20
  fontSize: '12px'
21
21
  },
22
- '.cm-editor': {
23
- userSelect: 'text'
24
- },
25
22
  '.cm-content': {
26
- userSelect: 'text',
27
23
  padding: '10px 0 14px'
28
24
  },
29
- '.cm-scroller': {
30
- userSelect: 'text',
31
- fontFamily:
32
- 'ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace'
33
- },
34
25
  '.cm-gutters': {
35
- userSelect: 'none',
36
26
  padding: '0 0 14px'
37
27
  },
38
28
  '.cm-content, .cm-gutters': {
@@ -43,6 +33,10 @@ const compactCodeTheme = EditorView.theme({
43
33
  },
44
34
  '.cm-line': {
45
35
  padding: '0 16px'
36
+ },
37
+ '.cm-scroller': {
38
+ fontFamily:
39
+ 'ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace'
46
40
  }
47
41
  })
48
42
 
@@ -64,8 +58,8 @@ export default function DevModeCodeMirror({ code, language, theme }: DevModeCode
64
58
  return (
65
59
  <CodeMirror
66
60
  value={code}
61
+ editable={false}
67
62
  readOnly
68
- className="select-text"
69
63
  basicSetup={codeMirrorSetup}
70
64
  extensions={extensions}
71
65
  theme={theme === 'dark' ? githubDark : githubLight}
@@ -22,25 +22,22 @@ export function PageHeader({
22
22
  const router = useRouter()
23
23
 
24
24
  return (
25
- <>
26
- <header className="fixed top-0 border-t right-0 left-(--admin-shell-content-left) z-20 grid h-14 grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center border-b border-border/80 px-4 bg-sidebar transition-[left] duration-200 ease-linear">
27
- <div className="flex w-full items-center justify-start gap-2">
28
- {hasBackButton && (
29
- <Button variant="ghost" size="icon" onClick={() => router.back()}>
30
- <ChevronLeft className="size-4" />
31
- </Button>
32
- )}
33
- </div>
34
- <div className="flex min-w-0 items-center justify-center gap-2">
35
- <h2 className="truncate text-sm font-medium tracking-tight">{title}</h2>
36
- </div>
37
- <div className="flex w-full min-w-0 items-center justify-end gap-2">
38
- {children && children}
39
- {search && search}
40
- {actions && actions}
41
- </div>
42
- </header>
43
- <div className="h-14 shrink-0" aria-hidden="true" />
44
- </>
25
+ <header className="sticky top-0 border-t right-0 left-(--admin-shell-content-left) z-20 grid h-14 grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center border-b border-border/80 px-4 bg-sidebar transition-[left] duration-200 ease-linear">
26
+ <div className="flex w-full items-center justify-start gap-2">
27
+ {hasBackButton && (
28
+ <Button variant="ghost" size="icon" onClick={() => router.back()}>
29
+ <ChevronLeft className="size-4" />
30
+ </Button>
31
+ )}
32
+ </div>
33
+ <div className="flex min-w-0 items-center justify-center gap-2">
34
+ <h2 className="truncate text-sm font-medium tracking-tight">{title}</h2>
35
+ </div>
36
+ <div className="flex w-full min-w-0 items-center justify-end gap-2">
37
+ {children && children}
38
+ {search && search}
39
+ {actions && actions}
40
+ </div>
41
+ </header>
45
42
  )
46
43
  }
@@ -2,15 +2,7 @@ import type { AdminMedia } from '@admin/types'
2
2
 
3
3
  export type CreateMediaInput = Omit<
4
4
  AdminMedia,
5
- | 'id'
6
- | 'createdAt'
7
- | 'updatedAt'
8
- | 'createdAtFormatted'
9
- | 'updatedAtFormatted'
10
- | 'createdBy'
11
- | 'updatedBy'
12
- | 'createdByUser'
13
- | 'updatedByUser'
5
+ 'id' | 'createdAt' | 'updatedAt' | 'createdBy' | 'updatedBy' | 'createdByUser' | 'updatedByUser'
14
6
  >
15
7
 
16
8
  export interface CreateMediaResult {
@@ -11,7 +11,7 @@ export default function AdminLayout({ children }: { children: React.ReactNode })
11
11
  <AdminProviders>
12
12
  <div
13
13
  className={cn(
14
- 'admin-root min-h-screen antialiased w-screen mt-px',
14
+ 'admin-root size-screen antialiased mt-px',
15
15
  GeistSans.variable,
16
16
  GeistMono.variable
17
17
  )}
@@ -20,8 +20,6 @@ export interface AdminMedia {
20
20
  tags: string[] | null
21
21
  createdAt: string
22
22
  updatedAt: string
23
- createdAtFormatted?: string
24
- updatedAtFormatted?: string
25
23
  createdBy: string | null
26
24
  updatedBy: string | null
27
25
  createdByUser?: AdminUserSummary | null
package/dist/cli.js CHANGED
@@ -22826,6 +22826,12 @@ var TEMPLATE_REGISTRY = {
22826
22826
  content: () => readTemplate("lib/actions/auth/middleware.ts"),
22827
22827
  dependencies: ["auth-roles-utils"]
22828
22828
  },
22829
+ "admin-layout": {
22830
+ relPath: "app/(admin)/admin/layout.tsx",
22831
+ content: () => readTemplate("pages/admin-layout.tsx"),
22832
+ base: "cwd",
22833
+ dependencies: ["admin-globals", "admin-providers", "cn"]
22834
+ },
22829
22835
  "auth-layout": {
22830
22836
  relPath: "app/(admin)/admin/(authenticated)/layout.tsx",
22831
22837
  content: () => readTemplate("pages/authenticated-layout.tsx"),