cinqcinqdev-seo 0.1.7 → 0.1.9

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 CHANGED
@@ -11,6 +11,16 @@ Drop it into any Nuxt project to get:
11
11
 
12
12
  ---
13
13
 
14
+ ## Styling
15
+
16
+ The module ships its own pre-compiled CSS — **no Tailwind setup required in your project**.
17
+
18
+ - The admin UI always looks identical regardless of your project's CSS framework or design system.
19
+ - It uses the **Inter** font for all admin chrome (navbar, sidebars, panels).
20
+ - The **section preview** in the editor inherits your project's own body font automatically, so components look exactly as they do on the live site.
21
+
22
+ ---
23
+
14
24
  ## Prerequisites
15
25
 
16
26
  Your project must have these modules installed and configured:
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.1.7",
7
+ "version": "0.1.9",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
@@ -63,6 +63,7 @@
63
63
  </template>
64
64
 
65
65
  <script setup>
66
+ import { ref, computed, useRuntimeConfig, useRouter, useSupabaseUser } from "#imports";
66
67
  import { useAdminUserStore } from "../../../stores/adminUser";
67
68
  const config = useRuntimeConfig().public.adminCms;
68
69
  const branding = computed(() => ({
@@ -1,3 +1,4 @@
1
+ import { useRuntimeConfig } from "#imports";
1
2
  const tagOptions = [
2
3
  { value: "h1", label: "H1" },
3
4
  { value: "h2", label: "H2" },
@@ -1,3 +1,5 @@
1
+ import { defineNuxtRouteMiddleware, useRuntimeConfig, navigateTo } from "#imports";
2
+ import { useSupabaseUser } from "#imports";
1
3
  export default defineNuxtRouteMiddleware((to) => {
2
4
  const config = useRuntimeConfig().public.adminCms;
3
5
  const user = useSupabaseUser();
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { ref, computed, watch, onMounted, useRuntimeConfig, useHead, useSupabaseClient, useSupabaseUser } from "#imports";
2
3
  import { useAdminUserStore } from "../../stores/adminUser";
3
4
  const user = useSupabaseUser();
4
5
  const client = useSupabaseClient();
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { ref, computed, watch, definePageMeta, useRoute, useRuntimeConfig, useAsyncData, useHead, useSupabaseClient } from "#imports";
2
3
  import { useAdminSections } from "../../../composables/useAdminSections";
3
4
  definePageMeta({ layout: false });
4
5
  const route = useRoute();
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { useRuntimeConfig, useAsyncData, useHead, useSupabaseClient } from "#imports";
2
3
  const config = useRuntimeConfig().public.adminCms;
3
4
  const supabase = useSupabaseClient();
4
5
  const pageTypes = config?.pageTypes || [];
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ import { ref, computed, useRoute, useRuntimeConfig, useAsyncData, useHead, navigateTo, useSupabaseClient } from "#imports";
2
3
  const route = useRoute();
3
4
  const supabase = useSupabaseClient();
4
5
  const config = useRuntimeConfig().public.adminCms;
@@ -1,7 +1,2 @@
1
- /**
2
- * Captures the host project's body font-family BEFORE the admin scope
3
- * (data-admin-cms) can shadow it, then stores it in --admin-site-font so
4
- * the section preview area can revert to the correct host font.
5
- */
6
1
  declare const _default: any;
7
2
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { defineNuxtPlugin } from "#imports";
1
2
  export default defineNuxtPlugin(() => {
2
3
  const bodyFont = window.getComputedStyle(document.body).fontFamily;
3
4
  if (bodyFont) {
@@ -1,4 +1,6 @@
1
1
  import { defineStore } from "pinia";
2
+ import { useRuntimeConfig } from "#imports";
3
+ import { useSupabaseClient } from "#imports";
2
4
  export const useAdminUserStore = defineStore("adminUser", {
3
5
  state: () => ({
4
6
  userData: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cinqcinqdev-seo",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "A reusable Nuxt 3 admin CMS module with visual page editor powered by Supabase",
5
5
  "license": "MIT",
6
6
  "module": "./dist/module.mjs",