@betterstart/cli 0.1.81 → 0.1.82
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 +15 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/templates/init/components/layout/cms-search.tsx +6 -5
- package/templates/init/components/layout/cms-sidebar.tsx +3 -7
- package/templates/init/data/navigation.ts +6 -6
- package/templates/init/lib/actions/profile.ts +4 -0
- package/templates/init/lib/auth/auth.ts +17 -0
- package/templates/init/pages/forgot-password-form.tsx +130 -0
- package/templates/init/pages/forgot-password-page.tsx +20 -0
- package/templates/init/pages/login-form.tsx +17 -1
- package/templates/init/pages/login-page.tsx +12 -2
- package/templates/init/pages/profile/profile-form.tsx +65 -137
- package/templates/init/pages/reset-password-form.tsx +159 -0
- package/templates/init/pages/reset-password-page.tsx +20 -0
- package/templates/ui/button.tsx +1 -1
- package/templates/ui/card.tsx +2 -2
- package/templates/ui/curriculum-editor.tsx +2 -2
- package/templates/ui/image-upload-field.tsx +2 -2
- package/templates/ui/input.tsx +5 -4
- package/templates/ui/media-upload-field.tsx +2 -2
- package/templates/ui/placeholder.tsx +1 -1
- package/templates/ui/sidebar.tsx +1 -1
- package/templates/ui/video-upload-field.tsx +2 -2
package/dist/cli.js
CHANGED
|
@@ -6064,7 +6064,7 @@ ${indent} key={item.id}
|
|
|
6064
6064
|
${indent} value={\`item-\${index + 1}\`}
|
|
6065
6065
|
${indent} className="p-0 border-none"
|
|
6066
6066
|
${indent} >
|
|
6067
|
-
${indent} <div className="space-y-5 rounded-lg border p-4 bg-
|
|
6067
|
+
${indent} <div className="space-y-5 rounded-lg border p-4 bg-background [&_h3]:m-0 w-full">
|
|
6068
6068
|
${indent} <AccordionTrigger className="flex items-center p-0 justify-between w-full">
|
|
6069
6069
|
${indent} <h4 className="text-sm font-medium w-full">
|
|
6070
6070
|
${indent} ${accordionTitle}
|
|
@@ -7804,7 +7804,7 @@ ${filterLogic}` : ""}`;
|
|
|
7804
7804
|
name="search"
|
|
7805
7805
|
placeholder="Search ${schema.label.toLowerCase()}..."
|
|
7806
7806
|
defaultValue={search}
|
|
7807
|
-
className="w-64 pl-9 bg-white
|
|
7807
|
+
className="w-64 pl-9 bg-white"
|
|
7808
7808
|
/>
|
|
7809
7809
|
<CornerDownLeft className="text-muted-foreground/70 pointer-events-none absolute top-1/2 right-3 size-4 -translate-y-1/2" />
|
|
7810
7810
|
</form>`;
|
|
@@ -9880,6 +9880,12 @@ function scaffoldLayout({ cwd, config }) {
|
|
|
9880
9880
|
write(path40.join(config.paths.pages, "layout.tsx"), readTemplate("pages/authenticated-layout.tsx"));
|
|
9881
9881
|
write(path40.join(config.paths.login, "page.tsx"), readTemplate("pages/login-page.tsx"));
|
|
9882
9882
|
write(path40.join(config.paths.login, "login-form.tsx"), readTemplate("pages/login-form.tsx"));
|
|
9883
|
+
const forgotPasswordDir = path40.join(cmsDir, "forgot-password");
|
|
9884
|
+
write(path40.join(forgotPasswordDir, "page.tsx"), readTemplate("pages/forgot-password-page.tsx"));
|
|
9885
|
+
write(path40.join(forgotPasswordDir, "forgot-password-form.tsx"), readTemplate("pages/forgot-password-form.tsx"));
|
|
9886
|
+
const resetPasswordDir = path40.join(cmsDir, "reset-password");
|
|
9887
|
+
write(path40.join(resetPasswordDir, "page.tsx"), readTemplate("pages/reset-password-page.tsx"));
|
|
9888
|
+
write(path40.join(resetPasswordDir, "reset-password-form.tsx"), readTemplate("pages/reset-password-form.tsx"));
|
|
9883
9889
|
write(path40.join(config.paths.pages, "page.tsx"), readTemplate("pages/dashboard-page.tsx"));
|
|
9884
9890
|
const usersDir = path40.join(config.paths.pages, "users");
|
|
9885
9891
|
write(path40.join(usersDir, "page.tsx"), readTemplate("pages/users/users-page.tsx"));
|
|
@@ -12257,6 +12263,13 @@ var TEMPLATE_REGISTRY = {
|
|
|
12257
12263
|
"account-layout": { relPath: "app/(cms)/cms/(account)/layout.tsx", content: () => readTemplate("pages/account-layout.tsx"), base: "cwd" },
|
|
12258
12264
|
"profile-page": { relPath: "app/(cms)/cms/(account)/profile/page.tsx", content: () => readTemplate("pages/profile/profile-page.tsx"), base: "cwd" },
|
|
12259
12265
|
"profile-form": { relPath: "app/(cms)/cms/(account)/profile/profile-form.tsx", content: () => readTemplate("pages/profile/profile-form.tsx"), base: "cwd" },
|
|
12266
|
+
// Password reset
|
|
12267
|
+
"login-page": { relPath: "app/(cms)/cms/login/page.tsx", content: () => readTemplate("pages/login-page.tsx"), base: "cwd" },
|
|
12268
|
+
"login-form": { relPath: "app/(cms)/cms/login/login-form.tsx", content: () => readTemplate("pages/login-form.tsx"), base: "cwd" },
|
|
12269
|
+
"forgot-password-page": { relPath: "app/(cms)/cms/forgot-password/page.tsx", content: () => readTemplate("pages/forgot-password-page.tsx"), base: "cwd" },
|
|
12270
|
+
"forgot-password-form": { relPath: "app/(cms)/cms/forgot-password/forgot-password-form.tsx", content: () => readTemplate("pages/forgot-password-form.tsx"), base: "cwd" },
|
|
12271
|
+
"reset-password-page": { relPath: "app/(cms)/cms/reset-password/page.tsx", content: () => readTemplate("pages/reset-password-page.tsx"), base: "cwd" },
|
|
12272
|
+
"reset-password-form": { relPath: "app/(cms)/cms/reset-password/reset-password-form.tsx", content: () => readTemplate("pages/reset-password-form.tsx"), base: "cwd" },
|
|
12260
12273
|
// Lib
|
|
12261
12274
|
r2: { relPath: "lib/r2.ts", content: () => readTemplate("lib/r2.ts") },
|
|
12262
12275
|
"form-settings-action": { relPath: "lib/actions/form-settings.ts", content: () => readTemplate("lib/actions/form-settings.ts") },
|