選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

company-ea6e4863.js 3.0 KiB

9ヶ月前
1
  1. import{j as f,k as o,s as y,c as b,a,m as u,v as _,i as x,t as w,d as k,n as I,p as S,q as j,e as V,o as B,_ as C}from"./index-5dca7a6a.js";import{c as N,p as v}from"./api-2fe5baa7.js";const m=l=>(S("data-v-052785a8"),l=l(),j(),l),T={class:"page-wrapper",id:"app","data-layout":"horizontal","data-navbarbg":"skin6","data-sidebartype":"full","data-sidebar-position":"fixed","data-header-position":"fixed"},E=k('<header class="app-header" data-v-052785a8><nav class="navbar navbar-expand-lg navbar-light container-fluid px-0" data-v-052785a8><ul class="navbar-nav" data-v-052785a8><li class="nav-item d-block d-lg-none" data-v-052785a8><a class="nav-link sidebartoggler ms-n3" id="sidebarCollapse" href="javascript:void(0)" data-v-052785a8><i class="ti ti-menu-2" data-v-052785a8></i></a></li><li class="nav-item d-none d-lg-block" data-v-052785a8><a href="index.html" class="text-nowrap nav-link" data-v-052785a8><img src="'+V+'" class="light-logo" width="180" alt="" data-v-052785a8></a></li></ul></nav></header>',1),H={class:"body-wrapper overflow-hidden"},A={class:"position-relative overflow-hidden min-vh-100 d-flex align-items-center justify-content-center drawise-auth-bg"},D={class:"d-flex align-items-center justify-content-center w-100"},F={class:"row justify-content-center w-100"},M={class:"col-md-8 col-lg-6 col-xxl-3"},P={class:"card mb-0"},U={class:"card-body"},$=m(()=>a("h1",{class:"display-6 fs-7 mb-4"},"Enter your company name",-1)),q={class:"mb-3"},z={class:"mb-4"},L=["disabled"],G=m(()=>a("i",{class:"ti ti-chevron-right fs-4 me-2"},null,-1)),J=f({__name:"company",setup(l){const n=o(),c=o(),i=o(!1),d=o("Continue"),r=o(),p=o();y(()=>{N()});async function h(){try{i.value=!0,d.value="loading...",(await v)("/create_site/company/",{name:n.value,slogon:c.value}).then(s=>{var t;if(console.log(s.data),r.value=s.data.id,s.data)try{v("/create_site/sites/",{site_name:n.value,company:r.value,domain_name:(t=n.value)==null?void 0:t.toString().replace(/\s/g,"")}).then(e=>{e.data&&(console.log(e.data),p.value=e.data.id,v("/create_site/pages/",{site:p.value,page_name:"Home",content:"<h1>Home Page</h1>"}).then(g=>{console.log(g.data),I.push(`site/create/${r.value}/${p.value}/palette`)}))}).catch(()=>{i.value=!1,d.value="Failed. Try Again."})}catch{}}).catch(()=>{i.value=!1,d.value="Failed. Try Again."})}catch(s){console.error(s)}}return(s,t)=>(B(),b("div",T,[E,a("div",H,[a("div",A,[a("div",D,[a("div",F,[a("div",M,[a("div",P,[a("div",U,[a("div",null,[$,a("div",q,[u(a("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),type:"text",class:"form-control",id:"exampleInputEmail1","aria-describedby":"emailHelp",placeholder:"Brand Name"},null,512),[[_,n.value]])]),a("div",z,[u(a("input",{"onUpdate:modelValue":t[1]||(t[1]=e=>c.value=e),type:"text",class:"form-control",id:"exampleInputPassword1",placeholder:"Slogan"},null,512),[[_,c.value]])]),a("button",{onClick:h,class:"btn btn-success w-100 py-8 mb-4 rounded-2",disabled:i.value},[x(w(d.value)+" ",1),G],8,L)])])])])])])])])]))}});const Q=C(J,[["__scopeId","data-v-052785a8"]]);export{Q as default};