@runeya/runeya 1.33.20 → 1.33.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node-red-contrib-runeya.tar +0 -0
- package/package.json +1 -1
- package/public/assets/{App-BVTb2f1U.css → App-BGPtogo-.css} +1 -1
- package/public/assets/App-Bj3c8ECd.js +101 -0
- package/public/assets/Bugs-B6LM8YSZ.js +1 -0
- package/public/assets/Bugs-DZVuTDKA.css +1 -0
- package/public/assets/Configs-CRGDsvnb.js +464 -0
- package/public/assets/Configs-DdBteQMK.css +1 -0
- package/public/assets/CurrentEditor-DI0XEvLu.js +1 -0
- package/public/assets/DynamicComponent-CmXZUvVU.js +1 -0
- package/public/assets/DynamicComponent-DgxRO4Pl.css +1 -0
- package/public/assets/{Editor-Ck3cFVn3.js → Editor-CBZeVePs.js} +7 -7
- package/public/assets/{Editor-BC23IeB6.css → Editor-CPPFMOjb.css} +1 -1
- package/public/assets/Git-Cf-zgTWr.js +11 -0
- package/public/assets/Git-UQIt5ANe.css +1 -0
- package/public/assets/ImportCreate-DZSPN5cY.js +1 -0
- package/public/assets/Index-BJieQWaU.js +1 -0
- package/public/assets/Index-BcFahN3S.css +1 -0
- package/public/assets/Index-BrbegLuT.js +1 -0
- package/public/assets/Index-C3gFkhHj.js +1 -0
- package/public/assets/Index-C66tLKvy.css +1 -0
- package/public/assets/Index-Cd-qd5VG.css +1 -0
- package/public/assets/Index-Cg-pTjT5.js +1 -0
- package/public/assets/Index-CvhWs0kp.css +1 -0
- package/public/assets/Index-D67OAIVa.js +314 -0
- package/public/assets/Index-DZ8CXixy.js +1 -0
- package/public/assets/{Init-Lt-2DFbi.js → Init-BILP6lrr.js} +1 -1
- package/public/assets/{LeftLogo-fTp83qX1.js → LeftLogo-BCYb654E.js} +1 -1
- package/public/assets/Logs-BfqPcp-L.js +74 -0
- package/public/assets/Logs-BhdfGaw5.css +32 -0
- package/public/assets/{Markdown-CNWZoHio.js → Markdown-CuewGlVj.js} +19 -103
- package/public/assets/Modal-CGUZawhK.css +1 -0
- package/public/assets/Modal-DmKdmCtc.js +1 -0
- package/public/assets/Modals-BHTrmB19.js +1 -0
- package/public/assets/NotUpToDate-CnmuPdX-.js +1 -0
- package/public/assets/NotUpToDate-Dh9RbAwK.css +1 -0
- package/public/assets/Npm-HBPCi13F.js +1 -0
- package/public/assets/Npm-KBzO1DYv.css +1 -0
- package/public/assets/Overview-CRtTdDEz.js +1 -0
- package/public/assets/Overview-DZIOmzKx.css +1 -0
- package/public/assets/{Section-BC6pA1HZ.js → Section-OccJuk7A.js} +1 -1
- package/public/assets/{Settings-Dp_ktsgs.js → Settings-CgEyOTsE.js} +6 -6
- package/public/assets/{Settings-BBbk67zT.css → Settings-DUCkJDco.css} +1 -1
- package/public/assets/Spinner-BMGbc3X9.js +1 -0
- package/public/assets/Spinner-BZXOybIg.css +1 -0
- package/public/assets/StackChooser-DBof37zx.js +1 -0
- package/public/assets/{StackChooser-CsNxPvyi.js → StackChooser-PJ4_aCX-.js} +1 -1
- package/public/assets/StackMultiple-CiXqkibR.css +1 -0
- package/public/assets/{StackMultiple-BeZmv6DX.js → StackMultiple-D0bM6dXR.js} +17 -17
- package/public/assets/{StackSingle-DBZX9nN_.css → StackSingle-BVHxvisP.css} +1 -1
- package/public/assets/StackSingle-D1Yk8PXD.js +1 -0
- package/public/assets/{Tabs-fu2myJd9.css → Tabs-BGPqRkjE.css} +1 -1
- package/public/assets/Tabs-DQDvjS5y.js +1 -0
- package/public/assets/Theme-CzHFcMoz.js +1 -0
- package/public/assets/Toolbox-B5KXz4eX.css +1 -0
- package/public/assets/Toolbox-C5XEPDmg.js +1 -0
- package/public/assets/_baseFor-DiPelG4M.js +1 -0
- package/public/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
- package/public/assets/{cssMode-DptFVzSA.js → cssMode-CccHpseG.js} +1 -1
- package/public/assets/currentEditor-DKB6Zox9.js +1 -0
- package/public/assets/dayjs.min-CfWDS3UC.js +1 -0
- package/public/assets/{freemarker2-Nj-3NhAz.js → freemarker2-DSPhVVzD.js} +1 -1
- package/public/assets/fs-CwxHstJI.js +1 -0
- package/public/assets/{handlebars-DccXq6O-.js → handlebars-1zANa-F3.js} +1 -1
- package/public/assets/{html-BFezHwqy.js → html-fsS26eC3.js} +1 -1
- package/public/assets/{htmlMode-8pIWMfce.js → htmlMode-DvnqyT9t.js} +1 -1
- package/public/assets/index-0X67tmWL.js +82 -0
- package/public/assets/index-B3Vh_zdc.js +1454 -0
- package/public/assets/index-B614CRIK.js +201 -0
- package/public/assets/index-BO82C_5u.js +720 -0
- package/public/assets/index-Brqxsm84.js +308 -0
- package/public/assets/index-CILDVkDy.js +310 -0
- package/public/assets/{index--FPUu8lq.css → index-D9v3u7Fv.css} +1 -1
- package/public/assets/index-DcbuCmxJ.js +84 -0
- package/public/assets/{index-DVXSyllr.js → index-G_rNbFve.js} +2 -2
- package/public/assets/index-d75RPzOA.js +176 -0
- package/public/assets/index-uWoKtv9r.js +2 -0
- package/public/assets/{javascript-B0mQdjwH.js → javascript-DRHvp6-v.js} +1 -1
- package/public/assets/json-tree-view-vue3.es-DVJTi2Rq.js +1 -0
- package/public/assets/{jsonMode-BuKXiIei.js → jsonMode-CJHmEzcn.js} +1 -1
- package/public/assets/{liquid-9G58QM1k.js → liquid-V1Od9uns.js} +1 -1
- package/public/assets/lodash-D2RHCRSL.js +27 -0
- package/public/assets/{mdx-DWeREtqy.js → mdx-DlWa4FFs.js} +1 -1
- package/public/assets/{python-BZtttaDe.js → python-DawPqpxL.js} +1 -1
- package/public/assets/{razor-CIhED9yj.js → razor-CrbHGO04.js} +1 -1
- package/public/assets/router-DPuc_QdV.css +1 -0
- package/public/assets/router-Dzu6a_zz.js +103 -0
- package/public/assets/sort-BibmqbFD.js +1 -0
- package/public/assets/{system-IAlLmFx7.js → system-BqvwX5_3.js} +1 -1
- package/public/assets/{tsMode-BMdhWjVC.js → tsMode-Cb1yqXWI.js} +1 -1
- package/public/assets/{typescript-DurNSXGF.js → typescript-CnZCKV3a.js} +1 -1
- package/public/assets/{xml-Ckok0faQ.js → xml-B90p6BQJ.js} +1 -1
- package/public/assets/{yaml-C2OtFevY.js → yaml-Bkk9HYtt.js} +1 -1
- package/public/index.html +1 -1
- package/www.js +744 -692
- package/www.js.map +1 -1
- package/public/assets/App-CxWYnNM-.js +0 -101
- package/public/assets/CurrentEditor-C38cqf-Z.js +0 -1
- package/public/assets/ImportCreate-DFEf3KiI.js +0 -1
- package/public/assets/Overview-BaSpvlXu.css +0 -1
- package/public/assets/Overview-DR4QmO04.js +0 -1
- package/public/assets/StackChooser-vHgodEvA.js +0 -1
- package/public/assets/StackMultiple-Dw-7UAYX.css +0 -1
- package/public/assets/StackSingle-Bza6Vusw.js +0 -1
- package/public/assets/Tabs-DMteuptw.js +0 -1
- package/public/assets/router-BIesWMTV.css +0 -32
- package/public/assets/router-BaBuIyxA.js +0 -4232
|
@@ -1 +1 @@
|
|
|
1
|
-
.progress[data-v-3bbda6b0]{padding:3px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100px;background:#dfdfdf;-webkit-box-shadow:inset 0 1px 2px 2px #ccc;box-shadow:inset 0 1px 2px 2px #ccc}.progress-bar[data-v-3bbda6b0]{height:10px;width:100%;background-image:-webkit-gradient(linear,left top,left bottom,from(var(--system-primary400)),to(var(--system-primary400-darkest)));background-image:linear-gradient(to bottom,var(--system-primary400),var(--system-primary400-darkest));border-radius:100px;overflow:hidden;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transform-origin:left;transform-origin:left;-webkit-transition:.4s linear;transition:.4s linear;-webkit-transition-property:width;transition-property:width;background-color:#0054bc}.card-root[data-v-bebaadaf]{width:300px;height:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;overflow:hidden}.card-root.mini[data-v-bebaadaf]{border-radius:1000px}.card-root.mini .card-container[data-v-bebaadaf]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.card-root[data-v-bebaadaf]:before,.card-root[data-v-bebaadaf]:after{content:"";width:150%;height:75%;border-radius:100%;position:absolute;top:0;right:-100%;-webkit-transform:rotate(20deg);transform:rotate(20deg);-webkit-transform-origin:top;transform-origin:top}.card-root[data-v-bebaadaf]:after{height:45%}.card-root .card-container[data-v-bebaadaf]{width:100%;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:10px;-webkit-box-sizing:border-box;box-sizing:border-box}.card-root.blue[data-v-bebaadaf]{background:var(--system-tertiary400);background:linear-gradient(93deg,var(--system-tertiary400) 0%,var(--system-tertiary600) 100%);color:#fff}.card-root.purple[data-v-bebaadaf]{background:var(--system-primary400);background:linear-gradient(93deg,var(--system-primary400) 0%,var(--system-primary600) 100%);color:#fff}.card-root.orange[data-v-bebaadaf]{background:var(--system-secondary400);background:linear-gradient(93deg,var(--system-secondary400) 0%,var(--system-secondary600) 100%);color:#fff}.notification-bell-root[data-v-c97a762b]{font-size:1.4em;margin-bottom:10px;margin-right:5px;cursor:pointer;-webkit-transition:.3s;transition:.3s}.notification-bell-root[data-v-c97a762b]:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.section-not-started[data-v-
|
|
1
|
+
.progress[data-v-3bbda6b0]{padding:3px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100px;background:#dfdfdf;-webkit-box-shadow:inset 0 1px 2px 2px #ccc;box-shadow:inset 0 1px 2px 2px #ccc}.progress-bar[data-v-3bbda6b0]{height:10px;width:100%;background-image:-webkit-gradient(linear,left top,left bottom,from(var(--system-primary400)),to(var(--system-primary400-darkest)));background-image:linear-gradient(to bottom,var(--system-primary400),var(--system-primary400-darkest));border-radius:100px;overflow:hidden;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transform-origin:left;transform-origin:left;-webkit-transition:.4s linear;transition:.4s linear;-webkit-transition-property:width;transition-property:width;background-color:#0054bc}.card-root[data-v-bebaadaf]{width:300px;height:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;overflow:hidden}.card-root.mini[data-v-bebaadaf]{border-radius:1000px}.card-root.mini .card-container[data-v-bebaadaf]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.card-root[data-v-bebaadaf]:before,.card-root[data-v-bebaadaf]:after{content:"";width:150%;height:75%;border-radius:100%;position:absolute;top:0;right:-100%;-webkit-transform:rotate(20deg);transform:rotate(20deg);-webkit-transform-origin:top;transform-origin:top}.card-root[data-v-bebaadaf]:after{height:45%}.card-root .card-container[data-v-bebaadaf]{width:100%;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:10px;-webkit-box-sizing:border-box;box-sizing:border-box}.card-root.blue[data-v-bebaadaf]{background:var(--system-tertiary400);background:linear-gradient(93deg,var(--system-tertiary400) 0%,var(--system-tertiary600) 100%);color:#fff}.card-root.purple[data-v-bebaadaf]{background:var(--system-primary400);background:linear-gradient(93deg,var(--system-primary400) 0%,var(--system-primary600) 100%);color:#fff}.card-root.orange[data-v-bebaadaf]{background:var(--system-secondary400);background:linear-gradient(93deg,var(--system-secondary400) 0%,var(--system-secondary600) 100%);color:#fff}.notification-bell-root[data-v-c97a762b]{font-size:1.4em;margin-bottom:10px;margin-right:5px;cursor:pointer;-webkit-transition:.3s;transition:.3s}.notification-bell-root[data-v-c97a762b]:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.section-not-started[data-v-f185c830]{-webkit-box-shadow:10px 10px 20px rgba(0,0,0,.1);box-shadow:10px 10px 20px #0000001a}.stack-single[data-v-f185c830]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;overflow:hidden}.stack-single .main[data-v-f185c830]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:100%;margin:auto auto 20px;overflow:auto;scroll-behavior:smooth}.stack-single .main .header[data-v-f185c830]{width:100%;height:85px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:10px calc(5% + 10px);font-weight:700;position:relative;color:#fff;text-align:left;-webkit-box-sizing:border-box;box-sizing:border-box}.stack-single .main .header .left[data-v-f185c830]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.stack-single .main .header .left .title[data-v-f185c830]{font-size:2em;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px}.stack-single .main .header .left .description[data-v-f185c830]{color:#97d8ff;font-weight:500}.stack-single .main .header .right[data-v-f185c830]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-ms-flex-negative:0;flex-shrink:0}.stack-single .main .header .right img[data-v-f185c830]{width:18px;height:18px;-webkit-filter:invert(1);filter:invert(1)}.stack-single .main .header .right img.filter-dark[data-v-f185c830]{-webkit-filter:grayscale(1) opacity(.7);filter:grayscale(1) opacity(.7)}.stack-single .main .header .right .icons[data-v-f185c830]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.stack-single .main .header .right i[data-v-f185c830]{color:#fff;font-size:18px}.stack-single .main .header .right i[data-v-f185c830],.stack-single .main .header .right img[data-v-f185c830]{cursor:pointer;-webkit-transition:.3s;transition:.3s}.stack-single .main .header .right i[data-v-f185c830]:hover,.stack-single .main .header .right img[data-v-f185c830]:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.stack-single .main .header[data-v-f185c830]:before{content:"";z-index:-1;position:absolute;top:0;left:0;border-bottom:3px solid #214f6b;border-bottom-left-radius:20px;border-bottom-right-radius:20px;background:linear-gradient(93deg,var(--system-primary400) 0%,var(--system-primary700) 100%);width:100%;height:calc(100% + 30px)}.stack-single .main .sections[data-v-f185c830]{margin:auto;overflow:auto;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.system-cards[data-v-f185c830]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}@media (max-width: 1300px){.system-cards .to-hide-for-small-screen[data-v-f185c830]{display:none}}.system-cards .card i[data-v-f185c830]{font-size:20px;padding:0 10px;-webkit-box-sizing:border-box;box-sizing:border-box}.system-cards .card:hover .hovered[data-v-f185c830]{max-width:100px}.system-cards .card button[data-v-f185c830]{-webkit-box-shadow:none;box-shadow:none}.system-cards .card .hovered[data-v-f185c830]{position:absolute;top:0;left:0;-webkit-transition:.3s;transition:.3s;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;width:100%;height:100%;-webkit-backdrop-filter:blur(10px) brightness(.5);backdrop-filter:blur(10px) brightness(.5);z-index:1;font-weight:700;max-width:0;overflow:hidden}.system-cards .restart-stop-card button[data-v-f185c830]{border-radius:1000px;background:#0000003d;width:100%;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.system-cards .restart-stop-card button:hover span[data-v-f185c830]{visibility:visible;max-width:100px}.system-cards .restart-stop-card button span[data-v-f185c830]{visibility:hidden;max-width:0;overflow:hidden;-webkit-transition:.3s;transition:.3s}.system-cards .restart-stop-card button[data-v-f185c830]:hover{-webkit-box-shadow:2px 2px 0px rgba(0,0,0,.3);box-shadow:2px 2px #0000004d}.progress-container[data-v-f185c830]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.progress-container label[data-v-f185c830]{width:60px}.tabs[data-v-f185c830]{margin-top:20px}.tabs .tab[data-v-f185c830]{padding-left:20px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:translateZ(0);transform:translateZ(0);height:100%}.rotate[data-v-f185c830]{-webkit-animation:rotation-f185c830 2s infinite;animation:rotation-f185c830 2s infinite}@-webkit-keyframes rotation-f185c830{0%{-webkit-transform:rotateZ(0);transform:rotate(0)}to{-webkit-transform:rotateZ(360deg);transform:rotate(360deg)}}@keyframes rotation-f185c830{0%{-webkit-transform:rotateZ(0);transform:rotate(0)}to{-webkit-transform:rotateZ(360deg);transform:rotate(360deg)}}.dynamic-loader[data-v-f185c830]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:200px;width:100%}.dynamic-loader .loader-content[data-v-f185c830]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:12px;color:var(--system-primary600);font-weight:500}.dynamic-loader .loader-content .loader-icon[data-v-f185c830]{font-size:24px;-webkit-animation:rotation-f185c830 1s linear infinite;animation:rotation-f185c830 1s linear infinite}.dynamic-loader .loader-content span[data-v-f185c830]{font-size:14px;opacity:.8}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as M,p as q,u as A,S as B}from"./router-Dzu6a_zz.js";import K from"./system-BqvwX5_3.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as r,o as l,b as t,u as G,h as J,n as T,P as Q,a1 as W,r as f,w as X,j as R,S as E,K as N,g as p,s as _,d as Y,f as c,t as C,e as u,F as Z,q as ee,a2 as ae,H as te,k as se}from"./index-G_rNbFve.js";import{P as ne,_ as oe}from"./Section-OccJuk7A.js";import{T as le}from"./Tabs-DQDvjS5y.js";import{C as re}from"./CurrentEditor-DI0XEvLu.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./Editor-CBZeVePs.js";import"./currentEditor-DKB6Zox9.js";import"./Spinner-BMGbc3X9.js";const ie={props:{percent:{default:0}}},ce={class:"progress progress-moved"};function ue(v,d,i,a,g,y){return l(),r("div",ce,[t("div",{class:"progress-bar",style:G({width:`${(i.percent||0)>100?100:i.percent||0}%`})},null,4)])}const V=b(ie,[["render",ue],["__scopeId","data-v-3bbda6b0"]]),de={class:"card-container"},fe={__name:"Card",props:{color:{default:"blue"},mini:{default:!1}},setup(v){return(d,i)=>(l(),r("div",{class:T(["card-root",{[v.color]:!0,mini:v.mini}])},[t("div",de,[J(d.$slots,"default",{},void 0,!0)])],2))}},S=b(fe,[["__scopeId","data-v-bebaadaf"]]),ve={__name:"NotificationBell",setup(v){const d=()=>M.openHistory.next();return(i,a)=>(l(),r("div",{class:"notification-bell-root",onClick:d},a[0]||(a[0]=[t("i",{class:"fas fa-bell","aria-hidden":"true"},null,-1)])))}},pe=b(ve,[["__scopeId","data-v-c97a762b"]]),me={class:"main"},_e={class:"header"},be={class:"left"},ge={class:"title"},ye={class:"description"},he={class:"right"},ke={class:"icons"},Ce=["href"],Se=["href"],we=["href","title"],$e={class:"sections"},Ie={key:0,class:"sections"},xe={key:1,class:"system-cards"},Pe=["disabled"],Oe={class:"tab"},Be={__name:"StackSingle",setup(v){const d=Q({});q.forEach(s=>{s.cmp&&typeof s.cmp=="function"&&(d.value[s.name]=W(()=>s.cmp()))});const i=A(),a=f(),g=f(0),y=f(0),m=f(!1);X(()=>i.currentRoute.value.params.label,async()=>{await k()});const w=s=>{s.includes(i.currentRoute.value.params.label.toString())&&k()};R(()=>{E.on("conf:update",w)}),N(()=>{E.off("conf:update",w)});let h;const $=f([]);async function k(){var s;if(await B.loadServices(),a.value=await B.getService((s=i.currentRoute.value.params.label)==null?void 0:s.toString()),a.value){const{data:e}=await se.get("/plugins/services/"+a.value.label);$.value=e.sort((n,o)=>n.order-o.order).map(n=>{var I,x,P,O;const o={label:n.name,id:n.name,icon:n.icon,hidden:n.hidden,warning:0};if(n.name==="Configuration"){const D=Object.keys(((x=(I=a.value)==null?void 0:I.spawnOptions)==null?void 0:x.overrideEnvs)||{});Object.keys(((O=(P=a.value)==null?void 0:P.spawnOptions)==null?void 0:O.env)||{}).some(H=>D.includes(H))&&(o.warning=1)}return o})}}R(async()=>{await k(),h=setInterval(async()=>{var n;if(!((n=a.value)!=null&&n.label))return;const{cpu:s,mem:e}=await K.getInfos(a.value.label.toString());g.value=s,y.value=e},1e3)}),N(()=>{h&&clearInterval(h)}),f(!1);async function F(s,e){var n;(n=a.value)==null||n.openInVsCode(s,e)}async function L(s){var e;(e=a.value)==null||e.openFolder(s)}async function U(){var s;m.value=!0,await((s=a.value)==null?void 0:s.restart().finally(()=>m.value=!1))}async function j(){var s;await((s=a.value)==null?void 0:s.stop())}async function z(){var s;await((s=a.value)==null?void 0:s.start())}return(s,e)=>{var n;return a.value?(l(),r("div",{class:"stack-single",key:s.$route.params.label.toString()},[t("div",me,[t("div",_e,[t("div",be,[t("div",ge,[(n=a.value.container)!=null&&n.enabled?(l(),_(ne,{key:0,trigger:"mouseenter",appendTo:"parent","max-width":"50vh"},{trigger:c(()=>e[4]||(e[4]=[t("i",{class:"fab fa-docker"},null,-1)])),content:c(()=>[t("ul",null,[t("li",null,"Container name: "+C(a.value.container.name),1)])]),_:1})):p("",!0),Y(" "+C(a.value.label),1)]),t("div",ye,C(a.value.description),1)]),t("div",he,[u(pe),t("div",ke,[a.value.git&&a.value.git.home?(l(),r("a",{key:0,href:a.value.git.home,target:"_blank",title:"Open git home"},e[5]||(e[5]=[t("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)]),8,Ce)):p("",!0),a.value.url?(l(),r("a",{key:1,href:a.value.url,target:"_blank",title:"Open service URL"},e[6]||(e[6]=[t("i",{class:"fas fa-globe","aria-hidden":"true"},null,-1)]),8,Se)):p("",!0),(l(!0),r(Z,null,ee(a.value.urls,o=>(l(),r("a",{key:o,href:o,target:"_blank",title:o},e[7]||(e[7]=[t("i",{class:"fas fa-globe","aria-hidden":"true"},null,-1)]),8,we))),128)),(l(),_(re,{key:"current-editor-"+a.value.label,service:a.value,onOpenEditor:e[0]||(e[0]=o=>F(a.value.rootPath,o))},null,8,["service"])),a.value.rootPath?(l(),r("i",{key:2,class:"fas fa-folder","aria-hidden":"true",title:"Open folder",onClick:e[1]||(e[1]=o=>L(a.value.rootPath))})):p("",!0)])])]),t("div",$e,[a.value.enabled?(l(),r("div",xe,[u(S,{class:"card to-hide-for-small-screen",mini:!0},{default:c(()=>[e[8]||(e[8]=t("i",{class:"fas fa-memory"},null,-1)),e[9]||(e[9]=t("div",{class:"hovered"},"Memory",-1)),u(V,{percent:y.value},null,8,["percent"])]),_:1,__:[8,9]}),u(S,{class:"card to-hide-for-small-screen",color:"purple",mini:!0},{default:c(()=>[e[10]||(e[10]=t("i",{class:"fas fa-microchip"},null,-1)),e[11]||(e[11]=t("div",{class:"hovered"},"CPU",-1)),u(V,{percent:g.value},null,8,["percent"])]),_:1,__:[10,11]}),u(S,{class:"card restart-stop-card",color:"orange",mini:!0},{default:c(()=>[t("button",{class:"small",onClick:e[2]||(e[2]=o=>U()),disabled:m.value},[t("i",{class:T(["fas fa-sync",{rotate:m.value}]),"aria-hidden":"true"},null,2),e[12]||(e[12]=t("span",null,"Restart",-1))],8,Pe),t("button",{class:"small",onClick:e[3]||(e[3]=o=>j())},e[13]||(e[13]=[t("i",{class:"fas fa-stop","aria-hidden":"true"},null,-1),t("span",null,"Stop",-1)]))]),_:1})])):(l(),r("div",Ie,[u(oe,{header:"This service is not started",actions:[{label:"Start",click:()=>z(),icon:"fas fa-play"}],class:"section-not-started"},null,8,["actions"])])),u(le,{class:"tabs",tabs:$.value,showLabels:!1,direction:"left",contentCss:{height:"100%"}},{default:c(({tab:o})=>[t("div",Oe,[(l(),_(ae,null,{default:c(()=>[(l(),_(te(d.value[o.id]||o.id),{service:a.value,key:a.value.label},null,8,["service"]))]),fallback:c(()=>e[14]||(e[14]=[t("div",{class:"dynamic-loader"},[t("div",{class:"loader-content"},[t("i",{class:"fas fa-spinner fa-spin loader-icon"}),t("span",null,"Loading component...")])],-1)])),_:2},1024))])]),_:1},8,["tabs"])])])])):p("",!0)}}},Me=b(Be,[["__scopeId","data-v-f185c830"]]);export{Me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tabs[data-v-
|
|
1
|
+
.tabs[data-v-90487616]{margin-top:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:calc(100vh - 220px)}.tabs.left[data-v-90487616]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.tabs.left .buttons[data-v-90487616]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:auto;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;max-height:100%;position:sticky;top:40px;margin:0}.tabs.left .buttons button[data-v-90487616]{height:45px;width:100%}.tabs.left .buttons button.active[data-v-90487616]{background-color:#00000080;border:0;background:var(--system-primary400);background:linear-gradient(93deg,var(--system-primary400) 0%,var(--system-primary600) 100%);color:#fff}.tabs.left .buttons>:first-child button[data-v-90487616]{border-radius:5px 5px 0 0}.tabs.left .buttons>:last-child button[data-v-90487616]{border-radius:0 0 5px 5px}.buttons[data-v-90487616]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;top:0;border-radius:5px;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;margin:auto auto 10px;-ms-flex-negative:0;flex-shrink:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;gap:5px;background-color:var(--system-backgroundColor50);z-index:1;border:1px solid var(--system-backgroundColor200)}.buttons button[data-v-90487616]{position:relative;outline:none;margin:0;color:var(--system-color600);-webkit-transition:.2s;transition:.2s;border-bottom:0;height:40px;padding:0 20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent;font-size:1em;-webkit-box-shadow:none;box-shadow:none}.buttons button i[data-v-90487616]{font-size:1.2em}.buttons button.active[data-v-90487616]{border-radius:0;color:#777;background:var(--system-primary400);background:linear-gradient(93deg,var(--system-primary400) 0%,var(--system-primary600) 100%);color:#fff}.buttons button label[data-v-90487616]{background-color:#fff;margin-left:10px;color:#0076bc;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:20px;height:20px;border-radius:50%;padding-top:2px;-webkit-box-sizing:border-box;box-sizing:border-box}.buttons>:first-child button[data-v-90487616]{border-top-left-radius:5px;border-bottom-left-radius:5px}.buttons>:last-child button[data-v-90487616]{border-top-right-radius:5px;border-bottom-right-radius:5px}.content[data-v-90487616]{position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow-x:hidden}.badge[data-v-90487616]{position:absolute;right:0;top:0;-webkit-transform:translateX(50%) translateY(-50%);transform:translate(50%) translateY(-50%);z-index:1;padding:0;width:20px;height:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.badge.warning[data-v-90487616]{background-color:#e5b100}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as x}from"./router-Dzu6a_zz.js";import{P as I}from"./Section-OccJuk7A.js";import{_ as B}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{r as L,j as N,w as _,c as P,a as u,o as l,b as f,F as V,q as j,s as z,f as b,d as F,t as d,n as v,g as i,h as $,u as w}from"./index-G_rNbFve.js";const D=["onClick"],E={key:0},M={key:2},O={key:3,class:"badge warning"},W={__name:"Tabs",props:{tabs:{default:[]},height:{default:"calc(100vh - 220px)"},direction:{default:""},showLabels:{default:!0},contentCss:{default:()=>({})},invertColor:{default:!1}},setup(n,{expose:S}){const r=x(),o=n,a=L(),h=()=>{if(o.tabs){const t=localStorage.getItem("tab");a.value=o.tabs.find(s=>s.id===t)||o.tabs[0]}};N(()=>{var t;r.currentRoute.value.query.tab&&localStorage.setItem("tab",(t=r.currentRoute.value.query.tab)==null?void 0:t.toString()),h()}),_(()=>o.tabs,()=>{var t;!a.value&&((t=o.tabs)!=null&&t[0])&&h()}),_(()=>r.currentRoute.value,()=>{var s;const t=r.currentRoute.value.query.tab;t&&(a.value=(s=o.tabs)==null?void 0:s.find(c=>c.id===t))},{immediate:!0});const R=()=>{var s;const t=(s=a.value)!=null&&s.id?a.value.id:"";localStorage.setItem("tab",t),r.push({path:r.currentRoute.value.fullPath,query:Object.assign({},r.currentRoute.value.query||{},{tab:t})})},q=P(()=>o.tabs.filter(t=>!t.hidden));return S({currentTab:a}),(t,s)=>{var c,g,m,y;return l(),u("div",{class:v(["tabs",{[n.direction]:!0}]),style:w({height:n.height})},[f("div",{class:v(["buttons",{invert:n.invertColor}])},[(l(!0),u(V,null,j(q.value,e=>(l(),z(I,{key:e.label,appendTo:"parent",trigger:"mouseenter",placement:"right",fullWidth:!0},{trigger:b(()=>{var p,k,C,T;return[f("button",{onClick:A=>{a.value=e,R()},class:v({active:(e==null?void 0:e.id)===((p=a.value)==null?void 0:p.id)})},[e.label&&!e.icon?(l(),u("div",E,d(e.label),1)):i("",!0),e.icon?(l(),u("i",{key:1,class:v(e.icon),"aria-hidden":"true"},null,2)):i("",!0),n.showLabels?(l(),u("label",M,d(((C=(k=e==null?void 0:e.data)==null?void 0:k.value)==null?void 0:C.length)||((T=e==null?void 0:e.data)==null?void 0:T.length)||0),1)):i("",!0),e!=null&&e.warning?(l(),u("div",O,d(e.warning),1)):i("",!0)],10,D)]}),content:b(()=>[F(d(e.label),1)]),_:2},1024))),128))],2),f("div",{class:"content",style:w(n.contentCss)},[a.value?$(t.$slots,"default",{key:(c=a.value)==null?void 0:c.id,data:((m=(g=a.value)==null?void 0:g.data)==null?void 0:m.value)||((y=a.value)==null?void 0:y.data),tab:a.value},void 0,!0):i("",!0)],4)],6)}}},Q=B(W,[["__scopeId","data-v-90487616"]]);export{Q as T};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as Z}from"./router-Dzu6a_zz.js";import{r as N,k as z,w as R}from"./index-G_rNbFve.js";import{i as _,d as q,b as U,a as j,c as v,e as O,f as rr,g as V,h as er,j as tr,k as J,l as ar,m as or,n as nr,o as sr,p as K,q as ir,r as lr,s as G,t as ur,u as cr,v as fr,S as dr,w as mr}from"./_baseFor-DiPelG4M.js";function yr(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function hr(t,e){var r=-1,s=t.length;for(e||(e=Array(s));++r<s;)e[r]=t[r];return e}var gr=800,pr=16,br=Date.now;function Cr(t){var e=0,r=0;return function(){var s=br(),a=pr-(s-r);if(r=s,a>0){if(++e>=gr)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function vr(t){return function(){return t}}var kr=q?function(t,e){return q(t,"toString",{configurable:!0,enumerable:!1,value:vr(e),writable:!0})}:_,Tr=Cr(kr);function Or(t,e,r,s){var a=!r;r||(r={});for(var i=-1,l=e.length;++i<l;){var o=e[i],n=void 0;n===void 0&&(n=t[o]),a?U(r,o,n):j(r,o,n)}return r}var H=Math.max;function $r(t,e,r){return e=H(e===void 0?t.length-1:e,0),function(){for(var s=arguments,a=-1,i=H(s.length-e,0),l=Array(i);++a<i;)l[a]=s[e+a];a=-1;for(var o=Array(e+1);++a<e;)o[a]=s[a];return o[e]=r(l),yr(t,this,o)}}function wr(t,e){return Tr($r(t,e,_),t+"")}function Pr(t,e,r){if(!v(r))return!1;var s=typeof e;return(s=="number"?O(r)&&rr(e,r.length):s=="string"&&e in r)?V(r[e],t):!1}function Sr(t){return wr(function(e,r){var s=-1,a=r.length,i=a>1?r[a-1]:void 0,l=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,l&&Pr(r[0],r[1],l)&&(i=a<3?void 0:i,a=1),e=Object(e);++s<a;){var o=r[s];o&&t(e,o,s,i)}return e})}function xr(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Ir=Object.prototype,Ar=Ir.hasOwnProperty;function Er(t){if(!v(t))return xr(t);var e=er(t),r=[];for(var s in t)s=="constructor"&&(e||!Ar.call(t,s))||r.push(s);return r}function Q(t){return O(t)?tr(t,!0):Er(t)}var Lr="[object Object]",Mr=Function.prototype,Br=Object.prototype,X=Mr.toString,Dr=Br.hasOwnProperty,Fr=X.call(Object);function Nr(t){if(!J(t)||ar(t)!=Lr)return!1;var e=or(t);if(e===null)return!0;var r=Dr.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&X.call(r)==Fr}function k(t,e,r){(r!==void 0&&!V(t[e],r)||r===void 0&&!(e in t))&&U(t,e,r)}function Rr(t){return J(t)&&O(t)}function T(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function qr(t){return Or(t,Q(t))}function Kr(t,e,r,s,a,i,l){var o=T(t,r),n=T(e,r),d=l.get(n);if(d){k(t,r,d);return}var f=i?i(o,n,r+"",t,e,l):void 0,p=f===void 0;if(p){var y=K(n),m=!y&&nr(n),c=!y&&!m&&sr(n);f=n,y||m||c?K(o)?f=o:Rr(o)?f=hr(o):m?(p=!1,f=ir(n,!0)):c?(p=!1,f=lr(n,!0)):f=[]:Nr(n)||G(n)?(f=o,G(o)?f=qr(o):(!v(o)||ur(o))&&(f=cr(n))):p=!1}p&&(l.set(n,f),a(f,n,s,i,l),l.delete(n)),k(t,r,f)}function Y(t,e,r,s,a){t!==e&&fr(e,function(i,l){if(a||(a=new dr),v(i))Kr(t,e,l,r,Y,s,a);else{var o=s?s(T(t,l),i,l+"",t,e,a):void 0;o===void 0&&(o=i),k(t,l,o)}},Q)}var Gr=Sr(function(t,e,r){Y(t,e,r)});const Hr={rules:{system:{backgroundColor0:"#fff",backgroundColor50:"#f8f8f8",backgroundColor100:"#eee",backgroundColor200:"#ddd",backgroundColor300:"#ccc",backgroundColor400:"#888",backgroundColor500:"#777",backgroundColor600:"#555",backgroundColor700:"#333",backgroundColor800:"#222",backgroundColor900:"#111",backgroundColor950:"#000",color0:"#000",color50:"#111",color100:"#222",color200:"#333",color300:"#444",color400:"#555",color500:"#666",color600:"#888",color700:"#aaa",color800:"#ccc",color900:"#ddd",color950:"#fff",primary50:"#faecfb",primary100:"#f0c5f3",primary200:"#e69fec",primary300:"#db78e4",primary400:"#d151dc",primary500:"#c72bd4",primary600:"#a323ae",primary700:"#7f1b87",primary800:"#5a1360",primary900:"#360c3a",primary950:"#120413",secondary50:"#faecfb",secondary100:"#f0c5f3",secondary200:"#e69fec",secondary300:"#db78e4",secondary400:"#d151dc",secondary500:"#c72bd4",secondary600:"#a323ae",secondary700:"#7f1b87",secondary800:"#5a1360",secondary900:"#360c3a",secondary950:"#120413",tertiary50:"#faecfb",tertiary100:"#f0c5f3",tertiary200:"#e69fec",tertiary300:"#db78e4",tertiary400:"#d151dc",tertiary500:"#c72bd4",tertiary600:"#a323ae",tertiary700:"#7f1b87",tertiary800:"#5a1360",tertiary900:"#360c3a",tertiary950:"#120413",terminalContrastRatio:7},background:{color:"var(--system-color0)",backgroundColor:"var(--system-backgroundColor100)"},sidebarMain:{color:"var(--system-color600)",backgroundColor:"var(--system-backgroundColor0)"},sidebar:{color:"var(--system-color0)",backgroundColor:"var(--system-backgroundColor50)"}}},Wr={rules:{system:{backgroundColor0:"#000",backgroundColor50:"#0a0a0a",backgroundColor100:"#222",backgroundColor200:"#333",backgroundColor300:"#444",backgroundColor400:"#555",backgroundColor500:"#777",backgroundColor600:"#888",backgroundColor700:"#aaa",backgroundColor800:"#ccc",backgroundColor900:"#ddd",backgroundColor950:"#fff",color0:"#fff",color50:"#ddd",color100:"#ccc",color200:"#bbb",color300:"#aaa",color400:"#888",color500:"#666",color600:"#555",color700:"#333",color800:"#222",color900:"#111",color950:"#000",primary50:"#120413",primary100:"#360c3a",primary200:"#5a1360",primary300:"#7f1b87",primary400:"#a323ae",primary500:"#c72bd4",primary600:"#db78e4",primary700:"#e69fec",primary800:"#f0c5f3",primary900:"#faecfb",primary950:"#fff",secondary50:"#120413",secondary100:"#360c3a",secondary200:"#5a1360",secondary300:"#7f1b87",secondary400:"#a323ae",secondary500:"#c72bd4",secondary600:"#db78e4",secondary700:"#e69fec",secondary800:"#f0c5f3",secondary900:"#faecfb",secondary950:"#fff",tertiary50:"#120413",tertiary100:"#360c3a",tertiary200:"#5a1360",tertiary300:"#7f1b87",tertiary400:"#a323ae",tertiary500:"#c72bd4",tertiary600:"#db78e4",tertiary700:"#e69fec",tertiary800:"#f0c5f3",tertiary900:"#faecfb",tertiary950:"#fff",terminalContrastRatio:7},background:{color:"var(--system-color300)",backgroundColor:"var(--system-backgroundColor100)"},sidebarMain:{color:"var(--system-color300)",backgroundColor:"var(--system-backgroundColor300)"},sidebar:{color:"var(--system-color200)",backgroundColor:"var(--system-backgroundColor200)"}}};class _r{constructor(){this.themes=N({light:Hr,dark:Wr}),this.currentTheme=N("light"),this.buildedTheme=this.themes.value.light,this.observableCurrentTheme=new Z,z.get("/api/plugins/themes").then(e=>{this.themes.value={...this.themes.value,...e.data}}),R(()=>this.currentTheme.value,e=>{this.apply(e)}),R(()=>this.themes.value[this.currentTheme.value],e=>{this.loadCurrentTheme()},{deep:!0})}load(e={}){Object.assign(this.themes.value,e),this.loadCurrentTheme(),this.apply(this.currentTheme.value)}get(e){var a,i,l;const[r,s]=e.split("/");return(l=(i=(a=this.buildedTheme)==null?void 0:a.rules)==null?void 0:i[r])==null?void 0:l[s]}loadCurrentTheme(){let e=localStorage.getItem("currentTheme");e||(localStorage.setItem("currentTheme","lightPurple"),e="lightPurple"),e==="light"&&(localStorage.setItem("currentTheme","lightPurple"),e="lightPurple"),e==="dark"&&(localStorage.setItem("currentTheme","darkPurple"),e="darkPurple"),this.themes.value[e]||(e="light"),this.currentTheme.value=e}lighter(e,r){return W.lighter(e,r)}buildTheme(e){let r=mr(this.themes.value[e]);if(!r)throw new Error(`${e} theme not exists`);if(r.base){if(!this.themes.value[r.base])return r;r=Gr(this.buildTheme(r.base),r)}return r}apply(e){var s,a,i,l,o,n,d,f,p,y,m,c,g,h,$,w,P,S,x,I,A,E,L,M;localStorage.setItem("currentTheme",e);const r=this.buildTheme(e);this.currentTheme.value=e,this.buildedTheme=r,this.currentTheme.value.startsWith("dark")?(document.documentElement.classList.add("theme-dark"),document.documentElement.classList.remove("theme-light")):(document.documentElement.classList.add("theme-light"),document.documentElement.classList.remove("theme-dark")),this.observableCurrentTheme.next("apply",e),Object.keys(r.rules).forEach(B=>{const D=r.rules[B];Object.keys(D).forEach(F=>{const b=`--${B.replaceAll(".","-")}-${F}`,C=D[F];u(b,C),u(`${b}-darker`,this.lighter(-.3,C)),u(`${b}-darkest`,this.lighter(-.5,C)),u(`${b}-lighter`,this.lighter(.3,C)),u(`${b}-lightest`,this.lighter(.5,C))})}),u("--p-surface-0",(s=r.rules.system)==null?void 0:s.backgroundColor0),u("--p-surface-50",(a=r.rules.system)==null?void 0:a.backgroundColor50),u("--p-surface-100",(i=r.rules.system)==null?void 0:i.backgroundColor100),u("--p-surface-200",(l=r.rules.system)==null?void 0:l.backgroundColor200),u("--p-surface-300",(o=r.rules.system)==null?void 0:o.backgroundColor300),u("--p-surface-400",(n=r.rules.system)==null?void 0:n.backgroundColor400),u("--p-surface-500",(d=r.rules.system)==null?void 0:d.backgroundColor500),u("--p-surface-600",(f=r.rules.system)==null?void 0:f.backgroundColor600),u("--p-surface-700",(p=r.rules.system)==null?void 0:p.backgroundColor700),u("--p-surface-800",(y=r.rules.system)==null?void 0:y.backgroundColor800),u("--p-surface-900",(m=r.rules.system)==null?void 0:m.backgroundColor900),u("--p-surface-950",(c=r.rules.system)==null?void 0:c.backgroundColor950),u("--p-primary-50",(g=r.rules.system)==null?void 0:g.primary950),u("--p-primary-100",(h=r.rules.system)==null?void 0:h.primary900),u("--p-primary-200",($=r.rules.system)==null?void 0:$.primary800),u("--p-primary-300",(w=r.rules.system)==null?void 0:w.primary700),u("--p-primary-400",(P=r.rules.system)==null?void 0:P.primary600),u("--p-primary-500",(S=r.rules.system)==null?void 0:S.primary500),u("--p-primary-600",(x=r.rules.system)==null?void 0:x.primary400),u("--p-primary-700",(I=r.rules.system)==null?void 0:I.primary300),u("--p-primary-800",(A=r.rules.system)==null?void 0:A.primary200),u("--p-primary-900",(E=r.rules.system)==null?void 0:E.primary100),u("--p-primary-950",(L=r.rules.system)==null?void 0:L.primary50),u("--p-tabs-nav-button-shadow",`0px 0px 10px 50px ${W.lighter(0,(M=r.rules.system)==null?void 0:M.backgroundColor300)}55`),console.log(r.rules)}}function u(t,e){const r=document.querySelector(":root");if(r){if(!t.startsWith("--"))throw new Error("Css variable should starts with --");r.style.setProperty(t,e)}}const Qr=new _r,W={lighter(t,e,r,s){let a,i,l,o,n,d,f;const p=parseInt,y=Math.round;let m=typeof r=="string";return typeof t!="number"||t<-1||t>1||typeof e!="string"||e[0]!="r"&&e[0]!="#"||r&&!m||(this.pSBCr||(this.pSBCr=c=>{let g=c.length;const h={};if(g>9){if([a,i,l,m]=c=c.split(","),g=c.length,g<3||g>4)return null;h.r=p(a[3]=="a"?a.slice(5):a.slice(4)),h.g=p(i),h.b=p(l),h.a=m?parseFloat(m):-1}else{if(g==8||g==6||g<4)return null;g<6&&(c=`#${c[1]}${c[1]}${c[2]}${c[2]}${c[3]}${c[3]}${g>4?c[4]+c[4]:""}`),c=p(c.slice(1),16),g==9||g==5?(h.r=c>>24&255,h.g=c>>16&255,h.b=c>>8&255,h.a=y((c&255)/.255)/1e3):(h.r=c>>16,h.g=c>>8&255,h.b=c&255,h.a=-1)}return h}),f=e.length>9,f=m?r.length>9?!0:r=="c"?!f:!1:f,n=this.pSBCr(e),o=t<0,d=r&&r!="c"?this.pSBCr(r):o?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},t=o?t*-1:t,o=1-t,!n||!d)?null:(s?(a=y(o*n.r+t*d.r),i=y(o*n.g+t*d.g),l=y(o*n.b+t*d.b)):(a=y((o*n.r**2+t*d.r**2)**.5),i=y((o*n.g**2+t*d.g**2)**.5),l=y((o*n.b**2+t*d.b**2)**.5)),m=n.a,d=d.a,n=m>=0||d>=0,m=n?m<0?d:d<0?m:m*o+d*t:0,f?`rgb${n?"a(":"("}${a},${i},${l}${n?`,${y(m*1e3)/1e3}`:""})`:`#${(4294967296+a*16777216+i*65536+l*256+(n?y(m*255):0)).toString(16).slice(1,n?void 0:-2)}`)}};export{Qr as T};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
input[data-v-2549dec4]{width:90%;box-sizing:border-box;margin:5px auto;justify-self:center}.toolbox[data-v-2549dec4]{display:flex;min-width:0;width:100%;align-items:center}.sidebar[data-v-2549dec4]{display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 0 4px #000;width:150px;background-color:var(--system-backgroundColor50);color:var(--system-color50);height:100%;flex-shrink:0;z-index:3}.sidebar ul[data-v-2549dec4]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}.progress-container[data-v-2549dec4]{display:flex;align-items:center}.progress-container label[data-v-2549dec4]{width:60px}.sidebar-item[data-v-2549dec4]{cursor:pointer;transform:translateZ(0);transition:background-color .3s;padding:5px;display:flex;justify-content:space-between;align-items:center;border-left:5px solid transparent}.sidebar-item .item[data-v-2549dec4]{display:flex;align-items:center;gap:5px}.sidebar-item .icon[data-v-2549dec4]{width:20px;transition:.3s;display:flex;justify-content:center}.sidebar-item[data-v-2549dec4]:hover{background-color:var(--system-backgroundColor300);color:var(--system-color300)}.sidebar-item:hover i[data-v-2549dec4]{opacity:1}.sidebar-item.active[data-v-2549dec4]{font-weight:700;border-left:5px solid var(--system-primary400)}.sidebar-item.disabled[data-v-2549dec4]{color:#999}.container[data-v-2549dec4]{display:flex;flex-grow:1;min-width:0;padding:5px 10px;box-sizing:border-box;height:100%;overflow:auto}.no-tools[data-v-2549dec4]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;font-size:2em;color:#999}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,j as y,k as C,c as x,l as R,a as c,o as r,b as s,m as w,v as B,p as P,F as U,q as V,n as h,g as F,d as N,t as u,s as $,L as z}from"./index-G_rNbFve.js";import{u as D}from"./router-Dzu6a_zz.js";import{_ as E}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./Editor-CBZeVePs.js";import"./Section-OccJuk7A.js";const I={class:"toolbox"},K={class:"sidebar"},L=["onClick"],M={class:"item"},S={key:1,class:"icon"},j={class:"container"},q={key:1,class:"no-tools"},A={__name:"Toolbox",setup(G){const l=D(),d=n([]),i=n(""),v=n();y(async()=>{var t;const{data:e}=await C.get("/plugins/toolbox");d.value=(e==null?void 0:e.flat())||[],(t=v.value)==null||t.focus()});const T=x(()=>d.value.filter(e=>!e.version)),_=n(null),f=x(()=>[...globalThis.toolboxPlugins.value.map(e=>({...e,click:()=>{_.value=e.id,l.push({path:`/toolbox/${encodeURIComponent(e.id)}`})}})),...T.value.map(e=>e.placements.map(t=>typeof t=="string"?null:{...e,text:t.label,icon:t.icon,iconText:t.iconText,click:t.goTo?()=>{var a;_.value=null,typeof t.goTo=="string"?l.push({path:t.goTo}):l.push({...t.goTo,path:`/toolbox${((a=t.goTo)==null?void 0:a.path)||t.goTo}`})}:()=>{},active:t.active})).flat().filter(e=>{var t,a;return(a=e==null?void 0:e.text)==null?void 0:a.toUpperCase().includes((t=i.value)==null?void 0:t.toUpperCase())})]);function k(){var e,t;(t=(e=f.value)==null?void 0:e[0])==null||t.click()}function b(e){return l.currentRoute.value.params.plugin===((e==null?void 0:e.name)||e.id)}return(e,t)=>{const a=R("router-view");return r(),c("div",I,[s("div",K,[s("ul",null,[w(s("input",{type:"text",ref_key:"searchToolRef",ref:v,placeholder:"Search tool...","onUpdate:modelValue":t[0]||(t[0]=o=>i.value=o),autofocus:"true",onKeypress:P(k,["enter"])},null,544),[[B,i.value]]),(r(!0),c(U,null,V(f.value,o=>(r(),c("li",{key:o==null?void 0:o.name,class:h(["sidebar-item",{active:b(o)}]),onClick:H=>{var m;return(m=o==null?void 0:o.click)==null?void 0:m.call(o)}},[s("div",M,[o!=null&&o.icon?(r(),c("i",{key:0,class:h(["icon",o==null?void 0:o.icon])},null,2)):o!=null&&o.iconText?(r(),c("span",S,u(o==null?void 0:o.iconText),1)):F("",!0),N(" "+u(o==null?void 0:o.text),1)])],10,L))),128))])]),s("div",j,[z(l).currentRoute.value.fullPath!=="/toolbox"?(r(),$(a,{key:0})):(r(),c("div",q,t[1]||(t[1]=[s("div",null,[s("i",{class:"fas fa-toolbox"})],-1),s("div",null," Choisissez un outils ",-1)])))])])}}},Z=E(A,[["__scopeId","data-v-2549dec4"]]);export{Z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var bt=typeof global=="object"&&global&&global.Object===Object&&global,Ct=typeof self=="object"&&self&&self.Object===Object&&self,f=bt||Ct||Function("return this")(),T=f.Symbol,dt=Object.prototype,Et=dt.hasOwnProperty,It=dt.toString,w=T?T.toStringTag:void 0;function Mt(t){var e=Et.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch{}var u=It.call(t);return n&&(e?t[w]=r:delete t[w]),u}var Ft=Object.prototype,Dt=Ft.toString;function Ut(t){return Dt.call(t)}var Bt="[object Null]",zt="[object Undefined]",W=T?T.toStringTag:void 0;function x(t){return t==null?t===void 0?zt:Bt:W&&W in Object(t)?Mt(t):Ut(t)}function P(t){return t!=null&&typeof t=="object"}var L=Array.isArray;function E(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function aa(t){return t}var Gt="[object AsyncFunction]",Lt="[object Function]",Nt="[object GeneratorFunction]",Rt="[object Proxy]";function ht(t){if(!E(t))return!1;var e=x(t);return e==Lt||e==Nt||e==Gt||e==Rt}var F=f["__core-js_shared__"],q=function(){var t=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Vt(t){return!!q&&q in t}var Ht=Function.prototype,Kt=Ht.toString;function j(t){if(t!=null){try{return Kt.call(t)}catch{}try{return t+""}catch{}}return""}var Wt=/[\\^$.*+?()[\]{}|]/g,qt=/^\[object .+?Constructor\]$/,Xt=Function.prototype,Yt=Object.prototype,Jt=Xt.toString,Zt=Yt.hasOwnProperty,Qt=RegExp("^"+Jt.call(Zt).replace(Wt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kt(t){if(!E(t)||Vt(t))return!1;var e=ht(t)?Qt:qt;return e.test(j(t))}function te(t,e){return t==null?void 0:t[e]}function _(t,e){var r=te(t,e);return kt(r)?r:void 0}var U=_(f,"WeakMap"),X=Object.create,ee=function(){function t(){}return function(e){if(!E(e))return{};if(X)return X(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Y=function(){try{var t=_(Object,"defineProperty");return t({},"",{}),t}catch{}}();function re(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var ne=9007199254740991,ae=/^(?:0|[1-9]\d*)$/;function oe(t,e){var r=typeof t;return e=e??ne,!!e&&(r=="number"||r!="symbol"&&ae.test(t))&&t>-1&&t%1==0&&t<e}function ie(t,e,r){e=="__proto__"&&Y?Y(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function yt(t,e){return t===e||t!==t&&e!==e}var se=Object.prototype,ce=se.hasOwnProperty;function ue(t,e,r){var n=t[e];(!(ce.call(t,e)&&yt(n,r))||r===void 0&&!(e in t))&&ie(t,e,r)}var fe=9007199254740991;function jt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=fe}function pe(t){return t!=null&&jt(t.length)&&!ht(t)}var le=Object.prototype;function _t(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||le;return t===r}function ge(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var be="[object Arguments]";function J(t){return P(t)&&x(t)==be}var Tt=Object.prototype,de=Tt.hasOwnProperty,he=Tt.propertyIsEnumerable,ye=J(function(){return arguments}())?J:function(t){return P(t)&&de.call(t,"callee")&&!he.call(t,"callee")};function je(){return!1}var vt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Z=vt&&typeof module=="object"&&module&&!module.nodeType&&module,_e=Z&&Z.exports===vt,Q=_e?f.Buffer:void 0,Te=Q?Q.isBuffer:void 0,$t=Te||je,ve="[object Arguments]",$e="[object Array]",me="[object Boolean]",we="[object Date]",Ae="[object Error]",Oe="[object Function]",Se="[object Map]",xe="[object Number]",Pe="[object Object]",Ce="[object RegExp]",Ee="[object Set]",Ie="[object String]",Me="[object WeakMap]",Fe="[object ArrayBuffer]",De="[object DataView]",Ue="[object Float32Array]",Be="[object Float64Array]",ze="[object Int8Array]",Ge="[object Int16Array]",Le="[object Int32Array]",Ne="[object Uint8Array]",Re="[object Uint8ClampedArray]",Ve="[object Uint16Array]",He="[object Uint32Array]",o={};o[Ue]=o[Be]=o[ze]=o[Ge]=o[Le]=o[Ne]=o[Re]=o[Ve]=o[He]=!0;o[ve]=o[$e]=o[Fe]=o[me]=o[De]=o[we]=o[Ae]=o[Oe]=o[Se]=o[xe]=o[Pe]=o[Ce]=o[Ee]=o[Ie]=o[Me]=!1;function Ke(t){return P(t)&&jt(t.length)&&!!o[x(t)]}function N(t){return function(e){return t(e)}}var mt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,A=mt&&typeof module=="object"&&module&&!module.nodeType&&module,We=A&&A.exports===mt,D=We&&bt.process,v=function(){try{var t=A&&A.require&&A.require("util").types;return t||D&&D.binding&&D.binding("util")}catch{}}(),k=v&&v.isTypedArray,qe=k?N(k):Ke,Xe=Object.prototype,Ye=Xe.hasOwnProperty;function Je(t,e){var r=L(t),n=!r&&ye(t),u=!r&&!n&&$t(t),s=!r&&!n&&!u&&qe(t),i=r||n||u||s,g=i?ge(t.length,String):[],d=g.length;for(var c in t)(e||Ye.call(t,c))&&!(i&&(c=="length"||u&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||oe(c,d)))&&g.push(c);return g}function wt(t,e){return function(r){return t(e(r))}}var Ze=wt(Object.keys,Object),Qe=Object.prototype,ke=Qe.hasOwnProperty;function tr(t){if(!_t(t))return Ze(t);var e=[];for(var r in Object(t))ke.call(t,r)&&r!="constructor"&&e.push(r);return e}function er(t){return pe(t)?Je(t):tr(t)}var O=_(Object,"create");function rr(){this.__data__=O?O(null):{},this.size=0}function nr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ar="__lodash_hash_undefined__",or=Object.prototype,ir=or.hasOwnProperty;function sr(t){var e=this.__data__;if(O){var r=e[t];return r===ar?void 0:r}return ir.call(e,t)?e[t]:void 0}var cr=Object.prototype,ur=cr.hasOwnProperty;function fr(t){var e=this.__data__;return O?e[t]!==void 0:ur.call(e,t)}var pr="__lodash_hash_undefined__";function lr(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=O&&e===void 0?pr:e,this}function y(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}y.prototype.clear=rr;y.prototype.delete=nr;y.prototype.get=sr;y.prototype.has=fr;y.prototype.set=lr;function gr(){this.__data__=[],this.size=0}function I(t,e){for(var r=t.length;r--;)if(yt(t[r][0],e))return r;return-1}var br=Array.prototype,dr=br.splice;function hr(t){var e=this.__data__,r=I(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():dr.call(e,r,1),--this.size,!0}function yr(t){var e=this.__data__,r=I(e,t);return r<0?void 0:e[r][1]}function jr(t){return I(this.__data__,t)>-1}function _r(t,e){var r=this.__data__,n=I(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function l(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=gr;l.prototype.delete=hr;l.prototype.get=yr;l.prototype.has=jr;l.prototype.set=_r;var S=_(f,"Map");function Tr(){this.size=0,this.__data__={hash:new y,map:new(S||l),string:new y}}function vr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function M(t,e){var r=t.__data__;return vr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function $r(t){var e=M(this,t).delete(t);return this.size-=e?1:0,e}function mr(t){return M(this,t).get(t)}function wr(t){return M(this,t).has(t)}function Ar(t,e){var r=M(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function $(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}$.prototype.clear=Tr;$.prototype.delete=$r;$.prototype.get=mr;$.prototype.has=wr;$.prototype.set=Ar;function Or(t,e){for(var r=-1,n=e.length,u=t.length;++r<n;)t[u+r]=e[r];return t}var Sr=wt(Object.getPrototypeOf,Object);function xr(){this.__data__=new l,this.size=0}function Pr(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function Cr(t){return this.__data__.get(t)}function Er(t){return this.__data__.has(t)}var Ir=200;function Mr(t,e){var r=this.__data__;if(r instanceof l){var n=r.__data__;if(!S||n.length<Ir-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new $(n)}return r.set(t,e),this.size=r.size,this}function m(t){var e=this.__data__=new l(t);this.size=e.size}m.prototype.clear=xr;m.prototype.delete=Pr;m.prototype.get=Cr;m.prototype.has=Er;m.prototype.set=Mr;var At=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tt=At&&typeof module=="object"&&module&&!module.nodeType&&module,Fr=tt&&tt.exports===At,et=Fr?f.Buffer:void 0,rt=et?et.allocUnsafe:void 0;function Dr(t,e){if(e)return t.slice();var r=t.length,n=rt?rt(r):new t.constructor(r);return t.copy(n),n}function Ur(t,e){for(var r=-1,n=t==null?0:t.length,u=0,s=[];++r<n;){var i=t[r];e(i,r,t)&&(s[u++]=i)}return s}function Br(){return[]}var zr=Object.prototype,Gr=zr.propertyIsEnumerable,nt=Object.getOwnPropertySymbols,Lr=nt?function(t){return t==null?[]:(t=Object(t),Ur(nt(t),function(e){return Gr.call(t,e)}))}:Br;function Nr(t,e,r){var n=e(t);return L(t)?n:Or(n,r(t))}function Rr(t){return Nr(t,er,Lr)}var B=_(f,"DataView"),z=_(f,"Promise"),G=_(f,"Set"),at="[object Map]",Vr="[object Object]",ot="[object Promise]",it="[object Set]",st="[object WeakMap]",ct="[object DataView]",Hr=j(B),Kr=j(S),Wr=j(z),qr=j(G),Xr=j(U),p=x;(B&&p(new B(new ArrayBuffer(1)))!=ct||S&&p(new S)!=at||z&&p(z.resolve())!=ot||G&&p(new G)!=it||U&&p(new U)!=st)&&(p=function(t){var e=x(t),r=e==Vr?t.constructor:void 0,n=r?j(r):"";if(n)switch(n){case Hr:return ct;case Kr:return at;case Wr:return ot;case qr:return it;case Xr:return st}return e});var Yr=Object.prototype,Jr=Yr.hasOwnProperty;function Zr(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Jr.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var ut=f.Uint8Array;function R(t){var e=new t.constructor(t.byteLength);return new ut(e).set(new ut(t)),e}function Qr(t,e){var r=R(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var kr=/\w*$/;function tn(t){var e=new t.constructor(t.source,kr.exec(t));return e.lastIndex=t.lastIndex,e}var ft=T?T.prototype:void 0,pt=ft?ft.valueOf:void 0;function en(t){return pt?Object(pt.call(t)):{}}function rn(t,e){var r=e?R(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var nn="[object Boolean]",an="[object Date]",on="[object Map]",sn="[object Number]",cn="[object RegExp]",un="[object Set]",fn="[object String]",pn="[object Symbol]",ln="[object ArrayBuffer]",gn="[object DataView]",bn="[object Float32Array]",dn="[object Float64Array]",hn="[object Int8Array]",yn="[object Int16Array]",jn="[object Int32Array]",_n="[object Uint8Array]",Tn="[object Uint8ClampedArray]",vn="[object Uint16Array]",$n="[object Uint32Array]";function mn(t,e,r){var n=t.constructor;switch(e){case ln:return R(t);case nn:case an:return new n(+t);case gn:return Qr(t);case bn:case dn:case hn:case yn:case jn:case _n:case Tn:case vn:case $n:return rn(t,r);case on:return new n;case sn:case fn:return new n(t);case cn:return tn(t);case un:return new n;case pn:return en(t)}}function wn(t){return typeof t.constructor=="function"&&!_t(t)?ee(Sr(t)):{}}var An="[object Map]";function On(t){return P(t)&&p(t)==An}var lt=v&&v.isMap,Sn=lt?N(lt):On,xn="[object Set]";function Pn(t){return P(t)&&p(t)==xn}var gt=v&&v.isSet,Cn=gt?N(gt):Pn,En=1,Ot="[object Arguments]",In="[object Array]",Mn="[object Boolean]",Fn="[object Date]",Dn="[object Error]",St="[object Function]",Un="[object GeneratorFunction]",Bn="[object Map]",zn="[object Number]",xt="[object Object]",Gn="[object RegExp]",Ln="[object Set]",Nn="[object String]",Rn="[object Symbol]",Vn="[object WeakMap]",Hn="[object ArrayBuffer]",Kn="[object DataView]",Wn="[object Float32Array]",qn="[object Float64Array]",Xn="[object Int8Array]",Yn="[object Int16Array]",Jn="[object Int32Array]",Zn="[object Uint8Array]",Qn="[object Uint8ClampedArray]",kn="[object Uint16Array]",ta="[object Uint32Array]",a={};a[Ot]=a[In]=a[Hn]=a[Kn]=a[Mn]=a[Fn]=a[Wn]=a[qn]=a[Xn]=a[Yn]=a[Jn]=a[Bn]=a[zn]=a[xt]=a[Gn]=a[Ln]=a[Nn]=a[Rn]=a[Zn]=a[Qn]=a[kn]=a[ta]=!0;a[Dn]=a[St]=a[Vn]=!1;function C(t,e,r,n,u,s){var i,g=e&En;if(i!==void 0)return i;if(!E(t))return t;var d=L(t);if(d)i=Zr(t);else{var c=p(t),V=c==St||c==Un;if($t(t))return Dr(t,g);if(c==xt||c==Ot||V&&!u)i=V?{}:wn(t);else{if(!a[c])return u?t:{};i=mn(t,c,g)}}s||(s=new m);var H=s.get(t);if(H)return H;s.set(t,i),Cn(t)?t.forEach(function(b){i.add(C(b,e,r,b,t,s))}):Sn(t)&&t.forEach(function(b,h){i.set(h,C(b,e,r,h,t,s))});var Pt=Rr,K=d?void 0:Pt(t);return re(K||t,function(b,h){K&&(h=b,b=t[h]),ue(i,h,C(b,e,r,h,t,s))}),i}var ea=1,ra=4;function oa(t){return C(t,ea|ra)}function na(t){return function(e,r,n){for(var u=-1,s=Object(e),i=n(e),g=i.length;g--;){var d=i[++u];if(r(s[d],d,s)===!1)break}return e}}var ia=na();export{er as A,jt as B,$ as M,m as S,ut as U,ue as a,ie as b,E as c,Y as d,pe as e,oe as f,yt as g,_t as h,aa as i,Je as j,P as k,x as l,Sr as m,$t as n,qe as o,L as p,Dr as q,rn as r,ye as s,ht as t,wn as u,ia as v,oa as w,T as x,Rr as y,p as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}export{l as a,u as c,f as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as Le}from"./Editor-
|
|
1
|
+
import{m as Le}from"./Editor-CBZeVePs.js";import"./index-G_rNbFve.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as r}from"./router-Dzu6a_zz.js";import{r as l,j as d,c as u}from"./index-G_rNbFve.js";const g="/assets/vscode-icon-DGpXKq7_.svg",v="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eIntelliJ%20IDEA%3c/title%3e%3cpath%20d='M0%200v24h24V0zm3.723%203.111h5v1.834h-1.39v6.277h1.39v1.834h-5v-1.834h1.444V4.945H3.723zm11.055%200H17v6.5c0%20.612-.055%201.111-.222%201.556-.167.444-.39.777-.723%201.11-.277.279-.666.557-1.11.668a3.933%203.933%200%200%201-1.445.278c-.778%200-1.444-.167-1.944-.445a4.81%204.81%200%200%201-1.279-1.056l1.39-1.555c.277.334.555.555.833.722.277.167.611.278.945.278.389%200%20.721-.111%201-.389.221-.278.333-.667.333-1.278zM2.222%2019.5h9V21h-9z'/%3e%3c/svg%3e",m="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20id='Camada_1'%20version='1.1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e%20.st0{fill-rule:evenodd;clip-rule:evenodd;}%20%3c/style%3e%3cpath%20class='st0'%20d='M13.8,4h4.5v2.2h1.2c0.6,0,1,0.4,1,1v4.6l-0.6,0.8l6.2,10.8l0.9,3.9c0.1,0.5-0.5,0.9-0.9,0.5l-2.9-2.7l-2-3.5%20C19.6,22.5,17.9,23,16,23s-3.6-0.5-5.1-1.4l-2,3.5L6,27.8c-0.4,0.4-1.1,0-0.9-0.5l0.9-3.9l2.3-4.1c-1.5-1.7-2.3-4-2.3-6.4%20c0-0.4,0-0.8,0.1-1.1h3c-0.1,0.4-0.1,0.7-0.1,1.1c0,1.3,0.4,2.5,1,3.6l2.3-3.9l-0.6-0.8V7.2c0-0.6,0.4-1,1-1h1.2V4z%20M14.4,15.4%20L12.4,19c1.1,0.6,2.3,1,3.6,1s2.6-0.4,3.6-1l-2.1-3.6l-0.8,1c-0.4,0.5-1.2,0.5-1.6,0L14.4,15.4z%20M14.1,11.8L14.1,11.8%20c0.4,0.7,1.1,1.1,1.9,1.1c0.8,0,1.6-0.4,1.9-1.1c0.2-0.3,0.3-0.7,0.3-1.1c0-1.2-1-2.2-2.2-2.2s-2.2,1-2.2,2.2%20C13.8,11.1,13.9,11.5,14.1,11.8z'/%3e%3c/svg%3e",p="/assets/cursor-CgsCZvc6.svg",w="data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eSublime%20Text%3c/title%3e%3cpath%20d='M20.953.004a.397.397%200%200%200-.18.017L3.225%205.585c-.175.055-.323.214-.402.398a.42.42%200%200%200-.06.22v5.726a.42.42%200%200%200%20.06.22c.079.183.227.341.402.397l7.454%202.364-7.454%202.363c-.255.08-.463.374-.463.655v5.688c0%20.282.208.444.463.363l17.55-5.565c.237-.075.426-.336.452-.6.003-.022.013-.04.013-.065V12.06c0-.281-.208-.575-.463-.656L13.4%209.065l7.375-2.339c.255-.08.462-.375.462-.656V.384c0-.211-.117-.355-.283-.38z'/%3e%3c/svg%3e";function x(t){const o=l([]),a=l(0),c=l(!1),i=l({code:{icon:g,title:"Open in Visual Studio Code"},intellij:{icon:v,title:"Open in Intellij"},androidstudio:{icon:m,title:"Open in Android Studio"},cursor:{icon:p,title:"Open in Cursor"},sublime:{icon:w,title:"Open in Sublime text"}});d(async()=>{try{c.value=!0,o.value=await r.getAvailableEditors()}finally{c.value=!1}});const s=u(()=>{a.value;let e=t?localStorage.getItem("default-editor-"+(t==null?void 0:t.label))||localStorage.getItem("default-editor")||"":localStorage.getItem("default-editor")||"";return o.value.includes(e)||(e=""),{key:e,...i.value[e]}});function n(e){t?localStorage.setItem("default-editor-"+t.label,e):localStorage.setItem("default-editor",e),localStorage.getItem("default-editor")||localStorage.setItem("default-editor",e),a.value++,location.reload()}return{availableEditors:o,loading:c,allEditors:i,currentEditor:s,setDefaultEditor:n}}export{x as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as G}from"./_commonjsHelpers-D6-XlEtG.js";var W={exports:{}},K=W.exports,E;function X(){return E||(E=1,function(V,et){(function(A,x){V.exports=x()})(K,function(){var A=1e3,x=6e4,U=36e5,I="millisecond",S="second",w="minute",_="hour",M="day",H="week",m="month",J="quarter",y="year",O="date",Z="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},F=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},R={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,m),i=t-e<0,u=n.clone().add(r+(i?-1:1),m);return+(-(r+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:m,y,w:H,d:M,D:O,h:_,m:w,s:S,ms:I,Q:J}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},k="en",D={};D[k]=Q;var q="$isDayjsObject",N=function(s){return s instanceof C||!(!s||!s[q])},T=function s(n,t,r){var e;if(!n)return k;if(typeof n=="string"){var i=n.toLowerCase();D[i]&&(e=i),t&&(D[i]=t,e=i);var u=n.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(k=e),e||!r&&k},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new C(t)},a=R;a.l=T,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var C=function(){function s(t){this.$L=T(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[q]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(B);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==Z},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,i=!!a.u(r)||r,u=a.p(t),o=function(p,$){var v=a.w(e.$u?Date.UTC(e.$y,$,p):new Date(e.$y,$,p),e);return i?v:v.endOf(M)},c=function(p,$){return a.w(e.toDate()[p].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice($)),e)},h=this.$W,d=this.$M,l=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case y:return i?o(1,0):o(31,11);case m:return i?o(1,d):o(0,d+1);case H:var g=this.$locale().weekStart||0,Y=(h<g?h+7:h)-g;return o(i?l-Y:l+(6-Y),d);case M:case O:return c(b+"Hours",0);case _:return c(b+"Minutes",1);case w:return c(b+"Seconds",2);case S:return c(b+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[M]=u+"Date",e[O]=u+"Date",e[m]=u+"Month",e[y]=u+"FullYear",e[_]=u+"Hours",e[w]=u+"Minutes",e[S]=u+"Seconds",e[I]=u+"Milliseconds",e)[i],c=i===M?this.$D+(r-this.$W):r;if(i===m||i===y){var h=this.clone().set(O,1);h.$d[o](c),h.init(),this.$d=h.set(O,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,i=this;t=Number(t);var u=a.p(r),o=function(d){var l=f(i);return a.w(l.date(l.date()+Math.round(d*t)),i)};if(u===m)return this.set(m,this.$M+t);if(u===y)return this.set(y,this.$y+t);if(u===M)return o(1);if(u===H)return o(7);var c=(e={},e[w]=x,e[_]=U,e[S]=A,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||Z;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,l=e.months,b=e.meridiem,g=function($,v,j,L){return $&&($[v]||$(r,i))||j[v].slice(0,L)},Y=function($){return a.s(o%12||12,$,"0")},p=b||function($,v,j){var L=$<12?"AM":"PM";return j?L.toLowerCase():L};return i.replace(P,function($,v){return v||function(j){switch(j){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return g(e.monthsShort,h,l,3);case"MMMM":return g(l,h);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return g(e.weekdaysMin,r.$W,d,2);case"ddd":return g(e.weekdaysShort,r.$W,d,3);case"dddd":return d[r.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return p(o,c,!0);case"A":return p(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return u}return null}($)||u.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var i,u=this,o=a.p(r),c=f(t),h=(c.utcOffset()-this.utcOffset())*x,d=this-c,l=function(){return a.m(u,c)};switch(o){case y:i=l()/12;break;case m:i=l();break;case J:i=l()/3;break;case H:i=(d-h)/6048e5;break;case M:i=(d-h)/864e5;break;case _:i=d/U;break;case w:i=d/x;break;case S:i=d/A;break;default:i=d}return e?i:a.a(i)},n.daysInMonth=function(){return this.endOf(m).$D},n.$locale=function(){return D[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),i=T(t,r,!0);return i&&(e.$L=i),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},s}(),z=C.prototype;return f.prototype=z,[["$ms",I],["$s",S],["$m",w],["$H",_],["$W",M],["$M",m],["$y",y],["$D",O]].forEach(function(s){z[s[1]]=function(n){return this.$g(n,s[0],s[1])}}),f.extend=function(s,n){return s.$i||(s(n,C,f),s.$i=!0),f},f.locale=T,f.isDayjs=N,f.unix=function(s){return f(1e3*s)},f.en=D[k],f.Ls=D,f.p={},f})}(W)),W.exports}var tt=X();const rt=G(tt);export{rt as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as f}from"./Editor-
|
|
1
|
+
import{m as f}from"./Editor-CBZeVePs.js";import"./index-G_rNbFve.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as s}from"./index-G_rNbFve.js";const e={async outdated(t){const{data:a}=await s.get(`/fs/outdated?path=${t}`);return a},async homeDir(){const{data:t}=await s.get("/fs/home-dir");return t},async ls(t){const{data:a}=await s.get(`/fs/ls?path=${t}`);return a}};export{e as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as i}from"./Editor-
|
|
1
|
+
import{m as i}from"./Editor-CBZeVePs.js";import"./index-G_rNbFve.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as s}from"./Editor-
|
|
1
|
+
import{m as s}from"./Editor-CBZeVePs.js";import"./index-G_rNbFve.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as $e}from"./Editor-
|
|
1
|
+
import{m as $e}from"./Editor-CBZeVePs.js";import"./index-G_rNbFve.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import{s as P,c as x}from"./index-uWoKtv9r.js";import{y as E,B as b,b9 as v,aF as L,b0 as T,bf as M,bg as w,at as d,aW as f,aJ as I,a as p,o as h,F as z,q as A,s as $,g as R,H as G,I as m,b as k,h as _}from"./index-G_rNbFve.js";var K=E`
|
|
2
|
+
.p-splitter {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: nowrap;
|
|
5
|
+
border: 1px solid dt('splitter.border.color');
|
|
6
|
+
background: dt('splitter.background');
|
|
7
|
+
border-radius: dt('border.radius.md');
|
|
8
|
+
color: dt('splitter.color');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.p-splitter-vertical {
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.p-splitter-gutter {
|
|
16
|
+
flex-grow: 0;
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
z-index: 1;
|
|
22
|
+
background: dt('splitter.gutter.background');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.p-splitter-gutter-handle {
|
|
26
|
+
border-radius: dt('splitter.handle.border.radius');
|
|
27
|
+
background: dt('splitter.handle.background');
|
|
28
|
+
transition:
|
|
29
|
+
outline-color dt('splitter.transition.duration'),
|
|
30
|
+
box-shadow dt('splitter.transition.duration');
|
|
31
|
+
outline-color: transparent;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.p-splitter-gutter-handle:focus-visible {
|
|
35
|
+
box-shadow: dt('splitter.handle.focus.ring.shadow');
|
|
36
|
+
outline: dt('splitter.handle.focus.ring.width') dt('splitter.handle.focus.ring.style') dt('splitter.handle.focus.ring.color');
|
|
37
|
+
outline-offset: dt('splitter.handle.focus.ring.offset');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.p-splitter-horizontal.p-splitter-resizing {
|
|
41
|
+
cursor: col-resize;
|
|
42
|
+
user-select: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.p-splitter-vertical.p-splitter-resizing {
|
|
46
|
+
cursor: row-resize;
|
|
47
|
+
user-select: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.p-splitter-horizontal > .p-splitter-gutter > .p-splitter-gutter-handle {
|
|
51
|
+
height: dt('splitter.handle.size');
|
|
52
|
+
width: 100%;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.p-splitter-vertical > .p-splitter-gutter > .p-splitter-gutter-handle {
|
|
56
|
+
width: dt('splitter.handle.size');
|
|
57
|
+
height: 100%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.p-splitter-horizontal > .p-splitter-gutter {
|
|
61
|
+
cursor: col-resize;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.p-splitter-vertical > .p-splitter-gutter {
|
|
65
|
+
cursor: row-resize;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.p-splitterpanel {
|
|
69
|
+
flex-grow: 1;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.p-splitterpanel-nested {
|
|
74
|
+
display: flex;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.p-splitterpanel .p-splitter {
|
|
78
|
+
flex-grow: 1;
|
|
79
|
+
border: 0 none;
|
|
80
|
+
}
|
|
81
|
+
`,U={root:function(e){var n=e.props;return["p-splitter p-component","p-splitter-"+n.layout]},gutter:"p-splitter-gutter",gutterHandle:"p-splitter-gutter-handle"},D=b.extend({name:"splitter",style:K,classes:U}),N={name:"BaseSplitter",extends:P,props:{layout:{type:String,default:"horizontal"},gutterSize:{type:Number,default:4},stateKey:{type:String,default:null},stateStorage:{type:String,default:"session"},step:{type:Number,default:5}},style:D,provide:function(){return{$pcSplitter:this,$parentInstance:this}}};function c(t){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(t)}function S(t,e,n){return(e=B(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B(t){var e=O(t,"string");return c(e)=="symbol"?e:e+""}function O(t,e){if(c(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function y(t){return W(t)||j(t)||H(t)||F()}function F(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
82
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H(t,e){if(t){if(typeof t=="string")return g(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function j(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function W(t){if(Array.isArray(t))return g(t)}function g(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var X={name:"Splitter",extends:N,inheritAttrs:!1,emits:["resizestart","resizeend","resize"],dragging:!1,mouseMoveListener:null,mouseUpListener:null,touchMoveListener:null,touchEndListener:null,size:null,gutterElement:null,startPos:null,prevPanelElement:null,nextPanelElement:null,nextPanelSize:null,prevPanelSize:null,panelSizes:null,prevPanelIndex:null,timer:null,data:function(){return{prevSize:null}},mounted:function(){this.initializePanels()},beforeUnmount:function(){this.clear(),this.unbindMouseListeners()},methods:{isSplitterPanel:function(e){return e.type.name==="SplitterPanel"},initializePanels:function(){var e=this;if(this.panels&&this.panels.length){var n=!1;if(this.isStateful()&&(n=this.restoreState()),!n){var r=y(this.$el.children).filter(function(i){return i.getAttribute("data-pc-name")==="splitterpanel"}),s=[];this.panels.map(function(i,a){var o=i.props&&I(i.props.size)?i.props.size:null,u=o||100/e.panels.length;s[a]=u,r[a].style.flexBasis="calc("+u+"% - "+(e.panels.length-1)*e.gutterSize+"px)"}),this.panelSizes=s,this.prevSize=parseFloat(s[0]).toFixed(4)}}},onResizeStart:function(e,n,r){this.gutterElement=e.currentTarget||e.target.parentElement,this.size=this.horizontal?M(this.$el):w(this.$el),r||(this.dragging=!0,this.startPos=this.layout==="horizontal"?e.pageX||e.changedTouches[0].pageX:e.pageY||e.changedTouches[0].pageY),this.prevPanelElement=this.gutterElement.previousElementSibling,this.nextPanelElement=this.gutterElement.nextElementSibling,r?(this.prevPanelSize=this.horizontal?d(this.prevPanelElement,!0):f(this.prevPanelElement,!0),this.nextPanelSize=this.horizontal?d(this.nextPanelElement,!0):f(this.nextPanelElement,!0)):(this.prevPanelSize=100*(this.horizontal?d(this.prevPanelElement,!0):f(this.prevPanelElement,!0))/this.size,this.nextPanelSize=100*(this.horizontal?d(this.nextPanelElement,!0):f(this.nextPanelElement,!0))/this.size),this.prevPanelIndex=n,this.$emit("resizestart",{originalEvent:e,sizes:this.panelSizes}),this.$refs.gutter[n].setAttribute("data-p-gutter-resizing",!0),this.$el.setAttribute("data-p-resizing",!0)},onResize:function(e,n,r){var s,i,a;r?this.horizontal?(i=100*(this.prevPanelSize+n)/this.size,a=100*(this.nextPanelSize-n)/this.size):(i=100*(this.prevPanelSize-n)/this.size,a=100*(this.nextPanelSize+n)/this.size):(this.horizontal?T(this.$el)?s=(this.startPos-e.pageX)*100/this.size:s=(e.pageX-this.startPos)*100/this.size:s=(e.pageY-this.startPos)*100/this.size,i=this.prevPanelSize+s,a=this.nextPanelSize-s),this.validateResize(i,a)||(i=Math.min(Math.max(this.prevPanelMinSize,i),100-this.nextPanelMinSize),a=Math.min(Math.max(this.nextPanelMinSize,a),100-this.prevPanelMinSize)),this.prevPanelElement.style.flexBasis="calc("+i+"% - "+(this.panels.length-1)*this.gutterSize+"px)",this.nextPanelElement.style.flexBasis="calc("+a+"% - "+(this.panels.length-1)*this.gutterSize+"px)",this.panelSizes[this.prevPanelIndex]=i,this.panelSizes[this.prevPanelIndex+1]=a,this.prevSize=parseFloat(i).toFixed(4),this.$emit("resize",{originalEvent:e,sizes:this.panelSizes})},onResizeEnd:function(e){this.isStateful()&&this.saveState(),this.$emit("resizeend",{originalEvent:e,sizes:this.panelSizes}),this.$refs.gutter.forEach(function(n){return n.setAttribute("data-p-gutter-resizing",!1)}),this.$el.setAttribute("data-p-resizing",!1),this.clear()},repeat:function(e,n,r){this.onResizeStart(e,n,!0),this.onResize(e,r,!0)},setTimer:function(e,n,r){var s=this;this.timer||(this.timer=setInterval(function(){s.repeat(e,n,r)},40))},clearTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},onGutterKeyUp:function(){this.clearTimer(),this.onResizeEnd()},onGutterKeyDown:function(e,n){switch(e.code){case"ArrowLeft":{this.layout==="horizontal"&&this.setTimer(e,n,this.step*-1),e.preventDefault();break}case"ArrowRight":{this.layout==="horizontal"&&this.setTimer(e,n,this.step),e.preventDefault();break}case"ArrowDown":{this.layout==="vertical"&&this.setTimer(e,n,this.step*-1),e.preventDefault();break}case"ArrowUp":{this.layout==="vertical"&&this.setTimer(e,n,this.step),e.preventDefault();break}}},onGutterMouseDown:function(e,n){this.onResizeStart(e,n),this.bindMouseListeners()},onGutterTouchStart:function(e,n){this.onResizeStart(e,n),this.bindTouchListeners(),e.preventDefault()},onGutterTouchMove:function(e){this.onResize(e),e.preventDefault()},onGutterTouchEnd:function(e){this.onResizeEnd(e),this.unbindTouchListeners(),e.preventDefault()},bindMouseListeners:function(){var e=this;this.mouseMoveListener||(this.mouseMoveListener=function(n){return e.onResize(n)},document.addEventListener("mousemove",this.mouseMoveListener)),this.mouseUpListener||(this.mouseUpListener=function(n){e.onResizeEnd(n),e.unbindMouseListeners()},document.addEventListener("mouseup",this.mouseUpListener))},bindTouchListeners:function(){var e=this;this.touchMoveListener||(this.touchMoveListener=function(n){return e.onResize(n.changedTouches[0])},document.addEventListener("touchmove",this.touchMoveListener)),this.touchEndListener||(this.touchEndListener=function(n){e.resizeEnd(n),e.unbindTouchListeners()},document.addEventListener("touchend",this.touchEndListener))},validateResize:function(e,n){return!(e>100||e<0||n>100||n<0||this.prevPanelMinSize>e||this.nextPanelMinSize>n)},unbindMouseListeners:function(){this.mouseMoveListener&&(document.removeEventListener("mousemove",this.mouseMoveListener),this.mouseMoveListener=null),this.mouseUpListener&&(document.removeEventListener("mouseup",this.mouseUpListener),this.mouseUpListener=null)},unbindTouchListeners:function(){this.touchMoveListener&&(document.removeEventListener("touchmove",this.touchMoveListener),this.touchMoveListener=null),this.touchEndListener&&(document.removeEventListener("touchend",this.touchEndListener),this.touchEndListener=null)},clear:function(){this.dragging=!1,this.size=null,this.startPos=null,this.prevPanelElement=null,this.nextPanelElement=null,this.prevPanelSize=null,this.nextPanelSize=null,this.gutterElement=null,this.prevPanelIndex=null},isStateful:function(){return this.stateKey!=null},getStorage:function(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}},saveState:function(){L(this.panelSizes)&&this.getStorage().setItem(this.stateKey,JSON.stringify(this.panelSizes))},restoreState:function(){var e=this,n=this.getStorage(),r=n.getItem(this.stateKey);if(r){this.panelSizes=JSON.parse(r);var s=y(this.$el.children).filter(function(i){return i.getAttribute("data-pc-name")==="splitterpanel"});return s.forEach(function(i,a){i.style.flexBasis="calc("+e.panelSizes[a]+"% - "+(e.panels.length-1)*e.gutterSize+"px)"}),!0}return!1},resetState:function(){this.initializePanels()}},computed:{panels:function(){var e=this,n=[];return this.$slots.default().forEach(function(r){e.isSplitterPanel(r)?n.push(r):r.children instanceof Array&&r.children.forEach(function(s){e.isSplitterPanel(s)&&n.push(s)})}),n},gutterStyle:function(){return this.horizontal?{width:this.gutterSize+"px"}:{height:this.gutterSize+"px"}},horizontal:function(){return this.layout==="horizontal"},getPTOptions:function(){var e;return{context:{nested:(e=this.$parentInstance)===null||e===void 0?void 0:e.nestedState}}},prevPanelMinSize:function(){var e=v(this.panels[this.prevPanelIndex],"minSize");return this.panels[this.prevPanelIndex].props&&e?e:0},nextPanelMinSize:function(){var e=v(this.panels[this.prevPanelIndex+1],"minSize");return this.panels[this.prevPanelIndex+1].props&&e?e:0},dataP:function(){var e;return x(S(S({},this.layout,this.layout),"nested",((e=this.$parentInstance)===null||e===void 0?void 0:e.nestedState)!=null))}}},C=["data-p"],J=["onMousedown","onTouchstart","onTouchmove","onTouchend","data-p"],V=["aria-orientation","aria-valuenow","onKeydown","data-p"];function Y(t,e,n,r,s,i){return h(),p("div",m({class:t.cx("root"),"data-p-resizing":!1,"data-p":i.dataP},t.ptmi("root",i.getPTOptions)),[(h(!0),p(z,null,A(i.panels,function(a,o){return h(),p(z,{key:o},[(h(),$(G(a),{tabindex:"-1"})),o!==i.panels.length-1?(h(),p("div",m({key:0,ref_for:!0,ref:"gutter",class:t.cx("gutter"),role:"separator",tabindex:"-1",onMousedown:function(l){return i.onGutterMouseDown(l,o)},onTouchstart:function(l){return i.onGutterTouchStart(l,o)},onTouchmove:function(l){return i.onGutterTouchMove(l,o)},onTouchend:function(l){return i.onGutterTouchEnd(l,o)},"data-p-gutter-resizing":!1,"data-p":i.dataP},t.ptm("gutter")),[k("div",m({class:t.cx("gutterHandle"),tabindex:"0",style:[i.gutterStyle],"aria-orientation":t.layout,"aria-valuenow":s.prevSize,onKeyup:e[0]||(e[0]=function(){return i.onGutterKeyUp&&i.onGutterKeyUp.apply(i,arguments)}),onKeydown:function(l){return i.onGutterKeyDown(l,o)},"data-p":i.dataP,ref_for:!0},t.ptm("gutterHandle")),null,16,V)],16,J)):R("",!0)],64)}),128))],16,C)}X.render=Y;var q={root:function(e){var n=e.instance;return["p-splitterpanel",{"p-splitterpanel-nested":n.isNested}]}},Q=b.extend({name:"splitterpanel",classes:q}),Z={name:"BaseSplitterPanel",extends:P,props:{size:{type:Number,default:null},minSize:{type:Number,default:null}},style:Q,provide:function(){return{$pcSplitterPanel:this,$parentInstance:this}}},ee={name:"SplitterPanel",extends:Z,inheritAttrs:!1,data:function(){return{nestedState:null}},computed:{isNested:function(){var e=this;return this.$slots.default().some(function(n){return e.nestedState=n.type.name==="Splitter"?!0:null,e.nestedState})},getPTOptions:function(){return{context:{nested:this.isNested}}}}};function te(t,e,n,r,s,i){return h(),p("div",m({ref:"container",class:t.cx("root")},t.ptmi("root",i.getPTOptions)),[_(t.$slots,"default")],16)}ee.render=te;export{X as a,ee as s};
|