create-nextblock 0.16.2 → 0.16.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/nextblock-template/app/api/cron/reset-sandbox/route.ts +4 -4
- package/templates/nextblock-template/app/api/cron/reset-sandbox/sandboxResetSql.ts +2002 -189
- package/templates/nextblock-template/app/cms/components/SeoScoreBadge.tsx +3 -0
- package/templates/nextblock-template/app/cms/components/TablePagination.tsx +136 -0
- package/templates/nextblock-template/app/cms/pages/page.tsx +273 -227
- package/templates/nextblock-template/app/cms/posts/[id]/edit/page.tsx +2 -0
- package/templates/nextblock-template/app/cms/posts/components/PostForm.tsx +7 -1
- package/templates/nextblock-template/app/cms/posts/page.tsx +251 -194
- package/templates/nextblock-template/app/cms/products/ProductFormClientShell.tsx +19 -0
- package/templates/nextblock-template/app/cms/products/[id]/edit/page.tsx +14 -2
- package/templates/nextblock-template/components/seo/PageSeoAuditSection.tsx +8 -1
- package/templates/nextblock-template/lib/seo/page-audit-context.tsx +18 -1
- package/templates/nextblock-template/lib/seo/page-document.test.ts +68 -0
- package/templates/nextblock-template/lib/seo/page-document.ts +4 -412
- package/templates/nextblock-template/lib/seo/robots-txt.ts +5 -4
- package/templates/nextblock-template/lib/setup/migrations-bundle.ts +202 -177
- package/templates/nextblock-template/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nextblock",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.4",
|
|
4
4
|
"description": "Scaffold a production-ready NextBlock CMS project — the open-source, full-stack AI-native CMS for Next.js 16, Supabase, and Tailwind CSS.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -3275,7 +3275,7 @@ export async function GET(request: NextRequest) {
|
|
|
3275
3275
|
if (!pageId) {
|
|
3276
3276
|
const [newPage] = await db`
|
|
3277
3277
|
INSERT INTO public.pages (language_id, title, slug, status, meta_title, meta_description)
|
|
3278
|
-
VALUES (${langId}, 'Shop Our Products', 'shop', 'published', 'NextBlock™ Store', 'Browse
|
|
3278
|
+
VALUES (${langId}, 'Shop Our Products', 'shop', 'published', 'Shop NextBlock™ Modules | Official Store', 'Browse official commercial modules and licenses for NextBlock CMS. Get instant access to NextBlock Commerce and Cortex AI with secure checkout.')
|
|
3279
3279
|
RETURNING id, translation_group_id
|
|
3280
3280
|
`;
|
|
3281
3281
|
pageId = newPage.id;
|
|
@@ -3306,7 +3306,7 @@ export async function GET(request: NextRequest) {
|
|
|
3306
3306
|
{
|
|
3307
3307
|
block_type: "text",
|
|
3308
3308
|
content: {
|
|
3309
|
-
html_content: "<p style=\"text-align: center; color: var(--background); opacity: 0.9\">Discover our
|
|
3309
|
+
html_content: "<p style=\"text-align: center; color: var(--background); opacity: 0.9\">Discover our selection of official commercial add-ons and developer tools for NextBlock CMS.</p><div class='mt-8 text-slate-300 space-y-4 max-w-3xl mx-auto text-left'><h2 class='text-2xl font-bold text-white mb-4'>Power Up Your Web Projects</h2><p>Welcome to the official NextBlock™ digital store. Here you can purchase licenses for our premium packages, including NextBlock™ Commerce and NextBlock™ Cortex AI. Every commercial license helps fund full-time open-source development on our core CMS while giving your team advanced tools to launch high-performance websites faster.</p><p>Our premium modules are designed to feel native from day one. You get clean code that fits right into your existing NextBlock project without third-party plugins or complex configuration. When you purchase a license from our store, you receive instant access to everything you need:</p><ul class='space-y-2 list-disc pl-5'><li><strong>Full Source Code:</strong> Inspect, customize, and adapt the modules to your exact requirements.</li><li><strong>Perpetual Use:</strong> Use the software for your project with full peace of mind.</li><li><strong>Automated Updates:</strong> Enjoy smooth updates that match each new release of NextBlock and Next.js.</li><li><strong>Secure Checkout:</strong> Payments are processed safely with Stripe and Freemius with instant receipt generation.</li></ul><p>Whether you need multi-currency store features, automated sales tax calculations, or AI block generation in your editor, our modules deliver tested solutions that keep your Lighthouse scores at 100%.</p><p>All purchases include dedicated onboarding resources, detailed developer docs, and friendly technical support. If you ever run into an issue or need help wiring up a provider webhook, our core engineers are ready to assist you. We also offer a thirty-day refund policy so you can try our tools risk-free.</p><p>Have questions about license tiers, volume pricing, team seats, or custom agency usage? Contact our support team anytime. Our team is here to answer your questions and help your developers succeed. We are happy to help you pick the best plan for your company. Browse our featured products below to get started today.</p></div>"
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
3312
|
]
|
|
@@ -3367,7 +3367,7 @@ export async function GET(request: NextRequest) {
|
|
|
3367
3367
|
if (!pageId) {
|
|
3368
3368
|
const [newPage] = await db`
|
|
3369
3369
|
INSERT INTO public.pages (language_id, title, slug, status, meta_title, meta_description, translation_group_id)
|
|
3370
|
-
VALUES (${langId}, 'Boutique en Ligne', 'boutique', 'published', 'Boutique NextBlock™', '
|
|
3370
|
+
VALUES (${langId}, 'Boutique en Ligne', 'boutique', 'published', 'Boutique NextBlock™ | Modules et Licences Officielles', 'Achetez des licences et extensions officielles pour NextBlock CMS. Accédez à NextBlock Commerce et Cortex AI avec un paiement simple et sécurisé.', ${globalShopGroupId ?? null})
|
|
3371
3371
|
RETURNING id
|
|
3372
3372
|
`;
|
|
3373
3373
|
pageId = newPage.id;
|
|
@@ -3397,7 +3397,7 @@ export async function GET(request: NextRequest) {
|
|
|
3397
3397
|
{
|
|
3398
3398
|
block_type: "text",
|
|
3399
3399
|
content: {
|
|
3400
|
-
html_content: "<p style=\"text-align: center; color: var(--background); opacity: 0.9\">Découvrez
|
|
3400
|
+
html_content: "<p style=\"text-align: center; color: var(--background); opacity: 0.9\">Découvrez nos extensions officielles et nos outils pour développeurs conçus pour le CMS NextBlock.</p><div class='mt-8 text-slate-300 space-y-4 max-w-3xl mx-auto text-left'><h2 class='text-2xl font-bold text-white mb-4'>Accélérez vos projets web</h2><p>Bienvenue sur la boutique officielle de NextBlock™. Vous pouvez acheter ici des licences pour nos modules professionnels, comme NextBlock™ Commerce et NextBlock™ Cortex AI. Chaque achat aide à financer le travail open-source sur le cœur du CMS. Il donne aussi à votre équipe des outils de pointe pour créer des sites rapides et fiables.</p><p>Nos modules premium s'intègrent sans effort à votre projet existant. Vous profitez d'un code propre et bien testé, sans plugin externe lourd ni réglage complexe. En choisissant nos outils, vous profitez immédiatement de nombreux avantages :</p><ul class='space-y-2 list-disc pl-5'><li><strong>Code source complet :</strong> Lisez, adaptez et faites évoluer chaque bloc selon vos besoins métier.</li><li><strong>Licence perpétuelle :</strong> Utilisez le code sur votre projet en toute sérénité.</li><li><strong>Mises à jour suivies :</strong> Recevez les nouvelles versions au rythme de Next.js et de NextBlock.</li><li><strong>Paiement sécurisé :</strong> Les achats passent par Stripe et Freemius avec facture instantanée.</li></ul><p>Vous voulez vendre dans plusieurs devises ? Vous avez besoin du calcul automatique des taxes ? Vous voulez générer des blocs avec l'IA ? Nos modules offrent des solutions prêtes à l'emploi qui préservent vos scores Lighthouse à 100%.</p><p>Chaque commande donne accès à une documentation claire et à notre support technique. Si vous avez besoin d'aide pour brancher un webhook ou un mode de paiement, nos développeurs vous répondent rapidement. Notre équipe est à vos côtés pour vous faire gagner du temps. Nous proposons aussi une garantie satisfait ou remboursé de trente jours.</p><p>Vous avez des questions sur nos tarifs, les licences agence ou les remises en volume ? Écrivez à notre équipe à tout moment. Nous vous guiderons avec grand plaisir vers l'offre idéale pour votre entreprise. Découvrez dès aujourd'hui l'ensemble de nos produits ci-dessous pour bien démarrer votre projet.</p></div>"
|
|
3401
3401
|
}
|
|
3402
3402
|
}
|
|
3403
3403
|
]
|