nuxt-og-image 3.0.0-rc.48 → 3.0.0-rc.49
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 +4 -4
- package/dist/client/404.html +4 -4
- package/dist/client/_nuxt/{CLr7AWe0.js → B1evB4c7.js} +51 -51
- package/dist/client/_nuxt/{Tp3uzzsL.js → DFjJH_O7.js} +1 -1
- package/dist/client/_nuxt/{BQp3FL-P.js → DNij9pI-.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/f6fdbbc9-f6de-42de-bf6e-896e851c221e.json +1 -0
- package/dist/client/_nuxt/{D4lO_TqQ.js → ebvWIJct.js} +1 -1
- package/dist/client/index.html +4 -4
- package/dist/module.json +1 -1
- package/dist/runtime/shared.mjs +1 -1
- package/package.json +6 -6
- package/dist/client/_nuxt/builds/meta/a5b34be6-d8c6-476d-bdb5-01f1c6378fce.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as m,h as f,i as d,j as a,r as I,o as x,c as v,n as _,_ as S}from"./
|
|
1
|
+
import{g as m,h as f,i as d,j as a,r as I,o as x,c as v,n as _,_ as S}from"./B1evB4c7.js";const g=m({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){f(e=>({"1d1d32c4":p.value}));const t=d(),s=u,l=a(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[s.name]?t.nuxtIcon.aliases[s.name]:s.name}),r=a(()=>I(l.value)),p=a(()=>{var o,c;const e=(c=(o=t.nuxtIcon)==null?void 0:o.iconifyApiOptions)==null?void 0:c.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${r.value.prefix}/${r.value.name}.svg')`}),i=a(()=>{var n,o,c;if(!s.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((o=t.nuxtIcon)!=null&&o.size))return;const e=s.size||((c=t.nuxtIcon)==null?void 0:c.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(x(),v("span",{style:_({width:i.value,height:i.value})},null,4))}}),h=S(g,[["__scopeId","data-v-ca2bcd0c"]]);export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i,u as a,o as r,c as n,a as e,t as s,p as l,f as d}from"./
|
|
1
|
+
import{_ as i,u as a,o as r,c as n,a as e,t as s,p as l,f as d}from"./B1evB4c7.js";const c=t=>(l("data-v-c967d9a9"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__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 o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(b,u)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},_=i(x,[["__scopeId","data-v-c967d9a9"]]);export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"f6fdbbc9-f6de-42de-bf6e-896e851c221e","timestamp":1712066095171}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"f6fdbbc9-f6de-42de-bf6e-896e851c221e","timestamp":1712066095171,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,u as n,o as r,c as l,a as e,t as s,b as d,w as c,d as p,e as f,p as h,f as m}from"./
|
|
1
|
+
import{_ as a,u as n,o as r,c as l,a as e,t as s,b as d,w as c,d as p,e as f,p as h,f as m}from"./B1evB4c7.js";const x=t=>(h("data-v-05a2b8a3"),t=t(),m(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=x(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__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 o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,N)=>{const i=f;return r(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[d(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-05a2b8a3"]]);export{z as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
3
|
<link rel="stylesheet" href="/__nuxt-og-image/_nuxt/entry.DSfe2lIv.css">
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/B1evB4c7.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/DXFkqnOI.js">
|
|
6
6
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/D6NljDpC.js">
|
|
7
7
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/CowR2XfX.js">
|
|
@@ -231,9 +231,9 @@
|
|
|
231
231
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/A1WiD9SJ.js">
|
|
232
232
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/DFF-wSSt.js">
|
|
233
233
|
<link rel="prefetch" as="style" href="/__nuxt-og-image/_nuxt/error-404.ORekjfyJ.css">
|
|
234
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/
|
|
234
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/ebvWIJct.js">
|
|
235
235
|
<link rel="prefetch" as="style" href="/__nuxt-og-image/_nuxt/error-500.BIuFL0tW.css">
|
|
236
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/
|
|
237
|
-
<script type="module" src="/__nuxt-og-image/_nuxt/
|
|
236
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/DNij9pI-.js">
|
|
237
|
+
<script type="module" src="/__nuxt-og-image/_nuxt/B1evB4c7.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,c=window.localStorage,d=["dark","light"],n=c&&c.getItem&&c.getItem("nuxt-color-mode")||"system";let l=n==="system"?f():n;const i=e.getAttribute("data-color-mode-forced");i&&(l=i),r(l),a["__NUXT_COLOR_MODE__"]={preference:n,value:l,getColorScheme:f,addColorScheme:r,removeColorScheme:u};function r(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function u(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function m(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&m("").media!=="not all"){for(const o of d)if(m(":"+o).matches)return o}return"light"}})();
|
|
238
238
|
</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
239
239
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-og-image",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/runtime/shared.mjs
CHANGED
|
@@ -5,7 +5,7 @@ export * from "./pure.mjs";
|
|
|
5
5
|
export function getOgImagePath(pagePath, _options) {
|
|
6
6
|
const baseURL = useRuntimeConfig().app.baseURL;
|
|
7
7
|
const options = defu(_options, useOgImageRuntimeConfig().defaults);
|
|
8
|
-
return joinURL(
|
|
8
|
+
return joinURL("/", baseURL, "__og-image__/image", pagePath, `og.${options.extension}`);
|
|
9
9
|
}
|
|
10
10
|
export function useOgImageRuntimeConfig() {
|
|
11
11
|
return useRuntimeConfig()["nuxt-og-image"];
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-rc.
|
|
5
|
-
"packageManager": "pnpm@8.15.
|
|
4
|
+
"version": "3.0.0-rc.49",
|
|
5
|
+
"packageManager": "pnpm@8.15.6",
|
|
6
6
|
"description": "Enlightened OG Image generation for Nuxt.",
|
|
7
7
|
"author": {
|
|
8
8
|
"website": "https://harlanzw.com",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"radix3": "^1.1.2",
|
|
62
62
|
"satori": "0.10.13",
|
|
63
63
|
"satori-html": "^0.3.2",
|
|
64
|
-
"shiki": "^1.2.
|
|
64
|
+
"shiki": "^1.2.3",
|
|
65
65
|
"sirv": "^2.0.4",
|
|
66
66
|
"splitpanes": "^3.1.5",
|
|
67
67
|
"std-env": "^3.7.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"yoga-wasm-web": "^0.3.3"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@antfu/eslint-config": "^2.
|
|
75
|
+
"@antfu/eslint-config": "^2.12.1",
|
|
76
76
|
"@headlessui/vue": "^1.7.19",
|
|
77
77
|
"@iconify-json/carbon": "^1.1.31",
|
|
78
78
|
"@iconify-json/logos": "^1.1.42",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"@nuxt/devtools-ui-kit": "^1.1.5",
|
|
86
86
|
"@nuxt/module-builder": "^0.5.5",
|
|
87
87
|
"@nuxt/test-utils": "3.12.0",
|
|
88
|
-
"@nuxt/ui": "^2.15.
|
|
88
|
+
"@nuxt/ui": "^2.15.1",
|
|
89
89
|
"@nuxtjs/color-mode": "^3.3.3",
|
|
90
90
|
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
|
91
|
-
"@nuxtjs/i18n": "^8.
|
|
91
|
+
"@nuxtjs/i18n": "^8.3.0",
|
|
92
92
|
"@nuxtjs/tailwindcss": "^6.11.4",
|
|
93
93
|
"@unocss/nuxt": "0.59.0-beta.1",
|
|
94
94
|
"@unocss/preset-icons": "0.59.0-beta.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"a5b34be6-d8c6-476d-bdb5-01f1c6378fce","timestamp":1711976272575,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|