nuxt-og-image 3.0.0-rc.36 → 3.0.0-rc.38
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 +20 -19
- package/dist/client/404.html +20 -19
- package/dist/client/_nuxt/{IconCSS.34D9MrvN.js → IconCSS.Wvoc-pC1.js} +1 -1
- package/dist/client/_nuxt/{angular-html.ulaXK71i.js → angular-html.1UnYYWXc.js} +1 -1
- package/dist/client/_nuxt/{angular-ts.CpB8xVpe.js → angular-ts.hpePB6RD.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/ed2b9a04-e4e8-40a1-a2d9-31724028485b.json +1 -0
- package/dist/client/_nuxt/{crystal.ePodXjZr.js → crystal.DJVlt2U7.js} +1 -1
- package/dist/client/_nuxt/csv.89HA7eVC.js +1 -0
- package/dist/client/_nuxt/{entry.2v-9lY-R.js → entry.43Mb45z4.js} +60 -60
- package/dist/client/_nuxt/{error-404.q7rM2ZlB.js → error-404.nx5Mi-pq.js} +1 -1
- package/dist/client/_nuxt/{error-500.HtS9-MFP.js → error-500.BA6w-OU0.js} +1 -1
- package/dist/client/_nuxt/{fortran-fixed-form.5oVt_150.js → fortran-fixed-form.3PunHBsT.js} +1 -1
- package/dist/client/_nuxt/{fortran-free-form.l6j6vfmD.js → fortran-free-form.uz_LTDoO.js} +1 -1
- package/dist/client/_nuxt/{fsharp.5TASvPJ1.js → fsharp.R678YdIV.js} +1 -1
- package/dist/client/_nuxt/{haml.DYCf5dhF.js → haml.9g26y-HX.js} +1 -1
- package/dist/client/_nuxt/html-derivative.3Qc0V0lp.js +1 -0
- package/dist/client/_nuxt/{markdown.Y8p9X7h3.js → markdown.BZyvP-q3.js} +1 -1
- package/dist/client/_nuxt/{mdc.NowVT77H.js → mdc.YjnAaITK.js} +2 -2
- package/dist/client/_nuxt/{nim.16czfBCm.js → nim.XEbgpvRN.js} +1 -1
- package/dist/client/_nuxt/rst.OC5F-HKq.js +1 -0
- package/dist/client/_nuxt/{svelte.j-bqdsch.js → svelte.pLFP2FPE.js} +1 -1
- package/dist/client/_nuxt/vue-html.EeiA1ksk.js +1 -0
- package/dist/client/_nuxt/vue.HERpo4_W.js +6 -0
- package/dist/client/index.html +20 -19
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -2
- package/dist/runtime/nitro/og-image/context.mjs +2 -2
- package/dist/runtime/nitro/og-image/satori/plugins/classes.mjs +18 -0
- package/dist/runtime/nitro/og-image/satori/vnodes.mjs +2 -2
- package/package.json +10 -10
- package/dist/client/_nuxt/builds/meta/571f3ee1-9cb1-4a1e-8116-92551e81f33f.json +0 -1
- package/dist/client/_nuxt/csv.REIP-dDb.js +0 -1
- package/dist/client/_nuxt/rst.Nzb5IGfi.js +0 -1
- package/dist/client/_nuxt/vue-html.TGyjH-sv.js +0 -1
- package/dist/client/_nuxt/vue.AKvPdve9.js +0 -6
- package/dist/runtime/nitro/og-image/satori/plugins/twClasses.mjs +0 -8
- /package/dist/runtime/nitro/og-image/satori/plugins/{twClasses.d.ts → classes.d.ts} +0 -0
package/dist/client/index.html
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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.DjkITzvC.css">
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/entry.
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-og-image/_nuxt/entry.43Mb45z4.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/onig.mBJmD8D5.js">
|
|
6
6
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/abap.bJqzlTLD.js">
|
|
7
7
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/actionscript-3.NUzLYz6e.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/ada.HSb8VHJ5.js">
|
|
9
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/angular-html.
|
|
9
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/angular-html.1UnYYWXc.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/html.ZVb9jHrO.js">
|
|
11
11
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/javascript.JMZ6uy5M.js">
|
|
12
12
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/css.tuEqSfZX.js">
|
|
13
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/angular-ts.
|
|
13
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/angular-ts.hpePB6RD.js">
|
|
14
14
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/scss.9u5wOjnF.js">
|
|
15
15
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/apache.TpqIaH_y.js">
|
|
16
16
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/apex.rLr5RF8N.js">
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/coffee.UjKhX0iS.js">
|
|
48
48
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/cpp.UIU91NPT.js">
|
|
49
49
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/glsl.yLv_V-GM.js">
|
|
50
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/crystal.
|
|
50
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/crystal.DJVlt2U7.js">
|
|
51
51
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/shellscript.82BvnTib.js">
|
|
52
52
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/csharp.xHVQI8QI.js">
|
|
53
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/csv.
|
|
53
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/csv.89HA7eVC.js">
|
|
54
54
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/cue.ts9p4IYJ.js">
|
|
55
55
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/cypher.y2dXjvht.js">
|
|
56
56
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/d.91KOtcJM.js">
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/lua.OGbZEs3U.js">
|
|
67
67
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/erlang._Br9gip-.js">
|
|
68
68
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/fish.k6NZEVUm.js">
|
|
69
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/fortran-fixed-form.
|
|
70
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/fortran-free-form.
|
|
71
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/fsharp.
|
|
72
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/markdown.
|
|
69
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/fortran-fixed-form.3PunHBsT.js">
|
|
70
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/fortran-free-form.uz_LTDoO.js">
|
|
71
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/fsharp.R678YdIV.js">
|
|
72
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/markdown.BZyvP-q3.js">
|
|
73
73
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/gdresource.7GKJFf55.js">
|
|
74
74
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/gdshader.6pjKCTQy.js">
|
|
75
75
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/gdscript.E1_SGClP.js">
|
|
@@ -84,13 +84,14 @@
|
|
|
84
84
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/jsx.3LZ_BoLB.js">
|
|
85
85
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/groovy.Z1Lrhk2B.js">
|
|
86
86
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/hack.9pFjhnG2.js">
|
|
87
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/haml.
|
|
87
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/haml.9g26y-HX.js">
|
|
88
88
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/handlebars.Z9TIkDUw.js">
|
|
89
89
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/yaml.zytfnWoA.js">
|
|
90
90
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/haskell.HW0BBkRd.js">
|
|
91
91
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/hcl.M9siRbiv.js">
|
|
92
92
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/hjson.fLk7JbZa.js">
|
|
93
93
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/hlsl.Do_j-o-7.js">
|
|
94
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/html-derivative.3Qc0V0lp.js">
|
|
94
95
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/http.McgS7Vpm.js">
|
|
95
96
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/imba.guICF3zN.js">
|
|
96
97
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/ini.T6bxBy5-.js">
|
|
@@ -116,14 +117,14 @@
|
|
|
116
117
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/make.8zIAVqFD.js">
|
|
117
118
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/marko.gbQhFTQa.js">
|
|
118
119
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/matlab.LaB98_jd.js">
|
|
119
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/mdc.
|
|
120
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/mdc.YjnAaITK.js">
|
|
120
121
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/mdx.VhCSg2DJ.js">
|
|
121
122
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/mermaid.WuNnVULj.js">
|
|
122
123
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/mojo.zLNDSfD9.js">
|
|
123
124
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/narrat.KYi2rZr0.js">
|
|
124
125
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/nextflow.lYJjOZ_l.js">
|
|
125
126
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/nginx.CrBM8z2W.js">
|
|
126
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/nim.
|
|
127
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/nim.XEbgpvRN.js">
|
|
127
128
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/nix.z3u_V08Q.js">
|
|
128
129
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/nushell.GDk9yul-.js">
|
|
129
130
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/objective-c.Eci2Q5FN.js">
|
|
@@ -146,7 +147,7 @@
|
|
|
146
147
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/reg.Dr-lXfN9.js">
|
|
147
148
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/rel.vATIbX_E.js">
|
|
148
149
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/riscv.L73dAZEB.js">
|
|
149
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/rst.
|
|
150
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/rst.OC5F-HKq.js">
|
|
150
151
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/sas.fTu4QUYF.js">
|
|
151
152
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/scheme.S0VUhbaV.js">
|
|
152
153
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/shaderlab.MYTNW71C.js">
|
|
@@ -158,7 +159,7 @@
|
|
|
158
159
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/splunk.OYnOZZCZ.js">
|
|
159
160
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/ssh-config.jdYjUr9x.js">
|
|
160
161
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/stata.cF_ucIcM.js">
|
|
161
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/svelte.
|
|
162
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/svelte.pLFP2FPE.js">
|
|
162
163
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/swift.YwiPyWKn.js">
|
|
163
164
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/system-verilog.gwJe9XJI.js">
|
|
164
165
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/tasl.IM3fg-4x.js">
|
|
@@ -170,8 +171,8 @@
|
|
|
170
171
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/verilog.32GaFvLA.js">
|
|
171
172
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/vhdl.BgfvI7C9.js">
|
|
172
173
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/viml.Ob-szSvk.js">
|
|
173
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/vue.
|
|
174
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/vue-html.
|
|
174
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/vue.HERpo4_W.js">
|
|
175
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/vue-html.EeiA1ksk.js">
|
|
175
176
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/vyper.0ItMHLZu.js">
|
|
176
177
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/wasm.5qeU6UJI.js">
|
|
177
178
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/wenyan.gl1zQYA8.js">
|
|
@@ -221,9 +222,9 @@
|
|
|
221
222
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/vitesse-light.HOMMxGxw.js">
|
|
222
223
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/vanilla-picker.P0dws0ou.js">
|
|
223
224
|
<link rel="prefetch" as="style" href="/__nuxt-og-image/_nuxt/error-404.DkXpI38i.css">
|
|
224
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/error-404.
|
|
225
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/error-404.nx5Mi-pq.js">
|
|
225
226
|
<link rel="prefetch" as="style" href="/__nuxt-og-image/_nuxt/error-500.SLhS9LVu.css">
|
|
226
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/error-500.
|
|
227
|
-
<script type="module" src="/__nuxt-og-image/_nuxt/entry.
|
|
227
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/error-500.BA6w-OU0.js">
|
|
228
|
+
<script type="module" src="/__nuxt-og-image/_nuxt/entry.43Mb45z4.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window&&window.localStorage&&window.localStorage.getItem&&window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?d():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:d,addColorScheme:i,removeColorScheme:f};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function f(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 d(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
228
229
|
</script></head><body><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4,"once":5},{},false,{},{},["Set"]]</script>
|
|
229
230
|
<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/module.mjs
CHANGED
|
@@ -32,7 +32,8 @@ const autodetectableStaticProviders = {
|
|
|
32
32
|
};
|
|
33
33
|
const NodeRuntime = {
|
|
34
34
|
// node-server runtime
|
|
35
|
-
"chromium": "
|
|
35
|
+
"chromium": "on-demand",
|
|
36
|
+
// this gets changed build start
|
|
36
37
|
"css-inline": "node",
|
|
37
38
|
"resvg": "node",
|
|
38
39
|
"satori": "node",
|
|
@@ -89,7 +90,8 @@ const RuntimeCompatibility = {
|
|
|
89
90
|
"vercel": awsLambda,
|
|
90
91
|
"vercel-edge": {
|
|
91
92
|
"chromium": false,
|
|
92
|
-
"css-inline":
|
|
93
|
+
"css-inline": false,
|
|
94
|
+
// size constraint (2mb is max)
|
|
93
95
|
"resvg": "wasm",
|
|
94
96
|
"satori": "node",
|
|
95
97
|
"sharp": false,
|
|
@@ -8,7 +8,7 @@ import { createNitroRouteRuleMatcher } from "../util/kit.mjs";
|
|
|
8
8
|
import { decodeObjectHtmlEntities } from "../util/encoding.mjs";
|
|
9
9
|
import { htmlPayloadCache, prerenderOptionsCache } from "./cache.mjs";
|
|
10
10
|
import { useChromiumRenderer, useSatoriRenderer } from "./instances.mjs";
|
|
11
|
-
import { useNitroApp } from "#
|
|
11
|
+
import { useNitroApp } from "#imports";
|
|
12
12
|
export function resolvePathCacheKey(e, path) {
|
|
13
13
|
const siteConfig = e.context.siteConfig.get();
|
|
14
14
|
const basePath = withoutTrailingSlash(withoutLeadingSlash(normalizeKey(path || e.path)));
|
|
@@ -148,7 +148,7 @@ export function extractAndNormaliseOgImageOptions(html) {
|
|
|
148
148
|
}
|
|
149
149
|
async function fetchPathHtmlAndExtractOptions(e, path, key) {
|
|
150
150
|
const cachedHtmlPayload = await htmlPayloadCache.getItem(key);
|
|
151
|
-
if (cachedHtmlPayload && cachedHtmlPayload.expiresAt < Date.now())
|
|
151
|
+
if (!import.meta.dev && cachedHtmlPayload && cachedHtmlPayload.expiresAt < Date.now())
|
|
152
152
|
return cachedHtmlPayload.value;
|
|
153
153
|
let html;
|
|
154
154
|
try {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineSatoriTransformer } from "../utils.mjs";
|
|
2
|
+
export default defineSatoriTransformer([
|
|
3
|
+
{
|
|
4
|
+
filter: (node) => !!node.props?.class && !node.props?.tw,
|
|
5
|
+
transform: async (node) => {
|
|
6
|
+
node.props.tw = node.props.class;
|
|
7
|
+
node.props.tw = node.props.tw.replace(/icon|inline-style/g, "");
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
filter: (node) => !!node.props?.style?.display,
|
|
12
|
+
transform: async (node) => {
|
|
13
|
+
if (["inline-block", "inline"].includes(node.props.style.display)) {
|
|
14
|
+
delete node.props.style.display;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]);
|
|
@@ -6,7 +6,7 @@ import { applyEmojis } from "./transforms/emojis.mjs";
|
|
|
6
6
|
import { walkSatoriTree } from "./utils.mjs";
|
|
7
7
|
import unocss from "./plugins/unocss.mjs";
|
|
8
8
|
import emojis from "./plugins/emojis.mjs";
|
|
9
|
-
import
|
|
9
|
+
import classes from "./plugins/classes.mjs";
|
|
10
10
|
import imageSrc from "./plugins/imageSrc.mjs";
|
|
11
11
|
import flex from "./plugins/flex.mjs";
|
|
12
12
|
import encoding from "./plugins/encoding.mjs";
|
|
@@ -24,7 +24,7 @@ export async function createVNodes(ctx) {
|
|
|
24
24
|
await walkSatoriTree(ctx, satoriTree, [
|
|
25
25
|
unocss,
|
|
26
26
|
emojis,
|
|
27
|
-
|
|
27
|
+
classes,
|
|
28
28
|
imageSrc,
|
|
29
29
|
flex,
|
|
30
30
|
encoding
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-rc.
|
|
4
|
+
"version": "3.0.0-rc.38",
|
|
5
5
|
"packageManager": "pnpm@8.15.1",
|
|
6
6
|
"description": "Enlightened OG Image generation for Nuxt.",
|
|
7
7
|
"author": {
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
"image-size": "^1.1.1",
|
|
52
52
|
"json-editor-vue": "^0.12.0",
|
|
53
53
|
"nuxt-icon": "^0.6.8",
|
|
54
|
-
"nuxt-site-config": "^2.2.
|
|
55
|
-
"nuxt-site-config-kit": "^2.2.
|
|
54
|
+
"nuxt-site-config": "^2.2.9",
|
|
55
|
+
"nuxt-site-config-kit": "^2.2.9",
|
|
56
56
|
"nypm": "^0.3.6",
|
|
57
57
|
"ofetch": "^1.3.3",
|
|
58
58
|
"ohash": "^1.1.3",
|
|
59
59
|
"pathe": "^1.1.2",
|
|
60
60
|
"pkg-types": "^1.0.3",
|
|
61
|
-
"playwright-core": "^1.41.
|
|
61
|
+
"playwright-core": "^1.41.2",
|
|
62
62
|
"radix3": "^1.1.0",
|
|
63
63
|
"satori": "0.10.13",
|
|
64
64
|
"satori-html": "^0.3.2",
|
|
65
|
-
"shiki": "^1.0.0-beta.
|
|
65
|
+
"shiki": "^1.0.0-beta.5",
|
|
66
66
|
"sirv": "^2.0.4",
|
|
67
67
|
"splitpanes": "^3.1.5",
|
|
68
68
|
"std-env": "^3.7.0",
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@antfu/eslint-config": "2.6.3",
|
|
76
|
-
"@headlessui/vue": "^1.7.
|
|
76
|
+
"@headlessui/vue": "^1.7.18",
|
|
77
77
|
"@iconify-json/carbon": "^1.1.28",
|
|
78
78
|
"@iconify-json/logos": "^1.1.42",
|
|
79
79
|
"@iconify-json/ri": "^1.1.19",
|
|
80
|
-
"@iconify-json/tabler": "^1.1.
|
|
80
|
+
"@iconify-json/tabler": "^1.1.105",
|
|
81
81
|
"@img/sharp-linux-x64": "0.33.2",
|
|
82
82
|
"@nuxt/content": "^2.11.0",
|
|
83
83
|
"@nuxt/devtools": "1.0.8",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"@nuxt/ui": "^2.13.0",
|
|
88
88
|
"@nuxtjs/color-mode": "^3.3.2",
|
|
89
89
|
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
|
90
|
-
"@nuxtjs/i18n": "8.0.
|
|
91
|
-
"@nuxtjs/tailwindcss": "^6.11.
|
|
90
|
+
"@nuxtjs/i18n": "8.0.1",
|
|
91
|
+
"@nuxtjs/tailwindcss": "^6.11.3",
|
|
92
92
|
"@unocss/nuxt": "^0.58.4",
|
|
93
93
|
"@unocss/preset-icons": "^0.58.4",
|
|
94
94
|
"@unocss/preset-uno": "^0.58.4",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"jest-image-snapshot": "^6.4.0",
|
|
100
100
|
"nuxt": "^3.10.0",
|
|
101
101
|
"nuxt-icon": "0.6.8",
|
|
102
|
-
"playwright": "^1.41.
|
|
102
|
+
"playwright": "^1.41.2",
|
|
103
103
|
"sass": "^1.70.0",
|
|
104
104
|
"sharp": "^0.33.2",
|
|
105
105
|
"typescript": "^5.3.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"571f3ee1-9cb1-4a1e-8116-92551e81f33f","timestamp":1706777265411,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a=Object.freeze({displayName:"csv syntax",fileTypes:["csv"],name:"csv",patterns:[{captures:{1:{name:"rainbow1"},2:{name:"keyword.rainbow2"},3:{name:"entity.name.function.rainbow3"},4:{name:"comment.rainbow4"},5:{name:"string.rainbow5"},6:{name:"variable.parameter.rainbow6"},7:{name:"constant.numeric.rainbow7"},8:{name:"entity.name.type.rainbow8"},9:{name:"markup.bold.rainbow9"},10:{name:"invalid.rainbow10"}},match:'((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?((?: *"(?:[^"]*"")*[^"]*" *(?:,|$))|(?:[^,]*(?:,|$)))?',name:"rainbowgroup"}],scopeName:"text.csv"});var n=[a];export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"./cpp.UIU91NPT.js";import n from"./python.V9Nu427R.js";import c from"./javascript.JMZ6uy5M.js";import a from"./shellscript.82BvnTib.js";import o from"./yaml.zytfnWoA.js";import t from"./cmake.YiKLaZ9A.js";import r from"./ruby.oOCDDplm.js";import"./glsl.yLv_V-GM.js";import"./c.1HqcaTLZ.js";import"./sql.KWFjTZGI.js";import"./html.ZVb9jHrO.js";import"./css.tuEqSfZX.js";import"./xml.GygmfNh9.js";import"./java.tY-NU26U.js";import"./lua.OGbZEs3U.js";const l=Object.freeze({displayName:"reStructuredText",name:"rst",patterns:[{include:"#body"}],repository:{anchor:{match:"^\\.{2}\\s+(_[^:]+:)\\s*",name:"entity.name.tag.anchor"},block:{begin:"^(\\s*)(\\.{2}\\s+\\S+::)(.*)",beginCaptures:{2:{name:"keyword.control"},3:{name:"variable"}},end:"^(?!\\1\\s|\\s*$)",patterns:[{include:"#block-param"},{include:"#body"}]},"block-comment":{begin:"^(\\s*)\\.{2}(\\s+|$)",end:"^(?=\\S)|^\\s*$",name:"comment.block",patterns:[{begin:"^\\s{3,}(?=\\S)",name:"comment.block",while:"^\\s{3}.*|^\\s*$"}]},"block-param":{patterns:[{captures:{1:{name:"keyword.control"},2:{name:"variable.parameter"}},match:"(:param\\s+(.+?):)(?:\\s|$)"},{captures:{1:{name:"keyword.control"},2:{patterns:[{match:"\\b(0x[a-fA-F\\d]+|\\d+)\\b",name:"constant.numeric"},{include:"#inline-markup"}]}},match:"(:.+?:)(?:$|\\s+(.*))"}]},blocks:{patterns:[{include:"#domains"},{include:"#doctest"},{include:"#code-block-cpp"},{include:"#code-block-py"},{include:"#code-block-console"},{include:"#code-block-javascript"},{include:"#code-block-yaml"},{include:"#code-block-cmake"},{include:"#code-block-kconfig"},{include:"#code-block-ruby"},{include:"#code-block-dts"},{include:"#code-block"},{include:"#doctest-block"},{include:"#raw-html"},{include:"#block"},{include:"#literal-block"},{include:"#block-comment"}]},body:{patterns:[{include:"#title"},{include:"#inline-markup"},{include:"#anchor"},{include:"#line-block"},{include:"#replace-include"},{include:"#footnote"},{include:"#substitution"},{include:"#blocks"},{include:"#table"},{include:"#simple-table"},{include:"#options-list"}]},bold:{begin:`(?<=[\\s"'(\\[{<]|^)\\*{2}[^\\s*]`,end:"\\*{2}|^\\s*$",name:"markup.bold"},citation:{applyEndPatternLast:0,begin:"(?<=[\\s\"'(\\[{<]|^)`[^\\s`]",end:"`_{,2}|^\\s*$",name:"entity.name.tag"},"code-block":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)",beginCaptures:{2:{name:"keyword.control"}},patterns:[{include:"#block-param"}],while:"^\\1(?=\\s)|^\\s*$"},"code-block-cmake":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(cmake)\\s*$",beginCaptures:{2:{name:"keyword.control"},4:{name:"variable.parameter.codeblock.cmake"}},patterns:[{include:"#block-param"},{include:"source.cmake"}],while:"^\\1(?=\\s)|^\\s*$"},"code-block-console":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(console|shell|bash)\\s*$",beginCaptures:{2:{name:"keyword.control"},4:{name:"variable.parameter.codeblock.console"}},patterns:[{include:"#block-param"},{include:"source.shell"}],while:"^\\1(?=\\s)|^\\s*$"},"code-block-cpp":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(c|c\\+\\+|cpp|C|C\\+\\+|CPP|Cpp)\\s*$",beginCaptures:{2:{name:"keyword.control"},4:{name:"variable.parameter.codeblock.cpp"}},patterns:[{include:"#block-param"},{include:"source.cpp"}],while:"^\\1(?=\\s)|^\\s*$"},"code-block-dts":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(dts|DTS|devicetree)\\s*$",beginCaptures:{2:{name:"keyword.control"},4:{name:"variable.parameter.codeblock.dts"}},patterns:[{include:"#block-param"},{include:"source.dts"}],while:"^\\1(?=\\s)|^\\s*$"},"code-block-javascript":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(javascript)\\s*$",beginCaptures:{2:{name:"keyword.control"},4:{name:"variable.parameter.codeblock.js"}},patterns:[{include:"#block-param"},{include:"source.js"}],while:"^\\1(?=\\s)|^\\s*$"},"code-block-kconfig":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*([kK]config)\\s*$",beginCaptures:{2:{name:"keyword.control"},4:{name:"variable.parameter.codeblock.kconfig"}},patterns:[{include:"#block-param"},{include:"source.kconfig"}],while:"^\\1(?=\\s)|^\\s*$"},"code-block-py":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(python)\\s*$",beginCaptures:{2:{name:"keyword.control"},4:{name:"variable.parameter.codeblock.py"}},patterns:[{include:"#block-param"},{include:"source.python"}],while:"^\\1(?=\\s)|^\\s*$"},"code-block-ruby":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(ruby)\\s*$",beginCaptures:{2:{name:"keyword.control"},4:{name:"variable.parameter.codeblock.ruby"}},patterns:[{include:"#block-param"},{include:"source.ruby"}],while:"^\\1(?=\\s)|^\\s*$"},"code-block-yaml":{begin:"^(\\s*)(\\.{2}\\s+(code|code-block)::)\\s*(ya?ml)\\s*$",beginCaptures:{2:{name:"keyword.control"},4:{name:"variable.parameter.codeblock.yaml"}},patterns:[{include:"#block-param"},{include:"source.yaml"}],while:"^\\1(?=\\s)|^\\s*$"},doctest:{begin:"^(>>>)\\s*(.*)",beginCaptures:{1:{name:"keyword.control"},2:{patterns:[{include:"source.python"}]}},end:"^\\s*$"},"doctest-block":{begin:"^(\\s*)(\\.{2}\\s+doctest::)\\s*$",beginCaptures:{2:{name:"keyword.control"}},patterns:[{include:"#block-param"},{include:"source.python"}],while:"^\\1(?=\\s)|^\\s*$"},"domain-auto":{begin:"^(\\s*)(\\.{2}\\s+auto(?:class|module|exception|function|decorator|data|method|attribute|property)::)\\s*(.*)",beginCaptures:{2:{name:"keyword.control.py"},3:{patterns:[{include:"source.python"}]}},patterns:[{include:"#block-param"},{include:"#body"}],while:"^\\1(?=\\s)|^\\s*$"},"domain-cpp":{begin:"^(\\s*)(\\.{2}\\s+(?:cpp|c):(?:class|struct|function|member|var|type|enum|enum-struct|enum-class|enumerator|union|concept)::)\\s*(?:(@\\w+)|(.*))",beginCaptures:{2:{name:"keyword.control"},3:{name:"entity.name.tag"},4:{patterns:[{include:"source.cpp"}]}},patterns:[{include:"#block-param"},{include:"#body"}],while:"^\\1(?=\\s)|^\\s*$"},"domain-js":{begin:"^(\\s*)(\\.{2}\\s+js:\\w+::)\\s*(.*)",beginCaptures:{2:{name:"keyword.control"},3:{patterns:[{include:"source.js"}]}},end:"^(?!\\1[ \\t]|$)",patterns:[{include:"#block-param"},{include:"#body"}]},"domain-py":{begin:"^(\\s*)(\\.{2}\\s+py:(?:module|function|data|exception|class|attribute|property|method|staticmethod|classmethod|decorator|decoratormethod)::)\\s*(.*)",beginCaptures:{2:{name:"keyword.control"},3:{patterns:[{include:"source.python"}]}},patterns:[{include:"#block-param"},{include:"#body"}],while:"^\\1(?=\\s)|^\\s*$"},domains:{patterns:[{include:"#domain-cpp"},{include:"#domain-py"},{include:"#domain-auto"},{include:"#domain-js"}]},escaped:{match:"\\\\.",name:"constant.character.escape"},footnote:{match:"^\\s*\\.{2}\\s+\\[(?:[\\w\\.-]+|[#*]|#\\w+)\\]\\s+",name:"entity.name.tag"},"footnote-ref":{match:"\\[(?:[\\w\\.-]+|[#*])\\]_",name:"entity.name.tag"},ignore:{patterns:[{match:"'[`*]+'"},{match:"<[`*]+>"},{match:"{[`*]+}"},{match:"\\([`*]+\\)"},{match:"\\[[`*]+\\]"},{match:'"[`*]+"'}]},"inline-markup":{patterns:[{include:"#escaped"},{include:"#ignore"},{include:"#ref"},{include:"#literal"},{include:"#monospaced"},{include:"#citation"},{include:"#bold"},{include:"#italic"},{include:"#list"},{include:"#macro"},{include:"#reference"},{include:"#footnote-ref"}]},italic:{begin:`(?<=[\\s"'(\\[{<]|^)\\*[^\\s*]`,end:"\\*|^\\s*$",name:"markup.italic"},"line-block":{match:"^\\|\\s+",name:"keyword.control"},list:{match:"^\\s*(\\d+\\.|\\* -|[a-zA-Z#]\\.|[iIvVxXmMcC]+\\.|\\(\\d+\\)|\\d+\\)|[*+-])\\s+",name:"keyword.control"},literal:{captures:{1:{name:"keyword.control"},2:{name:"entity.name.tag"}},match:"(:\\S+:)(`.*?`\\\\?)"},"literal-block":{begin:"^(\\s*)(.*)(::)\\s*$",beginCaptures:{2:{patterns:[{include:"#inline-markup"}]},3:{name:"keyword.control"}},while:"^\\1(?=\\s)|^\\s*$"},macro:{match:"\\|[^\\|]+\\|",name:"entity.name.tag"},monospaced:{begin:"(?<=[\\s\"'(\\[{<]|^)``[^\\s`]",end:"``|^\\s*$",name:"string.interpolated"},"options-list":{match:"(?:(?:^|,\\s+)(?:[-+]\\w|--?[a-zA-Z][\\w-]+|/\\w+)(?:[ =](?:\\w+|<[^<>]+?>))?)+(?= |\\t|$)",name:"variable.parameter"},"raw-html":{begin:"^(\\s*)(\\.{2}\\s+raw\\s*::)\\s+(html)\\s*$",beginCaptures:{2:{name:"keyword.control"},3:{name:"variable.parameter.html"}},patterns:[{include:"#block-param"},{include:"text.html.derivative"}],while:"^\\1(?=\\s)|^\\s*$"},ref:{begin:"(:ref:)`",beginCaptures:{1:{name:"keyword.control"}},end:"`|^\\s*$",name:"entity.name.tag",patterns:[{match:"<.*?>",name:"markup.underline.link"}]},reference:{match:"[\\w-]*[a-zA-Z\\d-]__?\\b",name:"entity.name.tag"},"replace-include":{captures:{1:{name:"keyword.control"},2:{name:"entity.name.tag"},3:{name:"keyword.control"}},match:"^\\s*(\\.{2})\\s+(\\|[^\\|]+\\|)\\s+(replace::)"},"simple-table":{match:"^[=\\s]+$",name:"keyword.control.table"},substitution:{match:"^\\.{2}\\s*\\|([^|]+)\\|",name:"entity.name.tag"},table:{begin:"^\\s*\\+[=+-]+\\+\\s*$",beginCaptures:{0:{name:"keyword.control.table"}},end:"^(?![+|])",patterns:[{match:"[=+|-]",name:"keyword.control.table"}]},title:{match:"^(\\*{3,}|#{3,}|\\={3,}|~{3,}|\\+{3,}|-{3,}|`{3,}|\\^{3,}|:{3,}|\"{3,}|_{3,}|'{3,})$",name:"markup.heading"}},scopeName:"source.rst",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]});var v=[...e,...n,...c,...a,...o,...t,...r,l];export{v as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"./vue.AKvPdve9.js";import e from"./javascript.JMZ6uy5M.js";import"./html.ZVb9jHrO.js";import"./css.tuEqSfZX.js";import"./markdown.Y8p9X7h3.js";import"./pug.ieZS468c.js";import"./sass.URKSWxt9.js";import"./scss.9u5wOjnF.js";import"./stylus.sPHLw37c.js";import"./coffee.UjKhX0iS.js";import"./less.Mq8TrjER.js";import"./typescript.HpdcmTOD.js";import"./jsx.3LZ_BoLB.js";import"./tsx.7LxggtAE.js";import"./json.xL80yL3n.js";import"./jsonc.Bb1R3obU.js";import"./json5.NRuQoh_0.js";import"./yaml.zytfnWoA.js";import"./toml.p_xIKQcU.js";import"./graphql.aYTh5yPU.js";const n=Object.freeze({displayName:"Vue HTML",fileTypes:[],name:"vue-html",patterns:[{include:"source.vue#vue-interpolations"},{begin:"(<)([A-Z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"support.class.component.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<)([a-z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"entity.name.tag.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<\\?)(xml)",captures:{1:{name:"punctuation.definition.tag.html"},2:{name:"entity.name.tag.xml.html"}},end:"(\\?>)",name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:"<!--",captures:{0:{name:"punctuation.definition.comment.html"}},end:"-->",name:"comment.block.html"},{begin:"<!",captures:{0:{name:"punctuation.definition.tag.html"}},end:">",name:"meta.tag.sgml.html",patterns:[{begin:"(?i:DOCTYPE)",captures:{1:{name:"entity.name.tag.doctype.html"}},end:"(?=>)",name:"meta.tag.sgml.doctype.html",patterns:[{match:'"[^">]*"',name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:"\\[CDATA\\[",end:"]](?=>)",name:"constant.other.inline-data.html"},{match:"(\\s*)(?!--|>)\\S(\\s*)",name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:"(</?)([A-Z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:body|head|html)\\b)",captures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.structure.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.inline.any.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-zA-Z0-9:-]+)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.other.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:"<>",name:"invalid.illegal.incomplete.html"},{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}],repository:{entities:{patterns:[{captures:{1:{name:"punctuation.definition.entity.html"},3:{name:"punctuation.definition.entity.html"}},match:"(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",name:"constant.character.entity.html"},{match:"&",name:"invalid.illegal.bad-ampersand.html"}]},"string-double-quoted":{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"string-single-quoted":{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"tag-generic-attribute":{match:"(?<=[^=])\\b([a-zA-Z0-9:\\-_]+)",name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:"\\b(id)\\b\\s*(=)",captures:{1:{name:"entity.other.attribute-name.id.html"},2:{name:"punctuation.separator.key-value.html"}},end:`(?!\\G)(?<='|"|[^\\s<>/])`,name:"meta.attribute-with-value.id.html",patterns:[{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{captures:{0:{name:"meta.toc-list.id.html"}},match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"}]},"tag-stuff":{patterns:[{include:"#vue-directives"},{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#unquoted-attribute"}]},"unquoted-attribute":{match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"},"vue-directives":{begin:"(?:\\b(v-)|(:|@|#))([a-zA-Z0-9\\-_]+)(?:\\:([a-zA-Z\\-_]+))?(?:\\.([a-zA-Z\\-_]+))*\\s*(=)",captures:{1:{name:"entity.other.attribute-name.html"},2:{name:"punctuation.separator.key-value.html"},3:{name:"entity.other.attribute-name.html"},4:{name:"entity.other.attribute-name.html"},5:{name:"entity.other.attribute-name.html"},6:{name:"punctuation.separator.key-value.html"}},end:"(?<='|\")|(?=[\\s<>`])",name:"meta.directive.vue",patterns:[{begin:"`",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"`",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]}]}},scopeName:"text.html.vue-html",embeddedLangs:["vue","javascript"]});var k=[...t,...e,n];export{k as default};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import t from"./html.ZVb9jHrO.js";import n from"./markdown.Y8p9X7h3.js";import a from"./pug.ieZS468c.js";import i from"./stylus.sPHLw37c.js";import s from"./sass.URKSWxt9.js";import u from"./css.tuEqSfZX.js";import m from"./scss.9u5wOjnF.js";import r from"./less.Mq8TrjER.js";import e from"./javascript.JMZ6uy5M.js";import o from"./typescript.HpdcmTOD.js";import c from"./jsx.3LZ_BoLB.js";import l from"./tsx.7LxggtAE.js";import d from"./json.xL80yL3n.js";import g from"./jsonc.Bb1R3obU.js";import p from"./json5.NRuQoh_0.js";import b from"./yaml.zytfnWoA.js";import v from"./toml.p_xIKQcU.js";import f from"./graphql.aYTh5yPU.js";import"./coffee.UjKhX0iS.js";const h=Object.freeze({fileTypes:[],injectTo:["text.html.markdown"],injectionSelector:"L:text.html.markdown",name:"markdown-vue",patterns:[{include:"#vue-code-block"}],repository:{"vue-code-block":{begin:"(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(vue)((\\s+|:|,|\\{|\\?)[^`~]*)?$)",beginCaptures:{3:{name:"punctuation.definition.markdown"},4:{name:"fenced_code.block.language.markdown"},5:{name:"fenced_code.block.language.attributes.markdown"}},end:"(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",endCaptures:{3:{name:"punctuation.definition.markdown"}},name:"markup.fenced_code.block.markdown",patterns:[{include:"source.vue"}]}},scopeName:"markdown.vue.codeblock"});var y=[h];const C=Object.freeze({fileTypes:[],injectTo:["source.vue","text.html.markdown","text.html.derivative","text.pug"],injectionSelector:"L:meta.tag -meta.attribute -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute",name:"vue-directives",patterns:[{include:"source.vue#vue-directives"}],scopeName:"vue.directives"});var $=[C];const j=Object.freeze({fileTypes:[],injectTo:["source.vue","text.html.markdown","text.html.derivative","text.pug"],injectionSelector:"L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block",name:"vue-interpolations",patterns:[{include:"source.vue#vue-interpolations"}],scopeName:"vue.interpolations"});var x=[j];const k=Object.freeze({fileTypes:[],injectTo:["source.vue"],injectionSelector:"L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment",name:"vue-sfc-style-variable-injection",patterns:[{include:"#vue-sfc-style-variable-injection"}],repository:{"vue-sfc-style-variable-injection":{begin:"\\b(v-bind)\\s*\\(",beginCaptures:{1:{name:"entity.name.function"}},end:"\\)",name:"vue.sfc.style.variable.injection.v-bind",patterns:[{begin:`('|")`,beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"}},end:"(\\1)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"source.ts.embedded.html.vue",patterns:[{include:"source.js"}]},{include:"source.js"}]}},scopeName:"vue.sfc.style.variable.injection",embeddedLangs:["javascript"]});var z=[...e,k];const A=Object.freeze({displayName:"Vue",name:"vue",patterns:[{include:"text.html.basic#comment"},{include:"#self-closing-tag"},{begin:"(<)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html.vue"}},patterns:[{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)md\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"text.html.markdown",patterns:[{include:"text.html.markdown"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)html\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"text.html.derivative",patterns:[{include:"#html-stuff"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)pug\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"text.pug",patterns:[{include:"text.pug"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)stylus\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.stylus",patterns:[{include:"source.stylus"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)postcss\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.postcss",patterns:[{include:"source.postcss"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)sass\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.sass",patterns:[{include:"source.sass"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)css\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.css",patterns:[{include:"source.css"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)scss\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.css.scss",patterns:[{include:"source.css.scss"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)less\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.css.less",patterns:[{include:"source.css.less"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)js\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.js",patterns:[{include:"source.js"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)ts\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.ts",patterns:[{include:"source.ts"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsx\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.js.jsx",patterns:[{include:"source.js.jsx"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)tsx\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.tsx",patterns:[{include:"source.tsx"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.json",patterns:[{include:"source.json"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsonc\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.json.comments",patterns:[{include:"source.json.comments"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json5\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.json5",patterns:[{include:"source.json5"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)yaml\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.yaml",patterns:[{include:"source.yaml"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)toml\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.toml",patterns:[{include:"source.toml"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)(gql|graphql)\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.graphql",patterns:[{include:"source.graphql"}]}]},{begin:`([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)vue\\b\\2)`,beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"source.vue",patterns:[{include:"source.vue"}]}]},{begin:"(template)\\b",beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/template\\b)",name:"text.html.derivative",patterns:[{include:"#html-stuff"}]}]},{begin:"(script)\\b",beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/script\\b)",name:"source.js",patterns:[{include:"source.js"}]}]},{begin:"(style)\\b",beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/style\\b)",name:"source.css",patterns:[{include:"source.css"}]}]},{begin:"([a-zA-Z0-9:-]+)",beginCaptures:{1:{name:"entity.name.tag.$1.html.vue"}},end:"(</)(\\1)\\s*(?=>)",endCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:"(?<=>)",end:"(?=<\\/)",name:"text"}]}]}],repository:{"html-stuff":{patterns:[{include:"#template-tag"},{include:"text.html.derivative"},{include:"text.html.basic"}]},"self-closing-tag":{begin:"(<)([a-zA-Z0-9:-]+)(?=([^>]+/>))",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},end:"(/>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html.vue"}},name:"self-closing-tag",patterns:[{include:"#tag-stuff"}]},"tag-stuff":{begin:"\\G",end:"(?=/>)|(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.tag-stuff",patterns:[{include:"#vue-directives"},{include:"text.html.basic#attribute"}]},"template-tag":{patterns:[{include:"#template-tag-1"},{include:"#template-tag-2"}]},"template-tag-1":{begin:"(<)(template)\\b(>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"},3:{name:"punctuation.definition.tag.end.html.vue"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.template-tag.start",patterns:[{begin:"\\G",end:"(?=/>)|((</)(template)\\b)",endCaptures:{2:{name:"punctuation.definition.tag.begin.html.vue"},3:{name:"entity.name.tag.$3.html.vue"}},name:"meta.template-tag.end",patterns:[{include:"#html-stuff"}]}]},"template-tag-2":{begin:"(<)(template)\\b",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html.vue"},2:{name:"entity.name.tag.$2.html.vue"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.template-tag.start",patterns:[{begin:"\\G",end:"(?=/>)|((</)(template)\\b)",endCaptures:{2:{name:"punctuation.definition.tag.begin.html.vue"},3:{name:"entity.name.tag.$3.html.vue"}},name:"meta.template-tag.end",patterns:[{include:"#tag-stuff"},{include:"#html-stuff"}]}]},"vue-directives":{patterns:[{include:"#vue-directives-control"},{include:"#vue-directives-style-attr"},{include:"#vue-directives-original"},{include:"#vue-directives-generic-attr"}]},"vue-directives-control":{begin:"(v-for)|(v-if|v-else-if|v-else)",captures:{1:{name:"keyword.control.loop.vue"},2:{name:"keyword.control.conditional.vue"}},end:"(?=\\s*+[^=\\s])",name:"meta.attribute.directive.control.vue",patterns:[{include:"#vue-directives-expression"}]},"vue-directives-expression":{patterns:[{begin:"(=)\\s*('|\"|`)",beginCaptures:{1:{name:"punctuation.separator.key-value.html.vue"},2:{name:"punctuation.definition.string.begin.html.vue"}},end:"(\\2)",endCaptures:{1:{name:"punctuation.definition.string.end.html.vue"}},patterns:[{begin:"(?<=('|\"|`))",end:"(?=\\1)",name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts"}]}]},{begin:"(=)\\s*(?=[^'\"`])",beginCaptures:{1:{name:"punctuation.separator.key-value.html.vue"}},end:"(?=(\\s|>|\\/>))",patterns:[{begin:"(?=[^'\"`])",end:"(?=(\\s|>|\\/>))",name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts"}]}]}]},"vue-directives-generic-attr":{begin:"\\b(generic)\\s*(=)",captures:{1:{name:"entity.other.attribute-name.html.vue"},2:{name:"punctuation.separator.key-value.html.vue"}},end:`(?<='|")`,name:"meta.attribute.generic.vue",patterns:[{begin:`('|")`,beginCaptures:{1:{name:"punctuation.definition.string.begin.html.vue"}},comment:"https://github.com/microsoft/vscode/blob/fd4346210f59135fad81a8b8c4cea7bf5a9ca6b4/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json#L4002-L4020",end:"(\\1)",endCaptures:{1:{name:"punctuation.definition.string.end.html.vue"}},name:"meta.type.parameters.vue",patterns:[{include:"source.ts#comment"},{match:"(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(extends|in|out)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",name:"storage.modifier.ts"},{include:"source.ts#type"},{include:"source.ts#punctuation-comma"},{match:"(=)(?!>)",name:"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{begin:"(?:\\b(v-)|([:\\.])|(@)|(#))(\\[?)([\\w\\-]*)(\\]?)(?:\\.([\\w\\-]*))*",beginCaptures:{1:{name:"entity.other.attribute-name.html.vue"},2:{name:"punctuation.attribute-shorthand.bind.html.vue"},3:{name:"punctuation.attribute-shorthand.event.html.vue"},4:{name:"punctuation.attribute-shorthand.slot.html.vue"},5:{name:"punctuation.separator.key-value.html.vue"},6:{name:"entity.other.attribute-name.html.vue"},7:{name:"punctuation.separator.key-value.html.vue"},8:{name:"entity.other.attribute-name.html.vue"},9:{name:"punctuation.separator.key-value.html.vue"}},end:"(?=\\s*+[^=\\s])",endCaptures:{1:{name:"punctuation.definition.string.end.html.vue"}},name:"meta.attribute.directive.vue",patterns:[{include:"#vue-directives-expression"}]},"vue-directives-style-attr":{begin:"\\b(style)\\s*(=)",captures:{1:{name:"entity.other.attribute-name.html.vue"},2:{name:"punctuation.separator.key-value.html.vue"}},end:`(?<='|")`,name:"meta.attribute.style.vue",patterns:[{begin:`('|")`,beginCaptures:{1:{name:"punctuation.definition.string.begin.html.vue"}},comment:"Copy from source.css#rule-list-innards",end:"(\\1)",endCaptures:{1:{name:"punctuation.definition.string.end.html.vue"}},name:"source.css.embedded.html.vue",patterns:[{include:"source.css#comment-block"},{include:"source.css#escapes"},{include:"source.css#font-features"},{match:`(?x) (?<![\\w-])
|
|
2
|
-
--
|
|
3
|
-
(?:[-a-zA-Z_] | [^\\x00-\\x7F])
|
|
4
|
-
(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F]
|
|
5
|
-
|\\\\(?:[0-9a-fA-F]{1,6}|.)
|
|
6
|
-
)*`,name:"variable.css"},{begin:"(?<![-a-zA-Z])(?=[-a-zA-Z])",end:"$|(?![-a-zA-Z])",name:"meta.property-name.css",patterns:[{include:"source.css#property-names"}]},{begin:"(:)\\s*",beginCaptures:{1:{name:"punctuation.separator.key-value.css"}},comment:"Modify end to fix #199. TODO: handle ' character.",contentName:"meta.property-value.css",end:`\\s*(;)|\\s*(?='|")`,endCaptures:{1:{name:"punctuation.terminator.rule.css"}},patterns:[{include:"source.css#comment-block"},{include:"source.css#property-values"}]},{match:";",name:"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{patterns:[{begin:"(\\{\\{)",beginCaptures:{1:{name:"punctuation.definition.interpolation.begin.html.vue"}},end:"(\\}\\})",endCaptures:{1:{name:"punctuation.definition.interpolation.end.html.vue"}},name:"expression.embedded.vue",patterns:[{begin:"\\G",end:"(?=\\}\\})",name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts"}]}]}]}},scopeName:"source.vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"]});var K=[...t,...n,...a,...i,...s,...u,...m,...r,...e,...o,...c,...l,...d,...g,...p,...b,...v,...f,...y,...$,...x,...z,A];export{K as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { defineSatoriTransformer } from "../utils.mjs";
|
|
2
|
-
export default defineSatoriTransformer({
|
|
3
|
-
filter: (node) => !!node.props?.class && !node.props?.tw,
|
|
4
|
-
transform: async (node) => {
|
|
5
|
-
node.props.tw = node.props.class;
|
|
6
|
-
node.props.tw = node.props.tw.replace(/icon|inline-style/g, "");
|
|
7
|
-
}
|
|
8
|
-
});
|
|
File without changes
|