dist folder added to backend
This commit is contained in:
1 parent
a0dc17e346
commit
d5895d91b6
6 files changed
+83
-1
No files matched your search
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
+1
@@ -0,0 +1 @@
|
||||
@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css";@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css";@import "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css";:root{--swal2-outline:0 0 0 3px #6496c880;--swal2-container-padding:.625em;--swal2-backdrop:#0006;--swal2-backdrop-transition:background-color .15s;--swal2-width:32em;--swal2-padding:0 0 1.25em;--swal2-border:none;--swal2-border-radius:.3125rem;--swal2-background:white;--swal2-color:#545454;--swal2-show-animation:swal2-show .3s;--swal2-hide-animation:swal2-hide .15s forwards;--swal2-icon-zoom:1;--swal2-title-padding:.8em 1em 0;--swal2-html-container-padding:1em 1.6em .3em;--swal2-input-border:1px solid #d9d9d9;--swal2-input-border-radius:.1875em;--swal2-input-box-shadow:inset 0 1px 1px #0000000f, 0 0 0 3px transparent;--swal2-input-background:transparent;--swal2-input-transition:border-color .2s, box-shadow .2s;--swal2-input-hover-box-shadow:inset 0 1px 1px #0000000f, 0 0 0 3px transparent;--swal2-input-focus-border:1px solid #b4dbed;--swal2-input-focus-box-shadow:inset 0 1px 1px #0000000f, 0 0 0 3px #6496c880;--swal2-progress-step-background:#add8e6;--swal2-validation-message-background:#f0f0f0;--swal2-validation-message-color:#666;--swal2-footer-border-color:#eee;--swal2-footer-background:transparent;--swal2-footer-color:inherit;--swal2-timer-progress-bar-background:#0000004d;--swal2-close-button-position:initial;--swal2-close-button-inset:auto;--swal2-close-button-font-size:2.5em;--swal2-close-button-color:#ccc;--swal2-close-button-transition:color .2s, box-shadow .2s;--swal2-close-button-outline:initial;--swal2-close-button-box-shadow:inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow:inset var(--swal2-outline);--swal2-close-button-hover-transform:none;--swal2-actions-justify-content:center;--swal2-actions-width:auto;--swal2-actions-margin:1.25em auto 0;--swal2-actions-padding:0;--swal2-actions-border-radius:0;--swal2-actions-background:transparent;--swal2-action-button-transition:background-color .2s, box-shadow .2s;--swal2-action-button-hover:black 10%;--swal2-action-button-active:black 10%;--swal2-confirm-button-box-shadow:none;--swal2-confirm-button-border-radius:.25em;--swal2-confirm-button-background-color:#7066e0;--swal2-confirm-button-color:#fff;--swal2-deny-button-box-shadow:none;--swal2-deny-button-border-radius:.25em;--swal2-deny-button-background-color:#dc3741;--swal2-deny-button-color:#fff;--swal2-cancel-button-box-shadow:none;--swal2-cancel-button-border-radius:.25em;--swal2-cancel-button-background-color:#6e7881;--swal2-cancel-button-color:#fff;--swal2-toast-show-animation:swal2-toast-show .5s;--swal2-toast-hide-animation:swal2-toast-hide .1s forwards;--swal2-toast-border:none;--swal2-toast-box-shadow:0 0 1px #00000013, 0 1px 2px #00000013, 1px 2px 4px #00000013, 1px 3px 8px #00000013, 2px 4px 16px #00000013}[data-swal2-theme=dark]{--swal2-dark-theme-black:#19191a;--swal2-dark-theme-white:#e1e1e1;--swal2-background:var(--swal2-dark-theme-black);--swal2-color:var(--swal2-dark-theme-white);--swal2-footer-border-color:#555;--swal2-input-background:color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background:color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-color:var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background:#ffffffb3}@media (prefers-color-scheme:dark){[data-swal2-theme=auto]{--swal2-dark-theme-black:#19191a;--swal2-dark-theme-white:#e1e1e1;--swal2-background:var(--swal2-dark-theme-black);--swal2-color:var(--swal2-dark-theme-white);--swal2-footer-border-color:#555;--swal2-input-background:color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background:color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-color:var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background:#ffffffb3}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{pointer-events:none;background-color:#0000!important}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:auto}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;pointer-events:none;background-color:#0000;width:360px;max-width:100%}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translate(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swalLine truncated
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function l(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var u={},d=[],f=()=>{},p=()=>!1,m=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),h=e=>e.startsWith(`onUpdate:`),g=Object.assign,_=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},v=Object.prototype.hasOwnProperty,y=(e,t)=>v.call(e,t),b=Array.isArray,x=e=>ne(e)===`[object Map]`,S=e=>ne(e)===`[object Set]`,C=e=>ne(e)===`[object Date]`,w=e=>typeof e==`function`,T=e=>typeof e==`string`,E=e=>typeof e==`symbol`,D=e=>typeof e==`object`&&!!e,ee=e=>(D(e)||w(e))&&w(e.then)&&w(e.catch),te=Object.prototype.toString,ne=e=>te.call(e),re=e=>ne(e).slice(8,-1),ie=e=>ne(e)===`[object Object]`,ae=e=>T(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,O=l(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),k=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},oe=/-\w/g,A=k(e=>e.replace(oe,e=>e.slice(1).toUpperCase())),se=/\B([A-Z])/g,ce=k(e=>e.replace(se,`-$1`).toLowerCase()),le=k(e=>e.charAt(0).toUpperCase()+e.slice(1)),ue=k(e=>e?`on${le(e)}`:``),j=(e,t)=>!Object.is(e,t),de=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},pe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},me,M=()=>me||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function N(e){if(b(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=T(r)?_e(r):N(r);if(i)for(let e in i)t[e]=i[e]}return t}if(T(e)||D(e))return e}var he=/;(?![^(]*\))/g,P=/:([^]+)/,ge=/\/\*[^]*?\*\//g;function _e(e){let t={};return e.replace(ge,``).split(he).forEach(e=>{if(e){let n=e.split(P);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ve(e){let t=``;if(T(e))t=e;else if(b(e))for(let n=0;n<e.length;n++){let r=ve(e[n]);r&&(t+=r+` `)}else if(D(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var F=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ye=l(F);F+``;function be(e){return!!e||e===``}function xe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=I(e[r],t[r]);return n}function I(e,t){if(e===t)return!0;let n=C(e),r=C(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=E(e),r=E(t),n||r)return e===t;if(n=b(e),r=b(t),n||r)return n&&r?xe(e,t):!1;if(n=D(e),r=D(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!I(e[n],t[n]))return!1}}return String(e)===String(t)}function L(e,t){return e.findIndex(e=>I(e,t))}var Se=e=>!!(e&&e.__v_isRef===!0),Ce=e=>T(e)?e:e==null?``:b(e)||D(e)&&(e.toString===te||!w(e.toString))?Se(e)?Ce(e.value):JSON.stringify(e,we,2):String(e),we=(e,t)=>Se(t)?we(e,t.value):x(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[R(t,r)+` =>`]=n,e),{})}:S(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>R(e))}:E(t)?R(t):D(t)&&!b(t)&&!ie(t)?String(t):t,R=(e,t=``)=>E(e)?`Symbol(${e.description??t})`:e,z,Te=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&z&&(z.active?(this.parent=z,this.index=(z.scopes||(z.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=Line truncated
|
||||
`))),e[co]=ao(i);let a=r||i.props&&i.props.type===`number`;Wa(e,t?`change`:`input`,t=>{t.target.composing||e[co](uo(e.value,n,a))}),(n||a)&&Wa(e,`change`,()=>{e.value=uo(e.value,n,a)}),t||(Wa(e,`compositionstart`,oo),Wa(e,`compositionend`,so),Wa(e,`change`,so))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[lo];delete e[lo],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[co](uo(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[co]=ao(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?pe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},po={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Wa(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?pe(ho(e)):ho(e));e[co](e.multiple?S(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,fn(()=>{e._assigning=!1})}),e[co]=ao(r)},mounted(e,{value:t}){mo(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[co]=ao(n)},updated(e,{value:t}){e._assigning||mo(e,t)}};function mo(e,t){let n=e.multiple,r=b(t);if(!(n&&!r&&!S(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=ho(a);if(n)if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):L(t,o)>-1}else a.selected=t.has(o);else if(I(ho(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ho(e){return`_value`in e?e._value:e.value}var go=[`ctrl`,`shift`,`alt`,`meta`],_o={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>go.some(n=>e[`${n}Key`]&&!t.includes(n))},vo=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=_o[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},yo=g({patchProp:no},Ta),bo;function xo(){return bo||=li(yo)}var So=((...e)=>{let t=xo().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=wo(e);if(!r)return;let i=t._component;!w(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Co(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Co(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function wo(e){return T(e)?document.querySelector(e):e}var To=c(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.Sweetalert2=r())})(e,(function(){function e(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function t(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function n(t,n){return t.get(e(t,n))}function r(e,n,r){t(e,n),n.set(e,r)}function i(t,n,r){return t.set(e(t,n),r),r}let a={},o=()=>{a.previousActiveElement instanceof HTMLElement?(a.previousActiveElement.focus(),a.previousActiveElement=null):document.body&&document.body.focus()},s=e=>new Promise(t=>{if(!e)return t();let n=window.scrollX,r=window.scrollY;a.restoreFocusTimeout=setTimeout(()=>{o(),t()},100),window.scrollTo(n,r)}),c=`swal2-`,l=`container.shown.height-auto.iosfix.popup.modal.no-backdrop.no-transition.toast.toast-shown.show.hide.close.title.html-container.actions.confirm.deny.cancel.footer.icon.icon-content.image.input.file.range.select.radio.checkbox.label.textarea.inputerror.input-label.validation-message.progress-steps.active-progress-step.progress-step.progress-step-line.loader.loading.styled.top.top-start.top-end.top-left.top-right.center.center-start.center-end.center-left.center-right.bottom.bottom-start.bottom-end.bottom-left.bottom-right.grow-row.grow-column.grow-fullscreen.rtl.timer-progress-bar.timer-progress-bar-container.scrollbar-measure.icon-success.icon-warning.icon-info.icon-question.icon-error.draggable.dragging`.split(`.`).reduce((e,t)=>(e[t]=c+t,e),{}),u=[`success`,`warning`,`info`,`question`,`error`].reduce((e,t)=>(e[t]=c+t,e),{}),d=`SweetAlert2:`,f=e=>e.charAt(0).toUpperCase()+e.slice(1),p=e=>{console.warn(`${d} ${typeof e==`object`?e.join(` `):e}`)},m=e=>{console.error(`${d} ${e}`)},h=[],g=e=>{h.includes(e)||(h.push(e),p(e))},_=(e,t=null)=>{g(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:``}`)},v=e=>typeof e==`function`?e():e,y=e=>e&&typeof e.toPromise==`function`,b=e=>y(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,S
Line truncated
|
||||
a[href],
|
||||
area[href],
|
||||
input:not([disabled]),
|
||||
select:not([disabled]),
|
||||
textarea:not([disabled]),
|
||||
button:not([disabled]),
|
||||
iframe,
|
||||
object,
|
||||
embed,
|
||||
[tabindex="0"],
|
||||
[contenteditable],
|
||||
audio[controls],
|
||||
video[controls],
|
||||
summary
|
||||
`),i=Array.from(r).filter(e=>e.getAttribute(`tabindex`)!==`-1`);return[...new Set(n.concat(i))].filter(e=>R(e))},fe=()=>N(document.body,l.shown)&&!N(document.body,l[`toast-shown`])&&!N(document.body,l[`no-backdrop`]),pe=()=>{let e=E();return e?N(e,l.toast):!1},me=()=>{let e=E();return e?e.hasAttribute(`data-loading`):!1},M=(e,t)=>{if(e.textContent=``,t){let n=new DOMParser().parseFromString(t,`text/html`),r=n.querySelector(`head`);r&&Array.from(r.childNodes).forEach(t=>{e.appendChild(t)});let i=n.querySelector(`body`);i&&Array.from(i.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},N=(e,t)=>t?t.split(/\s+/).every(t=>e.classList.contains(t)):!1,he=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(l).includes(n)&&!Object.values(u).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},P=(e,t,n)=>{if(he(e,t),!t.customClass)return;let r=t.customClass[n];if(r){if(typeof r!=`string`&&!r.forEach){p(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);return}F(e,r)}},ge=(e,t)=>{if(!t)return null;switch(t){case`select`:case`textarea`:case`file`:return e.querySelector(`.${l.popup} > .${l[t]}`);case`checkbox`:return e.querySelector(`.${l.popup} > .${l.checkbox} input`);case`radio`:return e.querySelector(`.${l.popup} > .${l.radio} input:checked`)||e.querySelector(`.${l.popup} > .${l.radio} input:first-child`);case`range`:return e.querySelector(`.${l.popup} > .${l.range} input`);default:return e.querySelector(`.${l.popup} > .${l.input}`)}},_e=e=>{if(e.focus(),e.type!==`file`){let t=e.value;e.value=``,e.value=t}},ve=(e,t,n)=>{if(!e||!t)return;let r=typeof t==`string`?t.split(/\s+/).filter(Boolean):t;(Array.isArray(e)?e:[e]).forEach(e=>{r.forEach(t=>{n?e.classList.add(t):e.classList.remove(t)})})},F=(e,t)=>{ve(e,t,!0)},ye=(e,t)=>{ve(e,t,!1)},be=(e,t)=>Array.from(e.children).find(e=>e instanceof HTMLElement&&N(e,t)),xe=(e,t,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||n===0?e.style.setProperty(t,typeof n==`number`?`${n}px`:n):e.style.removeProperty(t)},I=(e,t=`flex`)=>{e&&(e.style.display=t)},L=e=>{e&&(e.style.display=`none`)},Se=(e,t=`block`)=>{e&&new MutationObserver(()=>{we(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},Ce=(e,t,n,r)=>{let i=e.querySelector(t);i&&i.style.setProperty(n,r)},we=(e,t,n=`flex`)=>{t?I(e,n):L(e)},R=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),z=()=>!R(O())&&!R(oe())&&!R(k()),Te=e=>e.scrollHeight>e.clientHeight,Ee=(e,t)=>{let n=e;for(;n&&n!==t;){if(Te(n))return!0;n=n.parentElement}return!1},B=e=>{let t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue(`animation-duration`)||`0`),r=parseFloat(t.getPropertyValue(`transition-duration`)||`0`);return n>0||r>0},De=(e,t=!1)=>{let n=ue();n&&R(n)&&(t&&(n.style.transition=`none`,n.style.width=`100%`),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width=`0%`},10))},Oe=()=>{let e=ue();if(!e)return;let t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty(`transition`),e.style.width=`100%`;let n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${n}%`},ke=()=>typeof window>`u`||typeof document>`u`,Ae=`
|
||||
<div aria-labelledby="${l.title}" aria-describedby="${l[`html-container`]}" class="${l.popup}" tabindex="-1">
|
||||
<button type="button" class="${l.close}"></button>
|
||||
<ul class="${l[`progress-steps`]}"></ul>
|
||||
<div class="${l.icon}"></div>
|
||||
<img class="${l.image}" />
|
||||
<h2 class="${l.title}" id="${l.title}"></h2>
|
||||
<div class="${l[`html-container`]}" id="${l[`html-container`]}"></div>
|
||||
<input class="${l.input}" id="${l.input}" />
|
||||
<input type="file" class="${l.file}" />
|
||||
<div class="${l.range}">
|
||||
<input type="range" />
|
||||
<output></output>
|
||||
</div>
|
||||
<select class="${l.select}" id="${l.select}"></select>
|
||||
<div class="${l.radio}"></div>
|
||||
<label class="${l.checkbox}">
|
||||
<input type="checkbox" id="${l.checkbox}" />
|
||||
<span class="${l.label}"></span>
|
||||
</label>
|
||||
<textarea class="${l.textarea}" id="${l.textarea}"></textarea>
|
||||
<div class="${l[`validation-message`]}" id="${l[`validation-message`]}"></div>
|
||||
<div class="${l.actions}">
|
||||
<div class="${l.loader}"></div>
|
||||
<button type="button" class="${l.confirm}"></button>
|
||||
<button type="button" class="${l.deny}"></button>
|
||||
<button type="button" class="${l.cancel}"></button>
|
||||
</div>
|
||||
<div class="${l.footer}"></div>
|
||||
<div class="${l[`timer-progress-bar-container`]}">
|
||||
<div class="${l[`timer-progress-bar`]}"></div>
|
||||
</div>
|
||||
</div>
|
||||
`.replace(/(^|\n)\s*/g,``),je=()=>{let e=C();return e?(e.remove(),ye([document.documentElement,document.body],[l[`no-backdrop`],l[`toast-shown`],l[`has-column`]]),!0):!1},Me=()=>{a.currentInstance&&a.currentInstance.resetValidationMessage()},Ne=()=>{let e=E();if(!e)return;let t=be(e,l.input),n=be(e,l.file),r=e.querySelector(`.${l.range} input`),i=e.querySelector(`.${l.range} output`),a=be(e,l.select),o=e.querySelector(`.${l.checkbox} input`),s=be(e,l.textarea);t&&(t.oninput=Me),n&&(n.onchange=Me),a&&(a.onchange=Me),o&&(o.onchange=Me),s&&(s.oninput=Me),r&&i&&(r.oninput=()=>{Me(),i.value=r.value},r.onchange=()=>{Me(),i.value=r.value})},Pe=e=>{if(typeof e==`string`){let t=document.querySelector(e);if(!t)throw Error(`Target element "${e}" not found`);return t}return e},Fe=e=>{let t=E();t&&(t.setAttribute(`role`,e.toast?`alert`:`dialog`),t.setAttribute(`aria-live`,e.toast?`polite`:`assertive`),e.toast||t.setAttribute(`aria-modal`,`true`))},Ie=e=>{window.getComputedStyle(e).direction===`rtl`&&(F(C(),l.rtl),a.isRTL=!0)},Le=e=>{let t=je();if(ke()){m(`SweetAlert2 requires document to initialize`);return}let n=document.createElement(`div`);n.className=l.container,t&&F(n,l[`no-transition`]),M(n,Ae),n.dataset.swal2Theme=e.theme;let r=Pe(e.target||`body`);r.appendChild(n),e.topLayer&&(n.setAttribute(`popover`,``),n.showPopover()),Fe(e),Ie(r),Ne()},Re=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e==`object`?ze(e,t):e&&M(t,e)},ze=(e,t)=>{`jquery`in e?Be(t,e):M(t,e.toString())},Be=(e,t)=>{if(e.textContent=``,0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Ve=(e,t)=>{let n=ce(),r=se();!n||!r||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?L(n):I(n),P(n,t,`actions`),He(n,r,t),M(r,t.loaderHtml||``),P(r,t,`loader`))};function He(e,t,n){let r=O(),i=oe(),a=k();!r||!i||!a||(Ge(r,`confirm`,n),Ge(i,`deny`,n),Ge(a,`cancel`,n),Ue(r,i,a,n),n.reverseButtons&&(n.toast?(e.insertBefore(a,r),e.insertBefore(i,r)):(e.insertBefore(a,t),e.insertBefore(i,t),e.insertBefore(r,t))))}function Ue(e,t,n,r){if(!r.buttonsStyling){ye([e,t,n],l.styled);return}F([e,t,n],l.styled),[[e,`confirm`,r.confirmButtonColor],[t,`deny`,r.denyButtonColor],[n,`cancel`,r.cancelButtonColor]].forEach(([e,t,n])=>{n&&e.style.setProperty(`--swal2-${t}-button-background-color`,n),We(e)})}function We(e){let t=window.getComputedStyle(e);if(t.getPropertyValue(`--swal2-action-button-focus-box-shadow`))return;let n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,`rgba($1, $2, $3, 0.5)`);e.style.setProperty(`--swal2-action-button-focus-box-shadow`,t.getPropertyValue(`--swal2-outline`).replace(/ rgba\(.*/,` ${n}`))}function Ge(e,t,n){let r=f(t);we(e,n[`show${r}Button`],`inline-block`),M(e,n[`${t}ButtonText`]||``),e.setAttribute(`aria-label`,n[`${t}ButtonAriaLabel`]||``),e.className=l[t],P(e,n,`${t}Button`)}let Ke=(e,t)=>{let n=j();n&&(M(n,t.closeButtonHtml||``),P(n,t,`closeButton`),we(n,t.showCloseButton),n.setAttribute(`aria-label`,t.closeButtonAriaLabel||``))},qe=(e,t)=>{let n=C();n&&(Je(n,t.backdrop),Ye(n,t.position),Xe(n,t.grow),P(n,t,`container`))};function Je(e,t){typeof t==`string`?e.style.background=t:t||F([document.documentElement,document.body],l[`no-backdrop`])}function Ye(e,t){t&&(t in l?F(e,l[t]):(p(`The "position" parameter is not valid, defaulting to "center"`),F(e,l.center)))}function Xe(e,t){t&&F(e,l[`grow-${t}`])}var V={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};let Ze=[`input`,`file`,`range`,`select`,`radio`,`checkbox`,`textarea`],Qe=(e,t)=>{let n=E();if(!n)return;let r=V.innerParams.get(e),i=!r||t.input!==r.input;Ze.forEach(e=>{let r=be(n,l[e]);r&&(et(e,t.inputAttributes),r.className=l[e],i&&L(r))}),t.input&&(i&&H(t),tt(t))},H=e=>{if(!e.input)return;if(!U[e.input]){m(`Unexpected type of input! Expected ${Object.keys(U).join(` | `)}, got "${e.input}"`);return}let t=it(e.input);if(!t)return;let n=U[e.input](t,e);I(t),e.inputAutoFocus&&setTimeout(()=>{_e(n)})},$e=e=>{for(let{name:t}of Array.from(e.attributes))[`id`,`type`,`value`,`style`].includes(t)||e.removeAttribute(t)},et=(e,t)=>{let n=E();if(!n)return;let r=ge(n,e);if(r){$e(r);for(let e in t)r.setAttribute(e,t[e])}},tt=e=>{if(!e.input)return;let t=it(e.input);t&&P(t,e,`input`)},nt=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},rt=(e,t,n)=>{if(n.inputLabel){let r=document.createElement(`label`),i=l[`input-label`];r.setAttribute(`for`,e.id),r.className=i,typeof n.customClass==`object`&&F(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement(`beforebegin`,r)}},it=e=>{let t=E();if(t)return be(t,l[e]||l.input)},at=(e,t)=>{[`string`,`number`].includes(typeof t)?e.value=`${t}`:x(t)||p(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},U={};U.text=U.email=U.password=U.number=U.tel=U.url=U.search=U.date=U[`datetime-local`]=U.time=U.week=U.month=(e,t)=>{let n=e;return at(n,t.inputValue),rt(n,n,t),nt(n,t)
Line truncated
|
||||
${e.animation?`<div class="swal2-success-circular-line-left"></div>`:``}
|
||||
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
||||
<div class="swal2-success-ring"></div>
|
||||
${e.animation?`<div class="swal2-success-fix"></div>`:``}
|
||||
${e.animation?`<div class="swal2-success-circular-line-right"></div>`:``}
|
||||
`,ft=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r=``;t.iconHtml?r=mt(t.iconHtml):t.icon===`success`?(r=dt(t),n=n.replace(/ style=".*?"/g,``)):t.icon===`error`?r=`
|
||||
<span class="swal2-x-mark">
|
||||
<span class="swal2-x-mark-line-left"></span>
|
||||
<span class="swal2-x-mark-line-right"></span>
|
||||
</span>
|
||||
`:t.icon&&(r=mt({question:`?`,warning:`!`,info:`i`}[t.icon])),n.trim()!==r.trim()&&M(e,r)},pt=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(let n of[`.swal2-success-line-tip`,`.swal2-success-line-long`,`.swal2-x-mark-line-left`,`.swal2-x-mark-line-right`])Ce(e,n,`background-color`,t.iconColor);Ce(e,`.swal2-success-ring`,`border-color`,t.iconColor)}},mt=e=>`<div class="${l[`icon-content`]}">${e}</div>`,ht=(e,t)=>{let n=re();if(n){if(!t.imageUrl){L(n);return}I(n,``),n.setAttribute(`src`,t.imageUrl),n.setAttribute(`alt`,t.imageAlt||``),xe(n,`width`,t.imageWidth),xe(n,`height`,t.imageHeight),n.className=l.image,P(n,t,`image`)}},gt=!1,_t=0,vt=0,yt=0,bt=0,xt=e=>{e.addEventListener(`mousedown`,Ct),document.body.addEventListener(`mousemove`,wt),e.addEventListener(`mouseup`,Tt),e.addEventListener(`touchstart`,Ct),document.body.addEventListener(`touchmove`,wt),e.addEventListener(`touchend`,Tt)},St=e=>{e.removeEventListener(`mousedown`,Ct),document.body.removeEventListener(`mousemove`,wt),e.removeEventListener(`mouseup`,Tt),e.removeEventListener(`touchstart`,Ct),document.body.removeEventListener(`touchmove`,wt),e.removeEventListener(`touchend`,Tt)},Ct=e=>{let t=E();if(!t)return;let n=D();if(e.target===t||n&&n.contains(e.target)){gt=!0;let n=Et(e);_t=n.clientX,vt=n.clientY,yt=parseInt(t.style.insetInlineStart)||0,bt=parseInt(t.style.insetBlockStart)||0,F(t,`swal2-dragging`)}},wt=e=>{let t=E();if(t&>){let{clientX:n,clientY:r}=Et(e),i=n-_t;t.style.insetInlineStart=`${yt+(a.isRTL?-i:i)}px`,t.style.insetBlockStart=`${bt+(r-vt)}px`}},Tt=()=>{let e=E();gt=!1,ye(e,`swal2-dragging`)},Et=e=>{let t=e.type.startsWith(`touch`)?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},Dt=(e,t)=>{let n=C(),r=E();if(!(!n||!r)){if(t.toast){xe(n,`width`,t.width),r.style.width=`100%`;let e=se();e&&r.insertBefore(e,D())}else xe(r,`width`,t.width);xe(r,`padding`,t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),L(ae()),Ot(r,t),t.draggable&&!t.toast?(F(r,l.draggable),xt(r)):(ye(r,l.draggable),St(r))}},Ot=(e,t)=>{let n=t.showClass||{};e.className=`${l.popup} ${R(e)?n.popup:``}`,t.toast?(F([document.documentElement,document.body],l[`toast-shown`]),F(e,l.toast)):F(e,l.modal),P(e,t,`popup`),typeof t.customClass==`string`&&F(e,t.customClass),t.icon&&F(e,l[`icon-${t.icon}`])},kt=(e,t)=>{let n=ie();if(!n)return;let{progressSteps:r,currentProgressStep:i}=t;if(!r||r.length===0||i===void 0){L(n);return}I(n),n.textContent=``,i>=r.length&&p(`Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)`),r.forEach((e,a)=>{let o=At(e);if(n.appendChild(o),a===i&&F(o,l[`active-progress-step`]),a!==r.length-1){let e=jt(t);n.appendChild(e)}})},At=e=>{let t=document.createElement(`li`);return F(t,l[`progress-step`]),M(t,e),t},jt=e=>{let t=document.createElement(`li`);return F(t,l[`progress-step-line`]),e.progressStepsDistance&&xe(t,`width`,e.progressStepsDistance),t},Mt=(e,t)=>{let n=te();n&&(Se(n),we(n,!!(t.title||t.titleText),`block`),t.title&&Re(t.title,n),t.titleText&&(n.innerText=t.titleText),P(n,t,`title`))},Nt=(e,t)=>{var n;Dt(e,t),qe(e,t),kt(e,t),ct(e,t),ht(e,t),Mt(e,t),Ke(e,t),ot(e,t),Ve(e,t),st(e,t);let r=E();typeof t.didRender==`function`&&r&&t.didRender(r),(n=a.eventEmitter)==null||n.emit(`didRender`,r)},Pt=()=>R(E()),Ft=()=>O()?.click(),It=()=>oe()?.click(),Lt=()=>k()?.click(),W=Object.freeze({cancel:`cancel`,backdrop:`backdrop`,close:`close`,esc:`esc`,timer:`timer`}),Rt=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){let t=e.keydownHandler;e.keydownTarget.removeEventListener(`keydown`,t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},G=(e,t,n)=>{if(Rt(e),!t.toast){let r=e=>K(t,e,n);e.keydownHandler=r;let i=t.keydownListenerCapture?window:E();if(i){e.keydownTarget=i,e.keydownListenerCapture=t.keydownListenerCapture;let n=r;e.keydownTarget.addEventListener(`keydown`,n,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},zt=(e,t)=>{var n;let r=de();return r.length?(e+=t,e===-2&&(e=r.length-1),e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus(),!(S()&&r[e]instanceof HTMLIFrameElement)):((n=E())==null||n.focus(),!0)},Bt=[`ArrowRight`,`ArrowDown`],Vt=[`ArrowLeft`,`ArrowUp`],K=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key===`Enter`?Ht(t,e):t.key===`Tab`?Ut(t):[...Bt,...Vt].includes(t.key)?Wt(t.key):t.key===`Escape`&&Gt(t,e,n)))},Ht=(e,t)=>{if(!v(t.allowEnterKey))return;let n=E();if(!n||!t.input)return;let r=ge(n,t.input);if(e.target&&r&&e.target instanceof HTMLElement&&e.target.outerHTML===r.outerHTML){if([`textarea`,`file`].includes(t.input))return;Ft(),e.preventDefault()}},Ut=e=>{let t=e.target,n=de().findIndex(e=>e===t),r=!0;r=e.shiftKey?zt(n,-1):zt(n,1),e.stopPropagation(),r&&e.preventDefault()},Wt=e=>{let t=ce(),n=O(),r=oe(),i=k();if(!t||!n||!r||!i)return;let a=[n,r,i];if(document.activeElementLine truncated
|
||||
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
||||
https://sweetalert2.github.io/#ajax-request`),ti(e),typeof e.title==`string`&&(e.title=e.title.split(`
|
||||
`).join(`<br />`)),Le(e)}let ri;var ii=new WeakMap;class X{constructor(...e){if(r(this,ii,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),typeof window>`u`)return;ri=this;let t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,i(ii,this,this._main(ri.params))}_main(e,t={}){if(ar(Object.assign({},t,e)),a.currentInstance){let e=Kt.swalPromiseResolve.get(a.currentInstance),{isAwaitingPromise:t}=a.currentInstance;a.currentInstance._destroy(),t||e({isDismissed:!0}),fe()&&Jt()}a.currentInstance=ri;let n=oi(e,t);ni(n),Object.freeze(n),a.timeout&&(a.timeout.stop(),delete a.timeout),clearTimeout(a.restoreFocusTimeout);let r=si(ri);return Nt(ri,n),V.innerParams.set(ri,n),ai(ri,r,n)}then(e){return n(ii,this).then(e)}finally(e){return n(ii,this).finally(e)}}let ai=(e,t,n)=>new Promise((r,i)=>{let o=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};Kt.swalPromiseResolve.set(e,r),Kt.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{kn(e)},t.denyButton.onclick=()=>{An(e)},t.cancelButton.onclick=()=>{jn(e,o)},t.closeButton.onclick=()=>{o(W.close)},pr(n,t,o),G(a,n,o),vn(e,n),Jr(n),ci(a,n,o),Z(t,n),setTimeout(()=>{t.container.scrollTop=0})}),oi=(e,t)=>{let n=Rr(e),r=Object.assign({},Yn,t,n,e);return r.showClass=Object.assign({},Yn.showClass,r.showClass),r.hideClass=Object.assign({},Yn.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:`swal2-noanimation`},r.hideClass={}),r},si=e=>{let t={popup:E(),container:C(),actions:ce(),confirmButton:O(),denyButton:oe(),cancelButton:k(),loader:se(),closeButton:j(),validationMessage:ae(),progressSteps:ie()};return V.domCache.set(e,t),t},ci=(e,t,n)=>{let r=ue();L(r),t.timer&&(e.timeout=new Ir(()=>{n(`timer`),delete e.timeout},t.timer),t.timerProgressBar&&r&&(I(r),P(r,t,`timerProgressBar`),setTimeout(()=>{e.timeout&&e.timeout.running&&De(t.timer)})))},Z=(e,t)=>{if(!t.toast){if(!v(t.allowEnterKey)){_(`allowEnterKey`,`preConfirm: () => false`),e.popup.focus();return}li(e)||ui(e,t)||zt(-1,1)}},li=e=>{let t=Array.from(e.popup.querySelectorAll(`[autofocus]`));for(let e of t)if(e instanceof HTMLElement&&R(e))return e.focus(),!0;return!1},ui=(e,t)=>t.focusDeny&&R(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&R(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&R(e.confirmButton)?(e.confirmButton.focus(),!0):!1;X.prototype.disableButtons=Wn,X.prototype.enableButtons=Un,X.prototype.getInput=Bn,X.prototype.disableInput=Kn,X.prototype.enableInput=Gn,X.prototype.hideLoading=Rn,X.prototype.disableLoading=Rn,X.prototype.showValidationMessage=qn,X.prototype.resetValidationMessage=Jn,X.prototype.close=J,X.prototype.closePopup=J,X.prototype.closeModal=J,X.prototype.closeToast=J,X.prototype.rejectPromise=un,X.prototype.update=or,X.prototype._destroy=cr,Object.assign(X,Fr),Object.keys(fr).forEach(e=>{X[e]=function(...t){if(ri&&ri[e])return ri[e](...t)}}),X.DismissReason=W,X.version=`11.26.25`;let di=X;return di.default=di,di})),e!==void 0&&e.Sweetalert2&&(e.swal=e.sweetAlert=e.Swal=e.SweetAlert=e.Sweetalert2),typeof document<`u`&&function(e,t){var n=e.createElement(`style`);if(e.getElementsByTagName(`head`)[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,`:root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-cLine truncated
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="eng">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" type="image/png" href="/alma_logo.png" />
|
||||
<title>App</title>
|
||||
<script type="module" crossorigin src="/assets/index-C5qfWTJz.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BpzX4t_X.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -11,6 +11,9 @@ const {
|
||||
} = require('./services');
|
||||
|
||||
const app = express();
|
||||
const frontendDistPath = path.join(__dirname, '../dist');
|
||||
|
||||
app.use(express.static(frontendDistPath));
|
||||
app.use(cors({
|
||||
origin: 'http://localhost:5173'
|
||||
}));
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"build": "vite build && rm -rf ../backend/dist && cp -R dist ../backend/dist",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in new issue
Block a user