Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 

2 řádky
3.0 KiB

  1. import{j as p,z as h,k as f,s as b,r as g,c as d,a as t,b as e,w as a,F as v,u as m,d as w,e as y,o as r,i as o,t as x}from"./index-5dca7a6a.js";import{c as k,g as j}from"./api-2fe5baa7.js";const B={class:"page-wrapper",id:"app","data-layout":"horizontal","data-navbarbg":"skin6","data-sidebartype":"full","data-sidebar-position":"fixed","data-header-position":"fixed"},L=w('<header class="app-header"><nav class="navbar navbar-expand-lg navbar-light container-fluid px-0"><ul class="navbar-nav"><li class="nav-item d-none d-lg-block"><a href="index.html" class="text-nowrap nav-link"><img src="'+y+'" class="light-logo" width="180" alt=""></a></li></ul></nav></header>',1),D={class:"body-wrapper overflow-hidden"},N={class:"position-relative overflow-hidden min-vh-100 d-flex align-items-center justify-content-center drawise-auth-bg"},V={class:"d-flex align-items-center justify-content-center w-100"},z={class:"row justify-content-center w-100"},C={class:"col-md-8 col-lg-8 col-xxl-8"},E=t("i",{class:"ti ti-chevron-left fs-4 me-2"},null,-1),R=t("h1",{class:"display-6 fs-7 mb-4 text-center"}," Dashboard, let's Build it ",-1),F={class:"wrapper"},I={class:"tabs clearfix","data-tabgroup":"first-tab-group"},S={id:"first-tab-group",class:"tabgroup"},T={id:"tab1"},$={class:"card"},A={class:"card-body"},M={class:"row d-flex"},P={class:"col-6"},q={class:"fs-5 fw-bolder"},G={class:"col-6 d-flex justify-content-end"},H=t("button",{class:"btn btn-outline-primary btn-sm mx-2"},[t("i",{class:"ti ti-eye fs-4"})],-1),J=t("button",{class:"btn btn-primary btn-sm"},[t("i",{class:"ti ti-edit fs-4"})],-1),K=t("button",{class:"btn mb-1 d-block w-100 btn-outline-warning waves-effect waves-light",type:"button"},[t("i",{class:"ti ti-plus fs-4 me-2"}),o(" Add a page ")],-1),X=p({__name:"pages",setup(O){const _=h().params.id,l=f([]);b(()=>{k(),u()});async function u(){console.log("sjbvjs");try{(await j)("/create_site/pages/",{site:_}).then(i=>{console.log(i.data),i.data.forEach(n=>{console.log(n.site),n.site==_&&l.value.push(n)}),console.log(l.value)})}catch(i){console.error(i)}}return(i,n)=>{const s=g("RouterLink");return r(),d("div",B,[L,t("div",D,[t("div",N,[t("div",V,[t("div",z,[t("div",C,[e(s,{to:"../../dashboard",class:"btn btn-outline-warning py-8 mb-4 rounded-2"},{default:a(()=>[E,o(" Back To Dashboard")]),_:1}),R,t("div",F,[t("ul",I,[t("li",null,[e(s,{to:"pages",class:"active"},{default:a(()=>[o("Edit Pages")]),_:1})]),t("li",null,[e(s,{to:"basic"},{default:a(()=>[o("Basic Info")]),_:1})]),t("li",null,[e(s,{to:"layout"},{default:a(()=>[o("Layout")]),_:1})]),t("li",null,[e(s,{to:"domain"},{default:a(()=>[o("Link Domain")]),_:1})])]),t("section",S,[t("div",T,[(r(!0),d(v,null,m(l.value,c=>(r(),d("div",$,[t("div",A,[t("div",M,[t("div",P,[t("p",q,x(c.page_name),1)]),t("div",G,[e(s,{to:`../../site/page/${c.id}`,target:"_blank"},{default:a(()=>[H]),_:2},1032,["to"]),e(s,{to:`../../site/page/${c.id}/edit-page`},{default:a(()=>[J]),_:2},1032,["to"])])])])]))),256)),e(s,{to:"./new-page"},{default:a(()=>[K]),_:1})])])])])])])])])])}}});export{X as default};