create-next-pro-cli 0.1.1 → 0.1.2
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/README.md +2 -7
- package/bin.ts +1 -0
- package/package.json +1 -2
- package/templates/Projects/default/src/app/ui/dashboard/MainDashboard.tsx +0 -21
- package/templates/Projects/default/src/app/ui/dashboard/StatsCard.tsx +0 -14
- package/templates/Projects/default/src/app/ui/dashboard/WelcomeCard.tsx +0 -10
package/README.md
CHANGED
|
@@ -168,13 +168,8 @@ my-next-app/
|
|
|
168
168
|
│ │ ├── not-found.tsx
|
|
169
169
|
│ │ ├── page.tsx
|
|
170
170
|
│ │ ├── sitemap.ts
|
|
171
|
-
│ │
|
|
172
|
-
│ │
|
|
173
|
-
│ │ └── ui
|
|
174
|
-
│ │ └── dashboard
|
|
175
|
-
│ │ ├── MainDashboard.tsx
|
|
176
|
-
│ │ ├── StatsCard.tsx
|
|
177
|
-
│ │ └── WelcomeCard.tsx
|
|
171
|
+
│ │ └── styles
|
|
172
|
+
│ │ └── globals.css
|
|
178
173
|
│ ├── auth.config.ts
|
|
179
174
|
│ ├── config.ts
|
|
180
175
|
│ ├── lib
|
package/bin.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-next-pro-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Advanced Next.js project scaffolder with i18n, Tailwind, App Router and more.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-next-pro": "./bin.ts"
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"nextjs",
|
|
18
|
-
"scaffold",
|
|
19
18
|
"bun",
|
|
20
19
|
"cli",
|
|
21
20
|
"tailwind",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useTranslations } from "next-intl";
|
|
2
|
-
import BackButton from "@/ui/_global/BackButton";
|
|
3
|
-
import WelcomeCard from "@/ui/dashboard/WelcomeCard";
|
|
4
|
-
import StatsCard from "@/ui/dashboard/StatsCard";
|
|
5
|
-
|
|
6
|
-
export default function DashboardPage() {
|
|
7
|
-
const t = useTranslations("dashboard");
|
|
8
|
-
return (
|
|
9
|
-
<main className="py-8 px-4 max-w-3xl mx-auto">
|
|
10
|
-
<div className="flex items-center justify-between mb-6">
|
|
11
|
-
<h1 className="text-2xl font-bold">{t("title")}</h1>
|
|
12
|
-
<BackButton />
|
|
13
|
-
</div>
|
|
14
|
-
<p className="text-muted mb-8">{t("description")}</p>
|
|
15
|
-
<section className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
16
|
-
<WelcomeCard t={t} />
|
|
17
|
-
<StatsCard t={t} />
|
|
18
|
-
</section>
|
|
19
|
-
</main>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
export default function StatsCard({ t }: { t: (key: string) => string }) {
|
|
4
|
-
return (
|
|
5
|
-
<div className="rounded border bg-white p-6 shadow-sm">
|
|
6
|
-
<h2 className="text-lg font-semibold mb-2">Statistiques</h2>
|
|
7
|
-
<ul className="text-sm text-gray-600 space-y-1">
|
|
8
|
-
<li>• {t("widgets.stats.views")}: 123</li>
|
|
9
|
-
<li>• {t("widgets.stats.likes")}: 45</li>
|
|
10
|
-
<li>• {t("widgets.stats.comments")}: 7</li>
|
|
11
|
-
</ul>
|
|
12
|
-
</div>
|
|
13
|
-
);
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
export default function WelcomeCard({ t }: { t: (key: string) => string }) {
|
|
4
|
-
return (
|
|
5
|
-
<div className="rounded border bg-white p-6 shadow-sm">
|
|
6
|
-
<h2 className="text-lg font-semibold mb-2">{t("widgets.welcome")}</h2>
|
|
7
|
-
<p className="text-gray-600">{t("widgets.description")}</p>
|
|
8
|
-
</div>
|
|
9
|
-
);
|
|
10
|
-
}
|