web source editor: v3.23.040318
This commit is contained in:
1 parent
50c7d3eabc
commit
558a5f4303
5 files changed
+45
-33
No files matched your search
@@ -1,31 +0,0 @@
|
||||
(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 Or(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 Ir(e){if(D(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=fe(r)?Oi(r):Ir(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(fe(e))return e;if(se(e))return e}}const Ti=/;(?![^(]*\))/g,Pi=/:([^]+)/,Ai=/\/\*.*?\*\//gs;function Oi(e){const t={};return e.replace(Ai,"").split(Ti).forEach(n=>{if(n){const r=n.split(Pi);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Qe(e){let t="";if(fe(e))t=e;else if(D(e))for(let n=0;n<e.length;n++){const r=Qe(e[n]);r&&(t+=r+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ii="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ni=Or(Ii);function ss(e){return!!e||e===""}function Ui(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Fn(e[r],t[r]);return n}function Fn(e,t){if(e===t)return!0;let n=co(e),r=co(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=on(e),r=on(t),n||r)return e===t;if(n=D(e),r=D(t),n||r)return n&&r?Ui(e,t):!1;if(n=se(e),r=se(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 l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!Fn(e[i],t[i]))return!1}}return String(e)===String(t)}function is(e,t){return e.findIndex(n=>Fn(n,t))}const et=e=>fe(e)?e:e==null?"":D(e)||se(e)&&(e.toString===us||!V(e.toString))?JSON.stringify(e,ls,2):String(e),ls=(e,t)=>t&&t.__v_isRef?ls(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:jn(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!D(t)&&!as(t)?String(t):t,ie={},Nt=[],Ke=()=>{},Mi=()=>!1,$i=/^on[^a-z]/,Hn=e=>$i.test(e),Nr=e=>e.startsWith("onUpdate:"),ve=Object.assign,Ur=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Li=Object.prototype.hasOwnProperty,Z=(e,t)=>Li.call(e,t),D=Array.isArray,Ut=e=>zt(e)==="[object Map]",jn=e=>zt(e)==="[object Set]",co=e=>zt(e)==="[object Date]",Bi=e=>zt(e)==="[object RegExp]",V=e=>typeof e=="function",fe=e=>typeof e=="string",on=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",cs=e=>se(e)&&V(e.then)&&V(e.catch),us=Object.prototype.toString,zt=e=>us.call(e),Fi=e=>zt(e).slice(8,-1),as=e=>zt(e)==="[object Object]",Mr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,En=Or(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hi=/-(\w)/g,Xe=Dn(e=>e.replace(Hi,(t,n)=>n?n.toUpperCase():"")),ji=/\B([A-Z])/g,kt=Dn(e=>e.replace(ji,"-$1").toLowerCase()),Kn=Dn(e=>e.charAt(0).toUpperCase()+e.slice(1)),nr=Dn(e=>e?`on${Kn(e)}`:""),sn=(e,t)=>!Object.is(e,t),Mt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Pn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},hr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let uo;const Di=()=>uo||(uo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Pe;class fs{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Pe,!t&&Pe&&(this.index=(Pe.scopes||(Pe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Pe;try{return Pe=this,t()}finally{Pe=n}}}on(){Pe=this}off(){Pe=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 ds(e){return new fs(e)}function Ki(e,t=Pe){t&&t.active&&t.effects.push(e)}function hs(){return Pe}function Vi(e){Pe&&Pe.cleanups.push(e)}const $r=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ps=e=>(e.w&ht)>0,gs=e=>(e.n&ht)>0,zi=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ht},Ji=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];ps(o)&&!gs(o)?o.delete(e):t[n++]=o,o.w&=Line truncated
|
||||
* vue-router v4.1.6
|
||||
* (c) 2022 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const It=typeof window<"u";function au(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const G=Object.assign;function ar(e,t){const n={};for(const r in t){const o=t[r];n[r]=ze(o)?o.map(e):e(o)}return n}const tn=()=>{},ze=Array.isArray,fu=/\/$/,du=e=>e.replace(fu,"");function fr(e,t,n="/"){let r,o={},s="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(r=t.slice(0,c),s=t.slice(c+1,l>-1?l:t.length),o=e(s)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=mu(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function hu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ho(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pu(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Kt(t.matched[r],n.matched[o])&&ii(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Kt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ii(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!gu(e[n],t[n]))return!1;return!0}function gu(e,t){return ze(e)?jo(e,t):ze(t)?jo(t,e):e===t}function jo(e,t){return ze(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function mu(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 pn;(function(e){e.pop="pop",e.push="push"})(pn||(pn={}));var nn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(nn||(nn={}));function _u(e){if(!e)if(It){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),du(e)}const yu=/^[^#]+#/;function bu(e,t){return e.replace(yu,"#")+t}function Su(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 Gn=()=>({left:window.pageXOffset,top:window.pageYOffset});function vu(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=Su(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 Do(e,t){return(history.state?history.state.position-t:-1)+e}const kr=new Map;function wu(e,t){kr.set(e,t)}function Cu(e){const t=kr.get(e);return kr.delete(e),t}let xu=()=>location.protocol+"//"+location.host;function li(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let l=o.includes(e.slice(s))?e.slice(s).length:1,c=o.slice(l);return c[0]!=="/"&&(c="/"+c),Ho(c,"")}return Ho(n,e)+r+o}function Eu(e,t,n,r){let o=[],s=[],i=null;const l=({state:h})=>{const m=li(e,location),C=n.value,x=t.value;let U=0;if(h){if(n.value=m,t.value=h,i&&i===C){i=null;return}U=x?h.position-x.position:0}else r(m);o.forEach(P=>{P(n.value,C,{delta:U,type:pn.pop,direction:U?U>0?nn.forward:nn.back:nn.unknown})})};function c(){i=n.value}function a(h){o.push(h);const m=()=>{const C=o.indexOf(h);C>-1&&o.splice(C,1)};return s.push(m),m}function f(){const{history:h}=window;h.state&&h.replaceState(G({},h.state,{scroll:Gn()}),"")}function p(){for(const h of s)h();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f),{pauseListeners:c,listen:a,destroy:p}}function Ko(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Gn():null}}function ku(e){const{history:t,location:n}=window,r={value:li(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(c,a,f){const p=e.indexOf("#"),h=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:xu()+e+c;try{t[f?"replaceState":"pushState"](a,"",h),o.value=a}catch(m){console.error(m),n[f?"replace":"assign"](h)}}function i(c,a){const f=G({},t.state,Ko(o.value.back,c,o.value.forward,!0),a,{position:o.value.position});s(c,f,!0),r.value=c}function l(c,a){const f=G({},o.value,t.state,{forward:c,scroll:Gn()});s(f.current,f,!0);const p=G({},Ko(r.value,c,null),{position:f.position+1},a);s(c,p,!1),r.value=c}return{location:r,state:o,push:l,replace:i}}function Ru(e){e=_u(e);const t=ku(e),n=Eu(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=G({location:"",base:e,go:r,createHref:bu.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 Tu(e){return e=location.Line truncated
|
||||
* pinia v2.0.33
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let _i;const er=e=>_i=e,yi=Symbol();function Pr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var rn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(rn||(rn={}));function ga(){const e=ds(!0),t=e.run(()=>je({}));let n=[],r=[];const o=Ht({install(s){er(o),o._a=s,s.provide(yi,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!pa?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const bi=()=>{};function ns(e,t,n,r=bi){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&hs()&&Vi(o),o}function Ot(e,...t){e.slice().forEach(n=>{n(...t)})}function Ar(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];Pr(o)&&Pr(r)&&e.hasOwnProperty(n)&&!ae(r)&&!ft(r)?e[n]=Ar(o,r):e[n]=r}return e}const ma=Symbol();function _a(e){return!Pr(e)||!e.hasOwnProperty(ma)}const{assign:it}=Object;function ya(e){return!!(ae(e)&&e.effect)}function ba(e,t,n,r){const{state:o,actions:s,getters:i}=t,l=n.state.value[e];let c;function a(){l||(n.state.value[e]=o?o():{});const f=pt(n.state.value[e]);return it(f,s,Object.keys(i||{}).reduce((p,h)=>(p[h]=Ht(be(()=>{er(n);const m=n._s.get(e);return i[h].call(m,m)})),p),{}))}return c=Si(e,a,t,n,r,!0),c}function Si(e,t,n={},r,o,s){let i;const l=it({actions:{}},n),c={deep:!0};let a,f,p=Ht([]),h=Ht([]),m;const C=r.state.value[e];!s&&!C&&(r.state.value[e]={}),je({});let x;function U(H){let A;a=f=!1,typeof H=="function"?(H(r.state.value[e]),A={type:rn.patchFunction,storeId:e,events:m}):(Ar(r.state.value[e],H),A={type:rn.patchObject,payload:H,storeId:e,events:m});const z=x=Symbol();Vr().then(()=>{x===z&&(a=!0)}),f=!0,Ot(p,A,r.state.value[e])}const P=s?function(){const{state:A}=n,z=A?A():{};this.$patch(J=>{it(J,z)})}:bi;function g(){i.stop(),p=[],h=[],r._s.delete(e)}function b(H,A){return function(){er(r);const z=Array.from(arguments),J=[],ne=[];function me(_e){J.push(_e)}function Re(_e){ne.push(_e)}Ot(h,{args:z,name:H,store:L,after:me,onError:Re});let we;try{we=A.apply(this&&this.$id===e?this:L,z)}catch(_e){throw Ot(ne,_e),_e}return we instanceof Promise?we.then(_e=>(Ot(J,_e),_e)).catch(_e=>(Ot(ne,_e),Promise.reject(_e))):(Ot(J,we),we)}}const k={_p:r,$id:e,$onAction:ns.bind(null,h),$patch:U,$reset:P,$subscribe(H,A={}){const z=ns(p,H,A.detached,()=>J()),J=i.run(()=>Bt(()=>r.state.value[e],ne=>{(A.flush==="sync"?f:a)&&H({storeId:e,type:rn.direct,events:m},ne)},it({},c,A)));return z},$dispose:g},L=Oe(k);r._s.set(e,L);const q=r._e.run(()=>(i=ds(),i.run(()=>t())));for(const H in q){const A=q[H];if(ae(A)&&!ya(A)||ft(A))s||(C&&_a(A)&&(ae(A)?A.value=C[H]:Ar(A,C[H])),r.state.value[e][H]=A);else if(typeof A=="function"){const z=b(H,A);q[H]=z,l.actions[H]=A}}return it(L,q),it(Y(L),q),Object.defineProperty(L,"$state",{get:()=>r.state.value[e],set:H=>{U(A=>{it(A,H)})}}),r._p.forEach(H=>{it(L,i.run(()=>H({store:L,app:r._a,pinia:r,options:l})))}),C&&s&&n.hydrate&&n.hydrate(L.$state,C),a=!0,f=!0,L}function Sa(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(l,c){const a=to();return l=l||a&&Ye(yi,null),l&&er(l),l=_i,l._s.has(r)||(s?Si(r,t,o,l):ba(r,o,l)),l._s.get(r)}return i.$id=r,i}const va=ga(),Rt=Sa("source",{state:()=>({url:localStorage.getItem("url")||"",bookSources:[],rssSources:[],currentSource:{},currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},deBugMsg:"",searchKey:""}),getters:{sources:e=>/bookSource/.test(location.href)?e.bookSources:e.rssSources},actions:{saveSources(e){/bookSource/.test(location.href)?this.bookSources=e:this.rssSources=e},deleteSources(e){let t=/bookSource/.test(location.href)?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;/bookSource/.test(location.href)?(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)},changeCurrentSourceValue(e){let t=e.value,n={true:!0,false:!1};if(e.type==="Boolean"&&(t=n[t]),e.type==="Number"&&(t=Number(t)),e.key.includes("_")){let r=e.key.split("_")[0],o=e.key.split("_")[1],s={};s[o]=t,this.currentSource[r]=Object.assign(this.currentSource[r]||{},s)}else this.currentSource[e.key]=t;this.currentSource.lastUpdateTime=new Date().getTime(),/bookSource/.test(location.href)&&(this.currentSource.ruleToc=this.currentSource.ruleToc||{})},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.geLine truncated
|
||||
`},clearDeBugMsg(){this.deBugMsg=""},clearAllSource(){this.bookSources=[],this.rssSources=[]}}});const wa={name:"editTab",setup(){const e=Rt(),t=Oe({source:""}),n=()=>{e.changeEditTabSource(JSON.parse(t.source))};return gn(()=>{let r=e.editTabSource;Object.keys(r).length>0?(r.lastUpdateTime=new Date().getTime(),t.source=JSON.stringify(r,null,4)):t.source=""}),{...pt(t),updateEditSource:n}}};function Ca(e,t,n,r,o,s){return an((le(),pe("textarea",{placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP","onUpdate:modelValue":t[0]||(t[0]=i=>e.source=i),onInput:t[1]||(t[1]=(...i)=>r.updateEditSource&&r.updateEditSource(...i))},null,544)),[[Ln,e.source]])}const xa=Ie(wa,[["render",Ca],["__scopeId","data-v-d8aca153"]]);const Ea={name:"editDebug",setup(){const e=Rt(),t=je(""),n=Oe({printDebug:e.deBugMsg,searchKey:""}),r=i=>{e.searchKey=i};gn(()=>{n.printDebug=e.deBugMsg});const o=()=>{document.querySelectorAll(".menu>button")[7].click()},s=be(()=>/bookSource/.test(window.location.href));return{...pt(n),textareaDom:t,changeSearch:r,startSearch:o,isBookSource:s}}};function ka(e,t,n,r,o,s){return le(),pe(xe,null,[r.isBookSource?an((le(),pe("input",{key:0,type:"text",style:{"text-align":"center",border:"1px solid #dddddd","border-radius":"4px"},placeholder:"输入搜索关键字,默认搜「我的」","onUpdate:modelValue":t[0]||(t[0]=i=>e.searchKey=i),onInput:t[1]||(t[1]=i=>r.changeSearch(e.searchKey)),onKeydown:t[2]||(t[2]=tu((...i)=>r.startSearch&&r.startSearch(...i),["enter"])),title:"输入关键词 enter(回车键)快捷搜索"},null,544)),[[Ln,e.searchKey]]):dn("",!0),an(j("textarea",{placeholder:"这里用于输出调试信息","onUpdate:modelValue":t[3]||(t[3]=i=>e.printDebug=i),ref:"textareaDom",id:"debug_text"},null,512),[[Ln,e.printDebug]])],64)}const Ra=Ie(Ea,[["render",ka],["__scopeId","data-v-d61c2689"]]);function oo(e,t){return fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(n=>n.json())}function Ta(e){return fetch(e).then(t=>t.json())}function tr(e,t=!0){let n=/bookSource/.test(location.href);return`${`http://${localStorage.getItem("url")||location.host}/`}${e}${n?"BookSource":"RssSource"}${t?"s":""}`}function Pa(){return Ta(tr("get"))}function Aa(e){return oo(tr("save"),e)}function rs(e){return oo(tr("save",!1),e)}function Oa(e){return oo(tr("delete"),e)}const Ia={name:"editList",setup(){const e=Rt();let t=Oe({searchKey:"",delArr:[],sources:[]});const n=be(()=>c(t.sources,t.searchKey)),r=be(()=>/bookSource/.test(window.location.href));gn(()=>{t.sources=e.sources});let o=je(null);const s=h=>{o.value=h,e.clearEdit(),e.changeCurrentSource(n.value[h])},i=()=>{e.clearAllSource()},l=h=>{if(!h)return null;const m=new Date(h),C=m.getFullYear();let x=m.getMonth()+1;x=x<10?"0"+x:x;let U=m.getDate();U=U<10?"0"+U:U;let P=m.getHours();P=P<10?"0"+P:P;let g=m.getMinutes();g=g<10?"0"+g:g;let b=m.getSeconds();return b=b<10?"0"+b:b,C+"-"+x+"-"+U+" "+P+":"+g+":"+b},c=(h,m)=>m===""?t.sources:r.value?h.filter(C=>C.bookSourceName.toUpperCase().includes(m.toUpperCase())||(C.bookSourceGroup||"").toUpperCase().includes(m.toUpperCase())||C.bookSourceUrl.toUpperCase().includes(m.toUpperCase())):h.filter(C=>C.sourceName.toUpperCase().includes(m.toUpperCase())||(C.sourceGroup||"").toUpperCase().includes(m.toUpperCase())||C.sourceUrl.toUpperCase().includes(m.toUpperCase())),a=()=>{if(t.delArr.length===0)return!1;const h=[];t.delArr.forEach(m=>{h.push(n.value[m])}),Oa(h).then(m=>{m.isSuccess&&(e.deleteSources(h),t.delArr=[])})},f=()=>{const h=document.createElement("input");h.type="file",h.accept=".json",h.addEventListener("change",m=>{const C=m.target.files[0];var x=new FileReader;x.readAsText(C),x.onload=()=>{const U=JSON.parse(x.result);e.saveSources(U)}}),h.click()},p=()=>{const h=document.createElement("a");let m=e.sources,C=r.value?"BookSource":"RssSource";h.download=`${C}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let x=new Blob([JSON.stringify(m,null,4)],{type:"application/json"});h.href=window.URL.createObjectURL(x),h.click()};return{currentActive:o,isBookSource:r,filtedSources:n,deleteActiveSource:a,handleItemClick:s,...pt(t),formatTime:l,clearAllSources:i,upFile:f,outExport:p}}},Na={style:{display:"flex","flex-flow":"column"}},Ua={class:"tool"},Ma={class:"source_list"},$a=["value"],La={class:"book_index"},Ba=["onClick"],Fa={class:"book_info"},Ha={key:0};function ja(e,t,n,r,o,s){return le(),pe("div",Na,[an(j("input",{class:"search",type:"text",placeholder:"输入筛选关键词(源名称、源URL或源分组)输入自动筛选源","onUpdate:modelValue":t[0]||(t[0]=i=>e.searchKey=i),onFocus:t[1]||(t[1]=i=>e.delArr=[])},null,544),[[Ln,e.searchKey]]),j("div",null,[j("div",Ua,[j("button",{onClick:t[2]||(t[2]=(...i)=>r.upFile&&r.upFile(...i))},"导入书源文件"),j("button",{onClick:t[3]||(t[3]=(...i)=>r.outExport&&r.outExport(...i))},"导出书源文件"),j("button",{onClick:t[4]||(t[4]=(...i)=>r.deleteAc
Line truncated
|
||||
确认开启web服务`,g},a=()=>{t.value=!0,Pa().then(g=>{t.value=!1,g.isSuccess?(e.changeTabName("editList"),e.saveSources(g.data),r.value=`成功拉取${g.data.length}条源`,o.value=!0):(s.value=g.errorMsg,n.value=!0)}).catch(g=>{c(g)})},f=()=>{r.value="正在推送中",o.value=!0,t.value=!0;let g=e.sources;Aa(g).then(b=>{if(b.isSuccess){let k=b.data;if(Array.isArray(k)){let L="";g.length>k.length&&(L=`
|
||||
推送失败的源将用红色字体标注!`),r.value=`批量推送源到「阅读3.0APP」
|
||||
共计: ${g.length} 条
|
||||
成功: ${k.length} 条
|
||||
失败: ${g.length-k.length} 条${L}`,o.value=!0}else r.value=`批量推送源到「阅读3.0APP」成功!
|
||||
共计: ${g.length} 条`,o.value=!0}else s.value=`批量推送源失败!
|
||||
ErrorMsg: ${b.errorMsg}`,n.value=!0;t.value=!1}).catch(b=>{c(b)})},p=()=>{e.changeEditTabSource(e.currentSource),e.changeTabName("editTab")},h=()=>{e.changeCurrentSource(e.editTabSource)},m=()=>{e.editHistoryUndo()},C=()=>{e.clearEdit(),r.value="已清除",o.value=!0},x=()=>{e.clearEdit(),e.clearAllHistory(),r.value="已清除所有历史记录",o.value=!0},U=()=>{let g=/bookSource/.test(location.href),b=e.currentSource;g&&b.bookSourceUrl!==""&&b.bookSourceType!==""&&b.bookSourceName!==""||!g&&b.sourceUrl!==""&&b.sourceName!==""?rs(b).then(k=>{k.isSuccess?(r.value=`源《${g?b.bookSourceName:b.sourceName}》已成功保存到「阅读3.0APP」`,o.value=!0,e.saveCurrentSource()):(s.value=`源《${g?b.bookSourceName:b.sourceName}》保存失败!
|
||||
ErrorMsg: ${k.errorMsg}`,n.value=!0)}).catch(k=>{c(k)}):(s.value="请检查<必填>项是否全部填写",n.value=!0)},P=()=>{t.value=!0,e.clearDeBugMsg(),e.changeTabName("editDebug");let g=/bookSource/.test(location.href),b=e.currentSource;rs(b).then(k=>{let L="ws://"+(localStorage.getItem("url")||location.host).replace(/\d+$/,z=>parseInt(z)+1)+"/"+(g?"bookSourceDebug":"rssSourceDebug");const q=new WebSocket(L);let H="",A=g?b.bookSourceUrl:b.sourceUrl;g&&(b.ruleSearch.checkKeyWord?H=b.ruleSearch.checkKeyWord:e.searchKey?H=e.searchKey:H="我的"),q.onopen=()=>{q.send(`{"tag":"${A}", "key":"${H}"}`)},q.onmessage=z=>{e.appendDeBugMsg(z.data)},q.onclose=()=>{t.value=!1,r.value="调试已关闭!",o.value=!0,e.appendDeBugMsg("调试已关闭!")}}).catch(k=>{c(k)})};return mn(()=>{document.onkeydown=g=>{(g.ctrlKey||g.metaKey)&&g.key==="Enter"&&P(),(g.ctrlKey||g.metaKey)&&g.key==="s"&&(U(),g.preventDefault()),g.ctrlKey&&g.key==="e"&&(p(),g.preventDefault()),g.ctrlKey&&g.key==="p"&&(f(),g.preventDefault())}}),{debug:P,push:f,pull:a,clearEdit:C,showLoading:t,changeShow:i,warnShow:n,successText:r,changeSuccessShow:l,successShow:o,undo:m,redo:x,conver2Tab:p,conver2Source:h,warnText:s,saveSource:U}}},_n=e=>(Jr("data-v-138678d8"),e=e(),Wr(),e),af={class:"menu"},ff=_n(()=>j("span",null,"Ctrl+P",-1)),df=_n(()=>j("span",null,"Ctrl+E",-1)),hf=_n(()=>j("span",null,"Ctrl+Z",-1)),pf=_n(()=>j("span",null,"Ctrl+Enter",-1)),gf=_n(()=>j("span",null,"Ctrl+S",-1));function mf(e,t,n,r,o,s){const i=xi,l=Ci,c=wi;return le(),pe("div",af,[j("div",null,[r.showLoading?(le(),jt(i,{key:0})):dn("",!0),ge(l,{text:r.warnText,"is-show":r.warnShow,onChangeShow:r.changeShow},null,8,["text","is-show","onChangeShow"]),r.successShow?(le(),jt(c,{key:1,isShow:r.successShow,onChangeShow:r.changeSuccessShow,text:r.successText},null,8,["isShow","onChangeShow","text"])):dn("",!0)]),j("button",{onClick:t[0]||(t[0]=(...a)=>r.push&&r.push(...a)),title:"Ctrl+P"},[St("⇈推送源 "),ff]),j("button",{onClick:t[1]||(t[1]=(...a)=>r.pull&&r.pull(...a))},"⇊拉取源"),j("button",{onClick:t[2]||(t[2]=(...a)=>r.conver2Tab&&r.conver2Tab(...a)),title:"Ctrl+E"},[St(" ⋙生成源"),df]),j("button",{onClick:t[3]||(t[3]=(...a)=>r.conver2Source&&r.conver2Source(...a))},"⋘编辑源"),j("button",{onClick:t[4]||(t[4]=(...a)=>r.clearEdit&&r.clearEdit(...a))},"✗清空表单"),j("button",{onClick:t[5]||(t[5]=(...a)=>r.undo&&r.undo(...a)),title:"Ctrl+Z"},[St("↶撤销操作"),hf]),j("button",{onClick:t[6]||(t[6]=(...a)=>r.redo&&r.redo(...a))},"↷重做操作"),j("button",{onClick:t[7]||(t[7]=(...a)=>r.debug&&r.debug(...a)),title:"Ctrl+Enter"},[St(" ⇏调试源 "),pf]),j("button",{onClick:t[8]||(t[8]=(...a)=>r.saveSource&&r.saveSource(...a)),title:"Ctrl+S"},[St(" ✓保存源"),gf])])}const Ei=Ie(uf,[["render",mf],["__scopeId","data-v-138678d8"]]);let Ue;const _f=`
|
||||
height:0 !important;
|
||||
visibility:hidden !important;
|
||||
overflow:hidden !important;
|
||||
position:absolute !important;
|
||||
z-index:-1000 !important;
|
||||
top:0 !important;
|
||||
right:0 !important
|
||||
`,yf=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function bf(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),o=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:yf.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function Sf(e,t=1,n=null){Ue||(Ue=document.createElement("textarea"),document.body.appendChild(Ue));let{paddingSize:r,borderSize:o,boxSizing:s,contextStyle:i}=bf(e);Ue.setAttribute("style",`${i};${_f}`),Ue.value=e.value||e.placeholder||"";let l=Ue.scrollHeight;const c={};s==="border-box"?l=l+o:s==="content-box"&&(l=l-r),Ue.value="";let a=Ue.scrollHeight-r;if(t!==null){let f=a*t;s==="border-box"&&(f=f+r+o),l=Math.max(f,l),c.minHeight=`${f}px`}if(n!==null){let f=a*n;s==="border-box"&&(f=f+r+o),l=Math.min(f,l)}return c.height=`${l}px`,Ue.parentNode&&Ue.parentNode.removeChild(Ue),Ue=null,c}const vf={props:{title:{type:String,default:""},rows:{type:Number,default:1},hint:{type:String,default:""},id:{type:String,default:""},type:{type:String,default:"String"},content:{type:[String,Number,Boolean],default:""}},emits:["changeContent"],setup(e,{emit:t}){const n=Rt(),r=je(""),o=()=>{t("changeContent",{value:r.value.value,key:r.value.getAttribute("id"),type:r.value.getAttribute("class")}),l()},s=()=>{localStorage.getItem("history")||localStorage.setItem("history",JSON.stringify({new:[],old:[]}));const a=JSON.parse(localStorage.getItem("history")).new;if(a.length){const f=r.value.getAttribute("id");if(!f.includes("_")&&a[a.length-1][f]!==n.currentSource[f])n.editHistory(n.currentSource);else if(f.includes("_")){let p=f.split("_")[0],h=f.split("_")[1];a[a.length-1][p][h]!==n.currentSource[p][h]&&n.editHistory(n.currentSource)}}else n.editHistory(n.currentSource)},i=()=>r.value.style="",l=()=>{r.value.style.height=Sf(r.value).height};return{changeHistory:s,change:o,attr:r,adjustHeight:l,restoreHeight:i}}},wf=e=>(Jr("data-v-d16eba09"),e=e(),Wr(),e),Cf={class:"edit_input"},xf=wf(()=>j("i",null,":",-1)),Ef=["id","placeholder","rows","value"];function kf(e,t,n,r,o,s){return le(),pe("div",Cf,[j("span",null,[St(et(n.title),1),xf]),j("textarea",{id:n.id,class:Qe(n.type),placeholder:n.hint,rows:n.rows,value:n.content,ref:"attr",onInput:t[0]||(t[0]=(...i)=>r.change&&r.change(...i)),onBlur:t[1]||(t[1]=i=>{r.changeHistory(),r.restoreHeight()}),onFocus:t[2]||(t[2]=(...i)=>r.adjustHeight&&r.adjustHeight(...i))},null,42,Ef)])}const ki=Ie(vf,[["render",kf],["__scopeId","data-v-d16eba09"]]);function Rf(){const e=Rt(),t=Oe({currentSource:e.currentSource}),n=o=>{e.changeCurrentSourceValue(o)},r=o=>{try{if(o.includes("_")){let s=o.split("_")[0],i=o.split("_")[1],l=t.currentSource[s];return l?l[i]:null}else return t.currentSource[o]}catch{e.commit("clearEdit")}};return gn(()=>{t.currentSource=e.currentSource}),{...pt(t),upData:n,getContent:r}}const Tf={name:"editInputList",props:{data:{type:Array,required:!0}},components:{editInput:ki},setup(e){const{upData:t,getContent:n}=Rf(),r=Oe({data:e.data});return{...pt(r),upData:t,getContent:n}}},Pf={class:"main"};function Af(e,t,n,r,o,s){const i=ki;return le(),pe("div",Pf,[(le(!0),pe(xe,null,Xr(n.data,(l,c)=>(le(),jt(i,{key:c,id:l.id,type:l.type,hint:l.hint,title:l.title,rows:l.rows,content:r.getContent(l.id),onChangeContent:r.upData},null,8,["id","type","hint","title","rows","content","onChangeContent"]))),128))])}const Ri=Ie(Tf,[["render",Af]]),Of={base:{name:"基础",children:[{title:"源域名",rows:1,id:"bookSourceUrl",type:"String",hint:"<必填>通常填写网站主页,例: https://www.qidian.com"},{title:"源类型",rows:1,id:"bookSourceType",type:"Number",hint:"<必填>0:文本 1:音频 2:图片 3:文件(只提供下载的网站)"},{title:"源名称",rows:1,id:"bookSourceName",type:"String",hint:"<必填>会显示在源列表"},{title:"源分组",rows:1,id:"bookSourceGroup",type:"String",hint:"<选填>描述源的特征信息"},{title:"源注释",rows:1,id:"bookSourceComment",type:"String",hint:"<选填>描述源作者和状态"},{title:"书源变量",rows:1,id:"variableComment",type:"String",hint:"<选填>书源变量说明"},{title:"登录地址",rows:1,id:"loginUrl",type:"String",hint:"<选填>填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",rows:3,id:"loginUi",type:"String",hint:"<选填>自定义登录界面"},{title:"登录检测",rows:3,id:"loginCheckJs",type:"String",hint:"<选填>登录检测js"},{title:"封面解密",rows:3,id:"coverDecodeJs",type:"String",hint:"<选填>封面解密js"},{title:"并发率",rows:1,id:"concurrentRate",type:"String",hint:"<选填>并发率"},{title:"请求头",rows:3,id:"header",type:"String",hint:"<选
Line truncated
|
||||
每行一条发现分类(网址域名可省略),例:
|
||||
名称1::网址(Url)1
|
||||
名称2::网址(Url)2
|
||||
...`},{title:"列表规则",rows:1,id:"ruleExplore_bookList",type:"String",hint:"选择书籍节点 (规则结果为List<Element>)"},{title:"书名规则",rows:1,id:"ruleExplore_name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleExplore_author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleExplore_kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleExplore_wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleExplore_lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleExplore_intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleExplore_coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",rows:1,id:"ruleExplore_bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},detail:{name:"详情",children:[{title:"预处理",rows:3,id:"ruleBookInfo_init",type:"String",hint:"用于加速详情信息检索,只支持AllInOne规则"},{title:"书名规则",rows:1,id:"ruleBookInfo_name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",rows:1,id:"ruleBookInfo_author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",rows:1,id:"ruleBookInfo_kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",rows:1,id:"ruleBookInfo_wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",rows:1,id:"ruleBookInfo_lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",rows:1,id:"ruleBookInfo_intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",rows:1,id:"ruleBookInfo_coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"目录地址",rows:1,id:"ruleBookInfo_tocUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"},{title:"下载URL",rows:1,id:"ruleBookInfo_downloadUrls",type:"String",hint:"文件类书源下载地址 (规则结果为String类型的url, 多个链接返回数组)"},{title:"修改书籍",rows:1,id:"ruleBookInfo_canReName",type:"String",hint:"允许修改书名作者(规则结果为String类型, 默认不允许)"}]},directory:{name:"目录",children:[{title:"更新前JS",rows:3,id:"ruleToc_preUpdateJs",type:"String",hint:"更新前JS 动态更新书籍目录链接"},{title:"列表规则",rows:3,id:"ruleToc_chapterList",type:"String",hint:"选择目录列表的章节节点 (规则结果为List<Element>)"},{title:"章节名称",rows:1,id:"ruleToc_chapterName",type:"String",hint:"选择章节名称 (规则结果为String)"},{title:"章节地址",rows:1,id:"ruleToc_chapterUrl",type:"String",hint:"选择章节链接 (规则结果为String类型的Url)"},{title:"卷名标识",rows:1,id:"ruleToc_isVolume",type:"String",hint:"章节名称是否是卷名 (规则结果为Bool)"},{title:"收费标识",rows:1,id:"ruleToc_isVip",type:"String",hint:"章节是否为VIP章节 (规则结果为Bool)"},{title:"购买标识",rows:1,id:"ruleToc_isPay",type:"String",hint:"章节是否为已购买 (规则结果为Bool)"},{title:"章节信息",rows:1,id:"ruleToc_updateTime",type:"String",hint:"选择章节信息 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleToc_nextTocUrl",type:"String",hint:"选择目录下一页链接 (规则结果为List<String>或String)"}]},content:{name:"正文",children:[{title:"脚本注入",rows:3,id:"ruleContent_webJs",type:"String",hint:"注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"},{title:"正文规则",rows:1,id:"ruleContent_content",type:"String",hint:"选择正文内容 (规则结果为String)"},{title:"翻页规则",rows:1,id:"ruleContent_nextContentUrl",type:"String",hint:"选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"},{title:"资源正则",rows:1,id:"ruleContent_sourceRegex",type:"String",hint:"匹配资源的url特征,用于嗅探"},{title:"替换规则",rows:1,id:"ruleContent_replaceRegex",type:"String",hint:"多页内容合并后替换,用于正文净化"},{title:"图片样式",rows:1,id:"ruleContent_imageStyle",type:"String",hint:"FULL:铺满 不填:默认样式"},{title:"购买操作",rows:1,id:"ruleContent_payAction",type:"String",hint:"填写JavaScript 返回购买链接或者调用购买接口"},{title:"图片解密",rows:1,id:"ruleContent_imageDecode",type:"String",hint:"填写JavaScript 返回解密图片的bytes "}]},review:{name:"段评",children:[{title:"段评URL",
Line truncated
|
||||
名称2::链接2`},{title:"登录地址",rows:1,id:"loginUrl",type:"String",hint:"<选填>填写网站登录网址,仅在需要登录的源有用"},{title:"登录界面",rows:3,id:"loginUi",type:"String",hint:"<选填>自定义登录界面"},{title:"登录检测",rows:3,id:"loginCheckJs",type:"String",hint:"<选填>登录检测js"},{title:"封面解密",rows:3,id:"coverDecodeJs",type:"String",hint:"<选填>封面解密js"},{title:"请求头",rows:3,id:"header",type:"String",hint:"<选填>客户端标识"},{title:"变量说明",rows:1,id:"variableComment",type:"String",hint:"<选填>源变量说明"},{title:"并发率",rows:1,id:"concurrentRate",type:"String",hint:"<选填>并发率"}]},list:{name:"列表",children:[{title:"列表样式",rows:1,id:"articleStyle",type:"Number",hint:"<选填>0,1,2 (默认0)"},{title:"列表规则",rows:1,id:"ruleArticles",type:"String",hint:"规则结果为List<Element>"},{title:"翻页规则",rows:1,id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List<String>或String"},{title:"标题规则",rows:1,id:"ruleTitle",type:"String",hint:"文章标题 规则结果为String"},{title:"时间规则",rows:1,id:"rulePubDate",type:"String",hint:"文章发布时间 规则结果为String"},{title:"描述规则",rows:1,id:"ruleDescription",type:"String",hint:"文章简要描述 规则结果为String"},{title:"图片规则",rows:1,id:"ruleImage",type:"String",hint:"文章图片链接 规则结果为String"},{title:"链接规则",rows:1,id:"ruleLink",type:"String",hint:"文章链接 规则结果为String"}]},webView:{name:"WebView",children:[{title:"启用JS",rows:1,id:"enableJs",type:"Number",hint:"启用: true 关闭: false (可选,默认true)"},{title:"加载地址",rows:1,id:"loadWithBaseUrl",type:"Number",hint:"启用: true 关闭: false (可选,默认true)"},{title:"内容规则",rows:1,id:"ruleContent",type:"String",hint:"文章正文"},{title:"样式规则",rows:3,id:"style",type:"String",hint:"文章正文样式 填写css"},{title:"注入规则",rows:3,id:"injectJs",type:"String",hint:"注入网页的JavaScript"},{title:"黑名单",rows:1,id:"contentBlacklist",type:"String",hint:"webView链接加载黑名单,英文逗号隔开"},{title:"白名单",rows:1,id:"contentWhitelist",type:"String",hint:"webView链接加载白名单,英文逗号隔开"}]},other:{name:"其他",children:[{title:"启用",rows:1,id:"enabled",type:"Boolean",hint:"启用: true 关闭: false (可选,默认true)"},{title:"Cookie",rows:1,id:"enabledCookieJar",type:"Boolean",hint:"保存返回头的Cookie 启用: true 关闭: false (可选,默认false)"},{title:"单URL",rows:1,id:"singleUrl",type:"Boolean",hint:"启用: true 关闭: false (可选,默认false)"},{title:"排序编号",rows:1,id:"customOrder",type:"Number",hint:"整数: 0~N (可选,默认0) | 数字越小越靠前"}]}};const Nf={components:{editMenu:Ei,editOut:vi,editInputList:Ri},setup(){const e=Oe({config:{},selectTabKey:"base"});/bookSource/.test(location.href)?(e.config=Of,document.title="书源编辑"):(e.config=If,document.title="订阅源编辑");const t=r=>e.selectTabKey=r,n=be(()=>e.config[e.selectTabKey].children);return mn(()=>{}),{...pt(e),changeSelectTabKey:t,currentTabData:n}}},Uf={class:"left"},Mf=["onClick"];function $f(e,t,n,r,o,s){const i=Ri,l=Ei,c=vi;return le(),pe(xe,null,[j("div",Uf,[j("div",null,[j("ul",null,[(le(!0),pe(xe,null,Xr(Object.entries(e.config),([a,f])=>(le(),pe("li",{onClick:p=>r.changeSelectTabKey(a),key:a,class:Qe(a===e.selectTabKey?"active":"")},et(f.name),11,Mf))),128))])]),ge(i,{data:r.currentTabData},null,8,["data"])]),ge(l),ge(c)],64)}const os=Ie(Nf,[["render",$f],["__scopeId","data-v-e9dfd270"]]),Lf=[{path:"/bookSource",name:"book-home",component:os},{path:"/rssSource",name:"rss-home",component:os}],Bf=da({history:Tu(),routes:Lf});ou(uu).use(va).use(Bf).mount("#app");
|
||||
@@ -0,0 +1,43 @@
|
||||
var Rv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Tk=Rv((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)?Fv(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 Nv=/;(?![^(]*\))/g,Lv=/:([^]+)/,Mv=/\/\*.*?\*\//gs;function Fv(e){const t={};return e.replace(Mv,"").split(Nv).forEach(n=>{if(n){const r=n.split(Lv);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 Bv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Dv=zl(Bv);function Gd(e){return!!e||e===""}function jv(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Fi(e[r],t[r]);return n}function Fi(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?jv(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||!Fi(e[i],t[i]))return!1}}return String(e)===String(t)}function Jd(e,t){return e.findIndex(n=>Fi(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),{})}:Di(t)?{[`Set(${t.size})`]:[...t.values()]}:Me(t)&&!ve(t)&&!Qd(t)?String(t):t,tt={},lo=[],pt=()=>{},zv=()=>!1,Hv=/^on[^a-z]/,Bi=e=>Hv.test(e),Hl=e=>e.startsWith("onUpdate:"),yt=Object.assign,Vl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Vv=Object.prototype.hasOwnProperty,Fe=(e,t)=>Vv.call(e,t),ve=Array.isArray,uo=e=>Rs(e)==="[object Map]",Di=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",yi=e=>Me(e)&&ye(e.then)&&ye(e.catch),Xd=Object.prototype.toString,Rs=e=>Xd.call(e),si=e=>Rs(e).slice(8,-1),Qd=e=>Rs(e)==="[object Object]",Ul=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ii=zl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ji=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Uv=/-(\w)/g,fn=ji(e=>e.replace(Uv,(t,n)=>n?n.toUpperCase():"")),Kv=/\B([A-Z])/g,Wr=ji(e=>e.replace(Kv,"-$1").toLowerCase()),Ns=ji(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ea=ji(e=>e?`on${Ns(e)}`:""),ds=(e,t)=>!Object.is(e,t),ai=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},bi=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},tl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qv=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let ec;const Wv=()=>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 Gv(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&gr)>0,np=e=>(e.n&gr)>0,Jv=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=gr},Yv=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
|
||||
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||||
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||||
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||||
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||||
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||||
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),a=new RegExp("^"+o+"$"),l=function(E){return E&&E.exact?s:new RegExp("(?:"+t(E)+n+t(E)+")|(?:"+t(E)+o+t(E)+")","g")};l.v4=function(S){return S&&S.exact?i:new RegExp(""+t(S)+n+t(S),"g")},l.v6=function(S){return S&&S.exact?a:new RegExp(""+t(S)+o+t(S),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,p=l.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",d="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',_="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+p+"|"+m+v+d+")"+y+g;return Qs=new RegExp("(?:^"+_+"$)","i"),Qs},Jf={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Qo={integer:function(t){return Qo.number(t)&&parseInt(t,10)===t},float:function(t){return Qo.number(t)&&!Qo.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Qo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Jf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(YO())},hex:function(t){return typeof t=="string"&&!!t.match(Jf.hex)}},XO=function(t,n,r,o,s){if(t.required&&n===void 0){cm(t,n,r,o,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;i.indexOf(a)>-1?Qo[a](n)||o.push(Ut(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&o.push(Ut(s.messages.types[a],t.fullField,t.type))},QO=function(t,n,r,o,s){var i=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,p=typeof n=="number",m=typeof n=="string",v=Array.isArray(n);if(p?f="number":m?f="string":v&&(f="array"),!f)return!1;v&&(c=n.length),m&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(Ut(s.messages[f].len,t.fullField,t.len)):a&&!l&&c<t.min?o.push(Ut(s.messages[f].min,t.fullField,t.min)):l&&!a&&c>t.max?o.push(Ut(s.messages[f].max,t.fullField,t.max)):a&&l&&(c<t.min||c>t.max)&&o.push(Ut(s.messages[f].range,t.fullField,t.min,t.max))},to="enum",ZO=function(t,n,r,o,s){t[to]=Array.isArray(t[to])?t[to]:[],t[to].indexOf(n)===-1&&o.push(Ut(s.messages[to],t.fullField,t[to].join(", ")))},eT=function(t,n,r,o,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ut(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Ut(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Le={required:cm,whitespace:JO,type:XO,range:QO,enum:ZO,pattern:eT},tT=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(mt(n,"string")&&!t.required)return r();Le.required(t,n,o,i,s,"string"),mt(n,"string")||(Le.type(t,n,o,i,s),Le.range(t,n,o,i,s),Le.pattern(t,n,o,i,s),t.whitespace===!0&&Le.whitespace(t,n,o,i,s))}r(i)},nT=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(mt(n)&&!t.required)return r();Le.required(t,n,o,i,s),n!==void 0&&Le.type(t,n,o,i,s)}r(i)},rT=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),mt(n)&&!t.required)return r();Le.required(t,n,o,i,s),n!==void 0&&(Le.type(t,n,o,i,s),Le.range(t,n,o,i,s))}r(i)},oT=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(mt(n)&&!t.required)return r();Le.required(t,n,o,i,s),n!==void 0&&Le.type(t,n,o,i,s)}r(i)},sT=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(mt(n)&&!t.required)return r();Le.required(t,n,o,i,s),mt(n)||Le.type(t,n,o,i,s)}r(i)},iT=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(mt(n)&&!t.required)return r();Le.required(t,n,o,i,s),n!==void 0&&(Le.type(t,n,o,i,s),Le.range(t,n,o,i,s))}r(i)},aT=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(mt(n)&&!t.required)return r();Le.required(t,n,o,i,s),n!==void 0&&(Le.type(t,n,o,i,s),Le.range(t,n,o,i,s))}r(i)},lT=function(t,n,r,o,s){var i=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();Le.required(t,n,o,i,s,"array"),n!=null&&(Le.type(t,n,o,i,s),Le.range(t,n,o,i,s))}r(i)},uT=function(t,n,r,o,s){var
Line truncated
|
||||
height:0 !important;
|
||||
visibility:hidden !important;
|
||||
${WC()?"":"overflow:hidden !important;"}
|
||||
position:absolute !important;
|
||||
z-index:-1000 !important;
|
||||
top:0 !important;
|
||||
right:0 !important;
|
||||
`,OT=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function TT(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:OT.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function Xf(e,t=1,n){var r;on||(on=document.createElement("textarea"),document.body.appendChild(on));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=TT(e);on.setAttribute("style",`${a};${CT}`),on.value=e.value||e.placeholder||"";let l=on.scrollHeight;const u={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),on.value="";const c=on.scrollHeight-o;if(Ue(t)){let f=c*t;i==="border-box"&&(f=f+o+s),l=Math.max(f,l),u.minHeight=`${f}px`}if(Ue(n)){let f=c*n;i==="border-box"&&(f=f+o+s),l=Math.min(f,l)}return u.height=`${l}px`,(r=on.parentNode)==null||r.removeChild(on),on=void 0,u}const xT=je({id:{type:String,default:void 0},size:Lo,disabled:Boolean,modelValue:{type:Oe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Oe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:pn},prefixIcon:{type:pn},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Oe([Object,Array,String]),default:()=>ia({})}}),$T={[Ge]:e=>Te(e),input:e=>Te(e),change:e=>Te(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},AT=["role"],PT=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],kT=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],IT=fe({name:"ElInput",inheritAttrs:!1}),RT=fe({...IT,props:xT,emits:$T,setup(e,{expose:t,emit:n}){const r=e,o=$y(),s=Jr(),i=T(()=>{const R={};return r.containerRole==="combobox"&&(R["aria-haspopup"]=o["aria-haspopup"],R["aria-owns"]=o["aria-owns"],R["aria-expanded"]=o["aria-expanded"]),R}),a=T(()=>[r.type==="textarea"?y.b():d.b(),d.m(m.value),d.is("disabled",v.value),d.is("exceed",Ae.value),{[d.b("group")]:s.prepend||s.append,[d.bm("group","append")]:s.append,[d.bm("group","prepend")]:s.prepend,[d.m("prefix")]:s.prefix||r.prefixIcon,[d.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[d.bm("suffix","password-clear")]:F.value&&pe.value},o.class]),l=T(()=>[d.e("wrapper"),d.is("focus",S.value)]),u=YC({excludeKeys:T(()=>Object.keys(i.value))}),{form:c,formItem:f}=Sr(),{inputId:p}=ca(r,{formItemContext:f}),m=hn(),v=Fo(),d=ke("input"),y=ke("textarea"),g=zn(),_=zn(),S=V(!1),E=V(!1),w=V(!1),x=V(!1),C=V(),A=zn(r.inputStyle),P=T(()=>g.value||_.value),I=T(()=>{var R;return(R=c==null?void 0:c.statusIcon)!=null?R:!1}),H=T(()=>(f==null?void 0:f.validateState)||""),L=T(()=>H.value&&HC[H.value]),k=T(()=>x.value?RC:KE),j=T(()=>[o.style,r.inputStyle]),te=T(()=>[r.inputStyle,A.value,{resize:r.resize}]),Y=T(()=>Un(r.modelValue)?"":String(r.modelValue)),F=T(()=>r.clearable&&!v.value&&!r.readonly&&!!Y.value&&(S.value||E.value)),pe=T(()=>r.showPassword&&!v.value&&!r.readonly&&!!Y.value&&(!!Y.value||S.value)),Ce=T(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!v.value&&!r.readonly&&!r.showPassword),ze=T(()=>Y.value.length),Ae=T(()=>!!Ce.value&&ze.value>Number(u.value.maxlength)),Ve=T(()=>!!s.suffix||!!r.suffixIcon||F.value||r.showPassword||Ce.value||!!H.value&&I.value),[it,qe]=bO(g);_r(_,R=>{if(B(),!Ce.value||r.resize!=="both")return;const le=R[0],{width:be}=le.contentRect;C.value={right:`calc(100% - ${be+15+6}px)`}});const z=()=>{const{type:R,autosize:le}=r;if(!(!ot||R!=="textarea"||!_.value))if(le){const be=Me(le)?le.minRows:void 0,Ie=Me(le)?le.maxRows:void 0,Pe=Xf(_.value,be,Ie);A.value={overflowY:"hidden",...Pe},Ne(()=>{_.value.offsetHeight,A.value=Pe})}else A.value={minHeight:Xf(_.value).minHeight}},B=(R=>{let le=!1;return()=>{var be;if(le||!r.autosize)return;((be=_.value)==null?void 0:be.offsetParent)===null||(R(),le=!0)}})(z),J=()=>{const R=P.
Line truncated
|
||||
* pinia v2.0.33
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let qm;const ha=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 fA(){const e=ep(!0),t=e.run(()=>V({}));let n=[],r=[];const o=po({install(s){ha(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&&!cA?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 dA=Symbol();function pA(e){return!kl(e)||!e.hasOwnProperty(dA)}const{assign:ur}=Object;function hA(e){return!!(Be(e)&&e.effect)}function mA(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 ur(c,s,Object.keys(i||{}).reduce((f,p)=>(f[p]=po(T(()=>{ha(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=ur({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=>{ur(I,P)})}:Gm;function _(){i.stop(),f=[],p=[],r._s.delete(e)}function S(C,A){return function(){ha(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)},ur({},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)&&!hA(A)||jn(A))s||(v&&pA(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 ur(w,x),ur(xe(w),x),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:C=>{y(A=>{ur(A,C)})}}),r._p.forEach(C=>{ur(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 vA(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&&ha(a),a=qm,a._s.has(r)||(s?Jm(r,t,o,a):mA(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 gA=fA(),Ar=/bookSource/.test(location.href),jo=vA("source",{state:()=>({bookSources:[],rssSources:[],errorPushSources:[],currentSource:vd,currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},isDebuging:!1}),getters:{sources:e=>Ar?e.bookSources:e.rssSources,currentSourceUrl:e=>Ar?e.currentSource.bookSourceUrl:e.currentSource.sourceUrl,searchKey:e=>Ar?e.currentSource.ruleSearch.checkKeyWord||"我的":null},actions:{startDebug(){this.currentTab="editDebug",this.isDebuging=!0},debugFinish(){this.isDebuging=!1},saveSources(e){Ar?this.bookSources=e:this.rssSources=e},deleteSources(e){let t=Ar?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;Ar?(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){Ar?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]&&pP[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 mi(e){return e===!1||e==null?e:U.isArray(e)?e.map(mi):String(e)}function mP(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 vP(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 gP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function yP(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 ya{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]=mi(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())&&!vP(t)?i(hP(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 mP(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]=mi(o),delete n[s];return}const a=t?gP(s):String(s).trim();a!==s&&delete n[s],n[a]=mi(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]||(yP(o,i),r[a]=!0)}return U.isArray(t)?t.forEach(s):s(t),this}}ya.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.freezeMethods(ya.prototype);U.freezeMethods(ya);const Kn=ya;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 bP(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 _P=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 wP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function SP(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function pv(e,t){return e&&!wP(t)?SP(e,t):t}const EP=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 CP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OP(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=OP(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 TP=typeof XMLHttpRequest<"u",xP=TP&&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};bP(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||EP(c))&&e.xsrfCookieName&&_P.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},qr=NP.create({baseURL:"",timeout:5*LP});qr.interceptors.response.use(e=>e,MP);const ba=/bookSource/i.test(location.href),FP=()=>ba?qr.get("getBookSources"):qr.get("getRssSources"),BP=e=>vv(Array.of(e)),vv=e=>ba?qr.post("saveBookSources",e):qr.post("saveRssSources",e),DP=e=>ba?qr.post("deleteBookSources",e):qr.post("deleteRssSources",e),jP=(e,t,n,r)=>{const{hostname:o,port:s}=new URL(""),i=`ws://${o}:${Number(s)+1}/${ba?"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:FP,saveSources:vv,saveSource:BP,deleteSource:DP,debug:jP},zP={__name:"editDebug",setup(e){const t=jo(),n=V(""),r=V("");Ki(()=>{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 Ki(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=_A,u=aA,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 gv(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 yv(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 oi=1;oi<20;oi++)Ps["f".concat(oi)]=111+oi;var Ze=[],$d=!1,bv="all",_v=[],_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 wv(e){bv=e||"all"}function ks(){return bv||"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&&wv(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=yv(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;lA(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=S8;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(KS)},{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(IE),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=p$,u=P8,c=n$,f=t$,p=ET,m=ST,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
|
||||
每行一条发现分类(网址域名可省略),例:
|
||||
名称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"]]);/*!
|
||||
* 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])&&Sv(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 Sv(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 Ev(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=Ev(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:Ev(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
|
||||
@@ -0,0 +1 @@
|
||||
@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","\5fae\8f6f\96c5\9ed1",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-activLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
.editor{display:flex;align-items:stretch;height:100vh}.left{width:calc(50% - 55px);min-width:500px;display:inline-block}.main{width:100%;height:calc(100vh - 64px);overflow-y:auto}textarea{min-height:20px;flex:1;outline:none;border-radius:4px;border:#ccc 1px solid;font-size:14px;font-family:Cascadia,Microsoft YaHei UI,Arial,serif;line-height:20px;padding:10px}textarea[data-v-d8aca153]{font-size:14px}input[data-v-d61c2689]{outline:none;height:25px;font-size:16px}textarea[data-v-d61c2689]{font-size:14px}.search[data-v-cf831c84]{border:1px solid #dddddd;border-radius:4px}input[data-v-cf831c84]{text-align:center;font-size:16px;height:25px;outline:none}.tool[data-v-cf831c84]{display:flex;justify-content:space-around;padding:4px 0}.tool button[data-v-cf831c84]{border-radius:4px;padding:5px;outline:none;border:none;flex:1;margin:0 2px}.tool button[data-v-cf831c84]:hover{background-color:#ddd}input[type=checkbox][data-v-cf831c84]{transform:scale(2);margin:0 15px}.book_item[data-v-cf831c84]{overflow:hidden;display:flex;align-items:center;margin-top:10px;padding:10px;cursor:pointer;background-color:#eee}.book_active[data-v-cf831c84]{background-color:#32cd32}.book_index[data-v-cf831c84]{width:auto;height:30px;text-align:center;line-height:30px;border-radius:8px;padding:0 10px;background-color:#ffb6c1}.book_info[data-v-cf831c84]{display:flex;justify-content:space-between}.source_list[data-v-cf831c84]{height:calc(100vh - 125px);overflow-y:auto}a[data-v-0b73ba44]{display:block;height:25px;transition:margin-left .3s ease}a[data-v-0b73ba44]:hover{color:red;margin-left:10px}code[data-v-0b73ba44]{display:inline-block;font-size:16px;font-family:Cascadia Mono,JetBrains Mono,Microsoft YaHei UI,serif;background-color:#f3f4f4;border-radius:4px}.author[data-v-0b73ba44]{position:fixed;right:20px;bottom:20px}.author a[data-v-0b73ba44]{padding:5px 10px;border-radius:4px}.author a[data-v-0b73ba44]:hover{box-shadow:0 0 3px 3px #ccc;background-color:#ddd}.out{min-width:620px;flex:1;display:flex;flex-flow:column}.out .box{display:flex;flex:1;flex-flow:column}.success[data-v-162bb8f8]{z-index:3;position:fixed;top:100px;left:50%;transform:translate(-50%);background-color:#7fffd4;padding:10px;border-radius:8px;color:#333}p[data-v-162bb8f8]{margin:0}.warm[data-v-cfdb9dd5]{position:fixed;top:100px;left:50%;transform:translate(-50%);color:#eee;background-color:#ff1d5e;padding:20px;border-radius:8px;font-size:18px;z-index:100}button[data-v-cfdb9dd5]{float:right;width:70px;height:35px;outline:none;border:unset;border-radius:8px;font-size:14px;transition:background-color .3s ease}button[data-v-cfdb9dd5]:hover{color:#333;background-color:#7fffd4}.fixed[data-v-ef02950c]{position:fixed;top:100px;left:50%;transform:translate(-50%)}.half-circle-spinner[data-v-ef02950c],.half-circle-spinner *[data-v-ef02950c]{box-sizing:border-box}.half-circle-spinner[data-v-ef02950c]{width:60px;height:60px;border-radius:100%;position:relative}.half-circle-spinner .circle[data-v-ef02950c]{content:"";position:absolute;width:100%;height:100%;border-radius:100%;border:6px solid transparent}.half-circle-spinner .circle.circle-1[data-v-ef02950c]{border-top-color:#ff1d5e;animation:half-circle-spinner-animation-ef02950c 1s infinite}.half-circle-spinner .circle.circle-2[data-v-ef02950c]{border-bottom-color:#ff1d5e;animation:half-circle-spinner-animation-ef02950c 1s infinite alternate}@keyframes half-circle-spinner-animation-ef02950c{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.menu{display:flex;flex-direction:column;justify-content:center}button[data-v-138678d8]{width:100px;height:50px;margin:5px;outline:none;padding:10px;font-size:16px;border-radius:4px;box-sizing:border-box;border:#333333 solid 1px;background-color:transparent;transition:all .3s ease;overflow:hidden}button span[data-v-138678d8]{display:inline-block;transform:translateY(20px);opacity:0;font-size:12px;transition:all .3s ease}button[data-v-138678d8]:hover{color:#fff;background-color:gray}button:hover span[data-v-138678d8]{transform:translateY(0);opacity:1}span[data-v-d16eba09]{display:flex;justify-content:space-around;width:70px;white-space:nowrap}span i[data-v-d16eba09]{font-style:normal}.edit_input[data-v-d16eba09]{display:flex;justify-content:space-between;align-items:center;margin:10px 5px}a{text-decoration:none;color:#333}ul,body{margin:0;padding:0}ul{width:100%;height:40px;display:flex}ul li{display:block;text-align:center;line-height:40px;width:16%;list-style:none;cursor:pointer}ul li:hover{color:red}.active{color:#fff!important;background-color:#80808075;border-bottom:unset!important}ul li[data-v-e9dfd270]{border-bottom:#333333 2px solid}a[data-v-e9dfd270]{font-size:18px;color:#00f}
|
||||
@@ -1 +1 @@
|
||||
<!doctype html><html lang=""><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-196e7354.js"></script><link rel="stylesheet" href="./assets/index-ed8d6ebc.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-78d30a77.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