feat: 新增后台控制前台是否显示admin、新增robots.txt
This commit is contained in:
@@ -46,6 +46,8 @@ DEFAULT_CONFIG = {
|
|||||||
'errorMinute': 1,
|
'errorMinute': 1,
|
||||||
'errorCount': 1,
|
'errorCount': 1,
|
||||||
'port': 12345,
|
'port': 12345,
|
||||||
|
'showAdminAddr': 0,
|
||||||
|
'robotsText': 'User-agent: *\nDisallow: /',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
import{d as s,a7 as n,V as c,S as e,Z as r,X as a,f as o,o as i}from"./index-84fad9a2.js";const l={style:{"text-align":"center"}},u={style:{color:"#333"},href:"https://github.com/vastsa/FileCodeBox"},f=s({__name:"AboutView",setup(_){const{t}=n();return(m,d)=>(i(),c("main",l,[e("span",null,[r(a(o(t)("admin.about.source1"))+" ",1),e("em",null,[e("a",u,a(o(t)("admin.about.source2")),1)])])]))}});export{f as default};
|
import{d as s,a7 as n,V as c,S as e,Z as r,X as a,f as o,o as i}from"./index-8d46fcb1.js";const l={style:{"text-align":"center"}},u={style:{color:"#333"},href:"https://github.com/vastsa/FileCodeBox"},f=s({__name:"AboutView",setup(_){const{t}=n();return(m,d)=>(i(),c("main",l,[e("span",null,[r(a(o(t)("admin.about.source1"))+" ",1),e("em",null,[e("a",u,a(o(t)("admin.about.source2")),1)])])]))}});export{f as default};
|
||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
import{d as T,k as F,e as j,o as C,s as _,b as N,g as v,p as K,q as E,m as R,r as p,t as u,v as B,j as q,f as W,l as Y,n as H,S as J,w as Q}from"./el-popper-9335e200.js";import{b4 as m,b6 as M,b1 as V,b5 as X,bw as Z}from"./index-84fad9a2.js";function z(t,e){for(var n=-1,o=t==null?0:t.length;++n<o&&e(t[n],n,t)!==!1;);return t}function k(t,e){return t&&T(e,F(e),t)}function tt(t,e){return t&&T(e,j(e),t)}function et(t,e){return T(t,C(t),e)}var rt=Object.getOwnPropertySymbols,nt=rt?function(t){for(var e=[];t;)N(e,C(t)),t=v(t);return e}:_;const x=nt;function at(t,e){return T(t,x(t),e)}function ot(t){return K(t,j,x)}var st=Object.prototype,ct=st.hasOwnProperty;function it(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&ct.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function bt(t,e){var n=e?E(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var ft=/\w*$/;function gt(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}var w=m?m.prototype:void 0,I=w?w.valueOf:void 0;function yt(t){return I?Object(I.call(t)):{}}var ut="[object Boolean]",Tt="[object Date]",lt="[object Map]",jt="[object Number]",pt="[object RegExp]",At="[object Set]",dt="[object String]",$t="[object Symbol]",St="[object ArrayBuffer]",mt="[object DataView]",wt="[object Float32Array]",It="[object Float64Array]",Ot="[object Int8Array]",ht="[object Int16Array]",Ft="[object Int32Array]",Ct="[object Uint8Array]",Et="[object Uint8ClampedArray]",Bt="[object Uint16Array]",Mt="[object Uint32Array]";function xt(t,e,n){var o=t.constructor;switch(e){case St:return E(t);case ut:case Tt:return new o(+t);case mt:return bt(t,n);case wt:case It:case Ot:case ht:case Ft:case Ct:case Et:case Bt:case Mt:return R(t,n);case lt:return new o;case jt:case dt:return new o(t);case pt:return gt(t);case At:return new o;case $t:return yt(t)}}var Lt="[object Map]";function Ut(t){return M(t)&&p(t)==Lt}var O=u&&u.isMap,Pt=O?B(O):Ut;const Dt=Pt;var Gt="[object Set]";function _t(t){return M(t)&&p(t)==Gt}var h=u&&u.isSet,Nt=h?B(h):_t;const vt=Nt;var Kt=1,Rt=2,qt=4,L="[object Arguments]",Wt="[object Array]",Yt="[object Boolean]",Ht="[object Date]",Jt="[object Error]",U="[object Function]",Qt="[object GeneratorFunction]",Vt="[object Map]",Xt="[object Number]",P="[object Object]",Zt="[object RegExp]",zt="[object Set]",kt="[object String]",te="[object Symbol]",ee="[object WeakMap]",re="[object ArrayBuffer]",ne="[object DataView]",ae="[object Float32Array]",oe="[object Float64Array]",se="[object Int8Array]",ce="[object Int16Array]",ie="[object Int32Array]",be="[object Uint8Array]",fe="[object Uint8ClampedArray]",ge="[object Uint16Array]",ye="[object Uint32Array]",r={};r[L]=r[Wt]=r[re]=r[ne]=r[Yt]=r[Ht]=r[ae]=r[oe]=r[se]=r[ce]=r[ie]=r[Vt]=r[Xt]=r[P]=r[Zt]=r[zt]=r[kt]=r[te]=r[be]=r[fe]=r[ge]=r[ye]=!0;r[Jt]=r[U]=r[ee]=!1;function l(t,e,n,o,f,s){var a,g=e&Kt,y=e&Rt,D=e&qt;if(n&&(a=f?n(t,o,f,s):n(t)),a!==void 0)return a;if(!V(t))return t;var A=X(t);if(A){if(a=it(t),!g)return q(t,a)}else{var b=p(t),d=b==U||b==Qt;if(W(t))return Y(t,g);if(b==P||b==L||d&&!f){if(a=y||d?{}:H(t),!g)return y?at(t,tt(a,t)):et(t,k(a,t))}else{if(!r[b])return f?t:{};a=xt(t,b,g)}}s||(s=new J);var $=s.get(t);if($)return $;s.set(t,a),vt(t)?t.forEach(function(c){a.add(l(c,e,n,c,t,s))}):Dt(t)&&t.forEach(function(c,i){a.set(i,l(c,e,n,i,t,s))});var G=D?y?ot:Q:y?j:F,S=A?void 0:G(t);return z(S||t,function(c,i){S&&(i=c,c=t[i]),Z(a,i,l(c,e,n,i,t,s))}),a}export{l as b};
|
import{d as T,k as F,e as j,o as C,s as _,b as N,g as v,p as K,q as E,m as R,r as p,t as u,v as B,j as q,f as W,l as Y,n as H,S as J,w as Q}from"./el-popper-f825fa49.js";import{b4 as m,b6 as M,b1 as V,b5 as X,bw as Z}from"./index-8d46fcb1.js";function z(t,e){for(var n=-1,o=t==null?0:t.length;++n<o&&e(t[n],n,t)!==!1;);return t}function k(t,e){return t&&T(e,F(e),t)}function tt(t,e){return t&&T(e,j(e),t)}function et(t,e){return T(t,C(t),e)}var rt=Object.getOwnPropertySymbols,nt=rt?function(t){for(var e=[];t;)N(e,C(t)),t=v(t);return e}:_;const x=nt;function at(t,e){return T(t,x(t),e)}function ot(t){return K(t,j,x)}var st=Object.prototype,ct=st.hasOwnProperty;function it(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&ct.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function bt(t,e){var n=e?E(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var ft=/\w*$/;function gt(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}var w=m?m.prototype:void 0,I=w?w.valueOf:void 0;function yt(t){return I?Object(I.call(t)):{}}var ut="[object Boolean]",Tt="[object Date]",lt="[object Map]",jt="[object Number]",pt="[object RegExp]",At="[object Set]",dt="[object String]",$t="[object Symbol]",St="[object ArrayBuffer]",mt="[object DataView]",wt="[object Float32Array]",It="[object Float64Array]",Ot="[object Int8Array]",ht="[object Int16Array]",Ft="[object Int32Array]",Ct="[object Uint8Array]",Et="[object Uint8ClampedArray]",Bt="[object Uint16Array]",Mt="[object Uint32Array]";function xt(t,e,n){var o=t.constructor;switch(e){case St:return E(t);case ut:case Tt:return new o(+t);case mt:return bt(t,n);case wt:case It:case Ot:case ht:case Ft:case Ct:case Et:case Bt:case Mt:return R(t,n);case lt:return new o;case jt:case dt:return new o(t);case pt:return gt(t);case At:return new o;case $t:return yt(t)}}var Lt="[object Map]";function Ut(t){return M(t)&&p(t)==Lt}var O=u&&u.isMap,Pt=O?B(O):Ut;const Dt=Pt;var Gt="[object Set]";function _t(t){return M(t)&&p(t)==Gt}var h=u&&u.isSet,Nt=h?B(h):_t;const vt=Nt;var Kt=1,Rt=2,qt=4,L="[object Arguments]",Wt="[object Array]",Yt="[object Boolean]",Ht="[object Date]",Jt="[object Error]",U="[object Function]",Qt="[object GeneratorFunction]",Vt="[object Map]",Xt="[object Number]",P="[object Object]",Zt="[object RegExp]",zt="[object Set]",kt="[object String]",te="[object Symbol]",ee="[object WeakMap]",re="[object ArrayBuffer]",ne="[object DataView]",ae="[object Float32Array]",oe="[object Float64Array]",se="[object Int8Array]",ce="[object Int16Array]",ie="[object Int32Array]",be="[object Uint8Array]",fe="[object Uint8ClampedArray]",ge="[object Uint16Array]",ye="[object Uint32Array]",r={};r[L]=r[Wt]=r[re]=r[ne]=r[Yt]=r[Ht]=r[ae]=r[oe]=r[se]=r[ce]=r[ie]=r[Vt]=r[Xt]=r[P]=r[Zt]=r[zt]=r[kt]=r[te]=r[be]=r[fe]=r[ge]=r[ye]=!0;r[Jt]=r[U]=r[ee]=!1;function l(t,e,n,o,f,s){var a,g=e&Kt,y=e&Rt,D=e&qt;if(n&&(a=f?n(t,o,f,s):n(t)),a!==void 0)return a;if(!V(t))return t;var A=X(t);if(A){if(a=it(t),!g)return q(t,a)}else{var b=p(t),d=b==U||b==Qt;if(W(t))return Y(t,g);if(b==P||b==L||d&&!f){if(a=y||d?{}:H(t),!g)return y?at(t,tt(a,t)):et(t,k(a,t))}else{if(!r[b])return f?t:{};a=xt(t,b,g)}}s||(s=new J);var $=s.get(t);if($)return $;s.set(t,a),vt(t)?t.forEach(function(c){a.add(l(c,e,n,c,t,s))}):Dt(t)&&t.forEach(function(c,i){a.set(i,l(c,e,n,i,t,s))});var G=D?y?ot:Q:y?j:F,S=A?void 0:G(t);return z(S||t,function(c,i){S&&(i=c,c=t[i]),Z(a,i,l(c,e,n,i,t,s))}),a}export{l as b};
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{F as Te,c as v,bM as Gt,aL as Ce,O as V,f as s,bO as qt,k as Q,P as ce,Q as De,E as St,s as F,ar as Se,br as Yt,bV as Xt,av as Ie,ay as Jt,l as ot,b as Et,ad as xt,j as Ee,aG as Fe,m as Qt,G as xe,d as Z,bW as Zt,au as wt,u as le,bB as en,bX as tn,bY as nn,a_ as an,n as K,A as on,C as rn,o as m,V as _,W as x,a8 as we,e as k,r as O,S as ne,a as C,w as j,h as X,L as Y,ax as ke,B as sn,aP as un,U as ln,ah as cn,X as ve,g as fn,_ as Me,q as rt,i as kt,p as Tt,aJ as dn,bQ as pn,bt as vn,t as hn,ag as bn}from"./index-84fad9a2.js";const gn=()=>Te&&/firefox/i.test(window.navigator.userAgent);function It(e){return e==null}class mn extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ia(e,t){throw new mn(`[${e}] ${t}`)}function Fa(e,t){}const Ve="update:modelValue",Ca="change",yn=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Sn=["class","style"],En=/^on[A-Z]/,xn=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=v(()=>((n==null?void 0:n.value)||[]).concat(Sn)),r=Ce();return r?v(()=>{var o;return Gt(Object.entries((o=r.proxy)==null?void 0:o.$attrs).filter(([i])=>!a.value.includes(i)&&!(t&&En.test(i))))}):v(()=>({}))},wn=({from:e,replacement:t,scope:n,version:a,ref:r,type:o="API"},i)=>{V(()=>s(i),f=>{},{immediate:!0})},Ft=e=>{const t=Ce();return v(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})},st={prefix:Math.floor(Math.random()*1e4),current:0},kn=Symbol("elIdInjection"),Tn=()=>Ce()?Q(kn,st):st,In=e=>{const t=Tn(),n=qt();return v(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ae=[];const it=e=>{const t=e;t.key===St.esc&&ae.forEach(n=>n(t))},Fn=e=>{ce(()=>{ae.length===0&&document.addEventListener("keydown",it),Te&&ae.push(e)}),De(()=>{ae=ae.filter(t=>t!==e),ae.length===0&&Te&&document.removeEventListener("keydown",it)})};function Cn(e){const t=F();function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:o,value:i}=e.value;if(r==null||o==null)return;const f=i.slice(0,Math.max(0,r)),d=i.slice(Math.max(0,o));t.value={selectionStart:r,selectionEnd:o,value:i,beforeTxt:f,afterTxt:d}}function a(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:o,afterTxt:i,selectionStart:f}=t.value;if(o==null||i==null||f==null)return;let d=r.length;if(r.endsWith(i))d=r.length-i.length;else if(r.startsWith(o))d=o.length;else{const h=o[f-1],g=r.indexOf(h,f-1);g!==-1&&(d=g+1)}e.value.setSelectionRange(d,d)}return[n,a]}function Mn(e,{afterFocus:t,afterBlur:n}={}){const a=Ce(),{emit:r}=a,o=Se(),i=F(!1),f=g=>{i.value||(i.value=!0,r("focus",g),t==null||t())},d=g=>{var b;g.relatedTarget&&((b=o.value)!=null&&b.contains(g.relatedTarget))||(i.value=!1,r("blur",g),n==null||n())},h=()=>{var g;(g=e.value)==null||g.focus()};return V(o,g=>{g&&g.setAttribute("tabindex","-1")}),Yt(o,"click",h),{wrapperRef:o,isFocused:i,handleFocus:f,handleBlur:d}}const Ue=Symbol("formContextKey"),Ct=Symbol("formItemContextKey"),Mt=(e,t={})=>{const n=F(void 0),a=t.prop?n:Ft("size"),r=t.global?n:Xt(),o=t.form?{size:void 0}:Q(Ue,void 0),i=t.formItem?{size:void 0}:Q(Ct,void 0);return v(()=>a.value||s(e)||(i==null?void 0:i.size)||(o==null?void 0:o.size)||r.value||"")},Ke=e=>{const t=Ft("disabled"),n=Q(Ue,void 0);return v(()=>t.value||s(e)||(n==null?void 0:n.disabled)||!1)},Rt=()=>{const e=Q(Ue,void 0),t=Q(Ct,void 0);return{form:e,formItem:t}},Rn=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=F(!1)),a||(a=F(!1));const r=F();let o;const i=v(()=>{var f;return!!(!e.label&&t&&t.inputIds&&((f=t.inputIds)==null?void 0:f.length)<=1)});return ce(()=>{o=V([Ie(e,"id"),n],([f,d])=>{const h=f??(d?void 0:In().value);h!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&h&&t.addInputId(h)),r.value=h)},{immediate:!0})}),Jt(()=>{o&&o(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:i,inputId:r}};let A;const _n=`
|
import{F as Te,c as v,bM as Gt,aL as Ce,O as V,f as s,bO as qt,k as Q,P as ce,Q as De,E as St,s as F,ar as Se,br as Yt,bV as Xt,av as Ie,ay as Jt,l as ot,b as Et,ad as xt,j as Ee,aG as Fe,m as Qt,G as xe,d as Z,bW as Zt,au as wt,u as le,bB as en,bX as tn,bY as nn,a_ as an,n as K,A as on,C as rn,o as m,V as _,W as x,a8 as we,e as k,r as O,S as ne,a as C,w as j,h as X,L as Y,ax as ke,B as sn,aP as un,U as ln,ah as cn,X as ve,g as fn,_ as Me,q as rt,i as kt,p as Tt,aJ as dn,bQ as pn,bt as vn,t as hn,ag as bn}from"./index-8d46fcb1.js";const gn=()=>Te&&/firefox/i.test(window.navigator.userAgent);function It(e){return e==null}class mn extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ia(e,t){throw new mn(`[${e}] ${t}`)}function Fa(e,t){}const Ve="update:modelValue",Ca="change",yn=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Sn=["class","style"],En=/^on[A-Z]/,xn=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=v(()=>((n==null?void 0:n.value)||[]).concat(Sn)),r=Ce();return r?v(()=>{var o;return Gt(Object.entries((o=r.proxy)==null?void 0:o.$attrs).filter(([i])=>!a.value.includes(i)&&!(t&&En.test(i))))}):v(()=>({}))},wn=({from:e,replacement:t,scope:n,version:a,ref:r,type:o="API"},i)=>{V(()=>s(i),f=>{},{immediate:!0})},Ft=e=>{const t=Ce();return v(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})},st={prefix:Math.floor(Math.random()*1e4),current:0},kn=Symbol("elIdInjection"),Tn=()=>Ce()?Q(kn,st):st,In=e=>{const t=Tn(),n=qt();return v(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ae=[];const it=e=>{const t=e;t.key===St.esc&&ae.forEach(n=>n(t))},Fn=e=>{ce(()=>{ae.length===0&&document.addEventListener("keydown",it),Te&&ae.push(e)}),De(()=>{ae=ae.filter(t=>t!==e),ae.length===0&&Te&&document.removeEventListener("keydown",it)})};function Cn(e){const t=F();function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:o,value:i}=e.value;if(r==null||o==null)return;const f=i.slice(0,Math.max(0,r)),d=i.slice(Math.max(0,o));t.value={selectionStart:r,selectionEnd:o,value:i,beforeTxt:f,afterTxt:d}}function a(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:o,afterTxt:i,selectionStart:f}=t.value;if(o==null||i==null||f==null)return;let d=r.length;if(r.endsWith(i))d=r.length-i.length;else if(r.startsWith(o))d=o.length;else{const h=o[f-1],g=r.indexOf(h,f-1);g!==-1&&(d=g+1)}e.value.setSelectionRange(d,d)}return[n,a]}function Mn(e,{afterFocus:t,afterBlur:n}={}){const a=Ce(),{emit:r}=a,o=Se(),i=F(!1),f=g=>{i.value||(i.value=!0,r("focus",g),t==null||t())},d=g=>{var b;g.relatedTarget&&((b=o.value)!=null&&b.contains(g.relatedTarget))||(i.value=!1,r("blur",g),n==null||n())},h=()=>{var g;(g=e.value)==null||g.focus()};return V(o,g=>{g&&g.setAttribute("tabindex","-1")}),Yt(o,"click",h),{wrapperRef:o,isFocused:i,handleFocus:f,handleBlur:d}}const Ue=Symbol("formContextKey"),Ct=Symbol("formItemContextKey"),Mt=(e,t={})=>{const n=F(void 0),a=t.prop?n:Ft("size"),r=t.global?n:Xt(),o=t.form?{size:void 0}:Q(Ue,void 0),i=t.formItem?{size:void 0}:Q(Ct,void 0);return v(()=>a.value||s(e)||(i==null?void 0:i.size)||(o==null?void 0:o.size)||r.value||"")},Ke=e=>{const t=Ft("disabled"),n=Q(Ue,void 0);return v(()=>t.value||s(e)||(n==null?void 0:n.disabled)||!1)},Rt=()=>{const e=Q(Ue,void 0),t=Q(Ct,void 0);return{form:e,formItem:t}},Rn=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=F(!1)),a||(a=F(!1));const r=F();let o;const i=v(()=>{var f;return!!(!e.label&&t&&t.inputIds&&((f=t.inputIds)==null?void 0:f.length)<=1)});return ce(()=>{o=V([Ie(e,"id"),n],([f,d])=>{const h=f??(d?void 0:In().value);h!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&h&&t.addInputId(h)),r.value=h)},{immediate:!0})}),Jt(()=>{o&&o(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:i,inputId:r}};let A;const _n=`
|
||||||
height:0 !important;
|
height:0 !important;
|
||||||
visibility:hidden !important;
|
visibility:hidden !important;
|
||||||
${gn()?"":"overflow:hidden !important;"}
|
${gn()?"":"overflow:hidden !important;"}
|
||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{F as S,bj as _,b as V,d as B,u as W,c as P,o as d,V as $,S as m,r as k,e as i,f as l,a as h,w as g,B as v,am as y,U as C,L as b,W as w,g as T,T as H,_ as I,i as M}from"./index-84fad9a2.js";import{c as F}from"./el-input-0a50cd00.js";let f;const D=s=>{var a;if(!S)return 0;if(f!==void 0)return f;const o=document.createElement("div");o.className=`${s}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const n=o.offsetWidth;o.style.overflow="scroll";const e=document.createElement("div");e.style.width="100%",o.appendChild(e);const c=e.offsetWidth;return(a=o.parentNode)==null||a.removeChild(o),f=n-c,f};function G(s,a){if(!S)return;if(!a){s.scrollTop=0;return}const o=[];let n=a.offsetParent;for(;n!==null&&s!==n&&s.contains(n);)o.push(n),n=n.offsetParent;const e=a.offsetTop+o.reduce((t,u)=>t+u.offsetTop,0),c=e+a.offsetHeight,r=s.scrollTop,p=r+s.clientHeight;e<r?s.scrollTop=e:c>p&&(s.scrollTop=c-s.clientHeight)}const J=s=>["",..._].includes(s),R=V({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:_,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),j={close:s=>s instanceof MouseEvent,click:s=>s instanceof MouseEvent},K=B({name:"ElTag"}),L=B({...K,props:R,emits:j,setup(s,{emit:a}){const o=s,n=F(),e=W("tag"),c=P(()=>{const{type:t,hit:u,effect:E,closable:z,round:N}=o;return[e.b(),e.is("closable",z),e.m(t),e.m(n.value),e.m(E),e.is("hit",u),e.is("round",N)]}),r=t=>{a("close",t)},p=t=>{a("click",t)};return(t,u)=>t.disableTransitions?(d(),$("span",{key:0,class:i(l(c)),style:T({backgroundColor:t.color}),onClick:p},[m("span",{class:i(l(e).e("content"))},[k(t.$slots,"default")],2),t.closable?(d(),h(l(b),{key:0,class:i(l(e).e("close")),onClick:C(r,["stop"])},{default:g(()=>[v(l(y))]),_:1},8,["class","onClick"])):w("v-if",!0)],6)):(d(),h(H,{key:1,name:`${l(e).namespace.value}-zoom-in-center`,appear:""},{default:g(()=>[m("span",{class:i(l(c)),style:T({backgroundColor:t.color}),onClick:p},[m("span",{class:i(l(e).e("content"))},[k(t.$slots,"default")],2),t.closable?(d(),h(l(b),{key:0,class:i(l(e).e("close")),onClick:C(r,["stop"])},{default:g(()=>[v(l(y))]),_:1},8,["class","onClick"])):w("v-if",!0)],6)]),_:3},8,["name"]))}});var U=I(L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const O=M(U);export{O as E,D as g,J as i,G as s,R as t};
|
import{F as S,bj as _,b as V,d as B,u as W,c as P,o as d,V as $,S as m,r as k,e as i,f as l,a as h,w as g,B as v,am as y,U as C,L as b,W as w,g as T,T as H,_ as I,i as M}from"./index-8d46fcb1.js";import{c as F}from"./el-input-a2307b6f.js";let f;const D=s=>{var a;if(!S)return 0;if(f!==void 0)return f;const o=document.createElement("div");o.className=`${s}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const n=o.offsetWidth;o.style.overflow="scroll";const e=document.createElement("div");e.style.width="100%",o.appendChild(e);const c=e.offsetWidth;return(a=o.parentNode)==null||a.removeChild(o),f=n-c,f};function G(s,a){if(!S)return;if(!a){s.scrollTop=0;return}const o=[];let n=a.offsetParent;for(;n!==null&&s!==n&&s.contains(n);)o.push(n),n=n.offsetParent;const e=a.offsetTop+o.reduce((t,u)=>t+u.offsetTop,0),c=e+a.offsetHeight,r=s.scrollTop,p=r+s.clientHeight;e<r?s.scrollTop=e:c>p&&(s.scrollTop=c-s.clientHeight)}const J=s=>["",..._].includes(s),R=V({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:_,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),j={close:s=>s instanceof MouseEvent,click:s=>s instanceof MouseEvent},K=B({name:"ElTag"}),L=B({...K,props:R,emits:j,setup(s,{emit:a}){const o=s,n=F(),e=W("tag"),c=P(()=>{const{type:t,hit:u,effect:E,closable:z,round:N}=o;return[e.b(),e.is("closable",z),e.m(t),e.m(n.value),e.m(E),e.is("hit",u),e.is("round",N)]}),r=t=>{a("close",t)},p=t=>{a("click",t)};return(t,u)=>t.disableTransitions?(d(),$("span",{key:0,class:i(l(c)),style:T({backgroundColor:t.color}),onClick:p},[m("span",{class:i(l(e).e("content"))},[k(t.$slots,"default")],2),t.closable?(d(),h(l(b),{key:0,class:i(l(e).e("close")),onClick:C(r,["stop"])},{default:g(()=>[v(l(y))]),_:1},8,["class","onClick"])):w("v-if",!0)],6)):(d(),h(H,{key:1,name:`${l(e).namespace.value}-zoom-in-center`,appear:""},{default:g(()=>[m("span",{class:i(l(c)),style:T({backgroundColor:t.color}),onClick:p},[m("span",{class:i(l(e).e("content"))},[k(t.$slots,"default")],2),t.closable?(d(),h(l(b),{key:0,class:i(l(e).e("close")),onClick:C(r,["stop"])},{default:g(()=>[v(l(y))]),_:1},8,["class","onClick"])):w("v-if",!0)],6)]),_:3},8,["name"]))}});var U=I(L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const O=M(U);export{O as E,D as g,J as i,G as s,R as t};
|
||||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{aq as A,$ as N}from"./index-84fad9a2.js";var o=(E=>(E[E.TEXT=1]="TEXT",E[E.CLASS=2]="CLASS",E[E.STYLE=4]="STYLE",E[E.PROPS=8]="PROPS",E[E.FULL_PROPS=16]="FULL_PROPS",E[E.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",E[E.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",E[E.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",E[E.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",E[E.NEED_PATCH=512]="NEED_PATCH",E[E.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",E[E.HOISTED=-1]="HOISTED",E[E.BAIL=-2]="BAIL",E))(o||{});const e=E=>{const _=A(E)?E:[E],S=[];return _.forEach(T=>{var r;A(T)?S.push(...e(T)):N(T)&&A(T.children)?S.push(...e(T.children)):(S.push(T),N(T)&&((r=T.component)!=null&&r.subTree)&&S.push(...e(T.component.subTree)))}),S};export{o as P,e as f};
|
import{aq as A,$ as N}from"./index-8d46fcb1.js";var o=(E=>(E[E.TEXT=1]="TEXT",E[E.CLASS=2]="CLASS",E[E.STYLE=4]="STYLE",E[E.PROPS=8]="PROPS",E[E.FULL_PROPS=16]="FULL_PROPS",E[E.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",E[E.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",E[E.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",E[E.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",E[E.NEED_PATCH=512]="NEED_PATCH",E[E.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",E[E.HOISTED=-1]="HOISTED",E[E.BAIL=-2]="BAIL",E))(o||{});const e=E=>{const _=A(E)?E:[E],S=[];return _.forEach(T=>{var r;A(T)?S.push(...e(T)):N(T)&&A(T.children)?S.push(...e(T.children)):(S.push(T),N(T)&&((r=T.component)!=null&&r.subTree)&&S.push(...e(T.component.subTree)))}),S};export{o as P,e as f};
|
||||||
Vendored
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
<meta name="keywords" content="{{keywords}}" />
|
<meta name="keywords" content="{{keywords}}" />
|
||||||
<meta name="generator" content="FileCodeBox2.1" />
|
<meta name="generator" content="FileCodeBox2.1" />
|
||||||
<title>{{title}}</title>
|
<title>{{title}}</title>
|
||||||
<script type="module" crossorigin src="/assets/index-84fad9a2.js"></script>
|
<script type="module" crossorigin src="/assets/index-8d46fcb1.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/index-76720517.css">
|
<link rel="stylesheet" href="/assets/index-76720517.css">
|
||||||
</head>
|
</head>
|
||||||
<body style="background: url('{{background}}') no-repeat center center fixed;background-size: cover;">
|
<body style="background: url('{{background}}') no-repeat center center fixed;background-size: cover;">
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ export default {
|
|||||||
uploadSize: 'File Size',
|
uploadSize: 'File Size',
|
||||||
expireStyle: 'Expiration Method',
|
expireStyle: 'Expiration Method',
|
||||||
uploadSizeNote: 'Maximum file size, unit: (Bytes), 1mb = 1 * 1024 * 1024',
|
uploadSizeNote: 'Maximum file size, unit: (Bytes), 1mb = 1 * 1024 * 1024',
|
||||||
|
showAdmin: {
|
||||||
|
open: 'Open',
|
||||||
|
close: 'Close',
|
||||||
|
note: 'Is the backend entrance displayed at the bottom of the page?',
|
||||||
|
},
|
||||||
openUpload: {
|
openUpload: {
|
||||||
title: 'Enable Upload',
|
title: 'Enable Upload',
|
||||||
open: 'Enable Guest Upload',
|
open: 'Enable Guest Upload',
|
||||||
|
|||||||
@@ -68,6 +68,11 @@ export default {
|
|||||||
close: 'Deshabilitar subida para visitantes',
|
close: 'Deshabilitar subida para visitantes',
|
||||||
note: 'Después de deshabilitar, es necesario iniciar sesión en el backend para poder subir archivos',
|
note: 'Después de deshabilitar, es necesario iniciar sesión en el backend para poder subir archivos',
|
||||||
},
|
},
|
||||||
|
showAdmin: {
|
||||||
|
open: 'abierto',
|
||||||
|
close: 'cierre',
|
||||||
|
note: 'si mostrar la entrada de fondo en la parte inferior de la página',
|
||||||
|
},
|
||||||
file_storage: {
|
file_storage: {
|
||||||
title: 'Motor de almacenamiento',
|
title: 'Motor de almacenamiento',
|
||||||
local: 'Almacenamiento local',
|
local: 'Almacenamiento local',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
export default {
|
export default {
|
||||||
send: {
|
send: {
|
||||||
disclaimers:'页面说明',
|
disclaimers:'系统说明',
|
||||||
prompt1: '将文字、文件拖、粘贴到此处,或 ',
|
prompt1: '将文字、文件拖、粘贴到此处,或 ',
|
||||||
prompt2: '天数<7或限制次数(24h后删除)',
|
prompt2: '天数<7或限制次数(24h后删除)',
|
||||||
prompt3: '请输入您要寄出的文本,支持MarkDown格式',
|
prompt3: '请输入您要寄出的文本,支持MarkDown格式',
|
||||||
@@ -68,6 +68,11 @@ export default {
|
|||||||
close: '关闭游客上传',
|
close: '关闭游客上传',
|
||||||
note: '关闭之后需要登录后台方可上传',
|
note: '关闭之后需要登录后台方可上传',
|
||||||
},
|
},
|
||||||
|
showAdmin:{
|
||||||
|
open: '开启',
|
||||||
|
close: '关闭',
|
||||||
|
note: '是否在页面底部显示后台入口',
|
||||||
|
},
|
||||||
file_storage: {
|
file_storage: {
|
||||||
title: '存储引擎',
|
title: '存储引擎',
|
||||||
local: '本地存储',
|
local: '本地存储',
|
||||||
|
|||||||
@@ -61,6 +61,13 @@ export default {
|
|||||||
admin_token: '管理密码',
|
admin_token: '管理密码',
|
||||||
uploadSize: '文件大小',
|
uploadSize: '文件大小',
|
||||||
expireStyle: '过期方式',
|
expireStyle: '过期方式',
|
||||||
|
showAdminAddr: '显示后台',
|
||||||
|
showAdmin:{
|
||||||
|
open: '开启',
|
||||||
|
close: '关闭',
|
||||||
|
note: '是否在页面底部显示后台入口',
|
||||||
|
},
|
||||||
|
robotsText: 'robots.txt',
|
||||||
uploadSizeNote: '最大文件大小,单位:(Bytes),1mb=1 * 1024 * 1024',
|
uploadSizeNote: '最大文件大小,单位:(Bytes),1mb=1 * 1024 * 1024',
|
||||||
openUpload: {
|
openUpload: {
|
||||||
title: '开启上传',
|
title: '开启上传',
|
||||||
|
|||||||
@@ -62,6 +62,11 @@ export default {
|
|||||||
uploadSize: '文件大小',
|
uploadSize: '文件大小',
|
||||||
expireStyle: '過期方式',
|
expireStyle: '過期方式',
|
||||||
uploadSizeNote: '最大文件大小,單位:(Bytes),1mb=1 * 1024 * 1024',
|
uploadSizeNote: '最大文件大小,單位:(Bytes),1mb=1 * 1024 * 1024',
|
||||||
|
showAdmin: {
|
||||||
|
open: '開啟',
|
||||||
|
close: '關閉',
|
||||||
|
note: '是否在頁面底部顯示後臺入口',
|
||||||
|
},
|
||||||
openUpload: {
|
openUpload: {
|
||||||
title: '開啟上傳',
|
title: '開啟上傳',
|
||||||
open: '開啟遊客上傳',
|
open: '開啟遊客上傳',
|
||||||
|
|||||||
@@ -23,6 +23,16 @@
|
|||||||
Opacity: <el-input type="number" v-model="config.opacity" />
|
Opacity: <el-input type="number" v-model="config.opacity" />
|
||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item size="large" :label="t('admin.settings.showAdminAddr')">
|
||||||
|
<el-select v-model="config.showAdminAddr" style="width: 80%">
|
||||||
|
<el-option :label="t('admin.settings.showAdmin.open')" :value="1" />
|
||||||
|
<el-option :label="t('admin.settings.showAdmin.close')" :value="0" />
|
||||||
|
</el-select>
|
||||||
|
<small style="margin-left: 0.4rem">{{ t('admin.settings.showAdmin.note') }}</small>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item size="large" label="robots.Text">
|
||||||
|
<el-input type="textarea" v-model="config.robotsText" placeholder="explain" />
|
||||||
|
</el-form-item>
|
||||||
<el-form-item size="large" :label="t('admin.settings.explain')">
|
<el-form-item size="large" :label="t('admin.settings.explain')">
|
||||||
<el-input type="textarea" v-model="config.page_explain" placeholder="explain" />
|
<el-input type="textarea" v-model="config.page_explain" placeholder="explain" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -135,6 +145,7 @@ const config = ref({
|
|||||||
file_storage: '',
|
file_storage: '',
|
||||||
expireStyle: [],
|
expireStyle: [],
|
||||||
admin_token: '',
|
admin_token: '',
|
||||||
|
robotsText:'',
|
||||||
keywords: '',
|
keywords: '',
|
||||||
notify_title: '',
|
notify_title: '',
|
||||||
notify_content: '',
|
notify_content: '',
|
||||||
@@ -145,6 +156,7 @@ const config = ref({
|
|||||||
opacity: 0.9,
|
opacity: 0.9,
|
||||||
s3_access_key_id: '',
|
s3_access_key_id: '',
|
||||||
background: '',
|
background: '',
|
||||||
|
showAdminAddr: 0,
|
||||||
page_explain: '',
|
page_explain: '',
|
||||||
s3_secret_access_key: '',
|
s3_secret_access_key: '',
|
||||||
aws_session_token: '',
|
aws_session_token: '',
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ const url = atob('aHR0cHM6Ly9naXRodWIuY29tL3Zhc3RzYS9GaWxlQ29kZUJveA==');
|
|||||||
{{ name }}
|
{{ name }}
|
||||||
</a>
|
</a>
|
||||||
<a @click="noDialog" style="text-decoration: none;color: #606266;margin-left: 1rem" href="javascript:void(0)">{{t('send.disclaimers')}}</a>
|
<a @click="noDialog" style="text-decoration: none;color: #606266;margin-left: 1rem" href="javascript:void(0)">{{t('send.disclaimers')}}</a>
|
||||||
|
<a v-if="config.show_admin_address" style="color: #606266;margin-left: 1rem;text-decoration: none" href="#/admin">Admin</a>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -73,6 +73,11 @@ async def index():
|
|||||||
, media_type='text/html', headers={'Cache-Control': 'no-cache'})
|
, media_type='text/html', headers={'Cache-Control': 'no-cache'})
|
||||||
|
|
||||||
|
|
||||||
|
@app.get('/robots.txt')
|
||||||
|
async def robots():
|
||||||
|
return HTMLResponse(content=settings.robotsText, media_type='text/plain')
|
||||||
|
|
||||||
|
|
||||||
@app.post('/')
|
@app.post('/')
|
||||||
async def get_config():
|
async def get_config():
|
||||||
return APIResponse(detail={
|
return APIResponse(detail={
|
||||||
@@ -82,6 +87,7 @@ async def get_config():
|
|||||||
'openUpload': settings.openUpload,
|
'openUpload': settings.openUpload,
|
||||||
'notify_title': settings.notify_title,
|
'notify_title': settings.notify_title,
|
||||||
'notify_content': settings.notify_content,
|
'notify_content': settings.notify_content,
|
||||||
|
'show_admin_address': settings.showAdminAddr,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user