From e2fe62db5be694573026fec708e5533b9c64a48f Mon Sep 17 00:00:00 2001 From: ysh Date: Mon, 23 Sep 2024 09:42:42 +0900 Subject: [PATCH] EventListener management UI build file update --- .../static/assets/EventListenerList-DcWsneEB.js | 17 +++++++++++++++++ .../static/assets/EventListenerList-DsuTxzkw.js | 17 ----------------- ...{OssList-Bihra8rt.js => OssList-CSNofrF6.js} | 2 +- .../static/assets/ParamForm-B0X0LuP1.js | 1 - .../static/assets/ParamForm-B9giWwXn.css | 1 + .../static/assets/ParamForm-Cfno5gBf.js | 1 + .../static/assets/ParamForm-k5p7ef8t.css | 1 - ...vue_vue_type_style_index_0_lang-B1UtuJWR.js} | 2 +- ...orm-D9_x4AT4.js => WorkflowForm-4Y0H_Mdp.js} | 6 +++--- ...ist-DDPYhQ5l.js => WorkflowList-Dey5b8vn.js} | 2 +- ...RZNBYbq.js => WorkflowStageList-C0cDBmdj.js} | 2 +- .../{index-BVWm2Zu7.js => index-Ds2DFCP7.js} | 4 ++-- .../assets/{oss-jllykI1q.js => oss-B07LWDQX.js} | 2 +- ...{request-a_yWYQ73.js => request-qwmp2ebq.js} | 2 +- src/main/resources/static/index.html | 2 +- workflowFE/src/views/workflow/WorkflowForm.vue | 4 +++- 16 files changed, 34 insertions(+), 32 deletions(-) create mode 100644 src/main/resources/static/assets/EventListenerList-DcWsneEB.js delete mode 100644 src/main/resources/static/assets/EventListenerList-DsuTxzkw.js rename src/main/resources/static/assets/{OssList-Bihra8rt.js => OssList-CSNofrF6.js} (96%) delete mode 100644 src/main/resources/static/assets/ParamForm-B0X0LuP1.js create mode 100644 src/main/resources/static/assets/ParamForm-B9giWwXn.css create mode 100644 src/main/resources/static/assets/ParamForm-Cfno5gBf.js delete mode 100644 src/main/resources/static/assets/ParamForm-k5p7ef8t.css rename src/main/resources/static/assets/{Tabulator.vue_vue_type_style_index_0_lang-C7rKatiE.js => Tabulator.vue_vue_type_style_index_0_lang-B1UtuJWR.js} (99%) rename src/main/resources/static/assets/{WorkflowForm-D9_x4AT4.js => WorkflowForm-4Y0H_Mdp.js} (99%) rename src/main/resources/static/assets/{WorkflowList-DDPYhQ5l.js => WorkflowList-Dey5b8vn.js} (52%) rename src/main/resources/static/assets/{WorkflowStageList-CRZNBYbq.js => WorkflowStageList-C0cDBmdj.js} (98%) rename src/main/resources/static/assets/{index-BVWm2Zu7.js => index-Ds2DFCP7.js} (91%) rename src/main/resources/static/assets/{oss-jllykI1q.js => oss-B07LWDQX.js} (89%) rename src/main/resources/static/assets/{request-a_yWYQ73.js => request-qwmp2ebq.js} (87%) diff --git a/src/main/resources/static/assets/EventListenerList-DcWsneEB.js b/src/main/resources/static/assets/EventListenerList-DcWsneEB.js new file mode 100644 index 0000000..2153785 --- /dev/null +++ b/src/main/resources/static/assets/EventListenerList-DcWsneEB.js @@ -0,0 +1,17 @@ +import{_ as B,a as V}from"./Tabulator.vue_vue_type_style_index_0_lang-B1UtuJWR.js";import{s as _}from"./request-qwmp2ebq.js";import{d as $,u as C,c as W,w as S,o as D,r as v,a as b,b as e,t as E,e as N,g as I,v as M,F as q,f as A,k as R,j as Y,h as m,i as y}from"./index-Ds2DFCP7.js";import{g as G,P as T}from"./ParamForm-Cfno5gBf.js";const j=()=>_.get("/eventlistener/list");function z(s){return _.get("/eventlistener/"+s)}function H(s){return _.get(`/eventlistener/duplicate?eventlistenerName=${s}`)}function J(s){return _.post("/eventlistener",s)}function K(s){return _.patch(`/eventlistener/${s.eventListenerIdx}`,s)}function O(s){return _.delete(`/eventlistener/${s}`)}const Q={class:"modal",id:"eventListenerForm",tabindex:"-1"},X={class:"modal-dialog modal-lg",role:"document"},Z={class:"modal-content"},ee=e("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),te={class:"modal-body text-left py-4"},se={class:"mb-5"},ne={class:"row mb-3"},ae=e("label",{class:"form-label required"},"Event Listener 명",-1),oe={class:"grid gap-0 column-gap-3"},le={key:1,class:"btn btn-success",style:{margin:"3px"}},ie={class:"mb-3"},re=e("label",{class:"form-label required"},"Event Listener 설명",-1),ce={class:"mb-3"},de=e("label",{class:"form-label required"},"Workflow",-1),ve=e("option",{value:0},"Select Workflow",-1),ue=["value"],me={class:"modal-footer"},fe=$({__name:"eventListenerForm",props:{mode:{},eventListenerIdx:{}},emits:["get-event-listener-list"],setup(s,{emit:p}){const o=C(),l=s,u=p,g=W(()=>l.eventListenerIdx);S(g,async()=>{await f(),await L()}),D(async()=>{await f(),await L()});const t=v({}),c=v(!1),f=async()=>{if(l.mode==="new")t.value.eventListenerName="",t.value.eventListenerDesc="",t.value.workflowIdx=0,t.value.workflowParams=[],w.value=!1,c.value=!0;else{const{data:n}=await z(l.eventListenerIdx);t.value=n,w.value=!0,c.value=!0}},k=v([]),L=async()=>{const{data:n}=await G("N");k.value=n},w=v(!1),r=async()=>{const{data:n}=await H(t.value.eventListenerName);n?o.error("이미 사용중인 이름입니다."):(o.success("사용 가능한 이름입니다."),w.value=!0)},d=async()=>{l.mode==="new"?(t.value.workflowParams.forEach(n=>{n.paramIdx=0,n.eventListenerYn="Y"}),await h().then(()=>{u("get-event-listener-list")})):await x().then(()=>{u("get-event-listener-list")}),f()},h=async()=>{const{data:n}=await J(t.value);n?o.success("등록되었습니다."):o.error("등록 할 수 없습니다.")},x=async()=>{const{data:n}=await K(t.value);n?o.success("등록되었습니다."):o.error("등록 할 수 없습니다.")},F=()=>{w.value=!1},U=n=>{k.value.forEach(a=>{a.workflowInfo.workflowIdx===n&&(t.value.workflowParams=a.workflowParams)})};return(n,a)=>(m(),b("div",Q,[e("div",X,[e("div",Z,[ee,e("div",te,[e("h3",se," Event Listener "+E(l.mode==="new"?"생성":"수정"),1),e("div",null,[e("div",ne,[ae,e("div",oe,[N(e("input",{type:"text",class:"form-control p-2 g-col-11",placeholder:"Event Listener 명을 입력하세요","onUpdate:modelValue":a[0]||(a[0]=i=>t.value.eventListenerName=i),onFocus:F},null,544),[[I,t.value.eventListenerName]]),w.value?(m(),b("button",le,"중복 체크")):(m(),b("button",{key:0,class:"btn btn-primary chk",onClick:r,style:{margin:"3px"}},"중복 체크"))])]),e("div",ie,[re,N(e("input",{type:"text",class:"form-control p-2 g-col-11",placeholder:"Event Listener 설명을 입력하세요","onUpdate:modelValue":a[1]||(a[1]=i=>t.value.eventListenerDesc=i)},null,512),[[I,t.value.eventListenerDesc]])]),e("div",ce,[de,N(e("select",{class:"form-select p-2 g-col-12","onUpdate:modelValue":a[2]||(a[2]=i=>t.value.workflowIdx=i),onChange:a[3]||(a[3]=i=>U(t.value.workflowIdx))},[ve,(m(!0),b(q,null,A(k.value,(i,P)=>(m(),b("option",{value:i.workflowInfo.workflowIdx,key:P},E(i.workflowInfo.workflowName),9,ue))),128))],544),[[M,t.value.workflowIdx]])]),c.value?(m(),R(T,{key:0,popup:!1,"workflow-param-data":t.value.workflowParams,"event-listener-yn":"Y",style:{margin:"0 !important"}},null,8,["workflow-param-data"])):Y("",!0)])]),e("div",me,[e("a",{href:"#",class:"btn btn-link link-secondary","data-bs-dismiss":"modal",onClick:a[4]||(a[4]=i=>f())}," Cancel "),e("a",{href:"#",class:"btn btn-primary ms-auto","data-bs-dismiss":"modal",onClick:a[5]||(a[5]=i=>d())},E(l.mode==="new"?"생성":"수정"),1)])])])]))}}),we={class:"modal",id:"deleteEventListener",tabindex:"-1"},be={class:"modal-dialog modal-lg",role:"document"},Le={class:"modal-content"},_e=e("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),pe=e("div",{class:"modal-status bg-danger"},null,-1),ge={class:"modal-body text-left py-4"},ke=e("h3",{class:"mb-5"}," Event Listener 삭제 ",-1),he={class:"modal-footer"},ye=e("a",{href:"#",class:"btn btn-link link-secondary","data-bs-dismiss":"modal"}," Cancel ",-1),Ee=$({__name:"deleteEventListener",props:{eventListenerName:{},eventListenerIdx:{}},emits:["get-event-listener-list"],setup(s,{emit:p}){const o=C(),l=s,u=p,g=async()=>{const{data:t}=await O(l.eventListenerIdx);t?o.success("삭제되었습니다."):o.error("삭제하지 못했습니다."),u("get-event-listener-list")};return(t,c)=>(m(),b("div",we,[e("div",be,[e("div",Le,[_e,pe,e("div",ge,[ke,e("h4",null,E(l.eventListenerName)+"을(를) 정말 삭제하시겠습니까?",1)]),e("div",he,[ye,e("a",{href:"#",class:"btn btn-primary ms-auto","data-bs-dismiss":"modal",onClick:c[0]||(c[0]=f=>g())}," 삭제 ")])])])]))}}),xe={class:"card card-flush w-100"},De=$({__name:"EventListenerList",setup(s){const p=C(),o=v([]),l=v([]);D(async()=>{f(),await u()});const u=async()=>{try{const{data:r}=await j();o.value=r,o.value.forEach(d=>{d.eventListenerUrl=g(d.eventListenerCallUrl)})}catch(r){console.log(r),p.error("데이터를 가져올 수 없습니다.")}},g=r=>window.location.origin+r,t=v(0),c=v(""),f=()=>{l.value=[{title:"Event Listener Name",field:"eventListenerName",width:"20%"},{title:"Connect Workflow Name",field:"workflowName",width:"20%"},{title:"Event Listener Desc",field:"eventListenerDesc",width:"20%"},{title:"Action URL",field:"eventListenerUrl",width:"20%"},{title:"Action",width:"20%",formatter:k,cellClick:function(r,d){const h=r.target,x=h==null?void 0:h.getAttribute("id");t.value=d.getRow().getData().eventListenerIdx,x==="edit-btn"?L.value="edit":c.value=d.getRow().getData().eventListenerName}}]},k=()=>` +
+ + +
`,L=v("new"),w=()=>{t.value=0,L.value="new"};return(r,d)=>(m(),b("div",xe,[y(V,{"header-title":"Event Listener","new-btn-title":"New Event Listener","popup-flag":!0,"popup-target":"#eventListenerForm",onClickNewBtn:w}),y(B,{columns:l.value,"table-data":o.value},null,8,["columns","table-data"]),y(fe,{mode:L.value,"event-listener-idx":t.value,onGetEventListenerList:u},null,8,["mode","event-listener-idx"]),y(Ee,{"event-listener-name":c.value,"event-listener-idx":t.value,onGetEventListenerList:u},null,8,["event-listener-name","event-listener-idx"])]))}});export{De as default}; diff --git a/src/main/resources/static/assets/EventListenerList-DsuTxzkw.js b/src/main/resources/static/assets/EventListenerList-DsuTxzkw.js deleted file mode 100644 index 0d0740a..0000000 --- a/src/main/resources/static/assets/EventListenerList-DsuTxzkw.js +++ /dev/null @@ -1,17 +0,0 @@ -import{_ as C,a as D}from"./Tabulator.vue_vue_type_style_index_0_lang-C7rKatiE.js";import{s as L}from"./request-a_yWYQ73.js";import{d as k,u as $,c as U,w as I,o as N,r as m,a as f,b as e,t as x,e as y,g as E,h as g,i as h}from"./index-BVWm2Zu7.js";const F=()=>L.get("/eventlistener/list");function B(n){return L.get("/eventlistener/"+n)}function R(n){return L.get(`/eventlistener/duplicate?eventlistenerName=${n.eventListenerName}&eventListenerUrl=${n.eventListenerUrl}`)}function V(n){return L.post("/eventlistener",n)}function q(n){return L.patch(`/eventlistener/${n.eventListenerIdx}`,n)}function M(n){return L.delete(`/eventlistener/${n}`)}const A={class:"modal",id:"eventListenerForm",tabindex:"-1"},G={class:"modal-dialog modal-lg",role:"document"},S={class:"modal-content"},T=e("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),j={class:"modal-body text-left py-4"},z={class:"mb-5"},H={class:"row mb-3"},J=e("label",{class:"form-label required"},"Event Listener 명",-1),K={class:"grid gap-0 column-gap-3"},O={key:1,class:"btn btn-success",style:{margin:"3px"}},P={class:"mb-3"},Q=e("label",{class:"form-label required"},"Event Listener 설명",-1),W={class:"mb-3"},X=e("label",{class:"form-label required"},"URL",-1),Y={class:"modal-footer"},Z=k({__name:"eventListenerForm",props:{mode:{},eventListenerIdx:{}},emits:["get-event-listener-list"],setup(n,{emit:b}){const a=$(),i=n,r=b,d=U(()=>i.eventListenerIdx);I(d,async()=>{await o()}),N(async()=>{await o()});const t=m({}),o=async()=>{if(i.mode==="new")t.value.eventListenerName="",t.value.eventListenerDesc="",t.value.eventListenerUrl="",t.value.workflowIdx=0,v.value=!1;else{const{data:l}=await B(i.eventListenerIdx);t.value=l,v.value=!0}},v=m(!1),_=async()=>{const l={eventListenerName:t.value.eventListenerName,eventListenerUrl:t.value.eventListenerUrl},{data:s}=await R(l);s?a.error("이미 사용중인 이름입니다."):(a.success("사용 가능한 이름입니다."),v.value=!0)},w=async()=>{i.mode==="new"?await c().then(()=>{r("get-event-listener-list")}):await p().then(()=>{r("get-event-listener-list")}),o()},c=async()=>{const{data:l}=await V(t.value);l?a.success("등록되었습니다."):a.error("등록 할 수 없습니다.")},p=async()=>{const{data:l}=await q(t.value);l?a.success("등록되었습니다."):a.error("등록 할 수 없습니다.")};return(l,s)=>(g(),f("div",A,[e("div",G,[e("div",S,[T,e("div",j,[e("h3",z," Event Listener "+x(i.mode==="new"?"생성":"수정"),1),e("div",null,[e("div",H,[J,e("div",K,[y(e("input",{type:"text",class:"form-control p-2 g-col-11",placeholder:"Event Listener 명을 입력하세요","onUpdate:modelValue":s[0]||(s[0]=u=>t.value.eventListenerName=u)},null,512),[[E,t.value.eventListenerName]]),v.value?(g(),f("button",O,"중복 체크")):(g(),f("button",{key:0,class:"btn btn-primary chk",onClick:_,style:{margin:"3px"}},"중복 체크"))])]),e("div",P,[Q,y(e("input",{type:"text",class:"form-control p-2 g-col-11",placeholder:"Event Listener 설명을 입력하세요","onUpdate:modelValue":s[1]||(s[1]=u=>t.value.eventListenerDesc=u)},null,512),[[E,t.value.eventListenerDesc]])]),e("div",W,[X,y(e("input",{type:"text",class:"form-control p-2 g-col-11",placeholder:"서버 URL을 입력하세요","onUpdate:modelValue":s[2]||(s[2]=u=>t.value.eventListenerUrl=u)},null,512),[[E,t.value.eventListenerUrl]])])])]),e("div",Y,[e("a",{href:"#",class:"btn btn-link link-secondary","data-bs-dismiss":"modal",onClick:s[3]||(s[3]=u=>o())}," Cancel "),e("a",{href:"#",class:"btn btn-primary ms-auto","data-bs-dismiss":"modal",onClick:s[4]||(s[4]=u=>w())},x(i.mode==="new"?"생성":"수정"),1)])])])]))}}),ee={class:"modal",id:"deleteEventListener",tabindex:"-1"},te={class:"modal-dialog modal-lg",role:"document"},ne={class:"modal-content"},se=e("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),ae=e("div",{class:"modal-status bg-danger"},null,-1),ie={class:"modal-body text-left py-4"},le=e("h3",{class:"mb-5"}," Event Listener 삭제 ",-1),oe={class:"modal-footer"},re=e("a",{href:"#",class:"btn btn-link link-secondary","data-bs-dismiss":"modal"}," Cancel ",-1),de=k({__name:"deleteEventListener",props:{eventListenerName:{},eventListenerIdx:{}},emits:["get-event-listener-list"],setup(n,{emit:b}){const a=$(),i=n,r=b,d=async()=>{const{data:t}=await M(i.eventListenerIdx);t?a.success("삭제되었습니다."):a.error("삭제하지 못했습니다."),r("get-event-listener-list")};return(t,o)=>(g(),f("div",ee,[e("div",te,[e("div",ne,[se,ae,e("div",ie,[le,e("h4",null,x(i.eventListenerName)+"을(를) 정말 삭제하시겠습니까?",1)]),e("div",oe,[re,e("a",{href:"#",class:"btn btn-primary ms-auto","data-bs-dismiss":"modal",onClick:o[0]||(o[0]=v=>d())}," 삭제 ")])])])]))}}),ce={class:"card card-flush w-100"},Le=k({__name:"EventListenerList",setup(n){const b=$(),a=m([]),i=m([]);N(async()=>{o(),await r()});const r=async()=>{try{const{data:c}=await F();a.value=c}catch(c){console.log(c),b.error("데이터를 가져올 수 없습니다.")}},d=m(0),t=m(""),o=()=>{i.value=[{title:"Event Listener Name",field:"eventListenerName",width:400},{title:"Event Listener Desc",field:"eventListenerDesc",width:500},{title:"URL",field:"eventListenerUrl",width:600},{title:"Action",width:400,formatter:v,cellClick:function(c,p){const l=c.target,s=l==null?void 0:l.getAttribute("id");d.value=p.getRow().getData().eventListenerIdx,s==="edit-btn"?_.value="edit":t.value=p.getRow().getData().eventListenerName}}]},v=()=>` -
- - -
`,_=m("new"),w=()=>{d.value=0,_.value="new"};return(c,p)=>(g(),f("div",ce,[h(D,{"header-title":"Event Listener","new-btn-title":"New Event Listener","popup-flag":!0,"popup-target":"#eventListenerForm",onClickNewBtn:w}),h(C,{columns:i.value,"table-data":a.value},null,8,["columns","table-data"]),h(Z,{mode:_.value,"event-listener-idx":d.value,onGetEventListenerList:r},null,8,["mode","event-listener-idx"]),h(de,{"event-listener-name":t.value,"event-listener-idx":d.value,onGetEventListenerList:r},null,8,["event-listener-name","event-listener-idx"])]))}});export{Le as default}; diff --git a/src/main/resources/static/assets/OssList-Bihra8rt.js b/src/main/resources/static/assets/OssList-CSNofrF6.js similarity index 96% rename from src/main/resources/static/assets/OssList-Bihra8rt.js rename to src/main/resources/static/assets/OssList-CSNofrF6.js index b771918..ef52df0 100644 --- a/src/main/resources/static/assets/OssList-Bihra8rt.js +++ b/src/main/resources/static/assets/OssList-CSNofrF6.js @@ -1,4 +1,4 @@ -import{_ as B,a as q}from"./Tabulator.vue_vue_type_style_index_0_lang-C7rKatiE.js";import{g as R,a as A,b as M,d as G,o as W,r as j,u as z,c as H,e as J}from"./oss-jllykI1q.js";import{d as D,u as U,c as K,w as I,o as T,r as m,a as r,b as s,t as S,e as h,v as Q,F as X,f as Y,g as w,h as u,i as O}from"./index-BVWm2Zu7.js";import"./request-a_yWYQ73.js";const Z={class:"modal",id:"ossForm",tabindex:"-1"},ss={class:"modal-dialog modal-xl",role:"document"},es={class:"modal-content"},ts=s("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),os={class:"modal-body text-left py-4"},as={class:"mb-5"},ls={class:"mb-3"},ns=s("label",{class:"form-label required"},"OSS Type",-1),cs={class:"grid gap-0 column-gap-3"},is=s("option",{value:0},"Select OSS Type",-1),ds=["value"],rs={class:"row mb-3"},us=s("label",{class:"form-label required"},"OSS Name",-1),ms={class:"grid gap-0 column-gap-3"},ps={class:"mb-3"},vs=s("label",{class:"form-label required"},"OSS Description",-1),_s={class:"mb-3"},bs=s("label",{class:"form-label required"},"URL",-1),hs={class:"row"},fs={class:"col"},gs=s("label",{class:"form-label required"},"OSS ID",-1),ws={class:"col"},ys=s("label",{class:"form-label required"},"OSS PW",-1),Os={class:"col mt-4 row"},Ss={key:1,class:"btn btn-success col",style:{"margin-right":"3px"}},ks={key:3,class:"btn btn-success col"},xs={class:"modal-footer"},Cs=D({__name:"ossForm",props:{mode:{},ossIdx:{}},emits:["get-oss-list"],setup(y,{emit:f}){const l=U(),n=y,p=f,v=K(()=>n.ossIdx);I(v,async()=>{await d()}),I(()=>n.mode,async()=>{await b(n.mode)}),T(async()=>{await b("init"),await d()});const e=m({}),d=async()=>{if(n.mode==="new")e.value.ossTypeIdx=0,e.value.ossName="",e.value.ossDesc="",e.value.ossUrl="",e.value.ossUsername="",e.value.ossPassword="",c.value=!1,i.value=!1;else{const{data:o}=await R(n.ossIdx);e.value=o,e.value.ossPassword=E(e.value.ossPassword),c.value=!0,i.value=!0}},_=m([]),b=async o=>{try{if(o==="new"||o==="init"){const{data:t}=await A();_.value=t}else{const{data:t}=await M();_.value=t}}catch(t){console.log(t)}},k=()=>{e.value.ossPassword="",i.value=!1},c=m(!1),g=async()=>{const o={ossName:e.value.ossName,ossUrl:e.value.ossUrl,ossUsername:e.value.ossUsername},{data:t}=await G(o);t?l.error("이미 사용중인 이름입니다."):(l.success("사용 가능한 이름입니다."),c.value=!0)},i=m(!1),x=async()=>{const o={ossUrl:e.value.ossUrl,ossUsername:e.value.ossUsername,ossPassword:N(e.value.ossPassword),ossTypeIdx:e.value.ossTypeIdx},{data:t}=await W(o);t?(l.success("사용 가능한 OSS입니다."),i.value=!0):l.error("사용 불가능한 OSS입니다.")},$=()=>{c.value=!1},C=()=>{i.value=!1},L=async()=>{e.value.ossPassword=N(e.value.ossPassword),n.mode==="new"?await P().then(()=>{p("get-oss-list")}):await F().then(()=>{p("get-oss-list")}),d()},P=async()=>{const{data:o}=await j(e.value);o?l.success("등록되었습니다."):l.error("등록 할 수 없습니다.")},F=async()=>{const{data:o}=await z(e.value);o?l.success("등록되었습니다."):l.error("등록 할 수 없습니다.")},N=o=>btoa(o),E=o=>atob(o);return(o,t)=>(u(),r("div",Z,[s("div",ss,[s("div",es,[ts,s("div",os,[s("h3",as,S(n.mode==="new"?"New":"Edit")+" OSS ",1),s("div",null,[s("div",ls,[ns,s("div",cs,[h(s("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>e.value.ossTypeIdx=a),class:"form-select p-2 g-col-12"},[is,(u(!0),r(X,null,Y(_.value,(a,V)=>(u(),r("option",{value:a.ossTypeIdx,key:V},S(a.ossTypeName),9,ds))),128))],512),[[Q,e.value.ossTypeIdx]])])]),s("div",rs,[us,s("div",ms,[h(s("input",{type:"text",class:"form-control p-2 g-col-11",placeholder:"Enter the OSS Name","onUpdate:modelValue":t[1]||(t[1]=a=>e.value.ossName=a),onChange:$},null,544),[[w,e.value.ossName]])])]),s("div",ps,[vs,h(s("input",{type:"text",class:"form-control p-2 g-col-11",placeholder:"Enter the OSS Description","onUpdate:modelValue":t[2]||(t[2]=a=>e.value.ossDesc=a)},null,512),[[w,e.value.ossDesc]])]),s("div",_s,[bs,h(s("input",{type:"text",class:"form-control p-2 g-col-7",placeholder:"Enter the Server URL","onUpdate:modelValue":t[3]||(t[3]=a=>e.value.ossUrl=a),onFocus:C},null,544),[[w,e.value.ossUrl]])]),s("div",hs,[s("div",fs,[gs,h(s("input",{type:"text",class:"form-control p-2 g-col-7",placeholder:"Enter the OSS ID","onUpdate:modelValue":t[4]||(t[4]=a=>e.value.ossUsername=a),onFocus:C},null,544),[[w,e.value.ossUsername]])]),s("div",ws,[ys,h(s("input",{type:"password",class:"form-control p-2 g-col-11",placeholder:"Enter the OSS Password","onUpdate:modelValue":t[5]||(t[5]=a=>e.value.ossPassword=a),onClick:k,onFocus:C},null,544),[[w,e.value.ossPassword]])]),s("div",Os,[c.value?(u(),r("button",Ss,"Duplicate Check")):(u(),r("button",{key:0,class:"btn btn-primary col",onClick:g,style:{"margin-right":"3px"}},"Duplicate Check")),i.value?(u(),r("button",ks,"Connection Check")):(u(),r("button",{key:2,class:"btn btn-primary col",onClick:x},"Connection Check"))])])])]),s("div",xs,[s("a",{href:"#",class:"btn btn-link link-secondary","data-bs-dismiss":"modal",onClick:t[6]||(t[6]=a=>d())}," Cancel "),s("a",{href:"#",class:"btn btn-primary ms-auto","data-bs-dismiss":"modal",onClick:t[7]||(t[7]=a=>L())},S(n.mode==="new"?"Regist":"Edit"),1)])])])]))}}),Ds={class:"modal",id:"deleteOss",tabindex:"-1"},Us={class:"modal-dialog modal-lg",role:"document"},Ns={class:"modal-content"},Is=s("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),Ts=s("div",{class:"modal-status bg-danger"},null,-1),$s={class:"modal-body text-left py-4"},Ls=s("h3",{class:"mb-5"}," Delete OSS ",-1),Ps={class:"modal-footer"},Fs=s("a",{href:"#",class:"btn btn-link link-secondary","data-bs-dismiss":"modal"}," Cancel ",-1),Es=D({__name:"deleteOss",props:{ossName:{},ossIdx:{}},emits:["get-oss-list"],setup(y,{emit:f}){const l=U(),n=y,p=f,v=async()=>{const{data:e}=await H(n.ossIdx);e?l.success("삭제되었습니다."):l.error("삭제하지 못했습니다."),p("get-oss-list")};return(e,d)=>(u(),r("div",Ds,[s("div",Us,[s("div",Ns,[Is,Ts,s("div",$s,[Ls,s("h4",null,"Are you sure you want to delete "+S(n.ossName)+"?",1)]),s("div",Ps,[Fs,s("a",{href:"#",class:"btn btn-primary ms-auto","data-bs-dismiss":"modal",onClick:d[0]||(d[0]=_=>v())}," Delete ")])])])]))}}),Vs={class:"card card-flush w-100"},Ms=D({__name:"OssList",setup(y){const f=U(),l=m([]),n=m([]);T(async()=>{d(),await p()});const p=async()=>{try{const{data:c}=await J();l.value=c}catch(c){console.log(c),f.error("데이터를 가져올 수 없습니다.")}},v=m(0),e=m(""),d=()=>{n.value=[{title:"OSS Name",field:"ossName",width:400},{title:"OSS Desc",field:"ossDesc",width:500},{title:"URL",field:"ossUrl",width:600},{title:"Action",width:400,formatter:_,cellClick:function(c,g){const i=c.target,x=i==null?void 0:i.getAttribute("id");v.value=g.getRow().getData().ossIdx,x==="edit-btn"?b.value="edit":e.value=g.getRow().getData().ossName}}]},_=()=>` +import{_ as B,a as q}from"./Tabulator.vue_vue_type_style_index_0_lang-B1UtuJWR.js";import{g as R,a as A,b as M,d as G,o as W,r as j,u as z,c as H,e as J}from"./oss-B07LWDQX.js";import{d as D,u as U,c as K,w as I,o as T,r as m,a as r,b as s,t as S,e as h,v as Q,F as X,f as Y,g as w,h as u,i as O}from"./index-Ds2DFCP7.js";import"./request-qwmp2ebq.js";const Z={class:"modal",id:"ossForm",tabindex:"-1"},ss={class:"modal-dialog modal-xl",role:"document"},es={class:"modal-content"},ts=s("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),os={class:"modal-body text-left py-4"},as={class:"mb-5"},ls={class:"mb-3"},ns=s("label",{class:"form-label required"},"OSS Type",-1),cs={class:"grid gap-0 column-gap-3"},is=s("option",{value:0},"Select OSS Type",-1),ds=["value"],rs={class:"row mb-3"},us=s("label",{class:"form-label required"},"OSS Name",-1),ms={class:"grid gap-0 column-gap-3"},ps={class:"mb-3"},vs=s("label",{class:"form-label required"},"OSS Description",-1),_s={class:"mb-3"},bs=s("label",{class:"form-label required"},"URL",-1),hs={class:"row"},fs={class:"col"},gs=s("label",{class:"form-label required"},"OSS ID",-1),ws={class:"col"},ys=s("label",{class:"form-label required"},"OSS PW",-1),Os={class:"col mt-4 row"},Ss={key:1,class:"btn btn-success col",style:{"margin-right":"3px"}},ks={key:3,class:"btn btn-success col"},xs={class:"modal-footer"},Cs=D({__name:"ossForm",props:{mode:{},ossIdx:{}},emits:["get-oss-list"],setup(y,{emit:f}){const l=U(),n=y,p=f,v=K(()=>n.ossIdx);I(v,async()=>{await d()}),I(()=>n.mode,async()=>{await b(n.mode)}),T(async()=>{await b("init"),await d()});const e=m({}),d=async()=>{if(n.mode==="new")e.value.ossTypeIdx=0,e.value.ossName="",e.value.ossDesc="",e.value.ossUrl="",e.value.ossUsername="",e.value.ossPassword="",c.value=!1,i.value=!1;else{const{data:o}=await R(n.ossIdx);e.value=o,e.value.ossPassword=E(e.value.ossPassword),c.value=!0,i.value=!0}},_=m([]),b=async o=>{try{if(o==="new"||o==="init"){const{data:t}=await A();_.value=t}else{const{data:t}=await M();_.value=t}}catch(t){console.log(t)}},k=()=>{e.value.ossPassword="",i.value=!1},c=m(!1),g=async()=>{const o={ossName:e.value.ossName,ossUrl:e.value.ossUrl,ossUsername:e.value.ossUsername},{data:t}=await G(o);t?l.error("이미 사용중인 이름입니다."):(l.success("사용 가능한 이름입니다."),c.value=!0)},i=m(!1),x=async()=>{const o={ossUrl:e.value.ossUrl,ossUsername:e.value.ossUsername,ossPassword:N(e.value.ossPassword),ossTypeIdx:e.value.ossTypeIdx},{data:t}=await W(o);t?(l.success("사용 가능한 OSS입니다."),i.value=!0):l.error("사용 불가능한 OSS입니다.")},$=()=>{c.value=!1},C=()=>{i.value=!1},L=async()=>{e.value.ossPassword=N(e.value.ossPassword),n.mode==="new"?await P().then(()=>{p("get-oss-list")}):await F().then(()=>{p("get-oss-list")}),d()},P=async()=>{const{data:o}=await j(e.value);o?l.success("등록되었습니다."):l.error("등록 할 수 없습니다.")},F=async()=>{const{data:o}=await z(e.value);o?l.success("등록되었습니다."):l.error("등록 할 수 없습니다.")},N=o=>btoa(o),E=o=>atob(o);return(o,t)=>(u(),r("div",Z,[s("div",ss,[s("div",es,[ts,s("div",os,[s("h3",as,S(n.mode==="new"?"New":"Edit")+" OSS ",1),s("div",null,[s("div",ls,[ns,s("div",cs,[h(s("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>e.value.ossTypeIdx=a),class:"form-select p-2 g-col-12"},[is,(u(!0),r(X,null,Y(_.value,(a,V)=>(u(),r("option",{value:a.ossTypeIdx,key:V},S(a.ossTypeName),9,ds))),128))],512),[[Q,e.value.ossTypeIdx]])])]),s("div",rs,[us,s("div",ms,[h(s("input",{type:"text",class:"form-control p-2 g-col-11",placeholder:"Enter the OSS Name","onUpdate:modelValue":t[1]||(t[1]=a=>e.value.ossName=a),onChange:$},null,544),[[w,e.value.ossName]])])]),s("div",ps,[vs,h(s("input",{type:"text",class:"form-control p-2 g-col-11",placeholder:"Enter the OSS Description","onUpdate:modelValue":t[2]||(t[2]=a=>e.value.ossDesc=a)},null,512),[[w,e.value.ossDesc]])]),s("div",_s,[bs,h(s("input",{type:"text",class:"form-control p-2 g-col-7",placeholder:"Enter the Server URL","onUpdate:modelValue":t[3]||(t[3]=a=>e.value.ossUrl=a),onFocus:C},null,544),[[w,e.value.ossUrl]])]),s("div",hs,[s("div",fs,[gs,h(s("input",{type:"text",class:"form-control p-2 g-col-7",placeholder:"Enter the OSS ID","onUpdate:modelValue":t[4]||(t[4]=a=>e.value.ossUsername=a),onFocus:C},null,544),[[w,e.value.ossUsername]])]),s("div",ws,[ys,h(s("input",{type:"password",class:"form-control p-2 g-col-11",placeholder:"Enter the OSS Password","onUpdate:modelValue":t[5]||(t[5]=a=>e.value.ossPassword=a),onClick:k,onFocus:C},null,544),[[w,e.value.ossPassword]])]),s("div",Os,[c.value?(u(),r("button",Ss,"Duplicate Check")):(u(),r("button",{key:0,class:"btn btn-primary col",onClick:g,style:{"margin-right":"3px"}},"Duplicate Check")),i.value?(u(),r("button",ks,"Connection Check")):(u(),r("button",{key:2,class:"btn btn-primary col",onClick:x},"Connection Check"))])])])]),s("div",xs,[s("a",{href:"#",class:"btn btn-link link-secondary","data-bs-dismiss":"modal",onClick:t[6]||(t[6]=a=>d())}," Cancel "),s("a",{href:"#",class:"btn btn-primary ms-auto","data-bs-dismiss":"modal",onClick:t[7]||(t[7]=a=>L())},S(n.mode==="new"?"Regist":"Edit"),1)])])])]))}}),Ds={class:"modal",id:"deleteOss",tabindex:"-1"},Us={class:"modal-dialog modal-lg",role:"document"},Ns={class:"modal-content"},Is=s("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),Ts=s("div",{class:"modal-status bg-danger"},null,-1),$s={class:"modal-body text-left py-4"},Ls=s("h3",{class:"mb-5"}," Delete OSS ",-1),Ps={class:"modal-footer"},Fs=s("a",{href:"#",class:"btn btn-link link-secondary","data-bs-dismiss":"modal"}," Cancel ",-1),Es=D({__name:"deleteOss",props:{ossName:{},ossIdx:{}},emits:["get-oss-list"],setup(y,{emit:f}){const l=U(),n=y,p=f,v=async()=>{const{data:e}=await H(n.ossIdx);e?l.success("삭제되었습니다."):l.error("삭제하지 못했습니다."),p("get-oss-list")};return(e,d)=>(u(),r("div",Ds,[s("div",Us,[s("div",Ns,[Is,Ts,s("div",$s,[Ls,s("h4",null,"Are you sure you want to delete "+S(n.ossName)+"?",1)]),s("div",Ps,[Fs,s("a",{href:"#",class:"btn btn-primary ms-auto","data-bs-dismiss":"modal",onClick:d[0]||(d[0]=_=>v())}," Delete ")])])])]))}}),Vs={class:"card card-flush w-100"},Ms=D({__name:"OssList",setup(y){const f=U(),l=m([]),n=m([]);T(async()=>{d(),await p()});const p=async()=>{try{const{data:c}=await J();l.value=c}catch(c){console.log(c),f.error("데이터를 가져올 수 없습니다.")}},v=m(0),e=m(""),d=()=>{n.value=[{title:"OSS Name",field:"ossName",width:400},{title:"OSS Desc",field:"ossDesc",width:500},{title:"URL",field:"ossUrl",width:600},{title:"Action",width:400,formatter:_,cellClick:function(c,g){const i=c.target,x=i==null?void 0:i.getAttribute("id");v.value=g.getRow().getData().ossIdx,x==="edit-btn"?b.value="edit":e.value=g.getRow().getData().ossName}}]},_=()=>`