web source editor: v3.23.040319
This commit is contained in:
1 parent
c12a588f79
commit
8fe5f669c9
2 files changed
+8
-8
No files matched your search
+7
-7
@@ -1,4 +1,4 @@
|
||||
var Iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Tk=Iv((Kt,qt)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function zl(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function Xe(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Te(r)?Mv(r):Xe(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(Te(e))return e;if(Me(e))return e}}const Rv=/;(?![^(]*\))/g,Nv=/:([^]+)/,Lv=/\/\*.*?\*\//gs;function Mv(e){const t={};return e.replace(Lv,"").split(Rv).forEach(n=>{if(n){const r=n.split(Nv);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function q(e){let t="";if(Te(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const r=q(e[n]);r&&(t+=r+" ")}else if(Me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Fv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bv=zl(Fv);function Gd(e){return!!e||e===""}function Dv(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Bi(e[r],t[r]);return n}function Bi(e,t){if(e===t)return!0;let n=Zu(e),r=Zu(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=fs(e),r=fs(t),n||r)return e===t;if(n=ve(e),r=ve(t),n||r)return n&&r?Dv(e,t):!1;if(n=Me(e),r=Me(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!Bi(e[i],t[i]))return!1}}return String(e)===String(t)}function Jd(e,t){return e.findIndex(n=>Bi(n,t))}const We=e=>Te(e)?e:e==null?"":ve(e)||Me(e)&&(e.toString===Xd||!ye(e.toString))?JSON.stringify(e,Yd,2):String(e),Yd=(e,t)=>t&&t.__v_isRef?Yd(e,t.value):uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:ji(t)?{[`Set(${t.size})`]:[...t.values()]}:Me(t)&&!ve(t)&&!Qd(t)?String(t):t,tt={},lo=[],pt=()=>{},jv=()=>!1,zv=/^on[^a-z]/,Di=e=>zv.test(e),Hl=e=>e.startsWith("onUpdate:"),yt=Object.assign,Vl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Hv=Object.prototype.hasOwnProperty,Fe=(e,t)=>Hv.call(e,t),ve=Array.isArray,uo=e=>Rs(e)==="[object Map]",ji=e=>Rs(e)==="[object Set]",Zu=e=>Rs(e)==="[object Date]",ye=e=>typeof e=="function",Te=e=>typeof e=="string",fs=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",bi=e=>Me(e)&&ye(e.then)&&ye(e.catch),Xd=Object.prototype.toString,Rs=e=>Xd.call(e),ii=e=>Rs(e).slice(8,-1),Qd=e=>Rs(e)==="[object Object]",Ul=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ai=zl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Vv=/-(\w)/g,fn=zi(e=>e.replace(Vv,(t,n)=>n?n.toUpperCase():"")),Uv=/\B([A-Z])/g,Wr=zi(e=>e.replace(Uv,"-$1").toLowerCase()),Ns=zi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ea=zi(e=>e?`on${Ns(e)}`:""),ds=(e,t)=>!Object.is(e,t),li=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},_i=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},tl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kv=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let ec;const qv=()=>ec||(ec=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let jt;class Zd{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=jt,!t&&jt&&(this.index=(jt.scopes||(jt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=jt;try{return jt=this,t()}finally{jt=n}}}on(){jt=this}off(){jt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function ep(e){return new Zd(e)}function Wv(e,t=jt){t&&t.active&&t.effects.push(e)}function Kl(){return jt}function ql(e){jt&&jt.cleanups.push(e)}const Wl=e=>{const t=new Set(e);return t.w=0,t.n=0,t},tp=e=>(e.w&yr)>0,np=e=>(e.n&yr)>0,Gv=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=yr},Jv=e=>{cLine truncated
|
||||
var Iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $k=Iv((Kt,qt)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function zl(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function Xe(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Te(r)?Mv(r):Xe(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(Te(e))return e;if(Me(e))return e}}const Rv=/;(?![^(]*\))/g,Nv=/:([^]+)/,Lv=/\/\*.*?\*\//gs;function Mv(e){const t={};return e.replace(Lv,"").split(Rv).forEach(n=>{if(n){const r=n.split(Nv);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function q(e){let t="";if(Te(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const r=q(e[n]);r&&(t+=r+" ")}else if(Me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Fv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bv=zl(Fv);function Gd(e){return!!e||e===""}function Dv(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Bi(e[r],t[r]);return n}function Bi(e,t){if(e===t)return!0;let n=Zu(e),r=Zu(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=fs(e),r=fs(t),n||r)return e===t;if(n=ve(e),r=ve(t),n||r)return n&&r?Dv(e,t):!1;if(n=Me(e),r=Me(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!Bi(e[i],t[i]))return!1}}return String(e)===String(t)}function Jd(e,t){return e.findIndex(n=>Bi(n,t))}const We=e=>Te(e)?e:e==null?"":ve(e)||Me(e)&&(e.toString===Xd||!ye(e.toString))?JSON.stringify(e,Yd,2):String(e),Yd=(e,t)=>t&&t.__v_isRef?Yd(e,t.value):uo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:ji(t)?{[`Set(${t.size})`]:[...t.values()]}:Me(t)&&!ve(t)&&!Qd(t)?String(t):t,tt={},lo=[],pt=()=>{},jv=()=>!1,zv=/^on[^a-z]/,Di=e=>zv.test(e),Hl=e=>e.startsWith("onUpdate:"),yt=Object.assign,Vl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Hv=Object.prototype.hasOwnProperty,Fe=(e,t)=>Hv.call(e,t),ve=Array.isArray,uo=e=>Rs(e)==="[object Map]",ji=e=>Rs(e)==="[object Set]",Zu=e=>Rs(e)==="[object Date]",ye=e=>typeof e=="function",Te=e=>typeof e=="string",fs=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",bi=e=>Me(e)&&ye(e.then)&&ye(e.catch),Xd=Object.prototype.toString,Rs=e=>Xd.call(e),ii=e=>Rs(e).slice(8,-1),Qd=e=>Rs(e)==="[object Object]",Ul=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ai=zl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Vv=/-(\w)/g,fn=zi(e=>e.replace(Vv,(t,n)=>n?n.toUpperCase():"")),Uv=/\B([A-Z])/g,Wr=zi(e=>e.replace(Uv,"-$1").toLowerCase()),Ns=zi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ea=zi(e=>e?`on${Ns(e)}`:""),ds=(e,t)=>!Object.is(e,t),li=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},_i=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},tl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kv=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let ec;const qv=()=>ec||(ec=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let jt;class Zd{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=jt,!t&&jt&&(this.index=(jt.scopes||(jt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=jt;try{return jt=this,t()}finally{jt=n}}}on(){jt=this}off(){jt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function ep(e){return new Zd(e)}function Wv(e,t=jt){t&&t.active&&t.effects.push(e)}function Kl(){return jt}function ql(e){jt&&jt.cleanups.push(e)}const Wl=e=>{const t=new Set(e);return t.w=0,t.n=0,t},tp=e=>(e.w&yr)>0,np=e=>(e.n&yr)>0,Gv=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=yr},Jv=e=>{cLine truncated
|
||||
(?:
|
||||
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||||
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||||
@@ -24,20 +24,20 @@ var Iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Tk=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),MP=()=>zs?Xn.get("getBookSources"):Xn.get("getRssSources"),FP=e=>zs?Xn.post("saveBookSource",e):Xn.post("saveRssSource",e),BP=e=>zs?Xn.post("saveBookSources",e):Xn.post("saveRssSources",e),DP=e=>zs?Xn.post("deleteBookSources",e):Xn.post("deleteRssSources",e),jP=(e,t,n,r)=>{const{hostname:o,port:s}=new URL(""),i=`ws://${o}:${Number(s)+1}/${zs?"bookSource":"rssSource"}Debug`,a=new WebSocket(i);a.onopen=()=>{a.send(`{"tag":"${e}", "key":"${t}"}`)},a.onmessage=({data:l})=>n(l),a.onclose=()=>{bt({message:"调试已关闭!",type:"info"}),r()}},ls={getSources:MP,saveSources:BP,saveSource:FP,deleteSource:DP,debug:jP},zP={__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)}}},HP={__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"])}}},VP={__name:"editOut",setup(e){const t=jo(),{currentTab:n}=Vu(t),r=V([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(o,s)=>{const i=HP,a=zP,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 UP(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)},KP=function(t){return Object.keys(Ps).find(function(n){return Ps[n]===t})},qP=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 WP(){return Ze.slice(0)}function GP(){return Ze.map(function(e){return KP(e)||qP(e)||String.fromCharCode(e)})}function JP(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 YP(e){return typeof e=="string"&&(e=_a(e)),Ze.indexOf(e)!==-1}function XP(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 QP(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 ZP(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
|
||||
确认开启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+`
|
||||
`},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} 条
|
||||
成功: ${x.length} 条
|
||||
失败: ${E.length-x.length} 条${C}`,type:"success"})}}else bt({message:`批量推送源失败!
|
||||
ErrorMsg: ${w.errorMsg}`,type:"error"})})},o=()=>{t.changeTabName("editTab"),t.changeEditTabSource(t.currentSource)},s=()=>{t.changeCurrentSource(t.editTabSource)},i=()=>{t.editHistoryUndo()},a=()=>{t.clearEdit(),bt({message:"已清除",type:"success"})},l=()=>{t.clearEdit(),t.clearAllHistory(),bt({message:"已清除所有历史记录",type:"success"})},u=()=>{let E=/bookSource/.test(location.href),w=t.currentSource;aA(w)?ls.saveSource(w).then(({data:x})=>{x.isSuccess?(bt({message:`源《${E?w.bookSourceName:w.sourceName}》已成功保存到「阅读3.0APP」`,type:"success"}),t.saveCurrentSource()):bt({message:`源《${E?w.bookSourceName:w.sourceName}》保存失败!
|
||||
ErrorMsg: ${x.errorMsg}`,type:"error"})}):bt({message:"请检查<必填>项是否全部填写",type:"error"})},c=()=>{t.startDebug()},f=V(Array.of({name:"⇈推送源",hotKeys:[],action:r},{name:"⇊拉取源",hotKeys:[],action:n},{name:"⋙生成源",hotKeys:[],action:o},{name:"⋘编辑源",hotKeys:[],action:s},{name:"✗清空表单",hotKeys:[],action:a},{name:"↶撤销操作",hotKeys:[],action:i},{name:"↷重做操作",hotKeys:[],action:l},{name:"⇏调试源",hotKeys:[],action:c},{name:"✓保存源",hotKeys:[],action:u})),p=V(!0),m=V(!1),v=V(-1),d=()=>{m.value=!1};de(p,E=>{if(!E)return Ht.unbind("*");Ht.unbind(),Ht("*",w=>{w.preventDefault(),m.value&&v.value>-1&&(f.value[v.value].hotKeys=Ht.getPressedKeyString())})});const y=E=>{m.value=!0,bt({message:"按ESC键或者点击空白处结束录入",type:"info"}),f.value[E].hotKeys=[],v.value=E},g=()=>{p.value=!1;const E=[];f.value.forEach(({hotKeys:w,action:x})=>{Ht(w.join("+"),C=>{C.preventDefault(),x.call(null)}),E.push(w)}),_(E)},_=E=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(E))},S=()=>{try{const E=JSON.parse(localStorage.getItem("legado_web_hotkeys"));if(!Array.isArray(E)||E.length==0)return;f.value.forEach((w,x)=>w.hotKeys=E[x]),p.value=!1,g()}catch{bt({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}};return Qe(()=>{S()}),(E,w)=>{const x=Tm,C=Hm,A=w8;return $(),W(Re,null,[Z("div",r6,[($(!0),W(Re,null,cn(h(f),P=>($(),se(x,{size:"large",key:P.name,onClick:P.action},{default:ee(()=>[Ye(We(P.name),1)]),_:2},1032,["onClick"]))),128)),Q(x,{size:"large",onClick:w[0]||(w[0]=()=>p.value=!0)},{default:ee(()=>[Ye("快捷键")]),_:1})]),Q(A,{modelValue:h(p),"onUpdate:modelValue":w[1]||(w[1]=P=>Be(p)?p.value=P:null),"show-close":!1,"before-close":d},{header:ee(({titleClass:P,titleId:I})=>[Z("div",o6,[Z("div",{id:I,class:q(P)},[Ye(" 快捷键设置 "),h(m)?($(),W("span",i6,[Q(C,null,{default:ee(()=>[Ye(" / 录入中 ")]),_:1})])):ue("",!0)],10,s6),Q(x,{disabled:h(m),onClick:g,icon:h(US)},{default:ee(()=>[Ye("保存")]),_:1},8,["disabled","icon"])])]),default:ee(()=>[Z("div",a6,[($(!0),W(Re,null,cn(h(f),(P,I)=>($(),W("div",{key:P.name,class:"hotkeys-item flex-space-between"},[Z("span",l6,[Q(C,null,{default:ee(()=>[Ye(We(P.name),1)]),_:2},1024)]),Z("div",u6,[($(!0),W(Re,null,cn(P.hotKeys,(H,L)=>($(),W("div",{key:H},[Z("kbd",null,We(H),1),L+1<P.hotKeys.length?($(),W("span",c6,[Q(C,null,{default:ee(()=>[Ye("+")]),_:1})])):ue("",!0)]))),128)),P.hotKeys.length==0?($(),W("span",f6,"未设置")):ue("",!0)]),Q(x,{disabled:h(m),text:"",icon:h(kE),onClick:H=>y(I)},{default:ee(()=>[Ye("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},p6=ko(d6,[["__scopeId","data-v-3bc431c0"]]),h6={__name:"sourceTabForm",props:["config"],setup(e){const t=e,n=jo(),r=Object.values(t.config),{currentSource:o}=Vu(n);return(s,i)=>{const a=Bo,l=d$,u=A8,c=t$,f=e$,p=ST,m=wT,v=zm,d=jm;return $(),se(d,{id:"source-edit"},{default:ee(()=>[($(!0),W(Re,null,cn(h(r),({name:y,children:g})=>($(),se(v,{label:y,key:y},{default:ee(()=>[Q(m,{"label-position":"right","label-width":"5em"},{default:ee(()=>[($(!0),W(Re,null,cn(g,({type:_,title:S,namespace:E,id:w,array:x,hint:C,required:A})=>($(),se(p,{label:S,key:S,required:A},{default:ee(()=>[_=="String"&&typeof E>"u"?($(),se(a,{key:0,type:"textarea",modelValue:h(o)[w],"onUpdate:modelValue":P=>h(o)[w]=P,placeholder:C,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):ue("",!0),_=="String"&&typeof E<"u"?($(),se(a,{key:1,type:"textarea",modelValue:h(o)[E][w],"onUpdate:modelValue":P=>h(o)[E][w]=P,placeholder:C,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):ue("",!0),_=="Boolean"?($(),se(l,{key:2,modelValue:h(o)[w],"onUpdate:modelValue":P=>h(o)[w]=P},null,8,["modelValue","onUpdate:modelValue"])):ue("",!0),_=="Number"?($(),se(u,{key:3,modelValue:h(o)[w],"onUpdate:modelValue":P=>h(o)[w]=P,min:0},null,8,["modelValue","onUpdate:modelValue"])):ue("",!0),_=="Array"?($(),se(f,{key:4,modelValue:h(o)[w],"onUpdate:modelValue":P=>h(o)[w]=P},{default:ee(()=>[($(!0),W(Re,null,cn(x,(P,I)=>($(),se(c,{value:I,key:P,label:P},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):ue("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},m6=ko(h6,[["__scopeId","data-v-3916035a"]]),v6={base:{name:"基础",children:[{title:"源类型",id:"bookSourceType",type:"Array",array:["文本","音频","图片","文件"],required:!0},{title:"源域名",id:"bookSourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"源名称",id:"bookSourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"bookSourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:"bookSourceComment",type:"String",hint:"描述源作者和状态"},{title:"书源变量",id:"variableComment",
Line truncated
|
||||
ErrorMsg: ${x.errorMsg}`,type:"error"})}):bt({message:"请检查<必填>项是否全部填写",type:"error"})},c=()=>{t.startDebug()},f=V(Array.of({name:"⇈推送源",hotKeys:[],action:r},{name:"⇊拉取源",hotKeys:[],action:n},{name:"⋙生成源",hotKeys:[],action:o},{name:"⋘编辑源",hotKeys:[],action:s},{name:"✗清空表单",hotKeys:[],action:a},{name:"↶撤销操作",hotKeys:[],action:i},{name:"↷重做操作",hotKeys:[],action:l},{name:"⇏调试源",hotKeys:[],action:c},{name:"✓保存源",hotKeys:[],action:u})),p=V(!0),m=V(!1),v=V(-1),d=()=>{m.value=!1};de(p,E=>{if(!E)return Ht.unbind("*");Ht.unbind(),Ht("*",w=>{w.preventDefault(),m.value&&v.value>-1&&(f.value[v.value].hotKeys=Ht.getPressedKeyString())})});const y=E=>{m.value=!0,bt({message:"按ESC键或者点击空白处结束录入",type:"info"}),f.value[E].hotKeys=[],v.value=E},g=()=>{p.value=!1;const E=[];f.value.forEach(({hotKeys:w,action:x})=>{Ht(w.join("+"),C=>{C.preventDefault(),x.call(null)}),E.push(w)}),_(E)},_=E=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(E))},S=()=>{try{const E=JSON.parse(localStorage.getItem("legado_web_hotkeys"));if(!Array.isArray(E)||E.length==0)return;f.value.forEach((w,x)=>w.hotKeys=E[x]),p.value=!1,g()}catch{bt({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}};return Qe(()=>{S()}),(E,w)=>{const x=Tm,C=Hm,A=w8;return $(),W(Re,null,[Z("div",s6,[($(!0),W(Re,null,cn(h(f),P=>($(),se(x,{size:"large",key:P.name,onClick:P.action},{default:ee(()=>[Ye(We(P.name),1)]),_:2},1032,["onClick"]))),128)),Q(x,{size:"large",onClick:w[0]||(w[0]=()=>p.value=!0)},{default:ee(()=>[Ye("快捷键")]),_:1})]),Q(A,{modelValue:h(p),"onUpdate:modelValue":w[1]||(w[1]=P=>Be(p)?p.value=P:null),"show-close":!1,"before-close":d},{header:ee(({titleClass:P,titleId:I})=>[Z("div",i6,[Z("div",{id:I,class:q(P)},[Ye(" 快捷键设置 "),h(m)?($(),W("span",l6,[Q(C,null,{default:ee(()=>[Ye(" / 录入中 ")]),_:1})])):ue("",!0)],10,a6),Q(x,{disabled:h(m),onClick:g,icon:h(US)},{default:ee(()=>[Ye("保存")]),_:1},8,["disabled","icon"])])]),default:ee(()=>[Z("div",u6,[($(!0),W(Re,null,cn(h(f),(P,I)=>($(),W("div",{key:P.name,class:"hotkeys-item flex-space-between"},[Z("span",c6,[Q(C,null,{default:ee(()=>[Ye(We(P.name),1)]),_:2},1024)]),Z("div",f6,[($(!0),W(Re,null,cn(P.hotKeys,(H,L)=>($(),W("div",{key:H},[Z("kbd",null,We(H),1),L+1<P.hotKeys.length?($(),W("span",d6,[Q(C,null,{default:ee(()=>[Ye("+")]),_:1})])):ue("",!0)]))),128)),P.hotKeys.length==0?($(),W("span",p6,"未设置")):ue("",!0)]),Q(x,{disabled:h(m),text:"",icon:h(kE),onClick:H=>y(I)},{default:ee(()=>[Ye("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},m6=ko(h6,[["__scopeId","data-v-3bc431c0"]]),v6={__name:"sourceTabForm",props:["config"],setup(e){const t=e,n=jo(),r=Object.values(t.config),{currentSource:o}=Vu(n);return(s,i)=>{const a=Bo,l=d$,u=A8,c=t$,f=e$,p=ST,m=wT,v=zm,d=jm;return $(),se(d,{id:"source-edit"},{default:ee(()=>[($(!0),W(Re,null,cn(h(r),({name:y,children:g})=>($(),se(v,{label:y,key:y},{default:ee(()=>[Q(m,{"label-position":"right","label-width":"5em"},{default:ee(()=>[($(!0),W(Re,null,cn(g,({type:_,title:S,namespace:E,id:w,array:x,hint:C,required:A})=>($(),se(p,{label:S,key:S,required:A},{default:ee(()=>[_=="String"&&typeof E>"u"?($(),se(a,{key:0,type:"textarea",modelValue:h(o)[w],"onUpdate:modelValue":P=>h(o)[w]=P,placeholder:C,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):ue("",!0),_=="String"&&typeof E<"u"?($(),se(a,{key:1,type:"textarea",modelValue:h(o)[E][w],"onUpdate:modelValue":P=>h(o)[E][w]=P,placeholder:C,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):ue("",!0),_=="Boolean"?($(),se(l,{key:2,modelValue:h(o)[w],"onUpdate:modelValue":P=>h(o)[w]=P},null,8,["modelValue","onUpdate:modelValue"])):ue("",!0),_=="Number"?($(),se(u,{key:3,modelValue:h(o)[w],"onUpdate:modelValue":P=>h(o)[w]=P,min:0},null,8,["modelValue","onUpdate:modelValue"])):ue("",!0),_=="Array"?($(),se(f,{key:4,modelValue:h(o)[w],"onUpdate:modelValue":P=>h(o)[w]=P},{default:ee(()=>[($(!0),W(Re,null,cn(x,(P,I)=>($(),se(c,{value:I,key:P,label:P},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):ue("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},g6=ko(v6,[["__scopeId","data-v-3916035a"]]),y6={base:{name:"基础",children:[{title:"源类型",id:"bookSourceType",type:"Array",array:["文本","音频","图片","文件"],required:!0},{title:"源域名",id:"bookSourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"源名称",id:"bookSourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"bookSourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:"bookSourceComment",type:"String",hint:"描述源作者和状态"},{title:"书源变量",id:"variableComment",
Line truncated
|
||||
每行一条发现分类(网址域名可省略),例:
|
||||
名称1::网址(Url)1
|
||||
名称2::网址(Url)2
|
||||
...`},{title:"列表规则",namespace:"ruleExplore",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List<Element>)"},{title:"书名规则",namespace:"ruleExplore",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleExplore",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleExplore",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleExplore",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleExplore",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleExplore",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleExplore",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",namespace:"ruleExplore",id:"bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},detail:{name:"详情",children:[{title:"预处理",namespace:"ruleBookInfo",id:"init",type:"String",hint:"用于加速详情信息检索,只支持AllInOne规则"},{title:"书名规则",namespace:"ruleBookInfo",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleBookInfo",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleBookInfo",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleBookInfo",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleBookInfo",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleBookInfo",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleBookInfo",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"目录地址",namespace:"ruleBookInfo",id:"tocUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"},{title:"下载URL",namespace:"ruleBookInfo",id:"downloadUrls",type:"String",hint:"文件类书源下载地址 (规则结果为String类型的url, 多个链接返回数组)"},{title:"修改书籍",namespace:"ruleBookInfo",id:"canReName",type:"String",hint:"允许修改书名作者(规则结果为String类型, 默认不允许)"}]},directory:{name:"目录",children:[{title:"预处理",namespace:"ruleToc",id:"preUpdateJs",type:"String",hint:"更新目录前调用JS 动态更新目录链接"},{title:"列表规则",namespace:"ruleToc",id:"chapterList",type:"String",hint:"选择目录列表的章节节点 (规则结果为List<Element>)"},{title:"章节名称",namespace:"ruleToc",id:"chapterName",type:"String",hint:"选择章节名称 (规则结果为String)"},{title:"章节地址",namespace:"ruleToc",id:"chapterUrl",type:"String",hint:"选择章节链接 (规则结果为String类型的Url)"},{title:"卷名标识",namespace:"ruleToc",id:"isVolume",type:"String",hint:"章节名称是否是卷名 (规则结果为Bool)"},{title:"收费标识",namespace:"ruleToc",id:"isVip",type:"String",hint:"章节是否为VIP章节 (规则结果为Bool)"},{title:"购买标识",namespace:"ruleToc",id:"isPay",type:"String",hint:"章节是否为已购买 (规则结果为Bool)"},{title:"章节信息",namespace:"ruleToc",id:"updateTime",type:"String",hint:"选择章节信息 (规则结果为String)"},{title:"翻页规则",namespace:"ruleToc",id:"nextTocUrl",type:"String",hint:"选择目录下一页链接 (规则结果为List<String>或String)"}]},content:{name:"正文",children:[{title:"脚本注入",namespace:"ruleContent",id:"webJs",type:"String",hint:"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"},{title:"正文规则",namespace:"ruleContent",id:"content",type:"String",hint:"选择正文内容 (规则结果为String)"},{title:"翻页规则",namespace:"ruleContent",id:"nextContentUrl",type:"String",hint:"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"},{title:"资源正则",namespace:"ruleContent",id:"sourceRegex",type:"String",hint:"匹配资源的url特征,用于嗅探"},{title:"替换规则",namespace:"ruleContent",id:"replaceRegex",type:"String",hint:"多页内容合并后替换,用于正文净化"},{title:"图片样式",namespace:"ruleContent",id:"imageStyle",type:"String",hint:"FULL:铺满 不填:默认样式"},{title:"购买操作",namespace:"ruleContent",id:"payAction",type:"String",hint:"填写JavaScript 返回购买链接或者调用购买接
Line truncated
|
||||
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}},y6={class:"editor"},b6={__name:"sourceEditor",setup(e){const t=V({});return/bookSource/i.test(location.href)?(t.value=v6,document.title="书源管理"):(t.value=g6,document.title="订阅源管理"),(n,r)=>{const o=m6,s=p6,i=VP;return $(),W("div",y6,[Q(o,{class:"left",config:h(t)},null,8,["config"]),Q(s),Q(i,{class:"right"})])}}},kd=ko(b6,[["__scopeId","data-v-a18b9cbd"]]);/*!
|
||||
...`},{title:"列表规则",namespace:"ruleExplore",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List<Element>)"},{title:"书名规则",namespace:"ruleExplore",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleExplore",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleExplore",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleExplore",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleExplore",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleExplore",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleExplore",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",namespace:"ruleExplore",id:"bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},detail:{name:"详情",children:[{title:"预处理",namespace:"ruleBookInfo",id:"init",type:"String",hint:"用于加速详情信息检索,只支持AllInOne规则"},{title:"书名规则",namespace:"ruleBookInfo",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleBookInfo",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleBookInfo",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleBookInfo",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleBookInfo",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleBookInfo",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleBookInfo",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"目录地址",namespace:"ruleBookInfo",id:"tocUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"},{title:"下载URL",namespace:"ruleBookInfo",id:"downloadUrls",type:"String",hint:"文件类书源下载地址 (规则结果为String类型的url, 多个链接返回数组)"},{title:"修改书籍",namespace:"ruleBookInfo",id:"canReName",type:"String",hint:"允许修改书名作者(规则结果为String类型, 默认不允许)"}]},directory:{name:"目录",children:[{title:"预处理",namespace:"ruleToc",id:"preUpdateJs",type:"String",hint:"更新目录前调用JS 动态更新目录链接"},{title:"列表规则",namespace:"ruleToc",id:"chapterList",type:"String",hint:"选择目录列表的章节节点 (规则结果为List<Element>)"},{title:"章节名称",namespace:"ruleToc",id:"chapterName",type:"String",hint:"选择章节名称 (规则结果为String)"},{title:"章节地址",namespace:"ruleToc",id:"chapterUrl",type:"String",hint:"选择章节链接 (规则结果为String类型的Url)"},{title:"卷名标识",namespace:"ruleToc",id:"isVolume",type:"String",hint:"章节名称是否是卷名 (规则结果为Bool)"},{title:"收费标识",namespace:"ruleToc",id:"isVip",type:"String",hint:"章节是否为VIP章节 (规则结果为Bool)"},{title:"购买标识",namespace:"ruleToc",id:"isPay",type:"String",hint:"章节是否为已购买 (规则结果为Bool)"},{title:"章节信息",namespace:"ruleToc",id:"updateTime",type:"String",hint:"选择章节信息 (规则结果为String)"},{title:"翻页规则",namespace:"ruleToc",id:"nextTocUrl",type:"String",hint:"选择目录下一页链接 (规则结果为List<String>或String)"}]},content:{name:"正文",children:[{title:"脚本注入",namespace:"ruleContent",id:"webJs",type:"String",hint:"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"},{title:"正文规则",namespace:"ruleContent",id:"content",type:"String",hint:"选择正文内容 (规则结果为String)"},{title:"翻页规则",namespace:"ruleContent",id:"nextContentUrl",type:"String",hint:"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"},{title:"资源正则",namespace:"ruleContent",id:"sourceRegex",type:"String",hint:"匹配资源的url特征,用于嗅探"},{title:"替换规则",namespace:"ruleContent",id:"replaceRegex",type:"String",hint:"多页内容合并后替换,用于正文净化"},{title:"图片样式",namespace:"ruleContent",id:"imageStyle",type:"String",hint:"FULL:铺满 不填:默认样式"},{title:"购买操作",namespace:"ruleContent",id:"payAction",type:"String",hint:"填写JavaScript 返回购买链接或者调用购买接
Line truncated
|
||||
名称2::链接2`},{title:"登录地址",id:"loginUrl",type:"String",hint:"填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",id:"loginUi",type:"String",hint:"自定义登录界面"},{title:"登录检测",id:"loginCheckJs",type:"String",hint:"登录检测js"},{title:"封面解密",id:"coverDecodeJs",type:"String",hint:"封面解密js"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"变量说明",id:"variableComment",type:"String",hint:"源变量说明"},{title:"并发率",id:"concurrentRate",type:"String",hint:"并发率"}]},list:{name:"列表",children:[{title:"列表规则",id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"内容规则",id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"}]},other:{name:"其他",children:[{title:"列表样式",id:"articleStyle",type:"Array",array:["默认","大图","双列"]},{title:"加载地址",id:"loadWithBaseUrl",type:"Boolean"},{title:"启用JS",id:"enableJs",type:"Boolean"},{title:"启用",id:"enabled",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"单URL",id:"singleUrl",type:"Boolean"},{title:"排序编号",id:"customOrder",type:"Number"}]}},_6={class:"editor"},w6={__name:"sourceEditor",setup(e){const t=V({});return/bookSource/i.test(location.href)?(t.value=y6,document.title="书源管理"):(t.value=b6,document.title="订阅源管理"),(n,r)=>{const o=g6,s=m6,i=KP;return $(),W("div",_6,[Q(o,{class:"left",config:h(t)},null,8,["config"]),Q(s),Q(i,{class:"right"})])}}},kd=ko(w6,[["__scopeId","data-v-a18b9cbd"]]);/*!
|
||||
* vue-router v4.1.6
|
||||
* (c) 2022 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const io=typeof window<"u";function _6(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ke=Object.assign;function Qa(e,t){const n={};for(const r in t){const o=t[r];n[r]=mn(o)?o.map(e):e(o)}return n}const us=()=>{},mn=Array.isArray,w6=/\/$/,S6=e=>e.replace(w6,"");function Za(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=T6(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function E6(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Id(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function C6(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Oo(t.matched[r],n.matched[o])&&wv(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Oo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!O6(e[n],t[n]))return!1;return!0}function O6(e,t){return mn(e)?Rd(e,t):mn(t)?Rd(t,e):e===t}function Rd(e,t){return mn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function T6(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,i;for(s=0;s<r.length;s++)if(i=r[s],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Is;(function(e){e.pop="pop",e.push="push"})(Is||(Is={}));var cs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(cs||(cs={}));function x6(e){if(!e)if(io){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),S6(e)}const $6=/^[^#]+#/;function A6(e,t){return e.replace($6,"#")+t}function P6(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const wa=()=>({left:window.pageXOffset,top:window.pageYOffset});function k6(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=P6(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Nd(e,t){return(history.state?history.state.position-t:-1)+e}const Bl=new Map;function I6(e,t){Bl.set(e,t)}function R6(e){const t=Bl.get(e);return Bl.delete(e),t}let N6=()=>location.protocol+"//"+location.host;function Sv(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Id(l,"")}return Id(n,e)+r+o}function L6(e,t,n,r){let o=[],s=[],i=null;const a=({state:p})=>{const m=Sv(e,location),v=n.value,d=t.value;let y=0;if(p){if(n.value=m,t.value=p,i&&i===v){i=null;return}y=d?p.position-d.position:0}else r(m);o.forEach(g=>{g(n.value,v,{delta:y,type:Is.pop,direction:y?y>0?cs.forward:cs.back:cs.unknown})})};function l(){i=n.value}function u(p){o.push(p);const m=()=>{const v=o.indexOf(p);v>-1&&o.splice(v,1)};return s.push(m),m}function c(){const{history:p}=window;p.state&&p.replaceState(Ke({},p.state,{scroll:wa()}),"")}function f(){for(const p of s)p();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function Ld(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?wa():null}}function M6(e){const{history:t,location:n}=window,r={value:Sv(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:N6()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),o.value=u}catch(m){console.error(m),n[c?"replace":"assign"](p)}}function i(l,u){const c=Ke({},t.state,Ld(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=Ke({},o.value,t.state,{forward:l,scroll:wa()});s(c.current,c,!0);const f=Ke({},Ld(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function F6(e){e=x6(e);const t=M6(e),n=L6(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ke({location:"",base:e,go:r,createHref:A6.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function B6(e){return e=locLine truncated
|
||||
*/const io=typeof window<"u";function S6(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ke=Object.assign;function Qa(e,t){const n={};for(const r in t){const o=t[r];n[r]=mn(o)?o.map(e):e(o)}return n}const us=()=>{},mn=Array.isArray,E6=/\/$/,C6=e=>e.replace(E6,"");function Za(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=$6(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function O6(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Id(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function T6(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Oo(t.matched[r],n.matched[o])&&wv(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Oo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!x6(e[n],t[n]))return!1;return!0}function x6(e,t){return mn(e)?Rd(e,t):mn(t)?Rd(t,e):e===t}function Rd(e,t){return mn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function $6(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,i;for(s=0;s<r.length;s++)if(i=r[s],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Is;(function(e){e.pop="pop",e.push="push"})(Is||(Is={}));var cs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(cs||(cs={}));function A6(e){if(!e)if(io){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),C6(e)}const P6=/^[^#]+#/;function k6(e,t){return e.replace(P6,"#")+t}function I6(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const wa=()=>({left:window.pageXOffset,top:window.pageYOffset});function R6(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=I6(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Nd(e,t){return(history.state?history.state.position-t:-1)+e}const Bl=new Map;function N6(e,t){Bl.set(e,t)}function L6(e){const t=Bl.get(e);return Bl.delete(e),t}let M6=()=>location.protocol+"//"+location.host;function Sv(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Id(l,"")}return Id(n,e)+r+o}function F6(e,t,n,r){let o=[],s=[],i=null;const a=({state:p})=>{const m=Sv(e,location),v=n.value,d=t.value;let y=0;if(p){if(n.value=m,t.value=p,i&&i===v){i=null;return}y=d?p.position-d.position:0}else r(m);o.forEach(g=>{g(n.value,v,{delta:y,type:Is.pop,direction:y?y>0?cs.forward:cs.back:cs.unknown})})};function l(){i=n.value}function u(p){o.push(p);const m=()=>{const v=o.indexOf(p);v>-1&&o.splice(v,1)};return s.push(m),m}function c(){const{history:p}=window;p.state&&p.replaceState(Ke({},p.state,{scroll:wa()}),"")}function f(){for(const p of s)p();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function Ld(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?wa():null}}function B6(e){const{history:t,location:n}=window,r={value:Sv(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:M6()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),o.value=u}catch(m){console.error(m),n[c?"replace":"assign"](p)}}function i(l,u){const c=Ke({},t.state,Ld(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=Ke({},o.value,t.state,{forward:l,scroll:wa()});s(c.current,c,!0);const f=Ke({},Ld(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function D6(e){e=A6(e);const t=B6(e),n=F6(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ke({location:"",base:e,go:r,createHref:k6.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function j6(e){return e=locLine truncated
|
||||
@@ -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-7ea9b45a.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-b1381eda.js"></script><link rel="stylesheet" href="./assets/index-a0a6b9ea.css"></head><body><div id="app"></div></body></html>
|
||||
Reference in new issue
Block a user