web source editor: v3.23.040319

This commit is contained in:
github-actions[bot] committed 2023-04-03 11:32:08 +00:00
1 parent 8fe5f669c9
commit f70a54f2e1
2 files changed
+2 -2

No files matched your search

@@ -24,7 +24,7 @@ var Iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $k=Iv((Kt,qt)
*/let qm;const ma=e=>qm=e,Wm=Symbol();function kl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var as;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(as||(as={}));function cA(){const e=ep(!0),t=e.run(()=>V({}));let n=[],r=[];const o=po({install(s){ma(o),o._a=s,s.provide(Wm,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!uA?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Gm=()=>{};function gd(e,t,n,r=Gm){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Kl()&&ql(o),o}function ro(e,...t){e.slice().forEach(n=>{n(...t)})}function Il(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];kl(o)&&kl(r)&&e.hasOwnProperty(n)&&!Be(r)&&!jn(r)?e[n]=Il(o,r):e[n]=r}return e}const fA=Symbol();function dA(e){return!kl(e)||!e.hasOwnProperty(fA)}const{assign:cr}=Object;function pA(e){return!!(Be(e)&&e.effect)}function hA(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=Gr(n.state.value[e]);return cr(c,s,Object.keys(i||{}).reduce((f,p)=>(f[p]=po(T(()=>{ma(n);const m=n._s.get(e);return i[p].call(m,m)})),f),{}))}return l=Jm(e,u,t,n,r,!0),l}function Jm(e,t,n={},r,o,s){let i;const a=cr({actions:{}},n),l={deep:!0};let u,c,f=po([]),p=po([]),m;const v=r.state.value[e];!s&&!v&&(r.state.value[e]={}),V({});let d;function y(C){let A;u=c=!1,typeof C=="function"?(C(r.state.value[e]),A={type:as.patchFunction,storeId:e,events:m}):(Il(r.state.value[e],C),A={type:as.patchObject,payload:C,storeId:e,events:m});const P=d=Symbol();Ne().then(()=>{d===P&&(u=!0)}),c=!0,ro(f,A,r.state.value[e])}const g=s?function(){const{state:A}=n,P=A?A():{};this.$patch(I=>{cr(I,P)})}:Gm;function _(){i.stop(),f=[],p=[],r._s.delete(e)}function S(C,A){return function(){ma(r);const P=Array.from(arguments),I=[],H=[];function L(te){I.push(te)}function k(te){H.push(te)}ro(p,{args:P,name:C,store:w,after:L,onError:k});let j;try{j=A.apply(this&&this.$id===e?this:w,P)}catch(te){throw ro(H,te),te}return j instanceof Promise?j.then(te=>(ro(I,te),te)).catch(te=>(ro(H,te),Promise.reject(te))):(ro(I,j),j)}}const E={_p:r,$id:e,$onAction:gd.bind(null,p),$patch:y,$reset:g,$subscribe(C,A={}){const P=gd(f,C,A.detached,()=>I()),I=i.run(()=>de(()=>r.state.value[e],H=>{(A.flush==="sync"?c:u)&&C({storeId:e,type:as.direct,events:m},H)},cr({},l,A)));return P},$dispose:_},w=At(E);r._s.set(e,w);const x=r._e.run(()=>(i=ep(),i.run(()=>t())));for(const C in x){const A=x[C];if(Be(A)&&!pA(A)||jn(A))s||(v&&dA(A)&&(Be(A)?A.value=v[C]:Il(A,v[C])),r.state.value[e][C]=A);else if(typeof A=="function"){const P=S(C,A);x[C]=P,a.actions[C]=A}}return cr(w,x),cr(xe(w),x),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:C=>{y(A=>{cr(A,C)})}}),r._p.forEach(C=>{cr(w,i.run(()=>C({store:w,app:r._a,pinia:r,options:a})))}),v&&s&&n.hydrate&&n.hydrate(w.$state,v),u=!0,c=!0,w}function mA(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const u=at();return a=a||u&&Ee(Wm,null),a&&ma(a),a=qm,a._s.has(r)||(s?Jm(r,t,o,a):hA(r,o,a)),a._s.get(r)}return i.$id=r,i}function Vu(e){{e=xe(e);const t={};for(const n in e){const r=e[n];(Be(r)||jn(r))&&(t[n]=Vt(e,n))}return t}}const vA=cA(),Pr=/bookSource/.test(location.href),jo=mA("source",{state:()=>({bookSources:[],rssSources:[],errorPushSources:[],currentSource:vd,currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},isDebuging:!1}),getters:{sources:e=>Pr?e.bookSources:e.rssSources,currentSourceUrl:e=>Pr?e.currentSource.bookSourceUrl:e.currentSource.sourceUrl,searchKey:e=>Pr?e.currentSource.ruleSearch.checkKeyWord||"我的":null},actions:{startDebug(){this.currentTab="editDebug",this.isDebuging=!0},debugFinish(){this.isDebuging=!1},saveSources(e){Pr?this.bookSources=e:this.rssSources=e},deleteSources(e){let t=Pr?this.bookSources:this.rssSources;e.forEach(n=>{let r=t.indexOf(n);r>-1&&t.splice(r,1)})},saveCurrentSource(){let e=this.currentSource,t,n;Pr?(t=this.bookSources,n="bookSourceUrl"):(t=this.rssSources,n="sourceUrl");let r=t.findIndex(o=>o[n]===e[n]);e=JSON.parse(JSON.stringify(e)),r>-1?t.splice(r,1,e):t.push(e)},changeCurrentSource(e){const t=JSON.stringify(e);this.currentSource=JSON.parse(t)},async setPushReturnSources(e){Pr?this.errorPushSources=this.sources.filter(t=>e.every(n=>n.bookSourceUrl!==t.bookSourceUrl)):this.errorPushSources=this.sources.filter(t=>e.every(n=>n.sourceUrl!==t.sourceUrl))},changeTabName(e){this.currentTab=e,localStorage.setItem("tabName",e)},changeEditTabSource(e){const t=JSON.stringify(e);this.editTabSource=JSON.parse(t)},editHistory(e){let t;if(localStorage.getItem("history"))t=JSON.parse(localStorage.getItem("history")),t.new.Line truncated
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&dP[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ed=Symbol("internals");function Jo(e){return e&&String(e).trim().toLowerCase()}function vi(e){return e===!1||e==null?e:U.isArray(e)?e.map(vi):String(e)}function hP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function mP(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Ua(e,t,n,r,o){if(U.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!U.isString(t)){if(U.isString(r))return t.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(t)}}function vP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function gP(e,t){const n=U.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ba{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,u){const c=Jo(l);if(!c)throw new Error("header name must be a non-empty string");const f=U.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=vi(a))}const i=(a,l)=>U.forEach(a,(u,c)=>s(u,c,l));return U.isPlainObject(t)||t instanceof this.constructor?i(t,n):U.isString(t)&&(t=t.trim())&&!mP(t)?i(pP(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Jo(t),t){const r=U.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return hP(o);if(U.isFunction(n))return n.call(this,o,r);if(U.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Jo(t),t){const r=U.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ua(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Jo(i),i){const a=U.findKey(r,i);a&&(!n||Ua(r,r[a],a,n))&&(delete r[a],o=!0)}}return U.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Ua(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return U.forEach(this,(o,s)=>{const i=U.findKey(r,s);if(i){n[i]=vi(o),delete n[s];return}const a=t?vP(s):String(s).trim();a!==s&&delete n[s],n[a]=vi(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return U.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&U.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ed]=this[Ed]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Jo(i);r[a]||(gP(o,i),r[a]=!0)}return U.isArray(t)?t.forEach(s):s(t),this}}ba.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.freezeMethods(ba.prototype);U.freezeMethods(ba);const Kn=ba;function Ka(e,t){const n=this||Gu,r=t||n,o=Kn.from(r.headers);let s=r.data;return U.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function dv(e){return!!(e&&e.__CANCEL__)}function js(e,t,n){He.call(this,e??"canceled",He.ERR_CANCELED,t,n),this.name="CanceledError"}U.inherits(js,He,{__CANCEL__:!0});function yP(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const bP=En.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),U.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),U.isString(s)&&l.push("path="+s),U.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function _P(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wP(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function pv(e,t){return e&&!_P(t)?wP(e,t):t}const SP=En.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=U.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function EP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function CP(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let f=s,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const m=c&&u-c;return m?Math.round(p*1e3/m):void 0}}function Cd(e,t){let n=0;const r=CP(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),u=s<=i;n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-s)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const OP=typeof XMLHttpRequest<"u",TP=OP&&function(e){return new Promise(function(n,r){let o=e.data;const s=Kn.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}U.isFormData(o)&&(En.isStandardBrowserEnv||En.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+v))}const c=pv(e.baseURL,e.url);u.open(e.method.toUpperCase(),uv(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const m=Kn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),d={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:m,config:e,request:u};yP(function(g){n(g),l()},function(g){r(g),l()},d),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new He("Request aborted",He.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new He("Network Error",He.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const d=e.transitional||cv;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new He(v,d.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,e,u)),u=null},En.isStandardBrowserEnv){const m=(e.withCredentials||SP(c))&&e.xsrfCookieName&&bP.read(e.xsrfCookieName);m&&s.set(e.xsrfHeaderName,m)}o===void 0&&s.setContentType(null),"setRequestHeader"in u&&U.forEach(s.toJSON(),function(v,d){u.setRequestHeader(d,v)}),U.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withC Line truncated
确认开启web服务`,type:"error"}),e},Xn=RP.create({baseURL:"",timeout:5*NP});Xn.interceptors.response.use(e=>e,LP);const zs=/bookSource/i.test(location.href),{hostname:MP,port:FP}=new URL(""),BP=()=>zs?Xn.get("getBookSources"):Xn.get("getRssSources"),DP=e=>zs?Xn.post("saveBookSource",e):Xn.post("saveRssSource",e),jP=e=>zs?Xn.post("saveBookSources",e):Xn.post("saveRssSources",e),zP=e=>zs?Xn.post("deleteBookSources",e):Xn.post("deleteRssSources",e),HP=(e,t,n,r)=>{const o=`ws://${MP}:${Number(FP)+1}/${zs?"bookSource":"rssSource"}Debug`,s=new WebSocket(o);s.onopen=()=>{s.send(`{"tag":"${e}", "key":"${t}"}`)},s.onmessage=({data:i})=>n(i),s.onclose=()=>{bt({message:"调试已关闭!",type:"info"}),r()}},ls={getSources:BP,saveSources:jP,saveSource:DP,deleteSource:zP,debug:HP},VP={__name:"editDebug",setup(e){const t=jo(),n=V(""),r=V("");qi(()=>{t.isDebuging&&s()});const o=a=>{let l=document.querySelector("#debug-text");l.scrollTop=l.scrollHeight,n.value+=a+`
确认开启web服务`,type:"error"}),e},Xn=RP.create({baseURL:location.origin,timeout:5*NP});Xn.interceptors.response.use(e=>e,LP);const zs=/bookSource/i.test(location.href),{hostname:MP,port:FP}=new URL(location.href),BP=()=>zs?Xn.get("getBookSources"):Xn.get("getRssSources"),DP=e=>zs?Xn.post("saveBookSource",e):Xn.post("saveRssSource",e),jP=e=>zs?Xn.post("saveBookSources",e):Xn.post("saveRssSources",e),zP=e=>zs?Xn.post("deleteBookSources",e):Xn.post("deleteRssSources",e),HP=(e,t,n,r)=>{const o=`ws://${MP}:${Number(FP)+1}/${zs?"bookSource":"rssSource"}Debug`,s=new WebSocket(o);s.onopen=()=>{s.send(`{"tag":"${e}", "key":"${t}"}`)},s.onmessage=({data:i})=>n(i),s.onclose=()=>{bt({message:"调试已关闭!",type:"info"}),r()}},ls={getSources:BP,saveSources:jP,saveSource:DP,deleteSource:zP,debug:HP},VP={__name:"editDebug",setup(e){const t=jo(),n=V(""),r=V("");qi(()=>{t.isDebuging&&s()});const o=a=>{let l=document.querySelector("#debug-text");l.scrollTop=l.scrollHeight,n.value+=a+`
`},s=async()=>{n.value="",await ls.saveSource(t.currentSource),ls.debug(t.currentSourceUrl,r.value||t.searchKey,o,t.debugFinish)},i=T(()=>/bookSource/.test(window.location.href));return(a,l)=>{const u=Bo;return $(),W(Re,null,[h(i)?($(),se(u,{key:0,id:"debug-key",modelValue:h(r),"onUpdate:modelValue":l[0]||(l[0]=c=>Be(r)?r.value=c:null),placeholder:"搜索书名、作者","prefix-icon":h(Nh),style:{"padding-bottom":"4px"},onKeydown:_t(s,["enter"])},null,8,["modelValue","prefix-icon","onKeydown"])):ue("",!0),Q(u,{id:"debug-text",modelValue:h(n),"onUpdate:modelValue":l[1]||(l[1]=c=>Be(n)?n.value=c:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},UP={__name:"editTab",setup(e){const t=jo(),n=V(""),r=async o=>{try{t.changeEditTabSource(JSON.parse(o))}catch{bt({message:"粘贴的源格式错误",type:"error"})}};return qi(async()=>{let o=t.editTabSource;Object.keys(o).length>0?n.value=JSON.stringify(o,null,4):n.value=""}),(o,s)=>{const i=Bo;return $(),se(i,{modelValue:h(n),"onUpdate:modelValue":s[0]||(s[0]=a=>Be(n)?n.value=a:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:r,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},KP={__name:"editOut",setup(e){const t=jo(),{currentTab:n}=Vu(t),r=V([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(o,s)=>{const i=UP,a=VP,l=bA,u=iA,c=zm,f=jm;return $(),se(f,{modelValue:h(n),"onUpdate:modelValue":s[0]||(s[0]=p=>Be(n)?n.value=p:null)},{default:ee(()=>[($(!0),W(Re,null,cn(h(r),(p,m)=>($(),se(c,{key:p[0],name:p[0],label:p[1]},{default:ee(()=>[m==0?($(),se(i,{key:0})):ue("",!0),m==1?($(),se(a,{key:1})):ue("",!0),m==2?($(),se(l,{key:2})):ue("",!0),m==3?($(),se(u,{key:3})):ue("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}};var Wa=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ga(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function vv(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function gv(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function qP(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(o=!1);return o}var Ps={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Wa?173:189,"=":Wa?61:187,";":Wa?59:186,"'":222,"[":219,"]":221,"\\":220},Pn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Fl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},wt={16:!1,18:!1,17:!1,91:!1},ut={};for(var si=1;si<20;si++)Ps["f".concat(si)]=111+si;var Ze=[],$d=!1,yv="all",bv=[],_a=function(t){return Ps[t.toLowerCase()]||Pn[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)},WP=function(t){return Object.keys(Ps).find(function(n){return Ps[n]===t})},GP=function(t){return Object.keys(Pn).find(function(n){return Pn[n]===t})};function _v(e){yv=e||"all"}function ks(){return yv||"all"}function JP(){return Ze.slice(0)}function YP(){return Ze.map(function(e){return WP(e)||GP(e)||String.fromCharCode(e)})}function XP(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function QP(e){return typeof e=="string"&&(e=_a(e)),Ze.indexOf(e)!==-1}function ZP(e,t){var n,r;e||(e=ks());for(var o in ut)if(Object.prototype.hasOwnProperty.call(ut,o))for(n=ut[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;ks()===e&&_v(t||"all")}function e6(e){var t=e.keyCode||e.which||e.charCode,n=Ze.indexOf(t);if(n>=0&&Ze.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ze.splice(0,Ze.length),(t===93||t===224)&&(t=91),t in wt){wt[t]=!1;for(var r in Pn)Pn[r]===t&&(Ht[r]=!1)}}function t6(e){if(typeof e>"u")Object.keys(ut).forEach(function(i){return delete ut[i]});else if(Array.isArray(e))e.forEach(function(i){i.key&&Ja(i)});else if(typeof e=="object")e.key&&Ja(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],s=n[1];typeof o=="function"&&(s=o,o=""),Ja({key:e,scope:o,method:s,splitKey:"+"})}}var Ja=function(t){var n=t.key,r=t.scope,o=t.method,s=t.splitKey,i=s===void 0?"+":s,a=gv(n);a.forEach(function(l){var u=l.split(i),c=u.length,f=u[c-1],pLine truncated
推送失败的源将用红色字体标注!`,t.setPushReturnSources(x)),bt({message:`批量推送源到「阅读3.0APP」
共计: ${E.length} 条
+1 -1
View File
@@ -1 +1 @@
<!doctype html><html lang="zh" class=""><head><meta charset="UTF-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>legado_web_vue</title><script type="module" crossorigin src="./assets/index-b1381eda.js"></script><link rel="stylesheet" href="./assets/index-a0a6b9ea.css"></head><body><div id="app"></div></body></html>
<!doctype html><html lang="zh" class=""><head><meta charset="UTF-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>legado_web_vue</title><script type="module" crossorigin src="./assets/index-839cf0f5.js"></script><link rel="stylesheet" href="./assets/index-a0a6b9ea.css"></head><body><div id="app"></div></body></html>