nuxt-og-image 2.0.25 → 2.0.28
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 +5 -5
- package/dist/client/404.html +5 -5
- package/dist/client/_nuxt/IconCSS.28ef6808.css +1 -0
- package/dist/client/_nuxt/IconCSS.d3e12840.js +1 -0
- package/dist/client/_nuxt/{ImageLoader.9a2c5592.js → ImageLoader.ad92439f.js} +1 -1
- package/dist/client/_nuxt/{entry.5e420308.js → entry.00dd4948.js} +49 -49
- package/dist/client/_nuxt/{entry.9cb59451.css → entry.0b89ffd3.css} +1 -1
- package/dist/client/_nuxt/{error-404.5039d699.js → error-404.95b4b668.js} +1 -1
- package/dist/client/_nuxt/{error-500.b422d33f.js → error-500.d22f8b54.js} +1 -1
- package/dist/client/_nuxt/{index.0f460624.js → index.f2702f88.js} +1 -1
- package/dist/client/_nuxt/{options.b061e670.js → options.ddf310be.js} +1 -1
- package/dist/client/_nuxt/{png.a29fa077.js → png.51e9bf00.js} +1 -1
- package/dist/client/_nuxt/{shiki.1fe83df5.js → shiki.721a43ba.js} +1 -1
- package/dist/client/_nuxt/{svg.b56c3a39.js → svg.f31a00cf.js} +1 -1
- package/dist/client/_nuxt/{vnodes.d38ef018.js → vnodes.89b4b57e.js} +1 -1
- package/dist/client/index.html +5 -5
- package/dist/client/options/index.html +5 -5
- package/dist/client/png/index.html +5 -5
- package/dist/client/svg/index.html +5 -5
- package/dist/client/vnodes/index.html +5 -5
- package/dist/module.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -4
- package/dist/runtime/composables/defineOgImage.d.ts +2 -0
- package/dist/runtime/composables/defineOgImage.mjs +1 -0
- package/dist/runtime/nitro/providers/{inline-css → css-inline}/node.d.ts +1 -1
- package/dist/runtime/nitro/providers/css-inline/node.mjs +10 -0
- package/dist/runtime/nitro/routes/html.mjs +4 -4
- package/package.json +17 -17
- package/dist/client/_nuxt/IconCSS.29c035fc.css +0 -1
- package/dist/client/_nuxt/IconCSS.d5d4ba18.js +0 -1
- package/dist/runtime/nitro/providers/inline-css/node.mjs +0 -11
- /package/dist/runtime/nitro/providers/{inline-css → css-inline}/mock.d.ts +0 -0
- /package/dist/runtime/nitro/providers/{inline-css → css-inline}/mock.mjs +0 -0
package/dist/client/200.html
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.0b89ffd3.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.00dd4948.js">
|
|
7
7
|
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.b751fa02.css">
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.
|
|
8
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.95b4b668.js">
|
|
9
9
|
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.69009e70.css">
|
|
10
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.
|
|
11
|
-
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.
|
|
10
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.d22f8b54.js">
|
|
11
|
+
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.00dd4948.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(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 r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
12
12
|
</script></head>
|
|
13
13
|
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
14
14
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
package/dist/client/404.html
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.0b89ffd3.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.00dd4948.js">
|
|
7
7
|
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.b751fa02.css">
|
|
8
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.
|
|
8
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-404.95b4b668.js">
|
|
9
9
|
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-500.69009e70.css">
|
|
10
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.
|
|
11
|
-
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.
|
|
10
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-500.d22f8b54.js">
|
|
11
|
+
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.00dd4948.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(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 r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
12
12
|
</script></head>
|
|
13
13
|
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
14
14
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
span[data-v-ab9ed42e]{background-color:currentColor;display:inline-block;-webkit-mask-image:var(--7bad2e10);mask-image:var(--7bad2e10);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as l,H as _,I as d,n as o,o as m,c as f,s as S,_ as g}from"./entry.00dd4948.js";const x=l({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(r){const n=r;_(e=>({"7bad2e10":u.value}));const s=d(),p=o(()=>{var e;return((((e=s.nuxtIcon)==null?void 0:e.aliases)||{})[n.name]||n.name).replace(/^i-/,"")}),u=o(()=>`url('https://api.iconify.design/${p.value.replace(":","/")}.svg')`),a=o(()=>{var t,c,i;if(!n.size&&typeof((t=s.nuxtIcon)==null?void 0:t.size)=="boolean"&&!((c=s.nuxtIcon)!=null&&c.size))return;const e=n.size||((i=s.nuxtIcon)==null?void 0:i.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,t)=>(m(),f("span",{style:S({width:a.value,height:a.value})},null,4))}});const z=g(x,[["__scopeId","data-v-ab9ed42e"]]);export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as c,k as m,l as r,n as u,q as d,o as g,c as f,s as y,_ as v}from"./entry.
|
|
1
|
+
import{g as p,r as c,k as m,l as r,n as u,q as d,o as g,c as f,s as y,_ as v}from"./entry.00dd4948.js";const x=p({__name:"ImageLoader",props:{src:String,aspectRatio:Number,description:String},setup(a){const s=a,n=c(),o=c(0);function i(e){const t=n.value,_=Date.now();t.src="",o.value=0,t.style.opacity="0",t.onload=()=>{t.style.opacity="1",o.value=Date.now()-_},t.src=e}m(()=>{r(()=>s.src,e=>{i(e)},{immediate:!0})});const l=u(()=>s.description.replace("%s",o.value.toString()));return r(l,e=>{d.value=e}),(e,t)=>(g(),f("img",{ref_key:"image",ref:n,class:"max-h-full border-1 border-light-500 rounded",style:y({aspectRatio:a.aspectRatio})},null,4))}});const S=v(x,[["__scopeId","data-v-23ec6856"]]);export{S as _};
|