@nuxt/scripts 0.4.7 → 0.4.8
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 +13 -13
- package/dist/client/404.html +13 -13
- package/dist/client/_nuxt/{D6NljDpC.js → BigF1UXR.js} +1 -1
- package/dist/client/_nuxt/Bn0B8vkx.js +1 -0
- package/dist/client/_nuxt/BvCdDh2R.js +1 -0
- package/dist/client/_nuxt/BvlfuC5v.js +31 -0
- package/dist/client/_nuxt/{DlIksfW-.js → DMNuDhJC.js} +1 -1
- package/dist/client/_nuxt/DOHBU7tp.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/ed70e2f7-3856-4e68-bd3e-1ebb17fef5ec.json +1 -0
- package/dist/client/_nuxt/entry.8LvBfYHJ.css +1 -0
- package/dist/client/_nuxt/error-404.Dbi768NS.css +1 -0
- package/dist/client/_nuxt/error-500.C23YdqXl.css +1 -0
- package/dist/client/_nuxt/{D1scAvq1.js → jmWmhCGR.js} +1 -1
- package/dist/client/index.html +13 -13
- package/dist/module.d.mts +7 -2
- package/dist/module.d.ts +7 -2
- package/dist/module.json +2 -2
- package/dist/module.mjs +172 -1
- package/dist/registry.mjs +13 -24
- package/dist/runtime/components/ScriptGoogleMaps.vue +1 -1
- package/dist/runtime/components/ScriptVimeoPlayer.vue +3 -6
- package/dist/runtime/composables/useAnalyticsPageEvent.d.ts +1 -4
- package/dist/runtime/registry/clarity.d.ts +44 -0
- package/dist/runtime/registry/clarity.js +30 -0
- package/dist/runtime/registry/cloudflare-web-analytics.d.ts +3 -6
- package/dist/runtime/registry/cloudflare-web-analytics.js +2 -2
- package/dist/runtime/registry/fathom-analytics.d.ts +6 -12
- package/dist/runtime/registry/google-adsense.d.ts +2 -4
- package/dist/runtime/registry/google-maps.d.ts +9 -10
- package/dist/runtime/registry/hotjar.d.ts +3 -6
- package/dist/runtime/registry/intercom.d.ts +11 -20
- package/dist/runtime/registry/matomo-analytics.d.ts +5 -10
- package/dist/runtime/registry/meta-pixel.d.ts +2 -4
- package/dist/runtime/registry/npm.d.ts +5 -10
- package/dist/runtime/registry/plausible-analytics.d.ts +3 -6
- package/dist/runtime/registry/segment.d.ts +3 -6
- package/dist/runtime/registry/stripe.d.ts +2 -4
- package/dist/runtime/registry/vimeo-player.d.ts +2 -1
- package/dist/runtime/registry/x-pixel.d.ts +3 -6
- package/dist/runtime/types.d.ts +7 -7
- package/dist/runtime/utils.d.ts +3 -3
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/package.json +23 -19
- package/dist/client/_nuxt/B6ZnTe72.js +0 -1
- package/dist/client/_nuxt/BiqB0nem.js +0 -1
- package/dist/client/_nuxt/DLqnee19.js +0 -31
- package/dist/client/_nuxt/MN12aA4C.js +0 -1
- package/dist/client/_nuxt/builds/meta/61606605-2b9b-4c09-af9e-a2967178a4b4.json +0 -1
- package/dist/client/_nuxt/entry.D91GVkD7.css +0 -1
- package/dist/client/_nuxt/error-404.BRldFSII.css +0 -1
- package/dist/client/_nuxt/error-500.D8yw_IbC.css +0 -1
- package/dist/runtime/registry/google-analytics.d.ts +0 -23
- package/dist/runtime/registry/google-analytics.js +0 -38
- package/dist/runtime/registry/google-tag-manager.d.ts +0 -21
- package/dist/runtime/registry/google-tag-manager.js +0 -30
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,u as a}from"./
|
|
1
|
+
import{_ as o,u as a}from"./Bn0B8vkx.js";import{o as s,c as i,a as e,t as r,p as u,e as l}from"./BvlfuC5v.js";const c=t=>(u("data-v-7dfed6b1"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["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 n=t;return a({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;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;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--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 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(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: }'}]}),(m,x)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},w=o(f,[["__scopeId","data-v-7dfed6b1"]]);export{w as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=Object.freeze({displayName:"Move",name:"move",patterns:[{include:"#address"},{include:"#comments"},{include:"#module"},{include:"#script"},{include:"#annotation"},{begin:"\\b(while)\\b",comment:"While experiment",name:"keyword.control.while.whaaat.move",while:"[a-z]"},{include:"#comments"},{include:"#annotation"},{include:"#entry"},{include:"#public-scope"},{include:"#public"},{include:"#native"},{include:"#import"},{include:"#friend"},{include:"#const"},{include:"#struct"},{include:"#has_ability"},{include:"#enum"},{include:"#macro"},{include:"#fun"},{include:"#spec"}],repository:{"=== DEPRECATED_BELOW ===":{},abilities:{comment:"Ability",match:"\\b(store|key|drop|copy)\\b",name:"support.type.ability.move"},address:{begin:"\\b(address)\\b",beginCaptures:{1:{name:"storage.modifier.type.address.keyword.move"}},comment:"Address block",end:"(?<=})",name:"meta.address_block.move",patterns:[{include:"#comments"},{begin:"(?<=address)",comment:"Address value/const",end:"(?=[{])",name:"meta.address.definition.move",patterns:[{include:"#comments"},{include:"#address_literal"},{comment:"Named Address",match:"\\b(\\w+)\\b",name:"entity.name.type.move"}]},{include:"#module"}]},annotation:{begin:"#\\[",end:"\\]",name:"support.constant.annotation.move",patterns:[{comment:"Annotation name",match:"\\b(\\w+)\\s*(?=\\=)",name:"meta.annotation.name.move"},{begin:"=",comment:"Annotation value",end:"(?=[,\\]])",name:"meta.annotation.value.move",patterns:[{include:"#literals"}]}]},as:{comment:"Keyword as (highlighted)",match:"\\b(as)\\b",name:"keyword.control.as.move"},"as-import":{comment:"Keyword as in import statement; not highlighted",match:"\\b(as)\\b",name:"meta.import.as.move"},block:{begin:"{",comment:"Block expression or definition",end:"}",name:"meta.block.move",patterns:[{include:"#expr"}]},"block-comments":{patterns:[{begin:"/\\*[\\*!](?![\\*/])",comment:"Block documentation comment",end:"\\*/",name:"comment.block.documentation.move"},{begin:"/\\*",comment:"Block comment",end:"\\*/",name:"comment.block.move"}]},capitalized:{comment:"MyType - capitalized type name",match:"\\b([A-Z][a-zA-Z_0-9]*)\\b",name:"entity.name.type.use.move"},comments:{name:"meta.comments.move",patterns:[{include:"#doc-comments"},{include:"#line-comments"},{include:"#block-comments"}]},const:{begin:"\\b(const)\\b",beginCaptures:{1:{name:"storage.modifier.const.move"}},end:";",name:"meta.const.move",patterns:[{include:"#comments"},{include:"#primitives"},{include:"#literals"},{match:"\\b([\\w_]+)\\b",name:"constant.other.move"}]},control:{comment:"Control flow",match:"\\b(return|while|loop|if|else|break|continue|abort)\\b",name:"keyword.control.move"},"doc-comments":{begin:"///",comment:"Documentation comment",end:"$",name:"comment.block.documentation.move",patterns:[{captures:{1:{name:"markup.underline.link.move"}},comment:"Escaped member / link",match:"`(\\w+)`"}]},entry:{comment:"entry",match:"\\b(entry)\\b",name:"storage.modifier.visibility.entry.move"},enum:{begin:"\\b(enum)\\b",beginCaptures:{1:{name:"keyword.control.enum.move"}},comment:"Enum syntax",end:"(?<=})",name:"meta.enum.move",patterns:[{include:"#comments"},{include:"#escaped_identifier"},{include:"#type_param"},{comment:"Enum name (ident)",match:"\\b[A-Z][a-zA-Z_0-9]*\\b",name:"entity.name.type.enum.move"},{include:"#has"},{include:"#abilities"},{begin:"{",end:"}",name:"meta.enum.definition.move",patterns:[{include:"#comments"},{begin:"\\(",end:"\\)",name:"meta.enum.tuple.move",patterns:[{include:"#comments"},{include:"#types"}]},{begin:"{",end:"}",name:"meta.enum.struct.move",patterns:[{include:"#comments"},{include:"#escaped_identifier"},{include:"#types"}]}]}]},error_const:{match:"\\b(E[A-Z][A-Za-z_]*)\\b",name:"variable.language.error.move"},escaped_identifier:{begin:"`",comment:"Escaped variable",end:"`",name:"variable.language.escaped.move"},expr:{comment:"Aggregate Expression",name:"meta.expression.move",patterns:[{include:"#comments"},{include:"#escaped_identifier"},{include:"#expr_generic"},{include:"#error_const"},{include:"#packed_field"},{include:"#import"},{include:"#as"},{include:"#mut"},{include:"#let"},{include:"#types"},{include:"#literals"},{include:"#control"},{include:"#move_copy"},{include:"#resource_methods"},{include:"#self_access"},{include:"#module_access"},{include:"#label"},{include:"#macro_call"},{include:"#local_call"},{include:"#method_call"},{include:"#path_access"},{match:"\\$(?=[a-z])",name:"keyword.operator.macro.dollar.move"},{match:"(?<=[$])[a-z][A-Z_0-9a-z]*",name:"variable.other.meta.move"},{comment:"ALL_CONST_CAPS",match:"\\b([A-Z][A-Z_]+)\\b",name:"constant.other.move"},{comment:"CustomType",match:"\\b([A-Z][a-zA-Z_0-9]*)\\b",name:"entity.name.type.move"},{include:"#paren"},{include:"#block"}]},expr_generic:{begin:"<(?=([\\sa-z_,0-9A-Z<>]+>))",comment:"< angle brackets >",end:">",name:"meta.expression.generic.type.move",patterns:[{include:"#comments"},{include:"#types"},{include:"#capitalized"},{include:"#expr_generic"}]},friend:{begin:"\\b(friend)\\b",beginCaptures:{1:{name:"storage.modifier.type.move"}},end:";",name:"meta.friend.move",patterns:[{include:"#comments"},{include:"#address_literal"},{comment:"Name of the imported module",match:"\\b([a-zA-Z][A-Za-z_0-9]*)\\b",name:"entity.name.type.module.move"}]},fun:{patterns:[{include:"#fun_signature"},{include:"#block"}]},fun_body:{begin:"{",comment:"Function body",end:"(?<=})",name:"meta.fun_body.move",patterns:[{include:"#expr"}]},fun_call:{begin:"\\b(\\w+)\\s*(?:<[\\w\\s,]+>)?\\s*[(]",beginCaptures:{1:{name:"entity.name.function.call.move"}},comment:"Function call",end:"[)]",name:"meta.fun_call.move",patterns:[{include:"#comments"},{include:"#resource_methods"},{include:"#self_access"},{include:"#module_access"},{include:"#move_copy"},{include:"#literals"},{include:"#fun_call"},{include:"#block"},{include:"#mut"},{include:"#as"}]},fun_signature:{begin:"\\b(fun)\\b",beginCaptures:{1:{name:"storage.modifier.fun.move"}},comment:"Function signature",end:"(?=[;{])",name:"meta.fun_signature.move",patterns:[{include:"#comments"},{include:"#module_access"},{include:"#capitalized"},{include:"#types"},{include:"#mut"},{begin:"(?<=\\bfun)",comment:"Function name",end:"(?=[<(])",name:"meta.function_name.move",patterns:[{include:"#comments"},{include:"#escaped_identifier"},{match:"\\b(\\w+)\\b",name:"entity.name.function.move"}]},{include:"#type_param"},{begin:"[(]",comment:"Parentheses",end:"[)]",name:"meta.parentheses.move",patterns:[{include:"#comments"},{include:"#self_access"},{include:"#expr_generic"},{include:"#escaped_identifier"},{include:"#module_access"},{include:"#capitalized"},{include:"#types"},{include:"#mut"}]},{comment:"Keyword acquires",match:"\\b(acquires)\\b",name:"storage.modifier"}]},has:{comment:"Has Abilities",match:"\\b(has)\\b",name:"keyword.control.ability.has.move"},has_ability:{begin:"(?<=[})])\\s+(has)\\b",beginCaptures:{1:{name:"storage.modifier.type.move"}},end:";",name:"meta.has.ability.move",patterns:[{include:"#comments"},{include:"#abilities"}]},ident:{match:"\\b([a-zA-Z][A-Z_a-z0-9]*)\\b",name:"meta.identifier.move"},import:{begin:"\\b(use)\\b",beginCaptures:{1:{name:"storage.modifier.type.move"}},end:";",name:"meta.import.move",patterns:[{include:"#comments"},{include:"#use_fun"},{include:"#address_literal"},{include:"#as-import"},{comment:"Uppercase entities",match:"\\b([A-Z]\\w*)\\b",name:"entity.name.type.move"},{begin:"{",comment:"Module members",end:"}",patterns:[{include:"#comments"},{include:"#as-import"},{comment:"Uppercase entities",match:"\\b([A-Z]\\w*)\\b",name:"entity.name.type.move"}]},{comment:"Name of the imported module",match:"\\b(\\w+)\\b",name:"meta.entity.name.type.module.move"}]},label:{comment:"Label",match:"'[a-z][a-z_0-9]*",name:"string.quoted.single.label.move"},let:{comment:"Keyword let",match:"\\b(let)\\b",name:"keyword.control.move"},"line-comments":{begin:"//",comment:"Single-line comment",end:"$",name:"comment.line.double-slash.move"},literals:{comment:"Literals supported in Move",name:"meta.literal.move",patterns:[{comment:"base16 address literal",match:"@0x[A-F0-9a-f]+",name:"support.constant.address.base16.move"},{comment:"named address literal @[ident]",match:"@[a-zA-Z][a-zA-Z_0-9]*",name:"support.constant.address.name.move"},{comment:"Hex literal",match:"0x[_a-fA-F0-9]+(?:u(?:8|16|32|64|128|256))?",name:"constant.numeric.hex.move"},{comment:"Numeric literal",match:"(?<!(?:\\w|(?:(?<!\\.)\\.)))[0-9][_0-9]*(?:\\.(?!\\.)(?:[0-9][_0-9]*)?)?(?:[eE][+\\-]?[_0-9]+)?(?:[u](?:8|16|32|64|128|256))?",name:"constant.numeric.move"},{begin:'\\bb"',comment:"vector ascii bytestring literal",end:'"',name:"meta.vector.literal.ascii.move",patterns:[{comment:"character escape",match:"\\\\.",name:"constant.character.escape.move"},{comment:"Special symbol escape",match:'\\\\[nrt\\0"]',name:"constant.character.escape.move"},{comment:"HEX Escape",match:"\\\\x[a-fA-F0-9][A-Fa-f0-9]",name:"constant.character.escape.hex.move"},{comment:"ASCII Character",match:"[\\x00-\\x7F]",name:"string.quoted.double.raw.move"}]},{begin:'x"',comment:"vector hex literal",end:'"',name:"meta.vector.literal.hex.move",patterns:[{comment:"vector hex literal",match:"[A-Fa-f0-9]+",name:"constant.character.move"}]},{comment:"bool literal",match:"\\b(?:true|false)\\b",name:"constant.language.boolean.move"},{begin:"vector\\[",comment:"vector literal (macro?)",end:"\\]",name:"meta.vector.literal.macro.move",patterns:[{include:"#expr"}]}]},local_call:{comment:"call to a local / imported fun",match:"\\b([a-z][_a-z0-9]*)(?=[<\\(])",name:"entity.name.function.call.local.move"},macro:{begin:"\\b(macro)\\b",beginCaptures:{1:{name:"keyword.control.macro.move"}},comment:"macro fun [ident] {}",end:"(?<=})",name:"meta.macro.move",patterns:[{include:"#comments"},{include:"#fun"}]},macro_call:{captures:{2:{name:"support.function.macro.move"}},comment:"Macro fun call",match:"(\\b|\\.)([a-z][A-Za-z0-9_]*)!",name:"meta.macro.call"},method_call:{captures:{1:{name:"entity.name.function.call.path.move"}},comment:"<expr>.[ident]<>?() call",match:"\\.([a-z][_a-z0-9]*)(?=[<\\(])",name:"meta.path.call.move"},module:{begin:"\\b(module|spec)\\b",beginCaptures:{1:{name:"storage.modifier.type.move"}},comment:"Module definition",end:"(?<=[;}])",name:"meta.module.move",patterns:[{include:"#comments"},{begin:"(?<=(module|spec))",comment:"Module name",end:"(?=[;{])",patterns:[{include:"#comments"},{include:"#escaped_identifier"},{begin:"(?<=\\b(module|spec))",comment:"Module namespace / address",end:"(?=[(::){])",name:"constant.other.move",patterns:[{include:"#comments"},{include:"#escaped_identifier"}]},{begin:"(?<=::)",comment:"Module name",end:"(?=[\\s;{])",name:"entity.name.type.move",patterns:[{include:"#comments"},{include:"#escaped_identifier"}]}]},{begin:"{",comment:"Module scope",end:"}",name:"meta.module_scope.move",patterns:[{include:"#comments"},{include:"#annotation"},{include:"#entry"},{include:"#public-scope"},{include:"#public"},{include:"#native"},{include:"#import"},{include:"#friend"},{include:"#const"},{include:"#struct"},{include:"#has_ability"},{include:"#enum"},{include:"#macro"},{include:"#fun"},{include:"#spec"}]}]},module_access:{captures:{1:{name:"meta.entity.name.type.accessed.module.move"},2:{name:"entity.name.function.call.move"}},comment:"Use of module type or method",match:"\\b(\\w+)::(\\w+)\\b",name:"meta.module_access.move"},module_label:{begin:"^\\s*(module)\\b",comment:"Module label, inline module definition",end:";\\s*$",name:"meta.module.label.move",patterns:[{include:"#comments"},{include:"#escaped_identifier"},{begin:"(?<=\\b(module|spec))",comment:"Module namespace / address",end:"(?=[(::){])",name:"constant.other.move"},{begin:"(?<=::)",comment:"Module name",end:"(?=[\\s{])",name:"entity.name.type.move"}]},move_copy:{comment:"Keywords move and copy",match:"\\b(move|copy)\\b",name:"variable.language.move"},mut:{comment:"Mutable reference and let mut",match:"\\b(mut)\\b",name:"storage.modifier.mut.move"},native:{comment:"native",match:"\\b(native)\\b",name:"storage.modifier.visibility.native.move"},packed_field:{comment:"[ident]: ",match:"[a-z][a-z0-9_]+\\s*:\\s*(?=\\s)",name:"meta.struct.field.move"},paren:{begin:"\\(",end:"\\)",name:"meta.paren.move",patterns:[{include:"#expr"}]},path_access:{comment:"<expr>.[ident] access",match:"\\.[a-z][_a-z0-9]*\\b",name:"meta.path.access.move"},phantom:{comment:"Keyword phantom inside type parameters",match:"\\b(phantom)\\b",name:"keyword.control.phantom.move"},primitives:{comment:"Primitive types",match:"\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\b",name:"support.type.primitives.move"},public:{comment:"public",match:"\\b(public)\\b",name:"storage.modifier.visibility.public.move"},"public-scope":{begin:"(?<=\\b(public))\\s*\\(",comment:"public (friend/script/package)",end:"\\)",name:"meta.public.scoped.move",patterns:[{include:"#comments"},{match:"\\b(friend|script|package)\\b",name:"keyword.control.public.scope.move"}]},resource_methods:{comment:"Methods to work with resource",match:"\\b(borrow_global|borrow_global_mut|exists|move_from|move_to_sender|move_to)\\b",name:"support.function.typed.move"},script:{begin:"\\b(script)\\b",beginCaptures:{1:{name:"storage.modifier.script.move"}},end:"(?<=})",name:"meta.script.move",patterns:[{include:"#comments"},{begin:"{",comment:"Script scope",end:"}",name:"meta.script_scope.move",patterns:[{include:"#const"},{include:"#comments"},{include:"#import"},{include:"#fun"}]}]},self_access:{captures:{1:{name:"variable.language.self.move"},2:{name:"entity.name.function.call.move"}},comment:"Use of Self",match:"\\b(Self)::(\\w+)\\b",name:"meta.self_access.move"},spec:{begin:"\\b(spec)\\b",beginCaptures:{1:{name:"storage.modifier.spec.move"}},end:"(?<=[;}])",name:"meta.spec.move",patterns:[{comment:"Spec target",match:"\\b(module|schema|struct|fun)",name:"storage.modifier.spec.target.move"},{comment:"Spec define inline",match:"\\b(define)",name:"storage.modifier.spec.define.move"},{comment:"Target name",match:"\\b(\\w+)\\b",name:"entity.name.function.move"},{begin:"{",comment:"Spec block",end:"}",patterns:[{include:"#comments"},{include:"#spec_block"},{include:"#spec_types"},{include:"#spec_define"},{include:"#spec_keywords"},{include:"#control"},{include:"#fun_call"},{include:"#literals"},{include:"#types"},{include:"#let"}]}]},spec_block:{begin:"{",comment:"Spec block",end:"}",name:"meta.spec_block.move",patterns:[{include:"#comments"},{include:"#spec_block"},{include:"#spec_types"},{include:"#fun_call"},{include:"#literals"},{include:"#control"},{include:"#types"},{include:"#let"}]},spec_define:{begin:"\\b(define)\\b",beginCaptures:{1:{name:"keyword.control.move.spec"}},comment:"Spec define keyword",end:"(?=[;{])",name:"meta.spec_define.move",patterns:[{include:"#comments"},{include:"#spec_types"},{include:"#types"},{begin:"(?<=\\bdefine)",comment:"Function name",end:"(?=[(])",patterns:[{include:"#comments"},{match:"\\b(\\w+)\\b",name:"entity.name.function.move"}]}]},spec_keywords:{match:"\\b(global|pack|unpack|pragma|native|include|ensures|requires|invariant|apply|aborts_if|modifies)\\b",name:"keyword.control.move.spec"},spec_types:{comment:"Spec-only types",match:"\\b(range|num|vector|bool|u8|u16|u32|u64|u128|u256|address)\\b",name:"support.type.vector.move"},struct:{begin:"\\b(struct)\\b",beginCaptures:{1:{name:"storage.modifier.type.move"}},end:"(?<=[};\\)])",name:"meta.struct.move",patterns:[{include:"#comments"},{include:"#escaped_identifier"},{include:"#has"},{include:"#abilities"},{comment:"Struct name (ident)",match:"\\b[A-Z][a-zA-Z_0-9]*\\b",name:"entity.name.type.struct.move"},{begin:"\\(",comment:"Positional fields",end:"\\)",name:"meta.struct.paren.move",patterns:[{include:"#comments"},{include:"#capitalized"},{include:"#types"}]},{include:"#type_param"},{begin:"\\(",comment:"Simple struct",end:"(?<=[)])",name:"meta.struct.paren.move",patterns:[{include:"#comments"},{include:"#types"}]},{begin:"{",comment:"Struct body",end:"}",name:"meta.struct.body.move",patterns:[{include:"#comments"},{include:"#self_access"},{include:"#escaped_identifier"},{include:"#module_access"},{include:"#expr_generic"},{include:"#capitalized"},{include:"#types"}]},{include:"#has_ability"}]},struct_pack:{begin:"(?<=[A-Za-z0-9_>])\\s*{",comment:"Struct { field: value... }; identified as generic / ident followed by curly's",end:"}",name:"meta.struct.pack.move",patterns:[{include:"#comments"}]},type_param:{begin:"<",comment:"Generic type param",end:">",name:"meta.generic_param.move",patterns:[{include:"#comments"},{include:"#phantom"},{include:"#capitalized"},{include:"#module_access"},{include:"#abilities"}]},types:{comment:"Built-in types + vector",name:"meta.types.move",patterns:[{include:"#primitives"},{include:"#vector"}]},use_fun:{begin:"\\b(fun)\\b",beginCaptures:{1:{name:"storage.modifier.fun.move"}},comment:"use { fun } internals",end:"(?=;)",name:"meta.import.fun.move",patterns:[{include:"#comments"},{comment:"as keyword",match:"\\b(as)\\b",name:"keyword.control.as.move"},{comment:"Self keyword",match:"\\b(Self)\\b",name:"variable.language.self.use.fun.move"},{comment:"Function name",match:"\\b(_______[a-z][a-z_0-9]+)\\b",name:"entity.name.function.use.move"},{include:"#types"},{include:"#escaped_identifier"},{include:"#capitalized"}]},vector:{comment:"vector type",match:"\\b(vector)\\b",name:"support.type.vector.move"}},scopeName:"source.move"});var n=[e];export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"ed70e2f7-3856-4e68-bd3e-1ebb17fef5ec","timestamp":1718160936963}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"ed70e2f7-3856-4e68-bd3e-1ebb17fef5ec","timestamp":1718160936963,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--nui-c-context:125,125,125}html{background-color:#fff}html.dark{background-color:#151515;color:#fff;color-scheme:dark}::-moz-selection{background:#8884}::selection{background:#8884}.shiki .line{display:inline-block;position:relative;width:100%}.shiki.diff .line>span{filter:saturate(.75);opacity:.75}.shiki.diff .line-added,.shiki.diff .line-removed{scroll-margin:5em}.shiki.diff .line-added>span,.shiki.diff .line-removed>span{opacity:1!important;position:inherit;scroll-margin:20px;z-index:100}.shiki.diff .line-added>span{color:#218c3b!important}.shiki.diff .line-removed>span{color:#d15547!important}.shiki .line-added:after{background-color:#43885420}.shiki .line-added:after,.shiki .line-removed:after{bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.shiki .line-removed:after{background-color:#8f4c3926}::view-transition-new(root),::view-transition-old(root){animation:none;mix-blend-mode:normal}::view-transition-old(root){z-index:1}::view-transition-new(root){z-index:2147483646}.dark::view-transition-old(root){z-index:2147483646}.dark::view-transition-new(root){z-index:1}*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}:host,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;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,: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: }::backdrop{--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: }@font-face{font-display:swap;font-family:DM Mono;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmmono/v14/aFTU7PB1QTsUX8KYthSQBLyM.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Mono;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmmono/v14/aFTU7PB1QTsUX8KYthqQBA.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRR232VGM.woff2) format("woff2");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:DM Sans;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRSW32.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}.n-button-icon{font-size:1.1em;margin-left:-.2em;margin-right:.2em}.n-icon-button{align-items:center;aspect-ratio:1/1;border-radius:.25rem;display:flex;height:1.6em;justify-content:center;opacity:.5;width:1.6em}.n-button-base{align-items:center;border-color:#9ca3af33;border-radius:.25rem;border-width:1px;display:inline-flex;gap:.25rem;opacity:.8;padding:.25em 1em;touch-action:manipulation;--un-shadow:var(--un-shadow-inset) 0 1px 2px 0 var(--un-shadow-color,rgba(0,0,0,.05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);outline:2px solid transparent!important;outline-offset:2px!important}.n-icon{flex:none}.hover\:n-button-hover:hover{--un-border-opacity:1!important;border-color:rgba(var(--nui-c-context),var(--un-border-opacity))!important;--un-text-opacity:1;color:rgba(var(--nui-c-context),var(--un-text-opacity));opacity:1}.dark .n-bg-base{--un-bg-opacity:1;background-color:rgb(21 21 21/var(--un-bg-opacity))}.n-bg-base,.n-code-block{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.dark .n-code-block{--un-bg-opacity:1;background-color:rgb(18 18 18/var(--un-bg-opacity))}.n-icon-button:hover{background-color:#9ca3af0d;opacity:1}.active\:n-button-active:active{background-color:rgba(var(--nui-c-context),.05);--un-ring-width:3px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);--un-ring-color:rgba(var(--nui-c-context),.1)}.focus-visible\:n-focus-base:focus-visible{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);--un-ring-color:rgba(var(--nui-c-context),.5)}.n-transition{transition-duration:.15s;transition-duration:.2s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.fixed{position:fixed}.relative{position:relative}.-bottom-1\/2{bottom:-50%}.left-0{left:0}.right-0{right:0}.z-10{z-index:10}.z-20{z-index:20}.grid{display:grid}.mx-auto{margin-left:auto;margin-right:auto}.mb-16{margin-bottom:4rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.h-1\/2{height:50%}.h-4{height:1rem}.h-auto{height:auto}.h-full{height:100%}.h1{height:.25rem}.max-w-520px{max-width:520px}.min-h-screen{min-height:100vh}.w-4{width:1rem}.w-full{width:100%}.flex{display:flex}.flex-1{flex:1 1 0%}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.cursor-pointer{cursor:pointer}.place-content-center{place-content:center}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-2>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-bottom:calc(.5rem*var(--un-space-y-reverse));margin-top:calc(.5rem*(1 - var(--un-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-bottom:calc(.75rem*var(--un-space-y-reverse));margin-top:calc(.75rem*(1 - var(--un-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.border,[border=""]{border-width:1px}.rounded-lg{border-radius:.5rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.bg-black\/5{background-color:#0000000d}.bg-gray-100{--un-bg-opacity:1;background-color:rgb(243 244 246/var(--un-bg-opacity))}.bg-green-50{--un-bg-opacity:1;background-color:rgb(240 253 244/var(--un-bg-opacity))}.bg-red-100{--un-bg-opacity:1;background-color:rgb(254 226 226/var(--un-bg-opacity))}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.bg-yellow-100{--un-bg-opacity:1;background-color:rgb(254 249 195/var(--un-bg-opacity))}.dark .dark\:bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark .dark\:bg-white\/10{background-color:#ffffff1a}.p-8{padding:2rem}.p4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-\[2px\]{padding-bottom:2px;padding-top:2px}.py-2{padding-bottom:.5rem;padding-top:.5rem}.pt-14{padding-top:3.5rem}.text-center{text-align:center}.text-6xl{font-size:3.75rem;line-height:1}.text-8xl{font-size:6rem;line-height:1}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.dark .dark\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.text-black{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.text-gray-700{--un-text-opacity:1;color:rgb(55 65 81/var(--un-text-opacity))}.text-green-700{--un-text-opacity:1;color:rgb(21 128 61/var(--un-text-opacity))}.text-red-700{--un-text-opacity:1;color:rgb(185 28 28/var(--un-text-opacity))}.text-yellow-700{--un-text-opacity:1;color:rgb(161 98 7/var(--un-text-opacity))}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.leading-tight{line-height:1.25}.font-mono{font-family:DM Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:DM Sans,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{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-40{opacity:.4}.opacity-70{opacity:.7}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.n-disabled\:n-disabled[disabled],[disabled] .n-disabled\:n-disabled{filter:saturate(0);opacity:.6;pointer-events:none}@media (min-width:640px){.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:text-8xl{font-size:6rem;line-height:1}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}}.n-code-block-lines .shiki code .line:before{display:none}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-5dd2ea1b]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-5dd2ea1b]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-5dd2ea1b]{background-color:#ffffff4d}.gradient-border[data-v-5dd2ea1b]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-5dd2ea1b]{background-color:#1414144d}.gradient-border[data-v-5dd2ea1b]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-5dd2ea1b]: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-5dd2ea1b]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-5dd2ea1b]{position:fixed}.left-0[data-v-5dd2ea1b]{left:0}.right-0[data-v-5dd2ea1b]{right:0}.z-10[data-v-5dd2ea1b]{z-index:10}.z-20[data-v-5dd2ea1b]{z-index:20}.grid[data-v-5dd2ea1b]{display:grid}.mb-16[data-v-5dd2ea1b]{margin-bottom:4rem}.mb-8[data-v-5dd2ea1b]{margin-bottom:2rem}.max-w-520px[data-v-5dd2ea1b]{max-width:520px}.min-h-screen[data-v-5dd2ea1b]{min-height:100vh}.w-full[data-v-5dd2ea1b]{width:100%}.flex[data-v-5dd2ea1b]{display:flex}.cursor-pointer[data-v-5dd2ea1b]{cursor:pointer}.place-content-center[data-v-5dd2ea1b]{place-content:center}.items-center[data-v-5dd2ea1b]{align-items:center}.justify-center[data-v-5dd2ea1b]{justify-content:center}.overflow-hidden[data-v-5dd2ea1b]{overflow:hidden}.bg-white[data-v-5dd2ea1b]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-5dd2ea1b]{padding-left:1rem;padding-right:1rem}.px-8[data-v-5dd2ea1b]{padding-left:2rem;padding-right:2rem}.py-2[data-v-5dd2ea1b]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-5dd2ea1b]{text-align:center}.text-8xl[data-v-5dd2ea1b]{font-size:6rem;line-height:1}.text-xl[data-v-5dd2ea1b]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-5dd2ea1b]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-5dd2ea1b]{font-weight:300}.font-medium[data-v-5dd2ea1b]{font-weight:500}.leading-tight[data-v-5dd2ea1b]{line-height:1.25}.font-sans[data-v-5dd2ea1b]{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-5dd2ea1b]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-5dd2ea1b]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-5dd2ea1b]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-5dd2ea1b]{padding-left:0;padding-right:0}.sm\:px-6[data-v-5dd2ea1b]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-5dd2ea1b]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-5dd2ea1b]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-5dd2ea1b]{font-size:1.25rem;line-height:1.75rem}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.spotlight[data-v-7dfed6b1]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-7dfed6b1]{position:fixed}.-bottom-1\/2[data-v-7dfed6b1]{bottom:-50%}.left-0[data-v-7dfed6b1]{left:0}.right-0[data-v-7dfed6b1]{right:0}.grid[data-v-7dfed6b1]{display:grid}.mb-16[data-v-7dfed6b1]{margin-bottom:4rem}.mb-8[data-v-7dfed6b1]{margin-bottom:2rem}.h-1\/2[data-v-7dfed6b1]{height:50%}.max-w-520px[data-v-7dfed6b1]{max-width:520px}.min-h-screen[data-v-7dfed6b1]{min-height:100vh}.place-content-center[data-v-7dfed6b1]{place-content:center}.overflow-hidden[data-v-7dfed6b1]{overflow:hidden}.bg-white[data-v-7dfed6b1]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-7dfed6b1]{padding-left:2rem;padding-right:2rem}.text-center[data-v-7dfed6b1]{text-align:center}.text-8xl[data-v-7dfed6b1]{font-size:6rem;line-height:1}.text-xl[data-v-7dfed6b1]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-7dfed6b1]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-7dfed6b1]{font-weight:300}.font-medium[data-v-7dfed6b1]{font-weight:500}.leading-tight[data-v-7dfed6b1]{line-height:1.25}.font-sans[data-v-7dfed6b1]{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-7dfed6b1]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-7dfed6b1]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-7dfed6b1]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-7dfed6b1]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-7dfed6b1]{font-size:2.25rem;line-height:2.5rem}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as a,c as s,a as e,t as o,b as i,w as u,d as c,_ as d,p as l,e as p}from"./
|
|
1
|
+
import{o as a,c as s,a as e,t as o,b as i,w as u,d as c,_ as d,p as l,e as p}from"./BvlfuC5v.js";import{_ as h,u as b}from"./Bn0B8vkx.js";const f=t=>(l("data-v-5dd2ea1b"),t=t(),p(),t),g={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},x=f(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),m={class:"max-w-520px text-center z-20"},y=["textContent"],_=["textContent"],k={class:"w-full flex items-center justify-center"},w={__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 b({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;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;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--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 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(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: }'}]}),(z,S)=>{const r=d;return a(),s("div",g,[x,e("div",m,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:o(t.statusCode)},null,8,y),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:o(t.description)},null,8,_),e("div",k,[i(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:u(()=>[c(o(t.backHome),1)]),_:1})])])])}}},N=h(w,[["__scopeId","data-v-5dd2ea1b"]]);export{N as default};
|
package/dist/client/index.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
1
|
+
<!DOCTYPE html><html data-capo=""><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.
|
|
4
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
3
|
+
<link rel="stylesheet" href="/__nuxt-scripts/_nuxt/entry.8LvBfYHJ.css">
|
|
4
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BvlfuC5v.js">
|
|
5
5
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DXFkqnOI.js">
|
|
6
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
6
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BigF1UXR.js">
|
|
7
7
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CowR2XfX.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/COIrKlfF.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CbViG2Xw.js">
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CBPJd_fO.js">
|
|
138
138
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Dkb1Nx48.js">
|
|
139
139
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/-7WWnkdy.js">
|
|
140
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
140
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DOHBU7tp.js">
|
|
141
141
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B9CT-1u6.js">
|
|
142
142
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DBxHOdLe.js">
|
|
143
143
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DR5YgmI2.js">
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B7rNE5kf.js">
|
|
146
146
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/CrgTADc5.js">
|
|
147
147
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BWKJ1FCf.js">
|
|
148
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
148
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BvCdDh2R.js">
|
|
149
149
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Cthz8VOO.js">
|
|
150
150
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/BbJj1K1w.js">
|
|
151
151
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/HrnDn_2Q.js">
|
|
@@ -253,11 +253,11 @@
|
|
|
253
253
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/B3g-KkBK.js">
|
|
254
254
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bxkoe-BC.js">
|
|
255
255
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Br6ll-O0.js">
|
|
256
|
-
<link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-404.
|
|
257
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
258
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
259
|
-
<link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-500.
|
|
260
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/
|
|
261
|
-
<script type="module" src="/__nuxt-scripts/_nuxt/
|
|
256
|
+
<link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-404.Dbi768NS.css">
|
|
257
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/jmWmhCGR.js">
|
|
258
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/Bn0B8vkx.js">
|
|
259
|
+
<link rel="prefetch" as="style" href="/__nuxt-scripts/_nuxt/error-500.C23YdqXl.css">
|
|
260
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt-scripts/_nuxt/DMNuDhJC.js">
|
|
261
|
+
<script type="module" src="/__nuxt-scripts/_nuxt/BvlfuC5v.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"}})();
|
|
262
262
|
</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>
|
|
263
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{defaultScriptOptions:{trigger:"onNuxtReady"}}},app:{baseURL:"/__nuxt-scripts",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
263
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{"nuxt-scripts":{defaultScriptOptions:{trigger:"onNuxtReady"}}},app:{baseURL:"/__nuxt-scripts",buildId:"ed70e2f7-3856-4e68-bd3e-1ebb17fef5ec",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { NuxtConfigScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '../dist/runtime/types.js';
|
|
3
3
|
|
|
4
4
|
interface ModuleOptions {
|
|
@@ -47,6 +47,11 @@ interface ModuleHooks {
|
|
|
47
47
|
*/
|
|
48
48
|
'scripts:registry': (registry: RegistryScripts) => void | Promise<void>;
|
|
49
49
|
}
|
|
50
|
-
declare
|
|
50
|
+
declare module '@nuxt/schema' {
|
|
51
|
+
interface NuxtHooks {
|
|
52
|
+
'scripts:registry': ModuleHooks['scripts:registry'];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
51
56
|
|
|
52
57
|
export { type ModuleHooks, type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
import { NuxtConfigScriptRegistry, NuxtUseScriptOptions, NuxtUseScriptInput, RegistryScripts } from '../dist/runtime/types.js';
|
|
3
3
|
|
|
4
4
|
interface ModuleOptions {
|
|
@@ -47,6 +47,11 @@ interface ModuleHooks {
|
|
|
47
47
|
*/
|
|
48
48
|
'scripts:registry': (registry: RegistryScripts) => void | Promise<void>;
|
|
49
49
|
}
|
|
50
|
-
declare
|
|
50
|
+
declare module '@nuxt/schema' {
|
|
51
|
+
interface NuxtHooks {
|
|
52
|
+
'scripts:registry': ModuleHooks['scripts:registry'];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
51
56
|
|
|
52
57
|
export { type ModuleHooks, type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useNuxt, useLogger, addDevServerHandler, createResolver, addTemplate, tryUseNuxt, logger as logger$1, defineNuxtModule, addImportsDir, addComponentsDir,
|
|
1
|
+
import { useNuxt, useLogger, addDevServerHandler, createResolver, addTemplate, tryUseNuxt, logger as logger$1, addImports, defineNuxtModule, addImportsDir, addComponentsDir, addPluginTemplate, addBuildPlugin, hasNuxtModule } from '@nuxt/kit';
|
|
2
2
|
import { resolvePackageJSON, readPackageJSON } from 'pkg-types';
|
|
3
3
|
import { lt } from 'semver';
|
|
4
4
|
import { resolvePath } from 'mlly';
|
|
@@ -19,6 +19,8 @@ import { createStorage } from 'unstorage';
|
|
|
19
19
|
import fsDriver from 'unstorage/drivers/fs-lite';
|
|
20
20
|
import { isCI, provider } from 'std-env';
|
|
21
21
|
import { registry } from './registry.mjs';
|
|
22
|
+
import { GooglaAnalyticsData, GoogleAnalytics, GoogleTagManagerData, GoogleTagManager } from 'third-party-capital';
|
|
23
|
+
import { genTypeImport, genImport } from 'knitwork';
|
|
22
24
|
|
|
23
25
|
const DEVTOOLS_UI_ROUTE = "/__nuxt-scripts";
|
|
24
26
|
const DEVTOOLS_UI_LOCAL_PORT = 3030;
|
|
@@ -355,6 +357,173 @@ function installNuxtModule(name, options) {
|
|
|
355
357
|
}, { rootDir: nuxt.options.rootDir, searchPaths: nuxt.options.modulesDir, ...options });
|
|
356
358
|
}
|
|
357
359
|
|
|
360
|
+
function getTpcScriptContent(input) {
|
|
361
|
+
const nuxt = useNuxt();
|
|
362
|
+
if (!input.data.scripts)
|
|
363
|
+
throw new Error("input.data has no scripts !");
|
|
364
|
+
const mainScript = input.data.scripts?.find(({ key }) => key === input.tpcKey);
|
|
365
|
+
if (!mainScript)
|
|
366
|
+
throw new Error(`no main script found for ${input.tpcKey} in third-party-capital`);
|
|
367
|
+
const imports = /* @__PURE__ */ new Set([
|
|
368
|
+
"import { withQuery } from 'ufo'",
|
|
369
|
+
"import { useRegistryScript } from '#nuxt-scripts-utils'",
|
|
370
|
+
"import type { RegistryScriptInput } from '#nuxt-scripts'"
|
|
371
|
+
]);
|
|
372
|
+
const chunks = [];
|
|
373
|
+
const functionBody = [];
|
|
374
|
+
const hasParams = mainScript.params?.length;
|
|
375
|
+
if (input.tpcTypeImport) {
|
|
376
|
+
imports.add(genTypeImport("third-party-capital", [input.tpcTypeImport]));
|
|
377
|
+
}
|
|
378
|
+
if (hasParams) {
|
|
379
|
+
imports.add(genImport("#nuxt-scripts-validator", ["object", "any"]));
|
|
380
|
+
chunks.push(`const OptionSchema = object({${mainScript.params?.map((p) => `${p}: any()`)}})`);
|
|
381
|
+
}
|
|
382
|
+
if (input.augmentWindowTypes) {
|
|
383
|
+
chunks.push(`
|
|
384
|
+
declare global {
|
|
385
|
+
interface Window extends ${input.tpcTypeImport} {}
|
|
386
|
+
}`);
|
|
387
|
+
}
|
|
388
|
+
const clientInitCode = [];
|
|
389
|
+
const runtimeHead = {
|
|
390
|
+
script: [],
|
|
391
|
+
link: input.data.stylesheets?.map((s) => ({ ref: "stylesheet", href: s })) || []
|
|
392
|
+
};
|
|
393
|
+
if (input.data.stylesheets) {
|
|
394
|
+
runtimeHead.link.push(...input.data.stylesheets.map((s) => ({ href: s, ref: "stylesheet" })));
|
|
395
|
+
}
|
|
396
|
+
for (const script of input.data.scripts) {
|
|
397
|
+
if ("code" in script)
|
|
398
|
+
clientInitCode.push(replaceTokenToRuntime(script.code));
|
|
399
|
+
if (script === mainScript)
|
|
400
|
+
continue;
|
|
401
|
+
if ("url" in script && script.url) {
|
|
402
|
+
if (!runtimeHead.script)
|
|
403
|
+
runtimeHead.script = [];
|
|
404
|
+
runtimeHead.script.push({
|
|
405
|
+
src: script.url,
|
|
406
|
+
async: true
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
if (runtimeHead.script.length || runtimeHead.link.length) {
|
|
411
|
+
functionBody.push(`useHead(${JSON.stringify(runtimeHead)})`);
|
|
412
|
+
}
|
|
413
|
+
chunks.push(`export type Input = RegistryScriptInput${hasParams ? "<typeof OptionSchema>" : ""}`);
|
|
414
|
+
chunks.push(`
|
|
415
|
+
export function ${input.scriptFunctionName}<T extends ${input.tpcTypeImport}>(_options?: Input) {
|
|
416
|
+
${functionBody.join("\n")}
|
|
417
|
+
return useRegistryScript${hasParams ? "<T, typeof OptionSchema>" : ""}('${input.tpcKey}', options => ({
|
|
418
|
+
scriptInput: {
|
|
419
|
+
src: withQuery('${mainScript.url}', {${mainScript.params?.map((p) => `${p}: options?.${p}`)}})
|
|
420
|
+
},
|
|
421
|
+
${nuxt.options.dev ? "schema: OptionSchema," : ""}
|
|
422
|
+
scriptOptions: {
|
|
423
|
+
use: ${input.use.toString()},
|
|
424
|
+
stub: import.meta.client ? undefined : ${input.stub.toString()}
|
|
425
|
+
},
|
|
426
|
+
${clientInitCode.length ? `clientInit: import.meta.server ? undefined : () => {${clientInitCode.join("\n")}},` : ""}
|
|
427
|
+
}), _options)
|
|
428
|
+
}`);
|
|
429
|
+
chunks.unshift(...Array.from(imports));
|
|
430
|
+
return chunks.join("\n");
|
|
431
|
+
}
|
|
432
|
+
function replaceTokenToRuntime(code) {
|
|
433
|
+
return code.split(";").map((c) => c.replaceAll(/'?\{\{(.*?)\}\}'?/g, "options.$1")).join(";");
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
function googleAnalitycsRegistry() {
|
|
437
|
+
const nuxt = useNuxt();
|
|
438
|
+
const { dst } = addTemplate({
|
|
439
|
+
getContents() {
|
|
440
|
+
return getTpcScriptContent({
|
|
441
|
+
data: GooglaAnalyticsData,
|
|
442
|
+
scriptFunctionName: "useScriptGoogleAnalytics",
|
|
443
|
+
use: () => {
|
|
444
|
+
return { dataLayer: window.dataLayer, gtag: window.gtag };
|
|
445
|
+
},
|
|
446
|
+
// allow dataLayer to be accessed on the server
|
|
447
|
+
stub: ({ fn }) => {
|
|
448
|
+
return fn === "dataLayer" ? [] : void 0;
|
|
449
|
+
},
|
|
450
|
+
tpcKey: "gtag",
|
|
451
|
+
tpcTypeImport: "GoogleAnalyticsApi",
|
|
452
|
+
augmentWindowTypes: true
|
|
453
|
+
});
|
|
454
|
+
},
|
|
455
|
+
filename: "nuxt-scripts/tpc/google-analytics.ts"
|
|
456
|
+
});
|
|
457
|
+
addImports({
|
|
458
|
+
from: dst,
|
|
459
|
+
name: "useScriptGoogleAnalytics"
|
|
460
|
+
});
|
|
461
|
+
const registry = {
|
|
462
|
+
label: "Google Tag Manager",
|
|
463
|
+
category: "tracking",
|
|
464
|
+
logo: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="#8AB4F8" d="m150.262 245.516l-44.437-43.331l95.433-97.454l46.007 45.091z"/><path fill="#4285F4" d="M150.45 53.938L106.176 8.731L9.36 104.629c-12.48 12.48-12.48 32.713 0 45.207l95.36 95.986l45.09-42.182l-72.654-76.407z"/><path fill="#8AB4F8" d="m246.625 105.37l-96-96c-12.494-12.494-32.756-12.494-45.25 0c-12.495 12.495-12.495 32.757 0 45.252l96 96c12.494 12.494 32.756 12.494 45.25 0c12.495-12.495 12.495-32.757 0-45.251"/><circle cx="127.265" cy="224.731" r="31.273" fill="#246FDB"/></svg>`,
|
|
465
|
+
import: {
|
|
466
|
+
name: "useScriptGoogleAnalytics",
|
|
467
|
+
from: dst
|
|
468
|
+
},
|
|
469
|
+
scriptBundling(options) {
|
|
470
|
+
const data = GoogleAnalytics(options);
|
|
471
|
+
const mainScript = data.scripts?.find(({ key }) => key === "gtag");
|
|
472
|
+
if (mainScript && "url" in mainScript && mainScript.url)
|
|
473
|
+
return mainScript.url;
|
|
474
|
+
return false;
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
nuxt.hook("scripts:registry", (scripts) => {
|
|
478
|
+
scripts.push(registry);
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
function googleTagManagerRegistry() {
|
|
483
|
+
const nuxt = useNuxt();
|
|
484
|
+
const { dst } = addTemplate({
|
|
485
|
+
getContents() {
|
|
486
|
+
return getTpcScriptContent({
|
|
487
|
+
data: GoogleTagManagerData,
|
|
488
|
+
scriptFunctionName: "useScriptGoogleTagManager",
|
|
489
|
+
use: () => {
|
|
490
|
+
return { dataLayer: window.dataLayer, google_tag_manager: window.google_tag_manager };
|
|
491
|
+
},
|
|
492
|
+
stub: ({ fn }) => {
|
|
493
|
+
return fn === "dataLayer" ? [] : void 0;
|
|
494
|
+
},
|
|
495
|
+
tpcKey: "gtm",
|
|
496
|
+
tpcTypeImport: "GoogleTagManagerApi",
|
|
497
|
+
augmentWindowTypes: true
|
|
498
|
+
});
|
|
499
|
+
},
|
|
500
|
+
filename: "nuxt-scripts/tpc/google-tag-manager.ts"
|
|
501
|
+
});
|
|
502
|
+
addImports({
|
|
503
|
+
from: dst,
|
|
504
|
+
name: "useScriptGoogleTagManager"
|
|
505
|
+
});
|
|
506
|
+
const registry = {
|
|
507
|
+
label: "Google Tag Manager",
|
|
508
|
+
category: "tracking",
|
|
509
|
+
logo: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="#8AB4F8" d="m150.262 245.516l-44.437-43.331l95.433-97.454l46.007 45.091z"/><path fill="#4285F4" d="M150.45 53.938L106.176 8.731L9.36 104.629c-12.48 12.48-12.48 32.713 0 45.207l95.36 95.986l45.09-42.182l-72.654-76.407z"/><path fill="#8AB4F8" d="m246.625 105.37l-96-96c-12.494-12.494-32.756-12.494-45.25 0c-12.495 12.495-12.495 32.757 0 45.252l96 96c12.494 12.494 32.756 12.494 45.25 0c12.495-12.495 12.495-32.757 0-45.251"/><circle cx="127.265" cy="224.731" r="31.273" fill="#246FDB"/></svg>`,
|
|
510
|
+
import: {
|
|
511
|
+
name: "useScriptGoogleTagManager",
|
|
512
|
+
from: dst
|
|
513
|
+
},
|
|
514
|
+
scriptBundling(options) {
|
|
515
|
+
const data = GoogleTagManager(options);
|
|
516
|
+
const mainScript = data.scripts?.find(({ key }) => key === "gtm");
|
|
517
|
+
if (mainScript && "url" in mainScript && mainScript.url)
|
|
518
|
+
return mainScript.url;
|
|
519
|
+
return false;
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
nuxt.hook("scripts:registry", (scripts) => {
|
|
523
|
+
scripts.push(registry);
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
|
|
358
527
|
const module = defineNuxtModule({
|
|
359
528
|
meta: {
|
|
360
529
|
name: "@nuxt/scripts",
|
|
@@ -401,6 +570,8 @@ const module = defineNuxtModule({
|
|
|
401
570
|
path: resolve("./runtime/components")
|
|
402
571
|
});
|
|
403
572
|
const scripts = registry(resolve);
|
|
573
|
+
googleAnalitycsRegistry();
|
|
574
|
+
googleTagManagerRegistry();
|
|
404
575
|
nuxt.hooks.hook("modules:done", async () => {
|
|
405
576
|
const registryScripts = [...scripts];
|
|
406
577
|
await nuxt.hooks.callHook("scripts:registry", registryScripts);
|
package/dist/registry.mjs
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { joinURL, withQuery, withBase } from 'ufo';
|
|
2
2
|
|
|
3
3
|
const registry = (resolve) => {
|
|
4
4
|
resolve = resolve || ((s) => s);
|
|
5
5
|
return [
|
|
6
|
-
// analytics
|
|
7
|
-
{
|
|
8
|
-
label: "Google Analytics",
|
|
9
|
-
category: "analytics",
|
|
10
|
-
logo: `<svg xmlns="http://www.w3.org/2000/svg" width="28.85" height="32" viewBox="0 0 256 284"><path fill="#F9AB00" d="M256.003 247.933a35.224 35.224 0 0 1-39.376 35.161c-18.044-2.67-31.266-18.371-30.826-36.606V36.845C185.365 18.591 198.62 2.881 216.687.24a35.221 35.221 0 0 1 39.316 35.16z"/><path fill="#E37400" d="M35.101 213.193c19.386 0 35.101 15.716 35.101 35.101c0 19.386-15.715 35.101-35.101 35.101S0 267.68 0 248.295c0-19.386 15.715-35.102 35.101-35.102m92.358-106.387c-19.477 1.068-34.59 17.406-34.137 36.908v94.285c0 25.588 11.259 41.122 27.755 44.433a35.161 35.161 0 0 0 42.146-34.56V142.089a35.222 35.222 0 0 0-35.764-35.282"/></svg>`,
|
|
11
|
-
scriptBundling: (options) => withQuery("https://www.googletagmanager.com/gtag/js", {
|
|
12
|
-
id: options?.id
|
|
13
|
-
}),
|
|
14
|
-
import: {
|
|
15
|
-
name: "useScriptGoogleAnalytics",
|
|
16
|
-
from: resolve("./runtime/registry/google-analytics")
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
6
|
{
|
|
20
7
|
label: "Plausible Analytics",
|
|
21
8
|
category: "analytics",
|
|
@@ -61,16 +48,6 @@ const registry = (resolve) => {
|
|
|
61
48
|
from: resolve("./runtime/registry/matomo-analytics")
|
|
62
49
|
}
|
|
63
50
|
},
|
|
64
|
-
// tracking
|
|
65
|
-
{
|
|
66
|
-
label: "Google Tag Manager",
|
|
67
|
-
category: "tracking",
|
|
68
|
-
logo: `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path fill="#8AB4F8" d="m150.262 245.516l-44.437-43.331l95.433-97.454l46.007 45.091z"/><path fill="#4285F4" d="M150.45 53.938L106.176 8.731L9.36 104.629c-12.48 12.48-12.48 32.713 0 45.207l95.36 95.986l45.09-42.182l-72.654-76.407z"/><path fill="#8AB4F8" d="m246.625 105.37l-96-96c-12.494-12.494-32.756-12.494-45.25 0c-12.495 12.495-12.495 32.757 0 45.252l96 96c12.494 12.494 32.756 12.494 45.25 0c12.495-12.495 12.495-32.757 0-45.251"/><circle cx="127.265" cy="224.731" r="31.273" fill="#246FDB"/></svg>`,
|
|
69
|
-
import: {
|
|
70
|
-
name: "useScriptGoogleTagManager",
|
|
71
|
-
from: resolve("./runtime/registry/google-tag-manager")
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
51
|
{
|
|
75
52
|
label: "Segment",
|
|
76
53
|
scriptBundling: (options) => {
|
|
@@ -154,6 +131,18 @@ const registry = (resolve) => {
|
|
|
154
131
|
from: resolve("./runtime/registry/hotjar")
|
|
155
132
|
}
|
|
156
133
|
},
|
|
134
|
+
{
|
|
135
|
+
label: "Clarity",
|
|
136
|
+
scriptBundling(options) {
|
|
137
|
+
return `https://www.clarity.ms/tag/${options?.id}`;
|
|
138
|
+
},
|
|
139
|
+
logo: `https://store-images.s-microsoft.com/image/apps.29332.512b1d3d-80ec-4aec-83bb-411008d2f7cd.76371b6f-9386-463f-bfb0-b75cffb86a4f.bd99f4b1-b18e-4380-aa79-93768763c90d.png`,
|
|
140
|
+
category: "marketing",
|
|
141
|
+
import: {
|
|
142
|
+
name: "useScriptClarity",
|
|
143
|
+
from: resolve("./runtime/registry/clarity")
|
|
144
|
+
}
|
|
145
|
+
},
|
|
157
146
|
// payments
|
|
158
147
|
{
|
|
159
148
|
label: "Stripe",
|
|
@@ -144,7 +144,7 @@ onMounted(() => {
|
|
|
144
144
|
})
|
|
145
145
|
// create the map
|
|
146
146
|
$script.then(async (instance) => {
|
|
147
|
-
const maps = await instance.maps
|
|
147
|
+
const maps = await instance.maps as any as typeof google.maps // some weird type issue here
|
|
148
148
|
const _map = new maps.Map(mapEl.value!, options.value)
|
|
149
149
|
const placesService = new maps.places.PlacesService(_map)
|
|
150
150
|
|
|
@@ -12,7 +12,7 @@ const props = withDefaults(defineProps<{
|
|
|
12
12
|
rootAttrs?: HTMLAttributes
|
|
13
13
|
aboveTheFold?: boolean
|
|
14
14
|
// copied from @types/vimeo__player
|
|
15
|
-
id
|
|
15
|
+
id?: number | undefined
|
|
16
16
|
url?: string | undefined
|
|
17
17
|
autopause?: boolean | undefined
|
|
18
18
|
autoplay?: boolean | undefined
|
|
@@ -51,7 +51,7 @@ const emits = defineEmits<TEmits>()
|
|
|
51
51
|
|
|
52
52
|
type EventMap<E extends keyof Vimeo.EventMap> = [event: Vimeo.EventMap[E], player: Vimeo]
|
|
53
53
|
|
|
54
|
-
// eslint-disable-next-line
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
55
55
|
type TEmits = {
|
|
56
56
|
play: EventMap<'play'>
|
|
57
57
|
playing: EventMap<'playing'>
|
|
@@ -169,10 +169,7 @@ defineExpose({
|
|
|
169
169
|
onMounted(() => {
|
|
170
170
|
$script.then(async ({ Vimeo }) => {
|
|
171
171
|
// filter props for false values
|
|
172
|
-
player = new Vimeo.Player(elVimeo.value,
|
|
173
|
-
...props,
|
|
174
|
-
url: encodeURI(`https://vimeo.com/${props.id}`),
|
|
175
|
-
})
|
|
172
|
+
player = new Vimeo.Player(elVimeo.value, props)
|
|
176
173
|
if (clickTriggered) {
|
|
177
174
|
player!.play()
|
|
178
175
|
clickTriggered = false
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import type { TrackedPage } from '#nuxt-scripts';
|
|
2
|
-
export declare function useAnalyticsPageEvent(onChange?: (payload: TrackedPage) => void): import("#imports").Ref<
|
|
3
|
-
title?: string | undefined;
|
|
4
|
-
path: string;
|
|
5
|
-
}>;
|
|
2
|
+
export declare function useAnalyticsPageEvent(onChange?: (payload: TrackedPage) => void): import("#imports").Ref<TrackedPage>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { RegistryScriptInput } from '#nuxt-scripts';
|
|
2
|
+
/**
|
|
3
|
+
* <script type="text/javascript">
|
|
4
|
+
* (function(c,l,a,r,i,t,y){
|
|
5
|
+
* c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
|
|
6
|
+
* t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
|
|
7
|
+
* y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
|
|
8
|
+
* })(window, document, "clarity", "script", "mpy5c6k7xi");
|
|
9
|
+
* </script>
|
|
10
|
+
*/
|
|
11
|
+
type ClarityFunctions = ((fn: 'start', options: {
|
|
12
|
+
content: boolean;
|
|
13
|
+
cookies: string[];
|
|
14
|
+
dob: number;
|
|
15
|
+
expire: number;
|
|
16
|
+
projectId: string;
|
|
17
|
+
upload: string;
|
|
18
|
+
}) => void) & ((fn: 'identify', id: string, session?: string, page?: string, userHint?: string) => Promise<{
|
|
19
|
+
id: string;
|
|
20
|
+
session: string;
|
|
21
|
+
page: string;
|
|
22
|
+
userHint: string;
|
|
23
|
+
}>) & ((fn: 'consent') => void) & ((fn: 'set', key: any, value: any) => void) & ((fn: 'event', value: any) => void) & ((fn: 'upgrade', upgradeReason: any) => void) & ((fn: string, ...args: any[]) => void);
|
|
24
|
+
export interface ClarityApi {
|
|
25
|
+
clarity: ClarityFunctions & {
|
|
26
|
+
q: any[];
|
|
27
|
+
v: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
declare global {
|
|
31
|
+
interface Window extends ClarityApi {
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export declare const ClarityOptions: import("valibot").ObjectSchema<{
|
|
35
|
+
/**
|
|
36
|
+
* The Clarity token.
|
|
37
|
+
*/
|
|
38
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 10, undefined>]>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
export type ClarityInput = RegistryScriptInput<typeof ClarityOptions>;
|
|
41
|
+
export declare function useScriptClarity<T extends ClarityApi>(_options?: ClarityInput): T & {
|
|
42
|
+
$script: Promise<T> & import("@unhead/vue").VueScriptInstance<T>;
|
|
43
|
+
};
|
|
44
|
+
export {};
|