@coze-arch/cli 0.0.1-alpha.7d92f8 → 0.0.1-alpha.8e1417
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/{deploy_build.sh → dev_build.sh} +0 -7
- package/lib/__templates__/expo/.cozeproj/scripts/{deploy_run.sh → dev_run.sh} +22 -22
- package/lib/__templates__/expo/.cozeproj/scripts/prod_build.sh +47 -0
- package/lib/__templates__/expo/.cozeproj/scripts/prod_run.sh +35 -0
- package/lib/__templates__/expo/_gitignore +1 -1
- package/lib/__templates__/expo/_npmrc +2 -4
- package/lib/__templates__/expo/{app.json → client/app.json} +4 -4
- package/lib/__templates__/expo/{metro.config.js → client/metro.config.js} +3 -5
- package/lib/__templates__/expo/client/package.json +92 -0
- package/lib/__templates__/expo/client/src/app/index.ts +1 -0
- package/lib/__templates__/expo/client/{constants → src/constants}/theme.ts +10 -0
- package/lib/__templates__/expo/client/{hooks → src/hooks}/useTheme.ts +1 -1
- package/lib/__templates__/expo/client/{screens → src/screens}/home/index.tsx +0 -1
- package/lib/__templates__/expo/client/tsconfig.json +24 -0
- package/lib/__templates__/expo/package.json +16 -12
- package/lib/__templates__/expo/pnpm-lock.yaml +299 -514
- package/lib/__templates__/expo/pnpm-workspace.yaml +3 -0
- package/lib/__templates__/expo/server/package.json +17 -0
- package/lib/__templates__/expo/tsconfig.json +1 -24
- package/lib/__templates__/nextjs/src/app/globals.css +99 -87
- package/lib/__templates__/vite/vite.config.ts +0 -3
- package/lib/cli.js +1 -1
- package/package.json +3 -2
- 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/app/+not-found.tsx +0 -79
- package/lib/__templates__/expo/client/index.js +0 -12
- /package/lib/__templates__/expo/{eslint-formatter-simple.mjs → client/eslint-formatter-simple.mjs} +0 -0
- /package/lib/__templates__/expo/{eslint.config.mjs → client/eslint.config.mjs} +0 -0
- /package/lib/__templates__/expo/client/{app → src/app}/_layout.tsx +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/fonts/SpaceMono-Regular.ttf +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/images/adaptive-icon.png +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/images/default-avatar.png +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/images/favicon.png +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/images/icon.png +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/images/partial-react-logo.png +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/images/react-logo.png +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/images/react-logo@2x.png +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/images/react-logo@3x.png +0 -0
- /package/lib/__templates__/expo/client/{assets → src/assets}/images/splash-icon.png +0 -0
- /package/lib/__templates__/expo/client/{components → src/components}/Screen.tsx +0 -0
- /package/lib/__templates__/expo/client/{components → src/components}/SmartDateInput.tsx +0 -0
- /package/lib/__templates__/expo/client/{contexts → src/contexts}/AuthContext.tsx +0 -0
- /package/lib/__templates__/expo/client/{hooks → src/hooks}/useColorScheme.ts +0 -0
- /package/lib/__templates__/expo/client/{screens → src/screens}/home/styles.ts +0 -0
- /package/lib/__templates__/expo/client/{utils → src/utils}/index.ts +0 -0
- /package/lib/__templates__/expo/{src → server/src}/index.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "server",
|
|
3
|
+
"private": true,
|
|
4
|
+
"scripts": {
|
|
5
|
+
"preinstall": "npx only-allow pnpm",
|
|
6
|
+
"dev": "NODE_ENV=development tsx ./src/index.ts",
|
|
7
|
+
"build": "pnpm exec esbuild src/index.ts --platform=node --packages=external --bundle --format=esm --outdir=dist",
|
|
8
|
+
"start": "NODE_ENV=production PORT=${PORT:-5000} node dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"express": "^4.22.1"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/express": "^5.0.6",
|
|
15
|
+
"tsx": "^4.21.0"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "expo/tsconfig.base",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"skipLibCheck": true,
|
|
5
|
-
"jsx": "react-jsx",
|
|
6
|
-
"baseUrl": ".",
|
|
7
|
-
"strict": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
"paths": {
|
|
10
|
-
"@/*": ["./client/*"]
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"],
|
|
14
|
-
"exclude": [
|
|
15
|
-
"node_modules",
|
|
16
|
-
"**/*.spec.ts",
|
|
17
|
-
"**/*.test.ts",
|
|
18
|
-
"**/*.spec.tsx",
|
|
19
|
-
"**/*.test.tsx",
|
|
20
|
-
"dist",
|
|
21
|
-
"build",
|
|
22
|
-
"client/.expo"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
1
|
+
{}
|
|
@@ -1,59 +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));
|
|
7
|
+
--color-background: var(--background);
|
|
8
|
+
--color-foreground: var(--foreground);
|
|
57
9
|
--font-sans: var(--font-geist-sans);
|
|
58
10
|
--font-mono: var(--font-geist-mono);
|
|
59
11
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
@@ -64,47 +16,103 @@
|
|
|
64
16
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
65
17
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
66
18
|
--color-sidebar: var(--sidebar);
|
|
19
|
+
--color-chart-5: var(--chart-5);
|
|
20
|
+
--color-chart-4: var(--chart-4);
|
|
21
|
+
--color-chart-3: var(--chart-3);
|
|
22
|
+
--color-chart-2: var(--chart-2);
|
|
23
|
+
--color-chart-1: var(--chart-1);
|
|
24
|
+
--color-ring: var(--ring);
|
|
25
|
+
--color-input: var(--input);
|
|
26
|
+
--color-border: var(--border);
|
|
27
|
+
--color-destructive: var(--destructive);
|
|
28
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
29
|
+
--color-accent: var(--accent);
|
|
30
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
31
|
+
--color-muted: var(--muted);
|
|
32
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
33
|
+
--color-secondary: var(--secondary);
|
|
34
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
35
|
+
--color-primary: var(--primary);
|
|
36
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
37
|
+
--color-popover: var(--popover);
|
|
38
|
+
--color-card-foreground: var(--card-foreground);
|
|
39
|
+
--color-card: var(--card);
|
|
40
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
41
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
42
|
+
--radius-lg: var(--radius);
|
|
43
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
44
|
+
--radius-2xl: calc(var(--radius) + 8px);
|
|
45
|
+
--radius-3xl: calc(var(--radius) + 12px);
|
|
46
|
+
--radius-4xl: calc(var(--radius) + 16px);
|
|
67
47
|
}
|
|
68
48
|
|
|
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
|
-
|
|
49
|
+
:root {
|
|
50
|
+
--radius: 0.625rem;
|
|
51
|
+
--background: oklch(1 0 0);
|
|
52
|
+
--foreground: oklch(0.145 0 0);
|
|
53
|
+
--card: oklch(1 0 0);
|
|
54
|
+
--card-foreground: oklch(0.145 0 0);
|
|
55
|
+
--popover: oklch(1 0 0);
|
|
56
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
57
|
+
--primary: oklch(0.205 0 0);
|
|
58
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
59
|
+
--secondary: oklch(0.97 0 0);
|
|
60
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
61
|
+
--muted: oklch(0.97 0 0);
|
|
62
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
63
|
+
--accent: oklch(0.97 0 0);
|
|
64
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
65
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
66
|
+
--border: oklch(0.922 0 0);
|
|
67
|
+
--input: oklch(0.922 0 0);
|
|
68
|
+
--ring: oklch(0.708 0 0);
|
|
69
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
70
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
71
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
72
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
73
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
74
|
+
--sidebar: oklch(0.985 0 0);
|
|
75
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
76
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
77
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
78
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
79
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
80
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
81
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
97
82
|
}
|
|
98
83
|
|
|
99
84
|
.dark {
|
|
100
|
-
--
|
|
101
|
-
--
|
|
102
|
-
--
|
|
103
|
-
--
|
|
104
|
-
--
|
|
105
|
-
--
|
|
106
|
-
--
|
|
107
|
-
--
|
|
85
|
+
--background: oklch(0.145 0 0);
|
|
86
|
+
--foreground: oklch(0.985 0 0);
|
|
87
|
+
--card: oklch(0.205 0 0);
|
|
88
|
+
--card-foreground: oklch(0.985 0 0);
|
|
89
|
+
--popover: oklch(0.205 0 0);
|
|
90
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
91
|
+
--primary: oklch(0.922 0 0);
|
|
92
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
93
|
+
--secondary: oklch(0.269 0 0);
|
|
94
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
95
|
+
--muted: oklch(0.269 0 0);
|
|
96
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
97
|
+
--accent: oklch(0.269 0 0);
|
|
98
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
99
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
100
|
+
--border: oklch(1 0 0 / 10%);
|
|
101
|
+
--input: oklch(1 0 0 / 15%);
|
|
102
|
+
--ring: oklch(0.556 0 0);
|
|
103
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
104
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
105
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
106
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
107
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
108
|
+
--sidebar: oklch(0.205 0 0);
|
|
109
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
110
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
111
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
112
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
113
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
114
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
115
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
108
116
|
}
|
|
109
117
|
|
|
110
118
|
@layer base {
|
|
@@ -115,3 +123,7 @@ body {
|
|
|
115
123
|
@apply bg-background text-foreground;
|
|
116
124
|
}
|
|
117
125
|
}
|
|
126
|
+
|
|
127
|
+
body {
|
|
128
|
+
@apply font-sans;
|
|
129
|
+
}
|
package/lib/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coze-arch/cli",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.8e1417",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "coze coding devtools cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"vitest": "~4.0.16"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
|
-
"access": "public"
|
|
65
|
+
"access": "public",
|
|
66
|
+
"registry": "https://registry.npmjs.org"
|
|
66
67
|
},
|
|
67
68
|
"cozePublishConfig": {
|
|
68
69
|
"bin": {
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Tabs } from 'expo-router';
|
|
2
|
-
import { FontAwesome6 } from '@expo/vector-icons';
|
|
3
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
4
|
-
import { useTheme } from '@/hooks/useTheme';
|
|
5
|
-
|
|
6
|
-
export default function TabLayout() {
|
|
7
|
-
const insets = useSafeAreaInsets();
|
|
8
|
-
const { theme } = useTheme();
|
|
9
|
-
const tabBarHeight = 56 + Math.max(insets.bottom, 8);
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<Tabs
|
|
13
|
-
backBehavior='history'
|
|
14
|
-
screenOptions={{
|
|
15
|
-
headerShown: false,
|
|
16
|
-
tabBarActiveTintColor: theme.tabIconSelected,
|
|
17
|
-
tabBarInactiveTintColor: theme.tabIconDefault,
|
|
18
|
-
tabBarStyle: {
|
|
19
|
-
backgroundColor: theme.backgroundRoot,
|
|
20
|
-
borderTopColor: theme.backgroundSecondary,
|
|
21
|
-
borderTopWidth: 1,
|
|
22
|
-
height: tabBarHeight,
|
|
23
|
-
paddingBottom: Math.max(insets.bottom, 8),
|
|
24
|
-
paddingTop: 6,
|
|
25
|
-
},
|
|
26
|
-
}}
|
|
27
|
-
>
|
|
28
|
-
<Tabs.Screen
|
|
29
|
-
name='index'
|
|
30
|
-
options={{ href: null }}
|
|
31
|
-
/>
|
|
32
|
-
<Tabs.Screen
|
|
33
|
-
name='home'
|
|
34
|
-
options={{
|
|
35
|
-
title: '首页',
|
|
36
|
-
tabBarIcon: ({ color }) => (
|
|
37
|
-
<FontAwesome6 name='house' size={20} color={color} />
|
|
38
|
-
),
|
|
39
|
-
}}
|
|
40
|
-
/>
|
|
41
|
-
</Tabs>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "@/screens/home";
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { useRouter } from 'expo-router';
|
|
2
|
-
import { StyleSheet, View, Text, Pressable, Platform } from 'react-native';
|
|
3
|
-
|
|
4
|
-
export default function NotFoundScreen() {
|
|
5
|
-
const router = useRouter();
|
|
6
|
-
|
|
7
|
-
const goBack = () => {
|
|
8
|
-
if (router.canGoBack()) {
|
|
9
|
-
router.back();
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<View style={styles.container}>
|
|
15
|
-
<Text style={styles.heading}>404</Text>
|
|
16
|
-
<Text style={styles.textStyle}>页面未找到</Text>
|
|
17
|
-
<Text style={styles.subTextStyle}>
|
|
18
|
-
抱歉!您访问的页面不存在,当前页面功能待完善。
|
|
19
|
-
</Text>
|
|
20
|
-
<Pressable onPress={goBack} style={styles.button}>
|
|
21
|
-
<Text style={styles.buttonText}>返回上一页</Text>
|
|
22
|
-
</Pressable>
|
|
23
|
-
</View>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const styles = StyleSheet.create({
|
|
28
|
-
container: {
|
|
29
|
-
flex: 1,
|
|
30
|
-
alignItems: 'center',
|
|
31
|
-
justifyContent: 'center',
|
|
32
|
-
backgroundColor: '#f3f5ff',
|
|
33
|
-
padding: 16,
|
|
34
|
-
},
|
|
35
|
-
heading: {
|
|
36
|
-
fontSize: 120,
|
|
37
|
-
fontWeight: '900',
|
|
38
|
-
color: '#4a5568',
|
|
39
|
-
textShadowColor: 'rgba(0, 0, 0, 0.05)',
|
|
40
|
-
textShadowOffset: { width: 0, height: 4 },
|
|
41
|
-
textShadowRadius: 8,
|
|
42
|
-
},
|
|
43
|
-
textStyle: {
|
|
44
|
-
fontSize: 24,
|
|
45
|
-
fontWeight: '500',
|
|
46
|
-
marginTop: -16,
|
|
47
|
-
marginBottom: 16,
|
|
48
|
-
color: '#4a5568',
|
|
49
|
-
},
|
|
50
|
-
subTextStyle: {
|
|
51
|
-
fontSize: 16,
|
|
52
|
-
color: '#718096',
|
|
53
|
-
marginBottom: 32,
|
|
54
|
-
maxWidth: 400,
|
|
55
|
-
textAlign: 'center',
|
|
56
|
-
},
|
|
57
|
-
button: {
|
|
58
|
-
paddingVertical: 12,
|
|
59
|
-
paddingHorizontal: 24,
|
|
60
|
-
backgroundColor: '#6366f1',
|
|
61
|
-
borderRadius: 9999,
|
|
62
|
-
...Platform.select({
|
|
63
|
-
ios: {
|
|
64
|
-
shadowColor: 'rgba(0, 0, 0, 0.1)',
|
|
65
|
-
shadowOffset: { width: 0, height: 10 },
|
|
66
|
-
shadowOpacity: 1,
|
|
67
|
-
shadowRadius: 15,
|
|
68
|
-
},
|
|
69
|
-
android: {
|
|
70
|
-
elevation: 5,
|
|
71
|
-
},
|
|
72
|
-
}),
|
|
73
|
-
},
|
|
74
|
-
buttonText: {
|
|
75
|
-
fontSize: 16,
|
|
76
|
-
fontWeight: '600',
|
|
77
|
-
color: '#ffffff',
|
|
78
|
-
},
|
|
79
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import '@expo/metro-runtime';
|
|
2
|
-
import { registerRootComponent } from 'expo';
|
|
3
|
-
import { ExpoRoot } from 'expo-router';
|
|
4
|
-
|
|
5
|
-
// 显式定义 App 组件
|
|
6
|
-
export function App() {
|
|
7
|
-
// eslint-disable-next-line no-undef
|
|
8
|
-
const ctx = require.context('./app');
|
|
9
|
-
return <ExpoRoot context={ctx} />;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
registerRootComponent(App);
|
/package/lib/__templates__/expo/{eslint-formatter-simple.mjs → client/eslint-formatter-simple.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|