nuxt-og-image 2.0.16 → 2.0.19
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 +10 -2
- package/dist/client/404.html +10 -2
- package/dist/client/_nuxt/{IconCSS.a55f717f.js → IconCSS.c48402d9.js} +1 -1
- package/dist/client/_nuxt/{ImageLoader.3395b395.js → ImageLoader.30c30af0.js} +1 -1
- package/dist/client/_nuxt/entry.69e9376f.js +136 -0
- package/dist/client/_nuxt/entry.c3a567ab.css +1 -0
- package/dist/client/_nuxt/error-404.888958ab.css +1 -0
- package/dist/client/_nuxt/{error-404.a5317b87.js → error-404.a59731bb.js} +1 -1
- package/dist/client/_nuxt/error-500.69009e70.css +1 -0
- package/dist/client/_nuxt/{error-500.35b52ab9.js → error-500.9ac6c975.js} +1 -1
- package/dist/client/_nuxt/{index.eb10a816.js → index.62ccb0c3.js} +1 -1
- package/dist/client/_nuxt/{options.3b29a706.js → options.3fadaf0e.js} +1 -1
- package/dist/client/_nuxt/{png.46aa9032.js → png.d3e36bb9.js} +1 -1
- package/dist/client/_nuxt/{shiki.13a22aea.js → shiki.be0584d9.js} +1 -1
- package/dist/client/_nuxt/{svg.8746c773.js → svg.89706ebb.js} +1 -1
- package/dist/client/_nuxt/{vnodes.8df7aa5a.js → vnodes.ddf136d5.js} +1 -1
- package/dist/client/index.html +10 -2
- package/dist/client/options/index.html +10 -2
- package/dist/client/png/index.html +10 -2
- package/dist/client/svg/index.html +10 -2
- package/dist/client/vnodes/index.html +10 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/cache.mjs +3 -2
- package/dist/runtime/nitro/middleware/og.png.d.ts +1 -1
- package/dist/runtime/nitro/middleware/og.png.mjs +1 -1
- package/dist/runtime/nitro/middleware/playground.d.ts +1 -1
- package/dist/runtime/nitro/routes/debug.d.ts +2 -2
- package/dist/runtime/nitro/routes/html.d.ts +1 -1
- package/dist/runtime/nitro/routes/options.d.ts +1 -1
- package/dist/runtime/nitro/routes/svg.d.ts +1 -1
- package/dist/runtime/nitro/routes/vnode.d.ts +1 -1
- package/package.json +23 -26
- package/dist/client/_nuxt/entry.6446ab59.js +0 -143
- package/dist/client/_nuxt/entry.7047f7e9.css +0 -1
- package/dist/client/_nuxt/error-404.f3dd5020.css +0 -1
- package/dist/client/_nuxt/error-500.06915589.css +0 -1
package/dist/client/200.html
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.c3a567ab.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin="" href="/__nuxt_og_image__/client/_nuxt/entry.69e9376f.js">
|
|
7
|
+
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.888958ab.css">
|
|
8
|
+
<link rel="prefetch" as="script" crossorigin="" href="/__nuxt_og_image__/client/_nuxt/error-404.a59731bb.js">
|
|
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.9ac6c975.js">
|
|
11
|
+
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.69e9376f.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"}})();
|
|
5
12
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"
|
|
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
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
7
15
|
</html>
|
package/dist/client/404.html
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.c3a567ab.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin="" href="/__nuxt_og_image__/client/_nuxt/entry.69e9376f.js">
|
|
7
|
+
<link rel="prefetch" as="style" href="/__nuxt_og_image__/client/_nuxt/error-404.888958ab.css">
|
|
8
|
+
<link rel="prefetch" as="script" crossorigin="" href="/__nuxt_og_image__/client/_nuxt/error-404.a59731bb.js">
|
|
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.9ac6c975.js">
|
|
11
|
+
<script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.69e9376f.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"}})();
|
|
5
12
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"
|
|
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
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt_og_image__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
7
15
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as r,H as p,I as u,n as t,o as l,c as _,s as f,_ as d}from"./entry.
|
|
1
|
+
import{g as r,H as p,I as u,n as t,o as l,c as _,s as f,_ as d}from"./entry.69e9376f.js";const m=r({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(a){const n=a;p(e=>({a570de9a:i.value}));const s=u(),c=t(()=>((s.nuxtIcon?.aliases||{})[n.name]||n.name).replace(/^i-/,"")),i=t(()=>`url('https://api.iconify.design/${c.value.replace(":","/")}.svg')`),o=t(()=>{if(!n.size&&typeof s.nuxtIcon?.size=="boolean"&&!s.nuxtIcon?.size)return;const e=n.size||s.nuxtIcon?.size||"1em";return String(Number(e))===e?`${e}px`:e});return(e,S)=>(l(),_("span",{style:f({width:o.value,height:o.value})},null,4))}});const x=d(m,[["__scopeId","data-v-fdffc024"]]);export{x 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.69e9376f.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 _};
|