@nuxt/devtools 0.7.6 → 0.8.1
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/README.md +1 -1
- package/dist/chunks/module-main.mjs +185 -6171
- package/dist/chunks/vscode.mjs +4 -5
- package/dist/client/200.html +37 -2
- package/dist/client/404.html +37 -2
- package/dist/client/__blank/index.html +37 -2
- package/dist/client/_nuxt/{Badge.f2e9b29c.js → Badge.2520e67e.js} +1 -1
- package/dist/client/_nuxt/{CodeDiff.vue.9b0b0885.js → CodeDiff.vue.978c6a6f.js} +2 -2
- package/dist/client/_nuxt/{ComposableItem.vue.3f961e9e.js → ComposableItem.vue.2d866a7f.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaButton.vue.a6df5cb8.js → DataSchemaButton.vue.900aabf0.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaDrawer.be265d1e.js → DataSchemaDrawer.01ce7a66.js} +100 -100
- package/dist/client/_nuxt/{DrawerRight.vue.92472251.js → DrawerRight.vue.5715b906.js} +1 -1
- package/dist/client/_nuxt/{DurationDisplay.vue.ebef3eee.js → DurationDisplay.vue.700f989f.js} +1 -1
- package/dist/client/_nuxt/FilepathItem.vue.6f5b0e95.js +1 -0
- package/dist/client/_nuxt/{HelpFab.vue.4d768974.js → HelpFab.vue.8daa9789.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.c2e514b2.js → LaunchPage.vue.7c46fca6.js} +1 -1
- package/dist/client/_nuxt/{NCheckbox.vue.78fd8d82.js → NCheckbox.vue.e0da702b.js} +1 -1
- package/dist/client/_nuxt/{NCodeBlock.vue.c7ed33b1.js → NCodeBlock.vue.070d4546.js} +1 -1
- package/dist/client/_nuxt/{NDropdown.vue.c7f63cd6.js → NDropdown.vue.13a95889.js} +1 -1
- package/dist/client/_nuxt/{NIconTitle.vue.2f7c2128.js → NIconTitle.vue.1a740209.js} +1 -1
- package/dist/client/_nuxt/{NLink.vue.3fcc5a37.js → NLink.vue.4d6f9b4a.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.e4405095.js → NMarkdown.vue.ac2cc78f.js} +1 -1
- package/dist/client/_nuxt/{NSectionBlock.9c411590.js → NSectionBlock.9ba1ed51.js} +1 -1
- package/dist/client/_nuxt/NSelect.vue.50512422.js +1 -0
- package/dist/client/_nuxt/NSelectTabs.vue.f9f19824.js +1 -0
- package/dist/client/_nuxt/{NSwitch.vue.defcd586.js → NSwitch.vue.687752dc.js} +1 -1
- package/dist/client/_nuxt/{NTip.vue.04791b31.js → NTip.vue.e10afe8f.js} +1 -1
- package/dist/client/_nuxt/{Navbar.vue.3fbf7ca0.js → Navbar.vue.6532550c.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.01c203b9.js → StateEditor.vue.f97aa771.js} +1 -1
- package/dist/client/_nuxt/{__blank.3dddd973.js → __blank.5a331261.js} +1 -1
- package/dist/client/_nuxt/{analyze-build.3db956f4.js → analyze-build.72962dac.js} +1 -1
- package/dist/client/_nuxt/assets.44d4e864.js +16 -0
- package/dist/client/_nuxt/{client.d5aff798.js → client.20a78c8d.js} +1 -1
- package/dist/client/_nuxt/{components.e360f866.js → components.19031b9b.js} +32 -32
- package/dist/client/_nuxt/css.5abce139.js +501 -0
- package/dist/client/_nuxt/{custom-_name_.95236ea5.js → custom-_name_.72163621.js} +1 -1
- package/dist/client/_nuxt/{default.8f859e18.js → default.7fafc9ad.js} +1 -1
- package/dist/client/_nuxt/diff.22e0b108.js +1 -0
- package/dist/client/_nuxt/entry.a2a7b315.css +1 -0
- package/dist/client/_nuxt/entry.ecba488a.js +27 -0
- package/dist/client/_nuxt/error-404.6a1d031f.js +1 -0
- package/dist/client/_nuxt/error-404.82ac0ec5.css +1 -0
- package/dist/client/_nuxt/{error-500.3f0ba72e.js → error-500.6ecf4027.js} +1 -1
- package/dist/client/_nuxt/error-500.ff959f66.css +1 -0
- package/dist/client/_nuxt/{full.778b4958.js → full.70864884.js} +1 -1
- package/dist/client/_nuxt/{hooks.22b55b1c.js → hooks.8f58bab5.js} +1 -1
- package/dist/client/_nuxt/html.66e44e78.js +74 -0
- package/dist/client/_nuxt/imports.e2b0659c.js +1 -0
- package/dist/client/_nuxt/{index.622264a3.js → index.0580e715.js} +1 -1
- package/dist/client/_nuxt/{index.76729ecb.js → index.a42dc69d.js} +1 -1
- package/dist/client/_nuxt/javascript.ddb4c460.js +699 -0
- package/dist/client/_nuxt/json-editor-vue.daaf9bf6.js +130 -0
- package/dist/client/_nuxt/json.709f1c4d.js +25 -0
- package/dist/client/_nuxt/{middleware.f7a35d95.js → middleware.74529e65.js} +1 -1
- package/dist/client/_nuxt/{modules.15421639.js → modules.33fc5088.js} +2 -2
- package/dist/client/_nuxt/{none.3d88124b.js → none.8eb9bb52.js} +1 -1
- package/dist/client/_nuxt/onig.0c57a370.js +1 -0
- package/dist/client/_nuxt/{open-graph.73aa4a70.js → open-graph.17155ec0.js} +2 -2
- package/dist/client/_nuxt/overview.d7fae067.js +1 -0
- package/dist/client/_nuxt/{pages.7e22d9e3.js → pages.547750e8.js} +1 -1
- package/dist/client/_nuxt/{payload.cc8ba563.js → payload.8e277da6.js} +1 -1
- package/dist/client/_nuxt/{plugins.b4d83e48.js → plugins.555a2eb4.js} +1 -1
- package/dist/client/_nuxt/runtime-configs.949fefd1.js +1 -0
- package/dist/client/_nuxt/server-routes.e6b60f13.js +9 -0
- package/dist/client/_nuxt/settings.8eec4b34.js +1 -0
- package/dist/client/_nuxt/shellscript.3d8bff4d.js +4 -0
- package/dist/client/_nuxt/{state-components.c65acb0d.js → state-components.58a8ab6e.js} +1 -1
- package/dist/client/_nuxt/{state-modules.e0b57d1b.js → state-modules.b446bb25.js} +1 -1
- package/dist/client/_nuxt/{storage-options.f095012b.js → storage-options.bdca1e26.js} +1 -1
- package/dist/client/_nuxt/{storage.81e195cf.js → storage.2e03df22.js} +1 -1
- package/dist/client/_nuxt/{terminals.57b44373.js → terminals.d42a6ee5.js} +1 -1
- package/dist/client/_nuxt/timeline.bac8e997.js +57 -0
- package/dist/client/_nuxt/typescript.3ef79501.js +666 -0
- package/dist/client/_nuxt/unocss-runtime.dc09e3b2.js +2 -0
- package/dist/client/_nuxt/{virtual-files.02aedd29.js → virtual-files.56c1d2cb.js} +1 -1
- package/dist/client/_nuxt/vitesse-dark.ab479e3d.js +1 -0
- package/dist/client/_nuxt/vitesse-light.696edcfd.js +1 -0
- package/dist/client/_nuxt/vue-html.b80b464f.js +1 -0
- package/dist/client/_nuxt/vue.5b4e1de3.js +1844 -0
- package/dist/client/_nuxt/yaml.b29e536f.js +200 -0
- package/dist/client/index.html +37 -2
- package/dist/client/modules/analyze-build/index.html +37 -2
- package/dist/client/modules/assets/index.html +37 -2
- package/dist/client/modules/components/index.html +37 -2
- package/dist/client/modules/hooks/index.html +37 -2
- package/dist/client/modules/imports/index.html +37 -2
- package/dist/client/modules/middleware/index.html +37 -2
- package/dist/client/modules/modules/index.html +37 -2
- package/dist/client/modules/open-graph/index.html +37 -2
- package/dist/client/modules/overview/index.html +37 -2
- package/dist/client/modules/pages/index.html +37 -2
- package/dist/client/modules/payload/index.html +37 -2
- package/dist/client/modules/plugins/index.html +37 -2
- package/dist/client/modules/runtime-configs/index.html +37 -2
- package/dist/client/modules/server-routes/index.html +37 -2
- package/dist/client/modules/storage/index.html +37 -2
- package/dist/client/modules/terminals/index.html +37 -2
- package/dist/client/modules/timeline/index.html +37 -2
- package/dist/client/modules/virtual-files/index.html +37 -2
- package/dist/client/settings/index.html +37 -2
- package/dist/{global-ea55645c.d.ts → global-2a48a9e5.d.ts} +5 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/view/FrameBox.vue +1 -1
- package/dist/runtime/plugins/view/Main.vue +8 -3
- package/dist/runtime/plugins/view/client.mjs +72 -45
- package/dist/runtime/use-nuxt-devtools.d.ts +8 -0
- package/dist/runtime/use-nuxt-devtools.mjs +23 -0
- package/dist/types.d.ts +1 -1
- package/package.json +35 -37
- package/dist/client/_nuxt/FilepathItem.vue.a967b383.js +0 -1
- package/dist/client/_nuxt/NSelect.vue.7a8edc85.js +0 -1
- package/dist/client/_nuxt/assets.634c950e.js +0 -16
- package/dist/client/_nuxt/entry.2ee3a83f.css +0 -1
- package/dist/client/_nuxt/entry.b81bf245.js +0 -21
- package/dist/client/_nuxt/error-404.50ed5273.js +0 -1
- package/dist/client/_nuxt/error-404.91003ceb.css +0 -1
- package/dist/client/_nuxt/error-500.7e02f53c.css +0 -1
- package/dist/client/_nuxt/imports.2a0fb129.js +0 -1
- package/dist/client/_nuxt/json-editor-vue.58ea58a4.js +0 -137
- package/dist/client/_nuxt/overview.0aabd2ca.js +0 -1
- package/dist/client/_nuxt/runtime-configs.15955414.js +0 -1
- package/dist/client/_nuxt/server-routes.10f98ec2.js +0 -9
- package/dist/client/_nuxt/settings.b2b35d44.js +0 -1
- package/dist/client/_nuxt/timeline.e3f428d4.js +0 -57
- package/dist/client/_nuxt/unocss-runtime.2f2f07ae.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as S,o,h as M,j as u,a5 as te,m as a,p as x,
|
|
1
|
+
import{d as S,o,h as M,j as u,a5 as te,m as a,p as x,aQ as oe,aR as ne,ar as ae,a as C,aS as se,e as re,a6 as V,r as R,f as e,k as t,n as I,E as O,t as h,F as T,i as d,v as $,ak as z,C as ie,a3 as B,aT as G,aU as ce,aV as le,b as de,aW as pe,aX as me,aY as ue,aZ as U,au as ge,a9 as he,l as _e,aa as fe,H as j,U as ve,_ as be}from"./entry.ecba488a.js";import{_ as we}from"./Navbar.vue.6532550c.js";import{_ as xe}from"./NLink.vue.4d6f9b4a.js";import{_ as H}from"./NSectionBlock.9ba1ed51.js";import{_ as ye}from"./NCodeBlock.vue.070d4546.js";import{_ as ke}from"./HelpFab.vue.8daa9789.js";import"./NIconTitle.vue.1a740209.js";import"./client.20a78c8d.js";const $e={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},J=S({__name:"NTextExternalLink",props:{link:{}},setup(b){return(n,c)=>(o(),M(ae(n.link?xe:"div"),oe(ne(n.link?{href:n.link,target:"_blank",rel:"noopener noreferrer"}:{})),{default:u(()=>[te(n.$slots,"default"),n.link?(o(),a("div",$e)):x("",!0)]),_:3},16))}}),K=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"recommended",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"recommended",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"recommended",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"recommended",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],Te={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},Ce=["onClick"],Se=t("div",{border:"b base","flex-auto":""},null,-1),Ne={key:0,"x-divider":""},Me={key:1,"x-divider":""},Oe={flex:"~ gap-1 items-center",px4:"",py2:""},Ae=t("div",{"i-carbon-warning":"","text-orange":""},null,-1),Re={"w-full":"",p2:"",op75:""},Ie={key:1,m4:"",flex:"~ col gap-2"},Be={flex:"~ gap-1 wrap items-center"},Ee={key:1},Le={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},De=S({__name:"OpenGraphMissingTabs",props:{tags:{},matchedRouteFilepath:{}},setup(b){const n=b,c=C(()=>K.filter(s=>!n.tags?.some(p=>p.name===s.name))),l=C(()=>{let s={};const p={};c.value.forEach(g=>{g.seoMeta?Object.assign(p,g.seoMeta):s=se(s,g.head)});const v=[];if(Object.keys(p).length){const g=JSON.stringify(p,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");v.push(`useSeoMeta(${g})`)}if(Object.keys(s).length){const g=JSON.stringify(s,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");v.push(`useHead(${g})`)}return v.join(`
|
|
2
2
|
|
|
3
|
-
`)}),m=re(),y=V(),k=["Missing Tags","Code Snippet"],_=R(k[0]);return(s,p)=>{const v=J,g=z,N=ie,A=ye,E=H;return e(c).length?(o(),M(E,{key:0,text:"Missing Tags",description:`${e(c).length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:u(()=>[t("div",Te,[(o(),a(T,null,I(k,(r,i)=>t("button",{key:i,px4:"",py2:"",border:"r t base",hover:"bg-active",class:O(r===e(_)?"":"border-b"),onClick:f=>_.value=r},[t("div",{class:O(r===e(_)?"":"op30"),capitalize:""},h(r),3)],10,Ce)),64)),Se]),e(_)===k[0]?(o(),M(g,{key:0,grid:"~ cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:u(()=>[(o(!0),a(T,null,I(e(c),(r,i)=>(o(),a(T,{key:i},[i?(o(),a("div",Ne)):x("",!0),i?(o(),a("div",Me)):x("",!0),t("div",Oe,[Ae,d(v,{op50:"",link:r.docs,n:"orange"},{default:u(()=>[$(h(r.name),1)]),_:2},1032,["link"])]),t("div",Re,h(r.description),1)],64))),128))]),_:1})):(o(),a("div",Ie,[t("p",Be,[d(N,{icon:"carbon-copy",n:"xs","px-2":"",onClick:p[0]||(p[0]=r=>e(m)(e(l)))},{default:u(()=>[$(" Copy ")]),_:1}),$(" the following code snippet and paste it into your "),s.matchedRouteFilepath?(o(),M(N,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:p[1]||(p[1]=r=>e(y)(s.matchedRouteFilepath))},{default:u(()=>[$(" page component ")]),_:1})):(o(),a("span",Ee,"page component")),$(" to full fill the missing tags. ")]),d(g,{relative:"","n-code-block":""},{default:u(()=>[d(A,{code:e(l),lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),t("div",Le,[d(N,{icon:"carbon-copy",onClick:p[2]||(p[2]=r=>e(m)(e(l)))},{default:u(()=>[$(" Copy ")]),_:1})])]),_:1})]))]),_:1},8,["description"])):x("",!0)}}}),Fe={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},Pe={class:"break-words border border-base px-[12px] py-[10px] antialiased"},je={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},Ue={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},Ve={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},ze={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},Ge=S({__name:"SocialFacebook",props:{card:{}},setup(b){return(n,c)=>(o(),a("div",Fe,[t("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(n.card.image)})`})},null,4),t("div",Pe,[t("div",je,h(n.card.url),1),t("div",Ue,[t("div",Ve,h(n.card.title),1),t("div",ze,h(n.card.description),1)])])]))}}),He={class:"max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1",style:{"font-family":"TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"}},Je={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},Ke={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},qe={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},We={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},Qe=S({__name:"SocialTwitter",props:{tags:{}},setup(b){const n=b,c=C(()=>G(n.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),l=C(()=>c.value.image?n.tags.find(m=>m.tag==="meta"&&m.name==="twitter:card")?.value||"summary_large_image":"summary");return(m,y)=>(o(),a("div",He,[t("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",e(l)==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[e(l)==="summary_large_image"?(o(),a("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(e(c).image)})`})},null,4)):(o(),a("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(e(c).image)})`})},null,4)),t("div",Je,[t("div",Ke,h(e(c).url),1),t("div",qe,h(e(c).title),1),t("div",We,h(e(c).description),1)])],2)]))}}),Xe={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] shadow-md bg-base"},Ye={class:"break-words p-[10px] antialiased"},Ze={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},et={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},tt={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},ot=S({__name:"SocialLinkedin",props:{card:{}},setup(b){return(n,c)=>(o(),a("div",Xe,[t("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(n.card.image)})`})},null,4),t("div",Ye,[t("div",Ze,[t("div",et,h(n.card.title),1),t("div",tt,h(n.card.url),1)])])]))}}),nt={"h-full":"","w-520":"",flex:"~ col"},at={flex:"~ wrap","w-full":"","flex-none":""},st=["onClick"],rt=t("div",{border:"b base","flex-auto":""},null,-1),it={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},ct={key:0},lt={key:1},dt={key:2},pt=S({__name:"SocialPreviewGroup",props:{tags:{}},setup(b){const n=b,c=["twitter","facebook","linkedin"],l=R(c[0]),m=C(()=>G(n.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return(y,k)=>{const _=Ge,s=Qe,p=ot;return o(),a("div",nt,[t("div",at,[(o(),a(T,null,I(c,(v,g)=>t("button",{key:g,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(v===e(l)?"":"border-b"),onClick:N=>l.value=v},[t("div",{class:O(v===e(l)?"":"op30"),capitalize:""},h(v),3)],10,st)),64)),rt]),t("div",it,[e(l)==="facebook"?(o(),a("div",ct,[d(_,{card:e(m)},null,8,["card"])])):e(l)==="twitter"?(o(),a("div",lt,[d(s,{tags:y.tags},null,8,["tags"])])):e(l)==="linkedin"?(o(),a("div",dt,[d(p,{card:e(m)},null,8,["card"])])):x("",!0)])])}}}),mt={class:"markdown-body"},ut=ce('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6),gt=[ut],ht={__name:"open-graph",setup(b,{expose:n}){return n({frontmatter:{}}),(l,m)=>(o(),a("div",mt,gt))}},_t={flex:"~","h-full":"","w-full":"","of-hidden":""},ft={"h-full":"","flex-auto":"","of-auto":""},vt={"flex-none":"",flex:"~ gap2 items-center"},bt={flex:"~ col"},wt={key:0,"x-divider":""},xt={key:1,"x-divider":""},yt={mr2:"",px4:"",py2:""},At=S({__name:"open-graph",setup(b){const n=R(0),c=le(),l=de(async()=>(n.value,(await c.value?.resolveTags()).map(i=>{const f=i.props||{};return i.tag==="htmlAttrs"&&f.lang?{tag:"html",name:"lang",value:f.lang}:f.charset?{tag:"meta",name:"charset",value:f.charset}:{tag:i.tag,name:f.property??f.name??f.rel??i.tag,value:f.content??f.href??i.textContent??JSON.stringify(f)}})),[]),m=R(!0);function y(){n.value+=1}const k=pe(),_=me(),s=R(""),p=ue(),v=V();async function g(){s.value!==_.value.path&&k.value.push(s.value||"/")}const N=C(()=>s.value===_.value.path?[]:k.value.resolve(s.value||"/").matched),A=C(()=>{const r=p.value.find(i=>i.path===_.value?.matched?.[0]?.path);return r?.file||r?.meta?.file});function E(r){return K.find(i=>i.name===r.name)?.docs}return U(_).toBeTruthy().then(r=>{s.value=r.path}),U(k).toBeTruthy().then(r=>{r.afterEach(()=>{ge(()=>{s.value=_.value.path,setTimeout(y,200),setTimeout(y,800)})})}),(r,i)=>{const f=ve,L=be,q=we,j=J,W=z,Q=H,X=De,Y=pt,Z=ht,ee=ke,D=he("tooltip");return o(),a(T,null,[t("div",_t,[t("div",ft,[d(q,null,{search:u(()=>[d(f,{modelValue:e(s),"onUpdate:modelValue":i[0]||(i[0]=w=>_e(s)?s.value=w:null),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:O(["px-5 py-2",e(_)?.path===e(s)?"":e(N).length?"text-green":"text-orange"]),onKeydown:fe(g,["enter"])},null,8,["modelValue","class","onKeydown"])]),actions:u(()=>[t("div",vt,[e(A)?P((o(),M(L,{key:0,"text-lg":"",icon:"carbon:launch",title:"Open file in editor",onClick:i[1]||(i[1]=w=>e(v)(e(A)))},null,512)),[[D,"Open file in editor"]]):x("",!0),P(d(L,{"text-lg":"",icon:"carbon:reset",title:"Refresh Data",onClick:y},null,512),[[D,"Refresh Data"]]),P(d(L,{"text-lg":"",icon:e(m)?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:i[2]||(i[2]=w=>m.value=!e(m))},null,8,["icon"]),[[D,"Toggle Preview"]])])]),_:1}),t("div",bt,[d(Q,{text:"Tags",icon:"carbon:tag-group"},{default:u(()=>[d(W,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:u(()=>[(o(!0),a(T,null,I(e(l),(w,F)=>(o(),a(T,{key:F},[F?(o(),a("div",wt)):x("",!0),F?(o(),a("div",xt)):x("",!0),t("div",yt,[d(j,{op50:"",link:E(w),n:"primary"},{default:u(()=>[$(h(w.name),1)]),_:2},1032,["link"])]),d(j,{link:w.value.match(/^https?:\/\//)?w.value:void 0,"w-full":"",p2:"","font-mono":"",n:"primary"},{default:u(()=>[$(h(w.value),1)]),_:2},1032,["link"])],64))),128))]),_:1})]),_:1}),d(X,{tags:e(l),"matched-route-filepath":e(A)},null,8,["tags","matched-route-filepath"])])]),e(m)&&e(l)?.length?(o(),M(Y,{key:0,tags:e(l),border:"l base","w-540px":"","flex-none":""},null,8,["tags"])):x("",!0)]),d(ee,null,{default:u(()=>[d(Z)]),_:1})],64)}}});export{At as default};
|
|
3
|
+
`)}),m=re(),y=V(),k=["Missing Tags","Code Snippet"],_=R(k[0]);return(s,p)=>{const v=J,g=z,N=ie,A=ye,E=H;return e(c).length?(o(),M(E,{key:0,text:"Missing Tags",description:`${e(c).length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:u(()=>[t("div",Te,[(o(),a(T,null,I(k,(r,i)=>t("button",{key:i,px4:"",py2:"",border:"r t base",hover:"bg-active",class:O(r===e(_)?"":"border-b"),onClick:f=>_.value=r},[t("div",{class:O(r===e(_)?"":"op30"),capitalize:""},h(r),3)],10,Ce)),64)),Se]),e(_)===k[0]?(o(),M(g,{key:0,grid:"~ cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:u(()=>[(o(!0),a(T,null,I(e(c),(r,i)=>(o(),a(T,{key:i},[i?(o(),a("div",Ne)):x("",!0),i?(o(),a("div",Me)):x("",!0),t("div",Oe,[Ae,d(v,{op50:"",link:r.docs,n:"orange"},{default:u(()=>[$(h(r.name),1)]),_:2},1032,["link"])]),t("div",Re,h(r.description),1)],64))),128))]),_:1})):(o(),a("div",Ie,[t("p",Be,[d(N,{icon:"carbon-copy",n:"xs","px-2":"",onClick:p[0]||(p[0]=r=>e(m)(e(l)))},{default:u(()=>[$(" Copy ")]),_:1}),$(" the following code snippet and paste it into your "),s.matchedRouteFilepath?(o(),M(N,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:p[1]||(p[1]=r=>e(y)(s.matchedRouteFilepath))},{default:u(()=>[$(" page component ")]),_:1})):(o(),a("span",Ee,"page component")),$(" to full fill the missing tags. ")]),d(g,{relative:"","n-code-block":""},{default:u(()=>[d(A,{code:e(l),lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),t("div",Le,[d(N,{icon:"carbon-copy",onClick:p[2]||(p[2]=r=>e(m)(e(l)))},{default:u(()=>[$(" Copy ")]),_:1})])]),_:1})]))]),_:1},8,["description"])):x("",!0)}}}),Fe={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},je={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Pe={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},Ue={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},Ve={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},ze={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},Ge=S({__name:"SocialFacebook",props:{card:{}},setup(b){return(n,c)=>(o(),a("div",Fe,[t("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(n.card.image)})`})},null,4),t("div",je,[t("div",Pe,h(n.card.url),1),t("div",Ue,[t("div",Ve,h(n.card.title),1),t("div",ze,h(n.card.description),1)])])]))}}),He={class:"max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1",style:{"font-family":"TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"}},Je={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},Ke={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},qe={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},We={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},Ye=S({__name:"SocialTwitter",props:{tags:{}},setup(b){const n=b,c=C(()=>G(n.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),l=C(()=>c.value.image?n.tags.find(m=>m.tag==="meta"&&m.name==="twitter:card")?.value||"summary_large_image":"summary");return(m,y)=>(o(),a("div",He,[t("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",e(l)==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[e(l)==="summary_large_image"?(o(),a("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(e(c).image)})`})},null,4)):(o(),a("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(e(c).image)})`})},null,4)),t("div",Je,[t("div",Ke,h(e(c).url),1),t("div",qe,h(e(c).title),1),t("div",We,h(e(c).description),1)])],2)]))}}),Qe={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] shadow-md bg-base"},Xe={class:"break-words p-[10px] antialiased"},Ze={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},et={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},tt={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},ot=S({__name:"SocialLinkedin",props:{card:{}},setup(b){return(n,c)=>(o(),a("div",Qe,[t("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:B({backgroundImage:`url(${JSON.stringify(n.card.image)})`})},null,4),t("div",Xe,[t("div",Ze,[t("div",et,h(n.card.title),1),t("div",tt,h(n.card.url),1)])])]))}}),nt={"h-full":"","w-520":"",flex:"~ col"},at={flex:"~ wrap","w-full":"","flex-none":""},st=["onClick"],rt=t("div",{border:"b base","flex-auto":""},null,-1),it={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},ct={key:0},lt={key:1},dt={key:2},pt=S({__name:"SocialPreviewGroup",props:{tags:{}},setup(b){const n=b,c=["twitter","facebook","linkedin"],l=R(c[0]),m=C(()=>G(n.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return(y,k)=>{const _=Ge,s=Ye,p=ot;return o(),a("div",nt,[t("div",at,[(o(),a(T,null,I(c,(v,g)=>t("button",{key:g,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(v===e(l)?"":"border-b"),onClick:N=>l.value=v},[t("div",{class:O(v===e(l)?"":"op30"),capitalize:""},h(v),3)],10,st)),64)),rt]),t("div",it,[e(l)==="facebook"?(o(),a("div",ct,[d(_,{card:e(m)},null,8,["card"])])):e(l)==="twitter"?(o(),a("div",lt,[d(s,{tags:y.tags},null,8,["tags"])])):e(l)==="linkedin"?(o(),a("div",dt,[d(p,{card:e(m)},null,8,["card"])])):x("",!0)])])}}}),mt={class:"markdown-body"},ut=ce('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6),gt=[ut],ht={__name:"open-graph",setup(b,{expose:n}){return n({frontmatter:{}}),(l,m)=>(o(),a("div",mt,gt))}},_t={flex:"~","h-full":"","w-full":"","of-hidden":""},ft={"h-full":"","flex-auto":"","of-auto":""},vt={"flex-none":"",flex:"~ gap2 items-center"},bt={flex:"~ col"},wt={key:0,"x-divider":""},xt={key:1,"x-divider":""},yt={mr2:"",px4:"",py2:""},At=S({__name:"open-graph",setup(b){const n=R(0),c=le(),l=de(async()=>(n.value,(await c.value?.resolveTags()).map(i=>{const f=i.props||{};return i.tag==="htmlAttrs"&&f.lang?{tag:"html",name:"lang",value:f.lang}:f.charset?{tag:"meta",name:"charset",value:f.charset}:{tag:i.tag,name:f.property??f.name??f.rel??i.tag,value:f.content??f.href??i.textContent??JSON.stringify(f)}})),[]),m=R(!0);function y(){n.value+=1}const k=pe(),_=me(),s=R(""),p=ue(),v=V();async function g(){s.value!==_.value.path&&k.value.push(s.value||"/")}const N=C(()=>s.value===_.value.path?[]:k.value.resolve(s.value||"/").matched),A=C(()=>{const r=p.value.find(i=>i.path===_.value?.matched?.[0]?.path);return r?.file||r?.meta?.file});function E(r){return K.find(i=>i.name===r.name)?.docs}return U(_).toBeTruthy().then(r=>{s.value=r.path}),U(k).toBeTruthy().then(r=>{r.afterEach(()=>{ge(()=>{s.value=_.value.path,setTimeout(y,200),setTimeout(y,800)})})}),(r,i)=>{const f=ve,L=be,q=we,P=J,W=z,Y=H,Q=De,X=pt,Z=ht,ee=ke,D=he("tooltip");return o(),a(T,null,[t("div",_t,[t("div",ft,[d(q,null,{search:u(()=>[d(f,{modelValue:e(s),"onUpdate:modelValue":i[0]||(i[0]=w=>_e(s)?s.value=w:null),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:O(["px-5 py-2",e(_)?.path===e(s)?"":e(N).length?"text-green":"text-orange"]),onKeydown:fe(g,["enter"])},null,8,["modelValue","class","onKeydown"])]),actions:u(()=>[t("div",vt,[e(A)?j((o(),M(L,{key:0,"text-lg":"",icon:"carbon:launch",title:"Open file in editor",onClick:i[1]||(i[1]=w=>e(v)(e(A)))},null,512)),[[D,"Open file in editor"]]):x("",!0),j(d(L,{"text-lg":"",icon:"carbon:reset",title:"Refresh Data",onClick:y},null,512),[[D,"Refresh Data"]]),j(d(L,{"text-lg":"",icon:e(m)?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:i[2]||(i[2]=w=>m.value=!e(m))},null,8,["icon"]),[[D,"Toggle Preview"]])])]),_:1}),t("div",bt,[d(Y,{text:"Tags",icon:"carbon:tag-group"},{default:u(()=>[d(W,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:u(()=>[(o(!0),a(T,null,I(e(l),(w,F)=>(o(),a(T,{key:F},[F?(o(),a("div",wt)):x("",!0),F?(o(),a("div",xt)):x("",!0),t("div",yt,[d(P,{op50:"",link:E(w),n:"primary"},{default:u(()=>[$(h(w.name),1)]),_:2},1032,["link"])]),d(P,{link:w.value.match(/^https?:\/\//)?w.value:void 0,"w-full":"",p2:"","font-mono":"",n:"primary"},{default:u(()=>[$(h(w.value),1)]),_:2},1032,["link"])],64))),128))]),_:1})]),_:1}),d(Q,{tags:e(l),"matched-route-filepath":e(A)},null,8,["tags","matched-route-filepath"])])]),e(m)&&e(l)?.length?(o(),M(X,{key:0,tags:e(l),border:"l base","w-540px":"","flex-none":""},null,8,["tags"])):x("",!0)]),d(ee,null,{default:u(()=>[d(Z)]),_:1})],64)}}});export{At as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as L,aq as R,a7 as $,aE as A,a_ as M,a$ as T,N as E,a as w,h as p,j as o,A as O,o as s,f as e,m as l,k as t,i,t as d,p as c,F as m,b0 as x,b1 as P,v as n,B as F,D as W,x as G,C as H}from"./entry.ecba488a.js";import{_ as K}from"./Badge.2520e67e.js";import{u as q,_ as U}from"./state-modules.b446bb25.js";import{_ as z}from"./NTip.vue.e10afe8f.js";import{u as J}from"./state-components.58a8ab6e.js";import"./NCodeBlock.vue.070d4546.js";import"./client.20a78c8d.js";import"./NCheckbox.vue.e0da702b.js";const Q="0.8.1",X={key:0},Y={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p5:"",px5:"","md:px20":""},Z=t("div",{"flex-auto":""},null,-1),tt={flex:"~ col","mt-5":"","items-center":"","md:mt-20":""},et={flex:"~","mt--10":"","items-center":"","justify-center":""},ot={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1 wrap"},st=t("span",{op40:""}," Nuxt DevTools ",-1),nt={op40:""},it={flex:"~ gap2 wrap"},at={p4:"","theme-card-green":"",flex:"~ col auto"},lt=t("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),dt={key:0,p4:"","theme-card-green":"",flex:"~ col auto"},ct=t("div",{"logos-vue":"","text-3xl":""},null,-1),rt=t("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1),ut=t("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),_t=t("div",{"carbon-function":"","text-3xl":""},null,-1),pt=t("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1),mt=t("div",{"carbon-plug":"","text-3xl":""},null,-1),ht={key:5,"pointer-events-none":"","min-w-40":"",p4:"","theme-card-lime":"",flex:"~ auto gap-6"},xt=t("div",{"i-carbon-time-plot":"","flex-none":"","text-3xl":""},null,-1),ft={grid:"~ cols-[auto_auto] gap-x-5 items-center"},vt=t("div",{"text-sm":""}," SSR to full load ",-1),gt={"text-right":""},kt=t("div",{"text-sm":""}," Page load ",-1),bt={"text-right":""},wt=t("div",{"text-sm":""}," Navigation ",-1),yt={"text-right":""},Ct=t("div",{"text-sm":""}," HMR ",-1),St={"text-right":""},Dt={flex:"~ col gap2"},Nt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},Bt=t("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[t("div",{"i-carbon-star":""}),n(" Star on GitHub ")],-1),It=t("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[t("div",{"i-carbon-data-enrichment":""}),n(" Ideas & Suggestions ")],-1),Vt=t("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[t("div",{"i-carbon-plan":""}),n(" Project Roadmap ")],-1),jt=t("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[t("div",{"i-carbon-debug":""}),n(" Bug Reports ")],-1),Lt=t("div",{"i-carbon-settings-adjust":""},null,-1),Rt=t("div",{"flex-auto":""},null,-1),$t={flex:"col gap-2",mxa:"",hidden:"","w-100":"","text-sm":"",op50:"","md:flex":""},At={flex:"~ gap-1","items-center":""},Mt=t("span",null,"+",-1),Tt=t("span",null,"+",-1),Et=t("div",{"flex-auto":""},null,-1),Ot={flex:"~ gap-1","items-center":""},Pt=t("span",null,"+",-1),Ft=t("span",null,"+",-1),Wt=t("span",null,"+",-1),Gt=t("span",null,"+",-1),Ht=t("div",{"flex-auto":""},null,-1),Kt=t("div",null,"Toggle DevTools",-1),oe=L({__name:"overview",setup(qt){const f=R(),_=$(),y=J(),v=A(),C=q(),S=M(),g=T(),D=E();function N(){F.value=!0,D.push("/")}const k=w(()=>f.value?.nuxt.vueApp.version),a=w(()=>f.value?.metrics.loading());return(r,Ut)=>{const B=W,I=K,b=U,h=G,V=z,u=H,j=O;return s(),p(j,{"h-screen":"","w-full":"",flex:""},{default:o(()=>[e(_)?(s(),l("div",Y,[Z,t("div",tt,[t("div",et,[i(B,{"h-14":"","md:h-18":""}),t("button",{"mr--16":"","mt--6":"",onClick:N},[i(I,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),t("div",ot,[st,t("code",nt,"v"+d(e(Q)),1),i(b,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",it,[t("div",at,[lt,i(b,{"package-name":"nuxt",options:{dev:!0}})]),e(k)?(s(),l("div",dt,[ct,t("code",null,"v"+d(e(k)),1)])):c("",!0),e(_)?(s(),l(m,{key:1},[e(_)&&e(_).pages&&e(f)?(s(),p(h,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:o(()=>[rt,t("div",null,d(e(S).length)+" pages",1)]),_:1})):c("",!0),e(_)?(s(),p(h,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:o(()=>[ut,t("div",null,d(e(y).length)+" components",1)]),_:1})):c("",!0),e(_)&&e(v)?(s(),p(h,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:o(()=>[_t,t("div",null,d(e(v).imports.length)+" imports",1)]),_:1})):c("",!0),e(_)?(s(),p(h,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:o(()=>[pt,t("div",null,d(e(C).length)+" modules",1)]),_:1})):c("",!0),e(_)?(s(),p(h,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:o(()=>[mt,t("div",null,d(e(_).plugins.length)+" plugins",1)]),_:1})):c("",!0),e(a)?(s(),l("div",ht,[xt,t("div",ft,[e(a).ssrStart?(s(),l(m,{key:0},[vt,t("div",gt,d(("formatDuration"in r?r.formatDuration:e(x))(e(a).appLoad-e(a).ssrStart)),1)],64)):c("",!0),kt,t("div",bt,d(("formatDuration"in r?r.formatDuration:e(x))(e(a).appLoad-e(a).appInit)),1),wt,t("div",yt,d(("formatDuration"in r?r.formatDuration:e(x))(e(a).pageEnd-e(a).pageStart)),1),e(a).hmrStart?(s(),l(m,{key:1},[Ct,t("div",St,d(("formatDuration"in r?r.formatDuration:e(x))(e(a).hmrEnd-e(a).hmrStart)),1)],64)):c("",!0)])])):c("",!0)],64)):c("",!0)]),t("div",Dt,[("showConnectionWarning"in r?r.showConnectionWarning:e(P))?(s(),p(V,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:o(()=>[n(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):c("",!0)]),t("div",Nt,[Bt,It,Vt,jt,i(h,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:o(()=>[Lt,n(" Settings ")]),_:1})]),Rt,t("div",$t,[t("div",At,[e(g)?(s(),l(m,{key:0},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" ⌘ Cmd ")]),_:1}),Mt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" K ")]),_:1})],64)):(s(),l(m,{key:1},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" Ctrl ")]),_:1}),Tt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" K ")]),_:1})],64)),Et,n(" Open Command Palette ")]),t("div",Ot,[e(g)?(s(),l(m,{key:0},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" ⇧ Shift ")]),_:1}),Pt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" ⌥ Option ")]),_:1}),Ft,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)):(s(),l(m,{key:1},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" Shift ")]),_:1}),Wt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" Alt ")]),_:1}),Gt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)),Ht,Kt])])])):(s(),l("div",X," Loading... "))]),_:1})}}});export{oe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as I,r as A,a as R,al as O,f as t,o,m as s,k as e,t as $,h as v,j as k,
|
|
1
|
+
import{d as I,r as A,a as R,al as O,f as t,o,m as s,k as e,t as $,h as v,j as k,b7 as W,F as _,n as B,p as y,i as p,v as P,E,U as M,C as J,a6 as q,b8 as D,aW as H,aX as X,a7 as Y,ah as Z,aY as G,aZ as L,au as Q,l as ee,aa as te,J as oe,K as ne}from"./entry.ecba488a.js";import{_ as S}from"./Badge.2520e67e.js";import{_ as F}from"./FilepathItem.vue.6f5b0e95.js";import{_ as ae}from"./NSectionBlock.9ba1ed51.js";import{_ as se}from"./LaunchPage.vue.7c46fca6.js";import{_ as re}from"./HelpFab.vue.8daa9789.js";import"./NIconTitle.vue.1a740209.js";import"./NMarkdown.vue.ac2cc78f.js";import"./client.20a78c8d.js";const le={block:"","cursor-pointer":""},ie={p2:""},ue=["onSubmit"],ce=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),de={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},pe={key:1},he=I({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:d}){const i=V,h=A([]),m=R(()=>{const u=b(i.route.path);return h.value=Array.from({length:u.length},()=>""),u});function b(u){return u.split(/(:\w+[\?\*]?(?:\(\))?)/).filter(Boolean).map(c=>c[0]===":"?c.replace(/\(\)$/,"?"):c)}const w=R(()=>m.value.map((u,c)=>u[0]===":"?h.value[c]:u).join("").replace(/\/+/g,"/")),r=R(()=>i.route.path.includes(":"));function a(){d("navigate",w.value)}return(u,c)=>{const C=M,n=J,l=O("VDropdown");return t(r)?(o(),v(l,{key:1},{popper:k(({hide:f})=>[e("div",ie,[e("form",{flex:"~ col",onSubmit:W(()=>{a(),f()},["prevent"])},[t(r)?(o(),s(_,{key:0},[ce,e("div",de,[(o(!0),s(_,null,B(t(m),(g,x)=>(o(),s(_,{key:x},[g[0]===":"?(o(),v(C,{key:0,modelValue:t(h)[x],"onUpdate:modelValue":T=>t(h)[x]=T,"w-20":"","n-sm":"",placeholder:g.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",pe,$(g),1))],64))),128))])],64)):y("",!0),p(n,{block:"",n:"primary"},{default:k(()=>[P(" Navigate ")]),_:1})],40,ue)])]),default:k(()=>[e("code",le,[(o(!0),s(_,null,B(t(m),(f,g)=>(o(),s("span",{key:g,class:E(f[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(f[0]===":"?f.slice(1):f),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:a},[e("code",null,$(u.route.path),1)]))}}}),_e={"w-full":""},me=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),fe={"w-20":"","pr-1":""},ge={flex:"","items-center":"","justify-end":""},ve={"text-sm":""},ye={flex:"inline gap3","items-center":""},be={op0:"","group-hover:op100":"",flex:"~ gap1"},xe=["onClick"],ke=e("div",{"i-carbon-script-reference":""},null,-1),$e=[ke],we={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ne={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Re={key:0},Ve=["onClick"],Pe=I({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const d=V,i=q(),h=D(),m=R(()=>[...d.pages].sort((r,a)=>r.path.localeCompare(a.path)));function b(r){const a=d.layouts.find(u=>u.name===r);a&&i(a.file)}function w(r){if(typeof r=="string")return h.value?.middleware.find(a=>a.name===r)?.path}return(r,a)=>{const u=S,c=he,C=F;return o(),s("div",null,[e("table",_e,[me,e("tbody",null,[(o(!0),s(_,null,B(t(m),n=>(o(),s("tr",{key:n.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",fe,[e("div",ge,[r.matched.find(l=>l.name===n.name)?(o(),v(u,{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):y("",!0),r.matchedPending.find(l=>l.name===n.name)?(o(),v(u,{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):y("",!0)])]),e("td",ve,[e("div",ye,[p(c,{route:n,class:E(r.matched.find(l=>l.name===n.name)?"text-primary":r.matchedPending.find(l=>l.name===n.name)?"text-teal":""),onNavigate:a[0]||(a[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",be,[n.file||n.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(i)(n.file||n.meta?.file)},$e,8,xe)):y("",!0)])])]),e("td",we,$(n.name),1),e("td",Ce,[p(C,{filepath:w(n.meta.middleware),override:`${n.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ne,[n.meta.layout===!1?(o(),s("span",Re,"-")):n.meta.layout?(o(),s("button",{key:1,onClick:l=>b(n.meta.layout)},$(n.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:a[1]||(a[1]=l=>b("default"))}," (default) "))])]))),128))])])])}}}),Be={class:"markdown-body"},Te=e("h1",null,"Pages",-1),Ie=e("p",null,[P("One core feature of Nuxt is the file system router. Every Vue file inside the "),e("code",null,"pages/"),P(" directory creates a corresponding URL (or route) that displays the contents of the file. By using dynamic imports for each page, Nuxt leverages code-splitting to ship the minimum amount of JavaScript for the requested route.")],-1),Ee=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),Le=e("hr",null,null,-1),Ae=e("h1",null,"Middlewares",-1),Me=e("p",null,"Nuxt provides a customizable route middleware framework you can use throughout your application, ideal for extracting code that you want to run before navigating to a particular route.",-1),De=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),Se=[Te,Ie,Ee,Le,Ae,Me,De],Fe={__name:"pages",setup(V,{expose:d}){return d({frontmatter:{}}),(h,m)=>(o(),s("div",Be,Se))}},Ue={key:0,"h-full":"","of-auto":""},Ke={border:"b base",flex:"~ col gap1",px4:"",py3:"","navbar-glass":""},je=e("span",{op50:""},"Navigate from ",-1),ze={"font-mono":""},Oe=e("span",{op50:""}," to ",-1),We={key:1,op50:""},Je=e("span",null,[P("Press "),e("b",{"font-bold":""},"Enter"),P(" to navigate")],-1),qe={key:0,"text-orange":"",op75:""},He={key:1,op50:""},Xe={"w-full":""},Ye=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),Ze={mr1:""},lt=I({__name:"pages",setup(V){const d=H(),i=X(),h=Y(),m=D(),b=Z(),w=G(),r=R(()=>m.value?.middleware||[]),a=A("");L(i).toBeTruthy().then(n=>{a.value=n.path}),L(d).toBeTruthy().then(n=>{n.afterEach(()=>{Q(()=>{a.value=i.value.path})})});async function u(){a.value!==i.value.path&&d.value.push(a.value||"/")}const c=R(()=>a.value===i.value.path?[]:d.value.resolve(a.value||"/").matched);function C(n){d.value.push(n)}return(n,l)=>{const f=M,g=Pe,x=ae,T=S,U=F,K=se,j=Fe,z=re;return o(),s(_,null,[t(h)?.pages&&t(d)?(o(),s("div",Ue,[e("div",Ke,[e("div",null,[t(i).path!==t(a)?(o(),s(_,{key:0},[je,e("span",ze,$(t(i).path),1),Oe],64)):(o(),s("span",We,"Current route"))]),p(f,{modelValue:t(a),"onUpdate:modelValue":l[0]||(l[0]=N=>ee(a)?a.value=N:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(t(i).path===t(a)?"":t(c).length?"text-green":"text-orange"),onKeydown:te(u,["enter"])},null,8,["modelValue","class","onKeydown"]),e("div",null,[t(i).path!==t(a)?(o(),s(_,{key:0},[Je,t(c).length?y("",!0):(o(),s("span",qe," (no match)"))],64)):(o(),s("span",He,"Edit path above to navigate"))])]),t(c).length?(o(),v(x,{key:0,icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:k(()=>[p(g,{pages:t(c),layouts:t(b)||[],matched:[],"matched-pending":t(c),onNavigate:C},null,8,["pages","layouts","matched-pending"])]),_:1})):y("",!0),p(x,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(w).length} routes registered in your application`,padding:"pr5"},{default:k(()=>[p(g,{pages:t(w),layouts:t(b)||[],matched:t(i).matched,"matched-pending":t(c),onNavigate:C},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),v(x,{key:1,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:k(()=>[e("table",Xe,[Ye,(o(!0),s(_,null,B(t(r),N=>(o(),s("tr",{key:N.path,"h-7":""},[e("td",null,[e("span",Ze,$(N.name),1),N.global?(o(),v(T,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"global"})):y("",!0)]),e("td",null,[p(U,{filepath:N.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):y("",!0)])):(o(),v(K,{key:1,icon:"carbon-tree-view-alt",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in n?n.rpc:t(oe)).runWizard(await("ensureDevAuthToken"in n?n.ensureDevAuthToken:t(ne))(),"enablePages")}}]},null,8,["actions"])),p(z,null,{default:k(()=>[p(j)]),_:1})],64)}}});export{lt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as y}from"./StateEditor.vue.
|
|
1
|
+
import{_ as y}from"./StateEditor.vue.f97aa771.js";import{d as v,o as e,m as c,F as k,n as N,h as m,j as a,a5 as B,aQ as R,aR as w,k as x,aq as F,a as O,a9 as P,f as r,i as o,p as u,v as V,H as j,C as E,_ as H}from"./entry.ecba488a.js";import{_ as A}from"./NSectionBlock.9ba1ed51.js";import{_ as G}from"./HelpFab.vue.8daa9789.js";import"./DataSchemaButton.vue.900aabf0.js";import"./json-editor-vue.daaf9bf6.js";import"./NIconTitle.vue.1a740209.js";const K={key:0,flex:"~ col gap-1"},T={key:1,mt2:"",px4:"",italic:"",op35:""},q=v({__name:"StateGroup",props:{state:{},prefix:{default:""}},setup(f){return(t,n)=>{const i=y;return e(),c("div",null,[t.state&&Object.keys(t.state).length>0?(e(),c("div",K,[(e(!0),c(k,null,N(t.state,(l,s)=>(e(),m(i,{key:s,state:l,name:s.startsWith(t.prefix)?s.slice(t.prefix.length):s},{actions:a(_=>[B(t.$slots,"actions",R(w(_)))]),_:2},1032,["state","name"]))),128))])):(e(),c("div",T," No data "))])}}}),z={class:"markdown-body"},I=x("h1",null,"State & Async Data",-1),L=x("p",null,"// TODO",-1),Q=[I,L],W={__name:"payload",setup(f,{expose:t}){return t({frontmatter:{}}),(i,l)=>(e(),c("div",z,Q))}},J={key:0},at=v({__name:"payload",setup(f){const t=F(),n=O(()=>t.value?.nuxt.payload);async function i(l){await t.value?.nuxt.hooks.callHookParallel("app:data:refresh",l)}return(l,s)=>{const _=q,d=A,$=E,b=H,S=y,g=W,C=G,D=P("tooltip");return e(),c(k,null,[r(t)?(e(),c("div",J,[o(d,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:a(()=>[o(_,{state:r(n).state,prefix:"$s"},null,8,["state"])]),_:1}),o(d,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:a(()=>[o($,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:s[0]||(s[0]=h=>i())},{default:a(()=>[V(" Re-fetch all data ")]),_:1})]),default:a(()=>[o(_,{state:r(n).data},{actions:a(({isOpen:h,name:p})=>[h&&p?j((e(),m(b,{key:0,title:`Re-fetch '${p}'`,icon:"carbon-recycle",onClick:M=>i([p])},null,8,["title","onClick"])),[[D,`Re-fetch '${p}'`,void 0,{bottom:!0}]]):u("",!0)]),_:1},8,["state"])]),_:1}),r(n).functions&&Object.keys(r(n).functions).length?(e(),m(d,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions (experimental)"},{default:a(()=>[o(S,{"ml--6":"",state:r(n).functions},null,8,["state"])]),_:1})):u("",!0)])):u("",!0),o(C,null,{default:a(()=>[o(g)]),_:1})],64)}}});export{at as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as w}from"./FilepathItem.vue.
|
|
1
|
+
import{_ as w}from"./FilepathItem.vue.6f5b0e95.js";import{_ as D}from"./Badge.2520e67e.js";import{_ as C}from"./DurationDisplay.vue.700f989f.js";import{d as v,a7 as B,a as x,b6 as V,o as n,m,k as t,t as P,i as l,f,h as u,p as d,al as E,a5 as N,a0 as F,q as H,j as h,v as y,b8 as I,aq as W,F as k,n as j,E as q}from"./entry.ecba488a.js";import{_ as L}from"./NSectionBlock.9ba1ed51.js";import{_ as M}from"./HelpFab.vue.8daa9789.js";import"./NIconTitle.vue.1a740209.js";const z={flex:"~ gap2","items-center":""},A={w8:"","text-right":"","text-sm":"",op25:""},R={key:0,"flex-auto":"","text-right":""},Y=v({__name:"PluginItem",props:{plugin:{},index:{}},setup(p){const e=p,a=B(),r=x(()=>V(e.plugin.src,a.value?.rootDir||"").path);return(i,c)=>{const _=w,o=D,s=C;return n(),m("div",z,[t("div",A,P(i.index),1),l(_,{filepath:e.plugin.src,subpath:!0},null,8,["filepath"]),t("div",null,[f(r).startsWith("#")?(n(),u(o,{key:0,"bg-rose-400:10":"","text-rose":"",textContent:"virtual"})):f(r).startsWith(".")?d("",!0):(n(),u(o,{key:1,"bg-gray-400:10":"","text-gray":"",textContent:"module"})),i.plugin.mode==="server"?(n(),u(o,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):d("",!0),i.plugin.mode==="client"?(n(),u(o,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):d("",!0)]),i.plugin.metric?.duration!=null?(n(),m("div",R,[l(s,{duration:i.plugin.metric?.duration,factor:10},null,8,["duration"])])):d("",!0)])}}}),G={class:"n-tip n-tip-base",flex:"~ col items-start","mx--4":"",px4:"",py4:""},J={flex:"~ items-center gap-1","font-bold":""},K=v({__name:"HelpTip",props:{title:{},icon:{}},setup(p){return(e,a)=>{const r=F,i=E("ContentSlot");return n(),m("div",G,[t("div",J,[e.icon?(n(),u(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):d("",!0),t("div",null,P(e.title),1)]),t("div",null,[N(e.$slots,"default",{},()=>[l(i,{use:e.$slots.default,unwrap:"p"},null,8,["use"])])])])}}}),O={};function Q(p,e){const a=K;return n(),u(a,{title:"Performance Tip",icon:"carbon-meter",n:"lime6 dark:lime5"},{default:h(()=>[N(p.$slots,"default")]),_:3})}const U=H(O,[["render",Q]]),X={class:"markdown-body"},Z=t("h1",null,"Plugins",-1),tt=t("p",null,[y("Nuxt plugins allows you to extend the functionality of Nuxt runtime and the Vue instance. You can add plugins to the "),t("code",null,"plugins/"),y(" directory and they will be automatically imported and registered.")],-1),et=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/directory-structure/plugins",target:"_blank",rel:"noopener"},"Learn more on the documentation")],-1),nt={__name:"plugins",setup(p,{expose:e}){return e({frontmatter:{}}),(r,i)=>{const c=U;return n(),m("div",X,[Z,tt,l(c,null,{default:h(()=>[y(" Plugins runs before your application at runtime, the time each plugin cost will directly affect your application's initial loading time. ")]),_:1}),et])}}},ot={pt4:""},st={class:"text-sm",flex:"~ gap-1 items-center justify-start","mt-3":""},it=t("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1),at=t("span",{op50:""},"Total execution time:",-1),dt=v({__name:"plugins",setup(p){const e=I(),a=W(),r=x(()=>{const c=e.value?.plugins||[],_=a.value?.metrics.clientPlugins()||[];return c.map(o=>{const s=typeof o=="string"?{src:o}:o;return{...s,metric:_.find(g=>g.src===s.src||g.src.startsWith(s.src))}})}),i=x(()=>{const c=a.value?.metrics.clientPlugins()||[],_=Math.min(...c.map(s=>s.start));return Math.max(...c.map(s=>s.end))-_});return(c,_)=>{const o=Y,s=C,g=L,S=nt,T=M;return n(),m(k,null,[l(g,{icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${f(r).length}`},{default:h(()=>[t("div",ot,[(n(!0),m(k,null,j(f(r),($,b)=>(n(),u(o,{key:$.src,plugin:$,index:b+1,"ml--4":"","border-base":"",py2:"",class:q(b?"border-t":"")},null,8,["plugin","index","class"]))),128)),t("div",st,[it,at,l(s,{duration:f(i),factor:10},null,8,["duration"])])])]),_:1},8,["description"]),l(T,null,{default:h(()=>[l(S)]),_:1})],64)}}});export{dt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as C}from"./StateEditor.vue.f97aa771.js";import{_ as h}from"./NSectionBlock.9ba1ed51.js";import{o as c,m as r,k as u,d as v,aq as x,a7 as b,a as m,f as o,i as e,j as s,p as k,F as y}from"./entry.ecba488a.js";import{_ as R}from"./HelpFab.vue.8daa9789.js";import"./DataSchemaButton.vue.900aabf0.js";import"./json-editor-vue.daaf9bf6.js";import"./NIconTitle.vue.1a740209.js";const B={class:"markdown-body"},N=u("h1",null,"Runtime Configs",-1),$=u("p",null,"// TODO:",-1),D=[N,$],F={__name:"runtime-configs",setup(d,{expose:t}){return t({frontmatter:{}}),(l,p)=>(c(),r("div",B,D))}},S={key:0},A=v({__name:"runtime-configs",setup(d){const t=x(),_=b(),l=m(()=>t.value?.nuxt.payload),p=m(()=>{const n={..._.value?.runtimeConfig};return delete n.public,delete n.app,n});return(n,T)=>{const a=C,i=h,f=F,g=R;return c(),r(y,null,[o(t)?(c(),r("div",S,[e(i,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:s(()=>[e(a,{state:o(t).app.appConfig},null,8,["state"])]),_:1}),e(i,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:s(()=>[e(a,{state:o(l).config?.public},null,8,["state"])]),_:1}),e(i,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:s(()=>[e(a,{state:o(p),readonly:""},null,8,["state"])]),_:1})])):k("",!0),e(g,null,{default:s(()=>[e(f)]),_:1})],64)}}});export{A as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{r as L,bb as Me,aw as Fe,au as He,w as _e,bc as ze,bd as We,d as re,be,o,m as p,k as d,E,h as C,f as e,bf as le,t as j,p as D,v as F,a3 as Ge,a5 as ee,F as R,n as A,a0 as ce,a4 as Je,a as V,i as f,j as k,U as ke,C as Ce,bg as Ke,a7 as Qe,as as de,a6 as Xe,av as Ye,e as Ze,a9 as xe,l as te,H as ae,ap as et,_ as we,A as $e,bh as tt,bi as ot,ad as nt,R as st,bj as lt,ak as at}from"./entry.ecba488a.js";import{_ as rt}from"./Navbar.vue.6532550c.js";import{_ as Se}from"./Badge.2520e67e.js";import{_ as Te}from"./NSelect.vue.50512422.js";import{_ as it}from"./NCheckbox.vue.e0da702b.js";import{u as Ve,_ as ut}from"./storage-options.bdca1e26.js";import{_ as dt}from"./DataSchemaButton.vue.900aabf0.js";import{_ as ct}from"./NCodeBlock.vue.070d4546.js";import{C as ye,S as Re}from"./constants.4e5eba24.js";import{U as pt}from"./json-editor-vue.daaf9bf6.js";import{_ as ft}from"./NSectionBlock.9ba1ed51.js";import{_ as mt}from"./DrawerRight.vue.5715b906.js";import"./client.20a78c8d.js";import"./NIconTitle.vue.1a740209.js";const se=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function vt(r,h){if(typeof r!="string")throw new TypeError("argument str must be a string");const m={},w=(h||{}).decode||gt;let _=0;for(;_<r.length;){const t=r.indexOf("=",_);if(t===-1)break;let y=r.indexOf(";",_);if(y===-1)y=r.length;else if(y<t){_=r.lastIndexOf(";",t-1)+1;continue}const u=r.slice(_,t).trim();if(m[u]===void 0){let i=r.slice(t+1,y).trim();i.codePointAt(0)===34&&(i=i.slice(1,-1)),m[u]=yt(i,w)}_=y+1}return m}function ge(r,h,m){const n=m||{},w=n.encode||_t;if(typeof w!="function")throw new TypeError("option encode is invalid");if(!se.test(r))throw new TypeError("argument name is invalid");const _=w(h);if(_&&!se.test(_))throw new TypeError("argument val is invalid");let t=r+"="+_;if(n.maxAge!==void 0&&n.maxAge!==null){const y=n.maxAge-0;if(Number.isNaN(y)||!Number.isFinite(y))throw new TypeError("option maxAge is invalid");t+="; Max-Age="+Math.floor(y)}if(n.domain){if(!se.test(n.domain))throw new TypeError("option domain is invalid");t+="; Domain="+n.domain}if(n.path){if(!se.test(n.path))throw new TypeError("option path is invalid");t+="; Path="+n.path}if(n.expires){if(!ht(n.expires)||Number.isNaN(n.expires.valueOf()))throw new TypeError("option expires is invalid");t+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(t+="; HttpOnly"),n.secure&&(t+="; Secure"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():n.priority){case"low":t+="; Priority=Low";break;case"medium":t+="; Priority=Medium";break;case"high":t+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:t+="; SameSite=Strict";break;case"lax":t+="; SameSite=Lax";break;case"strict":t+="; SameSite=Strict";break;case"none":t+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return t}function ht(r){return Object.prototype.toString.call(r)==="[object Date]"||r instanceof Date}function yt(r,h){try{return h(r)}catch{return r}}function gt(r){return r.includes("%")?decodeURIComponent(r):r}function _t(r){return encodeURIComponent(r)}const bt={path:"/",watch:!0,decode:r=>ze(decodeURIComponent(r)),encode:r=>encodeURIComponent(typeof r=="string"?r:JSON.stringify(r))};function kt(r,h){const m={...bt,...h},n=Ct(m)||{},w=L(n[r]??m.default?.());{const _=typeof BroadcastChannel>"u"?null:new BroadcastChannel(`nuxt:cookies:${r}`);Me()&&Fe(()=>{_?.close()});const t=()=>{wt(r,w.value,m),_?.postMessage(We(w.value))};let y=!1;_&&(_.onmessage=u=>{y=!0,w.value=u.data,He(()=>{y=!1})}),m.watch?_e(w,()=>{y||t()},{deep:m.watch!=="shallow"}):t()}return w}function Ct(r={}){return vt(document.cookie,r)}function xt(r,h,m={}){return h==null?ge(r,h,{...m,maxAge:-1}):ge(r,h,m)}function wt(r,h,m={}){document.cookie=xt(r,h,m)}const $t=d("div",{"x-divider":""},null,-1),Ue=re({__name:"ServerRouteListItem",props:{item:{},index:{default:0}},setup(r){const h=L(!0),m=be();return(n,w)=>{const _=ce,t=Se,y=Ue;return o(),p("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:E([{"bg-active":e(m)===n.item.filepath}]),style:Ge({paddingLeft:`calc(0.5rem + ${n.index*1.5}em)`}),onClick:w[0]||(w[0]=u=>{h.value=!e(h),m.value=n.item.filepath})},[d("div",{class:E({"w-12":!n.item.routes}),"flex-none":"","text-left":""},[n.item.type==="collection"?(o(),C(_,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":e(h)?90:0,transition:""},null,8,["transform-rotate"])):(o(),C(t,{key:1,class:E(("getRequestMethodClass"in n?n.getRequestMethodClass:e(le))(n.item.method||"*")),textContent:j((n.item.method||"*").toUpperCase())},null,8,["class","textContent"]))],2),d("span",{class:E({"flex items-center":n.item.routes}),"text-sm":"","font-mono":""},[n.item.type==="collection"?(o(),C(_,{key:0,title:`${n.item.routes?.length} routes`,icon:"carbon:folder",mr1:""},null,8,["title"])):D("",!0),F(" "+j(n.item.route),1)],2)],6),$t,e(h)?ee(n.$slots,"default",{key:0},()=>[(o(!0),p(R,null,A(n.item.routes,u=>(o(),C(y,{key:u.filepath,item:u,index:n.index+1},null,8,["item","index"]))),128))]):D("",!0)])}}}),St={p4:"",flex:"~ col gap-4"},Tt={key:1,ml2:"",flex:""},Vt=["value"],Rt={key:0,flex:"","gap-4":""},Ut=d("div",{"flex-auto":""},null,-1),Ie=re({__name:"ServerRouteInputs",props:{modelValue:{},keys:{default:()=>[]},default:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(r,{emit:h}){const m=r,n=Je(m,"modelValue",h,{passive:!0}),w=V(()=>[...m.keys,"key","value","type"]),_=V(()=>{const u={};for(const i of w.value)u[i]=m.default[i]||"";return u}),t=["string","number","boolean","file","date","time","datetime-local"];function y(u,i){const U=i.target;if(U.files&&U.files[0]){const G=U.files[0],M=new FileReader;M.readAsDataURL(G),M.onload=()=>{n.value[u].value=M.result}}}return _e(()=>n,u=>{u.value.forEach(i=>{if(i.type==="number"&&typeof i.value!="number"){const U=Number.parseFloat(i.value);i.value=Number.isNaN(U)?0:U}else i.type==="boolean"&&typeof i.value!="boolean"?i.value=!0:i.type==="file"&&typeof i.value!="object"?i.value="":i.type==="date"&&typeof i.value=="string"&&!i.value.match(/^\d{4}-\d{2}-\d{2}$/)?i.value=new Date().toISOString().slice(0,10):i.type==="time"&&typeof i.value=="string"&&!i.value.match(/^\d{2}:\d{2}$/)?i.value=new Date().toISOString().slice(11,16):i.type==="datetime-local"&&typeof i.value=="string"&&!i.value.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/)?i.value=new Date().toISOString().slice(0,16):i.type==="string"&&(i.value=i.value.toString())})},{deep:!0,immediate:!0,flush:"sync"}),(u,i)=>{const U=ke,G=it,M=Te,z=ce,v=Ce;return o(),p("div",St,[(o(!0),p(R,null,A(e(n),(c,x)=>(o(),p("div",{key:x,flex:"~ gap-2","justify-around":""},[ee(u.$slots,"input",{item:c}),(o(!0),p(R,null,A(e(w),$=>(o(),p(R,{key:$},[c.type!==null&&$==="key"?(o(),C(U,{key:0,modelValue:c[$],"onUpdate:modelValue":g=>c[$]=g,placeholder:$,"flex-1":"","font-mono":"",n:"sm primary",disabled:u.disabled,class:E(u.disabled?"op50":"")},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","class"])):$==="value"?(o(),p(R,{key:1},[c.type==="file"?(o(),C(U,{key:0,type:"file",disabled:u.disabled,class:E(u.disabled?"op75":""),onChange:g=>y(x,g)},null,8,["disabled","class","onChange"])):c.type==="boolean"?(o(),p("div",Tt,[f(G,{modelValue:c.value,"onUpdate:modelValue":g=>c.value=g,placeholder:"Value",n:"green lg",disabled:u.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])])):(o(),C(U,{key:2,modelValue:c.value,"onUpdate:modelValue":g=>c.value=g,type:c.type,placeholder:"Value","flex-1":"","font-mono":"",n:"sm primary",disabled:u.disabled,class:E(u.disabled?"op75":"")},null,8,["modelValue","onUpdate:modelValue","type","disabled","class"]))],64)):$==="type"?(o(),C(M,{key:2,modelValue:c.type,"onUpdate:modelValue":g=>c.type=g,n:"sm green",class:E(u.disabled?"op75":""),disabled:u.disabled},{default:k(()=>[(o(),p(R,null,A(t,g=>d("option",{key:g,value:g},j(g),9,Vt)),64))]),_:2},1032,["modelValue","onUpdate:modelValue","class","disabled"])):D("",!0)],64))),128)),ee(u.$slots,"input-actions",{},()=>[f(v,{n:"red",disabled:u.disabled,class:E(u.disabled?"op0!":""),onClick:$=>e(n).splice(x,1)},{default:k(()=>[f(z,{icon:"carbon:delete"})]),_:2},1032,["disabled","class","onClick"])])]))),128)),u.disabled?D("",!0):(o(),p("div",Rt,[ee(u.$slots,"actions",{params:e(n)},()=>[f(v,{icon:"carbon-add",n:"sm primary",my1:"","px-3":"",onClick:i[0]||(i[0]=c=>e(n).push({...e(_)}))},{default:k(()=>[F(" Add ")]),_:1}),Ut,e(n).length?(o(),C(v,{key:0,icon:"carbon-trash-can",n:"sm red",my1:"","px-3":"",onClick:i[1]||(i[1]=c=>n.value=[])},{default:k(()=>[F(" Remove All ")]),_:1})):D("",!0)])])),ee(u.$slots,"default")])}}}),It={"h-full":"","w-full":"",flex:"~ col"},Dt={flex:"~ col gap-2","flex-none":"",p4:"","navbar-glass":""},Nt={flex:"~ gap2"},Et={relative:"","w-full":""},jt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},Ot=d("div",{"flex-auto":""},null,-1),Pt={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},Lt={"text-right":"","font-mono":""},Bt={key:1,border:"b base",p4:"",flex:"~ col gap-4","font-mono":""},qt={flex:"~ gap-4"},At={flex:"~ gap2","mb--2":"","items-center":"",op50:""},Mt=d("div",{"w-5":"","x-divider":""},null,-1),Ft=d("div",{"flex-none":""}," Default Inputs ",-1),Ht=d("div",{"x-divider":""},null,-1),zt={key:2},Wt={key:3,border:"b base",relative:"","n-code-block":""},Gt={flex:"~ wrap","w-full":""},Jt=["onClick"],Kt=d("div",{border:"b base","flex-auto":""},null,-1),Qt={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},Xt=d("div",null,"Response",-1),Yt={key:1,"text-xs":"",op50:""},Zt=d("div",{"flex-auto":""},null,-1),eo=d("div",{op50:""}," Request finished in ",-1),to={key:0,"flex-auto":"","overflow-auto":""},oo={border:"~ base","h-full":"","w-full":"",rounded:""},no=["data"],so={key:2,"flex-auto":"","overflow-auto":"",p4:""},lo={border:"~ base",rounded:""},ao=["src"],ro={key:1,controls:"",rounded:""},io=["src"],uo=re({__name:"ServerRouteDetails",props:{route:{}},emits:["open-default-input"],setup(r,{emit:h}){const m=r,[n,w]=Ke(),_=Qe(),t=de({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),y=V(()=>t.contentType.includes("application/json")?"json":t.contentType.includes("text/html")?"html":t.contentType.includes("text/css")?"css":t.contentType.includes("text/javascript")?"javascript":t.contentType.includes("image")||t.contentType.includes("video")?"media":t.contentType.includes("text/xml")||t.contentType.includes("application/xml")?"xml":t.contentType.includes("application/pdf")?"pdf":"text"),u=V(()=>{if(y.value==="json")return JSON.stringify(t.data,null,2);if(y.value==="media"||y.value==="pdf"){const s=new Blob([t.data],{type:t.contentType});return URL.createObjectURL(s)}return t.data}),i=L(!1),U=L(!1),G=Xe(),M=V(()=>m.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),z=V(()=>M.value?.filter(s=>s.startsWith(":")||s.startsWith("**:"))||[]),v=L(m.route.method||"GET"),c=L({}),x=de({query:[{key:"",value:"",type:"string"}],body:[{key:"",value:"",type:"string"}],headers:[{key:"Content-Type",value:"application/json",type:"string"}]}),$=L({}),{inputDefaults:g}=Ve("serverRoutes"),O=["GET","POST","PUT","PATCH","DELETE","HEAD"],B=["PATCH","POST","PUT","DELETE"],q=V(()=>B.includes(v.value.toUpperCase())),S=L(z.value.length?"params":"query"),oe=["input","json"],H=L(oe[0]),K=V({get:()=>x[S.value],set:s=>{x[S.value]=s}}),X=V(()=>({...J(g.value.query),...J(x.query)})),T=V(()=>({...J(g.value.headers),...J(x.headers)})),Y=V(()=>q.value?H.value==="json"?{...J(g.value.body),...$.value}:{...J(g.value.body),...J(x.body)}:void 0),De=V(()=>{let s=_.value?.devServer.url||"http://localhost";s.charAt(s.length-1)==="/"&&(s=s.slice(0,-1));const l=_.value?.devServer.port||3e3;return s.includes(`:${l}`)?s:`${s}:${l}`}),ne=V(()=>{let s=new URLSearchParams(X.value).toString();s&&(s=`?${s}`);const l=(M.value?.map(N=>(N.startsWith(":")||N.startsWith("**:"))&&c.value[N]||N).join("")||"")+s;let b=_.value?.app.baseURL||"";return(b==="./"||b===".")&&(b=""),b.endsWith("/")&&(b=b.slice(0,-1)),b+l}),pe=V(()=>De.value+ne.value);function J(s){const l=Object.fromEntries(s.filter(({key:b,value:N})=>b&&N!==void 0).map(({key:b,value:N})=>[b,N]));return Object.entries(l).length?l:void 0}async function fe(){U.value=!0,i.value=!0;const s=Date.now();try{t.data=await $fetch(pe.value,{method:v.value.toUpperCase(),headers:T.value,query:X.value,body:Y.value,onResponse({response:l}){t.contentType=(l.headers.get("content-type")||"").toString().toLowerCase().trim(),t.statusCode=l.status,t.error=void 0},onResponseError(l){t.error=l.response._data,t.data=l.response._data}})}catch{}i.value=!1,t.fetchTime=Date.now()-s}const me=V(()=>{const s=[],l=[],b=Object.entries(T.value).filter(([I,P])=>I&&P&&!(I==="Content-Type"&&P==="application/json")).map(([I,P])=>` '${I}': '${P}'`).join(`,
|
|
2
|
+
`);v.value.toUpperCase()!=="GET"&&l.push(`method: '${v.value.toUpperCase()}'`),b&&l.push(`headers: {
|
|
3
|
+
${b}
|
|
4
|
+
}`),Y.value&&l.push(`body: ${JSON.stringify(Y.value,null,2)}`);const N=l.length?`, {
|
|
5
|
+
${l.join(`,
|
|
6
|
+
`).split(`
|
|
7
|
+
`).map(I=>` ${I}`).join(`
|
|
8
|
+
`)}
|
|
9
|
+
}`:"";return s.push({name:"useFetch",lang:"javascript",docs:ye.nuxt.useFetch,code:`const { data, pending, error, refresh } = useFetch('${ne.value}'${N})`}),s.push({name:"$fetch",lang:"javascript",docs:ye.nuxt.$fetch,code:`await $fetch('${ne.value}'${N})`}),s}),Ne=V(()=>{const s=[];return z.value.length&&s.push({name:"Params",slug:"params",length:z.value.length}),s.push({name:"Query",slug:"query",length:x.query.length}),q.value&&s.push({name:"Body",slug:"body",length:x.body.length}),s.push({name:"Headers",slug:"headers",length:x.headers.length}),s.push({name:"Cookies",slug:"cookies"}),s.push({name:"Snippets",slug:"snippet"}),s}),Z=L(Ee());function Ee(){return document.cookie.split("; ").map(s=>{const[l,b]=s.split("=");return{key:l,value:b}})}const W=de({key:"",value:""});function ie(s,l){if(!s)return;const b=Z.value.find(I=>I.key===s),N=kt(s);b!==void 0?l===void 0&&(Z.value=Z.value.filter(I=>I.key!==s)):(Z.value.push({key:s,value:l}),W.key="",W.value=""),N.value=l}Ye(()=>{H.value==="json"&&typeof $.value=="string"&&($.value=JSON.parse($.value))});const je=Ze();return(s,l)=>{const b=Ce,N=Te,I=ke,P=ce,Oe=we,ve=Ie,Pe=ut,Le=$e,Be=tt,ue=Se,qe=dt,Ae=ct,he=xe("tooltip");return o(),p("div",It,[d("div",Dt,[d("div",Nt,[s.route.method?(o(),C(b,{key:0,class:E(("getRequestMethodClass"in s?s.getRequestMethodClass:e(le))(e(v))),"pointer-events-none":"",tabindex:"-1"},{default:k(()=>[F(j(e(v).toUpperCase()),1)]),_:1},8,["class"])):(o(),C(N,{key:1,modelValue:e(v),"onUpdate:modelValue":l[0]||(l[0]=a=>te(v)?v.value=a:null),class:E(("getRequestMethodClass"in s?s.getRequestMethodClass:e(le))(e(v)))},{default:k(()=>[(o(),p(R,null,A(O,a=>d("option",{key:a,class:E(("getRequestMethodClass"in s?s.getRequestMethodClass:e(le))(a))},j(a.toUpperCase()),3)),64))]),_:1},8,["modelValue","class"])),d("div",Et,[f(I,{"model-value":e(ne),disabled:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"primary xs"},null,8,["model-value"]),ae((o(),C(b,{title:"Copy URL",absolute:"","right-2":"","top-1.7":"",n:"xs blue",onClick:l[1]||(l[1]=a=>e(je)(e(pe)))},{default:k(()=>[f(P,{icon:"carbon:copy"})]),_:1})),[[he,"Copy URL"]])]),f(b,{n:"primary solid",onClick:fe},{default:k(()=>[f(P,{icon:"carbon:send"})]),_:1})])]),d("div",jt,[(o(!0),p(R,null,A(e(Ne),a=>(o(),C(b,{key:a.slug,class:E(e(S)===a.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:Q=>S.value=a.slug},{default:k(()=>[f(P,{icon:("ServerRouteTabIcons"in s?s.ServerRouteTabIcons:e(Re))[a.slug]},null,8,["icon"]),F(" "+j(a.name)+" "+j(a?.length?`(${a.length})`:"")+" ",1),d("span",null,j(e(g)[a.slug]?.length?`(${e(g)[a.slug].length})`:""),1)]),_:2},1032,["class","onClick"]))),128)),Ot,ae((o(),C(b,{title:"Open in Editor",onClick:l[2]||(l[2]=a=>e(G)(s.route.filepath))},{default:k(()=>[f(P,{icon:"carbon-launch"})]),_:1})),[[he,"Open in Editor"]])]),e(S)==="params"?(o(),p("div",Pt,[(o(!0),p(R,null,A(e(z),a=>(o(),p(R,{key:a},[d("div",Lt,j(a),1),f(I,{modelValue:e(c)[a],"onUpdate:modelValue":Q=>e(c)[a]=Q,placeholder:a,"flex-1":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])],64))),128))])):D("",!0),e(S)==="cookies"?(o(),p("div",Bt,[(o(!0),p(R,null,A(e(Z),a=>(o(),p("div",{key:a.key,flex:"~ gap-4 items-center"},[f(I,{placeholder:"Key...","model-value":a.key,disabled:"","op-70":""},null,8,["model-value"]),f(I,{placeholder:"Value...","model-value":a.value,"flex-1":"",n:"primary",onInput:Q=>ie(a.key,Q.target?.value)},null,8,["model-value","onInput"]),f(b,{title:"Delete",n:"red",onClick:Q=>ie(a.key,void 0)},{default:k(()=>[f(P,{icon:"i-carbon-delete"})]),_:2},1032,["onClick"])]))),128)),d("div",qt,[f(I,{modelValue:e(W).key,"onUpdate:modelValue":l[3]||(l[3]=a=>e(W).key=a),placeholder:"Key",n:"primary","flex-1":""},null,8,["modelValue"]),f(I,{modelValue:e(W).value,"onUpdate:modelValue":l[4]||(l[4]=a=>e(W).value=a),placeholder:"Value",n:"primary","flex-1":""},null,8,["modelValue"]),f(b,{title:"Add",n:"primary",onClick:l[5]||(l[5]=a=>ie(e(W).key,e(W).value))},{default:k(()=>[f(P,{icon:"i-carbon-save"})]),_:1})])])):D("",!0),f(e(n),null,{default:k(()=>[f(ve,{modelValue:e(K),"onUpdate:modelValue":l[8]||(l[8]=a=>te(K)?K.value=a:null),default:{type:"string"},"max-h-xs":"","of-auto":""},{default:k(()=>[e(g)[e(S)]?.length?(o(),p(R,{key:0},[d("div",At,[Mt,Ft,f(Oe,{icon:"i-carbon-edit",onClick:l[6]||(l[6]=a=>h("open-default-input"))}),Ht]),f(ve,{modelValue:e(g)[e(S)],"onUpdate:modelValue":l[7]||(l[7]=a=>e(g)[e(S)]=a),disabled:"",p0:""},null,8,["modelValue"])],64)):D("",!0)]),_:1},8,["modelValue"])]),_:1}),e(S)==="snippet"?(o(),p("div",zt,[e(me).length?(o(),C(Pe,{key:0,"code-snippets":e(me)},null,8,["code-snippets"])):D("",!0)])):e(K)?(o(),p("div",Wt,[e(S)==="body"?(o(),p(R,{key:0},[d("div",Gt,[(o(),p(R,null,A(oe,a=>d("button",{key:a,px4:"",py2:"",border:"r base",hover:"bg-active",class:E({"border-b":a!==e(H)}),onClick:Q=>H.value=a},[d("div",{class:E({op30:a!==e(H)}),"font-mono":""},j(a),3)],10,Jt)),64)),Kt]),e(H)==="input"?(o(),C(e(w),{key:0})):e(H)==="json"?(o(),C(e(pt),et({key:1,modelValue:e($),"onUpdate:modelValue":l[9]||(l[9]=a=>te($)?$.value=a:null),class:[[s.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue of-auto text-sm outline-none"]},s.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):D("",!0)],64)):(o(),C(e(w),{key:1}))])):D("",!0),e(U)?e(i)?(o(),C(Be,{key:5,"z-10":"","flex-auto":"","backdrop-blur":""},{default:k(()=>[F(" Fetching... ")]),_:1})):(o(),p(R,{key:6},[d("div",Qt,[Xt,e(t).error?(o(),C(ue,{key:0,"bg-red-400:10":"","text-red-400":""},{default:k(()=>[F(" Error ")]),_:1})):D("",!0),f(ue,{class:E({"bg-orange-400:10 text-orange-400":e(t).error,"bg-green-400:10 text-green-400":!e(t).error})},{default:k(()=>[F(j(e(t).statusCode),1)]),_:1},8,["class"]),e(t).contentType?(o(),p("code",Yt,j(e(t).contentType),1)):D("",!0),e(t).contentType==="application/json"?(o(),C(qe,{key:2,getter:()=>({input:e(u)})},null,8,["getter"])):D("",!0),Zt,eo,f(ue,{"bg-green-400:10":"","text-green-400":""},{default:k(()=>[F(j(e(t).fetchTime)+" ms ",1)]),_:1})]),e(y)==="pdf"?(o(),p("div",to,[d("div",oo,[d("object",{data:e(u),type:"application/pdf","flex-auto":"",width:"100%",height:"100%",rounded:""},null,8,no)])])):e(y)!=="media"?(o(),C(Ae,{key:1,"flex-auto":"","overflow-auto":"","py-2":"",code:e(u),lang:e(y)},null,8,["code","lang"])):(o(),p("div",so,[d("div",lo,[e(t).contentType.includes("image")?(o(),p("img",{key:0,rounded:"",src:e(u)},null,8,ao)):(o(),p("video",ro,[d("source",{src:e(u),type:"video/mp4"},null,8,io)]))])]))],64)):(o(),C(Le,{key:4},{default:k(()=>[f(b,{n:"primary",onClick:fe},{default:k(()=>[f(P,{icon:"carbon:send"}),F(" Send request ")]),_:1})]),_:1}))])}}}),co={flex:"~ gap1","text-sm":""},po={key:0,op50:""},fo={op50:""},mo=d("span",{op75:""},"Select a route to start",-1),vo=d("div",{p4:"",border:"b base"},[d("span",{"text-lg":""},"Default Inputs"),d("br"),d("span",{"text-white":"",op50:""},"Merged as default for every request in DevTools")],-1),Uo=re({__name:"server-routes",setup(r){const h=L(!1),m=ot(),n=be(),{selectedRoute:w,view:_,inputDefaults:t}=Ve("serverRoutes"),y=V(()=>{!n.value&&w.value&&(n.value=w.value.filepath);const v=m.value?.find(c=>c.filepath===n.value);return n.value!==w.value?.filepath&&v&&(w.value=v),v}),u=L(""),i=V(()=>new nt(m.value||[],{keys:["method","route"],shouldSort:!0})),U=V(()=>m.value?u.value?i.value.search(u.value).map(c=>c.item):m.value:[]),G=V(()=>{const v=[],c=(x,$)=>{x.routes=x.routes||[],x.routes.push($)};return U.value.forEach(x=>{const $=x.filepath.split("/"),g=$.slice($.indexOf("server")+1);g.length>0&&g[g.length-1].includes(".")&&g.pop();let O=null;if(g.forEach(B=>{const q=O?O.routes?.find(S=>S.route===B):v.find(S=>S.route===B);if(q)O=q;else{const S={route:B,filepath:B.replace(/\W/g,"-").toLowerCase(),type:"collection",routes:[]};O?c(O,S):v.push(S),O=S}}),x.type==="runtime"){const B=v.find(q=>q.route==="runtime");if(B)c(B,x);else{const q={route:"runtime",filepath:"runtime",type:"collection",routes:[x]};v.push(q)}}else O?c(O,x):v.push(x)}),v});function M(){_.value=_.value==="tree"?"list":"tree"}function z(v){return v.charAt(0).toUpperCase()+v.slice(1)}return(v,c)=>{const x=we,$=rt,g=Ue,O=uo,B=at,q=$e,S=st,oe=Ie,H=ft,K=mt,X=xe("tooltip");return o(),p(R,null,[f(S,{"storage-key":"tab-server-routes"},{left:k(()=>[f($,{search:e(u),"onUpdate:search":c[1]||(c[1]=T=>te(u)?u.value=T:null),pb2:""},{actions:k(()=>[ae(f(x,{"text-lg":"",icon:e(_)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",onClick:M},null,8,["icon"]),[[X,"Toggle View"]]),ae(f(x,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",onClick:c[0]||(c[0]=T=>h.value=!e(h))},null,512),[[X,"Default Inputs"]])]),default:k(()=>[d("div",co,[e(u)?(o(),p("span",po,j(e(U).length)+" matched · ",1)):D("",!0),d("span",fo,j(e(m)?.length)+" routes in total",1)])]),_:1},8,["search"]),(o(!0),p(R,null,A(e(_)==="tree"?e(G):e(U),T=>(o(),C(g,{key:T.filepath,item:T},null,8,["item"]))),128))]),right:k(()=>[(o(),C(lt,{max:10},[e(y)?(o(),C(O,{key:e(y).filepath,route:e(y),onOpenDefaultInput:c[2]||(c[2]=T=>h.value=!0)},null,8,["route"])):D("",!0)],1024)),e(y)?D("",!0):(o(),C(q,{key:0},{default:k(()=>[f(B,{px6:"",py2:""},{default:k(()=>[mo]),_:1})]),_:1}))]),_:1}),f(K,{modelValue:e(h),"onUpdate:modelValue":c[3]||(c[3]=T=>te(h)?h.value=T:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:c[4]||(c[4]=T=>h.value=!1)},{default:k(()=>[d("div",null,[vo,(o(!0),p(R,null,A(Object.keys(e(t)),T=>(o(),C(H,{key:T,text:`${z(T)} ${e(t)[T].length?`(${e(t)[T].length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in v?v.ServerRouteTabIcons:e(Re))[T]},{default:k(()=>[f(oe,{modelValue:e(t)[T],"onUpdate:modelValue":Y=>e(t)[T]=Y,py0:"",default:{type:"string"}},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["text","icon"]))),128))])]),_:1},8,["modelValue"])],64)}}});export{Uo as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as L}from"./NIconTitle.vue.1a740209.js";import{_ as H}from"./NSwitch.vue.687752dc.js";import{d as q,aq as R,bA as G,az as J,av as I,m as d,i,k as e,F as _,n as k,f as t,j as r,l as C,aj as K,bB as Q,o as c,E as S,t as g,h as W,p as z,v as X,bv as Y,_ as Z,C as ee}from"./entry.ecba488a.js";import{_ as le}from"./NSelect.vue.50512422.js";import{_ as ne}from"./NCheckbox.vue.e0da702b.js";const oe={px6:"",py6:""},te={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},ae={flex:"~ col gap-1",py3:""},se=e("h3",{mb1:"","text-lg":""}," Tabs ",-1),ie={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},ue={capitalize:"",op75:""},ce={flex:"~ col gap-1",border:"~ base rounded",py3:"",pl4:"",pr2:""},de=e("div",{"flex-auto":""},null,-1),re={py3:"",flex:"~ col gap-1",border:"b base"},pe=e("h3",{mb1:"","text-lg":""}," Appearance ",-1),_e=e("div",{"carbon-sun":"","dark:carbon-moon":"","translate-y--1px":""},null,-1),me={py3:"",flex:"~ col gap-1",border:"b base"},ve=e("h3",{mb1:"","text-lg":""}," Floating Panel ",-1),fe=e("p",null,"Minimize panel on inactive",-1),ge=["value"],xe={py3:"",flex:"~ col gap-1",border:"b base"},he=e("h3",{mb1:"","text-lg":""}," UI Scale ",-1),be=["value"],ye={py3:"",flex:"~ col gap-1"},ke=e("h3",{mb1:"","text-lg":""}," Features ",-1),Ce=e("span",null,"Close DevTools when clicking outside",-1),Ve=e("span",null,"Show help buttons",-1),Ie=q({__name:"settings",setup(Te){const{interactionCloseOnOutsideClick:x,showHelpButtons:V,scale:T,hiddenTabs:m,pinnedTabs:a,hiddenTabCategories:v,minimizePanelInactive:h}=K(),N=R(),B=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],D=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],j=G(J());function P(s,n){n?m.value=m.value.filter(u=>u!==s):m.value.push(s)}function A(s,n){n?v.value=v.value.filter(u=>u!==s):v.value.push(s)}function F(s){a.value.includes(s)?a.value=a.value.filter(n=>n!==s):a.value.push(s)}function $(s,n){const u=a.value.indexOf(s);if(u===-1)return;const p=u+n;if(p<0||p>=a.value.length)return;const f=[...a.value];f.splice(u,1),f.splice(p,0,s),a.value=f}return I(()=>{N.value.app.frameState.value.closeOnOutsideClick=x.value}),I(()=>{N.value.app.frameState.value.minimizePanelInactive=h.value}),(s,n)=>{const u=L,p=H,f=Y,w=Z,M=ee,E=Q,O=le,U=ne;return c(),d("div",oe,[i(u,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),e("div",te,[e("div",ae,[se,(c(!0),d(_,null,k(t(j),([l,b])=>(c(),d(_,{key:l},[b.length?(c(),d("div",{key:0,flex:"~ col gap-1","mx--1":"",class:S(t(v).includes(l)?"op50 grayscale":""),"pt-2":""},[i(p,{flex:"~ row-reverse",px2:"",py1:"","n-lime":"","model-value":!t(v).includes(l),"onUpdate:modelValue":o=>A(l,o)},{default:r(()=>[e("div",ie,[e("span",ue,g(l),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e("div",ce,[(c(!0),d(_,null,k(b,o=>(c(),W(p,{key:o.name,flex:"~ row-reverse",py1:"",pl2:"",pr1:"","n-primary":"","model-value":!t(m).includes(o.name),"onUpdate:modelValue":y=>P(o.name,y)},{default:r(()=>[e("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"",class:S(t(m).includes(o.name)?"op25":"")},[i(f,{"text-xl":"",icon:o.icon,title:o.title},null,8,["icon","title"]),e("span",null,g(o.title),1),de,t(a).includes(o.name)?(c(),d(_,{key:0},[i(w,{icon:"i-carbon-caret-up",disabled:t(a).indexOf(o.name)===0,onClick:y=>$(o.name,-1)},null,8,["disabled","onClick"]),i(w,{icon:"i-carbon-caret-down",disabled:t(a).indexOf(o.name)===t(a).length-1,onClick:y=>$(o.name,1)},null,8,["disabled","onClick"])],64)):z("",!0),i(w,{icon:t(a).includes(o.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op50",onClick:y=>F(o.name)},null,8,["icon","onClick"])],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))])],2)):z("",!0)],64))),128))]),e("div",null,[e("div",re,[pe,e("div",null,[i(E,null,{default:r(({toggle:l,isDark:b})=>[i(M,{n:"primary",onClick:l},{default:r(()=>[_e,X(" "+g(b.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})])]),e("div",me,[ve,fe,i(O,{modelValue:t(h),"onUpdate:modelValue":n[0]||(n[0]=l=>C(h)?h.value=l:null),modelModifiers:{number:!0},n:"primary"},{default:r(()=>[(c(),d(_,null,k(D,l=>e("option",{key:l[0],value:l[1]},g(l[0]),9,ge)),64))]),_:1},8,["modelValue"])]),e("div",xe,[he,i(O,{modelValue:t(T),"onUpdate:modelValue":n[1]||(n[1]=l=>C(T)?T.value=l:null),n:"primary"},{default:r(()=>[(c(),d(_,null,k(B,l=>e("option",{key:l[0],value:l[1]},g(l[0]),9,be)),64))]),_:1},8,["modelValue"])]),e("div",ye,[ke,i(U,{modelValue:t(x),"onUpdate:modelValue":n[2]||(n[2]=l=>C(x)?x.value=l:null),"n-primary":""},{default:r(()=>[Ce]),_:1},8,["modelValue"]),i(U,{modelValue:t(V),"onUpdate:modelValue":n[3]||(n[3]=l=>C(V)?V.value=l:null),"n-primary":""},{default:r(()=>[Ve]),_:1},8,["modelValue"])])])])])}}});export{Ie as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e=Object.freeze({information_for_contributors:["This file has been converted from https://github.com/jeff-hykin/better-shell-syntax/blob/master/autogenerated/shell.tmLanguage.json","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],version:"https://github.com/jeff-hykin/better-shell-syntax/commit/1bad17d8badf6283125aaa7c31be06ba64146a0f",name:"shellscript",scopeName:"source.shell",patterns:[{include:"#initial_context"}],repository:{alias_statement:{begin:"(alias)[ \\t]*+[ \\t]*+(?:((?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$))[ \\t]*+)?((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))",end:"(?:(?= |\\t|$)|(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n))",beginCaptures:{1:{name:"storage.type.alias.shell"},2:{name:"storage.modifier.$2.shell"},3:{name:"variable.other.assignment.shell"},4:{name:"punctuation.definition.array.access.shell"},5:{name:"variable.other.assignment.shell"},6:{name:"punctuation.definition.array.access.shell"},7:{name:"keyword.operator.assignment.shell"},8:{name:"keyword.operator.assignment.compound.shell"},9:{name:"keyword.operator.assignment.compound.shell"}},endCaptures:{1:{name:"punctuation.terminator.statement.semicolon.shell"},2:{name:"punctuation.separator.statement.and.shell"},3:{name:"punctuation.separator.statement.or.shell"},4:{name:"punctuation.separator.statement.background.shell"}},name:"meta.expression.assignment.shell",patterns:[{include:"#normal_statement_context"}]},argument:{begin:"[ \\t]++(?!(?:&|\\||\\(|\\[|#|\\n|$|;))",end:"(?= |\\t|;|\\||&|$|\\n|\\)|\\`)",beginCaptures:{},endCaptures:{},name:"meta.argument.shell",patterns:[{include:"#argument_context"},{include:"#line_continuation"}]},argument_context:{patterns:[{match:`[ \\t]*+([^
|
|
2
|
+
'&;<>\\(\\)\\$\`\\\\"\\|]+(?!>))`,captures:{1:{name:"string.unquoted.argument.shell",patterns:[{match:"\\*",name:"variable.language.special.wildcard.shell"},{include:"#variable"},{include:"#numeric_literal"},{match:"(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",captures:{1:{name:"constant.language.$1.shell"}}}]}}},{include:"#normal_statement_context"}]},assignment:{patterns:[{begin:"[ \\t]*+(?:((?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$))[ \\t]*+)?((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))[ \\t]*+(\\()",end:"\\)",beginCaptures:{1:{name:"storage.modifier.$1.shell"},2:{name:"variable.other.assignment.shell"},3:{name:"punctuation.definition.array.access.shell"},4:{name:"variable.other.assignment.shell"},5:{name:"punctuation.definition.array.access.shell"},6:{name:"keyword.operator.assignment.shell"},7:{name:"keyword.operator.assignment.compound.shell"},8:{name:"keyword.operator.assignment.compound.shell"},9:{name:"punctuation.shell"}},endCaptures:{0:{name:"punctuation.shell"}},name:"meta.expression.assignment.shell",patterns:[{include:"#comment"},{include:"#argument_context"}]},{begin:"[ \\t]*+(?:((?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$))[ \\t]*+)?((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?:(\\[)((?:(?:(?:\\$)?(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)|@)|\\*))(\\]))?(?:(?:(\\=)|(\\+\\=))|(\\-\\=))",end:"(?:(?= |\\t|$)|(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n))",beginCaptures:{1:{name:"storage.modifier.$1.shell"},2:{name:"variable.other.assignment.shell"},3:{name:"punctuation.definition.array.access.shell"},4:{name:"variable.other.assignment.shell"},5:{name:"punctuation.definition.array.access.shell"},6:{name:"keyword.operator.assignment.shell"},7:{name:"keyword.operator.assignment.compound.shell"},8:{name:"keyword.operator.assignment.compound.shell"}},endCaptures:{1:{name:"punctuation.terminator.statement.semicolon.shell"},2:{name:"punctuation.separator.statement.and.shell"},3:{name:"punctuation.separator.statement.or.shell"},4:{name:"punctuation.separator.statement.background.shell"}},name:"meta.expression.assignment.shell",patterns:[{include:"#comment"},{include:"#argument_context"}]}]},basic_command_name:{match:`(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!foreach\\b(?!\\/)|select\\b(?!\\/)|repeat\\b(?!\\/)|until\\b(?!\\/)|while\\b(?!\\/)|case\\b(?!\\/)|done\\b(?!\\/)|elif\\b(?!\\/)|else\\b(?!\\/)|esac\\b(?!\\/)|then\\b(?!\\/)|for\\b(?!\\/)|end\\b(?!\\/)|in\\b(?!\\/)|fi\\b(?!\\/)|do\\b(?!\\/)|if\\b(?!\\/))(?:((?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$))|((?!"|'|\\\\\\n?$)[^!'" \\t\\n\\r]+?))(?:(?= |\\t)|(?=;|\\||&|\\n|\\)|\\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))`,captures:{1:{name:"storage.modifier.$1.shell"},2:{name:"entity.name.function.call.shell entity.name.command.shell",patterns:[{match:"(?<!\\w)(?:return|break)(?!\\w)",name:"keyword.control.$0.shell"},{match:"(?<!\\w)(?:unfunction|unsetopt|autoload|suspend|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|:|\\.)(?!\\/)(?!\\w)",name:"support.function.builtin.shell"},{include:"#variable"}]}},name:"meta.statement.command.name.basic.shell"},block_comment:{begin:"\\s*+(\\/\\*)",end:"\\*\\/",beginCaptures:{1:{name:"punctuation.definition.comment.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.comment.end.shell"}},name:"comment.block.shell"},boolean:{match:"\\b(?:true|false)\\b",name:"constant.language.$0.shell"},"case-clause":{patterns:[{begin:"(?=\\S)",end:";;",endCaptures:{0:{name:"punctuation.terminator.case-clause.shell"}},name:"meta.scope.case-clause.shell",patterns:[{begin:"\\(|(?=\\S)",beginCaptures:{0:{name:"punctuation.definition.case-pattern.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.case-pattern.shell"}},name:"meta.scope.case-pattern.shell",patterns:[{match:"\\|",name:"punctuation.separator.pipe-sign.shell"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#pathname"}]},{begin:"(?<=\\))",end:"(?=;;)",name:"meta.scope.case-clause-body.shell",patterns:[{include:"#initial_context"}]}]}]},comment:{match:"(?:^|[ \\t]++)(?:((#!).*)|((#).*))",captures:{1:{name:"comment.line.number-sign.shell meta.shebang.shell"},2:{name:"punctuation.definition.comment.shebang.shell"},3:{name:"comment.line.number-sign.shell"},4:{name:"punctuation.definition.comment.shell"}}},comments:{patterns:[{include:"#block_comment"},{include:"#line_comment"}]},"compound-command":{patterns:[{begin:"\\[{1,2}",beginCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},end:"\\]{1,2}",endCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},name:"meta.scope.logical-expression.shell",patterns:[{include:"#logical-expression"},{include:"#initial_context"}]},{begin:"\\({2}",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},end:"\\){2}",endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.other.math.shell",patterns:[{include:"#math"}]},{begin:"\\(",beginCaptures:{0:{name:"punctuation.definition.subshell.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.subshell.shell"}},name:"meta.scope.subshell.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=\\s|^){(?=\\s|$)",beginCaptures:{0:{name:"punctuation.definition.group.shell"}},end:"(?<=^|;)\\s*(})",endCaptures:{1:{name:"punctuation.definition.group.shell"}},name:"meta.scope.group.shell",patterns:[{include:"#initial_context"}]}]},continuation_of_double_quoted_command_name:{begin:'\\G(?<=")',end:'"',beginCaptures:{},endCaptures:{0:{name:"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},contentName:"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command",patterns:[{match:'\\\\[\\$\\n`"\\\\]',name:"constant.character.escape.shell"},{include:"#variable"},{include:"#interpolation"}]},continuation_of_single_quoted_command_name:{begin:"\\G(?<=')",end:"'",beginCaptures:{},endCaptures:{0:{name:"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},contentName:"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command"},custom_command_names:{patterns:[]},custom_commands:{patterns:[]},double_quote_context:{patterns:[{match:'\\\\[\\$`"\\\\\\n]',name:"constant.character.escape.shell"},{include:"#variable"},{include:"#interpolation"}]},double_quote_escape_char:{match:'\\\\[\\$`"\\\\\\n]',name:"constant.character.escape.shell"},function_definition:{begin:"[ \\t]*+(?:(\\bfunction\\b)[ \\t]*+([^ \\t\\n\\r\\(\\)=]+)(?:(\\()[ \\t]*+(\\)))?|([^ \\t\\n\\r\\(\\)=]+)[ \\t]*+(\\()[ \\t]*+(\\)))",end:"(?<=\\}|\\))",beginCaptures:{1:{name:"storage.type.function.shell"},2:{name:"entity.name.function.shell"},3:{name:"punctuation.definition.arguments.shell"},4:{name:"punctuation.definition.arguments.shell"},5:{name:"entity.name.function.shell"},6:{name:"punctuation.definition.arguments.shell"},7:{name:"punctuation.definition.arguments.shell"}},endCaptures:{},name:"meta.function.shell",patterns:[{match:"\\G(?:\\t| |\\n)"},{begin:"\\{",end:"\\}",beginCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},endCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},name:"meta.function.body.shell",patterns:[{include:"#initial_context"}]},{begin:"\\(",end:"\\)",beginCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},endCaptures:{0:{name:"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},name:"meta.function.body.shell",patterns:[{include:"#initial_context"}]}],applyEndPatternLast:1},heredoc:{patterns:[{begin:`((?<!<)<<-)[ \\t]*+("|')[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(?:\\2)(.*)`,end:"^\\t*(?:\\3)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{},3:{name:"punctuation.definition.string.heredoc.shell"},4:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.quoted.heredoc.indent",patterns:[]},{begin:`((?<!<)<<(?!<))[ \\t]*+("|')[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(?:\\2)(.*)`,end:"^(?:\\3)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{},3:{name:"punctuation.definition.string.heredoc.shell"},4:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.quoted.heredoc.no-indent",patterns:[]},{begin:`((?<!<)<<-)[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(.*)`,end:"^\\t*(?:\\2)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{name:"punctuation.definition.string.heredoc.shell"},3:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.unquoted.heredoc.indent",patterns:[{include:"#double_quote_escape_char"},{include:"#variable"},{include:"#interpolation"}]},{begin:`((?<!<)<<(?!<))[ \\t]*+((?<!\\w)[a-zA-Z_0-9-]+(?!\\w))(?=\\s|;|&|<|"|')(.*)`,end:"^(?:\\2)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.operator.heredoc.shell"},2:{name:"punctuation.definition.string.heredoc.shell"},3:{patterns:[{include:"#normal_statement_context"}]}},endCaptures:{0:{name:"punctuation.definition.string.heredoc.shell"}},contentName:"string.unquoted.heredoc.no-indent",patterns:[{include:"#double_quote_escape_char"},{include:"#variable"},{include:"#interpolation"}]}]},herestring:{patterns:[{begin:"(<<<)\\s*(('))",beginCaptures:{1:{name:"keyword.operator.herestring.shell"},2:{name:"string.quoted.single.shell"},3:{name:"punctuation.definition.string.begin.shell"}},end:"(')",endCaptures:{0:{name:"string.quoted.single.shell"},1:{name:"punctuation.definition.string.end.shell"}},name:"meta.herestring.shell",contentName:"string.quoted.single.shell"},{begin:'(<<<)\\s*(("))',beginCaptures:{1:{name:"keyword.operator.herestring.shell"},2:{name:"string.quoted.double.shell"},3:{name:"punctuation.definition.string.begin.shell"}},end:'(")',endCaptures:{0:{name:"string.quoted.double.shell"},1:{name:"punctuation.definition.string.end.shell"}},name:"meta.herestring.shell",contentName:"string.quoted.double.shell",patterns:[{include:"#double_quote_context"}]},{captures:{1:{name:"keyword.operator.herestring.shell"},2:{name:"string.unquoted.herestring.shell",patterns:[{include:"#initial_context"}]}},match:"(<<<)\\s*(([^\\s)\\\\]|\\\\.)+)",name:"meta.herestring.shell"}]},initial_context:{patterns:[{include:"#comment"},{include:"#pipeline"},{include:"#normal_statement_seperator"},{include:"#logical_expression_double"},{include:"#logical_expression_single"},{include:"#misc_ranges"},{include:"#loop"},{include:"#function_definition"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#redirection"},{include:"#pathname"},{include:"#keyword"},{include:"#alias_statement"},{include:"#normal_statement"},{include:"#string"},{include:"#support"}]},inline_comment:{match:"(\\/\\*)((?:[^\\*]|(?:\\*)++[^\\/])*+((?:\\*)++\\/))",captures:{1:{name:"comment.block.shell punctuation.definition.comment.begin.shell"},2:{name:"comment.block.shell"},3:{patterns:[{match:"\\*\\/",name:"comment.block.shell punctuation.definition.comment.end.shell"},{match:"\\*",name:"comment.block.shell"}]}}},interpolation:{patterns:[{begin:"\\$\\({2}",beginCaptures:{0:{name:"punctuation.definition.evaluation.arithmetic.begin.shell"}},end:"\\)\\s*\\)",endCaptures:{0:{name:"punctuation.definition.evaluation.arithmetic.end.shell"}},name:"string.other.math.shell",patterns:[{include:"#math"}]},{begin:"`",beginCaptures:{0:{name:"punctuation.definition.evaluation.backticks.shell"}},end:"`",endCaptures:{0:{name:"punctuation.definition.evaluation.backticks.shell"}},name:"string.interpolated.backtick.shell",patterns:[{match:"\\\\[`\\\\$]",name:"constant.character.escape.shell"},{begin:"(?<=\\W)(?=#)(?!#{)",beginCaptures:{1:{name:"punctuation.whitespace.comment.leading.shell"}},end:"(?!\\G)",patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.shell"}},end:"(?=`)",name:"comment.line.number-sign.shell"}]},{include:"#initial_context"}]},{begin:"\\$\\(",beginCaptures:{0:{name:"punctuation.definition.evaluation.parens.begin.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.evaluation.parens.end.shell"}},name:"string.interpolated.dollar.shell",patterns:[{include:"#initial_context"}]}]},keyword:{patterns:[{match:"(?<=^|;|&| |\\t)(?:then|else|elif|fi|for|in|do|done|select|case|continue|esac|while|until|return)(?= |\\t|;|&|$)",name:"keyword.control.$0.shell"}]},line_comment:{begin:"\\s*+(\\/\\/)",end:"(?<=\\n)(?<!\\\\\\n)",beginCaptures:{1:{name:"punctuation.definition.comment.shell"}},endCaptures:{},name:"comment.line.double-slash.shell",patterns:[{include:"#line_continuation_character"}]},line_continuation:{match:"\\\\(?=\\n)",name:"constant.character.escape.line-continuation.shell"},"logical-expression":{patterns:[{comment:"do we want a special rule for ( expr )?",match:"=[=~]?|!=?|<|>|&&|\\|\\|",name:"keyword.operator.logical.shell"},{match:"(?<!\\S)-(nt|ot|ef|eq|ne|l[te]|g[te]|[a-hknoprstuwxzOGLSN])\\b",name:"keyword.operator.logical.shell"}]},logical_expression_context:{patterns:[{include:"#regex_comparison"},{include:"#logical-expression"},{include:"#logical_expression_single"},{include:"#logical_expression_double"},{include:"#comment"},{include:"#boolean"},{include:"#redirect_number"},{include:"#numeric_literal"},{include:"#pipeline"},{include:"#normal_statement_seperator"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#pathname"},{include:"#keyword"},{include:"#support"}]},logical_expression_double:{begin:"\\[\\[",end:"\\]\\]",beginCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},endCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},name:"meta.scope.logical-expression.shell",patterns:[{include:"#logical_expression_context"}]},logical_expression_single:{begin:"\\[",end:"\\]",beginCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},endCaptures:{0:{name:"punctuation.definition.logical-expression.shell"}},name:"meta.scope.logical-expression.shell",patterns:[{include:"#logical_expression_context"}]},loop:{patterns:[{begin:"(?<=^|;|&|\\s)(for)\\s+(?=\\({2})",beginCaptures:{1:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.for-loop.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)(for)\\s+(.+?)\\s+(in)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.control.shell"},2:{name:"variable.other.loop.shell",patterns:[{include:"#string"}]},3:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.for-in-loop.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)(while|until)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)done(?=\\s|;|&|$|\\))",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.while-loop.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)(select)\\s+((?:[^\\s\\\\]|\\\\.)+)(?=\\s|;|&|$)",beginCaptures:{1:{name:"keyword.control.shell"},2:{name:"variable.other.loop.shell"}},end:"(?<=^|;|&|\\s)(done)(?=\\s|;|&|$|\\))",endCaptures:{1:{name:"keyword.control.shell"}},name:"meta.scope.select-block.shell",patterns:[{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)case(?=\\s|;|&|$)",beginCaptures:{0:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)esac(?=\\s|;|&|$)",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.case-block.shell",patterns:[{begin:"(?<=^|;|&|\\s)in(?=\\s|;|&|$)",beginCaptures:{0:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)(?=esac(\\s|;|&|$))",name:"meta.scope.case-body.shell",patterns:[{include:"#comment"},{include:"#case-clause"}]},{include:"#initial_context"}]},{begin:"(?<=^|;|&|\\s)if(?=\\s|;|&|$)",beginCaptures:{0:{name:"keyword.control.shell"}},end:"(?<=^|;|&|\\s)fi(?=\\s|;|&|$)",endCaptures:{0:{name:"keyword.control.shell"}},name:"meta.scope.if-block.shell",patterns:[{include:"#initial_context"}]}]},math:{patterns:[{include:"#variable"},{match:"\\+{1,2}|-{1,2}|!|~|\\*{1,2}|/|%|<[<=]?|>[>=]?|==|!=|^|\\|{1,2}|&{1,2}|\\?|\\:|,|=|[*/%+\\-&^|]=|<<=|>>=",name:"keyword.operator.arithmetic.shell"},{match:"0[xX][0-9A-Fa-f]+",name:"constant.numeric.hex.shell"},{match:"0\\d+",name:"constant.numeric.octal.shell"},{match:"\\d{1,2}#[0-9a-zA-Z@_]+",name:"constant.numeric.other.shell"},{match:"\\d+",name:"constant.numeric.integer.shell"}]},misc_ranges:{patterns:[{include:"#logical_expression_single"},{include:"#logical_expression_double"},{begin:"\\(\\(",end:"\\)\\)",beginCaptures:{0:{name:"punctuation.section.arithmetic.shell"}},endCaptures:{0:{name:"punctuation.section.arithmetic.shell"}},name:"meta.arithmetic.shell",patterns:[{include:"#math"}]},{begin:"(?<!=)\\(",end:"\\)",beginCaptures:{0:{name:"punctuation.definition.subshell"}},endCaptures:{0:{name:"punctuation.definition.subshell"}},name:"meta.scope.subshell",patterns:[{include:"#initial_context"}]},{begin:"(?<![^ \\t])({)",end:"}",beginCaptures:{1:{name:"punctuation.definition.group.shell"}},endCaptures:{0:{name:"punctuation.definition.group.shell"}},name:"meta.scope.group.shell",patterns:[{include:"#initial_context"}]}]},modifiers:{match:"(?<=^|;|&|[ \\t])(?:export|declare|typeset|local|readonly)(?=[ \\t]|;|&|$)",name:"storage.modifier.$0.shell"},normal_statement:{begin:"(?!^[ \\t]*+$)(?:(?<=^if | if |\\tif |^elif | elif |\\telif |^then | then |\\tthen |^else | else |\\telse |^while | while |\\twhile |^do | do |\\tdo )|(?<=(?:^|;|\\||&|!|\\(|\\{|\\`)))[ \\t]*+(?!nocorrect\\W|nocorrect\\$|function\\W|function\\$|foreach\\W|foreach\\$|repeat\\W|repeat\\$|logout\\W|logout\\$|coproc\\W|coproc\\$|select\\W|select\\$|while\\W|while\\$|pushd\\W|pushd\\$|until\\W|until\\$|case\\W|case\\$|done\\W|done\\$|elif\\W|elif\\$|else\\W|else\\$|esac\\W|esac\\$|popd\\W|popd\\$|then\\W|then\\$|time\\W|time\\$|for\\W|for\\$|end\\W|end\\$|fi\\W|fi\\$|do\\W|do\\$|in\\W|in\\$|if\\W|if\\$)",end:"(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)",beginCaptures:{},endCaptures:{},name:"meta.statement.shell",patterns:[{include:"#function_definition"},{include:"#assignment"},{begin:"[ \\t]*+(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!foreach\\b(?!\\/)|select\\b(?!\\/)|repeat\\b(?!\\/)|until\\b(?!\\/)|while\\b(?!\\/)|case\\b(?!\\/)|done\\b(?!\\/)|elif\\b(?!\\/)|else\\b(?!\\/)|esac\\b(?!\\/)|then\\b(?!\\/)|for\\b(?!\\/)|end\\b(?!\\/)|in\\b(?!\\/)|fi\\b(?!\\/)|do\\b(?!\\/)|if\\b(?!\\/))(?!\\\\\\n?$)",end:"(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\)",beginCaptures:{},endCaptures:{},name:"meta.statement.command.shell",patterns:[{begin:"\\G",end:"(?= |\\t|;|\\||&|$|\\n|\\)|\\`)",beginCaptures:{},endCaptures:{},name:"meta.statement.command.name.shell",patterns:[{include:"#modifiers"},{match:"(?<!\\w)(?:return|break)(?!\\w)",name:"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{match:"(?<!\\w)(?:unfunction|unsetopt|autoload|suspend|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|:|\\.)(?!\\/)(?!\\w)",name:"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{include:"#variable"},{match:`(?<=\\G|'|"|\\}|\\))([^ \\n\\t\\r"'=;&\\|\`\\)\\{]+)`,captures:{1:{name:"entity.name.function.call.shell entity.name.command.shell"}}},{begin:`(?:\\G|(?<! |\\t|;|\\||&|\\n|\\{|#))((?:\\$)?)((?:(")|(')))`,end:"(?<!\\G)(?<=(?:\\2))",beginCaptures:{1:{name:"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},2:{},3:{name:"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},4:{name:"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},endCaptures:{},patterns:[{include:"#continuation_of_single_quoted_command_name"},{include:"#continuation_of_double_quoted_command_name"}]},{include:"#line_continuation"}]},{include:"#line_continuation"},{include:"#option"},{include:"#argument"},{include:"#statement_context"},{include:"#string"}]},{include:"#line_continuation"},{include:"#normal_statement_context"}]},normal_statement_context:{patterns:[{include:"#comment"},{include:"#pipeline"},{include:"#normal_statement_seperator"},{include:"#misc_ranges"},{include:"#boolean"},{include:"#redirect_number"},{include:"#numeric_literal"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#redirection"},{include:"#pathname"},{include:"#keyword"},{include:"#support"}]},normal_statement_seperator:{match:"(?:(?:(?:(?:(;)|(&&))|(\\|\\|))|(&))|\\n)",captures:{1:{name:"punctuation.terminator.statement.semicolon.shell"},2:{name:"punctuation.separator.statement.and.shell"},3:{name:"punctuation.separator.statement.or.shell"},4:{name:"punctuation.separator.statement.background.shell"}}},numeric_literal:{match:"[ \\t]*+(?<==| |\\t|^|\\{|\\(|\\[)(?:(?:(?:(?:(0[xX][0-9A-Fa-f]+)|(0\\d+))|(\\d{1,2}#[0-9a-zA-Z@_]+))|(-?\\d+\\.\\d+))|(-?\\d+))(?!>)",captures:{1:{name:"constant.numeric.shell constant.numeric.hex.shell"},2:{name:"constant.numeric.shell constant.numeric.octal.shell"},3:{name:"constant.numeric.shell constant.numeric.other.shell"},4:{name:"constant.numeric.shell constant.numeric.integer.shell"},5:{name:"constant.numeric.shell constant.numeric.integer.shell"}}},option:{begin:"[ \\t]++(-)((?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t])))",end:"(?:(?=[ \\t])|(?=;|\\||&|\\n|\\)|\\`|\\{|\\}|[ \\t]*#|\\])(?<!\\\\))",beginCaptures:{1:{name:"string.unquoted.argument.shell constant.other.option.dash.shell"},2:{name:"string.unquoted.argument.shell constant.other.option.shell"}},endCaptures:{},contentName:"string.unquoted.argument constant.other.option",patterns:[{include:"#option_context"}]},option_context:{patterns:[{include:"#misc_ranges"},{include:"#string"},{include:"#variable"},{include:"#interpolation"},{include:"#heredoc"},{include:"#herestring"},{include:"#redirection"},{include:"#pathname"},{include:"#keyword"},{include:"#support"}]},pathname:{patterns:[{match:"(?<=\\s|:|=|^)~",name:"keyword.operator.tilde.shell"},{match:"\\*|\\?",name:"keyword.operator.glob.shell"},{begin:"([?*+@!])(\\()",beginCaptures:{1:{name:"keyword.operator.extglob.shell"},2:{name:"punctuation.definition.extglob.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.extglob.shell"}},name:"meta.structure.extglob.shell",patterns:[{include:"#initial_context"}]}]},pipeline:{patterns:[{match:"(?<=^|;|&|\\s)(time)(?=\\s|;|&|$)",name:"keyword.other.shell"},{match:"[|!]",name:"keyword.operator.pipe.shell"}]},redirect_number:{match:"(?<=[ \\t])(?:(1)|(2)|(\\d+))(?=>)",captures:{1:{name:"keyword.operator.redirect.stdout.shell"},2:{name:"keyword.operator.redirect.stderr.shell"},3:{name:"keyword.operator.redirect.$3.shell"}}},redirection:{patterns:[{begin:"[><]\\(",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},end:"\\)",endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.interpolated.process-substitution.shell",patterns:[{include:"#initial_context"}]},{match:"(?<![<>])(&>|\\d*>&\\d*|\\d*(>>|>|<)|\\d*<&|\\d*<>)(?![<>])",name:"keyword.operator.redirect.shell"}]},regex_comparison:{match:"\\=~",name:"keyword.operator.logical.regex.shell"},regexp:{patterns:[{match:".+"}]},simple_options:{match:"(?:[ \\t]++\\-\\w+)*",captures:{0:{patterns:[{match:"[ \\t]++(\\-)(\\w+)",captures:{1:{name:"string.unquoted.argument.shell constant.other.option.dash.shell"},2:{name:"string.unquoted.argument.shell constant.other.option.shell"}}}]}}},start_of_command:{match:"[ \\t]*+(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?!foreach\\b(?!\\/)|select\\b(?!\\/)|repeat\\b(?!\\/)|until\\b(?!\\/)|while\\b(?!\\/)|case\\b(?!\\/)|done\\b(?!\\/)|elif\\b(?!\\/)|else\\b(?!\\/)|esac\\b(?!\\/)|then\\b(?!\\/)|for\\b(?!\\/)|end\\b(?!\\/)|in\\b(?!\\/)|fi\\b(?!\\/)|do\\b(?!\\/)|if\\b(?!\\/))(?!\\\\\\n?$)"},start_of_double_quoted_command_name:{match:`(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?:[ \\t]*+([^
|
|
3
|
+
'&;<>\\(\\)\\$\`\\\\"\\|]+(?!>)))?(?:(?:\\$")|")`,captures:{1:{name:"entity.name.function.call.shell entity.name.command.shell",patterns:[{match:"\\*",name:"variable.language.special.wildcard.shell"},{include:"#variable"},{include:"#numeric_literal"},{match:"(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",captures:{1:{name:"constant.language.$1.shell"}}}]}},name:"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},start_of_single_quoted_command_name:{match:`(?!(?:!|&|\\||\\(|\\)|\\{|\\[|<|>|#|\\n|$|;|[ \\t]))(?:[ \\t]*+([^
|
|
4
|
+
'&;<>\\(\\)\\$\`\\\\"\\|]+(?!>)))?(?:(?:\\$')|')`,captures:{1:{name:"entity.name.function.call.shell entity.name.command.shell",patterns:[{match:"\\*",name:"variable.language.special.wildcard.shell"},{include:"#variable"},{include:"#numeric_literal"},{match:"(?<!\\w)(\\b(?:true|false)\\b)(?!\\w)",captures:{1:{name:"constant.language.$1.shell"}}}]}},name:"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},string:{patterns:[{match:"\\\\.",name:"constant.character.escape.shell"},{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.quoted.single.shell"},{begin:'\\$?"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.quoted.double.shell",patterns:[{match:'\\\\[\\$\\n`"\\\\]',name:"constant.character.escape.shell"},{include:"#variable"},{include:"#interpolation"}]},{begin:"\\$'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.shell"}},endCaptures:{0:{name:"punctuation.definition.string.end.shell"}},name:"string.quoted.single.dollar.shell",patterns:[{match:"\\\\(?:a|b|e|f|n|r|t|v|\\\\|')",name:"constant.character.escape.ansi-c.shell"},{match:'\\\\[0-9]{3}"',name:"constant.character.escape.octal.shell"},{match:'\\\\x[0-9a-fA-F]{2}"',name:"constant.character.escape.hex.shell"},{match:'\\\\c."',name:"constant.character.escape.control-char.shell"}]}]},support:{patterns:[{match:"(?<=^|;|&|\\s)(?::|\\.)(?=\\s|;|&|$)",name:"support.function.builtin.shell"}]},variable:{patterns:[{match:"(\\$)(\\@(?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},2:{name:"variable.parameter.positional.all.shell"}}},{match:"(\\$)([0-9](?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.parameter.positional.shell"},2:{name:"variable.parameter.positional.shell"}}},{match:"(\\$)([-*#?$!0_](?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.language.special.shell"},2:{name:"variable.language.special.shell"}}},{begin:"(\\$)(\\{)[ \\t]*+(?=\\d)",end:"\\}",beginCaptures:{1:{name:"punctuation.definition.variable.shell variable.parameter.positional.shell"},2:{name:"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},endCaptures:{0:{name:"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},contentName:"meta.parameter-expansion",patterns:[{match:"!|:[-=?]?|\\*|@|##|#|%%|%|\\/",name:"keyword.operator.expansion.shell"},{match:"(\\[)[^\\]]+(\\])",captures:{1:{name:"punctuation.section.array.shell"},2:{name:"punctuation.section.array.shell"}}},{match:"[0-9]+",name:"variable.parameter.positional.shell"},{match:"(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)",name:"variable.other.normal.shell"},{include:"#variable"},{include:"#string"}]},{begin:"(\\$)(\\{)",end:"\\}",beginCaptures:{1:{name:"punctuation.definition.variable.shell"},2:{name:"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},endCaptures:{0:{name:"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},contentName:"meta.parameter-expansion",patterns:[{match:"!|:[-=?]?|\\*|@|##|#|%%|%|\\/",name:"keyword.operator.expansion.shell"},{match:"(\\[)[^\\]]+(\\])",captures:{1:{name:"punctuation.section.array.shell"},2:{name:"punctuation.section.array.shell"}}},{match:"(?<!\\w)[a-zA-Z_0-9-]+(?!\\w)",name:"variable.other.normal.shell"},{include:"#variable"},{include:"#string"}]},{match:"(\\$)(\\w+(?!\\w))",captures:{1:{name:"punctuation.definition.variable.shell variable.other.normal.shell"},2:{name:"variable.other.normal.shell"}}}]}},displayName:"Shell",aliases:["bash","console","sh","shell","zsh"]});var n=[e];export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aq as m,b2 as n,a as s,J as o}from"./entry.ecba488a.js";function u(){const p=m(),t=n("getComponents",()=>o.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(t.value||[]).find(a=>a.pascalName===e.pascalName)));return s(()=>[...l.value,...t.value||[]].sort((e,a)=>e.pascalName.localeCompare(a.pascalName)))}function r(){return n("getComponentsRelationships",()=>o.getComponentsRelationships())}export{r as a,u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as F}from"./Badge.
|
|
1
|
+
import{_ as F}from"./Badge.2520e67e.js";import{_ as L}from"./NCodeBlock.vue.070d4546.js";import{_ as E}from"./NCheckbox.vue.e0da702b.js";import{_ as A}from"./NTip.vue.e10afe8f.js";import{d as G,N as W,b3 as q,r as V,b4 as z,L as H,P as J,o as m,m as v,a5 as K,f as t,t as $,p as w,F as B,i as s,h as O,j as u,k as h,l as M,v as p,C as Q,V as X,b5 as Y,a7 as Z,a as ee,an as te,ao as ae,b6 as se,b2 as ne}from"./entry.ecba488a.js";const oe={key:0},le={p4:"",flex:"~ col gap-1"},re={class:"text-lg font-medium leading-6"},ue=h("p",{op50:""}," The following command will be executed in your terminal: ",-1),ie={flex:"~ gap-3",mt2:"","justify-end":""},ge=G({__name:"NpmVersionCheck",props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(l){const a=l,e=W(),{info:n,update:i,state:y,processId:k,restart:c}=q(a.packageName,a.options),f=V(!0),_=V(!0),U=z(),x=H(),R=J();async function b(){const r=await i(async o=>x.start(o));r&&_.value&&U.value.push({id:r,message:`${a.packageName} has been updated. Do you want to restart the Nuxt server now?`}),r&&f.value&&(R.value=r,e.push("/modules/terminals"))}return(r,o)=>{const C=F,S=L,N=E,T=A,P=Q,j=X;return m(),v(B,null,[K(r.$slots,"default",{id:t(k),info:t(n),update:b,state:t(y),restart:t(c)},()=>[t(n)&&r.showVersion?(m(),v("code",oe,$(`v${t(n).current}`),1)):w("",!0),t(n)?.latest?(m(),v(B,{key:1},[t(n).needsUpdate?(m(),v("button",{key:0,onClick:o[0]||(o[0]=g=>b())},[s(C,{"bg-green-400:10":"","text-green-400":"",title:"updates available",textContent:"updates available"})])):(m(),O(C,{key:1,"bg-gray-400:10":"","text-gray-400":"",title:"latest",textContent:"latest"}))],64)):w("",!0)]),s(t(x),null,{default:u(({resolve:g,args:I})=>[s(j,{"model-value":!0,onClose:d=>g(!1)},{default:u(()=>[h("div",le,[h("h3",re," Update "+$(a.packageName)+"? ",1),ue,s(S,{code:I[0],lang:"bash",my3:"",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s(N,{modelValue:t(f),"onUpdate:modelValue":o[1]||(o[1]=d=>M(f)?f.value=d:null),n:"primary"},{default:u(()=>[p(" Navigate to terminal ")]),_:1},8,["modelValue"]),s(N,{modelValue:t(_),"onUpdate:modelValue":o[2]||(o[2]=d=>M(_)?_.value=d:null),n:"primary"},{default:u(()=>[p(" Restart Nuxt server after update ")]),_:1},8,["modelValue"]),h("div",ie,[s(T,{n:"sm purple","flex-auto":"",icon:"carbon-chemistry"},{default:u(()=>[p(" Experimental feature. Please make sure to backup your project first. ")]),_:1}),s(P,{onClick:d=>g(!1)},{default:u(()=>[p(" Cancel ")]),_:2},1032,["onClick"]),s(P,{n:"solid primary",onClick:d=>g(!0)},{default:u(()=>[p(" Update ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)}}}),D=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"];function de(){return ne("getModulesList",async()=>(await $fetch("https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json")).filter(a=>!D.includes(a.npm)&&a.compatibility.nuxt.includes("^3")))}function ve(){return Y("installed-modules",()=>{const l=Z(),a=de();return ee(()=>(l.value?._installedModules||[]).map(e=>{if(!e.entryPath)return;const n=e.entryPath&&te(e.entryPath),i=e.meta?.name?e.meta?.name:e.entryPath?n?ae(e.entryPath):l.value?.rootDir?se(e.entryPath,l.value?.rootDir).path:void 0:void 0,y=l.value?.modules?.includes(i),k=a.value?.find(c=>c.npm===i)||a.value?.find(c=>c.name===i);return{name:i,isPackageModule:n,isUninstallable:y,info:k,...e}}).filter(e=>e&&(!e.name||!D.includes(e.name))))})}export{ge as _,de as a,ve as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as O}from"./NCodeBlock.vue.
|
|
1
|
+
import{_ as O}from"./NCodeBlock.vue.070d4546.js";import{d as B,bk as N,e as R,av as D,o as n,m as a,k as c,F as f,n as V,E as _,f as s,t as $,i as m,j as b,v,h as E,p as i,C as F,r as k,J as r,bl as h,bm as y}from"./entry.ecba488a.js";const T={key:0,relative:"","n-code-block":""},W={flex:"~ wrap","w-full":""},j=["onClick"],z=c("div",{border:"b base","flex-auto":""},null,-1),J={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},K=B({__name:"CodeSnippets",props:{codeSnippets:{}},setup(o){const p=o,e=N(p.codeSnippets[0]),w=R();return D(()=>{p.codeSnippets.includes(e.value)||(e.value=p.codeSnippets[0])}),(l,d)=>{const x=O,u=F;return l.codeSnippets.length?(n(),a("div",T,[c("div",W,[(n(!0),a(f,null,V(l.codeSnippets,(t,S)=>(n(),a("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:_(t===s(e)?"":"border-b"),onClick:G=>e.value=t},[c("div",{class:_(t===s(e)?"":"op30"),"font-mono":""},$(t.name),3)],10,j))),128)),z]),s(e)?(n(),a(f,{key:0},[m(x,{code:s(e).code,lang:s(e).lang,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),c("div",J,[m(u,{icon:"carbon-copy",onClick:d[0]||(d[0]=t=>s(w)(s(e).code))},{default:b(()=>[v(" Copy ")]),_:1}),s(e)?.docs?(n(),E(u,{key:0,to:s(e).docs,target:"_blank",icon:"carbon-catalog"},{default:b(()=>[v(" Docs ")]),_:1},8,["to"])):i("",!0)])],64)):i("",!0)])):i("",!0)}}}),g=k(await r.getOptions("assets")),L=h(g);y(g,async o=>{r.updateOptions("assets",o)},{deep:!0,flush:"post",debounce:500,maxWait:1e3});const C=k(await r.getOptions("serverRoutes")),q=h(C);y(C,async o=>{r.updateOptions("serverRoutes",o)},{deep:!0,flush:"post",debounce:500,maxWait:1e3});const A={serverRoutes:q,assets:L};function M(o){return A[o]}export{K as _,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as O,N as ae,r as U,O as E,
|
|
1
|
+
import{d as O,N as ae,r as U,O as E,bo as P,aw as oe,w as se,av as le,W as re,a as ue,J as f,K as k,f as t,o as l,h as _,j as u,k as r,i as d,l as j,m as i,F as w,n as D,t as b,E as T,aa as A,v as c,p as F,ap as ie,H as ce,b7 as de,ab as pe,bp as _e,bq as z,_ as me,U as fe,a0 as ve,C as ye,ak as ge,A as he,R as ke,aB as be}from"./entry.ecba488a.js";import{_ as xe}from"./NSelect.vue.50512422.js";import{_ as we}from"./NLink.vue.4d6f9b4a.js";import{_ as Ce}from"./FilepathItem.vue.6f5b0e95.js";import{U as Ke}from"./json-editor-vue.daaf9bf6.js";const Se={class:"h-[48px] flex items-center justify-between gap1 px-3"},$e={class:"w-full text-sm"},Ve=["value"],Ne=["onClick"],Ie=r("div",{"x-divider":""},null,-1),Ue={key:0,"h-full":"","of-hidden":"",flex:"~ col"},je={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},De={class:"flex items-center gap-4"},Ae={key:1},Be=["onKeyup"],Le=r("br",null,null,-1),Me={key:0,op50:""},qe={key:1},Re=r("code",null,"nitro.storage",-1),Ee=r("br",null,null,-1),Pe={"font-bold":""},Te=r("br",null,null,-1),Fe={"text-sm":""},ze=r("br",null,null,-1),Oe=O({__name:"StorageDetails",async setup(W){let p,g;const C=_e(),h=ae(),x=U(""),v=U(""),s=E("storage:current",""),e=U(),y=E("storage:file:state",""),{data:K}=([p,g]=P(()=>z("storageMounts",()=>f.getStorageMounts())),p=await p,g(),p),{data:S,refresh:B}=([p,g]=P(async()=>z("storageKeys",async()=>s.value?await f.getStorageKeys(s.value):[])),p=await p,g(),p),G=C.hook("storage:key:update",async(n,a)=>{if(!(!s.value||n.split(":")[0]!==s.value)&&(await B(),y.value===n)){if(a==="remove")return h.replace({query:{storage:s.value}});await V(y.value)}});oe(G),se(s,()=>{B(),y.value=""}),le(async()=>{if(!y.value){e.value=null;return}V(y.value)}),re("keydown",n=>{n.key==="s"&&(n.ctrlKey||n.metaKey)&&(N(),n.preventDefault())});function $(n){return n.replace(`${s.value}:`,"")}const H=ue(()=>S.value?S.value.filter(n=>n.includes(x.value)):[]);async function V(n){const a=await f.getStorageItem(await k(),n);e.value={key:n,updatedKey:$(n),editingKey:!1,content:a,updatedContent:a}}async function J(){if(!v.value||!s.value)return;const n=`${s.value}:${v.value}`;S.value?.includes(n)||await f.setStorageItem(await k(),n,""),h.replace({query:{storage:s.value,key:n}}),v.value=""}async function N(){e.value&&(await f.setStorageItem(await k(),e.value.key,e.value.updatedContent),await V(e.value.key))}async function Q(){!e.value||!s.value||(await f.removeStorageItem(await k(),e.value.key),e.value=null)}async function X(){if(!e.value||!s.value)return;const n=`${s.value}:${e.value.updatedKey}`,a=await k();await f.setStorageItem(a,n,e.value.updatedContent),await f.removeStorageItem(a,e.value.key),h.replace({query:{storage:s.value,key:n}})}return(n,a)=>{const Y=me,Z=xe,I=fe,ee=ve,L=ye,M=we,q=ge,R=he,te=ke,ne=Ce;return t(s)?(l(),_(te,{key:0,"storage-key":"tab-storage"},{left:u(()=>[r("div",Se,[d(Y,{icon:"carbon-chevron-left","ml--1":"",onClick:a[0]||(a[0]=o=>s.value="")}),r("div",$e,[d(Z,{modelValue:t(s),"onUpdate:modelValue":a[1]||(a[1]=o=>j(s)?s.value=o:null),n:"primary",icon:"carbon-data-base"},{default:u(()=>[(l(!0),i(w,null,D(t(K),(o,m)=>(l(),i("option",{key:m,value:m},b(m),9,Ve))),128))]),_:1},8,["modelValue"])])]),d(I,{modelValue:t(x),"onUpdate:modelValue":a[2]||(a[2]=o=>j(x)?x.value=o:null),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(l(!0),i(w,null,D(t(H),o=>(l(),i(w,{key:o},[r("button",{block:"","w-full":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:T(o===t(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:m=>y.value=o},b($(o)),11,Ne),Ie],64))),128)),d(I,{modelValue:t(v),"onUpdate:modelValue":a[3]||(a[3]=o=>j(v)?v.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:A(J,["enter"])},null,8,["modelValue","onKeyup"])]),right:u(()=>[t(e)?.key?(l(),i("div",Ue,[r("div",je,[r("div",De,[t(e).editingKey?(l(),_(I,{key:0,modelValue:t(e).updatedKey,"onUpdate:modelValue":a[4]||(a[4]=o=>t(e).updatedKey=o),onKeyup:A(X,["enter"])},null,8,["modelValue","onKeyup"])):(l(),i("code",Ae,[c(b($(t(e).key))+" ",1),d(ee,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:a[5]||(a[5]=o=>t(e).editingKey=!0)})])),t(e).editingKey?F("",!0):(l(),_(L,{key:2,n:"green xs",disabled:t(e).content===t(e).updatedContent,class:T({"border-green":t(e).content!==t(e).updatedContent}),onClick:N},{default:u(()=>[c(" Save ")]),_:1},8,["disabled","class"]))]),r("div",null,[d(L,{n:"red xs",onClick:Q},{default:u(()=>[c(" Delete ")]),_:1})])]),typeof t(e).content=="object"?(l(),_(t(Ke),ie({key:0,modelValue:t(e).updatedContent,"onUpdate:modelValue":a[6]||(a[6]=o=>t(e).updatedContent=o),class:[[n.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},n.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):ce((l(),i("textarea",{key:1,"onUpdate:modelValue":a[7]||(a[7]=o=>t(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 text-sm font-mono outline-none",onKeyup:A(de(N,["ctrl"]),["enter"])},null,40,Be)),[[pe,t(e).updatedContent]])])):(l(),_(R,{key:1},{default:u(()=>[d(q,{px6:"",py4:""},{default:u(()=>[c(" Select one key to start."),Le,c("Learn more about "),d(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[c(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(l(),_(R,{key:1},{default:u(()=>[Object.keys(t(K)).length?(l(),i("p",Me," Select one storage to start: ")):(l(),i("p",qe,[c(" No custom storage defined in "),Re,c("."),Ee,c(" Learn more about "),d(M,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>[c(" Nitro storage ")]),_:1})])),(l(!0),i(w,null,D(t(K),(o,m)=>(l(),_(q,{key:m,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:We=>s.value=m},{default:u(()=>[r("span",Pe,b(m),1),Te,r("span",Fe,b(o.driver)+" driver",1),ze,o.base?(l(),_(ne,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):F("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}}),Ye=O({__name:"storage",setup(W){return(p,g)=>{const C=Oe,h=be;return l(),_(h,null,{default:u(()=>[d(C)]),_:1})}}});export{Ye as default};
|