@getstrata/starter 2.0.7 → 2.0.9
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/cli.js
CHANGED
|
@@ -2337,7 +2337,6 @@ function renderHomeView(projectName, layers) {
|
|
|
2337
2337
|
<a class="button" href="/register">Create account</a>
|
|
2338
2338
|
<a class="button button-secondary" href="/login">Sign in</a>
|
|
2339
2339
|
</div>
|
|
2340
|
-
<p class="muted">Seeded demo: <code>demo@example.com</code> / <code>StrataDemo!ChangeMe</code>.</p>
|
|
2341
2340
|
<% } else { %>
|
|
2342
2341
|
<p class="lede">You are signed in as <strong><%= it.currentUser.email %></strong>.</p>
|
|
2343
2342
|
<p>Add routes in <code>src/modules</code>. This homepage is yours to restyle.</p>
|
|
@@ -3192,9 +3191,9 @@ function renderPackageJson(projectName, options = {}) {
|
|
|
3192
3191
|
"@getstrata/cli": "workspace:*",
|
|
3193
3192
|
"@getstrata/core": "workspace:*"
|
|
3194
3193
|
} : {
|
|
3195
|
-
"@getstrata/bootstrap": "^2.0.
|
|
3196
|
-
"@getstrata/cli": "^2.0.
|
|
3197
|
-
"@getstrata/core": "^2.0.
|
|
3194
|
+
"@getstrata/bootstrap": "^2.0.9",
|
|
3195
|
+
"@getstrata/cli": "^2.0.9",
|
|
3196
|
+
"@getstrata/core": "^2.0.9"
|
|
3198
3197
|
};
|
|
3199
3198
|
coreDeps.eta = "^4.6.0";
|
|
3200
3199
|
if (options.layers?.database === "mysql") {
|
|
@@ -3440,7 +3439,7 @@ function renderReadme(projectName, layers, options = {}) {
|
|
|
3440
3439
|
if (needsFrontendBuild(layers.frontend)) {
|
|
3441
3440
|
next.push("bun run frontend:install", "bun run frontend:build");
|
|
3442
3441
|
}
|
|
3443
|
-
next.push("bun run db:migrate", "bun run
|
|
3442
|
+
next.push("bun run db:migrate", "bun run dev");
|
|
3444
3443
|
const extras = Object.entries(layers.extras).filter(([, on]) => on).map(([key]) => key);
|
|
3445
3444
|
const dockerServices = selectedDockerServices(layers);
|
|
3446
3445
|
const neededTools = neededDockerServices(layers);
|
|
@@ -3474,7 +3473,7 @@ ${next.join(`
|
|
|
3474
3473
|
Open http://localhost:3000. Health check: \`GET /health\`. Redis worker: \`bun run queue:work\` (requires \`REDIS_URL\`).
|
|
3475
3474
|
|
|
3476
3475
|
${renderSupportingToolsReadme(layers)}${layers.auth !== "headers" ? `
|
|
3477
|
-
|
|
3476
|
+
Optional development demo accounts: run \`bun run db:seed:demo\` explicitly after migrations. This command refuses production and staging. It creates these accounts with password \`StrataDemo!ChangeMe\`:
|
|
3478
3477
|
|
|
3479
3478
|
- \`demo@example.com\` (member)
|
|
3480
3479
|
- \`admin@example.test\` (admin)
|
|
@@ -6,8 +6,8 @@ import { useAuth } from "../auth/AuthContext";
|
|
|
6
6
|
export default function LoginPage() {
|
|
7
7
|
const { login, user } = useAuth();
|
|
8
8
|
const navigate = useNavigate();
|
|
9
|
-
const [email, setEmail] = useState("
|
|
10
|
-
const [password, setPassword] = useState("
|
|
9
|
+
const [email, setEmail] = useState("");
|
|
10
|
+
const [password, setPassword] = useState("");
|
|
11
11
|
const [error, setError] = useState<string | null>(null);
|
|
12
12
|
const [submitting, setSubmitting] = useState(false);
|
|
13
13
|
|
|
@@ -33,10 +33,7 @@ export default function LoginPage() {
|
|
|
33
33
|
return (
|
|
34
34
|
<section className="card">
|
|
35
35
|
<h1>Sign in</h1>
|
|
36
|
-
<p className="hint">
|
|
37
|
-
Seeded users are <code>demo@example.com</code> and <code>admin@example.test</code>, password
|
|
38
|
-
<code>StrataDemo!ChangeMe</code>.
|
|
39
|
-
</p>
|
|
36
|
+
<p className="hint">Enter your account email and password.</p>
|
|
40
37
|
|
|
41
38
|
{error ? <p className="error">{error}</p> : null}
|
|
42
39
|
|
|
@@ -45,6 +42,8 @@ export default function LoginPage() {
|
|
|
45
42
|
Email
|
|
46
43
|
<input
|
|
47
44
|
type="email"
|
|
45
|
+
name="email"
|
|
46
|
+
autoComplete="username"
|
|
48
47
|
value={email}
|
|
49
48
|
onChange={(event) => setEmail(event.target.value)}
|
|
50
49
|
required
|
|
@@ -55,6 +54,8 @@ export default function LoginPage() {
|
|
|
55
54
|
Password
|
|
56
55
|
<input
|
|
57
56
|
type="password"
|
|
57
|
+
name="password"
|
|
58
|
+
autoComplete="current-password"
|
|
58
59
|
value={password}
|
|
59
60
|
onChange={(event) => setPassword(event.target.value)}
|
|
60
61
|
required
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"check": "tsc --noEmit"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@getstrata/bootstrap": "^2.0.
|
|
16
|
-
"@getstrata/cli": "^2.0.
|
|
17
|
-
"@getstrata/core": "^2.0.
|
|
15
|
+
"@getstrata/bootstrap": "^2.0.9",
|
|
16
|
+
"@getstrata/cli": "^2.0.9",
|
|
17
|
+
"@getstrata/core": "^2.0.9",
|
|
18
18
|
"eta": "^4.6.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|