betterstart-cli 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/copyable-code-block.tsx +2 -2
- package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/dev-mode-code-mirror.tsx +11 -5
- package/dist/assets/adapters/next/templates/init/lib/actions/media/types.ts +9 -1
- package/dist/assets/adapters/next/templates/init/types/index.ts +2 -0
- package/dist/cli.js +558 -47
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/copyable-code-block.tsx
CHANGED
|
@@ -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">
|
|
69
|
+
<CardContent className="p-0 overflow-auto select-text">
|
|
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">
|
|
95
|
+
<CardContent className="p-0 overflow-auto select-text">
|
|
96
96
|
<React.Suspense fallback={<PlainCodeFallback code={code} />}>
|
|
97
97
|
<LazyCodeMirror code={code} language={language} theme={codeTheme} />
|
|
98
98
|
</React.Suspense>
|
package/dist/assets/adapters/next/templates/init/components/shared/dev-mode/dev-mode-code-mirror.tsx
CHANGED
|
@@ -19,10 +19,20 @@ const compactCodeTheme = EditorView.theme({
|
|
|
19
19
|
'&': {
|
|
20
20
|
fontSize: '12px'
|
|
21
21
|
},
|
|
22
|
+
'.cm-editor': {
|
|
23
|
+
userSelect: 'text'
|
|
24
|
+
},
|
|
22
25
|
'.cm-content': {
|
|
26
|
+
userSelect: 'text',
|
|
23
27
|
padding: '10px 0 14px'
|
|
24
28
|
},
|
|
29
|
+
'.cm-scroller': {
|
|
30
|
+
userSelect: 'text',
|
|
31
|
+
fontFamily:
|
|
32
|
+
'ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace'
|
|
33
|
+
},
|
|
25
34
|
'.cm-gutters': {
|
|
35
|
+
userSelect: 'none',
|
|
26
36
|
padding: '0 0 14px'
|
|
27
37
|
},
|
|
28
38
|
'.cm-content, .cm-gutters': {
|
|
@@ -33,10 +43,6 @@ const compactCodeTheme = EditorView.theme({
|
|
|
33
43
|
},
|
|
34
44
|
'.cm-line': {
|
|
35
45
|
padding: '0 16px'
|
|
36
|
-
},
|
|
37
|
-
'.cm-scroller': {
|
|
38
|
-
fontFamily:
|
|
39
|
-
'ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace'
|
|
40
46
|
}
|
|
41
47
|
})
|
|
42
48
|
|
|
@@ -58,8 +64,8 @@ export default function DevModeCodeMirror({ code, language, theme }: DevModeCode
|
|
|
58
64
|
return (
|
|
59
65
|
<CodeMirror
|
|
60
66
|
value={code}
|
|
61
|
-
editable={false}
|
|
62
67
|
readOnly
|
|
68
|
+
className="select-text"
|
|
63
69
|
basicSetup={codeMirrorSetup}
|
|
64
70
|
extensions={extensions}
|
|
65
71
|
theme={theme === 'dark' ? githubDark : githubLight}
|
|
@@ -2,7 +2,15 @@ import type { AdminMedia } from '@admin/types'
|
|
|
2
2
|
|
|
3
3
|
export type CreateMediaInput = Omit<
|
|
4
4
|
AdminMedia,
|
|
5
|
-
|
|
5
|
+
| 'id'
|
|
6
|
+
| 'createdAt'
|
|
7
|
+
| 'updatedAt'
|
|
8
|
+
| 'createdAtFormatted'
|
|
9
|
+
| 'updatedAtFormatted'
|
|
10
|
+
| 'createdBy'
|
|
11
|
+
| 'updatedBy'
|
|
12
|
+
| 'createdByUser'
|
|
13
|
+
| 'updatedByUser'
|
|
6
14
|
>
|
|
7
15
|
|
|
8
16
|
export interface CreateMediaResult {
|