nuxt-schema-org 5.0.9 → 6.0.0
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 +7 -1
- package/dist/content.cjs +18 -10
- package/dist/content.d.cts +10 -8
- package/dist/content.d.mts +10 -8
- package/dist/content.d.ts +10 -8
- package/dist/content.mjs +14 -7
- package/dist/devtools/200.html +1 -0
- package/dist/devtools/404.html +1 -0
- package/dist/devtools/_fonts/4ppnHhMi-pBsWSPo7mY0avYxlDoAg1N3PTzCwXLZ5rA-d9oibkGnTd1JL3tc_xnaVgBLYmOB8kjrK2cvZaqwj9s.woff2 +0 -0
- package/dist/devtools/_fonts/4qBuU9MRVUlPZNPSF7Xom_sK8RBEnfYu-9VXFrdq8A8-8TDwLE1HAj1sQn7XxVWtM_7sIaPM-DTdO3Pf8U2DF1U.woff2 +0 -0
- package/dist/devtools/_fonts/6dYsbWUd_BpKJ7mdDihgOcya1gHXLpJBuMYXux3WMjE-q3fYNS8YbW5n7ZeXI2vSNgkRWW5VDPKAl51SNTjG2qk.woff2 +0 -0
- package/dist/devtools/_fonts/Lr-hqqZZsYmCt0ITUlr1CUrWim9fsKvoDFZliMxgNHY-iTa_Yt_PzhOY9TX7ZXdSlEPim6iRt92xhECwaxWxd5w.woff2 +0 -0
- package/dist/devtools/_fonts/OknHvWI6KtYn1JQBzX7eSpNDBQ8520F9TvSUJYkVf6A-xeZn9253svK_8Q2LD0XEruY_MnEsuCRO5LenPoggC0Y.woff2 +0 -0
- package/dist/devtools/_fonts/PV2hrQG6wq5BlIPDjdL1IcOflycaghyt5MHzlBqZtlo-lb_WexLz3VZqfTN0oi554iBH5tT2j2UFEV-XErCAS3E.woff2 +0 -0
- package/dist/devtools/_fonts/UA7OtwYHwGN_HjcVGTdmiQxUit7FlqkCwxVUWSeXVnQ-B4OXCFOL_tWrYODpQTc07aMaj0c2cewTOmBRWR9tD-A.woff2 +0 -0
- package/dist/devtools/_fonts/VE4cDVCv5MxbFM7ZLoLCGbIpNd71zhp7MDI9lmN5Y7I-xZyDYCUVrd6LV8eVGF3Um3UZjBFuUtDGtvdyTBBRYBo.woff2 +0 -0
- package/dist/devtools/_fonts/fVoGbnMbBFd5L9BBp9fUPavUSkZ_EmsQNSyadkT-108-U4T0khaeLQSIhtt9eVvaCEKJjtWJ4ioRJOf8hvqkWY0.woff2 +0 -0
- package/dist/devtools/_fonts/lQAxeCEs1R0Lw-H9XRU1RlOARQN8J6npRsPjyEDMe5s-_DUSLEkO3tKTuun_gSnDLoQPVEnpOnyqZMOw0ByZ6PA.woff2 +0 -0
- package/dist/devtools/_fonts/lntlqNHKLV2n82yTwMde70QqOjcfLE2XJ5oKZ3vRPWc-z6TxpIZQdWXztWLr9_OFWqt_WJJoeGtuK_-XQMZGQwE.woff2 +0 -0
- package/dist/devtools/_fonts/qxAYvKsXWeYv731eb-h5TRurcdIP_W44mpNdX-HABAk-zUDeMEFlNtNbrwvT9JxLEBg0TphGy70O6RfIoIX_ZwU.woff2 +0 -0
- package/dist/devtools/_nuxt/A3M--oru.js +1 -0
- package/dist/devtools/_nuxt/BIi0-Fow.js +1 -0
- package/dist/devtools/_nuxt/BTlHZeWO.js +1 -0
- package/dist/devtools/_nuxt/BZheUF1L.js +1 -0
- package/dist/devtools/_nuxt/BbQlJU1L.js +22 -0
- package/dist/devtools/_nuxt/BhsdrBQs.js +1 -0
- package/dist/devtools/_nuxt/CCrJkJ1j.js +1 -0
- package/dist/devtools/_nuxt/CIEfanjm.js +1 -0
- package/dist/devtools/_nuxt/CJmImwBy.js +1 -0
- package/dist/devtools/_nuxt/CQP4jmfd.js +1 -0
- package/dist/devtools/_nuxt/CoKXVz3j.js +3 -0
- package/dist/devtools/_nuxt/CxmWPGFh.js +1 -0
- package/dist/devtools/_nuxt/DLVD3PFC.js +1 -0
- package/dist/devtools/_nuxt/DMPry4-2.js +6 -0
- package/dist/devtools/_nuxt/DQVti1CA.js +3 -0
- package/dist/devtools/_nuxt/DTA0NTEc.js +1 -0
- package/dist/devtools/_nuxt/DVnX3Z-O.js +1 -0
- package/dist/devtools/_nuxt/DYeRUPw-.js +1 -0
- package/dist/devtools/_nuxt/DevtoolsSection.DAh4iUmh.css +1 -0
- package/dist/devtools/_nuxt/DevtoolsSnippet.DFZll8Oa.css +1 -0
- package/dist/devtools/_nuxt/DsMBYBcg.js +1 -0
- package/dist/devtools/_nuxt/H2IWgfJ2.js +1 -0
- package/dist/devtools/_nuxt/builds/latest.json +1 -0
- package/dist/devtools/_nuxt/builds/meta/505caeb5-7810-4155-b0b8-fdbac938904b.json +1 -0
- package/dist/devtools/_nuxt/dDPVCnhr.js +1 -0
- package/dist/devtools/_nuxt/entry.DlkMOrEc.css +2 -0
- package/dist/devtools/_nuxt/error-404.DhYSvyOs.css +1 -0
- package/dist/devtools/_nuxt/error-500.D8lASBk7.css +1 -0
- package/dist/devtools/_nuxt/pages.CPg4sNo-.css +1 -0
- package/dist/devtools/_nuxt/qYovGSZi.js +1 -0
- package/dist/devtools/_nuxt/schema-validation.CS82HmAK.css +1 -0
- package/dist/devtools/_nuxt/wobFGCFs.js +154 -0
- package/dist/devtools/debug/index.html +1 -0
- package/dist/devtools/docs/index.html +1 -0
- package/dist/devtools/index.html +1 -0
- package/dist/devtools/nodes/index.html +1 -0
- package/dist/devtools/raw/index.html +1 -0
- package/dist/module.cjs +14 -66
- package/dist/module.json +2 -2
- package/dist/module.mjs +16 -68
- package/dist/runtime/app/composables/useSchemaOrg.d.ts +2 -1
- package/dist/runtime/app/composables/useSchemaOrg.js +5 -1
- package/dist/runtime/app/utils/shared.js +26 -21
- package/dist/runtime/server/plugins/nuxt-content-v2.d.ts +1 -1
- package/dist/runtime/server/routes/__schema-org__/debug.d.ts +3 -0
- package/dist/runtime/server/routes/__schema-org__/debug.js +8 -3
- package/package.json +36 -28
- package/dist/client/200.html +0 -1
- package/dist/client/404.html +0 -1
- package/dist/client/_nuxt/3mPCgC9T.js +0 -1
- package/dist/client/_nuxt/B3Z8rEby.js +0 -1
- package/dist/client/_nuxt/BMMyXqK5.js +0 -1
- package/dist/client/_nuxt/BpdejJ-Z.js +0 -174
- package/dist/client/_nuxt/CVO1_9PV.js +0 -1
- package/dist/client/_nuxt/Cp-IABpG.js +0 -1
- package/dist/client/_nuxt/D0r3Knsf.js +0 -1
- package/dist/client/_nuxt/builds/latest.json +0 -1
- package/dist/client/_nuxt/builds/meta/8a772054-fdc3-4341-9461-52f13effa2ab.json +0 -1
- package/dist/client/_nuxt/entry.BVcYdedQ.css +0 -1
- package/dist/client/_nuxt/error-404.C93bBBKL.css +0 -1
- package/dist/client/_nuxt/error-500.zofSQbXz.css +0 -1
- package/dist/client/index.html +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-schema-org/_nuxt/BbQlJU1L.js"}}</script><link rel="stylesheet" href="/__nuxt-schema-org/_nuxt/entry.DlkMOrEc.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BbQlJU1L.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DQVti1CA.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/wobFGCFs.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DMPry4-2.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BTlHZeWO.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DsMBYBcg.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/CJmImwBy.js"><script type="module" src="/__nuxt-schema-org/_nuxt/BbQlJU1L.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-schema-org",buildId:"505caeb5-7810-4155-b0b8-fdbac938904b",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774366949376,false]</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-schema-org/_nuxt/BbQlJU1L.js"}}</script><link rel="stylesheet" href="/__nuxt-schema-org/_nuxt/entry.DlkMOrEc.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BbQlJU1L.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DQVti1CA.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/wobFGCFs.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DMPry4-2.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BTlHZeWO.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DsMBYBcg.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/CJmImwBy.js"><script type="module" src="/__nuxt-schema-org/_nuxt/BbQlJU1L.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-schema-org",buildId:"505caeb5-7810-4155-b0b8-fdbac938904b",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774366949378,false]</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-schema-org/_nuxt/BbQlJU1L.js"}}</script><link rel="stylesheet" href="/__nuxt-schema-org/_nuxt/entry.DlkMOrEc.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BbQlJU1L.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DQVti1CA.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/wobFGCFs.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DMPry4-2.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BTlHZeWO.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DsMBYBcg.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/CJmImwBy.js"><script type="module" src="/__nuxt-schema-org/_nuxt/BbQlJU1L.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT_SITE_CONFIG__={_priority:{env:-15},env:"production"}</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-schema-org",buildId:"505caeb5-7810-4155-b0b8-fdbac938904b",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774366949378,false]</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-schema-org/_nuxt/BbQlJU1L.js"}}</script><link rel="stylesheet" href="/__nuxt-schema-org/_nuxt/entry.DlkMOrEc.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BbQlJU1L.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DQVti1CA.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/wobFGCFs.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DMPry4-2.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BTlHZeWO.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DsMBYBcg.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/CJmImwBy.js"><script type="module" src="/__nuxt-schema-org/_nuxt/BbQlJU1L.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-schema-org",buildId:"505caeb5-7810-4155-b0b8-fdbac938904b",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774366949378,false]</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-schema-org/_nuxt/BbQlJU1L.js"}}</script><link rel="stylesheet" href="/__nuxt-schema-org/_nuxt/entry.DlkMOrEc.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BbQlJU1L.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DQVti1CA.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/wobFGCFs.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DMPry4-2.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BTlHZeWO.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/DsMBYBcg.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/CJmImwBy.js"><script type="module" src="/__nuxt-schema-org/_nuxt/BbQlJU1L.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-schema-org",buildId:"505caeb5-7810-4155-b0b8-fdbac938904b",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1774366949378,false]</script></body></html>
|
package/dist/module.cjs
CHANGED
|
@@ -6,69 +6,17 @@ const vue = require('@unhead/schema-org/vue');
|
|
|
6
6
|
const defu = require('defu');
|
|
7
7
|
const kit$1 = require('nuxt-site-config/kit');
|
|
8
8
|
const pkgTypes = require('pkg-types');
|
|
9
|
-
const
|
|
10
|
-
const
|
|
9
|
+
const devtools = require('nuxtseo-shared/devtools');
|
|
10
|
+
const kit$2 = require('nuxtseo-shared/kit');
|
|
11
11
|
|
|
12
12
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const sirv = await import('sirv').then((r) => r.default || r);
|
|
21
|
-
server.middlewares.use(
|
|
22
|
-
DEVTOOLS_UI_ROUTE,
|
|
23
|
-
sirv(clientPath, { dev: true, single: true })
|
|
24
|
-
);
|
|
25
|
-
});
|
|
26
|
-
} else {
|
|
27
|
-
nuxt.hook("vite:extendConfig", (config) => {
|
|
28
|
-
config.server = config.server || {};
|
|
29
|
-
config.server.proxy = config.server.proxy || {};
|
|
30
|
-
config.server.proxy[DEVTOOLS_UI_ROUTE] = {
|
|
31
|
-
target: `http://localhost:${DEVTOOLS_UI_LOCAL_PORT}${DEVTOOLS_UI_ROUTE}`,
|
|
32
|
-
changeOrigin: true,
|
|
33
|
-
followRedirects: true,
|
|
34
|
-
rewrite: (path) => path.replace(DEVTOOLS_UI_ROUTE, "")
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
nuxt.hook("devtools:customTabs", (tabs) => {
|
|
39
|
-
tabs.push({
|
|
40
|
-
// unique identifier
|
|
41
|
-
name: "nuxt-schema-org",
|
|
42
|
-
// title to display in the tab
|
|
43
|
-
title: "Schema.org",
|
|
44
|
-
// any icon from Iconify, or a URL to an image
|
|
45
|
-
icon: "carbon:chart-relationship",
|
|
46
|
-
// iframe view
|
|
47
|
-
view: {
|
|
48
|
-
type: "iframe",
|
|
49
|
-
src: DEVTOOLS_UI_ROUTE
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function extendTypes(module, template) {
|
|
56
|
-
const nuxt = kit.useNuxt();
|
|
57
|
-
const { resolve } = kit.createResolver((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('module.cjs', document.baseURI).href)));
|
|
58
|
-
kit.addTemplate({
|
|
59
|
-
filename: `module/${module}.d.ts`,
|
|
60
|
-
getContents: async () => {
|
|
61
|
-
const typesPath = pathe.relative(resolve(nuxt.options.rootDir, nuxt.options.buildDir, "module"), resolve("runtime/types"));
|
|
62
|
-
const s = await template({ typesPath });
|
|
63
|
-
return `// Generated by ${module}
|
|
64
|
-
${s}
|
|
65
|
-
export {}
|
|
66
|
-
`;
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
nuxt.hooks.hook("prepare:types", ({ references }) => {
|
|
70
|
-
references.push({ path: resolve(nuxt.options.buildDir, `module/${module}.d.ts`) });
|
|
71
|
-
});
|
|
13
|
+
function setupDevToolsUI(_options, resolve, nuxt = kit.useNuxt()) {
|
|
14
|
+
devtools.setupDevToolsUI({
|
|
15
|
+
route: "/__nuxt-schema-org",
|
|
16
|
+
name: "nuxt-schema-org",
|
|
17
|
+
title: "Schema.org",
|
|
18
|
+
icon: "carbon:chart-relationship"
|
|
19
|
+
}, resolve, nuxt);
|
|
72
20
|
}
|
|
73
21
|
|
|
74
22
|
const module$1 = kit.defineNuxtModule({
|
|
@@ -88,7 +36,7 @@ const module$1 = kit.defineNuxtModule({
|
|
|
88
36
|
optional: true
|
|
89
37
|
},
|
|
90
38
|
"nuxt-site-config": {
|
|
91
|
-
version: ">=3"
|
|
39
|
+
version: ">=3.2"
|
|
92
40
|
},
|
|
93
41
|
"@nuxt/content": {
|
|
94
42
|
version: ">=2",
|
|
@@ -141,9 +89,9 @@ const module$1 = kit.defineNuxtModule({
|
|
|
141
89
|
});
|
|
142
90
|
}
|
|
143
91
|
nuxt.options.alias["#schema-org"] = resolve("./runtime");
|
|
144
|
-
const
|
|
145
|
-
const isNuxtContentV3 =
|
|
146
|
-
const isNuxtContentV2 =
|
|
92
|
+
const contentVersion = await kit$2.resolveNuxtContentVersion();
|
|
93
|
+
const isNuxtContentV3 = contentVersion && contentVersion.version === 3;
|
|
94
|
+
const isNuxtContentV2 = contentVersion && contentVersion.version === 2;
|
|
147
95
|
if (isNuxtContentV3) {
|
|
148
96
|
nuxt.hooks.hook("content:file:afterParse", (ctx) => {
|
|
149
97
|
if (typeof ctx.content.schemaOrg === "undefined") {
|
|
@@ -193,7 +141,7 @@ const module$1 = kit.defineNuxtModule({
|
|
|
193
141
|
vue.schemaOrgAutoImports[0].imports = vue.schemaOrgAutoImports[0].imports.filter((i) => i !== "useSchemaOrg");
|
|
194
142
|
autoImports.unshift(...vue.schemaOrgAutoImports);
|
|
195
143
|
});
|
|
196
|
-
extendTypes("nuxt-schema-org", ({ typesPath }) => {
|
|
144
|
+
kit$2.extendTypes("nuxt-schema-org", ({ typesPath }) => {
|
|
197
145
|
return `
|
|
198
146
|
declare module '@nuxt/schema' {
|
|
199
147
|
export interface RuntimeNuxtHooks {
|
package/dist/module.json
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"optional": true
|
|
15
15
|
},
|
|
16
16
|
"nuxt-site-config": {
|
|
17
|
-
"version": ">=3"
|
|
17
|
+
"version": ">=3.2"
|
|
18
18
|
},
|
|
19
19
|
"@nuxt/content": {
|
|
20
20
|
"version": ">=2",
|
|
21
21
|
"optional": true
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"version": "
|
|
24
|
+
"version": "6.0.0",
|
|
25
25
|
"builder": {
|
|
26
26
|
"@nuxt/module-builder": "1.0.2",
|
|
27
27
|
"unbuild": "3.6.1"
|
package/dist/module.mjs
CHANGED
|
@@ -1,74 +1,22 @@
|
|
|
1
|
-
import { useNuxt,
|
|
1
|
+
import { useNuxt, defineNuxtModule, createResolver, useLogger, hasNuxtModule, addPlugin, addServerPlugin, addComponent, addImports, addServerHandler } from '@nuxt/kit';
|
|
2
2
|
import { defineWebPage } from '@unhead/schema-org';
|
|
3
3
|
import { schemaOrgAutoImports, schemaOrgComponents } from '@unhead/schema-org/vue';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import { installNuxtSiteConfig } from 'nuxt-site-config/kit';
|
|
6
6
|
import { readPackageJSON } from 'pkg-types';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { setupDevToolsUI as setupDevToolsUI$1 } from 'nuxtseo-shared/devtools';
|
|
8
|
+
import { resolveNuxtContentVersion, extendTypes } from 'nuxtseo-shared/kit';
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const sirv = await import('sirv').then((r) => r.default || r);
|
|
18
|
-
server.middlewares.use(
|
|
19
|
-
DEVTOOLS_UI_ROUTE,
|
|
20
|
-
sirv(clientPath, { dev: true, single: true })
|
|
21
|
-
);
|
|
22
|
-
});
|
|
23
|
-
} else {
|
|
24
|
-
nuxt.hook("vite:extendConfig", (config) => {
|
|
25
|
-
config.server = config.server || {};
|
|
26
|
-
config.server.proxy = config.server.proxy || {};
|
|
27
|
-
config.server.proxy[DEVTOOLS_UI_ROUTE] = {
|
|
28
|
-
target: `http://localhost:${DEVTOOLS_UI_LOCAL_PORT}${DEVTOOLS_UI_ROUTE}`,
|
|
29
|
-
changeOrigin: true,
|
|
30
|
-
followRedirects: true,
|
|
31
|
-
rewrite: (path) => path.replace(DEVTOOLS_UI_ROUTE, "")
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
nuxt.hook("devtools:customTabs", (tabs) => {
|
|
36
|
-
tabs.push({
|
|
37
|
-
// unique identifier
|
|
38
|
-
name: "nuxt-schema-org",
|
|
39
|
-
// title to display in the tab
|
|
40
|
-
title: "Schema.org",
|
|
41
|
-
// any icon from Iconify, or a URL to an image
|
|
42
|
-
icon: "carbon:chart-relationship",
|
|
43
|
-
// iframe view
|
|
44
|
-
view: {
|
|
45
|
-
type: "iframe",
|
|
46
|
-
src: DEVTOOLS_UI_ROUTE
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function extendTypes(module, template) {
|
|
53
|
-
const nuxt = useNuxt();
|
|
54
|
-
const { resolve } = createResolver(import.meta.url);
|
|
55
|
-
addTemplate({
|
|
56
|
-
filename: `module/${module}.d.ts`,
|
|
57
|
-
getContents: async () => {
|
|
58
|
-
const typesPath = relative(resolve(nuxt.options.rootDir, nuxt.options.buildDir, "module"), resolve("runtime/types"));
|
|
59
|
-
const s = await template({ typesPath });
|
|
60
|
-
return `// Generated by ${module}
|
|
61
|
-
${s}
|
|
62
|
-
export {}
|
|
63
|
-
`;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
nuxt.hooks.hook("prepare:types", ({ references }) => {
|
|
67
|
-
references.push({ path: resolve(nuxt.options.buildDir, `module/${module}.d.ts`) });
|
|
68
|
-
});
|
|
10
|
+
function setupDevToolsUI(_options, resolve, nuxt = useNuxt()) {
|
|
11
|
+
setupDevToolsUI$1({
|
|
12
|
+
route: "/__nuxt-schema-org",
|
|
13
|
+
name: "nuxt-schema-org",
|
|
14
|
+
title: "Schema.org",
|
|
15
|
+
icon: "carbon:chart-relationship"
|
|
16
|
+
}, resolve, nuxt);
|
|
69
17
|
}
|
|
70
18
|
|
|
71
|
-
const module = defineNuxtModule({
|
|
19
|
+
const module$1 = defineNuxtModule({
|
|
72
20
|
meta: {
|
|
73
21
|
name: "nuxt-schema-org",
|
|
74
22
|
configKey: "schemaOrg",
|
|
@@ -85,7 +33,7 @@ const module = defineNuxtModule({
|
|
|
85
33
|
optional: true
|
|
86
34
|
},
|
|
87
35
|
"nuxt-site-config": {
|
|
88
|
-
version: ">=3"
|
|
36
|
+
version: ">=3.2"
|
|
89
37
|
},
|
|
90
38
|
"@nuxt/content": {
|
|
91
39
|
version: ">=2",
|
|
@@ -138,9 +86,9 @@ const module = defineNuxtModule({
|
|
|
138
86
|
});
|
|
139
87
|
}
|
|
140
88
|
nuxt.options.alias["#schema-org"] = resolve("./runtime");
|
|
141
|
-
const
|
|
142
|
-
const isNuxtContentV3 =
|
|
143
|
-
const isNuxtContentV2 =
|
|
89
|
+
const contentVersion = await resolveNuxtContentVersion();
|
|
90
|
+
const isNuxtContentV3 = contentVersion && contentVersion.version === 3;
|
|
91
|
+
const isNuxtContentV2 = contentVersion && contentVersion.version === 2;
|
|
144
92
|
if (isNuxtContentV3) {
|
|
145
93
|
nuxt.hooks.hook("content:file:afterParse", (ctx) => {
|
|
146
94
|
if (typeof ctx.content.schemaOrg === "undefined") {
|
|
@@ -215,4 +163,4 @@ declare module '#app' {
|
|
|
215
163
|
}
|
|
216
164
|
});
|
|
217
165
|
|
|
218
|
-
export { module as default };
|
|
166
|
+
export { module$1 as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { useSchemaOrg as _useSchemaOrg } from '@unhead/schema-org/vue';
|
|
2
|
+
import type { ActiveHeadEntry, UseHeadInput } from '@unhead/vue';
|
|
2
3
|
type Input = Parameters<typeof _useSchemaOrg>[0];
|
|
3
|
-
export declare function useSchemaOrg<T extends Input>(input: T):
|
|
4
|
+
export declare function useSchemaOrg<T extends Input>(input: T): ActiveHeadEntry<UseHeadInput> | undefined;
|
|
4
5
|
export {};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { useHead } from "#imports";
|
|
2
|
+
import { useNuxtApp } from "nuxt/app";
|
|
3
|
+
import { computed, isRef } from "vue";
|
|
2
4
|
import { useSchemaOrgConfig } from "../utils/config.js";
|
|
3
5
|
export function useSchemaOrg(input) {
|
|
4
6
|
const config = useSchemaOrgConfig();
|
|
7
|
+
const nuxtApp = useNuxtApp();
|
|
8
|
+
const nodes = isRef(input) ? computed(() => nuxtApp.runWithContext(() => input.value)) : input;
|
|
5
9
|
const script = {
|
|
6
10
|
type: "application/ld+json",
|
|
7
11
|
key: "schema-org-graph",
|
|
8
12
|
// @ts-expect-error untyped
|
|
9
|
-
nodes
|
|
13
|
+
nodes,
|
|
10
14
|
tagPriority: "high",
|
|
11
15
|
...config.scriptAttributes
|
|
12
16
|
};
|
|
@@ -4,27 +4,30 @@ import {
|
|
|
4
4
|
} from "#site-config/app/composables/useSiteConfig";
|
|
5
5
|
import { createSitePathResolver } from "#site-config/app/composables/utils";
|
|
6
6
|
import { SchemaOrgUnheadPlugin } from "@unhead/schema-org/vue";
|
|
7
|
-
import {
|
|
7
|
+
import { resolveSitePath } from "nuxt-site-config/urls";
|
|
8
|
+
import { useRoute, useRuntimeConfig } from "nuxt/app";
|
|
8
9
|
import { camelCase } from "scule";
|
|
9
10
|
import { withTrailingSlash } from "ufo";
|
|
10
|
-
import {
|
|
11
|
+
import { toValue, watch } from "vue";
|
|
11
12
|
import { useSchemaOrg } from "../composables/useSchemaOrg.js";
|
|
12
13
|
import { useSchemaOrgConfig } from "./config.js";
|
|
14
|
+
function resolvePathDirect(siteConfig, path, options) {
|
|
15
|
+
const nuxtBase = useRuntimeConfig().app.baseURL || "/";
|
|
16
|
+
return resolveSitePath(path, {
|
|
17
|
+
absolute: options.absolute,
|
|
18
|
+
withBase: options.withBase,
|
|
19
|
+
siteUrl: toValue(siteConfig.url),
|
|
20
|
+
trailingSlash: toValue(siteConfig.trailingSlash),
|
|
21
|
+
base: nuxtBase
|
|
22
|
+
});
|
|
23
|
+
}
|
|
13
24
|
export function initPlugin(nuxtApp) {
|
|
14
25
|
const head = injectHead();
|
|
15
26
|
const config = useSchemaOrgConfig();
|
|
16
27
|
const route = useRoute();
|
|
17
28
|
const siteConfig = useSiteConfig();
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
withBase: true
|
|
21
|
-
});
|
|
22
|
-
const resolveUrl = createSitePathResolver({
|
|
23
|
-
canonical: true,
|
|
24
|
-
absolute: true,
|
|
25
|
-
withBase: true
|
|
26
|
-
});
|
|
27
|
-
const schemaOrg = computed(() => {
|
|
29
|
+
const resolveUrl = import.meta.server ? (path) => resolvePathDirect(siteConfig, path, { canonical: true, absolute: true, withBase: true }) : createSitePathResolver({ canonical: true, absolute: true, withBase: true });
|
|
30
|
+
function resolveSchemaOrg() {
|
|
28
31
|
const siteConfigResolved = {};
|
|
29
32
|
for (const key in siteConfig) {
|
|
30
33
|
if (key.startsWith("_")) {
|
|
@@ -41,19 +44,21 @@ export function initPlugin(nuxtApp) {
|
|
|
41
44
|
...route.meta?.schemaOrg || {},
|
|
42
45
|
...siteConfigResolved,
|
|
43
46
|
url: toValue(resolveUrl(route.path)),
|
|
44
|
-
host: withTrailingSlash(
|
|
47
|
+
host: withTrailingSlash(toValue(resolveUrl("/"))),
|
|
45
48
|
inLanguage: toValue(siteConfigResolved.currentLocale) || toValue(siteConfigResolved.defaultLocale),
|
|
46
|
-
path:
|
|
49
|
+
path: route.path
|
|
47
50
|
};
|
|
48
|
-
}
|
|
51
|
+
}
|
|
49
52
|
const templateParamEntry = useHead({
|
|
50
|
-
templateParams: { schemaOrg:
|
|
53
|
+
templateParams: { schemaOrg: resolveSchemaOrg() }
|
|
51
54
|
});
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
if (import.meta.client) {
|
|
56
|
+
watch(() => siteConfig, () => {
|
|
57
|
+
templateParamEntry.patch({
|
|
58
|
+
templateParams: { schemaOrg: resolveSchemaOrg() }
|
|
59
|
+
});
|
|
60
|
+
}, { deep: true });
|
|
61
|
+
}
|
|
57
62
|
head.use(
|
|
58
63
|
SchemaOrgUnheadPlugin({}, async () => {
|
|
59
64
|
const meta = {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("nitropack").NitroAppPlugin;
|
|
1
|
+
declare const _default: import("nitropack/types").NitroAppPlugin;
|
|
2
2
|
export default _default;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getNitroOrigin } from "#site-config/server/composables/getNitroOrigin";
|
|
2
|
+
import { getSiteConfig } from "#site-config/server/composables/getSiteConfig";
|
|
2
3
|
import { defineEventHandler } from "h3";
|
|
3
4
|
import { useSchemaOrgConfig } from "../../utils/config.js";
|
|
4
5
|
export default defineEventHandler(async (e) => {
|
|
5
|
-
const nitroOrigin =
|
|
6
|
+
const nitroOrigin = getNitroOrigin(e);
|
|
7
|
+
const siteConfig = getSiteConfig(e);
|
|
6
8
|
return {
|
|
7
9
|
nitroOrigin,
|
|
8
|
-
runtimeConfig: useSchemaOrgConfig(e)
|
|
10
|
+
runtimeConfig: useSchemaOrgConfig(e),
|
|
11
|
+
siteConfig: {
|
|
12
|
+
url: siteConfig.url
|
|
13
|
+
}
|
|
9
14
|
};
|
|
10
15
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-schema-org",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"description": "The quickest and easiest way to build Schema.org graphs for Nuxt.",
|
|
6
6
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@unhead/vue": "^2.0.7",
|
|
51
|
-
"unhead": "^2.0.7"
|
|
51
|
+
"unhead": "^2.0.7",
|
|
52
|
+
"zod": ">=3"
|
|
52
53
|
},
|
|
53
54
|
"peerDependenciesMeta": {
|
|
54
55
|
"@unhead/vue": {
|
|
@@ -56,34 +57,41 @@
|
|
|
56
57
|
},
|
|
57
58
|
"unhead": {
|
|
58
59
|
"optional": true
|
|
60
|
+
},
|
|
61
|
+
"zod": {
|
|
62
|
+
"optional": true
|
|
59
63
|
}
|
|
60
64
|
},
|
|
61
65
|
"dependencies": {
|
|
62
|
-
"@nuxt/kit": "^4.
|
|
63
|
-
"@unhead/schema-org": "^2.
|
|
66
|
+
"@nuxt/kit": "^4.4.2",
|
|
67
|
+
"@unhead/schema-org": "^2.1.12",
|
|
64
68
|
"defu": "^6.1.4",
|
|
65
|
-
"nuxt-site-config": "^
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
+
"nuxt-site-config": "^4.0.0",
|
|
70
|
+
"nuxtseo-layer-devtools": "^0.3.0",
|
|
71
|
+
"nuxtseo-shared": "^0.7.0",
|
|
72
|
+
"pkg-types": "^2.3.0"
|
|
69
73
|
},
|
|
70
74
|
"devDependencies": {
|
|
71
|
-
"@antfu/eslint-config": "^
|
|
75
|
+
"@antfu/eslint-config": "^7.7.3",
|
|
72
76
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
73
|
-
"@
|
|
77
|
+
"@iconify-json/lucide": "^1.2.98",
|
|
78
|
+
"@nuxt/content": "^3.12.0",
|
|
74
79
|
"@nuxt/module-builder": "^1.0.2",
|
|
75
|
-
"@nuxt/schema": "^4.
|
|
76
|
-
"@nuxt/test-utils": "^
|
|
77
|
-
"@nuxt/ui": "^
|
|
78
|
-
"@nuxtjs/i18n": "^10.
|
|
79
|
-
"@nuxtjs/robots": "^
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
80
|
+
"@nuxt/schema": "^4.4.2",
|
|
81
|
+
"@nuxt/test-utils": "^4.0.0",
|
|
82
|
+
"@nuxt/ui": "^4.6.0",
|
|
83
|
+
"@nuxtjs/i18n": "^10.2.4",
|
|
84
|
+
"@nuxtjs/robots": "^6.0.1",
|
|
85
|
+
"@vue/test-utils": "^2.4.6",
|
|
86
|
+
"better-sqlite3": "^12.8.0",
|
|
87
|
+
"bumpp": "^11.0.1",
|
|
88
|
+
"cheerio": "^1.2.0",
|
|
89
|
+
"eslint": "^10.1.0",
|
|
90
|
+
"eslint-plugin-harlanzw": "^0.11.0",
|
|
91
|
+
"happy-dom": "^20.8.7",
|
|
92
|
+
"nuxt": "^4.4.2",
|
|
93
|
+
"typescript": "^6.0.2",
|
|
94
|
+
"vitest": "^4.1.1"
|
|
87
95
|
},
|
|
88
96
|
"build": {
|
|
89
97
|
"externals": [
|
|
@@ -92,15 +100,15 @@
|
|
|
92
100
|
},
|
|
93
101
|
"scripts": {
|
|
94
102
|
"lint": "eslint . --fix",
|
|
95
|
-
"client:build": "
|
|
96
|
-
"
|
|
103
|
+
"client:build": "nuxt generate devtools",
|
|
104
|
+
"devtools": "nuxt dev devtools --port 3030",
|
|
97
105
|
"build": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt-module-build build && npm run client:build",
|
|
98
|
-
"dev": "
|
|
99
|
-
"dev:build": "
|
|
100
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare &&
|
|
106
|
+
"dev": "nuxt dev playground",
|
|
107
|
+
"dev:build": "nuxt build playground",
|
|
108
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground && nuxt prepare client",
|
|
101
109
|
"release": "pnpm build && bumpp -x \"npx changelogen --output=CHANGELOG.md\"",
|
|
102
110
|
"typecheck": "tsc --noEmit ",
|
|
103
|
-
"test": "
|
|
111
|
+
"test": "nuxt prepare test/fixtures/i18n && nuxt prepare test/fixtures/i18n-domains && vitest",
|
|
104
112
|
"test:attw": "attw --pack"
|
|
105
113
|
}
|
|
106
114
|
}
|
package/dist/client/200.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-schema-org/_nuxt/BpdejJ-Z.js"}}</script><link rel="stylesheet" href="/__nuxt-schema-org/_nuxt/entry.BVcYdedQ.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BpdejJ-Z.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/CVO1_9PV.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/D0r3Knsf.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BMMyXqK5.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/Cp-IABpG.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-schema-org/_nuxt/error-404.C93bBBKL.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/B3Z8rEby.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-schema-org/_nuxt/error-500.zofSQbXz.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/3mPCgC9T.js"><script type="module" src="/__nuxt-schema-org/_nuxt/BpdejJ-Z.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT_SITE_CONFIG__={_priority:{name:-10,env:-15},env:"production",name:"nuxt-schema-org-devtools"}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1758084348787,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-schema-org",buildId:"8a772054-fdc3-4341-9461-52f13effa2ab",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-schema-org/_nuxt/BpdejJ-Z.js"}}</script><link rel="stylesheet" href="/__nuxt-schema-org/_nuxt/entry.BVcYdedQ.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BpdejJ-Z.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/CVO1_9PV.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/D0r3Knsf.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/BMMyXqK5.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/Cp-IABpG.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-schema-org/_nuxt/error-404.C93bBBKL.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/B3Z8rEby.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-schema-org/_nuxt/error-500.zofSQbXz.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-schema-org/_nuxt/3mPCgC9T.js"><script type="module" src="/__nuxt-schema-org/_nuxt/BpdejJ-Z.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT_SITE_CONFIG__={_priority:{name:-10,env:-15},env:"production",name:"nuxt-schema-org-devtools"}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1758084348787,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-schema-org",buildId:"8a772054-fdc3-4341-9461-52f13effa2ab",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as o,u as s,c as a,o as i,a as t,t as r}from"#entry";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},c={class:"max-w-520px text-center"},l=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return s({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,h)=>(i(),a("div",u,[t("div",c,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.statusCode)},null,8,l),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusMessage)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},b=o(f,[["__scopeId","data-v-cdefcb3f"]]);export{b as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as s,u as a,c as i,o as u,a as t,t as n,b as c,w as l,d,e as f}from"#entry";const p={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},m={class:"max-w-520px text-center"},h=["textContent"],g=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Page not found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const r=e;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,w)=>{const o=f;return u(),i("div",p,[t("div",m,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:n(e.statusCode)},null,8,h),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:n(e.statusMessage)},null,8,g),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:n(e.description)},null,8,b),t("div",x,[c(o,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:l(()=>[d(n(e.backHome),1)]),_:1})])])])}}},C=s(y,[["__scopeId","data-v-46098f84"]]);export{C as default};
|