@coze-arch/cli 0.0.1-alpha.f74941 → 0.0.1-alpha.f91253

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.
Files changed (173) hide show
  1. package/lib/__templates__/expo/.coze +7 -2
  2. package/lib/__templates__/expo/.cozeproj/scripts/dev_build.sh +46 -0
  3. package/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +220 -0
  4. package/lib/__templates__/expo/.cozeproj/scripts/prod_build.sh +47 -0
  5. package/lib/__templates__/expo/.cozeproj/scripts/prod_run.sh +34 -0
  6. package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +45 -0
  7. package/lib/__templates__/expo/README.md +68 -7
  8. package/lib/__templates__/expo/_gitignore +1 -1
  9. package/lib/__templates__/expo/_npmrc +3 -5
  10. package/lib/__templates__/expo/client/app/_layout.tsx +14 -14
  11. package/lib/__templates__/expo/client/app/index.tsx +1 -0
  12. package/lib/__templates__/expo/client/app.config.ts +76 -0
  13. package/lib/__templates__/expo/client/components/Screen.tsx +1 -17
  14. package/lib/__templates__/expo/client/components/ThemedText.tsx +33 -0
  15. package/lib/__templates__/expo/client/components/ThemedView.tsx +38 -0
  16. package/lib/__templates__/expo/client/constants/theme.ts +117 -58
  17. package/lib/__templates__/expo/client/contexts/AuthContext.tsx +14 -107
  18. package/lib/__templates__/expo/client/declarations.d.ts +5 -0
  19. package/lib/__templates__/expo/{eslint.config.mjs → client/eslint.config.mjs} +14 -10
  20. package/lib/__templates__/expo/client/hooks/useColorScheme.ts +34 -1
  21. package/lib/__templates__/expo/client/hooks/useTheme.ts +26 -6
  22. package/lib/__templates__/expo/client/metro.config.js +121 -0
  23. package/lib/__templates__/expo/client/package.json +93 -0
  24. package/lib/__templates__/expo/client/screens/demo/index.tsx +25 -0
  25. package/lib/__templates__/expo/client/screens/demo/styles.ts +28 -0
  26. package/lib/__templates__/expo/client/scripts/install-missing-deps.js +37 -12
  27. package/lib/__templates__/expo/client/tsconfig.json +24 -0
  28. package/lib/__templates__/expo/client/utils/index.ts +23 -2
  29. package/lib/__templates__/expo/eslint-plugins/fontawesome6/index.js +9 -0
  30. package/lib/__templates__/expo/eslint-plugins/fontawesome6/names.js +2486 -0
  31. package/lib/__templates__/expo/eslint-plugins/fontawesome6/rule.js +155 -0
  32. package/lib/__templates__/expo/package.json +13 -92
  33. package/lib/__templates__/expo/pnpm-lock.yaml +675 -678
  34. package/lib/__templates__/expo/pnpm-workspace.yaml +3 -0
  35. package/lib/__templates__/expo/server/build.js +21 -0
  36. package/lib/__templates__/expo/server/package.json +32 -0
  37. package/lib/__templates__/expo/server/src/index.ts +19 -0
  38. package/lib/__templates__/expo/server/tsconfig.json +24 -0
  39. package/lib/__templates__/expo/template.config.js +2 -1
  40. package/lib/__templates__/expo/tsconfig.json +1 -24
  41. package/lib/__templates__/nextjs/.babelrc +15 -0
  42. package/lib/__templates__/nextjs/.coze +4 -3
  43. package/lib/__templates__/nextjs/README.md +341 -19
  44. package/lib/__templates__/nextjs/_npmrc +2 -1
  45. package/lib/__templates__/nextjs/components.json +21 -0
  46. package/lib/__templates__/nextjs/next.config.ts +12 -0
  47. package/lib/__templates__/nextjs/package.json +64 -2
  48. package/lib/__templates__/nextjs/pnpm-lock.yaml +8768 -1565
  49. package/lib/__templates__/nextjs/scripts/dev.sh +9 -27
  50. package/lib/__templates__/{react-rsbuild/scripts/build.sh → nextjs/scripts/prepare.sh} +0 -5
  51. package/lib/__templates__/nextjs/src/app/globals.css +124 -13
  52. package/lib/__templates__/nextjs/src/app/layout.tsx +23 -32
  53. package/lib/__templates__/nextjs/src/app/page.tsx +35 -23
  54. package/lib/__templates__/nextjs/src/components/ui/accordion.tsx +66 -0
  55. package/lib/__templates__/nextjs/src/components/ui/alert-dialog.tsx +157 -0
  56. package/lib/__templates__/nextjs/src/components/ui/alert.tsx +66 -0
  57. package/lib/__templates__/nextjs/src/components/ui/aspect-ratio.tsx +11 -0
  58. package/lib/__templates__/nextjs/src/components/ui/avatar.tsx +53 -0
  59. package/lib/__templates__/nextjs/src/components/ui/badge.tsx +46 -0
  60. package/lib/__templates__/nextjs/src/components/ui/breadcrumb.tsx +109 -0
  61. package/lib/__templates__/nextjs/src/components/ui/button-group.tsx +83 -0
  62. package/lib/__templates__/nextjs/src/components/ui/button.tsx +62 -0
  63. package/lib/__templates__/nextjs/src/components/ui/calendar.tsx +220 -0
  64. package/lib/__templates__/nextjs/src/components/ui/card.tsx +92 -0
  65. package/lib/__templates__/nextjs/src/components/ui/carousel.tsx +241 -0
  66. package/lib/__templates__/nextjs/src/components/ui/chart.tsx +357 -0
  67. package/lib/__templates__/nextjs/src/components/ui/checkbox.tsx +32 -0
  68. package/lib/__templates__/nextjs/src/components/ui/collapsible.tsx +33 -0
  69. package/lib/__templates__/nextjs/src/components/ui/command.tsx +184 -0
  70. package/lib/__templates__/nextjs/src/components/ui/context-menu.tsx +252 -0
  71. package/lib/__templates__/nextjs/src/components/ui/dialog.tsx +143 -0
  72. package/lib/__templates__/nextjs/src/components/ui/drawer.tsx +135 -0
  73. package/lib/__templates__/nextjs/src/components/ui/dropdown-menu.tsx +257 -0
  74. package/lib/__templates__/nextjs/src/components/ui/empty.tsx +104 -0
  75. package/lib/__templates__/nextjs/src/components/ui/field.tsx +248 -0
  76. package/lib/__templates__/nextjs/src/components/ui/form.tsx +167 -0
  77. package/lib/__templates__/nextjs/src/components/ui/hover-card.tsx +44 -0
  78. package/lib/__templates__/nextjs/src/components/ui/input-group.tsx +170 -0
  79. package/lib/__templates__/nextjs/src/components/ui/input-otp.tsx +77 -0
  80. package/lib/__templates__/nextjs/src/components/ui/input.tsx +21 -0
  81. package/lib/__templates__/nextjs/src/components/ui/item.tsx +193 -0
  82. package/lib/__templates__/nextjs/src/components/ui/kbd.tsx +28 -0
  83. package/lib/__templates__/nextjs/src/components/ui/label.tsx +24 -0
  84. package/lib/__templates__/nextjs/src/components/ui/menubar.tsx +276 -0
  85. package/lib/__templates__/nextjs/src/components/ui/navigation-menu.tsx +168 -0
  86. package/lib/__templates__/nextjs/src/components/ui/pagination.tsx +127 -0
  87. package/lib/__templates__/nextjs/src/components/ui/popover.tsx +48 -0
  88. package/lib/__templates__/nextjs/src/components/ui/progress.tsx +31 -0
  89. package/lib/__templates__/nextjs/src/components/ui/radio-group.tsx +45 -0
  90. package/lib/__templates__/nextjs/src/components/ui/resizable.tsx +63 -0
  91. package/lib/__templates__/nextjs/src/components/ui/scroll-area.tsx +58 -0
  92. package/lib/__templates__/nextjs/src/components/ui/select.tsx +190 -0
  93. package/lib/__templates__/nextjs/src/components/ui/separator.tsx +28 -0
  94. package/lib/__templates__/nextjs/src/components/ui/sheet.tsx +139 -0
  95. package/lib/__templates__/nextjs/src/components/ui/sidebar.tsx +724 -0
  96. package/lib/__templates__/nextjs/src/components/ui/skeleton.tsx +13 -0
  97. package/lib/__templates__/nextjs/src/components/ui/slider.tsx +63 -0
  98. package/lib/__templates__/nextjs/src/components/ui/sonner.tsx +40 -0
  99. package/lib/__templates__/nextjs/src/components/ui/spinner.tsx +16 -0
  100. package/lib/__templates__/nextjs/src/components/ui/switch.tsx +31 -0
  101. package/lib/__templates__/nextjs/src/components/ui/table.tsx +116 -0
  102. package/lib/__templates__/nextjs/src/components/ui/tabs.tsx +66 -0
  103. package/lib/__templates__/nextjs/src/components/ui/textarea.tsx +18 -0
  104. package/lib/__templates__/nextjs/src/components/ui/toggle-group.tsx +83 -0
  105. package/lib/__templates__/nextjs/src/components/ui/toggle.tsx +47 -0
  106. package/lib/__templates__/nextjs/src/components/ui/tooltip.tsx +61 -0
  107. package/lib/__templates__/nextjs/src/hooks/use-mobile.ts +19 -0
  108. package/lib/__templates__/nextjs/src/lib/utils.ts +6 -0
  109. package/lib/__templates__/nextjs/template.config.js +32 -2
  110. package/lib/__templates__/templates.json +61 -74
  111. package/lib/__templates__/vite/.coze +4 -3
  112. package/lib/__templates__/vite/README.md +204 -26
  113. package/lib/__templates__/vite/_npmrc +2 -1
  114. package/lib/__templates__/vite/eslint.config.mjs +9 -0
  115. package/lib/__templates__/vite/package.json +11 -2
  116. package/lib/__templates__/vite/pnpm-lock.yaml +3232 -243
  117. package/lib/__templates__/vite/scripts/dev.sh +7 -26
  118. package/lib/__templates__/{rsbuild/scripts/build.sh → vite/scripts/prepare.sh} +0 -5
  119. package/lib/__templates__/vite/src/main.ts +1 -2
  120. package/lib/__templates__/vite/template.config.js +41 -6
  121. package/lib/__templates__/vite/vite.config.ts +3 -3
  122. package/lib/cli.js +874 -316
  123. package/package.json +11 -4
  124. package/lib/__templates__/expo/.cozeproj/scripts/deploy_build.sh +0 -109
  125. package/lib/__templates__/expo/.cozeproj/scripts/deploy_run.sh +0 -257
  126. package/lib/__templates__/expo/app.json +0 -63
  127. package/lib/__templates__/expo/babel.config.js +0 -9
  128. package/lib/__templates__/expo/client/app/(tabs)/_layout.tsx +0 -43
  129. package/lib/__templates__/expo/client/app/(tabs)/home.tsx +0 -1
  130. package/lib/__templates__/expo/client/app/(tabs)/index.tsx +0 -7
  131. package/lib/__templates__/expo/client/app/+not-found.tsx +0 -79
  132. package/lib/__templates__/expo/client/index.js +0 -11
  133. package/lib/__templates__/expo/client/screens/home/index.tsx +0 -54
  134. package/lib/__templates__/expo/client/screens/home/styles.ts +0 -332
  135. package/lib/__templates__/expo/metro.config.js +0 -53
  136. package/lib/__templates__/expo/src/index.ts +0 -12
  137. package/lib/__templates__/nextjs/.vscode/settings.json +0 -121
  138. package/lib/__templates__/react-rsbuild/.coze +0 -11
  139. package/lib/__templates__/react-rsbuild/.vscode/settings.json +0 -121
  140. package/lib/__templates__/react-rsbuild/README.md +0 -61
  141. package/lib/__templates__/react-rsbuild/_gitignore +0 -97
  142. package/lib/__templates__/react-rsbuild/_npmrc +0 -22
  143. package/lib/__templates__/react-rsbuild/package.json +0 -31
  144. package/lib/__templates__/react-rsbuild/pnpm-lock.yaml +0 -997
  145. package/lib/__templates__/react-rsbuild/rsbuild.config.ts +0 -13
  146. package/lib/__templates__/react-rsbuild/scripts/dev.sh +0 -51
  147. package/lib/__templates__/react-rsbuild/scripts/start.sh +0 -15
  148. package/lib/__templates__/react-rsbuild/src/App.tsx +0 -60
  149. package/lib/__templates__/react-rsbuild/src/index.css +0 -21
  150. package/lib/__templates__/react-rsbuild/src/index.html +0 -12
  151. package/lib/__templates__/react-rsbuild/src/index.tsx +0 -16
  152. package/lib/__templates__/react-rsbuild/tailwind.config.js +0 -9
  153. package/lib/__templates__/react-rsbuild/template.config.js +0 -54
  154. package/lib/__templates__/react-rsbuild/tsconfig.json +0 -17
  155. package/lib/__templates__/rsbuild/.coze +0 -11
  156. package/lib/__templates__/rsbuild/.vscode/settings.json +0 -7
  157. package/lib/__templates__/rsbuild/README.md +0 -61
  158. package/lib/__templates__/rsbuild/_gitignore +0 -97
  159. package/lib/__templates__/rsbuild/_npmrc +0 -22
  160. package/lib/__templates__/rsbuild/package.json +0 -24
  161. package/lib/__templates__/rsbuild/pnpm-lock.yaml +0 -888
  162. package/lib/__templates__/rsbuild/rsbuild.config.ts +0 -12
  163. package/lib/__templates__/rsbuild/scripts/dev.sh +0 -51
  164. package/lib/__templates__/rsbuild/scripts/start.sh +0 -15
  165. package/lib/__templates__/rsbuild/src/index.css +0 -21
  166. package/lib/__templates__/rsbuild/src/index.html +0 -12
  167. package/lib/__templates__/rsbuild/src/index.ts +0 -5
  168. package/lib/__templates__/rsbuild/src/main.ts +0 -65
  169. package/lib/__templates__/rsbuild/tailwind.config.js +0 -9
  170. package/lib/__templates__/rsbuild/template.config.js +0 -56
  171. package/lib/__templates__/rsbuild/tsconfig.json +0 -16
  172. package/lib/__templates__/vite/.vscode/settings.json +0 -7
  173. /package/lib/__templates__/expo/{eslint-formatter-simple.mjs → client/eslint-formatter-simple.mjs} +0 -0
@@ -1,54 +0,0 @@
1
- import React, { useState, useCallback } from 'react';
2
- import {
3
- View,
4
- Text,
5
- ScrollView,
6
- TouchableOpacity,
7
- RefreshControl,
8
- Image,
9
- ActivityIndicator,
10
- } from 'react-native';
11
- import { useRouter, useFocusEffect } from 'expo-router';
12
- import { FontAwesome6 } from '@expo/vector-icons';
13
- import { useSafeAreaInsets } from 'react-native-safe-area-context';
14
- import { useTheme } from "@/hooks/useTheme";
15
-
16
- import { Screen } from '@/components/Screen';
17
-
18
- import styles from './styles';
19
-
20
-
21
- export default function HomeScreen() {
22
- const insets = useSafeAreaInsets();
23
- const { theme, isDark } = useTheme();
24
-
25
- const [isRefreshing, setIsRefreshing] = useState(false);
26
-
27
- const loadData = useCallback(async () => {
28
- }, []);
29
-
30
- useFocusEffect(
31
- useCallback(() => {
32
- loadData();
33
- }, [loadData])
34
- );
35
-
36
- const handleRefresh = useCallback(() => {
37
- setIsRefreshing(true);
38
- loadData();
39
- }, [loadData]);
40
- return (
41
- <Screen backgroundColor={theme.backgroundRoot} statusBarStyle={isDark ? 'light' : 'dark'}>
42
- <ScrollView
43
- showsVerticalScrollIndicator={false}
44
- contentContainerStyle={{}}
45
- refreshControl={
46
- <RefreshControl refreshing={isRefreshing} onRefresh={handleRefresh} colors={['#2563EB']} />
47
- }
48
- >
49
- <View style={[styles.header]}>
50
- </View>
51
- </ScrollView>
52
- </Screen>
53
- );
54
- }
@@ -1,332 +0,0 @@
1
- import { StyleSheet, Platform } from 'react-native';
2
-
3
- const styles = StyleSheet.create({
4
- loadingContainer: {
5
- flex: 1,
6
- justifyContent: 'center',
7
- alignItems: 'center',
8
- },
9
- loadingText: {
10
- marginTop: 12,
11
- fontSize: 14,
12
- color: '#64748B',
13
- },
14
- errorContainer: {
15
- flex: 1,
16
- justifyContent: 'center',
17
- alignItems: 'center',
18
- paddingHorizontal: 24,
19
- },
20
- errorText: {
21
- marginTop: 16,
22
- fontSize: 16,
23
- color: '#64748B',
24
- },
25
- retryButton: {
26
- marginTop: 20,
27
- paddingHorizontal: 24,
28
- paddingVertical: 12,
29
- backgroundColor: '#2563EB',
30
- borderRadius: 8,
31
- },
32
- retryButtonText: {
33
- color: '#FFFFFF',
34
- fontSize: 14,
35
- fontWeight: '600',
36
- },
37
- header: {
38
- flexDirection: 'row',
39
- justifyContent: 'space-between',
40
- alignItems: 'center',
41
- paddingHorizontal: 16,
42
- // paddingBottom: 16,
43
- backgroundColor: '#FFFFFF',
44
- // borderBottomWidth: 1,
45
- borderBottomColor: '#E2E8F0',
46
- },
47
- headerLeft: {
48
- flexDirection: 'row',
49
- alignItems: 'center',
50
- gap: 10,
51
- },
52
- logoContainer: {
53
- width: 32,
54
- height: 32,
55
- backgroundColor: '#2563EB',
56
- borderRadius: 8,
57
- justifyContent: 'center',
58
- alignItems: 'center',
59
- ...Platform.select({
60
- ios: {
61
- shadowColor: '#000',
62
- shadowOffset: { width: 0, height: 1 },
63
- shadowOpacity: 0.1,
64
- shadowRadius: 2,
65
- },
66
- android: {
67
- elevation: 2,
68
- },
69
- }),
70
- },
71
- logoText: {
72
- fontSize: 18,
73
- fontWeight: '700',
74
- color: '#1E293B',
75
- letterSpacing: -0.5,
76
- },
77
- userMenuContainer: {
78
- flexDirection: 'row',
79
- alignItems: 'center',
80
- gap: 10,
81
- paddingLeft: 16,
82
- borderLeftWidth: 1,
83
- borderLeftColor: '#E2E8F0',
84
- },
85
- userInfo: {
86
- alignItems: 'flex-end',
87
- },
88
- userName: {
89
- fontSize: 14,
90
- fontWeight: '500',
91
- color: '#1E293B',
92
- },
93
- userRole: {
94
- fontSize: 12,
95
- color: '#64748B',
96
- },
97
- avatar: {
98
- width: 36,
99
- height: 36,
100
- borderRadius: 18,
101
- borderWidth: 2,
102
- borderColor: '#FFFFFF',
103
- ...Platform.select({
104
- ios: {
105
- shadowColor: '#000',
106
- shadowOffset: { width: 0, height: 1 },
107
- shadowOpacity: 0.1,
108
- shadowRadius: 2,
109
- },
110
- android: {
111
- elevation: 2,
112
- },
113
- }),
114
- },
115
- avatarPlaceholder: {
116
- width: 36,
117
- height: 36,
118
- borderRadius: 18,
119
- justifyContent: 'center',
120
- alignItems: 'center',
121
- borderWidth: 2,
122
- borderColor: '#FFFFFF',
123
- backgroundColor: '#3B82F6',
124
- ...Platform.select({
125
- ios: {
126
- shadowColor: '#000',
127
- shadowOffset: { width: 0, height: 1 },
128
- shadowOpacity: 0.1,
129
- shadowRadius: 2,
130
- },
131
- android: {
132
- elevation: 2,
133
- },
134
- }),
135
- },
136
- avatarInitial: {
137
- fontSize: 14,
138
- fontWeight: '700',
139
- color: '#FFFFFF',
140
- },
141
- content: {
142
- paddingHorizontal: 16,
143
- paddingTop: 24,
144
- },
145
- welcomeSection: {
146
- marginBottom: 24,
147
- },
148
- welcomeTitle: {
149
- fontSize: 22,
150
- fontWeight: '700',
151
- color: '#1E293B',
152
- marginBottom: 4,
153
- },
154
- welcomeSubtitle: {
155
- fontSize: 14,
156
- color: '#64748B',
157
- },
158
- statsGrid: {
159
- flexDirection: 'row',
160
- gap: 12,
161
- marginBottom: 24,
162
- },
163
- statCard: {
164
- flex: 1,
165
- backgroundColor: '#FFFFFF',
166
- borderRadius: 12,
167
- padding: 16,
168
- ...Platform.select({
169
- ios: {
170
- shadowColor: '#000',
171
- shadowOffset: { width: 0, height: 1 },
172
- shadowOpacity: 0.05,
173
- shadowRadius: 3,
174
- },
175
- android: {
176
- elevation: 2,
177
- },
178
- }),
179
- },
180
- statCardHeader: {
181
- flexDirection: 'row',
182
- justifyContent: 'space-between',
183
- alignItems: 'flex-start',
184
- marginBottom: 12,
185
- },
186
- statIconContainer: {
187
- width: 40,
188
- height: 40,
189
- borderRadius: 10,
190
- justifyContent: 'center',
191
- alignItems: 'center',
192
- },
193
- statIconBlue: {
194
- backgroundColor: '#EFF6FF',
195
- },
196
- statIconRed: {
197
- backgroundColor: '#FEF2F2',
198
- },
199
- statIconGreen: {
200
- backgroundColor: '#ECFDF5',
201
- },
202
- attentionBadge: {
203
- backgroundColor: '#FEF2F2',
204
- paddingHorizontal: 6,
205
- paddingVertical: 2,
206
- borderRadius: 10,
207
- },
208
- attentionBadgeText: {
209
- fontSize: 10,
210
- fontWeight: '500',
211
- color: '#EF4444',
212
- },
213
- rateBadge: {
214
- backgroundColor: '#ECFDF5',
215
- paddingHorizontal: 6,
216
- paddingVertical: 2,
217
- borderRadius: 10,
218
- },
219
- rateBadgeText: {
220
- fontSize: 10,
221
- fontWeight: '500',
222
- color: '#10B981',
223
- },
224
- statValue: {
225
- fontSize: 28,
226
- fontWeight: '700',
227
- color: '#1E293B',
228
- marginBottom: 2,
229
- },
230
- statLabel: {
231
- fontSize: 13,
232
- color: '#64748B',
233
- },
234
- shortcutsSection: {
235
- gap: 12,
236
- marginBottom: 24,
237
- },
238
- shortcutCard: {
239
- flexDirection: 'row',
240
- justifyContent: 'space-between',
241
- alignItems: 'center',
242
- backgroundColor: '#FFFFFF',
243
- borderRadius: 12,
244
- padding: 16,
245
- ...Platform.select({
246
- ios: {
247
- shadowColor: '#000',
248
- shadowOffset: { width: 0, height: 1 },
249
- shadowOpacity: 0.05,
250
- shadowRadius: 3,
251
- },
252
- android: {
253
- elevation: 2,
254
- },
255
- }),
256
- },
257
- shortcutContent: {
258
- flex: 1,
259
- marginRight: 16,
260
- },
261
- shortcutTitle: {
262
- fontSize: 16,
263
- fontWeight: '600',
264
- color: '#1E293B',
265
- marginBottom: 6,
266
- },
267
- shortcutDescription: {
268
- fontSize: 13,
269
- color: '#64748B',
270
- marginBottom: 10,
271
- lineHeight: 18,
272
- },
273
- shortcutAction: {
274
- flexDirection: 'row',
275
- alignItems: 'center',
276
- gap: 6,
277
- },
278
- shortcutActionText: {
279
- fontSize: 13,
280
- fontWeight: '500',
281
- color: '#2563EB',
282
- },
283
- shortcutIconContainer: {
284
- width: 56,
285
- height: 56,
286
- borderRadius: 28,
287
- justifyContent: 'center',
288
- alignItems: 'center',
289
- },
290
- shortcutIconBlue: {
291
- backgroundColor: '#EFF6FF',
292
- },
293
- shortcutIconGreen: {
294
- backgroundColor: '#ECFDF5',
295
- },
296
- bannerContainer: {
297
- height: 160,
298
- borderRadius: 12,
299
- overflow: 'hidden',
300
- backgroundColor: '#1E3A8A',
301
- },
302
- bannerOverlay: {
303
- flex: 1,
304
- justifyContent: 'center',
305
- paddingHorizontal: 20,
306
- },
307
- bannerTitle: {
308
- fontSize: 18,
309
- fontWeight: '700',
310
- color: '#FFFFFF',
311
- marginBottom: 6,
312
- },
313
- bannerSubtitle: {
314
- fontSize: 13,
315
- color: '#BFDBFE',
316
- marginBottom: 16,
317
- },
318
- bannerButton: {
319
- alignSelf: 'flex-start',
320
- backgroundColor: '#FFFFFF',
321
- paddingHorizontal: 20,
322
- paddingVertical: 10,
323
- borderRadius: 8,
324
- },
325
- bannerButtonText: {
326
- fontSize: 13,
327
- fontWeight: '500',
328
- color: '#2563EB',
329
- },
330
- });
331
-
332
- export default styles;
@@ -1,53 +0,0 @@
1
- const { getDefaultConfig } = require('expo/metro-config');
2
- // const { createProxyMiddleware } = require('http-proxy-middleware');
3
- const connect = require('connect');
4
-
5
- const config = getDefaultConfig(__dirname);
6
-
7
- // 安全地获取 Expo 的默认排除列表
8
- const existingBlockList = [].concat(config.resolver.blockList || []);
9
-
10
- config.resolver.blockList = [
11
- ...existingBlockList,
12
- /.*\/\.expo\/.*/, // Expo 的缓存和构建产物目录
13
-
14
- // 1. 原生代码 (Java/C++/Objective-C)
15
- /.*\/react-native\/ReactAndroid\/.*/,
16
- /.*\/react-native\/ReactCommon\/.*/,
17
-
18
- // 2. 纯开发和调试工具
19
- // 这些工具只在开发电脑上运行,不会被打包到应用中
20
- /.*\/@typescript-eslint\/eslint-plugin\/.*/,
21
-
22
- // 3. 构建时数据
23
- // 这个数据库只在打包过程中使用,应用运行时不需要
24
- /.*\/caniuse-lite\/data\/.*/,
25
-
26
- // 4. 通用规则
27
- /.*\/__tests__\/.*/, // 排除所有测试目录
28
- /.*\.git\/.*/, // 排除 Git 目录
29
- ];
30
-
31
- /*
32
- const apiProxy = createProxyMiddleware({
33
- target: 'http://localhost:3000',
34
- logLevel: 'debug',
35
- });
36
-
37
- config.server = {
38
- ...config.server,
39
- enhanceMiddleware: (metroMiddleware, metroServer) => {
40
- return connect()
41
- .use((req, res, next) => {
42
- if (req.url && req.url.startsWith('/api')) {
43
- console.log(`[Metro Proxy] Forwarding ${req.method} ${req.url}`);
44
- return apiProxy(req, res, next);
45
- }
46
- next();
47
- })
48
- .use(metroMiddleware);
49
- },
50
- }
51
- */
52
-
53
- module.exports = config;
@@ -1,12 +0,0 @@
1
- import express from "express";
2
-
3
- const app = express();
4
- const port = process.env.PORT || 9091;
5
-
6
- app.get('/api/hello', (req, res) => {
7
- res.status(200).json({ message: 'hello world' });
8
- });
9
-
10
- app.listen(port, () => {
11
- console.log(`Server listening at http://localhost:${port}/`);
12
- });
@@ -1,121 +0,0 @@
1
- {
2
- "[css]": {
3
- "editor.defaultFormatter": "esbenp.prettier-vscode"
4
- },
5
- "[dotenv]": {
6
- "editor.defaultFormatter": "foxundermoon.shell-format"
7
- },
8
- "[html]": {
9
- "editor.defaultFormatter": "esbenp.prettier-vscode"
10
- },
11
- "[ignore]": {
12
- "editor.defaultFormatter": "foxundermoon.shell-format"
13
- },
14
- "[javascript]": {
15
- "editor.defaultFormatter": "esbenp.prettier-vscode"
16
- },
17
- "[javascriptreact]": {
18
- "editor.defaultFormatter": "esbenp.prettier-vscode"
19
- },
20
- "[json]": {
21
- "editor.defaultFormatter": "esbenp.prettier-vscode"
22
- },
23
- "[jsonc]": {
24
- "editor.defaultFormatter": "esbenp.prettier-vscode"
25
- },
26
- "[less]": {
27
- "editor.defaultFormatter": "stylelint.vscode-stylelint"
28
- },
29
- "[scss]": {
30
- "editor.defaultFormatter": "esbenp.prettier-vscode"
31
- },
32
- "[shellscript]": {
33
- "editor.defaultFormatter": "foxundermoon.shell-format"
34
- },
35
- "[sql]": {
36
- "editor.defaultFormatter": "adpyke.vscode-sql-formatter"
37
- },
38
- "[svg]": {
39
- "editor.defaultFormatter": "jock.svg"
40
- },
41
- "[typescript]": {
42
- "editor.defaultFormatter": "esbenp.prettier-vscode"
43
- },
44
- "[typescriptreact]": {
45
- "editor.defaultFormatter": "esbenp.prettier-vscode"
46
- },
47
- "[xml]": {
48
- "editor.defaultFormatter": "mblode.pretty-formatter"
49
- },
50
- "[yaml]": {
51
- "editor.defaultFormatter": "esbenp.prettier-vscode"
52
- },
53
- "cSpell.diagnosticLevel": "Warning",
54
- "css.validate": false,
55
- "editor.codeActionsOnSave": {
56
- "source.fixAll": "never",
57
- "source.fixAll.eslint": "explicit",
58
- "source.organizeImports": "never",
59
- "source.removeUnused": "never",
60
- "source.removeUnused.ts": "never",
61
- "source.removeUnusedImports": "never",
62
- "source.sort.json": "never"
63
- // "source.sortImports": "always"
64
- },
65
- "editor.defaultFormatter": "esbenp.prettier-vscode",
66
- "editor.formatOnPaste": false,
67
- "editor.formatOnSave": true,
68
- "editor.formatOnType": false,
69
- "editor.insertSpaces": true,
70
- "editor.minimap.enabled": true,
71
- //
72
- "editor.rulers": [80, 120],
73
- "editor.semanticHighlighting.enabled": false,
74
- "editor.tabSize": 2,
75
- "emmet.triggerExpansionOnTab": true,
76
- "files.associations": {
77
- ".babelrc": "json",
78
- ".code-workspace": "jsonc",
79
- ".eslintrc": "jsonc",
80
- ".eslintrc*.json": "jsonc",
81
- ".htmlhintrc": "jsonc",
82
- ".stylelintrc": "javascript",
83
- "*.json": "jsonc",
84
- "*.log": "plaintext",
85
- "*.map": "plaintext",
86
- "**/coverage/**/*.*": "plaintext",
87
- "**/pnpm-lock.yaml": "plaintext",
88
- "htmlhintrc": "jsonc",
89
- "package.json": "json",
90
- "README": "markdown",
91
- "stylelintrc": "jsonc",
92
- ".coze": "toml"
93
- },
94
- "files.defaultLanguage": "plaintext",
95
- "files.eol": "\n",
96
- "files.exclude": {
97
- "**/.DS_Store": true,
98
- "**/.git": true,
99
- "**/.hg": true,
100
- "**/.svn": true,
101
- // "**/.lintcache": true,
102
- "**/.swc": true,
103
- "**/CVS": true,
104
- "**/Thumbs.db": true
105
- },
106
- "files.insertFinalNewline": true,
107
- "files.trimTrailingWhitespace": true,
108
- "files.watcherExclude": {
109
- "**/.git/objects/**": true,
110
- "**/.git/subtree-cache/**": true,
111
- "**/node_modules/*/**": true
112
- },
113
- "git.openRepositoryInParentFolders": "always",
114
- "search.exclude": {
115
- "**/dist": true,
116
- "**/node_modules": true
117
- },
118
- // "editor.formatOnSaveMode": "modificationsIfAvailable",
119
- "search.followSymlinks": false,
120
- "search.useIgnoreFiles": true
121
- }
@@ -1,11 +0,0 @@
1
- [project]
2
- requires = ["nodejs-24"]
3
-
4
- [dev]
5
- run = ["npm", "run", "dev"]
6
- deps = ["git"] # -> apt install git
7
-
8
- [deploy]
9
- build = ["npm", "run", "build"]
10
- run = ["npm", "run", "start"]
11
- deps = ["git"] # -> apt install git
@@ -1,121 +0,0 @@
1
- {
2
- "[css]": {
3
- "editor.defaultFormatter": "esbenp.prettier-vscode"
4
- },
5
- "[dotenv]": {
6
- "editor.defaultFormatter": "foxundermoon.shell-format"
7
- },
8
- "[html]": {
9
- "editor.defaultFormatter": "esbenp.prettier-vscode"
10
- },
11
- "[ignore]": {
12
- "editor.defaultFormatter": "foxundermoon.shell-format"
13
- },
14
- "[javascript]": {
15
- "editor.defaultFormatter": "esbenp.prettier-vscode"
16
- },
17
- "[javascriptreact]": {
18
- "editor.defaultFormatter": "esbenp.prettier-vscode"
19
- },
20
- "[json]": {
21
- "editor.defaultFormatter": "esbenp.prettier-vscode"
22
- },
23
- "[jsonc]": {
24
- "editor.defaultFormatter": "esbenp.prettier-vscode"
25
- },
26
- "[less]": {
27
- "editor.defaultFormatter": "stylelint.vscode-stylelint"
28
- },
29
- "[scss]": {
30
- "editor.defaultFormatter": "esbenp.prettier-vscode"
31
- },
32
- "[shellscript]": {
33
- "editor.defaultFormatter": "foxundermoon.shell-format"
34
- },
35
- "[sql]": {
36
- "editor.defaultFormatter": "adpyke.vscode-sql-formatter"
37
- },
38
- "[svg]": {
39
- "editor.defaultFormatter": "jock.svg"
40
- },
41
- "[typescript]": {
42
- "editor.defaultFormatter": "esbenp.prettier-vscode"
43
- },
44
- "[typescriptreact]": {
45
- "editor.defaultFormatter": "esbenp.prettier-vscode"
46
- },
47
- "[xml]": {
48
- "editor.defaultFormatter": "mblode.pretty-formatter"
49
- },
50
- "[yaml]": {
51
- "editor.defaultFormatter": "esbenp.prettier-vscode"
52
- },
53
- "cSpell.diagnosticLevel": "Warning",
54
- "css.validate": false,
55
- "editor.codeActionsOnSave": {
56
- "source.fixAll": "never",
57
- "source.fixAll.eslint": "explicit",
58
- "source.organizeImports": "never",
59
- "source.removeUnused": "never",
60
- "source.removeUnused.ts": "never",
61
- "source.removeUnusedImports": "never",
62
- "source.sort.json": "never"
63
- // "source.sortImports": "always"
64
- },
65
- "editor.defaultFormatter": "esbenp.prettier-vscode",
66
- "editor.formatOnPaste": false,
67
- "editor.formatOnSave": true,
68
- "editor.formatOnType": false,
69
- "editor.insertSpaces": true,
70
- "editor.minimap.enabled": true,
71
- //
72
- "editor.rulers": [80, 120],
73
- "editor.semanticHighlighting.enabled": false,
74
- "editor.tabSize": 2,
75
- "emmet.triggerExpansionOnTab": true,
76
- "files.associations": {
77
- ".babelrc": "json",
78
- ".code-workspace": "jsonc",
79
- ".eslintrc": "jsonc",
80
- ".eslintrc*.json": "jsonc",
81
- ".htmlhintrc": "jsonc",
82
- ".stylelintrc": "javascript",
83
- "*.json": "jsonc",
84
- "*.log": "plaintext",
85
- "*.map": "plaintext",
86
- "**/coverage/**/*.*": "plaintext",
87
- "**/pnpm-lock.yaml": "plaintext",
88
- "htmlhintrc": "jsonc",
89
- "package.json": "json",
90
- "README": "markdown",
91
- "stylelintrc": "jsonc",
92
- ".coze": "toml"
93
- },
94
- "files.defaultLanguage": "plaintext",
95
- "files.eol": "\n",
96
- "files.exclude": {
97
- "**/.DS_Store": true,
98
- "**/.git": true,
99
- "**/.hg": true,
100
- "**/.svn": true,
101
- // "**/.lintcache": true,
102
- "**/.swc": true,
103
- "**/CVS": true,
104
- "**/Thumbs.db": true
105
- },
106
- "files.insertFinalNewline": true,
107
- "files.trimTrailingWhitespace": true,
108
- "files.watcherExclude": {
109
- "**/.git/objects/**": true,
110
- "**/.git/subtree-cache/**": true,
111
- "**/node_modules/*/**": true
112
- },
113
- "git.openRepositoryInParentFolders": "always",
114
- "search.exclude": {
115
- "**/dist": true,
116
- "**/node_modules": true
117
- },
118
- // "editor.formatOnSaveMode": "modificationsIfAvailable",
119
- "search.followSymlinks": false,
120
- "search.useIgnoreFiles": true
121
- }