@coze-arch/cli 0.0.1-alpha.1fb1dc → 0.0.1-alpha.2f99e6
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} +12 -16
- 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/package.json +1 -1
- package/lib/__templates__/nextjs/pnpm-lock.yaml +5 -5
- package/lib/__templates__/nextjs/scripts/dev.sh +7 -26
- package/lib/__templates__/nextjs/src/app/globals.css +99 -87
- package/lib/__templates__/nextjs/src/app/layout.tsx +18 -18
- package/lib/__templates__/templates.json +7 -0
- package/lib/__templates__/vite/package.json +1 -1
- package/lib/__templates__/vite/pnpm-lock.yaml +120 -120
- package/lib/__templates__/vite/scripts/dev.sh +7 -26
- package/lib/__templates__/vite/template.config.js +11 -2
- package/lib/__templates__/vite/vite.config.ts +3 -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
|
@@ -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
|