Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

2 rindas
2.7 KiB

  1. import{j as _,z as p,k as h,s as b,r as v,c as f,a as t,b as s,w as o,m,v as g,d as x,e as y,o as w,i}from"./index-5dca7a6a.js";import{c as k,g as B,a as L}from"./api-2fe5baa7.js";const j={class:"page-wrapper",id:"app","data-layout":"horizontal","data-navbarbg":"skin6","data-sidebartype":"full","data-sidebar-position":"fixed","data-header-position":"fixed"},C=x('<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-block d-lg-none"><a class="nav-link sidebartoggler ms-n3" id="sidebarCollapse" href="javascript:void(0)"><i class="ti ti-menu-2"></i></a></li><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),V={class:"body-wrapper overflow-hidden"},D={class:"position-relative overflow-hidden min-vh-100 d-flex align-items-center justify-content-center drawise-auth-bg"},N={class:"d-flex align-items-center justify-content-center w-100"},T={class:"row justify-content-center w-100"},z={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),U={class:"wrapper"},I={class:"tabs clearfix","data-tabgroup":"first-tab-group"},M={id:"first-tab-group",class:"tabgroup"},$={id:"tab1"},P={class:"form-floating mb-3"},S=t("label",null,"Website Title",-1),G=_({__name:"basic",setup(W){const l=p().params.id,n=h();b(()=>{k(),d()});async function d(){try{(await B)(`/create_site/sites/${l}/`).then(e=>{console.log(e.data),n.value=e.data.site_name})}catch(e){console.error(e)}}const r=()=>{try{L(`/create_site/sites/${l}/`,{site_name:n.value}).then(e=>{console.log("Layout updated successfully:",e.data)})}catch(e){console.error("Error updating layout:",e)}};return(e,c)=>{const a=v("RouterLink");return w(),f("div",j,[C,t("div",V,[t("div",D,[t("div",N,[t("div",T,[t("div",z,[s(a,{to:"../../dashboard",class:"btn btn-outline-warning py-8 mb-4 rounded-2"},{default:o(()=>[E,i(" Back To Dashboard")]),_:1}),R,t("div",U,[t("ul",I,[t("li",null,[s(a,{to:"pages"},{default:o(()=>[i("Edit Pages")]),_:1})]),t("li",null,[s(a,{to:"basic",class:"active"},{default:o(()=>[i("Basic Info")]),_:1})]),t("li",null,[s(a,{to:"layout"},{default:o(()=>[i("Layout")]),_:1})]),t("li",null,[s(a,{to:"domain"},{default:o(()=>[i("Link Domain")]),_:1})])]),t("section",M,[t("div",$,[t("div",P,[m(t("input",{type:"text",class:"form-control",placeholder:"Username","onUpdate:modelValue":c[0]||(c[0]=u=>n.value=u)},null,512),[[g,n.value]]),S]),t("button",{onClick:r,class:"btn btn-success"},"Update")])])])])])])])])])}}});export{G as default};