cinqcinqdev-seo 0.1.12 → 0.1.13
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import { defineNuxtModule, createResolver, addServerHandler, addPlugin, addCompo
|
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
|
|
4
4
|
const defaultPageTypes = [
|
|
5
|
-
{ id: "landing_page", label: "Landing
|
|
6
|
-
{ id: "service_page", label: "Service
|
|
7
|
-
{ id: "about_page", label: "
|
|
8
|
-
{ id: "product_page", label: "
|
|
9
|
-
{ id: "blog_article", label: "
|
|
10
|
-
{ id: "portfolio_item", label: "Portfolio
|
|
5
|
+
{ id: "landing_page", label: "Landing Pages", icon: "\u{1F680}", desc: "Pages de conversion" },
|
|
6
|
+
{ id: "service_page", label: "Pages de Service", icon: "\u{1F6E0}\uFE0F", desc: "Pr\xE9sentation de services" },
|
|
7
|
+
{ id: "about_page", label: "\xC0 Propos", icon: "\u{1F44B}", desc: "Histoire & \xE9quipe" },
|
|
8
|
+
{ id: "product_page", label: "Produits", icon: "\u{1F4E6}", desc: "Catalogue produits" },
|
|
9
|
+
{ id: "blog_article", label: "Articles", icon: "\u{1F4DD}", desc: "Blog & actualit\xE9s" },
|
|
10
|
+
{ id: "portfolio_item", label: "Portfolio", icon: "\u{1F3A8}", desc: "Projets r\xE9alis\xE9s" }
|
|
11
11
|
];
|
|
12
12
|
const module$1 = defineNuxtModule({
|
|
13
13
|
meta: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap");[data-admin-cms]{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[data-admin-cms] :not([data-admin-preview] *){box-sizing:border-box}[data-admin-preview],[data-admin-preview] *{font-family:var(
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap");[data-admin-cms]{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[data-admin-cms] :not([data-admin-preview] *){box-sizing:border-box}:where([data-admin-cms]) button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;cursor:pointer}:where([data-admin-cms]) a{border-width:0;color:inherit;text-decoration:none}:where([data-admin-cms]) input,:where([data-admin-cms]) select,:where([data-admin-cms]) textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:0;outline:none}[data-admin-preview],[data-admin-preview] *{font-family:var(
|
|
2
2
|
--admin-site-font,var(--font-body,var(--font-sans,var(--font-family,inherit)))
|
|
3
3
|
)}
|
|
@@ -390,7 +390,7 @@ const savePage = async () => {
|
|
|
390
390
|
</script>
|
|
391
391
|
|
|
392
392
|
<template>
|
|
393
|
-
<div v-if="page" class="h-screen flex flex-col bg-[#EBEBEF] overflow-hidden font-sans">
|
|
393
|
+
<div v-if="page" data-admin-cms class="h-screen flex flex-col bg-[#EBEBEF] overflow-hidden font-sans">
|
|
394
394
|
|
|
395
395
|
<input type="file" ref="fileInput" class="hidden" accept="image/*" @change="handleFileUpload" />
|
|
396
396
|
|
|
@@ -8,8 +8,7 @@ const pageTypes = computed(() => {
|
|
|
8
8
|
const types = config?.pageTypes || [];
|
|
9
9
|
return types.map((pt) => ({
|
|
10
10
|
...pt,
|
|
11
|
-
desc: pt.desc || ""
|
|
12
|
-
svgIcon: pt.svgIcon || ""
|
|
11
|
+
desc: pt.desc || ""
|
|
13
12
|
}));
|
|
14
13
|
});
|
|
15
14
|
const defaultIcons = {
|
|
@@ -80,7 +79,7 @@ const { data: stats } = await useAsyncData("admin-dashboard-stats", async () =>
|
|
|
80
79
|
>
|
|
81
80
|
<div class="flex items-start justify-between mb-4">
|
|
82
81
|
<div class="w-9 h-9 rounded-xl bg-gray-50 group-hover:bg-[#3d35ff]/10 flex items-center justify-center transition-colors">
|
|
83
|
-
<svg class="text-gray-400 group-hover:text-[#3d35ff] transition-colors" style="width:18px;height:18px" fill="none" stroke="currentColor" viewBox="0 0 24 24" v-html="type.
|
|
82
|
+
<svg class="text-gray-400 group-hover:text-[#3d35ff] transition-colors" style="width:18px;height:18px" fill="none" stroke="currentColor" viewBox="0 0 24 24" v-html="type.svgPath || defaultIcons[type.id] || defaultIcons.blog_article"></svg>
|
|
84
83
|
</div>
|
|
85
84
|
<span class="text-[10px] font-black px-2 py-1 rounded-full bg-gray-50 text-gray-400">
|
|
86
85
|
{{ stats?.byType?.[type.id] ?? 0 }}
|