PageSourceSearch

https://spinsudz.com/_nuxt/BlS3cql5.js

js spinsudz.com collected 2026-09-24 14:01:55 UTC 7,326 bytes, 1 lines download raw bytes

1import{_ as h,E as U}from"./R7eN9sW4.js";import{_ as V}from"./DCrCMa3K.js";import{d as L,f as x,k,S as B,o as c,c as d,M as _,a as o,s as $,b as O,u as t,G as H,A as P,bj as j,g as W,h as G,r as R,n as J,j as K,B as A,x as F,e as w,t as z,_ as Y}from"./CRcD7-OL.js";import{H as s,u as q}from"./CQnfphs_.js";import{u as Q}from"./LpK6q1No.js";import"./YHBFWcH7.js";import"./CgkgPdez.js";import"./CppaU2De.js";import"./WRyiheJW.js";import"./uBKjD5Rv.js";import"./B-umOB_6.js";import"./AXXv7PeY.js";function X(b,n){var l="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(b)),r=document.createElement("a");r.setAttribute("href",l),r.setAttribute("download",n+".json"),document.body.appendChild(r),r.click(),r.remove()}const Z=L({__name:"ExportImportTools",setup(b){const n=x(),l=k(!1),r=k(null);function a(){X(n.currentPage||{},n.currentPage?.name||"Page")}function f(){l.value=!1,r.value&&r.value.click()}function C(v){const i=v.target;if(i&&i.files&&i.files.length>0){let p=new FileReader;p.onload=function(){const u=JSON.parse(p.result);n.currentPage&&(n.currentPage.blocks=u.blocks,n.currentPage.children=u.children,n.currentPage.name=u.name,n.currentPage.settings=u.settings)},p.readAsText(i.files[0])}}return(v,i)=>{const p=V,u=B("tippy");return c(),d("div",null,[_((c(),d("button",{onClick:a,class:"btn btn-light btn-sm me-1"},i[3]||(i[3]=[o("i",{class:"ti ti-file-export"},null,-1)]))),[[u,"Export Page Data"]]),_((c(),d("button",{onClick:i[0]||(i[0]=T=>l.value=!0),class:"btn btn-light btn-sm"},i[4]||(i[4]=[o("i",{class:"ti ti-file-import"},null,-1)]))),[[u,"Import Page Data"]]),o("input",{ref_key:"file",ref:r,type:"file",style:{width:"0",height:"0",display:"none",visibility:"hidden"},onChange:C},null,544),(c(),$(j,{to:"body"},[O(p,{title:"Caution",type:"warning",icon:"ti ti-alert-triangle",active:t(l),onClose:i[1]||(i[1]=T=>l.value=!1),onCancel:i[2]||(i[2]=T=>l.value=!1),onConfirm:f},{default:H(()=>i[5]||(i[5]=[o("div",{class:"alert alert-warning"},[P(" The import will "),o("b",null,"replace all data except URL"),P(" on the current page. "),o("br"),P("Do you want to continue? ")],-1)])),_:1},8,["active"])]))])}}}),tt={[s.INIT]:"",[s.VOID]:"",[s.MOVE_BLOCK_DOWN]:"Move block down",[s.MOVE_BLOCK_UP]:"Move block up",[s.ADD_BLOCK]:"Add {name} block",[s.REMOVE_BLOCK]:"Remove {name} block",[s.UPDATE_IMAGE]:"Update image",[s.UPDATE_SETTINGS]:"Update block settings",[s.ADD_PAGE]:"Add {name} page",[s.REMOVE_PAGE]:"Remove {name} page",[s.CUT_BLOCK]:"Cut Block",[s.DUPLICATE_BLOCK]:"Duplicate Block",[s.PASTE_BLOCK]:"Paste Block",[s.UPDATE_GALLERY]:"Update Gallery",[s.REMOVE_GALLERY_ITEM]:"Delete gallery picture",[s.UPDATE_REVIEW]:"Update review",[s.ADD_REVIEW]:"Add review",[s.REMOVE_REVIEW]:"Delete review",[s.MOVE_REVIEW]:"Move review",[s.LIST_ROW_ADD]:"Add List Row",[s.LIST_ROW_DELETE]:"Delete List Row",[s.LIST_ROW_REORDER]:"Reorder Rows",[s.ICON_UPDATE]:"Update Icon",[s.ADD_BUTTON]:"Add Button",[s.REMOVE_BUTTON]:"Delete Button",[s.REORDER_BUTTONS]:"Reorder Buttons"};function M(b){let n=tt[b.action];if(b.actionData)for(const l of Object.keys(b.actionData))n=n.replace(new RegExp(`{${l}}`,"g"),b.actionData[l]);return n}const et={class:"adminTopbar"},nt={class:"ps-5"},st={key:0,class:"d-flex align-items-center ps-3"},ot={style:{"line-height":"1.1"},class:"me-3"},it={class:"small muted"},at={key:0,class:"ms-2"},lt={key:1,class:"d-flex align-items-center ps-3"},rt={style:{"line-height":"1.1"},class:"me-3"},ct={class:"d-flex align-items-center px-3",style:{gap:"15px"}},dt={key:0,class:"d-flex",style:{gap:"5px"}},ut=["disabled"],gt=["disabled"],pt={style:{"font-size":"14px"}},mt={style:{"font-weight":"bold",display:"inline-block",width:"30px","text-align":"left"}},bt=["disabled"],ft=L({__name:"AdminTopbar",setup(b){const n=q(),l=W(),r=G(),a=x(),f=Q();function C(){l.editing=!l.editing}const v=R({active:!1,page:a.currentPage}),i=R({active:!1,article:f.state.currentArticle});J(()=>{v.page=a.currentPage,i.article=f.state.currentArticle});const p=K(()=>l.editing),u=k(!1);async function T(g=!1){u.value=!0;try{f.state.currentArticle?await $fetch("/api/article",{method:"POST",body:JSON.parse(JSON.stringify({...f.state.currentArticle}))}):await $fetch("/api/pages",{method:"POST",body:JSON.parse(JSON.stringify({publish:g,page:a.currentPage,website_settings:r.state.settings,customHTML:r.customHTML,customCSS:r.customCSS,menus:a.state.menus,global_blocks:a.state.globalBlocks}))})}catch(e){console.error(e)}u.value=!1}const S=k();function I(g){var e=new FileReader;e.onload=D=>{var m=JSON.parse(D.target.result);a.list.splice(0,a.list.length),a.list.push(...m.pages),Object.assign(r.settings,m.websiteSettings),Object.assign(a.list,m.pages),m.menus&&m.menus.header&&(a.state.menus=m.menus),Object.assign(a.globalBlocks,m.globalBlocks),S.value&&(S.value.value=""),n.saveLocal({action:s.INIT})},e.readAsText(g.target.files[0])}return(g,e)=>{const D=h,m=U,N=Z,y=B("tippy");return c(),d("div",et,[O(D,{active:t(v).active,onClose:e[0]||(e[0]=E=>t(v).active=!1),"edit-page":t(v).page},null,8,["active","edit-page"]),O(m,{active:t(i).active,onClose:e[1]||(e[1]=E=>t(i).active=!1),"article-to-edit":t(i).article},null,8,["active","article-to-edit"]),o("div",nt,[t(a).currentPage?(c(),d("div",st,[_((c(),d("button",{class:"btn btn-primary btn-sm me-3",onClick:e[2]||(e[2]=E=>t(v).active=!0)},e[7]||(e[7]=[o("i",{class:"ti ti-pencil"},null,-1)]))),[[y,"Page Settings"]]),o("div",ot,[o("div",null,[o("b",null,A(t(a).currentPage.name),1)]),o("div",it," Title: "+A(("getPageTitle"in g?g.getPageTitle:t(F))({page:t(a).currentPage}).value),1)]),t(l).allowCustomHTML?(c(),d("div",at,[O(N)])):w("",!0)])):t(f).state.currentArticle?(c(),d("div",lt,[_((c(),d("button",{class:"btn btn-primary btn-sm me-3",onClick:e[3]||(e[3]=E=>t(i).active=!0)},e[8]||(e[8]=[o("i",{class:"ti ti-pencil"},null,-1)]))),[[y,"Article Settings"]]),o("div",rt,[o("div",null,[o("b",null,A(t(f).state.currentArticle.title),
11)])])])):w("",!0)]),o("div",ct,[t(p)?(c(),d("div",dt,[_((c(),d("button",{onClick:e[4]||(e[4]=(...E)=>t(n).undo&&t(n).undo(...E)),disabled:!(t(n).pageHistoryPosition>0&&t(n).currentEntry),class:"btn btn-sm btn--undo"},e[9]||(e[9]=[o("i",{class:"ti ti-arrow-back-up"},null,-1)]),8,ut)),[[y,t(n).currentEntry&&t(n).currentEntry.action?"Undo: "+("getHistoryActionLabel"in g?g.getHistoryActionLabel:t(M))(t(n).currentEntry):null]]),_((c(),d("button",{onClick:e[5]||(e[5]=(...E)=>t(n).redo&&t(n).redo(...E)),class:"btn btn-sm btn--undo",disabled:!t(n).nextEntry},e[10]||(e[10]=[o("i",{class:"ti ti-arrow-forward-up"},null,-1)]),8,gt)),[[y,t(n).nextEntry&&t(n).nextEntry.action?"Redo: "+("getHistoryActionLabel"in g?g.getHistoryActionLabel:t(M))(t(n).nextEntry):null]])])):w("",!0),_((c(),d("button",{style:{"background-color":"transparent",border:"0"},onClick:C,class:"d-flex align-items-center"},[o("div",pt,[e[11]||(e[11]=P(" Edit Page: ")),o("span",mt,A(t(p)?"ON":"OFF"),1)]),o("div",{class:z(["ms-2 editModeToggle",{"editModeToggle--active":t(p)}])},null,2)])),[[y,{content:"Editing mode",placement:"bottom"}]]),o("input",{type:"file",ref_key:"filePicker",ref:S,onChange:I,style:{display:"none"}},null,544),o("button",{class:"btn btn-success btn-sm",onClick:e[6]||(e[6]=E=>T(!0)),disabled:t(u)},A(t(u)?"Saving...":"Save"),9,bt)])])}}}),wt=Y(ft,[["__scopeId","data-v-174e8647"]]);export{wt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.