@nuxtjs/sitemap 6.1.3 → 6.1.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/dist/client/200.html +7 -7
- package/dist/client/404.html +7 -7
- package/dist/client/_nuxt/Ci1G_HT-.js +32 -0
- package/dist/client/_nuxt/{CwId6Bqy.js → D1KCJr29.js} +1 -1
- package/dist/client/_nuxt/{rzU8H41-.js → NP1OnDCE.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/7d615883-2757-44d5-a592-bf052b8d11cc.json +1 -0
- package/dist/client/_nuxt/error-404.D6UfoGUN.css +1 -0
- package/dist/client/_nuxt/error-500.DdwhIDS3.css +1 -0
- package/dist/client/index.html +7 -7
- package/dist/module.json +1 -1
- package/dist/module.mjs +7 -4
- package/dist/runtime/nitro/routes/sitemap_index.xml.js +1 -1
- package/dist/runtime/nitro/sitemap/nitro.js +1 -2
- package/dist/runtime/nitro/sitemap/urlset/sources.d.ts +2 -2
- package/dist/runtime/nitro/sitemap/urlset/sources.js +2 -2
- package/package.json +5 -4
- package/virtual.d.ts +11 -0
- package/dist/client/_nuxt/builds/meta/006d65ef-de75-4268-a310-7b95f053aaad.json +0 -1
- package/dist/client/_nuxt/error-404.BC56QCMI.css +0 -1
- package/dist/client/_nuxt/error-500.BXVm9ZUw.css +0 -1
- package/dist/client/_nuxt/zAUaSRCG.js +0 -32
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s,u as a,o as i,c as u,a as e,t as o}from"./
|
|
1
|
+
import{_ as s,u as a,o as i,c as u,a as e,t as o}from"./Ci1G_HT-.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!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:[{children:'*,: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{font-size:inherit;font-weight:inherit}h1,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,n)=>(i(),u("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},m=s(f,[["__scopeId","data-v-551e0861"]]);export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,u as i,o as u,c,a as e,t as r,b as l,w as d,d as p,e as f}from"./
|
|
1
|
+
import{_ as a,u as i,o as u,c,a as e,t as r,b as l,w as d,d as p,e as f}from"./Ci1G_HT-.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"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(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!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:[{children:'*,: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{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,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,o)=>{const s=f;return u(),c("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[l(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:d(()=>[p(r(t.backHome),1)]),_:1})])])])}}},_=a(y,[["__scopeId","data-v-d6c54610"]]);export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"7d615883-2757-44d5-a592-bf052b8d11cc","timestamp":1730433526211}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"7d615883-2757-44d5-a592-bf052b8d11cc","timestamp":1730433526211,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-d6c54610]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-d6c54610]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-d6c54610]{background-color:#ffffff4d}.gradient-border[data-v-d6c54610]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-d6c54610]{background-color:#1414144d}.gradient-border[data-v-d6c54610]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-d6c54610]:before{background-size:400% auto;border-radius:.5rem;bottom:0;content:"";left:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;right:0;top:0;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-d6c54610]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-d6c54610]{position:fixed}.left-0[data-v-d6c54610]{left:0}.right-0[data-v-d6c54610]{right:0}.z-10[data-v-d6c54610]{z-index:10}.z-20[data-v-d6c54610]{z-index:20}.grid[data-v-d6c54610]{display:grid}.mb-16[data-v-d6c54610]{margin-bottom:4rem}.mb-8[data-v-d6c54610]{margin-bottom:2rem}.max-w-520px[data-v-d6c54610]{max-width:520px}.min-h-screen[data-v-d6c54610]{min-height:100vh}.w-full[data-v-d6c54610]{width:100%}.flex[data-v-d6c54610]{display:flex}.cursor-pointer[data-v-d6c54610]{cursor:pointer}.place-content-center[data-v-d6c54610]{place-content:center}.items-center[data-v-d6c54610]{align-items:center}.justify-center[data-v-d6c54610]{justify-content:center}.overflow-hidden[data-v-d6c54610]{overflow:hidden}.bg-white[data-v-d6c54610]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-d6c54610]{padding-left:1rem;padding-right:1rem}.px-8[data-v-d6c54610]{padding-left:2rem;padding-right:2rem}.py-2[data-v-d6c54610]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-d6c54610]{text-align:center}.text-8xl[data-v-d6c54610]{font-size:6rem;line-height:1}.text-xl[data-v-d6c54610]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-d6c54610]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-d6c54610]{font-weight:300}.font-medium[data-v-d6c54610]{font-weight:500}.leading-tight[data-v-d6c54610]{line-height:1.25}.font-sans[data-v-d6c54610]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-d6c54610]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-d6c54610]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-d6c54610]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-d6c54610]{padding-left:0;padding-right:0}.sm\:px-6[data-v-d6c54610]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-d6c54610]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-d6c54610]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-d6c54610]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-551e0861]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-551e0861]{position:fixed}.-bottom-1\/2[data-v-551e0861]{bottom:-50%}.left-0[data-v-551e0861]{left:0}.right-0[data-v-551e0861]{right:0}.grid[data-v-551e0861]{display:grid}.mb-16[data-v-551e0861]{margin-bottom:4rem}.mb-8[data-v-551e0861]{margin-bottom:2rem}.h-1\/2[data-v-551e0861]{height:50%}.max-w-520px[data-v-551e0861]{max-width:520px}.min-h-screen[data-v-551e0861]{min-height:100vh}.place-content-center[data-v-551e0861]{place-content:center}.overflow-hidden[data-v-551e0861]{overflow:hidden}.bg-white[data-v-551e0861]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-551e0861]{padding-left:2rem;padding-right:2rem}.text-center[data-v-551e0861]{text-align:center}.text-8xl[data-v-551e0861]{font-size:6rem;line-height:1}.text-xl[data-v-551e0861]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-551e0861]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-551e0861]{font-weight:300}.font-medium[data-v-551e0861]{font-weight:500}.leading-tight[data-v-551e0861]{line-height:1.25}.font-sans[data-v-551e0861]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-551e0861]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-551e0861]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-551e0861]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-551e0861]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-551e0861]{font-size:2.25rem;line-height:2.5rem}}
|
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
3
|
<link rel="stylesheet" href="/__sitemap__/devtools/_nuxt/entry.BM8yO2pK.css">
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Ci1G_HT-.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/35JD59R_.js">
|
|
6
6
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/Ci-La1BS.js">
|
|
7
7
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/DOAn35dn.js">
|
|
@@ -270,9 +270,9 @@
|
|
|
270
270
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/D0r3Knsf.js">
|
|
271
271
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CVO1_9PV.js">
|
|
272
272
|
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/CG6Dc4jp.js">
|
|
273
|
-
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-404.
|
|
274
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
275
|
-
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-500.
|
|
276
|
-
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/
|
|
277
|
-
<script type="module" src="/__sitemap__/devtools/_nuxt/
|
|
278
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"
|
|
273
|
+
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-404.D6UfoGUN.css">
|
|
274
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/NP1OnDCE.js">
|
|
275
|
+
<link rel="prefetch" as="style" href="/__sitemap__/devtools/_nuxt/error-500.DdwhIDS3.css">
|
|
276
|
+
<link rel="prefetch" as="script" crossorigin href="/__sitemap__/devtools/_nuxt/D1KCJr29.js">
|
|
277
|
+
<script type="module" src="/__sitemap__/devtools/_nuxt/Ci1G_HT-.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1730433544325,false]</script>
|
|
278
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__sitemap__/devtools",buildId:"7d615883-2757-44d5-a592-bf052b8d11cc",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -621,9 +621,9 @@ const module = defineNuxtModule({
|
|
|
621
621
|
logger.debug("The module is disabled, skipping setup.");
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
|
-
nuxt.options.alias["#sitemap"] = resolve("./runtime
|
|
624
|
+
nuxt.options.alias["#sitemap"] = resolve("./runtime");
|
|
625
625
|
nuxt.options.nitro.alias = nuxt.options.nitro.alias || {};
|
|
626
|
-
nuxt.options.nitro.alias["#sitemap"] = resolve("./runtime
|
|
626
|
+
nuxt.options.nitro.alias["#sitemap"] = resolve("./runtime");
|
|
627
627
|
config.xslColumns = config.xslColumns || [
|
|
628
628
|
{ label: "URL", width: "50%" },
|
|
629
629
|
{ label: "Images", width: "25%", select: "count(image:image)" },
|
|
@@ -778,6 +778,9 @@ const module = defineNuxtModule({
|
|
|
778
778
|
extendTypes(name, async ({ typesPath }) => {
|
|
779
779
|
return `
|
|
780
780
|
declare module 'nitropack' {
|
|
781
|
+
interface PrerenderRoute {
|
|
782
|
+
_sitemap?: import('${typesPath}').SitemapUrl
|
|
783
|
+
}
|
|
781
784
|
interface NitroRouteRules {
|
|
782
785
|
index?: boolean
|
|
783
786
|
sitemap?: import('${typesPath}').SitemapItemDefaults
|
|
@@ -1041,7 +1044,7 @@ declare module 'vue-router' {
|
|
|
1041
1044
|
const nitroPromise = createNitroPromise();
|
|
1042
1045
|
let resolvedConfigUrls = false;
|
|
1043
1046
|
nuxt.hooks.hook("nitro:config", (nitroConfig) => {
|
|
1044
|
-
nitroConfig.virtual["#sitemap/global-sources.mjs"] = async () => {
|
|
1047
|
+
nitroConfig.virtual["#sitemap-virtual/global-sources.mjs"] = async () => {
|
|
1045
1048
|
const { prerenderUrls, routeRules: routeRules2 } = generateExtraRoutesFromNuxtConfig();
|
|
1046
1049
|
const prerenderUrlsFinal = [
|
|
1047
1050
|
...prerenderUrls,
|
|
@@ -1133,7 +1136,7 @@ declare module 'vue-router' {
|
|
|
1133
1136
|
};
|
|
1134
1137
|
const extraSitemapModules = typeof config.sitemaps == "object" ? Object.keys(config.sitemaps).filter((n) => n !== "index") : [];
|
|
1135
1138
|
const sitemapSources = {};
|
|
1136
|
-
nitroConfig.virtual[`#sitemap/child-sources.mjs`] = async () => {
|
|
1139
|
+
nitroConfig.virtual[`#sitemap-virtual/child-sources.mjs`] = async () => {
|
|
1137
1140
|
for (const sitemapName of extraSitemapModules) {
|
|
1138
1141
|
sitemapSources[sitemapName] = sitemapSources[sitemapName] || [];
|
|
1139
1142
|
const definition = config.sitemaps[sitemapName];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { appendHeader, defineEventHandler, setHeader } from "h3";
|
|
2
2
|
import { joinURL } from "ufo";
|
|
3
|
-
import { useNitroApp } from "nitropack/runtime";
|
|
4
3
|
import { useSimpleSitemapRuntimeConfig } from "../utils.js";
|
|
5
4
|
import { buildSitemapIndex, urlsToIndexXml } from "../sitemap/builder/sitemap-index.js";
|
|
6
5
|
import { useNitroUrlResolvers } from "../sitemap/nitro.js";
|
|
6
|
+
import { useNitroApp } from "#imports";
|
|
7
7
|
export default defineEventHandler(async (e) => {
|
|
8
8
|
const runtimeConfig = useSimpleSitemapRuntimeConfig();
|
|
9
9
|
const nitro = useNitroApp();
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { getQuery, setHeader, createError } from "h3";
|
|
2
2
|
import { fixSlashes } from "site-config-stack/urls";
|
|
3
3
|
import { defu } from "defu";
|
|
4
|
-
import { useNitroApp } from "nitropack/runtime";
|
|
5
4
|
import { logger, mergeOnKey, splitForLocales } from "../../utils-pure.js";
|
|
6
5
|
import { createNitroRouteRuleMatcher } from "../kit.js";
|
|
7
6
|
import { buildSitemapUrls, urlsToXml } from "./builder/sitemap.js";
|
|
8
7
|
import { normaliseEntry } from "./urlset/normalise.js";
|
|
9
8
|
import { sortSitemapUrls } from "./urlset/sort.js";
|
|
10
|
-
import { createSitePathResolver, getPathRobotConfig, useSiteConfig } from "#imports";
|
|
9
|
+
import { useNitroApp, createSitePathResolver, getPathRobotConfig, useSiteConfig } from "#imports";
|
|
11
10
|
export function useNitroUrlResolvers(e) {
|
|
12
11
|
const canonicalQuery = getQuery(e).canonical;
|
|
13
12
|
const isShowingCanonical = typeof canonicalQuery !== "undefined" && canonicalQuery !== "false";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { H3Event } from 'h3';
|
|
2
2
|
import type { ModuleRuntimeConfig, SitemapSourceBase, SitemapSourceResolved } from '../../../types.js';
|
|
3
3
|
export declare function fetchDataSource(input: SitemapSourceBase | SitemapSourceResolved, event?: H3Event): Promise<SitemapSourceResolved>;
|
|
4
|
-
export declare function globalSitemapSources(): Promise<
|
|
5
|
-
export declare function childSitemapSources(definition: ModuleRuntimeConfig['sitemaps'][string]): Promise<
|
|
4
|
+
export declare function globalSitemapSources(): Promise<any>;
|
|
5
|
+
export declare function childSitemapSources(definition: ModuleRuntimeConfig['sitemaps'][string]): Promise<any>;
|
|
6
6
|
export declare function resolveSitemapSources(sources: (SitemapSourceBase | SitemapSourceResolved)[], event?: H3Event): Promise<SitemapSourceResolved[]>;
|
|
@@ -62,10 +62,10 @@ export async function fetchDataSource(input, event) {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
export function globalSitemapSources() {
|
|
65
|
-
return import("#sitemap/global-sources.mjs").then((m) => m.sources);
|
|
65
|
+
return import("#sitemap-virtual/global-sources.mjs").then((m) => m.sources);
|
|
66
66
|
}
|
|
67
67
|
export function childSitemapSources(definition) {
|
|
68
|
-
return definition?._hasSourceChunk ? import("#sitemap/child-sources.mjs").then((m) => m.sources[definition.sitemapName] || []) : Promise.resolve([]);
|
|
68
|
+
return definition?._hasSourceChunk ? import("#sitemap-virtual/child-sources.mjs").then((m) => m.sources[definition.sitemapName] || []) : Promise.resolve([]);
|
|
69
69
|
}
|
|
70
70
|
export async function resolveSitemapSources(sources, event) {
|
|
71
71
|
return (await Promise.all(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/sitemap",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.1.
|
|
4
|
+
"version": "6.1.4",
|
|
5
5
|
"description": "Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"main": "./dist/module.cjs",
|
|
32
32
|
"types": "./dist/types.d.ts",
|
|
33
33
|
"files": [
|
|
34
|
-
"dist"
|
|
34
|
+
"dist",
|
|
35
|
+
"virtual.d.ts"
|
|
35
36
|
],
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@nuxt/devtools-kit": "^1.6.0",
|
|
@@ -60,10 +61,10 @@
|
|
|
60
61
|
"@nuxtjs/robots": "4.1.10",
|
|
61
62
|
"bumpp": "^9.8.0",
|
|
62
63
|
"eslint": "9.13.0",
|
|
63
|
-
"eslint-plugin-n": "^17.
|
|
64
|
+
"eslint-plugin-n": "^17.12.0",
|
|
64
65
|
"execa": "^9.5.1",
|
|
65
66
|
"nuxt": "^3.13.2",
|
|
66
|
-
"nuxt-i18n-micro": "^1.31.
|
|
67
|
+
"nuxt-i18n-micro": "^1.31.2",
|
|
67
68
|
"typescript": "5.6.3",
|
|
68
69
|
"vitest": "^2.1.4"
|
|
69
70
|
},
|
package/virtual.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare module '#sitemap-virtual/global-sources.mjs' {
|
|
2
|
+
import type { SitemapSourceBase, SitemapSourceResolved } from '#sitemap/types'
|
|
3
|
+
|
|
4
|
+
export const sources: (SitemapSourceBase | SitemapSourceResolved)[]
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
declare module '#sitemap-virtual/child-sources.mjs' {
|
|
8
|
+
import type { SitemapSourceBase, SitemapSourceResolved } from '#sitemap/types'
|
|
9
|
+
|
|
10
|
+
export const sources: Record<string, (SitemapSourceBase | SitemapSourceResolved)[]>
|
|
11
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"006d65ef-de75-4268-a310-7b95f053aaad","timestamp":1730258061563,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-2c2d0b4d]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-2c2d0b4d]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-2c2d0b4d]{background-color:#ffffff4d}.gradient-border[data-v-2c2d0b4d]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-2c2d0b4d]{background-color:#1414144d}.gradient-border[data-v-2c2d0b4d]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-2c2d0b4d]:before{background-size:400% auto;border-radius:.5rem;bottom:0;content:"";left:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;right:0;top:0;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-2c2d0b4d]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-2c2d0b4d]{position:fixed}.left-0[data-v-2c2d0b4d]{left:0}.right-0[data-v-2c2d0b4d]{right:0}.z-10[data-v-2c2d0b4d]{z-index:10}.z-20[data-v-2c2d0b4d]{z-index:20}.grid[data-v-2c2d0b4d]{display:grid}.mb-16[data-v-2c2d0b4d]{margin-bottom:4rem}.mb-8[data-v-2c2d0b4d]{margin-bottom:2rem}.max-w-520px[data-v-2c2d0b4d]{max-width:520px}.min-h-screen[data-v-2c2d0b4d]{min-height:100vh}.w-full[data-v-2c2d0b4d]{width:100%}.flex[data-v-2c2d0b4d]{display:flex}.cursor-pointer[data-v-2c2d0b4d]{cursor:pointer}.place-content-center[data-v-2c2d0b4d]{place-content:center}.items-center[data-v-2c2d0b4d]{align-items:center}.justify-center[data-v-2c2d0b4d]{justify-content:center}.overflow-hidden[data-v-2c2d0b4d]{overflow:hidden}.bg-white[data-v-2c2d0b4d]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-2c2d0b4d]{padding-left:1rem;padding-right:1rem}.px-8[data-v-2c2d0b4d]{padding-left:2rem;padding-right:2rem}.py-2[data-v-2c2d0b4d]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-2c2d0b4d]{text-align:center}.text-8xl[data-v-2c2d0b4d]{font-size:6rem;line-height:1}.text-xl[data-v-2c2d0b4d]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-2c2d0b4d]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-2c2d0b4d]{font-weight:300}.font-medium[data-v-2c2d0b4d]{font-weight:500}.leading-tight[data-v-2c2d0b4d]{line-height:1.25}.font-sans[data-v-2c2d0b4d]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-2c2d0b4d]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-2c2d0b4d]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-2c2d0b4d]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-2c2d0b4d]{padding-left:0;padding-right:0}.sm\:px-6[data-v-2c2d0b4d]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-2c2d0b4d]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-2c2d0b4d]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-2c2d0b4d]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spotlight[data-v-6d5f543e]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-6d5f543e]{position:fixed}.-bottom-1\/2[data-v-6d5f543e]{bottom:-50%}.left-0[data-v-6d5f543e]{left:0}.right-0[data-v-6d5f543e]{right:0}.grid[data-v-6d5f543e]{display:grid}.mb-16[data-v-6d5f543e]{margin-bottom:4rem}.mb-8[data-v-6d5f543e]{margin-bottom:2rem}.h-1\/2[data-v-6d5f543e]{height:50%}.max-w-520px[data-v-6d5f543e]{max-width:520px}.min-h-screen[data-v-6d5f543e]{min-height:100vh}.place-content-center[data-v-6d5f543e]{place-content:center}.overflow-hidden[data-v-6d5f543e]{overflow:hidden}.bg-white[data-v-6d5f543e]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-6d5f543e]{padding-left:2rem;padding-right:2rem}.text-center[data-v-6d5f543e]{text-align:center}.text-8xl[data-v-6d5f543e]{font-size:6rem;line-height:1}.text-xl[data-v-6d5f543e]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-6d5f543e]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-6d5f543e]{font-weight:300}.font-medium[data-v-6d5f543e]{font-weight:500}.leading-tight[data-v-6d5f543e]{line-height:1.25}.font-sans[data-v-6d5f543e]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-6d5f543e]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-6d5f543e]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-6d5f543e]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-6d5f543e]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-6d5f543e]{font-size:2.25rem;line-height:2.5rem}}
|