@coze-arch/cli 0.0.1-alpha.dffbaa → 0.0.1-alpha.e02657
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/lib/__templates__/expo/.coze +7 -2
- package/lib/__templates__/expo/.cozeproj/scripts/dev_build.sh +46 -0
- package/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +229 -0
- package/lib/__templates__/expo/.cozeproj/scripts/prod_build.sh +47 -0
- package/lib/__templates__/expo/.cozeproj/scripts/prod_run.sh +34 -0
- package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +46 -0
- package/lib/__templates__/expo/README.md +68 -7
- package/lib/__templates__/expo/_gitignore +1 -1
- package/lib/__templates__/expo/_npmrc +2 -4
- package/lib/__templates__/expo/client/app/+not-found.tsx +15 -64
- package/lib/__templates__/expo/client/app/_layout.tsx +15 -12
- package/lib/__templates__/expo/client/app/index.tsx +1 -0
- package/lib/__templates__/expo/client/app.config.ts +76 -0
- package/lib/__templates__/expo/client/components/Screen.tsx +1 -17
- package/lib/__templates__/expo/client/components/ThemedText.tsx +33 -0
- package/lib/__templates__/expo/client/components/ThemedView.tsx +37 -0
- package/lib/__templates__/expo/client/constants/theme.ts +117 -58
- package/lib/__templates__/expo/client/declarations.d.ts +5 -0
- package/lib/__templates__/expo/{eslint.config.mjs → client/eslint.config.mjs} +33 -10
- package/lib/__templates__/expo/client/hooks/useColorScheme.tsx +48 -0
- package/lib/__templates__/expo/client/hooks/useSafeRouter.ts +152 -0
- package/lib/__templates__/expo/client/hooks/useTheme.ts +26 -6
- package/lib/__templates__/expo/client/metro.config.js +121 -0
- package/lib/__templates__/expo/client/package.json +95 -0
- package/lib/__templates__/expo/client/screens/demo/index.tsx +25 -0
- package/lib/__templates__/expo/client/screens/demo/styles.ts +28 -0
- package/lib/__templates__/expo/client/scripts/install-missing-deps.js +1 -0
- package/lib/__templates__/expo/client/tsconfig.json +24 -0
- package/lib/__templates__/expo/client/utils/index.ts +22 -0
- package/lib/__templates__/expo/eslint-plugins/fontawesome6/index.js +9 -0
- package/lib/__templates__/expo/eslint-plugins/fontawesome6/names.js +1889 -0
- package/lib/__templates__/expo/eslint-plugins/fontawesome6/rule.js +174 -0
- package/lib/__templates__/expo/eslint-plugins/fontawesome6/v5-only-names.js +388 -0
- package/lib/__templates__/expo/eslint-plugins/react-native/index.js +9 -0
- package/lib/__templates__/expo/eslint-plugins/react-native/rule.js +64 -0
- package/lib/__templates__/expo/eslint-plugins/reanimated/index.js +9 -0
- package/lib/__templates__/expo/eslint-plugins/reanimated/rule.js +88 -0
- package/lib/__templates__/expo/package.json +16 -103
- package/lib/__templates__/expo/patches/expo@54.0.33.patch +45 -0
- package/lib/__templates__/expo/pnpm-lock.yaml +1375 -3165
- package/lib/__templates__/expo/pnpm-workspace.yaml +3 -0
- package/lib/__templates__/expo/server/build.js +21 -0
- package/lib/__templates__/expo/server/package.json +32 -0
- package/lib/__templates__/expo/server/src/index.ts +20 -0
- package/lib/__templates__/expo/server/tsconfig.json +24 -0
- package/lib/__templates__/expo/template.config.js +57 -0
- package/lib/__templates__/expo/tsconfig.json +1 -24
- package/lib/__templates__/nextjs/.babelrc +15 -0
- package/lib/__templates__/nextjs/.coze +1 -0
- package/lib/__templates__/nextjs/_npmrc +1 -0
- package/lib/__templates__/nextjs/next.config.ts +12 -0
- package/lib/__templates__/nextjs/package.json +11 -2
- package/lib/__templates__/nextjs/pnpm-lock.yaml +2606 -1723
- package/lib/__templates__/nextjs/scripts/prepare.sh +9 -0
- package/lib/__templates__/nextjs/src/app/globals.css +109 -89
- package/lib/__templates__/nextjs/src/app/layout.tsx +5 -14
- package/lib/__templates__/nextjs/src/app/page.tsx +18 -48
- package/lib/__templates__/nextjs/src/components/ui/resizable.tsx +29 -22
- package/lib/__templates__/nextjs/src/components/ui/sidebar.tsx +228 -230
- package/lib/__templates__/nextjs/template.config.js +67 -2
- package/lib/__templates__/taro/.coze +14 -0
- package/lib/__templates__/taro/.cozeproj/scripts/deploy_build.sh +19 -0
- package/lib/__templates__/taro/.cozeproj/scripts/deploy_run.sh +13 -0
- package/lib/__templates__/taro/.cozeproj/scripts/dev_build.sh +17 -0
- package/lib/__templates__/taro/.cozeproj/scripts/dev_run.sh +58 -0
- package/lib/__templates__/taro/.cozeproj/scripts/init_env.sh +5 -0
- package/lib/__templates__/taro/.cozeproj/scripts/pack.sh +1 -0
- package/lib/__templates__/taro/README.md +687 -0
- package/lib/__templates__/taro/_gitignore +40 -0
- package/lib/__templates__/taro/_npmrc +18 -0
- package/lib/__templates__/taro/babel.config.js +12 -0
- package/lib/__templates__/taro/config/dev.ts +9 -0
- package/lib/__templates__/taro/config/index.ts +173 -0
- package/lib/__templates__/taro/config/prod.ts +35 -0
- package/lib/__templates__/taro/eslint.config.mjs +57 -0
- package/lib/__templates__/taro/key/private.appid.key +0 -0
- package/lib/__templates__/taro/package.json +95 -0
- package/lib/__templates__/taro/pnpm-lock.yaml +22430 -0
- package/lib/__templates__/taro/pnpm-workspace.yaml +2 -0
- package/lib/__templates__/taro/project.config.json +15 -0
- package/lib/__templates__/taro/server/nest-cli.json +10 -0
- package/lib/__templates__/taro/server/package.json +38 -0
- package/lib/__templates__/taro/server/src/app.controller.ts +23 -0
- package/lib/__templates__/taro/server/src/app.module.ts +10 -0
- package/lib/__templates__/taro/server/src/app.service.ts +8 -0
- package/lib/__templates__/taro/server/src/interceptors/http-status.interceptor.ts +23 -0
- package/lib/__templates__/taro/server/src/main.ts +37 -0
- package/lib/__templates__/taro/server/tsconfig.json +24 -0
- package/lib/__templates__/taro/src/app.config.ts +11 -0
- package/lib/__templates__/taro/src/app.css +52 -0
- package/lib/__templates__/taro/src/app.ts +14 -0
- package/lib/__templates__/taro/src/index.html +20 -0
- package/lib/__templates__/taro/src/network.ts +39 -0
- package/lib/__templates__/taro/src/pages/index/index.config.ts +3 -0
- package/lib/__templates__/taro/src/pages/index/index.css +1 -0
- package/lib/__templates__/taro/src/pages/index/index.tsx +33 -0
- package/lib/__templates__/taro/src/utils/h5-styles.ts +22 -0
- package/lib/__templates__/taro/src/utils/wx-debug.ts +23 -0
- package/lib/__templates__/taro/stylelint.config.mjs +4 -0
- package/lib/__templates__/taro/template.config.js +68 -0
- package/lib/__templates__/taro/tsconfig.json +29 -0
- package/lib/__templates__/taro/types/global.d.ts +32 -0
- package/lib/__templates__/templates.json +93 -43
- package/lib/__templates__/vite/.coze +1 -0
- package/lib/__templates__/vite/_npmrc +1 -0
- package/lib/__templates__/vite/eslint.config.mjs +9 -0
- package/lib/__templates__/vite/package.json +11 -2
- package/lib/__templates__/vite/pnpm-lock.yaml +3232 -243
- package/lib/__templates__/vite/scripts/prepare.sh +9 -0
- package/lib/__templates__/vite/src/main.ts +17 -48
- package/lib/__templates__/vite/template.config.js +67 -6
- package/lib/cli.js +1026 -134
- package/package.json +8 -3
- package/lib/__templates__/expo/.cozeproj/scripts/deploy_build.sh +0 -116
- package/lib/__templates__/expo/.cozeproj/scripts/deploy_run.sh +0 -239
- package/lib/__templates__/expo/app.json +0 -63
- package/lib/__templates__/expo/babel.config.js +0 -9
- package/lib/__templates__/expo/client/app/(tabs)/_layout.tsx +0 -43
- package/lib/__templates__/expo/client/app/(tabs)/home.tsx +0 -1
- package/lib/__templates__/expo/client/app/(tabs)/index.tsx +0 -7
- package/lib/__templates__/expo/client/hooks/useColorScheme.ts +0 -1
- package/lib/__templates__/expo/client/index.js +0 -12
- package/lib/__templates__/expo/client/screens/home/index.tsx +0 -51
- package/lib/__templates__/expo/client/screens/home/styles.ts +0 -60
- package/lib/__templates__/expo/metro.config.js +0 -53
- package/lib/__templates__/expo/src/index.ts +0 -12
- package/lib/__templates__/nextjs/.vscode/settings.json +0 -121
- package/lib/__templates__/vite/.vscode/settings.json +0 -7
- /package/lib/__templates__/expo/{eslint-formatter-simple.mjs → client/eslint-formatter-simple.mjs} +0 -0
|
@@ -1,61 +1,11 @@
|
|
|
1
1
|
@import 'tailwindcss';
|
|
2
|
-
@import
|
|
2
|
+
@import 'tw-animate-css';
|
|
3
3
|
|
|
4
4
|
@custom-variant dark (&:is(.dark *));
|
|
5
5
|
|
|
6
|
-
:root {
|
|
7
|
-
--background: 0 0% 100%;
|
|
8
|
-
--foreground: 0 0% 9%;
|
|
9
|
-
--card: 0 0% 100%;
|
|
10
|
-
--card-foreground: 0 0% 9%;
|
|
11
|
-
--popover: 0 0% 100%;
|
|
12
|
-
--popover-foreground: 0 0% 9%;
|
|
13
|
-
--primary: 0 0% 9%;
|
|
14
|
-
--primary-foreground: 0 0% 98%;
|
|
15
|
-
--secondary: 0 0% 96%;
|
|
16
|
-
--secondary-foreground: 0 0% 9%;
|
|
17
|
-
--muted: 0 0% 96%;
|
|
18
|
-
--muted-foreground: 0 0% 45%;
|
|
19
|
-
--accent: 0 0% 96%;
|
|
20
|
-
--accent-foreground: 0 0% 9%;
|
|
21
|
-
--destructive: 0 84% 60%;
|
|
22
|
-
--destructive-foreground: 0 0% 98%;
|
|
23
|
-
--border: 0 0% 90%;
|
|
24
|
-
--input: 0 0% 90%;
|
|
25
|
-
--ring: 0 0% 9%;
|
|
26
|
-
--radius: 0.5rem;
|
|
27
|
-
--sidebar: hsl(0 0% 98%);
|
|
28
|
-
--sidebar-foreground: hsl(240 5.3% 26.1%);
|
|
29
|
-
--sidebar-primary: hsl(240 5.9% 10%);
|
|
30
|
-
--sidebar-primary-foreground: hsl(0 0% 98%);
|
|
31
|
-
--sidebar-accent: hsl(240 4.8% 95.9%);
|
|
32
|
-
--sidebar-accent-foreground: hsl(240 5.9% 10%);
|
|
33
|
-
--sidebar-border: hsl(220 13% 91%);
|
|
34
|
-
--sidebar-ring: hsl(217.2 91.2% 59.8%);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
6
|
@theme inline {
|
|
38
|
-
--color-background:
|
|
39
|
-
--color-foreground:
|
|
40
|
-
--color-card: hsl(var(--card));
|
|
41
|
-
--color-card-foreground: hsl(var(--card-foreground));
|
|
42
|
-
--color-popover: hsl(var(--popover));
|
|
43
|
-
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
44
|
-
--color-primary: hsl(var(--primary));
|
|
45
|
-
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
46
|
-
--color-secondary: hsl(var(--secondary));
|
|
47
|
-
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
48
|
-
--color-muted: hsl(var(--muted));
|
|
49
|
-
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
50
|
-
--color-accent: hsl(var(--accent));
|
|
51
|
-
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
52
|
-
--color-destructive: hsl(var(--destructive));
|
|
53
|
-
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
54
|
-
--color-border: hsl(var(--border));
|
|
55
|
-
--color-input: hsl(var(--input));
|
|
56
|
-
--color-ring: hsl(var(--ring));
|
|
57
|
-
--font-sans: var(--font-geist-sans);
|
|
58
|
-
--font-mono: var(--font-geist-mono);
|
|
7
|
+
--color-background: var(--background);
|
|
8
|
+
--color-foreground: var(--foreground);
|
|
59
9
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
60
10
|
--color-sidebar-border: var(--sidebar-border);
|
|
61
11
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
@@ -64,47 +14,113 @@
|
|
|
64
14
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
65
15
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
66
16
|
--color-sidebar: var(--sidebar);
|
|
17
|
+
--color-chart-5: var(--chart-5);
|
|
18
|
+
--color-chart-4: var(--chart-4);
|
|
19
|
+
--color-chart-3: var(--chart-3);
|
|
20
|
+
--color-chart-2: var(--chart-2);
|
|
21
|
+
--color-chart-1: var(--chart-1);
|
|
22
|
+
--color-ring: var(--ring);
|
|
23
|
+
--color-input: var(--input);
|
|
24
|
+
--color-border: var(--border);
|
|
25
|
+
--color-destructive: var(--destructive);
|
|
26
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
27
|
+
--color-accent: var(--accent);
|
|
28
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
29
|
+
--color-muted: var(--muted);
|
|
30
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
31
|
+
--color-secondary: var(--secondary);
|
|
32
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
33
|
+
--color-primary: var(--primary);
|
|
34
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
35
|
+
--color-popover: var(--popover);
|
|
36
|
+
--color-card-foreground: var(--card-foreground);
|
|
37
|
+
--color-card: var(--card);
|
|
38
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
39
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
40
|
+
--radius-lg: var(--radius);
|
|
41
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
42
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
43
|
+
--radius-3xl: calc(var(--radius) + 12px);
|
|
44
|
+
--radius-4xl: calc(var(--radius) + 16px);
|
|
45
|
+
--font-sans:
|
|
46
|
+
'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', ui-sans-serif,
|
|
47
|
+
system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
48
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
49
|
+
--font-mono:
|
|
50
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
|
|
51
|
+
'Courier New', monospace;
|
|
52
|
+
--font-serif:
|
|
53
|
+
'Noto Serif SC', 'Songti SC', 'SimSun', ui-serif, Georgia, Cambria,
|
|
54
|
+
'Times New Roman', Times, serif;
|
|
67
55
|
}
|
|
68
56
|
|
|
69
|
-
|
|
70
|
-
:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
57
|
+
:root {
|
|
58
|
+
--radius: 0.625rem;
|
|
59
|
+
--background: oklch(1 0 0);
|
|
60
|
+
--foreground: oklch(0.145 0 0);
|
|
61
|
+
--card: oklch(1 0 0);
|
|
62
|
+
--card-foreground: oklch(0.145 0 0);
|
|
63
|
+
--popover: oklch(1 0 0);
|
|
64
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
65
|
+
--primary: oklch(0.205 0 0);
|
|
66
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
67
|
+
--secondary: oklch(0.97 0 0);
|
|
68
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
69
|
+
--muted: oklch(0.97 0 0);
|
|
70
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
71
|
+
--accent: oklch(0.97 0 0);
|
|
72
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
73
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
74
|
+
--border: oklch(0.922 0 0);
|
|
75
|
+
--input: oklch(0.922 0 0);
|
|
76
|
+
--ring: oklch(0.708 0 0);
|
|
77
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
78
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
79
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
80
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
81
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
82
|
+
--sidebar: oklch(0.985 0 0);
|
|
83
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
84
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
85
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
86
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
87
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
88
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
89
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
97
90
|
}
|
|
98
91
|
|
|
99
92
|
.dark {
|
|
100
|
-
--
|
|
101
|
-
--
|
|
102
|
-
--
|
|
103
|
-
--
|
|
104
|
-
--
|
|
105
|
-
--
|
|
106
|
-
--
|
|
107
|
-
--
|
|
93
|
+
--background: oklch(0.145 0 0);
|
|
94
|
+
--foreground: oklch(0.985 0 0);
|
|
95
|
+
--card: oklch(0.205 0 0);
|
|
96
|
+
--card-foreground: oklch(0.985 0 0);
|
|
97
|
+
--popover: oklch(0.205 0 0);
|
|
98
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
99
|
+
--primary: oklch(0.922 0 0);
|
|
100
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
101
|
+
--secondary: oklch(0.269 0 0);
|
|
102
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
103
|
+
--muted: oklch(0.269 0 0);
|
|
104
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
105
|
+
--accent: oklch(0.269 0 0);
|
|
106
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
107
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
108
|
+
--border: oklch(1 0 0 / 10%);
|
|
109
|
+
--input: oklch(1 0 0 / 15%);
|
|
110
|
+
--ring: oklch(0.556 0 0);
|
|
111
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
112
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
113
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
114
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
115
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
116
|
+
--sidebar: oklch(0.205 0 0);
|
|
117
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
118
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
119
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
120
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
121
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
122
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
123
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
108
124
|
}
|
|
109
125
|
|
|
110
126
|
@layer base {
|
|
@@ -115,3 +131,7 @@ body {
|
|
|
115
131
|
@apply bg-background text-foreground;
|
|
116
132
|
}
|
|
117
133
|
}
|
|
134
|
+
|
|
135
|
+
body {
|
|
136
|
+
@apply font-sans;
|
|
137
|
+
}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from 'next';
|
|
2
|
-
import {
|
|
2
|
+
import { Inspector } from 'react-dev-inspector';
|
|
3
3
|
import './globals.css';
|
|
4
4
|
|
|
5
|
-
const geistSans = Geist({
|
|
6
|
-
variable: '--font-geist-sans',
|
|
7
|
-
subsets: ['latin'],
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
const geistMono = Geist_Mono({
|
|
11
|
-
variable: '--font-geist-mono',
|
|
12
|
-
subsets: ['latin'],
|
|
13
|
-
});
|
|
14
|
-
|
|
15
5
|
export const metadata: Metadata = {
|
|
16
6
|
title: {
|
|
17
7
|
default: '新应用 | 扣子编程',
|
|
@@ -71,11 +61,12 @@ export default function RootLayout({
|
|
|
71
61
|
}: Readonly<{
|
|
72
62
|
children: React.ReactNode;
|
|
73
63
|
}>) {
|
|
64
|
+
const isDev = process.env.NODE_ENV === 'development';
|
|
65
|
+
|
|
74
66
|
return (
|
|
75
67
|
<html lang="en">
|
|
76
|
-
<body
|
|
77
|
-
|
|
78
|
-
>
|
|
68
|
+
<body className={`antialiased`}>
|
|
69
|
+
{isDev && <Inspector />}
|
|
79
70
|
{children}
|
|
80
71
|
</body>
|
|
81
72
|
</html>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Metadata } from 'next';
|
|
2
|
+
import Image from 'next/image';
|
|
2
3
|
|
|
3
4
|
export const metadata: Metadata = {
|
|
4
5
|
title: '扣子编程 - AI 开发伙伴',
|
|
@@ -7,58 +8,27 @@ export const metadata: Metadata = {
|
|
|
7
8
|
|
|
8
9
|
export default function Home() {
|
|
9
10
|
return (
|
|
10
|
-
<div className="flex
|
|
11
|
+
<div className="flex h-full items-center justify-center bg-background text-foreground transition-colors duration-300 dark:bg-background dark:text-foreground overflow-hidden min-h-screen">
|
|
11
12
|
{/* 主容器 */}
|
|
12
|
-
<main className="flex
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{/* 注意:生产环境建议使用 next/image 并配置 remotePatterns */}
|
|
16
|
-
<img
|
|
13
|
+
<main className="flex w-full h-full max-w-3xl flex-col items-center justify-center px-16 py-32 sm:items-center">
|
|
14
|
+
<div className="flex flex-col items-center justify-between gap-4">
|
|
15
|
+
<Image
|
|
17
16
|
className="dark:invert"
|
|
18
|
-
src="https://
|
|
17
|
+
src="https://lf-coze-web-cdn.coze.cn/obj/eden-cn/lm-lgvj/ljhwZthlaukjlkulzlp/coze-coding/icon/coze-coding.gif"
|
|
19
18
|
alt="扣子编程 Logo"
|
|
20
|
-
width={
|
|
21
|
-
height={
|
|
22
|
-
style={{ width: '40px', height: '40px', objectFit: 'contain' }}
|
|
19
|
+
width={156}
|
|
20
|
+
height={130}
|
|
23
21
|
/>
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</
|
|
34
|
-
<p className="max-w-2xl text-lg leading-8 text-zinc-600 dark:text-zinc-400">
|
|
35
|
-
当前是空白入口文件,项目正在开发中,请稍候...
|
|
36
|
-
<br />
|
|
37
|
-
开发完成后界面将自动更新。如未自动更新成功,可以手动点击右上角刷新或重启按钮查看效果。
|
|
38
|
-
</p>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
{/* 底部按钮区 */}
|
|
42
|
-
<div className="flex w-full flex-col gap-4 text-base font-medium sm:w-auto sm:flex-row">
|
|
43
|
-
{/* 按钮 1:前往首页 */}
|
|
44
|
-
<a
|
|
45
|
-
className="flex h-12 w-full min-w-[160px] items-center justify-center gap-2 rounded-full bg-black px-8 text-white transition-colors hover:bg-zinc-800 dark:bg-white dark:text-black dark:hover:bg-zinc-200 md:w-auto"
|
|
46
|
-
href="https://code.coze.cn/"
|
|
47
|
-
target="_blank"
|
|
48
|
-
rel="noopener noreferrer"
|
|
49
|
-
>
|
|
50
|
-
前往首页
|
|
51
|
-
</a>
|
|
52
|
-
|
|
53
|
-
{/* 按钮 2:查看文档 */}
|
|
54
|
-
<a
|
|
55
|
-
className="flex h-12 w-full min-w-[160px] items-center justify-center rounded-full border border-solid border-black/[.08] px-8 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-auto"
|
|
56
|
-
href="https://docs.coze.cn/"
|
|
57
|
-
target="_blank"
|
|
58
|
-
rel="noopener noreferrer"
|
|
59
|
-
>
|
|
60
|
-
查看文档
|
|
61
|
-
</a>
|
|
22
|
+
<div>
|
|
23
|
+
<div className="flex flex-col items-center gap-2 text-center sm:items-center sm:text-center">
|
|
24
|
+
<h1 className="max-w-xl text-base font-semibold leading-tight tracking-tight text-foreground dark:text-foreground">
|
|
25
|
+
应用开发中
|
|
26
|
+
</h1>
|
|
27
|
+
<p className="max-w-2xl text-sm-14 leading-8 text-muted-foreground dark:text-muted-foreground">
|
|
28
|
+
请稍后,页面即将呈现
|
|
29
|
+
</p>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
62
32
|
</div>
|
|
63
33
|
</main>
|
|
64
34
|
</div>
|
|
@@ -1,46 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { GripVerticalIcon } from 'lucide-react';
|
|
4
|
+
import {
|
|
5
|
+
Group,
|
|
6
|
+
Panel,
|
|
7
|
+
Separator,
|
|
8
|
+
type GroupProps,
|
|
9
|
+
type PanelProps,
|
|
10
|
+
type SeparatorProps,
|
|
11
|
+
} from 'react-resizable-panels';
|
|
6
12
|
|
|
7
|
-
import { cn } from
|
|
13
|
+
import { cn } from '@/lib/utils';
|
|
8
14
|
|
|
9
15
|
function ResizablePanelGroup({
|
|
10
16
|
className,
|
|
17
|
+
orientation = 'horizontal',
|
|
11
18
|
...props
|
|
12
|
-
}:
|
|
19
|
+
}: GroupProps) {
|
|
13
20
|
return (
|
|
14
|
-
<
|
|
21
|
+
<Group
|
|
15
22
|
data-slot="resizable-panel-group"
|
|
23
|
+
data-panel-group-direction={orientation}
|
|
24
|
+
orientation={orientation}
|
|
16
25
|
className={cn(
|
|
17
|
-
|
|
18
|
-
className
|
|
26
|
+
'flex h-full w-full data-[panel-group-direction=vertical]:flex-col',
|
|
27
|
+
className,
|
|
19
28
|
)}
|
|
20
29
|
{...props}
|
|
21
30
|
/>
|
|
22
|
-
)
|
|
31
|
+
);
|
|
23
32
|
}
|
|
24
33
|
|
|
25
|
-
function ResizablePanel({
|
|
26
|
-
...props
|
|
27
|
-
}: React.ComponentProps<typeof ResizablePrimitive.Panel>) {
|
|
28
|
-
return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />
|
|
34
|
+
function ResizablePanel({ ...props }: PanelProps) {
|
|
35
|
+
return <Panel data-slot="resizable-panel" {...props} />;
|
|
29
36
|
}
|
|
30
37
|
|
|
31
38
|
function ResizableHandle({
|
|
32
39
|
withHandle,
|
|
33
40
|
className,
|
|
34
41
|
...props
|
|
35
|
-
}:
|
|
36
|
-
withHandle?: boolean
|
|
42
|
+
}: SeparatorProps & {
|
|
43
|
+
withHandle?: boolean;
|
|
37
44
|
}) {
|
|
38
45
|
return (
|
|
39
|
-
<
|
|
46
|
+
<Separator
|
|
40
47
|
data-slot="resizable-handle"
|
|
41
48
|
className={cn(
|
|
42
|
-
|
|
43
|
-
className
|
|
49
|
+
'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90',
|
|
50
|
+
className,
|
|
44
51
|
)}
|
|
45
52
|
{...props}
|
|
46
53
|
>
|
|
@@ -49,8 +56,8 @@ function ResizableHandle({
|
|
|
49
56
|
<GripVerticalIcon className="size-2.5" />
|
|
50
57
|
</div>
|
|
51
58
|
)}
|
|
52
|
-
</
|
|
53
|
-
)
|
|
59
|
+
</Separator>
|
|
60
|
+
);
|
|
54
61
|
}
|
|
55
62
|
|
|
56
|
-
export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
|
|
63
|
+
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|