Deploying to gh-pages from @ arashsheyda/nuxt-mongoose@6c057d4cd7 🚀
This commit is contained in:
1
_nuxt/Sandbox.e1b6edef.js
Normal file
1
_nuxt/Sandbox.e1b6edef.js
Normal file
@ -0,0 +1 @@
|
||||
import f from"./TabsHeader.bdd30065.js";import{a as x,ag as g,r as n,f as h,o as r,i as l,c as S,u as c,l as y,x as k}from"./entry.b743b421.js";const $={class:"sandbox"},w=["src"],B={key:2},C=x({__name:"Sandbox",props:{src:{type:String,default:""},repo:{type:String,default:""},branch:{type:String,default:""},dir:{type:String,default:""},file:{type:String,default:"app.vue"}},setup(i){const e=i,u=g(),o={CodeSandBox:()=>`https://codesandbox.io/embed/github/${e.repo}/tree/${e.branch}/${e.dir}?hidenavigation=1&theme=${u.value}`,StackBlitz:()=>`https://stackblitz.com/github/${e.repo}/tree/${e.branch}/${e.dir}?embed=1&file=${e.file}&theme=${u.value}`},p=Object.keys(o).map(t=>({label:t})),d=n(-1),b=n(),s=n(""),a=n(""),_=t=>{a.value=t,s.value=e.src||o[a.value](),localStorage.setItem("docus_sandbox",t)},m=t=>{d.value=t,_(p[t].label)};return h(()=>{a.value=window.localStorage.getItem("docus_sandbox")||"CodeSandBox",s.value=e.src||o[a.value](),d.value=Object.keys(o).indexOf(a.value)}),(t,I)=>{const v=f;return r(),l("div",$,[i.src?y("",!0):(r(),S(v,{key:0,ref_key:"tabs",ref:b,"active-tab-index":c(d),tabs:c(p),"onUpdate:activeTabIndex":m},null,8,["active-tab-index","tabs"])),c(s)?(r(),l("iframe",{key:1,src:c(s),title:"Sandbox editor",sandbox:"allow-modals allow-forms allow-popups allow-scripts allow-same-origin"},null,8,w)):(r(),l("span",B,"Loading Sandbox..."))])}}});const O=k(C,[["__scopeId","data-v-91be1191"]]);export{O as default};
|
||||
Reference in New Issue
Block a user