create-next-pro-cli 0.1.2 → 0.1.4
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/package.json +1 -1
- package/templates/Page/layout.tsx +11 -0
- package/templates/Page/loading.tsx +2 -1
- package/templates/Page/page-ui.tsx +6 -11
- package/templates/Page/page.tsx +4 -15
- package/bun.lock +0 -27
package/package.json
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
export default function Loading() {
|
|
5
|
+
const t = useTranslations("_global_ui");
|
|
5
6
|
return (
|
|
6
7
|
<div className="flex flex-col flex-1 items-center justify-center">
|
|
7
|
-
<p className="text-gray-500">
|
|
8
|
+
<p className="text-gray-500">{t("common.loading")}</p>
|
|
8
9
|
</div>
|
|
9
10
|
);
|
|
10
11
|
}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
("");
|
|
1
|
+
("use client");
|
|
2
2
|
import { useTranslations } from "next-intl";
|
|
3
3
|
import BackButton from "@/ui/_global/BackButton";
|
|
4
|
-
import WelcomeCard from "@/ui/dashboard/WelcomeCard";
|
|
5
|
-
import StatsCard from "@/ui/dashboard/StatsCard";
|
|
6
4
|
|
|
7
|
-
export default function
|
|
8
|
-
const t = useTranslations("
|
|
5
|
+
export default function template() {
|
|
6
|
+
const t = useTranslations("template");
|
|
9
7
|
return (
|
|
10
|
-
|
|
8
|
+
<main className="py-8 px-4 max-w-3xl mx-auto">
|
|
11
9
|
<div className="flex items-center justify-between mb-6">
|
|
12
10
|
<h1 className="text-2xl font-bold">{t("title")}</h1>
|
|
13
11
|
<BackButton />
|
|
14
12
|
</div>
|
|
15
13
|
<p className="text-muted mb-8">{t("description")}</p>
|
|
16
|
-
<section className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
17
|
-
|
|
18
|
-
<StatsCard t={t} />
|
|
19
|
-
</section>
|
|
20
|
-
</>
|
|
14
|
+
<section className="grid grid-cols-1 md:grid-cols-2 gap-6"></section>
|
|
15
|
+
</main>
|
|
21
16
|
);
|
|
22
17
|
}
|
package/templates/Page/page.tsx
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import { useTranslations } from "next-intl";
|
|
3
|
-
import BackButton from "@/ui/_global/BackButton";
|
|
1
|
+
import templatePageUI from "@/ui/template/page-ui";
|
|
4
2
|
|
|
5
|
-
export default function
|
|
6
|
-
|
|
7
|
-
return (
|
|
8
|
-
<main className="py-8 px-4 max-w-3xl mx-auto">
|
|
9
|
-
<div className="flex items-center justify-between mb-6">
|
|
10
|
-
<h1 className="text-2xl font-bold">{t("title")}</h1>
|
|
11
|
-
<BackButton />
|
|
12
|
-
</div>
|
|
13
|
-
<p className="text-muted mb-8">{t("description")}</p>
|
|
14
|
-
<section className="grid grid-cols-1 md:grid-cols-2 gap-6"></section>
|
|
15
|
-
</main>
|
|
16
|
-
);
|
|
3
|
+
export default function LoginPage() {
|
|
4
|
+
return <templatePageUI />;
|
|
17
5
|
}
|
|
6
|
+
|
|
18
7
|
// This page is the main entry point for the page
|
|
19
8
|
// It uses the `useTranslations` hook to fetch localized strings
|
|
20
9
|
// The `t` function is used to get the translated strings for the page
|
package/bun.lock
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lockfileVersion": 1,
|
|
3
|
-
"workspaces": {
|
|
4
|
-
"": {
|
|
5
|
-
"name": "create-next-pro",
|
|
6
|
-
"dependencies": {
|
|
7
|
-
"prompts": "^2.4.2",
|
|
8
|
-
},
|
|
9
|
-
"devDependencies": {
|
|
10
|
-
"@types/prompts": "^2.4.9",
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
"packages": {
|
|
15
|
-
"@types/node": ["@types/node@24.1.0", "", { "dependencies": { "undici-types": "~7.8.0" } }, "sha512-ut5FthK5moxFKH2T1CUOC6ctR67rQRvvHdFLCD2Ql6KXmMuCrjsSsRI9UsLCm9M18BMwClv4pn327UvB7eeO1w=="],
|
|
16
|
-
|
|
17
|
-
"@types/prompts": ["@types/prompts@2.4.9", "", { "dependencies": { "@types/node": "*", "kleur": "^3.0.3" } }, "sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA=="],
|
|
18
|
-
|
|
19
|
-
"kleur": ["kleur@3.0.3", "", {}, "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w=="],
|
|
20
|
-
|
|
21
|
-
"prompts": ["prompts@2.4.2", "", { "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" } }, "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q=="],
|
|
22
|
-
|
|
23
|
-
"sisteransi": ["sisteransi@1.0.5", "", {}, "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="],
|
|
24
|
-
|
|
25
|
-
"undici-types": ["undici-types@7.8.0", "", {}, "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw=="],
|
|
26
|
-
}
|
|
27
|
-
}
|