create-100x-mobile 0.2.1 → 0.2.3
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/commands/new.js
CHANGED
|
@@ -224,9 +224,13 @@ async function cmdNew(args) {
|
|
|
224
224
|
if (envContents) {
|
|
225
225
|
await (0, fs_1.writeTextFile)(envLocalPath, envContents);
|
|
226
226
|
}
|
|
227
|
+
// ── Step 6b: Hardcode domain in auth.config.ts ─────────
|
|
228
|
+
// Convex auth.config.ts is evaluated at deploy time, so process.env
|
|
229
|
+
// won't have the value yet (we set it after deploy). Hardcode it.
|
|
230
|
+
if (clerkDomain) {
|
|
231
|
+
await (0, fs_1.writeTextFile)((0, node_path_1.join)(projectDir, "convex/auth.config.ts"), `export default {\n providers: [\n {\n domain: "${clerkDomain}",\n applicationID: "convex",\n },\n ],\n};\n`);
|
|
232
|
+
}
|
|
227
233
|
// ── Step 7: Initialize Convex (single run) ─────────────
|
|
228
|
-
// Only runs once. Convex env vars (set in Step 8) are read at runtime,
|
|
229
|
-
// so no re-deploy is needed after setting them.
|
|
230
234
|
prompts_1.log.step("Setting up Convex");
|
|
231
235
|
try {
|
|
232
236
|
await (0, run_1.run)("bunx", ["convex", "dev", "--once"], { cwd: projectDir });
|
|
@@ -53,11 +53,11 @@ export default function SettingsScreen() {
|
|
|
53
53
|
} catch {}
|
|
54
54
|
|
|
55
55
|
await signOut();
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
// Sign-out succeeded — navigation will happen automatically
|
|
57
|
+
} catch {
|
|
58
|
+
// After signOut(), the session is cleared and the app navigates away.
|
|
59
|
+
// This may cause errors as the component unmounts — that's expected.
|
|
60
|
+
// Only a real pre-signout failure would leave the user stuck here.
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
|
|
@@ -16,6 +16,7 @@ import { SafeAreaView } from "react-native-safe-area-context";
|
|
|
16
16
|
import { useOAuth } from "@clerk/clerk-expo";
|
|
17
17
|
import { useRouter } from "expo-router";
|
|
18
18
|
import { SquareCheck as CheckSquare } from "lucide-react-native";
|
|
19
|
+
import Svg, { Path } from "react-native-svg";
|
|
19
20
|
import * as WebBrowser from "expo-web-browser";
|
|
20
21
|
|
|
21
22
|
WebBrowser.maybeCompleteAuthSession();
|
|
@@ -83,7 +84,14 @@ export default function SignInScreen() {
|
|
|
83
84
|
<ActivityIndicator size={20} color="#1F2937" />
|
|
84
85
|
) : (
|
|
85
86
|
<>
|
|
86
|
-
<
|
|
87
|
+
<View style={styles.iconWrap}>
|
|
88
|
+
<Svg width={20} height={20} viewBox="0 0 24 24">
|
|
89
|
+
<Path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 01-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4" />
|
|
90
|
+
<Path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853" />
|
|
91
|
+
<Path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" fill="#FBBC05" />
|
|
92
|
+
<Path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335" />
|
|
93
|
+
</Svg>
|
|
94
|
+
</View>
|
|
87
95
|
<Text style={styles.googleText}>Continue with Google</Text>
|
|
88
96
|
</>
|
|
89
97
|
)}
|
|
@@ -103,7 +111,11 @@ export default function SignInScreen() {
|
|
|
103
111
|
<ActivityIndicator size={20} color="#FFFFFF" />
|
|
104
112
|
) : (
|
|
105
113
|
<>
|
|
106
|
-
<
|
|
114
|
+
<View style={styles.iconWrap}>
|
|
115
|
+
<Svg width={20} height={20} viewBox="0 0 24 24" fill="#FFFFFF">
|
|
116
|
+
<Path d="M17.05 20.28c-.98.95-2.05.88-3.08.4-1.09-.5-2.08-.48-3.24 0-1.44.62-2.2.44-3.06-.4C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z" />
|
|
117
|
+
</Svg>
|
|
118
|
+
</View>
|
|
107
119
|
<Text style={styles.appleText}>Continue with Apple</Text>
|
|
108
120
|
</>
|
|
109
121
|
)}
|
|
@@ -172,12 +184,6 @@ const styles = StyleSheet.create({
|
|
|
172
184
|
borderWidth: 1.5,
|
|
173
185
|
borderColor: "#E5E7EB",
|
|
174
186
|
},
|
|
175
|
-
googleIcon: {
|
|
176
|
-
fontSize: 20,
|
|
177
|
-
fontWeight: "700",
|
|
178
|
-
color: "#4285F4",
|
|
179
|
-
marginRight: 12,
|
|
180
|
-
},
|
|
181
187
|
googleText: {
|
|
182
188
|
fontSize: 16,
|
|
183
189
|
fontWeight: "600",
|
|
@@ -186,16 +192,18 @@ const styles = StyleSheet.create({
|
|
|
186
192
|
appleButton: {
|
|
187
193
|
backgroundColor: "#000000",
|
|
188
194
|
},
|
|
189
|
-
appleIcon: {
|
|
190
|
-
fontSize: 20,
|
|
191
|
-
color: "#FFFFFF",
|
|
192
|
-
marginRight: 12,
|
|
193
|
-
},
|
|
194
195
|
appleText: {
|
|
195
196
|
fontSize: 16,
|
|
196
197
|
fontWeight: "600",
|
|
197
198
|
color: "#FFFFFF",
|
|
198
199
|
},
|
|
200
|
+
iconWrap: {
|
|
201
|
+
width: 24,
|
|
202
|
+
height: 24,
|
|
203
|
+
alignItems: "center",
|
|
204
|
+
justifyContent: "center",
|
|
205
|
+
marginRight: 12,
|
|
206
|
+
},
|
|
199
207
|
terms: {
|
|
200
208
|
fontSize: 13,
|
|
201
209
|
color: "#9CA3AF",
|