diff --git a/reposilite-backend/src/main/resources/reposilite-frontend/assets/index.1f820778.css b/reposilite-backend/src/main/resources/reposilite-frontend/assets/index.1f820778.css new file mode 100644 index 000000000..a0480366d --- /dev/null +++ b/reposilite-backend/src/main/resources/reposilite-frontend/assets/index.1f820778.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap";html,body{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.dark html,.dark body{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}#app{font-family:Open Sans,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.router-view-full{min-height:calc(100vh - 2rem)}.container{padding-left:2.5rem;padding-right:2.5rem}.dark .active{--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity))}.bg-default{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.dark .bg-default{--tw-border-opacity: 1;border-color:rgba(23,23,23,var(--tw-border-opacity))}.input[data-v-67ba453c]{padding:.5rem;margin-top:.25rem;margin-bottom:.25rem;--tw-bg-opacity: 1;background-color:rgba(250,250,250,var(--tw-bg-opacity));border-radius:.375rem}.dark .input[data-v-67ba453c]{--tw-bg-opacity: 1;background-color:rgba(38,38,38,var(--tw-bg-opacity))}#login-modal button[data-v-67ba453c]:hover{--tw-bg-opacity: 1;background-color:rgba(229,229,229,var(--tw-bg-opacity));transition:background-color .5s}.dark #login-modal button[data-v-67ba453c]:hover{--tw-bg-opacity: 1;background-color:rgba(64,64,64,var(--tw-bg-opacity))}.toggle-container{display:inline-block}.toggle-container:focus{outline:none;box-shadow:0 0 0 var(--toggle-ring-width,3px) var(--toggle-ring-color,rgba(16,185,129,.18823529411764706))}.toggle{display:flex;width:var(--toggle-width,3rem);height:var(--toggle-height,1.25rem);border-radius:999px;position:relative;cursor:pointer;transition:all .3s;align-items:center;box-sizing:content-box;border:var(--toggle-border,.125rem) solid;font-size:var(--toggle-font-size,.75rem);line-height:1}.toggle-on{background:var(--toggle-bg-on,#10b981);border-color:var(--toggle-border-on,#10b981);justify-content:flex-start;color:var(--toggle-text-on,#fff)}.toggle-off{background:var(--toggle-bg-off,#e5e7eb);border-color:var(--toggle-border-off,#e5e7eb);justify-content:flex-end;color:var(--toggle-text-off,#374151)}.toggle-on-disabled{background:var(--toggle-bg-on-disabled,#d1d5db);border-color:var(--toggle-border-on-disabled,#d1d5db);justify-content:flex-start;color:var(--toggle-text-on-disabled,#9ca3af);cursor:not-allowed}.toggle-off-disabled{background:var(--toggle-bg-off-disabled,#e5e7eb);border-color:var(--toggle-border-off-disabled,#e5e7eb);justify-content:flex-end;color:var(--toggle-text-off-disabled,#9ca3af);cursor:not-allowed}.toggle-handle{display:inline-block;background:var(--toggle-handle-enabled,#fff);width:20px;height:20px;top:0;border-radius:50%;position:absolute;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:var(--toggle-duration,.15s)}.toggle-handle-on{left:100%;transform:translate(-100%)}.toggle-handle-off{left:0}.toggle-handle-on-disabled{left:100%;transform:translate(-100%);background:var(--toggle-handle-disabled,#f3f4f6)}.toggle-handle-off-disabled{left:0;background:var(--toggle-handle-disabled,#f3f4f6)}.toggle-label{text-align:center;width:calc(var(--toggle-width, 3.25rem) - var(--toggle-height, 1.25rem));box-sizing:border-box;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.prism-editor-wrapper{width:100%;height:100%;display:flex;align-items:flex-start;overflow:auto;-o-tab-size:1.5em;tab-size:1.5em;-moz-tab-size:1.5em}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.prism-editor-wrapper .prism-editor__textarea{color:transparent!important}.prism-editor-wrapper .prism-editor__textarea::-moz-selection{background-color:#accef7!important;color:transparent!important}.prism-editor-wrapper .prism-editor__textarea::selection{background-color:#accef7!important;color:transparent!important}}.prism-editor-wrapper .prism-editor__container{position:relative;text-align:left;box-sizing:border-box;padding:0;overflow:hidden;width:100%}.prism-editor-wrapper .prism-editor__line-numbers{height:100%;overflow:hidden;flex-shrink:0;padding-top:4px;margin-top:0;margin-right:10px}.prism-editor-wrapper .prism-editor__line-number{text-align:right;white-space:nowrap}.prism-editor-wrapper .prism-editor__textarea{position:absolute;top:0;left:0;height:100%;width:100%;resize:none;color:inherit;overflow:hidden;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-text-fill-color:transparent}.prism-editor-wrapper .prism-editor__editor,.prism-editor-wrapper .prism-editor__textarea{margin:0;border:0;background:none;box-sizing:inherit;display:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-variant-ligatures:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;-moz-tab-size:inherit;-o-tab-size:inherit;tab-size:inherit;text-indent:inherit;text-rendering:inherit;text-transform:inherit;white-space:pre-wrap;word-wrap:keep-all;overflow-wrap:break-word;padding:0}.prism-editor-wrapper .prism-editor__textarea--empty{-webkit-text-fill-color:inherit!important}.prism-editor-wrapper .prism-editor__editor{position:relative;pointer-events:none}code[class*=language-],pre[class*=language-]{color:#000;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{position:relative;margin:.5em 0;overflow:visible;padding:1px}pre[class*=language-]>code{position:relative;z-index:1;border-left:10px solid #358ccb;box-shadow:-1px 0 #358ccb,0 0 0 1px #dfdfdf;background-color:#fdfdfd;background-image:linear-gradient(transparent 50%,rgba(69,142,209,.04) 50%);background-size:3em 3em;background-origin:content-box;background-attachment:local}code[class*=language-]{max-height:inherit;height:inherit;padding:0 1em;display:block;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background-color:#fdfdfd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:1em}:not(pre)>code[class*=language-]{position:relative;padding:.2em;border-radius:.3em;color:#c92c2c;border:1px solid rgba(0,0,0,.1);display:inline;white-space:normal}pre[class*=language-]:before,pre[class*=language-]:after{content:"";display:block;position:absolute;bottom:.75em;left:.18em;width:40%;height:20%;max-height:13em;box-shadow:0 13px 8px #979797;-webkit-transform:rotate(-2deg);-moz-transform:rotate(-2deg);-ms-transform:rotate(-2deg);-o-transform:rotate(-2deg);transform:rotate(-2deg)}pre[class*=language-]:after{right:.75em;left:auto;-webkit-transform:rotate(2deg);-moz-transform:rotate(2deg);-ms-transform:rotate(2deg);-o-transform:rotate(2deg);transform:rotate(2deg)}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:#7d8b99}.token.punctuation{color:#5f6364}.token.property,.token.tag,.token.boolean,.token.number,.token.function-name,.token.constant,.token.symbol,.token.deleted{color:#c92c2c}.token.selector,.token.attr-name,.token.string,.token.char,.token.function,.token.builtin,.token.inserted{color:#2f9c0a}.token.operator,.token.entity,.token.url,.token.variable{color:#a67f59;background:rgba(255,255,255,.5)}.token.atrule,.token.attr-value,.token.keyword,.token.class-name{color:#1990b8}.token.regex,.token.important{color:#e90}.language-css .token.string,.style .token.string{color:#a67f59;background:rgba(255,255,255,.5)}.token.important{font-weight:400}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.7}@media screen and (max-width: 767px){pre[class*=language-]:before,pre[class*=language-]:after{bottom:14px;box-shadow:none}}pre[class*=language-].line-numbers.line-numbers{padding-left:0}pre[class*=language-].line-numbers.line-numbers code{padding-left:3.8em}pre[class*=language-].line-numbers.line-numbers .line-numbers-rows{left:0}pre[class*=language-][data-line]{padding-top:0;padding-bottom:0;padding-left:0}pre[data-line] code{position:relative;padding-left:4em}pre .line-highlight{margin-top:0}#card-menu div{border-top-left-radius:10%;border-top-right-radius:10%}#card-menu div:hover{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity));transition:background-color .5s}.dark #card-menu div:hover{--tw-bg-opacity: 1;background-color:rgba(38,38,38,var(--tw-bg-opacity))}.slide-right-enter-active,.slide-right-leave-active,.slide-left-enter-active,.slide-left-leave-active{transition:opacity .1s ease,transform .1s ease}.slide-right-leave-to,.slide-left-enter-from{opacity:0;transform:translate(60px)}.slide-right-enter-from,.slide-left-leave-to{opacity:0;transform:translate(-60px)}::-webkit-scrollbar{height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-color:#9b9b9b66;border-radius:20px;border:transparent;margin-top:10px}.card-editor .card-editor.prism-editor__textarea{display:none}.card-editor .prism-editor__line-numbers{user-select:none}.card-editor .prism-editor-wrapper .prism-editor__editor{pointer-events:auto!important}.card-editor .prism-editor-wrapper .prism-editor__container{overflow:auto;scrollbar-width:thin;scrollbar-track-color:transparent;margin-right:27px}.card-editor .prism-editor-wrapper .prism-editor__editor,.card-editor .prism-editor-wrapper .prism-editor__textarea{white-space:pre!important;min-height:100px}.token.tag{color:#9370db}.token.operator{background:none}.token.function{--tw-text-opacity: 1;color:rgba(0,0,0,var(--tw-text-opacity))}.dark .token.function{--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.token.string{color:#9370db}#browser-upload label{cursor:pointer}.file-uploads{display:block!important}#configuration-state button{--tw-bg-opacity: 1;background-color:rgba(29,78,216,var(--tw-bg-opacity));border-radius:.25rem;height:2.25rem;font-size:.875rem;line-height:1.25rem;margin-left:.5rem;margin-right:.5rem;padding-left:1rem;padding-right:1rem;--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.configuration-editor .prism-editor__textarea{width:4096px!important}.configuration-editor .prism-editor__editor{white-space:pre!important}.configuration-editor .prism-editor__container{overflow-x:auto!important}.item[data-v-546f8039]{padding:.375rem .25rem .25rem;cursor:pointer;--tw-text-opacity: 1;color:rgba(82,82,82,var(--tw-text-opacity));--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.dark .item[data-v-546f8039]{--tw-text-opacity: 1;color:rgba(212,212,212,var(--tw-text-opacity));--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.selected[data-v-546f8039]{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity));--tw-text-opacity: 1;color:rgba(0,0,0,var(--tw-text-opacity))}.dark .selected[data-v-546f8039]{--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity));--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.tabs .item[data-v-546f8039]{border-top-left-radius:10%;border-top-right-radius:10%}.tabs .item[data-v-546f8039]:hover{--tw-bg-opacity: 1;background-color:rgba(236,236,236,var(--tw-bg-opacity));transition:background-color .5s}.dark .tabs .item[data-v-546f8039]:hover{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e5e5}*{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}button{text-transform:none;background-color:transparent;background-image:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,[role=button]{cursor:pointer}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}h1{font-size:inherit;font-weight:inherit}input,button{font-family:inherit;font-size:100%;line-height:1.15;margin:0;padding:0;line-height:inherit;color:inherit}img{border-style:solid;max-width:100%;height:auto}input::placeholder{opacity:1;color:#a3a3a3}input::webkit-input-placeholder{opacity:1;color:#a3a3a3}input::-moz-placeholder{opacity:1;color:#a3a3a3}input:-ms-input-placeholder{opacity:1;color:#a3a3a3}input::-ms-input-placeholder{opacity:1;color:#a3a3a3}img,svg{display:block;vertical-align:middle}p,hr,h1{margin:0}strong{font-weight:bolder}ul{list-style:none;margin:0;padding:0}.default-button{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));cursor:pointer}.dark .default-button{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}.default-button:hover{--tw-bg-opacity: 1;background-color:rgba(229,229,229,var(--tw-bg-opacity));-webkit-transition-duration:.5s;-o-transition-duration:.5s;transition-duration:.5s}.dark .default-button:hover{--tw-bg-opacity: 1;background-color:rgba(38,38,38,var(--tw-bg-opacity))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}.dark .dark\:bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.dark .dark\:bg-gray-900{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgba(229,229,229,var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgba(250,250,250,var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.dark .dark\:hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}.hover\:bg-purple-500:hover{--tw-bg-opacity: 1;background-color:rgba(139,92,246,var(--tw-bg-opacity))}.dark .dark\:hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgba(109,40,217,var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.dark .hover\:dark\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}.bg-true-gray-100{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.dark .dark\:bg-dark-600{--tw-bg-opacity: 1;background-color:rgba(28,28,30,var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.dark .dark\:bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.dark .dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgba(38,38,38,var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgba(29,78,216,var(--tw-bg-opacity))}.bg-gray-150{--tw-bg-opacity: 1;background-color:rgba(236,236,236,var(--tw-bg-opacity))}.dark .dark\:border-dark-300{--tw-border-opacity: 1;border-color:rgba(45,45,45,var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgba(245,245,245,var(--tw-border-opacity))}.dark .dark\:border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgba(64,64,64,var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgba(212,212,212,var(--tw-border-opacity))}.dark .dark\:border-gray-800{--tw-border-opacity: 1;border-color:rgba(38,38,38,var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgba(163,163,163,var(--tw-border-opacity))}.dark .dark\:border-gray-700{--tw-border-opacity: 1;border-color:rgba(64,64,64,var(--tw-border-opacity))}.border-transparent{border-color:transparent}.\!border-gray-800{--tw-border-opacity: 1 !important;border-color:rgba(38,38,38,var(--tw-border-opacity))!important}.border-true-gray-200{--tw-border-opacity: 1;border-color:rgba(229,229,229,var(--tw-border-opacity))}.border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-3xl{border-radius:1.5rem}.rounded{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border,.border-1{border-width:1px}.border-2{border-width:2px}.border-b-2{border-bottom-width:2px}.box-border{-webkit-box-sizing:border-box;box-sizing:border-box}.cursor-pointer{cursor:pointer}.block{display:block}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.hidden{display:none}.flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.justify-around{-ms-flex-pack:distribute;-webkit-justify-content:space-around;justify-content:space-around}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;-webkit-flex-grow:1;flex-grow:1}.float-right{float:right}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.font-mono{font-family:Consolas,Monaco,monospace}.font-bold{font-weight:700}.font-semibold{font-weight:600}.font-normal{font-weight:400}.font-medium{font-weight:500}.h-8{height:2rem}.h-5{height:1.25rem}.h-9{height:2.25rem}.h-6{height:1.5rem}.h-144{height:36rem}.h-25px{height:25px}.h-29{height:7.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xm{font-size:.625rem;line-height:.75rem}.text-ssm{font-size:.8rem;line-height:1.15rem}.m-w-20{margin:5rem}.m-2{margin:.5rem}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mr-5{margin-right:1.25rem}.ml-10{margin-left:2.5rem}.mt-5{margin-top:1.25rem}.mr-9{margin-right:2.25rem}.mt-1\.5{margin-top:.375rem}.-mt-2{margin-top:-.5rem}.mb-1\.5{margin-bottom:.375rem}.mr-7{margin-right:1.75rem}.mt-2{margin-top:.5rem}.mt-24px{margin-top:24px}.ml-auto{margin-left:auto}.mt-6{margin-top:1.5rem}.mr-1{margin-right:.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mr-1\.5{margin-right:.375rem}.mr-1\.9{margin-right:.475rem}.max-h-35px{max-height:35px}.min-h-screen{min-height:100vh}.min-h-320px{min-height:320px}.min-w-93px{min-width:93px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.p-2{padding:.5rem}.p-7{padding:1.75rem}.p-4{padding:1rem}.px-15{padding-left:3.75rem;padding-right:3.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-5px{padding-top:5px;padding-bottom:5px}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-2\.7{padding-left:.675rem;padding-right:.675rem}.pb-2{padding-bottom:.5rem}.pt-10{padding-top:2.5rem}.pb-10{padding-bottom:2.5rem}.pt-1\.9{padding-top:.475rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pb-4{padding-bottom:1rem}.pt-6{padding-top:1.5rem}.pr-7{padding-right:1.75rem}.pb-3{padding-bottom:.75rem}.pt-3{padding-top:.75rem}.pt-1\.6{padding-top:.4rem}.pb-1{padding-bottom:.25rem}.pt-0\.85{padding-top:.2125rem}.pt-13{padding-top:3.25rem}.pt-7{padding-top:1.75rem}.pt-1\.3{padding-top:.325rem}.pr-2{padding-right:.5rem}.pr-0\.9{padding-right:.225rem}.pt-1\.75{padding-top:.4375rem}.pt-0\.4{padding-top:.1rem}.pl-1{padding-left:.25rem}.pb-5{padding-bottom:1.25rem}.pt-2{padding-top:.5rem}.pt-1\.1{padding-top:.275rem}.pt-0\.8{padding-top:.2rem}.tab,.\code{position:relative;z-index:1;border-left:10px solid #358ccb;box-shadow:-1px 0 #358ccb,0 0 0 1px #dfdfdf;background-color:#fdfdfd;background-image:linear-gradient(transparent 50%,rgba(69,142,209,.04) 50%);background-size:3em 3em;background-origin:content-box;background-attachment:local}code[class*=language-]{max-height:inherit;height:inherit;padding:0 1em;display:block;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background-color:#fdfdfd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:1em}:not(pre)>code[class*=language-]{position:relative;padding:.2em;border-radius:.3em;color:#c92c2c;border:1px solid rgba(0,0,0,.1);display:inline;white-space:normal}pre[class*=language-]:before,pre[class*=language-]:after{content:"";display:block;position:absolute;bottom:.75em;left:.18em;width:40%;height:20%;max-height:13em;box-shadow:0 13px 8px #979797;-webkit-transform:rotate(-2deg);-moz-transform:rotate(-2deg);-ms-transform:rotate(-2deg);-o-transform:rotate(-2deg);transform:rotate(-2deg)}pre[class*=language-]:after{right:.75em;left:auto;-webkit-transform:rotate(2deg);-moz-transform:rotate(2deg);-ms-transform:rotate(2deg);-o-transform:rotate(2deg);transform:rotate(2deg)}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:#7d8b99}.token.punctuation{color:#5f6364}.token.property,.token.tag,.token.boolean,.token.number,.token.function-name,.token.constant,.token.symbol,.token.deleted{color:#c92c2c}.token.selector,.token.attr-name,.token.string,.token.char,.token.function,.token.builtin,.token.inserted{color:#2f9c0a}.token.operator,.token.entity,.token.url,.token.variable{color:#a67f59;background:rgba(255,255,255,.5)}.token.atrule,.token.attr-value,.token.keyword,.token.class-name{color:#1990b8}.token.regex,.token.important{color:#e90}.language-css .token.string,.style .token.string{color:#a67f59;background:rgba(255,255,255,.5)}.token.important{font-weight:400}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.7}@media screen and (max-width: 767px){pre[class*=language-]:before,pre[class*=language-]:after{bottom:14px;box-shadow:none}}pre[class*=language-].line-numbers.line-numbers{padding-left:0}pre[class*=language-].line-numbers.line-numbers code{padding-left:3.8em}pre[class*=language-].line-numbers.line-numbers .line-numbers-rows{left:0}pre[class*=language-][data-line]{padding-top:0;padding-bottom:0;padding-left:0}pre[data-line] code{position:relative;padding-left:4em}pre .line-highlight{margin-top:0}#card-menu div{border-top-left-radius:10%;border-top-right-radius:10%}#card-menu div:hover{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity));transition:background-color .5s}.dark #card-menu div:hover{--tw-bg-opacity: 1;background-color:rgba(38,38,38,var(--tw-bg-opacity))}.slide-right-enter-active,.slide-right-leave-active,.slide-left-enter-active,.slide-left-leave-active{transition:opacity .1s ease,transform .1s ease}.slide-right-leave-to,.slide-left-enter-from{opacity:0;transform:translate(60px)}.slide-right-enter-from,.slide-left-leave-to{opacity:0;transform:translate(-60px)}::-webkit-scrollbar{height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-color:#9b9b9b66;border-radius:20px;border:transparent;margin-top:10px}.card-editor .card-editor.prism-editor__textarea{display:none}.card-editor .prism-editor__line-numbers{user-select:none}.card-editor .prism-editor-wrapper .prism-editor__editor{pointer-events:auto!important}.card-editor .prism-editor-wrapper .prism-editor__container{overflow:auto;scrollbar-width:thin;scrollbar-track-color:transparent;margin-right:27px}.card-editor .prism-editor-wrapper .prism-editor__editor,.card-editor .prism-editor-wrapper .prism-editor__textarea{white-space:pre!important;min-height:100px}.token.tag{color:#9370db}.token.operator{background:none}.token.function{--tw-text-opacity: 1;color:rgba(0,0,0,var(--tw-text-opacity))}.dark .token.function{--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.token.string{color:#9370db}#browser-upload label{cursor:pointer}.file-uploads{display:block!important}#configuration-state button{--tw-bg-opacity: 1;background-color:rgba(29,78,216,var(--tw-bg-opacity));border-radius:.25rem;height:2.25rem;font-size:.875rem;line-height:1.25rem;margin-left:.5rem;margin-right:.5rem;padding-left:1rem;padding-right:1rem;--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.configuration-editor .prism-editor__textarea{width:4096px!important}.configuration-editor .prism-editor__editor{white-space:pre!important}.configuration-editor .prism-editor__container{overflow-x:auto!important}.item[data-v-546f8039]{padding:.375rem .25rem .25rem;cursor:pointer;--tw-text-opacity: 1;color:rgba(82,82,82,var(--tw-text-opacity));--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.dark .item[data-v-546f8039]{--tw-text-opacity: 1;color:rgba(212,212,212,var(--tw-text-opacity));--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.selected[data-v-546f8039]{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity));--tw-text-opacity: 1;color:rgba(0,0,0,var(--tw-text-opacity))}.dark .selected[data-v-546f8039]{--tw-border-opacity: 1;border-color:rgba(255,255,255,var(--tw-border-opacity));--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.tabs .item[data-v-546f8039]{border-top-left-radius:10%;border-top-right-radius:10%}.tabs .item[data-v-546f8039]:hover{--tw-bg-opacity: 1;background-color:rgba(236,236,236,var(--tw-bg-opacity));transition:background-color .5s}.dark .tabs .item[data-v-546f8039]:hover{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e5e5}*{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}button{text-transform:none;background-color:transparent;background-image:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,[role=button]{cursor:pointer}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}h1{font-size:inherit;font-weight:inherit}input,button{font-family:inherit;font-size:100%;line-height:1.15;margin:0;padding:0;line-height:inherit;color:inherit}img{border-style:solid;max-width:100%;height:auto}input::placeholder{opacity:1;color:#a3a3a3}input::webkit-input-placeholder{opacity:1;color:#a3a3a3}input::-moz-placeholder{opacity:1;color:#a3a3a3}input:-ms-input-placeholder{opacity:1;color:#a3a3a3}input::-ms-input-placeholder{opacity:1;color:#a3a3a3}img,svg{display:block;vertical-align:middle}p,hr,h1{margin:0}strong{font-weight:bolder}ul{list-style:none;margin:0;padding:0}.default-button{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));cursor:pointer}.dark .default-button{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}.default-button:hover{--tw-bg-opacity: 1;background-color:rgba(229,229,229,var(--tw-bg-opacity));-webkit-transition-duration:.5s;-o-transition-duration:.5s;transition-duration:.5s}.dark .default-button:hover{--tw-bg-opacity: 1;background-color:rgba(38,38,38,var(--tw-bg-opacity))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}.dark .dark\:bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.dark .dark\:bg-gray-900{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgba(229,229,229,var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgba(250,250,250,var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.dark .dark\:hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}.hover\:bg-purple-500:hover{--tw-bg-opacity: 1;background-color:rgba(139,92,246,var(--tw-bg-opacity))}.dark .dark\:hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgba(109,40,217,var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.dark .hover\:dark\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgba(23,23,23,var(--tw-bg-opacity))}.bg-true-gray-100{--tw-bg-opacity: 1;background-color:rgba(245,245,245,var(--tw-bg-opacity))}.dark .dark\:bg-dark-600{--tw-bg-opacity: 1;background-color:rgba(28,28,30,var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.dark .dark\:bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.dark .dark\:bg-gray-800{--tw-bg-opacity: 1;background-color:rgba(38,38,38,var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgba(29,78,216,var(--tw-bg-opacity))}.bg-gray-150{--tw-bg-opacity: 1;background-color:rgba(236,236,236,var(--tw-bg-opacity))}.dark .dark\:border-dark-300{--tw-border-opacity: 1;border-color:rgba(45,45,45,var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgba(245,245,245,var(--tw-border-opacity))}.dark .dark\:border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgba(64,64,64,var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgba(212,212,212,var(--tw-border-opacity))}.dark .dark\:border-gray-800{--tw-border-opacity: 1;border-color:rgba(38,38,38,var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgba(163,163,163,var(--tw-border-opacity))}.dark .dark\:border-gray-700{--tw-border-opacity: 1;border-color:rgba(64,64,64,var(--tw-border-opacity))}.border-transparent{border-color:transparent}.\!border-gray-800{--tw-border-opacity: 1 !important;border-color:rgba(38,38,38,var(--tw-border-opacity))!important}.border-true-gray-200{--tw-border-opacity: 1;border-color:rgba(229,229,229,var(--tw-border-opacity))}.border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-3xl{border-radius:1.5rem}.rounded{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border,.border-1{border-width:1px}.border-2{border-width:2px}.border-b-2{border-bottom-width:2px}.box-border{-webkit-box-sizing:border-box;box-sizing:border-box}.cursor-pointer{cursor:pointer}.block{display:block}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.hidden{display:none}.flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.justify-around{-ms-flex-pack:distribute;-webkit-justify-content:space-around;justify-content:space-around}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;-webkit-flex-grow:1;flex-grow:1}.float-right{float:right}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.font-mono{font-family:Consolas,Monaco,monospace}.font-bold{font-weight:700}.font-semibold{font-weight:600}.font-normal{font-weight:400}.font-medium{font-weight:500}.h-8{height:2rem}.h-9{height:2.25rem}.h-6{height:1.5rem}.h-144{height:36rem}.h-25px{height:25px}.h-29{height:7.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xm{font-size:.625rem;line-height:.75rem}.text-ssm{font-size:.8rem;line-height:1.15rem}.m-w-20{margin:5rem}.m-2{margin:.5rem}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mr-5{margin-right:1.25rem}.ml-10{margin-left:2.5rem}.mt-5{margin-top:1.25rem}.mr-9{margin-right:2.25rem}.mt-1\.5{margin-top:.375rem}.-mt-2{margin-top:-.5rem}.mb-1\.5{margin-bottom:.375rem}.mr-7{margin-right:1.75rem}.mt-2{margin-top:.5rem}.mt-24px{margin-top:24px}.ml-auto{margin-left:auto}.mt-6{margin-top:1.5rem}.mr-1{margin-right:.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mr-1\.5{margin-right:.375rem}.mr-1\.9{margin-right:.475rem}.max-h-35px{max-height:35px}.min-h-screen{min-height:100vh}.min-h-320px{min-height:320px}.min-w-93px{min-width:93px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.p-2{padding:.5rem}.p-7{padding:1.75rem}.p-4{padding:1rem}.px-15{padding-left:3.75rem;padding-right:3.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-5px{padding-top:5px;padding-bottom:5px}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-2\.7{padding-left:.675rem;padding-right:.675rem}.pb-2{padding-bottom:.5rem}.pt-10{padding-top:2.5rem}.pb-10{padding-bottom:2.5rem}.pt-1\.9{padding-top:.475rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pb-4{padding-bottom:1rem}.pt-6{padding-top:1.5rem}.pr-7{padding-right:1.75rem}.pb-3{padding-bottom:.75rem}.pt-3{padding-top:.75rem}.pt-1\.6{padding-top:.4rem}.pb-1{padding-bottom:.25rem}.pt-13{padding-top:3.25rem}.pt-7{padding-top:1.75rem}.pt-1\.3{padding-top:.325rem}.pr-2{padding-right:.5rem}.pr-0\.9{padding-right:.225rem}.pt-1\.75{padding-top:.4375rem}.pt-0\.4{padding-top:.1rem}.pl-1{padding-left:.25rem}.pb-5{padding-bottom:1.25rem}.pt-2{padding-top:.5rem}.pt-1\.1{padding-top:.275rem}.pt-0\.8{padding-top:.2rem}.tab,.\s in e?qe(e,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[s]=l,U=(e,s)=>{for(var l in s||(s={}))Be.call(s,l)&&ve(e,l,s[l]);if(me)for(var l of me(s))He.call(s,l)&&ve(e,l,s[l]);return e},fe=(e,s)=>Pe(e,Ne(s));import{a as ae,r as v,w as H,c as R,b as G,d as K,u as ke,e as Ue,f as N,o as c,g as u,h as a,i as _,j as p,t as I,k as C,n as le,l as pe,m as w,p as W,q as T,s as X,v as ee,x as we,E as Ce,y as Ie,z as Te,A as O,B as P,C as ge,D as te,F,P as Se,G as A,H as q,I as De,T as ze,J as Fe,K as We,L as Ge,M as Ke,N as Qe,O as se,Q as Ye,R as Ze,S as Je,U as Xe,V as et,W as tt,X as st}from"./vendor.ed721fb1.js";const ot=function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))n(t);new MutationObserver(t=>{for(const o of t)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function l(t){const o={};return t.integrity&&(o.integrity=t.integrity),t.referrerpolicy&&(o.referrerPolicy=t.referrerpolicy),t.crossorigin==="use-credentials"?o.credentials="include":t.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(t){if(t.ep)return;t.ep=!0;const o=l(t);fetch(t.href,o)}};ot();function Q(){const e=!"{{REPOSILITE.BASE_PATH}}".includes("REPOSILITE.BASE_PATH"),s=e?"{{REPOSILITE.BASE_PATH}}":"/",l=e?"{{REPOSILITE.ID}}":"reposilite-repository",n=e?"{{REPOSILITE.TITLE}}":"Reposilite Repository",t=e?"{{REPOSILITE.DESCRIPTION}}":"Public Maven repository hosted through the Reposilite",o=e?"{{REPOSILITE.ORGANIZATION_WEBSITE}}":location.protocol+"//"+location.host+s,i=e?"{{REPOSILITE.ORGANIZATION_LOGO}}":"https://avatars.githubusercontent.com/u/75123628?s=200&v=4",r=e?"{{REPOSILITE.ICP_LICENSE}}":"\u56FDICP\u5907000000000\u53F7",d=window.location.protocol+"//"+location.host+s,h=d.endsWith("/")?d.slice(0,-1):d;return{available:e,basePath:s,id:l,title:n,description:t,organizationWebsite:o,organizationLogo:i,icpLicense:r,productionUrl:d,baseUrl:h}}const{baseUrl:nt}=Q(),re=e=>nt+e,je=(e,s)=>{const l=()=>e&&s?n(e,s):{},n=(r,d)=>({headers:{Authorization:`xBasic ${btoa(`${r}:${d}`)}`}}),t=(r,d)=>ae.get(re(r),U({},d||l())),o=(r,d,h)=>ae.put(re(r),d,{headers:U({"Content-Type":"text/plain"},(h||l()).headers)});return{auth:{me(){return t("/api/auth/me")}},console:{},maven:{content(r){return t(`/${r}`)},details(r){return t(`/api/maven/details/${r||""}`)},download(r){return t(`/${r}`,U({responseType:"blob"},l()))},deploy(r,d){return o(`/${r}`,d)}},settings:{content(r){return t(`/api/settings/content/${r}`)},updateContent(r,d){return o(`/api/settings/content/${r}`,d)}}}},B=v({name:localStorage.getItem("token-name")||"",secret:localStorage.getItem("token-secret")||""});H(()=>{localStorage.setItem("token-name",B.value.name),localStorage.setItem("token-secret",B.value.secret)});const Oe=(e,s)=>B.value={name:e,secret:s},Y=v(),at=()=>{Y.value=void 0,Oe("","")},Me=(e,s)=>je(e,s).auth.me().then(l=>{Oe(e,s),Y.value=l.data}),lt=()=>Me(B.value.name,B.value.secret),rt=R(()=>je(B.value.name,B.value.secret)),it=R(()=>Y.value!==void 0),ct=R(()=>{var e,s;return(s=(e=Y.value)==null?void 0:e.permissions)==null?void 0:s.find(l=>l.identifier==="access-token:manager")});function L(){return{token:B,details:Y,login:Me,logout:at,isLogged:it,client:rt,isManager:ct,initializeSession:lt}}const D=G({isDark:!1}),oe="dark-theme";function Ve(){return{theme:D,fetchTheme:()=>{localStorage.getItem(oe)===null?D.isDark=window.matchMedia("(prefers-color-scheme: dark)").matches:D.isDark=localStorage.getItem(oe)==="true"},toggleTheme:()=>{D.isDark=!D.isDark,localStorage.setItem(oe,D.isDark)}}}const ie=G({watchable:0,path:""}),ce=()=>ie.watchable++,{details:dt}=L();K(()=>dt.value,()=>ce());function Ee(){const e=ke();return K(()=>e.params.qualifier,s=>{ie.path=s,ce()},{immediate:!0}),{qualifier:ie,refreshQualifier:ce}}const ut={class:"min-h-screen dark:bg-black dark:text-white"},pt={key:0,class:"absolute h-8 pb-2 w-full text-center text-xs dark:bg-black dark:text-white"},ht={href:"https://beian.miit.gov.cn",target:"_blank"},_t={setup(e){const{title:s,description:l,icpLicense:n}=Q(),{theme:t,fetchTheme:o}=Ve(),{initializeSession:i}=L(),{qualifier:r}=Ee();return Ue({title:s,description:l}),o(),i().catch(()=>{}),(d,h)=>{const m=N("router-view");return c(),u("div",{class:le({dark:p(t).isDark})},[a("div",ut,[_(m,{class:"router-view-full",qualifier:p(r)},null,8,["qualifier"]),p(n)?(c(),u("div",pt,[a("a",ht,I(p(n)),1)])):C("",!0)])],2)}}};var M=(e,s)=>{const l=e.__vccOpts||e;for(const[n,t]of s)l[n]=t;return l};const mt={},vt={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ft=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),gt=[ft];function bt(e,s){return c(),u("svg",vt,gt)}var $t=M(mt,[["render",bt]]);const xt={class:"bg-gray-100 dark:bg-black"},yt={class:"container mx-auto flex flex-row (c(),u("div",xt,[a("div",yt,[a("div",kt,[a("img",{class:"border-2 rounded-full dark:border-gray-700",src:p(n)},null,8,wt)]),a("div",Ct,[a("div",It,I(p(s)),1),a("div",Tt,[_($t),a("a",{class:"px-3 text-gray-500",href:p(l)},I(p(l)),9,St)])])])]))}},Ot={},Mt={class:"mx-2 py-1.5 rounded-full font-bold px-6 text-sm max-h-35px min-w-93px default-button"};function Vt(e,s){return c(),u("div",Mt,[pe(e.$slots,"default")])}var be=M(Ot,[["render",Vt]]);const Et={},Lt={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Rt=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),At=[Rt];function qt(e,s){return c(),u("svg",Lt,At)}var he=M(Et,[["render",qt]]);const Le=e=>(Ie("data-v-67ba453c"),e=e(),Te(),e),Pt={id:"login-modal"},Nt={class:"relative border bg-white dark:bg-gray-900 border-gray-100 dark:border-black m-w-20 py-5 px-10 rounded-2xl shadow-xl text-center"},Bt=Le(()=>a("p",{class:"font-bold text-xl pb-4"},"Login with access token",-1)),Ht={class:"text-right mt-1"},Ut=Le(()=>a("button",{class:"bg-gray-100 dark:bg-gray-800 py-2 my-3 rounded-md cursor-pointer"},"Sign in",-1)),Dt={inheritAttrs:!1},zt=Object.assign(Dt,{setup(e){const{login:s}=L(),l=v(!1),n=v(""),t=v(""),o=()=>l.value=!1,i=(r,d)=>s(r,d).then(()=>T(`Dashboard accessed as ${r}`,{position:"bottom-right"})).then(()=>o()).catch(h=>T(`${h.response.status}: ${h.response.data.message}`,{type:"danger"}));return(r,d)=>(c(),u("div",Pt,[_(p(Ce),we({modelValue:l.value,"onUpdate:modelValue":d[5]||(d[5]=h=>l.value=h)},r.$attrs,{classes:"flex justify-center items-center"}),{default:w(()=>[a("div",Nt,[Bt,a("form",{class:"flex flex-col w-96 i(n.value,t.value),["prevent"]))},[X(a("input",{placeholder:"Name","onUpdate:modelValue":d[0]||(d[0]=h=>n.value=h),type:"text",class:"input"},null,512),[[ee,n.value]]),X(a("input",{placeholder:"Secret","onUpdate:modelValue":d[1]||(d[1]=h=>t.value=h),type:"password",class:"input"},null,512),[[ee,t.value]]),a("div",Ht,[a("button",{onClick:d[2]||(d[2]=h=>o()),class:"text-blue-400 text-xs"},"\u2190 Back to index")]),Ut],32),a("button",{class:"absolute top-0 right-0 mt-5 mr-5",onClick:d[4]||(d[4]=h=>o())},[_(he)])])]),_:1},16,["modelValue"]),a("div",{onClick:d[6]||(d[6]=h=>l.value=!0)},[pe(r.$slots,"button",{},void 0,!0)])]))}});var Ft=M(zt,[["__scopeId","data-v-67ba453c"]]);const Wt={},Gt={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Kt=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"},null,-1),Qt=[Kt];function Yt(e,s){return c(),u("svg",Gt,Qt)}var Zt=M(Wt,[["render",Yt]]);const Jt={},Xt={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},es=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"},null,-1),ts=[es];function ss(e,s){return c(),u("svg",Xt,ts)}var os=M(Jt,[["render",ss]]);const ns={},as={xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},ls=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"},null,-1),rs=[ls];function is(e,s){return c(),u("svg",as,rs)}var cs=M(ns,[["render",is]]);const ds={class:"flex flex-row (c(),u("nav",ds,[p(t)?(c(),u("div",us,[ps,a("span",hs,I(p(n).name),1)])):C("",!0),_(Ft,null,{button:w(()=>[p(t)?C("",!0):(c(),O(be,{key:0},{default:w(()=>[_s]),_:1}))]),_:1}),p(t)?(c(),O(be,{key:1,onClick:r[0]||(r[0]=d=>p(o)()),class:"[ms]),_:1})):C("",!0),p(t)?(c(),u("div",vs,[_(cs,{onClick:r[1]||(r[1]=d=>p(o)())})])):C("",!0),a("div",{class:"pl-2 pt-1.3 rounded-full max-h-35px default-button",onClick:r[2]||(r[2]=d=>p(l)())},[p(s).isDark?(c(),O(os,{key:0,class:"mr-1.9"})):(c(),O(Zt,{key:1,class:"mr-1.5"}))])]))}},gs={class:"bg-gray-100 dark:bg-black dark:text-white"},bs={class:"container mx-auto flex flex-row py-10 justify-between {const t=N("router-link");return c(),u("header",gs,[a("div",bs,[a("h1",$s,[_(t,{to:"/"},{default:w(()=>[P(I(p(s)),1)]),_:1})]),_(fs,{class:"mt-0.5"})]),_(jt,{class:"pt-2 pb-10 {const n=(t,o)=>{const i=t.split("-"),r=o.split("-"),d=i[0].split("."),h=r[0].split(".");for(let m=0;m<3;m++){const x=Number(d[m]),g=Number(h[m]);if(x>g)return 1;if(g>x)return-1;if(!isNaN(x)&&isNaN(g))return 1;if(isNaN(x)&&!isNaN(g))return-1}return i[1]&&r[1]?i[1]>r[1]?1:i[1]{if(!s(t,o))return 0;const i=n(l(t),l(o));return e?-i:i}},de=v(localStorage.getItem("reversedFileOrder")==="true");H(()=>localStorage.setItem("reversedFileOrder",de.value));const ue=v(localStorage.getItem("displayHashFiles")==="true");H(()=>localStorage.setItem("displayHashFiles",ue.value));function Re(){return{reversedFileOrder:de,displayHashFiles:ue,applyAdjustments:s=>{if(ue.value||(s=s.filter(l=>![".md5",".sha1",".sha256",".sha512"].some(n=>l.name.endsWith(n)))),de.value){const l=ys(!0,(n,t)=>n.type==="DIRECTORY"&&t.type==="DIRECTORY",n=>n.name);s=s.sort(l)}return s}}}const ks={},ws={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Cs=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"},null,-1),Is=[Cs];function Ts(e,s){return c(),u("svg",ws,Is)}var Ss=M(ks,[["render",Ts]]);const js={id:"adjustments-modal"},Os={class:"relative border bg-white dark:bg-gray-900 border-gray-100 dark:border-black m-w-20 py-5 px-10 rounded-2xl shadow-xl text-center"},Ms=a("h1",{class:"font-bold pb-4"},"File browser adjustments",-1),Vs=a("hr",{class:""},null,-1),Es={class:"flex justify-between pt-6"},Ls=a("p",{class:"pr-7"},"Sort files from newest to oldest",-1),Rs={class:"flex justify-between pt-6"},As=a("p",{class:"pr-7"},[P(" Display hash files such as "),a("span",{class:"font-italic font-mono bg-gray-200 dark:bg-black px-2 py-0.5 m-2 rounded-lg"},".md5/.sha1/.sha256/.sha512")],-1),qs={inheritAttrs:!1},Ps=Object.assign(qs,{setup(e){const{reversedFileOrder:s,displayHashFiles:l}=Re(),n=v(!1);return(t,o)=>(c(),u("div",js,[_(p(Ce),we({modelValue:n.value,"onUpdate:modelValue":o[3]||(o[3]=i=>n.value=i)},t.$attrs,{classes:"flex justify-center iems-center"}),{default:w(()=>[a("div",Os,[a("div",null,[Ms,Vs,a("div",Es,[Ls,_(p(ge),{modelValue:p(s),"onUpdate:modelValue":o[0]||(o[0]=i=>te(s)?s.value=i:null),class:"ml-10"},null,8,["modelValue"])]),a("div",Rs,[As,_(p(ge),{modelValue:p(l),"onUpdate:modelValue":o[1]||(o[1]=i=>te(l)?l.value=i:null),class:"ml-10"},null,8,["modelValue"])])]),a("button",{class:"absolute top-0 right-0 mt-5 mr-9",onClick:o[2]||(o[2]=i=>n.value=!1)},[_(he)])])]),_:1},16,["modelValue"]),a("div",{onClick:o[4]||(o[4]=i=>n.value=!0)},[pe(t.$slots,"button")])]))}});function Ns(){return{createSnippets:(s,l,n)=>[{name:"Maven",lang:"xml",snippet:` + + ${s} + ${l} + ${n} +`.trim()},{name:"Gradle Groovy",lang:"xml",snippet:`implementation "${s}:${l}:${n}"`},{name:"Gradle Kotlin",lang:"kotlin",snippet:`implementation("${s}:${l}:${n}")`},{name:"SBT",lang:"scala",snippet:`"${s}" %% "${l}" %% "${n}"`}]}}function Bs(){const{basePath:e,id:s,title:l}=Q();return{createRepositories:t=>{const o=R(()=>t.path.split("/")[0]),i=s+(t.path?`-${o.value}`:""),r=location.protocol+"//"+location.host+e+(e.endsWith("/")?"":"/")+(t.path?`${o.value}`:"{repository}");return[{name:"Maven",lang:"xml",snippet:` + + ${i} + ${l} + ${r} +`.trim()},{name:"Gradle Groovy",lang:"groovy",snippet:`maven { + url "${r}" +}`.trim()},{name:"Gradle Kotlin",lang:"kotlin",snippet:`maven { + url = uri("${r}") +}`},{name:"SBT",lang:"scala",snippet:`resolvers += + "${i}" + at "${r}"`}]}}}const Hs=new DOMParser;function Us(){const e=t=>{var o,i;return(i=(o=t==null?void 0:t.getElementsByTagName("groupId")[0])==null?void 0:o.firstChild)==null?void 0:i.nodeValue},s=t=>{var o,i;return(i=(o=t==null?void 0:t.getElementsByTagName("artifactId")[0])==null?void 0:o.firstChild)==null?void 0:i.nodeValue},l=t=>{var o;return(o=[...t.querySelector("versioning versions").children].map(i=>i.firstChild.nodeValue))!=null?o:["{unknown}"]};return{parseMetadata:t=>{const o=Hs.parseFromString(t,"text/xml"),i=l(o);return{metadata:o,groupId:e(o),artifactId:s(o),versions:i}},groupId:e,artifactId:s,versions:l}}const Ds={},zs={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Fs=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"},null,-1),Ws=[Fs];function Gs(e,s){return c(),u("svg",zs,Ws)}var Ks=M(Ds,[["render",Gs]]);const Qs={props:{configuration:{type:Object,required:!0}},setup(e){const s=e,l=R(()=>U({highlighter:n=>{var t;return F.highlight(n,(t=F.languages[s.configuration.lang])!=null?t:F.languages.js)}},s.configuration));return(n,t)=>(c(),O(p(Se),{class:"card-editor font-mono text-ssm absolute",modelValue:p(l).snippet,"onUpdate:modelValue":t[0]||(t[0]=o=>p(l).snippet=o),highlight:p(l).highlighter,readonly:"","line-numbers":""},null,8,["modelValue","highlight"]))}},Ys={},Zs={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Js=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1),Xs=[Js];function eo(e,s){return c(),u("svg",Zs,Xs)}var to=M(Ys,[["render",eo]]);const so={id:"card-menu",class:"flex mt-2 {localStorage.setItem("card-tab",l.value),s("selectTab",l.value)});const n=o=>l.value=o.name,t=v(localStorage.getItem("dropdown-open")||!1);return H(()=>localStorage.setItem("dropdown-open",t.value)),(o,i)=>(c(),u("div",null,[a("div",so,[(c(!0),u(A,null,q(e.configurations,r=>(c(),u("div",{key:r.name,onClick:d=>n(r),class:le(["py-4 px-7 flex-grow text-center border-b-2 cursor-pointer border-transparent",{"!border-gray-800":r.name===l.value}])},I(r.name),11,oo))),128))]),a("div",no,[a("div",{class:"w-full box-border py-5px p-2 rounded-lg border-1 border-true-gray-200 dark:border-dark-300",onClick:i[0]||(i[0]=r=>t.value=!t.value)},[P(I(l.value)+" ",1),a("div",ao,[_(to)])]),t.value?C("",!0):(c(),u("ul",lo,[(c(!0),u(A,null,q(e.configurations,r=>(c(),u("li",{key:r.name,onClick:d=>{o.selectTab(r),t.value=!t.value},class:le(["dropdown py-1",{hidden:r.name===l.value}])},I(r.name),11,ro))),128))]))])]))}};const co={class:"bg-white dark:bg-gray-900 shadow-lg p-7 rounded-xl border-gray-100 dark:border-black"},uo={class:"flex flex-row justify-between"},po={class:"font-bold flex items-center w-full"},ho=a("hr",{class:"dark:border-gray-800 {l.value="Repository details",n.value=t(s.qualifier)},x=(b,f)=>{l.value="Artifact details";const{groupId:y,artifactId:E,versions:$}=i(b),k=$[f?$.indexOf(f):$.length-1];n.value=o(y,E,k)};H(()=>{const b=s.qualifier.path,f=b.split("/");if(f.length==1&&f[0]==""){m();return}r.value.maven.content(`${b}/maven-metadata.xml`).then(y=>x(y.data)).catch(()=>{r.value.maven.content(`${b.substring(0,b.indexOf(f[f.length-1])-1)}/maven-metadata.xml`).then(y=>x(y.data,f[f.length-1])).catch(y=>{y.message!=="Request failed with status code 404"&&console.log(y),m()})})});const g=v(),V=v("slide-right");K(g,(b,f)=>{const y=n.value.findIndex($=>$.name===b),E=n.value.findIndex($=>$.name===f);V.value=y-E<0?"slide-left":"slide-right"});const Z=async()=>{const{snippet:b}=n.value.find(f=>f.name===g.value);return await d(b),T("Snippet copied",{type:"info",timeout:"2000"})},S=b=>g.value=b;return(b,f)=>(c(),u("div",co,[a("div",uo,[a("h1",po,[P(I(l.value)+" ",1),p(h)?(c(),u("span",{key:0,onClick:Z,class:"ml-auto cursor-pointer"},[_(Ks)])):C("",!0)])]),_(io,{configurations:n.value,onSelectTab:S},null,8,["configurations"]),ho,a("div",_o,[_(ze,{name:V.value,mode:"out-in"},{default:w(()=>[(c(),u("div",{key:g.value,class:"h-29 relative mt-6 py-3 pl-1 mr-1 rounded-lg bg-gray-100 dark:bg-gray-800"},[(c(!0),u(A,null,q(n.value,y=>(c(),u(A,{key:y.name},[y.name===g.value?(c(),O(Qs,{key:0,configuration:y},null,8,["configuration"])):C("",!0)],64))),128))]))]),_:1},8,["name"])])]))}},vo={class:""},fo={class:"pb-3 font-semibold"},go={class:"select-none"},bo=P(" Index of "),$o={class:"select-text"},xo={class:"hover:transition-colors hover:duration-200 hover:text-purple-500"},yo=a("span",{class:"font-normal text-xl text-gray-500 select-none"}," \u2934 ",-1),ko={props:{parentPath:{type:String,required:!0}},setup(e){const s=ke(),l=R(()=>{const n=s.path.split("/");return n.map((t,o)=>({link:n.slice(0,o+1).join("/")||"/",name:o===n.length-1?t:t+"/"}))});return(n,t)=>{const o=N("router-link");return c(),u("div",vo,[a("p",fo,[a("span",go,[_(o,{to:"/"},{default:w(()=>[bo]),_:1})]),a("span",$o,[(c(!0),u(A,null,q(p(l),i=>(c(),O(o,{key:i.link,to:i.link},{default:w(()=>[a("span",xo,I(i.name),1)]),_:2},1032,["to"]))),128))]),_(o,{to:e.parentPath},{default:w(()=>[yo]),_:1},8,["to"])])])}}},wo={},Co={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Io=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},null,-1),To=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"},null,-1),So=[Io,To];function jo(e,s){return c(),u("svg",Co,So)}var Oo=M(wo,[["render",jo]]);const Mo={class:"browser-entry flex flex-row justify-between mb-1.5 py-3 rounded-full default-button"},Vo={class:"flex flex-row"},Eo={key:0,class:"text-xm px-6 pt-1.75"},Lo={key:1,class:"text-xm px-6 pt-1.75"},Ro={class:"font-semibold"},Ao={key:0,class:"px-6 flex"},qo=["title"],$e={props:{file:{type:Object,required:!0}},setup(e){const s=e,l=["application/xml","text/plain","text/xml","text/markdown","application/json"].some(t=>{var o;return((o=s.file)==null?void 0:o.contentType)==t}),n=t=>window.open(t);return(t,o)=>(c(),u("div",Mo,[a("div",Vo,[e.file.type=="DIRECTORY"?(c(),u("div",Eo,"\u26AB")):(c(),u("div",Lo,"\u26AA")),a("div",Ro,I(e.file.name),1)]),e.file.hasOwnProperty("contentLength")?(c(),u("div",Ao,[p(l)?(c(),u("div",{key:0,title:`Click to view ${e.file.name} file content in a new tab`},[_(Oo,{id:"view-button",class:"px-1 mr-7 pt-0.4 rounded-full text-purple-300 hover:transition-colors hover:duration-200 hover:bg-gray-100 hover:dark:bg-gray-900",onClick:[o[0]||(o[0]=W(i=>n(`${t.$route.path}/${e.file.name}`),["left","prevent"])),o[1]||(o[1]=W(()=>{},["stop"]))]})],8,qo)):C("",!0),a("div",null,I(p(Fe)(e.file.contentLength)),1)])):C("",!0)]))}},Po={id:"browser-list",class:"pt-3"},No=["onClick","href"],Bo={key:0,class:"pl-2"},Ho=a("p",null,"Directory is empty",-1),Uo=[Ho],Do={key:1,class:"pl-2"},zo=a("p",null,"Directory not found",-1),Fo=[zo],Wo={props:{files:{type:Object,required:!0}},setup(e){const{client:s}=L(),l=(n,t)=>{s.value.maven.download(n.substring(1)+"/"+t).then(o=>We(o.data,t,o.headers["content-type"])).catch(o=>T(`Cannot download file - ${o.response.status}: ${o.response.data.message}`,{type:"danger"}))};return(n,t)=>{const o=N("router-link");return c(),u("div",Po,[(c(!0),u(A,null,q(e.files.list,i=>(c(),u("div",{key:i},[i.type==="DIRECTORY"?(c(),O(o,{key:0,to:n.append(n.$route.path,i.name)},{default:w(()=>[_($e,{file:i},null,8,["file"])]),_:2},1032,["to"])):(c(),u("a",{key:1,onClick:W(r=>l(n.$route.path,i.name),["left","prevent"]),href:`${n.$route.path}/${i.name}`,target:"_blank"},[_($e,{file:i},null,8,["file"])],8,No))]))),128)),e.files.isEmpty?(c(),u("div",Bo,Uo)):C("",!0),e.files.error?(c(),u("div",Do,Fo)):C("",!0)])}}},Go=e=>T(e,{type:"success"}),Ko=e=>T(e,{type:"danger"});const Qo={id:"browser-upload"},Yo={class:"border border-dashed rounded-3xl mt-1.5 cursor-pointer bg-gray-50 border-gray-300 hover:transition-colors hover:duration-200 hover:bg-white dark:bg-black dark:border-gray-800 dark:hover:transition-colors dark:hover:duration-400 dark:hover:bg-gray-900"},Zo={class:"my-3 px-6"},Jo={key:0,class:"flex"},Xo=a("span",{class:"text-xm pt-1.6"},"\u{1F7E3}",-1),en=a("span",{class:"font-bold px-5"},"Select files",-1),tn=[Xo,en],sn={key:1,class:"py-1"},on=a("p",{class:"font-bold"},"Selected files to deploy here",-1),nn=[on],an={class:"-mt-2 pb-2"},ln=["onClick"],rn={class:"px-2"},cn={key:0,class:"text-right"},dn=["onClick"],un=a("span",null,"Upload files ",-1),pn=a("span",{class:"font-bold text-purple-400"},"\u219D",-1),hn=[un,pn],_n={setup(e){const{client:s}=L(),{qualifier:l,refreshQualifier:n}=Ee(),t=v([]),o=r=>t.value=t.value.filter(d=>d!==r),i=()=>{t.value.forEach(r=>s.value.maven.deploy(`${l.path}/${r.name}`,r.file).then(()=>Go(`File ${r.name} has been uploaded`)).then(()=>o(r)).catch(d=>Ko(`Cannot upload file ${r.name} - ${d.response.status}: ${d.response.data.message}`))),n()};return(r,d)=>(c(),u("div",Qo,[a("div",Yo,[_(p(Ge),{class:"btn btn-primary flex text-left","post-action":"/upload/post",multiple:!0,drop:!0,"drop-directory":!0,modelValue:t.value,"onUpdate:modelValue":d[0]||(d[0]=h=>t.value=h),ref:"upload"},{default:w(()=>[a("div",Zo,[t.value.length==0?(c(),u("div",Jo,tn)):(c(),u("div",sn,nn))])]),_:1},8,["modelValue"]),a("div",an,[(c(!0),u(A,null,q(t.value,h=>(c(),u("div",{key:h.name,class:"pb-1 px-6 flex"},[a("span",{onClick:m=>o(h),class:"pt-0.85"},[_(he,{class:"h-5 text-purple-400"})],8,ln),a("span",rn,I(h.name),1)]))),128))])]),t.value.length>0?(c(),u("div",cn,[a("button",{onClick:W(i,["prevent"]),class:"border text-sm py-1.5 h-9 px-4 mt-1.5 border-dashed rounded bg-gray-50 border-gray-400 hover:transition-colors hover:duration-200 hover:bg-purple-500 hover:text-white dark:bg-black dark:border-gray-700 dark:text-white dark:hover:transition-colors dark:hover:duration-200 dark:hover:bg-purple-700"},hn,8,dn)])):C("",!0)]))}},mn={class:"bg-gray-100"},vn={class:"dark:bg-black"},fn={class:"container mx-auto relative min-h-320px mb-1.5"},gn={class:"lg:absolute pt-13 -top-5 right-8"},bn={class:"lg:max-w-2/5 xl:max-w-1/2"},$n={class:"flex justify-between pt-7 px-2"},xn={class:"w-9"},yn={class:"bg-white dark:bg-gray-900 pl-2 pt-1.3 pb-1 pr-2 cursor-pointer rounded-full default-button"},kn={props:{qualifier:{type:Object,required:!0}},setup(e){const s=e,l=v(""),n=v({}),{client:t,isManager:o}=L(),{applyAdjustments:i}=Re(),r=R(()=>fe(U({},n.value),{list:i([...n.value.list])}));return K(()=>s.qualifier.watchable,async()=>{n.value={list:[]};const d=s.qualifier.path;t.value.maven.details(d).then(m=>n.value={list:m.data.files}).then(()=>n.value.isEmpty=n.value.list.length==0).catch(m=>{T(`${m.response.status}: ${m.response.data.message}`,{type:"danger"}),n.value={list:[],error:!0}});const h=m=>(m.endsWith("/")?m.slice(0,-1):m).split("/").slice(0,-1).join("/")||"/";l.value=h(`/${d}`)},{immediate:!0}),(d,h)=>(c(),u("div",mn,[a("div",vn,[a("div",fn,[a("div",gn,[_(mo,{qualifier:e.qualifier},null,8,["qualifier"])]),a("div",bn,[a("div",$n,[_(ko,{parentPath:l.value},null,8,["parentPath"]),_(Ps,null,{button:w(()=>[a("div",xn,[a("div",yn,[_(Ss,{class:"pr-0.9"})])])]),_:1})]),_(Wo,{files:p(r)},null,8,["files"]),p(o)?(c(),O(_n,{key:0})):C("",!0)])])])]))}};const wn={class:"container mx-auto py-10 px-15"},Cn=a("div",null,[a("p",null,"Modify configuration shared between all instances."),a("p",null,[a("strong",null,"Remember"),P(": Configuration propagation can take up to 30 seconds on all instances")])],-1),In=a("p",null,"Reset changes",-1),Tn=[In],Sn=a("p",null,"Update and reload",-1),jn=[Sn],On={class:"border-1 rounded p-4 dark:border-gray-700"},Mn={setup(e){const{client:s}=L(),l=d=>F.highlight(d,F.languages.js),n="configuration.shared.cdn",t=v(""),o=v(!1),i=()=>s.value.settings.content(n).then(d=>t.value=d.data.content).catch(d=>T(d,{type:"error"})),r=()=>s.value.settings.updateContent(n,t.value).then(()=>T("Configuration has been deployed, fetching...",{type:"info"})).then(()=>i()).then(()=>T("Configuration reloaded, refresh page to see changes",{type:"success"})).catch(d=>T(d,{type:"error"}));return i().then(()=>o.value=!0),(d,h)=>(c(),u("div",wn,[a("div",{class:"flex justify-between pb-5 flex-col xl:flex-row"},[Cn,a("div",{id:"configuration-state",class:"flex flex-row pt-3 xl:pt-2"},[a("button",{onClick:i},Tn),a("button",{onClick:r},jn)])]),a("div",On,[o.value?(c(),O(p(Se),{key:0,class:"configuration-editor font-mono text-xs",modelValue:t.value,"onUpdate:modelValue":h[0]||(h[0]=m=>t.value=m),highlight:l,"line-numbers":""},null,8,["modelValue"])):C("",!0)])]))}},Ae=["Other","Trace","Debug","Info","Warn","Error"],ne=G({}),xe=v(""),Vn=v(0),J=G([]),En=new Ke,Ln=e=>{var s;return(s=Ae.find(l=>e.includes(`${l.toUpperCase()} | `)))!=null?s:"Other"},ye=e=>En.toHtml(e.replaceAll("<","<").replaceAll(">",">").replaceAll(" "," "));function Rn(){Ae.forEach(n=>{ne[n]={name:n,enabled:!0,count:R(()=>J.reduce((t,o)=>t+(o.level===n),0))}});const e=R(()=>J.filter(n=>n.message.toLowerCase().includes(xe.value.toLowerCase())).filter(n=>ne[n.level].enabled));return{levels:ne,log:e,filter:xe,sanitizeMessage:ye,logMessage:n=>{J.push({id:Vn.value++,message:ye(n),level:Ln(n)})},clearLog:()=>{J.length=0}}}const j=v(),z=v("");function An(){const e=re("/api/console/sock").replace("https","wss").replace("http","ws"),s=()=>{var S;return((S=j.value)==null?void 0:S.readyState)===WebSocket.OPEN},l=()=>{s()&&j.value.close()},n=v([""]),t=v(0),o=S=>{n.value[n.value.length-1]==""&&n.value.pop(),n.value.push(S),t.value=n.value.length-1},i=()=>{o(z.value),j.value.send(z.value),z.value=""},r=()=>h(-1),d=()=>h(1),h=S=>{const b=z.value,f=n.value,y=f.length-1;y===t.value&&f[y]!==b&&o(b),t.value=Math.max(0,Math.min(f.length-1,t.value+S)),z.value=n.value[t.value]},m=v(),x=v(),g=v(),V=v();return{connection:j,connect:S=>{try{j.value=new WebSocket(e),j.value.onopen=()=>{j.value.send(`Authorization:${S.name}:${S.secret}`),m==null||m.value()},j.value.onmessage=f=>{f.data!="keep-alive"&&(x==null||x.value(f.data))},j.value.onerror=f=>g==null?void 0:g.value(f),j.value.onclose=()=>V==null?void 0:V.value();const b=setInterval(()=>{var f;s()?(f=j==null?void 0:j.value)==null||f.send("keep-alive"):clearInterval(b)},1e3*5)}catch(b){g==null||g.value(b)}},close:l,onOpen:m,onMessage:x,onError:g,onClose:V,command:z,execute:i,previousCommand:r,nextCommand:d}}const qn={class:"container mx-auto pt-10 px-15 pb-10 text-xs"},Pn={class:"flex text-sm flex-col xl:flex-row w-full py-2 justify-between"},Nn={class:"flex flex-row justify-around w-full xl:w-1/2 g());const f=()=>{const E=document.getElementById("console");E.scrollTop=E.scrollHeight},y=()=>{r.value=()=>i(),d.value=$=>{t($),Ye(()=>f())},m.value=$=>T(`${$||""}`,{type:"danger"}),h.value=()=>T("Connection with console has been lost",{type:"danger"}),T("Connecting to the remote console",{type:"info"});const{token:E}=L();x(E.value)};return K(()=>s.selectedTab.value,E=>E==="Console"?y():g(),{immediate:!0}),(E,$)=>(c(),u("div",qn,[a("div",Pn,[X(a("input",{placeholder:"Filter","onUpdate:modelValue":$[0]||($[0]=k=>te(o)?o.value=k:null),class:"w-full xl:w-1/2 mr-5 py-1 px-4 rounded-lg bg-white dark:bg-gray-900"},null,512),[[ee,p(o)]]),a("div",Nn,[(c(!0),u(A,null,q(p(l),k=>(c(),u("div",{key:k.name,class:"pt-1.9 xl:pt-0.8 font-sans whitespace-nowrap"},[a("input",{type:"checkbox",checked:k.enabled,onChange:ta=>k.enabled=!k.enabled},null,40,Bn),a("span",Hn,I(k.name)+" ("+I(k.count)+")",1)]))),128))])]),a("div",Un,[a("div",Dn,[(c(!0),u(A,null,q(p(n),k=>(c(),u("p",{key:k.id,innerHTML:k.message,class:"whitespace-nowrap"},null,8,zn))),128))]),Fn,X(a("input",{id:"consoleInput",placeholder:"Type command or '?' to get help",class:"w-full py-2 px-4 rounded-b-lg bg-white dark:bg-gray-900 dark:text-white","onUpdate:modelValue":$[1]||($[1]=k=>te(V)?V.value=k:null),onKeyup:[$[2]||($[2]=se(k=>p(Z)(),["enter"])),$[3]||($[3]=se(k=>p(S)(),["up"])),$[4]||($[4]=se(k=>p(b)(),["down"]))]},null,544),[[ee,p(V)]])])]))}};const Gn=e=>(Ie("data-v-546f8039"),e=e(),Te(),e),Kn={class:"bg-gray-100 dark:bg-black"},Qn={class:"container mx-auto a("hr",{class:"dark:border-gray-700"},null,-1)),Zn={class:"overflow-auto"},Jn={props:{qualifier:{type:Object,required:!0}},setup(e){const{isManager:s}=L(),l=[{name:"Overview"},{name:"Console",manager:!0},{name:"Configuration",manager:!0}],n=G({value:localStorage.getItem("selectedTab")||"Overview"});H(()=>localStorage.setItem("selectedTab",n.value));const t=R(()=>l.filter(o=>!(o==null?void 0:o.manager)||s.value).map(o=>o.name));return(o,i)=>{const r=N("tab"),d=N("tabs"),h=N("tab-panel"),m=N("tab-panels");return c(),u("div",null,[_(xs),a("div",Kn,[a("div",Qn,[_(d,{modelValue:p(n).value,"onUpdate:modelValue":i[0]||(i[0]=x=>p(n).value=x)},{default:w(()=>[(c(!0),u(A,null,q(p(t),(x,g)=>(c(),O(r,{class:"item font-normal",key:`menu${g}`,val:x,label:x,indicator:!0},null,8,["val","label"]))),128))]),_:1},8,["modelValue"])]),Yn,a("div",Zn,[_(m,{modelValue:p(n).value,"onUpdate:modelValue":i[1]||(i[1]=x=>p(n).value=x),animate:!0},{default:w(()=>[_(h,{val:"Overview"},{default:w(()=>[_(kn,{qualifier:e.qualifier,ref:""},null,8,["qualifier"])]),_:1}),p(s)?(c(),O(h,{key:0,val:"Console"},{default:w(()=>[_(Wn,{selectedTab:p(n)},null,8,["selectedTab"])]),_:1})):C("",!0),p(s)?(c(),O(h,{key:1,val:"Configuration"},{default:w(()=>[_(Mn,{selectedTab:p(n)},null,8,["selectedTab"])]),_:1})):C("",!0)]),_:1},8,["modelValue"])])])])}}};var Xn=M(Jn,[["__scopeId","data-v-546f8039"]]);const ea=Ze({history:Je(),routes:[{path:"/:qualifier(.*)",name:"Index",component:Xn}]});const _e=Xe(_t);_e.config.globalProperties.append=(e,s)=>e+(e.endsWith("/")?"":"/")+s;_e.config.globalProperties.drop=e=>(e.endsWith("/")?e.slice(0,-1):e).split("/").slice(0,-1).join("/");_e.use(et()).use(tt,ae).use(st).use(ea).mount("#app"); diff --git a/reposilite-backend/src/main/resources/reposilite-frontend/assets/index.c6b49bfb.js b/reposilite-backend/src/main/resources/reposilite-frontend/assets/index.c6b49bfb.js deleted file mode 100644 index d5c643e97..000000000 --- a/reposilite-backend/src/main/resources/reposilite-frontend/assets/index.c6b49bfb.js +++ /dev/null @@ -1,17 +0,0 @@ -var Ae=Object.defineProperty,Pe=Object.defineProperties;var qe=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;var _e=(t,s,l)=>s in t?Ae(t,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[s]=l,U=(t,s)=>{for(var l in s||(s={}))Ne.call(s,l)&&_e(t,l,s[l]);if(me)for(var l of me(s))Be.call(s,l)&&_e(t,l,s[l]);return t},ve=(t,s)=>Pe(t,qe(s));import{a as ae,r as v,w as H,c as R,b as G,d as K,u as ye,e as He,f as N,o as c,g as u,h as a,i as m,j as p,t as I,k as C,n as le,l as pe,m as w,p as W,q as T,s as X,v as ee,x as ke,E as we,y as Ce,z as Ie,A as O,B as q,C as fe,D as te,F,P as Te,G as A,H as P,I as Ue,T as De,J as ze,K as Fe,L as We,M as Ge,N as Ke,O as se,Q as Qe,R as Ye,S as Ze,U as Je,V as Xe,W as et,X as tt}from"./vendor.ed721fb1.js";const st=function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const o of e)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function l(e){const o={};return e.integrity&&(o.integrity=e.integrity),e.referrerpolicy&&(o.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?o.credentials="include":e.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(e){if(e.ep)return;e.ep=!0;const o=l(e);fetch(e.href,o)}};st();function Q(){const t=!"{{REPOSILITE.BASE_PATH}}".includes("REPOSILITE.BASE_PATH"),s=t?"{{REPOSILITE.BASE_PATH}}":"/",l=t?"{{REPOSILITE.ID}}":"reposilite-repository",n=t?"{{REPOSILITE.TITLE}}":"Reposilite Repository",e=t?"{{REPOSILITE.DESCRIPTION}}":"Public Maven repository hosted through the Reposilite",o=t?"{{REPOSILITE.ORGANIZATION_WEBSITE}}":location.protocol+"//"+location.host+s,i=t?"{{REPOSILITE.ORGANIZATION_LOGO}}":"https://avatars.githubusercontent.com/u/75123628?s=200&v=4",r=t?"{{REPOSILITE.ICP_LICENSE}}":"\u56FDICP\u5907000000000\u53F7",d=window.location.protocol+"//"+location.host+s,h=d.endsWith("/")?d.slice(0,-1):d;return{available:t,basePath:s,id:l,title:n,description:e,organizationWebsite:o,organizationLogo:i,icpLicense:r,productionUrl:d,baseUrl:h}}const{baseUrl:ot}=Q(),re=t=>ot+t,Se=(t,s)=>{const l=()=>t&&s?n(t,s):{},n=(r,d)=>({headers:{Authorization:`xBasic ${btoa(`${r}:${d}`)}`}}),e=(r,d)=>ae.get(re(r),U({},d||l())),o=(r,d,h)=>ae.put(re(r),d,{headers:U({"Content-Type":"text/plain"},(h||l()).headers)});return{auth:{me(){return e("/api/auth/me")}},console:{},maven:{content(r){return e(`/${r}`)},details(r){return e(`/api/maven/details/${r||""}`)},download(r){return e(`/${r}`,U({responseType:"blob"},l()))},deploy(r,d){return o(`/${r}`,d)}},settings:{content(r){return e(`/api/settings/content/${r}`)},updateContent(r,d){return o(`/api/settings/content/${r}`,d)}}}},B=v({name:localStorage.getItem("token-name")||"",secret:localStorage.getItem("token-secret")||""});H(()=>{localStorage.setItem("token-name",B.value.name),localStorage.setItem("token-secret",B.value.secret)});const je=(t,s)=>B.value={name:t,secret:s},Y=v(),nt=()=>{Y.value=void 0,je("","")},Oe=(t,s)=>Se(t,s).auth.me().then(l=>{je(t,s),Y.value=l.data}),at=()=>Oe(B.value.name,B.value.secret),lt=R(()=>Se(B.value.name,B.value.secret)),rt=R(()=>Y.value!==void 0),it=R(()=>{var t,s;return(s=(t=Y.value)==null?void 0:t.permissions)==null?void 0:s.find(l=>l.identifier==="access-token:manager")});function E(){return{token:B,details:Y,login:Oe,logout:nt,isLogged:rt,client:lt,isManager:it,initializeSession:at}}const D=G({isDark:!1}),oe="dark-theme";function Me(){return{theme:D,fetchTheme:()=>{localStorage.getItem(oe)===null?D.isDark=window.matchMedia("(prefers-color-scheme: dark)").matches:D.isDark=localStorage.getItem(oe)==="true"},toggleTheme:()=>{D.isDark=!D.isDark,localStorage.setItem(oe,D.isDark)}}}const ie=G({watchable:0,path:""}),ce=()=>ie.watchable++,{details:ct}=E();K(()=>ct.value,()=>ce());function Ve(){const t=ye();return K(()=>t.params.qualifier,s=>{ie.path=s,ce()},{immediate:!0}),{qualifier:ie,refreshQualifier:ce}}const dt={class:"min-h-screen dark:bg-black dark:text-white"},ut={key:0,class:"absolute h-8 pb-2 w-full text-center text-xs dark:bg-black dark:text-white"},pt={href:"https://beian.miit.gov.cn",target:"_blank"},ht={setup(t){const{title:s,description:l,icpLicense:n}=Q(),{theme:e,fetchTheme:o}=Me(),{initializeSession:i}=E(),{qualifier:r}=Ve();return He({title:s,description:l}),o(),i().catch(()=>{}),(d,h)=>{const _=N("router-view");return c(),u("div",{class:le({dark:p(e).isDark})},[a("div",dt,[m(_,{class:"router-view-full",qualifier:p(r)},null,8,["qualifier"]),p(n)?(c(),u("div",ut,[a("a",pt,I(p(n)),1)])):C("",!0)])],2)}}};var L=(t,s)=>{const l=t.__vccOpts||t;for(const[n,e]of s)l[n]=e;return l};const mt={},_t={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},vt=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),ft=[vt];function gt(t,s){return c(),u("svg",_t,ft)}var bt=L(mt,[["render",gt]]);const xt={class:"bg-gray-100 dark:bg-black"},$t={class:"container mx-auto flex flex-row (c(),u("div",xt,[a("div",$t,[a("div",yt,[a("img",{class:"border-2 rounded-full dark:border-gray-700",src:p(n)},null,8,kt)]),a("div",wt,[a("div",Ct,I(p(s)),1),a("div",It,[m(bt),a("a",{class:"px-3 text-gray-500",href:p(l)},I(p(l)),9,Tt)])])])]))}},jt={},Ot={class:"mx-2 py-1.5 rounded-full font-bold px-6 text-sm max-h-35px min-w-93px default-button"};function Mt(t,s){return c(),u("div",Ot,[pe(t.$slots,"default")])}var ge=L(jt,[["render",Mt]]);const Ee=t=>(Ce("data-v-11581f94"),t=t(),Ie(),t),Vt={id:"login-modal"},Et={class:"relative border bg-white dark:bg-gray-900 border-gray-100 dark:border-black m-w-20 py-5 px-10 rounded-2xl shadow-xl text-center"},Lt=Ee(()=>a("p",{class:"font-bold text-xl pb-4"},"Login with access token",-1)),Rt={class:"text-right mt-1"},At=Ee(()=>a("button",{class:"bg-gray-100 dark:bg-gray-800 py-2 my-3 rounded-md cursor-pointer"},"Sign in",-1)),Pt={inheritAttrs:!1},qt=Object.assign(Pt,{setup(t){const{login:s}=E(),l=v(!1),n=v(""),e=v(""),o=()=>l.value=!1,i=(r,d)=>s(r,d).then(()=>T(`Dashboard accessed as ${r}`,{position:"bottom-right"})).then(()=>o()).catch(h=>T(`${h.response.status}: ${h.response.data.message}`,{type:"danger"}));return(r,d)=>(c(),u("div",Vt,[m(p(we),ke({modelValue:l.value,"onUpdate:modelValue":d[5]||(d[5]=h=>l.value=h)},r.$attrs,{classes:"flex justify-center items-center"}),{default:w(()=>[a("div",Et,[Lt,a("form",{class:"flex flex-col w-96 i(n.value,e.value),["prevent"]))},[X(a("input",{placeholder:"Name","onUpdate:modelValue":d[0]||(d[0]=h=>n.value=h),type:"text",class:"input"},null,512),[[ee,n.value]]),X(a("input",{placeholder:"Secret","onUpdate:modelValue":d[1]||(d[1]=h=>e.value=h),type:"password",class:"input"},null,512),[[ee,e.value]]),a("div",Rt,[a("button",{onClick:d[2]||(d[2]=h=>o()),class:"text-blue-400 text-xs"},"\u2190 Back to index")]),At],32),a("button",{class:"absolute top-0 right-0 mt-5 mr-5",onClick:d[4]||(d[4]=h=>o())},"\u{1F5D9}")])]),_:1},16,["modelValue"]),a("div",{onClick:d[6]||(d[6]=h=>l.value=!0)},[pe(r.$slots,"button",{},void 0,!0)])]))}});var Nt=L(qt,[["__scopeId","data-v-11581f94"]]);const Bt={},Ht={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ut=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"},null,-1),Dt=[Ut];function zt(t,s){return c(),u("svg",Ht,Dt)}var Ft=L(Bt,[["render",zt]]);const Wt={},Gt={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Kt=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"},null,-1),Qt=[Kt];function Yt(t,s){return c(),u("svg",Gt,Qt)}var Zt=L(Wt,[["render",Yt]]);const Jt={},Xt={xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},es=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"},null,-1),ts=[es];function ss(t,s){return c(),u("svg",Xt,ts)}var os=L(Jt,[["render",ss]]);const ns={class:"flex flex-row (c(),u("nav",ns,[p(e)?(c(),u("div",as,[ls,a("span",rs,I(p(n).name),1)])):C("",!0),m(Nt,null,{button:w(()=>[p(e)?C("",!0):(c(),O(ge,{key:0},{default:w(()=>[is]),_:1}))]),_:1}),p(e)?(c(),O(ge,{key:1,onClick:r[0]||(r[0]=d=>p(o)()),class:"[cs]),_:1})):C("",!0),p(e)?(c(),u("div",ds,[m(os,{onClick:r[1]||(r[1]=d=>p(o)())})])):C("",!0),a("div",{class:"pl-2 pt-1.3 rounded-full max-h-35px default-button",onClick:r[2]||(r[2]=d=>p(l)())},[p(s).isDark?(c(),O(Zt,{key:0,class:"mr-1.9"})):(c(),O(Ft,{key:1,class:"mr-1.5"}))])]))}},ps={class:"bg-gray-100 dark:bg-black dark:text-white"},hs={class:"container mx-auto flex flex-row py-10 justify-between {const e=N("router-link");return c(),u("header",ps,[a("div",hs,[a("h1",ms,[m(e,{to:"/"},{default:w(()=>[q(I(p(s)),1)]),_:1})]),m(us,{class:"mt-0.5"})]),m(St,{class:"pt-2 pb-10 {const n=(e,o)=>{const i=e.split("-"),r=o.split("-"),d=i[0].split("."),h=r[0].split(".");for(let _=0;_<3;_++){const $=Number(d[_]),g=Number(h[_]);if($>g)return 1;if(g>$)return-1;if(!isNaN($)&&isNaN(g))return 1;if(isNaN($)&&!isNaN(g))return-1}return i[1]&&r[1]?i[1]>r[1]?1:i[1]{if(!s(e,o))return 0;const i=n(l(e),l(o));return t?-i:i}},de=v(localStorage.getItem("reversedFileOrder")==="true");H(()=>localStorage.setItem("reversedFileOrder",de.value));const ue=v(localStorage.getItem("displayHashFiles")==="true");H(()=>localStorage.setItem("displayHashFiles",ue.value));function Le(){return{reversedFileOrder:de,displayHashFiles:ue,applyAdjustments:s=>{if(ue.value||(s=s.filter(l=>![".md5",".sha1",".sha256",".sha512"].some(n=>l.name.endsWith(n)))),de.value){const l=vs(!0,(n,e)=>n.type==="DIRECTORY"&&e.type==="DIRECTORY",n=>n.name);s=s.sort(l)}return s}}}const fs={},gs={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},bs=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"},null,-1),xs=[bs];function $s(t,s){return c(),u("svg",gs,xs)}var ys=L(fs,[["render",$s]]);const ks={id:"adjustments-modal"},ws={class:"relative border bg-white dark:bg-gray-900 border-gray-100 dark:border-black m-w-20 py-5 px-10 rounded-2xl shadow-xl text-center"},Cs=a("h1",{class:"font-bold pb-4"},"File browser adjustments",-1),Is=a("hr",{class:""},null,-1),Ts={class:"flex justify-between pt-6"},Ss=a("p",{class:"pr-7"},"Sort files from newest to oldest",-1),js={class:"flex justify-between pt-6"},Os=a("p",{class:"pr-7"},[q(" Display hash files such as "),a("span",{class:"font-italic font-mono bg-gray-200 dark:bg-black px-2 py-0.5 m-2 rounded-lg"},".md5/.sha1/.sha256/.sha512")],-1),Ms={inheritAttrs:!1},Vs=Object.assign(Ms,{setup(t){const{reversedFileOrder:s,displayHashFiles:l}=Le(),n=v(!1);return(e,o)=>(c(),u("div",ks,[m(p(we),ke({modelValue:n.value,"onUpdate:modelValue":o[3]||(o[3]=i=>n.value=i)},e.$attrs,{classes:"flex justify-center iems-center"}),{default:w(()=>[a("div",ws,[a("div",null,[Cs,Is,a("div",Ts,[Ss,m(p(fe),{modelValue:p(s),"onUpdate:modelValue":o[0]||(o[0]=i=>te(s)?s.value=i:null),class:"ml-10"},null,8,["modelValue"])]),a("div",js,[Os,m(p(fe),{modelValue:p(l),"onUpdate:modelValue":o[1]||(o[1]=i=>te(l)?l.value=i:null),class:"ml-10"},null,8,["modelValue"])])]),a("button",{class:"absolute top-0 right-0 mt-5 mr-9",onClick:o[2]||(o[2]=i=>n.value=!1)},"\u{1F5D9}")])]),_:1},16,["modelValue"]),a("div",{onClick:o[4]||(o[4]=i=>n.value=!0)},[pe(e.$slots,"button")])]))}});function Es(){return{createSnippets:(s,l,n)=>[{name:"Maven",lang:"xml",snippet:` - - ${s} - ${l} - ${n} -`.trim()},{name:"Gradle Groovy",lang:"xml",snippet:`implementation "${s}:${l}:${n}"`},{name:"Gradle Kotlin",lang:"kotlin",snippet:`implementation("${s}:${l}:${n}")`},{name:"SBT",lang:"scala",snippet:`"${s}" %% "${l}" %% "${n}"`}]}}function Ls(){const{basePath:t,id:s,title:l}=Q();return{createRepositories:e=>{const o=R(()=>e.path.split("/")[0]),i=s+(e.path?`-${o.value}`:""),r=location.protocol+"//"+location.host+t+(t.endsWith("/")?"":"/")+(e.path?`${o.value}`:"{repository}");return[{name:"Maven",lang:"xml",snippet:` - - ${i} - ${l} - ${r} -`.trim()},{name:"Gradle Groovy",lang:"groovy",snippet:`maven { - url "${r}" -}`.trim()},{name:"Gradle Kotlin",lang:"kotlin",snippet:`maven { - url = uri("${r}") -}`},{name:"SBT",lang:"scala",snippet:`resolvers += - "${i}" - at "${r}"`}]}}}const Rs=new DOMParser;function As(){const t=e=>{var o,i;return(i=(o=e==null?void 0:e.getElementsByTagName("groupId")[0])==null?void 0:o.firstChild)==null?void 0:i.nodeValue},s=e=>{var o,i;return(i=(o=e==null?void 0:e.getElementsByTagName("artifactId")[0])==null?void 0:o.firstChild)==null?void 0:i.nodeValue},l=e=>{var o;return(o=[...e.querySelector("versioning versions").children].map(i=>i.firstChild.nodeValue))!=null?o:["{unknown}"]};return{parseMetadata:e=>{const o=Rs.parseFromString(e,"text/xml"),i=l(o);return{metadata:o,groupId:t(o),artifactId:s(o),versions:i}},groupId:t,artifactId:s,versions:l}}const Ps={},qs={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ns=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"},null,-1),Bs=[Ns];function Hs(t,s){return c(),u("svg",qs,Bs)}var Us=L(Ps,[["render",Hs]]);const Ds={props:{configuration:{type:Object,required:!0}},setup(t){const s=t,l=R(()=>U({highlighter:n=>{var e;return F.highlight(n,(e=F.languages[s.configuration.lang])!=null?e:F.languages.js)}},s.configuration));return(n,e)=>(c(),O(p(Te),{class:"card-editor font-mono text-ssm absolute",modelValue:p(l).snippet,"onUpdate:modelValue":e[0]||(e[0]=o=>p(l).snippet=o),highlight:p(l).highlighter,readonly:"","line-numbers":""},null,8,["modelValue","highlight"]))}},zs={},Fs={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ws=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1),Gs=[Ws];function Ks(t,s){return c(),u("svg",Fs,Gs)}var Qs=L(zs,[["render",Ks]]);const Ys={id:"card-menu",class:"flex mt-2 {localStorage.setItem("card-tab",l.value),s("selectTab",l.value)});const n=o=>l.value=o.name,e=v(localStorage.getItem("dropdown-open")||!1);return H(()=>localStorage.setItem("dropdown-open",e.value)),(o,i)=>(c(),u("div",null,[a("div",Ys,[(c(!0),u(A,null,P(t.configurations,r=>(c(),u("div",{key:r.name,onClick:d=>n(r),class:le(["py-4 px-7 flex-grow text-center border-b-2 cursor-pointer border-transparent",{"!border-gray-800":r.name===l.value}])},I(r.name),11,Zs))),128))]),a("div",Js,[a("div",{class:"w-full box-border py-5px p-2 rounded-lg border-1 border-true-gray-200 dark:border-dark-300",onClick:i[0]||(i[0]=r=>e.value=!e.value)},[q(I(l.value)+" ",1),a("div",Xs,[m(Qs)])]),e.value?C("",!0):(c(),u("ul",eo,[(c(!0),u(A,null,P(t.configurations,r=>(c(),u("li",{key:r.name,onClick:d=>{o.selectTab(r),e.value=!e.value},class:le(["dropdown py-1",{hidden:r.name===l.value}])},I(r.name),11,to))),128))]))])]))}};const oo={class:"bg-white dark:bg-gray-900 shadow-lg p-7 rounded-xl border-gray-100 dark:border-black"},no={class:"flex flex-row justify-between"},ao={class:"font-bold flex items-center w-full"},lo=a("hr",{class:"dark:border-gray-800 {l.value="Repository details",n.value=e(s.qualifier)},$=(b,f)=>{l.value="Artifact details";const{groupId:y,artifactId:V,versions:x}=i(b),k=x[f?x.indexOf(f):x.length-1];n.value=o(y,V,k)};H(()=>{const b=s.qualifier.path,f=b.split("/");if(f.length==1&&f[0]==""){_();return}r.value.maven.content(`${b}/maven-metadata.xml`).then(y=>$(y.data)).catch(()=>{r.value.maven.content(`${b.substring(0,b.indexOf(f[f.length-1])-1)}/maven-metadata.xml`).then(y=>$(y.data,f[f.length-1])).catch(y=>{y.message!=="Request failed with status code 404"&&console.log(y),_()})})});const g=v(),M=v("slide-right");K(g,(b,f)=>{const y=n.value.findIndex(x=>x.name===b),V=n.value.findIndex(x=>x.name===f);M.value=y-V<0?"slide-left":"slide-right"});const Z=async()=>{const{snippet:b}=n.value.find(f=>f.name===g.value);return await d(b),T("Snippet copied",{type:"info",timeout:"2000"})},S=b=>g.value=b;return(b,f)=>(c(),u("div",oo,[a("div",no,[a("h1",ao,[q(I(l.value)+" ",1),p(h)?(c(),u("span",{key:0,onClick:Z,class:"ml-auto cursor-pointer"},[m(Us)])):C("",!0)])]),m(so,{configurations:n.value,onSelectTab:S},null,8,["configurations"]),lo,a("div",ro,[m(De,{name:M.value,mode:"out-in"},{default:w(()=>[(c(),u("div",{key:g.value,class:"h-29 relative mt-6 py-3 pl-1 mr-1 rounded-lg bg-gray-100 dark:bg-gray-800"},[(c(!0),u(A,null,P(n.value,y=>(c(),u(A,{key:y.name},[y.name===g.value?(c(),O(Ds,{key:0,configuration:y},null,8,["configuration"])):C("",!0)],64))),128))]))]),_:1},8,["name"])])]))}},co={class:""},uo={class:"pb-3 font-semibold"},po={class:"select-none"},ho=q(" Index of "),mo={class:"select-text"},_o={class:"hover:transition-colors hover:duration-200 hover:text-purple-500"},vo=a("span",{class:"font-normal text-xl text-gray-500 select-none"}," \u2934 ",-1),fo={props:{parentPath:{type:String,required:!0}},setup(t){const s=ye(),l=R(()=>{const n=s.path.split("/");return n.map((e,o)=>({link:n.slice(0,o+1).join("/")||"/",name:o===n.length-1?e:e+"/"}))});return(n,e)=>{const o=N("router-link");return c(),u("div",co,[a("p",uo,[a("span",po,[m(o,{to:"/"},{default:w(()=>[ho]),_:1})]),a("span",mo,[(c(!0),u(A,null,P(p(l),i=>(c(),O(o,{key:i.link,to:i.link},{default:w(()=>[a("span",_o,I(i.name),1)]),_:2},1032,["to"]))),128))]),m(o,{to:t.parentPath},{default:w(()=>[vo]),_:1},8,["to"])])])}}},go={},bo={class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},xo=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},null,-1),$o=a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"},null,-1),yo=[xo,$o];function ko(t,s){return c(),u("svg",bo,yo)}var wo=L(go,[["render",ko]]);const Co={class:"browser-entry flex flex-row justify-between mb-1.5 py-3 rounded-full default-button"},Io={class:"flex flex-row"},To={key:0,class:"text-xm px-6 pt-1.75"},So={key:1,class:"text-xm px-6 pt-1.75"},jo={class:"font-semibold"},Oo={key:0,class:"px-6 flex"},Mo=["title"],be={props:{file:{type:Object,required:!0}},setup(t){const s=t,l=["application/xml","text/plain","text/xml","text/markdown","application/json"].some(e=>{var o;return((o=s.file)==null?void 0:o.contentType)==e}),n=e=>window.open(e);return(e,o)=>(c(),u("div",Co,[a("div",Io,[t.file.type=="DIRECTORY"?(c(),u("div",To,"\u26AB")):(c(),u("div",So,"\u26AA")),a("div",jo,I(t.file.name),1)]),t.file.hasOwnProperty("contentLength")?(c(),u("div",Oo,[p(l)?(c(),u("div",{key:0,title:`Click to view ${t.file.name} file content in a new tab`},[m(wo,{id:"view-button",class:"px-1 mr-7 pt-0.4 rounded-full text-purple-300 hover:transition-colors hover:duration-200 hover:bg-gray-100 hover:dark:bg-gray-900",onClick:[o[0]||(o[0]=W(i=>n(`${e.$route.path}/${t.file.name}`),["left","prevent"])),o[1]||(o[1]=W(()=>{},["stop"]))]})],8,Mo)):C("",!0),a("div",null,I(p(ze)(t.file.contentLength)),1)])):C("",!0)]))}},Vo={id:"browser-list",class:"pt-3"},Eo=["onClick","href"],Lo={key:0,class:"pl-2"},Ro=a("p",null,"Directory is empty",-1),Ao=[Ro],Po={key:1,class:"pl-2"},qo=a("p",null,"Directory not found",-1),No=[qo],Bo={props:{files:{type:Object,required:!0}},setup(t){const{client:s}=E(),l=(n,e)=>{s.value.maven.download(n.substring(1)+"/"+e).then(o=>Fe(o.data,e,o.headers["content-type"])).catch(o=>T(`Cannot download file - ${o.response.status}: ${o.response.data.message}`,{type:"danger"}))};return(n,e)=>{const o=N("router-link");return c(),u("div",Vo,[(c(!0),u(A,null,P(t.files.list,i=>(c(),u("div",{key:i},[i.type==="DIRECTORY"?(c(),O(o,{key:0,to:n.append(n.$route.path,i.name)},{default:w(()=>[m(be,{file:i},null,8,["file"])]),_:2},1032,["to"])):(c(),u("a",{key:1,onClick:W(r=>l(n.$route.path,i.name),["left","prevent"]),href:`${n.$route.path}/${i.name}`,target:"_blank"},[m(be,{file:i},null,8,["file"])],8,Eo))]))),128)),t.files.isEmpty?(c(),u("div",Lo,Ao)):C("",!0),t.files.error?(c(),u("div",Po,No)):C("",!0)])}}},Ho=t=>T(t,{type:"success"}),Uo=t=>T(t,{type:"danger"});const Do={id:"browser-upload"},zo={class:"border border-dashed rounded-3xl mt-1.5 cursor-pointer bg-gray-50 border-gray-300 hover:transition-colors hover:duration-200 hover:bg-white dark:bg-black dark:border-gray-800 dark:hover:transition-colors dark:hover:duration-400 dark:hover:bg-gray-900"},Fo={class:"my-3 px-6"},Wo={key:0,class:"flex"},Go=a("span",{class:"text-xm pt-1.6"},"\u{1F7E3}",-1),Ko=a("span",{class:"font-bold px-5"},"Select files",-1),Qo=[Go,Ko],Yo={key:1,class:"py-1"},Zo=a("p",{class:"font-bold"},"Selected files to deploy here",-1),Jo=[Zo],Xo={class:"-mt-2 pb-2"},en=["onClick"],tn={class:"px-2"},sn={key:0,class:"text-right"},on=["onClick"],nn=a("span",null,"Upload files ",-1),an=a("span",{class:"font-bold text-purple-400"},"\u219D",-1),ln=[nn,an],rn={setup(t){const{client:s}=E(),{qualifier:l,refreshQualifier:n}=Ve(),e=v([]),o=r=>e.value=e.value.filter(d=>d!==r),i=()=>{e.value.forEach(r=>s.value.maven.deploy(`${l.path}/${r.name}`,r.file).then(()=>Ho(`File ${r.name} has been uploaded`)).then(()=>o(r)).catch(d=>Uo(`Cannot upload file ${r.name} - ${d.response.status}: ${d.response.data.message}`))),n()};return(r,d)=>(c(),u("div",Do,[a("div",zo,[m(p(We),{class:"btn btn-primary flex text-left","post-action":"/upload/post",multiple:!0,drop:!0,"drop-directory":!0,modelValue:e.value,"onUpdate:modelValue":d[0]||(d[0]=h=>e.value=h),ref:"upload"},{default:w(()=>[a("div",Fo,[e.value.length==0?(c(),u("div",Wo,Qo)):(c(),u("div",Yo,Jo))])]),_:1},8,["modelValue"]),a("div",Xo,[(c(!0),u(A,null,P(e.value,h=>(c(),u("div",{key:h.name,class:"pb-1 px-6"},[a("span",{class:"text-xs text-purple-400",onClick:_=>o(h)},"\u{1F5D9}",8,en),a("span",tn,I(h.name),1)]))),128))])]),e.value.length>0?(c(),u("div",sn,[a("button",{onClick:W(i,["prevent"]),class:"border text-sm py-1.5 h-9 px-4 mt-1.5 border-dashed rounded bg-gray-50 border-gray-400 hover:transition-colors hover:duration-200 hover:bg-purple-500 hover:text-white dark:bg-black dark:border-gray-700 dark:text-white dark:hover:transition-colors dark:hover:duration-200 dark:hover:bg-purple-700"},ln,8,on)])):C("",!0)]))}},cn={class:"bg-gray-100"},dn={class:"dark:bg-black"},un={class:"container mx-auto relative min-h-320px mb-1.5"},pn={class:"lg:absolute pt-13 -top-5 right-8"},hn={class:"lg:max-w-2/5 xl:max-w-1/2"},mn={class:"flex justify-between pt-7 px-2"},_n={class:"w-9"},vn={class:"bg-white dark:bg-gray-900 pl-2 pt-1.3 pb-1 pr-2 cursor-pointer rounded-full default-button"},fn={props:{qualifier:{type:Object,required:!0}},setup(t){const s=t,l=v(""),n=v({}),{client:e,isManager:o}=E(),{applyAdjustments:i}=Le(),r=R(()=>ve(U({},n.value),{list:i([...n.value.list])}));return K(()=>s.qualifier.watchable,async()=>{n.value={list:[]};const d=s.qualifier.path;e.value.maven.details(d).then(_=>n.value={list:_.data.files}).then(()=>n.value.isEmpty=n.value.list.length==0).catch(_=>{T(`${_.response.status}: ${_.response.data.message}`,{type:"danger"}),n.value={list:[],error:!0}});const h=_=>(_.endsWith("/")?_.slice(0,-1):_).split("/").slice(0,-1).join("/")||"/";l.value=h(`/${d}`)},{immediate:!0}),(d,h)=>(c(),u("div",cn,[a("div",dn,[a("div",un,[a("div",pn,[m(io,{qualifier:t.qualifier},null,8,["qualifier"])]),a("div",hn,[a("div",mn,[m(fo,{parentPath:l.value},null,8,["parentPath"]),m(Vs,null,{button:w(()=>[a("div",_n,[a("div",vn,[m(ys,{class:"pr-0.9"})])])]),_:1})]),m(Bo,{files:p(r)},null,8,["files"]),p(o)?(c(),O(rn,{key:0})):C("",!0)])])])]))}};const gn={class:"container mx-auto py-10 px-15"},bn=a("div",null,[a("p",null,"Modify configuration shared between all instances."),a("p",null,[a("strong",null,"Remember"),q(": Configuration propagation can take up to 30 seconds on all instances")])],-1),xn=a("p",null,"Reset changes",-1),$n=[xn],yn=a("p",null,"Update and reload",-1),kn=[yn],wn={class:"border-1 rounded p-4 dark:border-gray-700"},Cn={setup(t){const{client:s}=E(),l=d=>F.highlight(d,F.languages.js),n="configuration.shared.cdn",e=v(""),o=v(!1),i=()=>s.value.settings.content(n).then(d=>e.value=d.data.content).catch(d=>T(d,{type:"error"})),r=()=>s.value.settings.updateContent(n,e.value).then(()=>T("Configuration has been deployed, fetching...",{type:"info"})).then(()=>i()).then(()=>T("Configuration reloaded, refresh page to see changes",{type:"success"})).catch(d=>T(d,{type:"error"}));return i().then(()=>o.value=!0),(d,h)=>(c(),u("div",gn,[a("div",{class:"flex justify-between pb-5 flex-col xl:flex-row"},[bn,a("div",{id:"configuration-state",class:"flex flex-row pt-3 xl:pt-2"},[a("button",{onClick:i},$n),a("button",{onClick:r},kn)])]),a("div",wn,[o.value?(c(),O(p(Te),{key:0,class:"configuration-editor font-mono text-xs",modelValue:e.value,"onUpdate:modelValue":h[0]||(h[0]=_=>e.value=_),highlight:l,"line-numbers":""},null,8,["modelValue"])):C("",!0)])]))}},Re=["Other","Trace","Debug","Info","Warn","Error"],ne=G({}),xe=v(""),In=v(0),J=G([]),Tn=new Ge,Sn=t=>{var s;return(s=Re.find(l=>t.includes(`${l.toUpperCase()} | `)))!=null?s:"Other"},$e=t=>Tn.toHtml(t.replaceAll("<","<").replaceAll(">",">").replaceAll(" "," "));function jn(){Re.forEach(n=>{ne[n]={name:n,enabled:!0,count:R(()=>J.reduce((e,o)=>e+(o.level===n),0))}});const t=R(()=>J.filter(n=>n.message.toLowerCase().includes(xe.value.toLowerCase())).filter(n=>ne[n.level].enabled));return{levels:ne,log:t,filter:xe,sanitizeMessage:$e,logMessage:n=>{J.push({id:In.value++,message:$e(n),level:Sn(n)})},clearLog:()=>{J.length=0}}}const j=v(),z=v("");function On(){const t=re("/api/console/sock").replace("https","wss").replace("http","ws"),s=()=>{var S;return((S=j.value)==null?void 0:S.readyState)===WebSocket.OPEN},l=()=>{s()&&j.value.close()},n=v([""]),e=v(0),o=S=>{n.value[n.value.length-1]==""&&n.value.pop(),n.value.push(S),e.value=n.value.length-1},i=()=>{o(z.value),j.value.send(z.value),z.value=""},r=()=>h(-1),d=()=>h(1),h=S=>{const b=z.value,f=n.value,y=f.length-1;y===e.value&&f[y]!==b&&o(b),e.value=Math.max(0,Math.min(f.length-1,e.value+S)),z.value=n.value[e.value]},_=v(),$=v(),g=v(),M=v();return{connection:j,connect:S=>{try{j.value=new WebSocket(t),j.value.onopen=()=>{j.value.send(`Authorization:${S.name}:${S.secret}`),_==null||_.value()},j.value.onmessage=f=>{f.data!="keep-alive"&&($==null||$.value(f.data))},j.value.onerror=f=>g==null?void 0:g.value(f),j.value.onclose=()=>M==null?void 0:M.value();const b=setInterval(()=>{var f;s()?(f=j==null?void 0:j.value)==null||f.send("keep-alive"):clearInterval(b)},1e3*5)}catch(b){g==null||g.value(b)}},close:l,onOpen:_,onMessage:$,onError:g,onClose:M,command:z,execute:i,previousCommand:r,nextCommand:d}}const Mn={class:"container mx-auto pt-10 px-15 pb-10 text-xs"},Vn={class:"flex text-sm flex-col xl:flex-row w-full py-2 justify-between"},En={class:"flex flex-row justify-around w-full xl:w-1/2 g());const f=()=>{const V=document.getElementById("console");V.scrollTop=V.scrollHeight},y=()=>{r.value=()=>i(),d.value=x=>{e(x),Qe(()=>f())},_.value=x=>T(`${x||""}`,{type:"danger"}),h.value=()=>T("Connection with console has been lost",{type:"danger"}),T("Connecting to the remote console",{type:"info"});const{token:V}=E();$(V.value)};return K(()=>s.selectedTab.value,V=>V==="Console"?y():g(),{immediate:!0}),(V,x)=>(c(),u("div",Mn,[a("div",Vn,[X(a("input",{placeholder:"Filter","onUpdate:modelValue":x[0]||(x[0]=k=>te(o)?o.value=k:null),class:"w-full xl:w-1/2 mr-5 py-1 px-4 rounded-lg bg-white dark:bg-gray-900"},null,512),[[ee,p(o)]]),a("div",En,[(c(!0),u(A,null,P(p(l),k=>(c(),u("div",{key:k.name,class:"pt-1.9 xl:pt-0.8 font-sans whitespace-nowrap"},[a("input",{type:"checkbox",checked:k.enabled,onChange:Qn=>k.enabled=!k.enabled},null,40,Ln),a("span",Rn,I(k.name)+" ("+I(k.count)+")",1)]))),128))])]),a("div",An,[a("div",Pn,[(c(!0),u(A,null,P(p(n),k=>(c(),u("p",{key:k.id,innerHTML:k.message,class:"whitespace-nowrap"},null,8,qn))),128))]),Nn,X(a("input",{id:"consoleInput",placeholder:"Type command or '?' to get help",class:"w-full py-2 px-4 rounded-b-lg bg-white dark:bg-gray-900 dark:text-white","onUpdate:modelValue":x[1]||(x[1]=k=>te(M)?M.value=k:null),onKeyup:[x[2]||(x[2]=se(k=>p(Z)(),["enter"])),x[3]||(x[3]=se(k=>p(S)(),["up"])),x[4]||(x[4]=se(k=>p(b)(),["down"]))]},null,544),[[ee,p(M)]])])]))}};const Hn=t=>(Ce("data-v-546f8039"),t=t(),Ie(),t),Un={class:"bg-gray-100 dark:bg-black"},Dn={class:"container mx-auto a("hr",{class:"dark:border-gray-700"},null,-1)),Fn={class:"overflow-auto"},Wn={props:{qualifier:{type:Object,required:!0}},setup(t){const{isManager:s}=E(),l=[{name:"Overview"},{name:"Console",manager:!0},{name:"Configuration",manager:!0}],n=G({value:localStorage.getItem("selectedTab")||"Overview"});H(()=>localStorage.setItem("selectedTab",n.value));const e=R(()=>l.filter(o=>!(o==null?void 0:o.manager)||s.value).map(o=>o.name));return(o,i)=>{const r=N("tab"),d=N("tabs"),h=N("tab-panel"),_=N("tab-panels");return c(),u("div",null,[m(_s),a("div",Un,[a("div",Dn,[m(d,{modelValue:p(n).value,"onUpdate:modelValue":i[0]||(i[0]=$=>p(n).value=$)},{default:w(()=>[(c(!0),u(A,null,P(p(e),($,g)=>(c(),O(r,{class:"item font-normal",key:`menu${g}`,val:$,label:$,indicator:!0},null,8,["val","label"]))),128))]),_:1},8,["modelValue"])]),zn,a("div",Fn,[m(_,{modelValue:p(n).value,"onUpdate:modelValue":i[1]||(i[1]=$=>p(n).value=$),animate:!0},{default:w(()=>[m(h,{val:"Overview"},{default:w(()=>[m(fn,{qualifier:t.qualifier,ref:""},null,8,["qualifier"])]),_:1}),p(s)?(c(),O(h,{key:0,val:"Console"},{default:w(()=>[m(Bn,{selectedTab:p(n)},null,8,["selectedTab"])]),_:1})):C("",!0),p(s)?(c(),O(h,{key:1,val:"Configuration"},{default:w(()=>[m(Cn,{selectedTab:p(n)},null,8,["selectedTab"])]),_:1})):C("",!0)]),_:1},8,["modelValue"])])])])}}};var Gn=L(Wn,[["__scopeId","data-v-546f8039"]]);const Kn=Ye({history:Ze(),routes:[{path:"/:qualifier(.*)",name:"Index",component:Gn}]});const he=Je(ht);he.config.globalProperties.append=(t,s)=>t+(t.endsWith("/")?"":"/")+s;he.config.globalProperties.drop=t=>(t.endsWith("/")?t.slice(0,-1):t).split("/").slice(0,-1).join("/");he.use(Xe()).use(et,ae).use(tt).use(Kn).mount("#app"); diff --git a/reposilite-backend/src/main/resources/reposilite-frontend/index.html b/reposilite-backend/src/main/resources/reposilite-frontend/index.html index 3d1cdea88..a21d4ba5d 100644 --- a/reposilite-backend/src/main/resources/reposilite-frontend/index.html +++ b/reposilite-backend/src/main/resources/reposilite-frontend/index.html @@ -32,9 +32,9 @@ - + - +
diff --git a/reposilite-frontend/src/components/browser/AdjustmentsModal.vue b/reposilite-frontend/src/components/browser/AdjustmentsModal.vue index 7b60f236e..ad783a0d4 100644 --- a/reposilite-frontend/src/components/browser/AdjustmentsModal.vue +++ b/reposilite-frontend/src/components/browser/AdjustmentsModal.vue @@ -20,6 +20,7 @@ import { VueFinalModal } from 'vue-final-modal' import Toggle from '@vueform/toggle' import '@vueform/toggle/themes/default.css' import { useAdjustments } from '../../store/adjustments' +import CloseIcon from '../icons/CloseIcon.vue' const { reversedFileOrder, displayHashFiles } = useAdjustments() const showAdjustments = ref(false) @@ -60,7 +61,9 @@ export default { /> - +
diff --git a/reposilite-frontend/src/components/browser/BrowserUpload.vue b/reposilite-frontend/src/components/browser/BrowserUpload.vue index 804a0aab2..c11e9747c 100644 --- a/reposilite-frontend/src/components/browser/BrowserUpload.vue +++ b/reposilite-frontend/src/components/browser/BrowserUpload.vue @@ -4,6 +4,7 @@ import { createSuccessToast, createErrorToast } from '../../helpers/toast' import { useSession } from '../../store/session' import useQualifier from '../../helpers/qualifier' import FileUpload from 'vue-upload-component' +import CloseIcon from '../icons/CloseIcon.vue' const { client } = useSession() const { qualifier, refreshQualifier } = useQualifier() @@ -55,8 +56,10 @@ const uploadFiles = () => {
-
- 🗙 +
+ + + {{file.name}}
diff --git a/reposilite-frontend/src/components/header/LoginModal.vue b/reposilite-frontend/src/components/header/LoginModal.vue index 6b6d6dba1..072e46d87 100644 --- a/reposilite-frontend/src/components/header/LoginModal.vue +++ b/reposilite-frontend/src/components/header/LoginModal.vue @@ -19,6 +19,7 @@ import { ref } from 'vue' import { VueFinalModal } from 'vue-final-modal' import { createToast } from 'mosha-vue-toastify' import { useSession } from '../../store/session' +import CloseIcon from '../icons/CloseIcon.vue' const { login } = useSession() const showLogin = ref(false) @@ -58,7 +59,9 @@ export default {
- +
diff --git a/reposilite-frontend/src/components/icons/CloseIcon.vue b/reposilite-frontend/src/components/icons/CloseIcon.vue new file mode 100644 index 000000000..7e700c4c3 --- /dev/null +++ b/reposilite-frontend/src/components/icons/CloseIcon.vue @@ -0,0 +1,33 @@ + + + \ No newline at end of file