web source editor: v3.23.032608

This commit is contained in:
github-actions[bot] committed 2023-03-26 00:30:12 +00:00
1 parent 320700687b
commit 62578bf5cf
5 files changed
+4 -4

No files matched your search

@@ -1 +1 @@
.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:1px solid #ccc;font-size:14px;font-family:Cascadia,Microsoft YaHei UI,Arial,serif;line-height:20px;padding:10px 10px 10px}.fixed[data-v-ab8a8a34]{position:fixed;top:100px;left:50%;transform:translateX(-50%)}.half-circle-spinner [data-v-ab8a8a34],.half-circle-spinner[data-v-ab8a8a34]{box-sizing:border-box}.half-circle-spinner[data-v-ab8a8a34]{width:60px;height:60px;border-radius:100%;position:relative}.half-circle-spinner .circle[data-v-ab8a8a34]{content:"";position:absolute;width:100%;height:100%;border-radius:100%;border:6px solid transparent}.half-circle-spinner .circle.circle-1[data-v-ab8a8a34]{border-top-color:#ff1d5e;animation:half-circle-spinner-animation-ab8a8a34 1s infinite}.half-circle-spinner .circle.circle-2[data-v-ab8a8a34]{border-bottom-color:#ff1d5e;animation:half-circle-spinner-animation-ab8a8a34 1s infinite alternate}@keyframes half-circle-spinner-animation-ab8a8a34{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.warm[data-v-de5a7c30]{position:fixed;top:100px;left:50%;transform:translateX(-50%);color:#eee;background-color:#ff1d5e;padding:20px;border-radius:8px;font-size:18px;z-index:100}button[data-v-de5a7c30]{float:right;width:70px;height:35px;outline:none;border:unset;border-radius:8px;font-size:14px;transition:background-color .3s ease}.success[data-v-bef92f74],button[data-v-de5a7c30]:hover{color:#333;background-color:#7fffd4}.success[data-v-bef92f74]{z-index:3;position:fixed;top:100px;left:50%;transform:translateX(-50%);padding:10px;border-radius:8px}p[data-v-bef92f74]{margin:0}.menu{display:flex;flex-direction:column;justify-content:center}button[data-v-c2bd491a]{width:100px;height:50px;margin:5px;outline:none;padding:10px;font-size:16px;border-radius:4px;box-sizing:border-box;border:1px solid #333;background-color:transparent;transition:all .3s ease;overflow:hidden}button span[data-v-c2bd491a]{display:inline-block;transform:translateY(20px);opacity:0;font-size:12px;transition:all .3s ease}button[data-v-c2bd491a]:hover{color:#fff;background-color:gray}button:hover span[data-v-c2bd491a]{transform:translateY(0);opacity:1}textarea[data-v-554d8227]{font-size:14px}input[data-v-6969c1de]{outline:none;height:25px;font-size:16px}textarea[data-v-6969c1de]{font-size:14px}.search[data-v-5c2b9492]{border:1px solid #ddd;border-radius:4px}input[data-v-5c2b9492]{text-align:center;font-size:16px;height:25px;outline:none}.tool[data-v-5c2b9492]{display:flex;justify-content:space-around;padding:4px 0}.tool button[data-v-5c2b9492]{border-radius:4px;padding:5px;outline:none;border:none;flex:1;margin:0 2px}.tool button[data-v-5c2b9492]:hover{background-color:#ddd}input[type=checkbox][data-v-5c2b9492]{transform:scale(2);margin:0 15px 0}.book_item[data-v-5c2b9492]{overflow:hidden;display:flex;align-items:center;margin-top:10px;padding:10px;cursor:pointer;background-color:#eee}.book_active[data-v-5c2b9492]{background-color:#32cd32}.book_index[data-v-5c2b9492]{width:auto;height:30px;text-align:center;line-height:30px;border-radius:8px;padding:0 10px;background-color:#ffb6c1}.book_info[data-v-5c2b9492]{display:flex;justify-content:space-between}.source_list[data-v-5c2b9492]{height:calc(100vh - 125px);overflow-y:auto}a[data-v-7ac1e65e]{display:block;height:25px;transition:margin-left .3s ease}a[data-v-7ac1e65e]:hover{color:red;margin-left:10px}code[data-v-7ac1e65e]{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-7ac1e65e]{position:fixed;right:20px;bottom:20px}.author a[data-v-7ac1e65e]{padding:5px 10px;border-radius:4px}.author a[data-v-7ac1e65e]:hover{box-shadow:0 0 3px 3px #ccc;background-color:#ddd}.out{min-width:620px}.out,.out .box{flex:1;display:flex;flex-flow:column}span[data-v-915519b0]{display:flex;justify-content:space-around;width:70px;white-space:nowrap}span i[data-v-915519b0]{font-style:normal}.edit_input[data-v-915519b0]{display:flex;justify-content:space-between;align-items:center;margin:10px 5px}a{text-decoration:none;color:#333}body,ul{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:hsla(0,0%,50%,.459);border-bottom:unset!important}ul li[data-v-ac6d92b6]{border-bottom:2px solid #333}a[data-v-ac6d92b6]{font-size:18px;color:blue}
.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:1px solid #ccc;font-size:14px;font-family:Cascadia,Microsoft YaHei UI,Arial,serif;line-height:20px;padding:10px 10px 10px}.fixed[data-v-ab8a8a34]{position:fixed;top:100px;left:50%;transform:translateX(-50%)}.half-circle-spinner [data-v-ab8a8a34],.half-circle-spinner[data-v-ab8a8a34]{box-sizing:border-box}.half-circle-spinner[data-v-ab8a8a34]{width:60px;height:60px;border-radius:100%;position:relative}.half-circle-spinner .circle[data-v-ab8a8a34]{content:"";position:absolute;width:100%;height:100%;border-radius:100%;border:6px solid transparent}.half-circle-spinner .circle.circle-1[data-v-ab8a8a34]{border-top-color:#ff1d5e;animation:half-circle-spinner-animation-ab8a8a34 1s infinite}.half-circle-spinner .circle.circle-2[data-v-ab8a8a34]{border-bottom-color:#ff1d5e;animation:half-circle-spinner-animation-ab8a8a34 1s infinite alternate}@keyframes half-circle-spinner-animation-ab8a8a34{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.warm[data-v-de5a7c30]{position:fixed;top:100px;left:50%;transform:translateX(-50%);color:#eee;background-color:#ff1d5e;padding:20px;border-radius:8px;font-size:18px;z-index:100}button[data-v-de5a7c30]{float:right;width:70px;height:35px;outline:none;border:unset;border-radius:8px;font-size:14px;transition:background-color .3s ease}.success[data-v-bef92f74],button[data-v-de5a7c30]:hover{color:#333;background-color:#7fffd4}.success[data-v-bef92f74]{z-index:3;position:fixed;top:100px;left:50%;transform:translateX(-50%);padding:10px;border-radius:8px}p[data-v-bef92f74]{margin:0}.menu{display:flex;flex-direction:column;justify-content:center}button[data-v-c9cf95ee]{width:100px;height:50px;margin:5px;outline:none;padding:10px;font-size:16px;border-radius:4px;box-sizing:border-box;border:1px solid #333;background-color:transparent;transition:all .3s ease;overflow:hidden}button span[data-v-c9cf95ee]{display:inline-block;transform:translateY(20px);opacity:0;font-size:12px;transition:all .3s ease}button[data-v-c9cf95ee]:hover{color:#fff;background-color:gray}button:hover span[data-v-c9cf95ee]{transform:translateY(0);opacity:1}textarea[data-v-554d8227]{font-size:14px}input[data-v-6969c1de]{outline:none;height:25px;font-size:16px}textarea[data-v-6969c1de]{font-size:14px}.search[data-v-79a26999]{border:1px solid #ddd;border-radius:4px}input[data-v-79a26999]{text-align:center;font-size:16px;height:25px;outline:none}.tool[data-v-79a26999]{display:flex;justify-content:space-around;padding:4px 0}.tool button[data-v-79a26999]{border-radius:4px;padding:5px;outline:none;border:none;flex:1;margin:0 2px}.tool button[data-v-79a26999]:hover{background-color:#ddd}input[type=checkbox][data-v-79a26999]{transform:scale(2);margin:0 15px 0}.book_item[data-v-79a26999]{overflow:hidden;display:flex;align-items:center;margin-top:10px;padding:10px;cursor:pointer;background-color:#eee}.book_active[data-v-79a26999]{background-color:#32cd32}.book_index[data-v-79a26999]{width:auto;height:30px;text-align:center;line-height:30px;border-radius:8px;padding:0 10px;background-color:#ffb6c1}.book_info[data-v-79a26999]{display:flex;justify-content:space-between}.source_list[data-v-79a26999]{height:calc(100vh - 125px);overflow-y:auto}a[data-v-7ac1e65e]{display:block;height:25px;transition:margin-left .3s ease}a[data-v-7ac1e65e]:hover{color:red;margin-left:10px}code[data-v-7ac1e65e]{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-7ac1e65e]{position:fixed;right:20px;bottom:20px}.author a[data-v-7ac1e65e]{padding:5px 10px;border-radius:4px}.author a[data-v-7ac1e65e]:hover{box-shadow:0 0 3px 3px #ccc;background-color:#ddd}.out{min-width:620px}.out,.out .box{flex:1;display:flex;flex-flow:column}span[data-v-915519b0]{display:flex;justify-content:space-around;width:70px;white-space:nowrap}span i[data-v-915519b0]{font-style:normal}.edit_input[data-v-915519b0]{display:flex;justify-content:space-between;align-items:center;margin:10px 5px}a{text-decoration:none;color:#333}body,ul{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:hsla(0,0%,50%,.459);border-bottom:unset!important}ul li[data-v-ac6d92b6]{border-bottom:2px solid #333}a[data-v-ac6d92b6]{font-size:18px;color:blue}
+1 -1
View File
@@ -1 +1 @@
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="./favicon.ico"><title>legado_web_source_editor</title><script defer="defer" src="./js/chunk-vendors.1a415b4f.js"></script><script defer="defer" src="./js/app.a1586f17.js"></script><link href="./css/app.17c64812.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but legado_web_source_editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="./favicon.ico"><title>legado_web_source_editor</title><script defer="defer" src="./js/chunk-vendors.f2d92146.js"></script><script defer="defer" src="./js/app.e79f5fd2.js"></script><link href="./css/app.b57b5dad.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but legado_web_source_editor doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
@@ -1 +0,0 @@
(function(){"use strict";var e={7530:function(e,t,r){var o=r(9963),n=r(6252);const i={class:"editor"};function l(e,t,r,o,l,a){const c=(0,n.up)("router-view");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n.Wm)(c)])}var a={setup(){}},c=r(3744);const s=(0,c.Z)(a,[["render",l]]);var u=s,d=r(2201),p=r(3577);const g={class:"left"},h=["onClick"];function S(e,t,r,o,i,l){const a=(0,n.up)("edit-input-list"),c=(0,n.up)("edit-menu"),s=(0,n.up)("edit-out");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n._)("div",g,[(0,n._)("div",null,[(0,n._)("ul",null,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(Object.entries(e.config),(([t,r])=>((0,n.wg)(),(0,n.iD)("li",{onClick:e=>o.changeSelectTabKey(t),key:t,class:(0,p.C_)(t===e.selectTabKey?"active":"")},(0,p.zw)(r.name),11,h)))),128))])]),(0,n.Wm)(a,{data:o.currentTabData},null,8,["data"])]),(0,n.Wm)(c),(0,n.Wm)(s)],64)}var w=r(2262);r(7658);const y=e=>((0,n.dD)("data-v-c2bd491a"),e=e(),(0,n.Cn)(),e),m={class:"menu"},v=y((()=>(0,n._)("span",null,"Ctrl+P",-1))),b=y((()=>(0,n._)("span",null,"Ctrl+E",-1))),f=y((()=>(0,n._)("span",null,"Ctrl+Z",-1))),_=y((()=>(0,n._)("span",null,"Ctrl+Enter",-1))),k=y((()=>(0,n._)("span",null,"Ctrl+S",-1)));function C(e,t,r,o,i,l){const a=(0,n.up)("edit-loading"),c=(0,n.up)("edit-warn"),s=(0,n.up)("edit-success");return(0,n.wg)(),(0,n.iD)("div",m,[(0,n._)("div",null,[o.showLoading?((0,n.wg)(),(0,n.j4)(a,{key:0})):(0,n.kq)("",!0),(0,n.Wm)(c,{text:o.warnText,"is-show":o.warnShow,onChangeShow:o.changeShow},null,8,["text","is-show","onChangeShow"]),o.successShow?((0,n.wg)(),(0,n.j4)(s,{key:1,isShow:o.successShow,onChangeShow:o.changeSuccessShow,text:o.successText},null,8,["isShow","onChangeShow","text"])):(0,n.kq)("",!0)]),(0,n._)("button",{onClick:t[0]||(t[0]=(...e)=>o.push&&o.push(...e)),title:"Ctrl+P"},[(0,n.Uk)("⇈推送源 "),v]),(0,n._)("button",{onClick:t[1]||(t[1]=(...e)=>o.pull&&o.pull(...e))},"⇊拉取源"),(0,n._)("button",{onClick:t[2]||(t[2]=(...e)=>o.conver2Tab&&o.conver2Tab(...e)),title:"Ctrl+E"},[(0,n.Uk)(" ⋙生成源"),b]),(0,n._)("button",{onClick:t[3]||(t[3]=(...e)=>o.conver2Source&&o.conver2Source(...e))},"⋘编辑源"),(0,n._)("button",{onClick:t[4]||(t[4]=(...e)=>o.clearEdit&&o.clearEdit(...e))},"✗清空表单"),(0,n._)("button",{onClick:t[5]||(t[5]=(...e)=>o.undo&&o.undo(...e)),title:"Ctrl+Z"},[(0,n.Uk)("↶撤销操作"),f]),(0,n._)("button",{onClick:t[6]||(t[6]=(...e)=>o.redo&&o.redo(...e))},"↷重做操作"),(0,n._)("button",{onClick:t[7]||(t[7]=(...e)=>o.debug&&o.debug(...e)),title:"Ctrl+Enter"},[(0,n.Uk)(" ⇏调试源 "),_]),(0,n._)("button",{onClick:t[8]||(t[8]=(...e)=>o.saveSource&&o.saveSource(...e)),title:"Ctrl+S"},[(0,n.Uk)(" ✓保存源"),k])])}function U(e,t){return fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>e.json()))}function x(e){return fetch(e).then((e=>e.json()))}function T(e,t=!0){let r=/bookSource/.test(location.href),o=`http://${localStorage.getItem("url")||location.host}/`,n=r?"BookSource":"RssSource";return`${o}${e}${n}${t?"s":""}`}function D(){return x(T("get"))}function N(e){return U(T("save"),e)}function I(e){return U(T("save",!1),e)}function B(e){return U(T("delete"),e)}var E=r(3907),L=(0,E.MT)({state:{url:localStorage.getItem("url")||"",bookSources:[],rssSources:[],currentSource:{},currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},deBugMsg:"",searchKey:""},getters:{sources(e){return/bookSource/.test(location.href)?e.bookSources:e.rssSources}},mutations:{changeSearchKey(e,t){e.searchKey=t},saveSources(e,t){/bookSource/.test(location.href)?e.bookSources=t:e.rssSources=t},deleteSources(e,t){let r=/bookSource/.test(location.href)?e.bookSources:e.rssSources;t.forEach((e=>{let t=r.indexOf(e);t>-1&&r.splice(t,1)}))},saveCurrentSource(e){let t,r,o=e.currentSource;/bookSource/.test(location.href)?(t=e.bookSources,r="bookSourceUrl"):(t=e.rssSources,r="sourceUrl");let n=t.findIndex((e=>e[r]===o[r]));o=JSON.parse(JSON.stringify(o)),n>-1?t.splice(n,1,o):t.push(o)},changeCurrentSource(e,t){const r=JSON.stringify(t);e.currentSource=JSON.parse(r)},changeCurrentSourceValue(e,t){let r=t.value,o={true:!0,false:!1};if("Boolean"===t.type&&(r=o[r]),"Number"===t.type&&(r=Number(r)),t.key.includes("_")){let o=t.key.split("_")[0],n=t.key.split("_")[1],i={};i[n]=r,e.currentSource[o]=Object.assign(e.currentSource[o]||{},i)}else e.currentSource[t.key]=r;e.currentSource.lastUpdateTime=(new Date).getTime(),/bookSource/.test(location.href)&&(e.currentSource["ruleToc"]=e.currentSource["ruleToc"]||{})},changeTabName(e,t){e.currentTab=t,localStorage.setItem("tabName",t),console.log(t)},changeEditTabSource(e,t){const r=JSON.stringify(t);e.editTabSource=JSON.parse(r)},editHistory(e,t){let r;if(localStorage.getItem("history"))r=JSON.parse(localStorage.getItem("history")),r.new.push(t),r.new.length>50&&r.new.shift(),r.old.length>50&&r.old.shift(),localStorage.setItem("history",JSON.stringify(r));else{const e={new:[t],old:[]};localStorage.setItem("history",JSON.stringiLine truncated
@@ -0,0 +1 @@
(function(){"use strict";var e={9700:function(e,t,r){var n=r(9963),o=r(6252);const i={class:"editor"};function l(e,t,r,n,l,a){const c=(0,o.up)("router-view");return(0,o.wg)(),(0,o.iD)("div",i,[(0,o.Wm)(c)])}var a={setup(){}},c=r(3744);const s=(0,c.Z)(a,[["render",l]]);var u=s,d=r(2201),p=r(3577);const h={class:"left"},g=["onClick"];function S(e,t,r,n,i,l){const a=(0,o.up)("edit-input-list"),c=(0,o.up)("edit-menu"),s=(0,o.up)("edit-out");return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("div",h,[(0,o._)("div",null,[(0,o._)("ul",null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(Object.entries(e.config),(([t,r])=>((0,o.wg)(),(0,o.iD)("li",{onClick:e=>n.changeSelectTabKey(t),key:t,class:(0,p.C_)(t===e.selectTabKey?"active":"")},(0,p.zw)(r.name),11,g)))),128))])]),(0,o.Wm)(a,{data:n.currentTabData},null,8,["data"])]),(0,o.Wm)(c),(0,o.Wm)(s)],64)}var w=r(2262);r(7658);const y=e=>((0,o.dD)("data-v-c9cf95ee"),e=e(),(0,o.Cn)(),e),m={class:"menu"},v=y((()=>(0,o._)("span",null,"Ctrl+P",-1))),b=y((()=>(0,o._)("span",null,"Ctrl+E",-1))),f=y((()=>(0,o._)("span",null,"Ctrl+Z",-1))),_=y((()=>(0,o._)("span",null,"Ctrl+Enter",-1))),k=y((()=>(0,o._)("span",null,"Ctrl+S",-1)));function C(e,t,r,n,i,l){const a=(0,o.up)("edit-loading"),c=(0,o.up)("edit-warn"),s=(0,o.up)("edit-success");return(0,o.wg)(),(0,o.iD)("div",m,[(0,o._)("div",null,[n.showLoading?((0,o.wg)(),(0,o.j4)(a,{key:0})):(0,o.kq)("",!0),(0,o.Wm)(c,{text:n.warnText,"is-show":n.warnShow,onChangeShow:n.changeShow},null,8,["text","is-show","onChangeShow"]),n.successShow?((0,o.wg)(),(0,o.j4)(s,{key:1,isShow:n.successShow,onChangeShow:n.changeSuccessShow,text:n.successText},null,8,["isShow","onChangeShow","text"])):(0,o.kq)("",!0)]),(0,o._)("button",{onClick:t[0]||(t[0]=(...e)=>n.push&&n.push(...e)),title:"Ctrl+P"},[(0,o.Uk)("⇈推送源 "),v]),(0,o._)("button",{onClick:t[1]||(t[1]=(...e)=>n.pull&&n.pull(...e))},"⇊拉取源"),(0,o._)("button",{onClick:t[2]||(t[2]=(...e)=>n.conver2Tab&&n.conver2Tab(...e)),title:"Ctrl+E"},[(0,o.Uk)(" ⋙生成源"),b]),(0,o._)("button",{onClick:t[3]||(t[3]=(...e)=>n.conver2Source&&n.conver2Source(...e))},"⋘编辑源"),(0,o._)("button",{onClick:t[4]||(t[4]=(...e)=>n.clearEdit&&n.clearEdit(...e))},"✗清空表单"),(0,o._)("button",{onClick:t[5]||(t[5]=(...e)=>n.undo&&n.undo(...e)),title:"Ctrl+Z"},[(0,o.Uk)("↶撤销操作"),f]),(0,o._)("button",{onClick:t[6]||(t[6]=(...e)=>n.redo&&n.redo(...e))},"↷重做操作"),(0,o._)("button",{onClick:t[7]||(t[7]=(...e)=>n.debug&&n.debug(...e)),title:"Ctrl+Enter"},[(0,o.Uk)(" ⇏调试源 "),_]),(0,o._)("button",{onClick:t[8]||(t[8]=(...e)=>n.saveSource&&n.saveSource(...e)),title:"Ctrl+S"},[(0,o.Uk)(" ✓保存源"),k])])}function U(e,t){return fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((e=>e.json()))}function x(e){return fetch(e).then((e=>e.json()))}function T(e,t=!0){let r=/bookSource/.test(location.href),n=`http://${localStorage.getItem("url")||location.host}/`,o=r?"BookSource":"RssSource";return`${n}${e}${o}${t?"s":""}`}function D(){return x(T("get"))}function N(e){return U(T("save"),e)}function I(e){return U(T("save",!1),e)}function B(e){return U(T("delete"),e)}var E=r(3907),L=(0,E.MT)({state:{url:localStorage.getItem("url")||"",bookSources:[],rssSources:[],currentSource:{},currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},deBugMsg:"",searchKey:""},getters:{sources(e){return/bookSource/.test(location.href)?e.bookSources:e.rssSources}},mutations:{changeSearchKey(e,t){e.searchKey=t},saveSources(e,t){/bookSource/.test(location.href)?e.bookSources=t:e.rssSources=t},deleteSources(e,t){let r=/bookSource/.test(location.href)?e.bookSources:e.rssSources;t.forEach((e=>{let t=r.indexOf(e);t>-1&&r.splice(t,1)}))},saveCurrentSource(e){let t,r,n=e.currentSource;/bookSource/.test(location.href)?(t=e.bookSources,r="bookSourceUrl"):(t=e.rssSources,r="sourceUrl");let o=t.findIndex((e=>e[r]===n[r]));n=JSON.parse(JSON.stringify(n)),o>-1?t.splice(o,1,n):t.push(n)},changeCurrentSource(e,t){const r=JSON.stringify(t);e.currentSource=JSON.parse(r)},changeCurrentSourceValue(e,t){let r=t.value,n={true:!0,false:!1};if("Boolean"===t.type&&(r=n[r]),"Number"===t.type&&(r=Number(r)),t.key.includes("_")){let n=t.key.split("_")[0],o=t.key.split("_")[1],i={};i[o]=r,e.currentSource[n]=Object.assign(e.currentSource[n]||{},i)}else e.currentSource[t.key]=r;e.currentSource.lastUpdateTime=(new Date).getTime(),/bookSource/.test(location.href)&&(e.currentSource["ruleToc"]=e.currentSource["ruleToc"]||{})},changeTabName(e,t){e.currentTab=t,localStorage.setItem("tabName",t)},changeEditTabSource(e,t){const r=JSON.stringify(t);e.editTabSource=JSON.parse(r)},editHistory(e,t){let r;if(localStorage.getItem("history"))r=JSON.parse(localStorage.getItem("history")),r.new.push(t),r.new.length>50&&r.new.shift(),r.old.length>50&&r.old.shift(),localStorage.setItem("history",JSON.stringify(r));else{const e={new:[t],old:[]};localStorage.setItem("history",JSON.stringify(e))}},editHiLine truncated
@@ -1,4 +1,4 @@
(self["webpackChunklegado_web_source_editor"]=self["webpackChunklegado_web_source_editor"]||[]).push([[998],{2262:function(t,e,n){"use strict";n.d(e,{B:function(){return s},BK:function(){return Ht},Bj:function(){return i},Fl:function(){return Zt},IU:function(){return Tt},Jd:function(){return S},PG:function(){return jt},SU:function(){return Gt},Um:function(){return St},WL:function(){return qt},X$:function(){return R},X3:function(){return At},XI:function(){return Dt},Xl:function(){return It},dq:function(){return Nt},iH:function(){return Ut},j:function(){return E},lk:function(){return O},nZ:function(){return u},qj:function(){return Ct},qq:function(){return w},yT:function(){return Pt}});var r=n(3577);let o;class i{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!t&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=o;try{return o=this,t()}finally{o=e}}else 0}on(){o=this}off(){o=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this._active=!1}}}function s(t){return new i(t)}function c(t,e=o){e&&e.active&&e.effects.push(t)}function u(){return o}const l=t=>{const e=new Set(t);return e.w=0,e.n=0,e},a=t=>(t.w&m)>0,f=t=>(t.n&m)>0,p=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=m},d=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const o=e[r];a(o)&&!f(o)?o.delete(t):e[n++]=o,o.w&=~m,o.n&=~m}e.length=n}},h=new WeakMap;let v=0,m=1;const g=30;let y;const b=Symbol(""),_=Symbol("");class w{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,c(this,n)}run(){if(!this.active)return this.fn();let t=y,e=k;while(t){if(t===this)return;t=t.parent}try{return this.parent=y,y=this,k=!0,m=1<<++v,v<=g?p(this):x(this),this.fn()}finally{v<=g&&d(this),m=1<<--v,y=this.parent,k=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){y===this?this.deferStop=!0:this.active&&(x(this),this.onStop&&this.onStop(),this.active=!1)}}function x(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let k=!0;const C=[];function S(){C.push(k),k=!1}function O(){const t=C.pop();k=void 0===t||t}function E(t,e,n){if(k&&y){let e=h.get(t);e||h.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=l());const o=void 0;j(r,o)}}function j(t,e){let n=!1;v<=g?f(t)||(t.n|=m,n=!a(t)):n=!t.has(y),n&&(t.add(y),y.deps.push(t))}function R(t,e,n,o,i,s){const c=h.get(t);if(!c)return;let u=[];if("clear"===e)u=[...c.values()];else if("length"===n&&(0,r.kJ)(t)){const t=Number(o);c.forEach(((e,n)=>{("length"===n||n>=t)&&u.push(e)}))}else switch(void 0!==n&&u.push(c.get(n)),e){case"add":(0,r.kJ)(t)?(0,r.S0)(n)&&u.push(c.get("length")):(u.push(c.get(b)),(0,r._N)(t)&&u.push(c.get(_)));break;case"delete":(0,r.kJ)(t)||(u.push(c.get(b)),(0,r._N)(t)&&u.push(c.get(_)));break;case"set":(0,r._N)(t)&&u.push(c.get(b));break}if(1===u.length)u[0]&&P(u[0]);else{const t=[];for(const e of u)e&&t.push(...e);P(l(t))}}function P(t,e){const n=(0,r.kJ)(t)?t:[...t];for(const r of n)r.computed&&A(r,e);for(const r of n)r.computed||A(r,e)}function A(t,e){(t!==y||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function T(t,e){var n;return null===(n=h.get(t))||void 0===n?void 0:n.get(e)}const I=(0,r.fY)("__proto__,__v_isRef,__isVue"),F=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(r.yk)),M=J(),L=J(!1,!0),$=J(!0),N=U();function U(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Tt(this);for(let e=0,o=this.length;e<o;e++)E(n,"get",e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(Tt)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){S();const n=Tt(this)[e].apply(this,t);return O(),n}})),t}function D(t){const e=Tt(this);return E(e,"has",t),e.hasOwnProperty(t)}function J(t=!1,e=!1){return function(n,o,i){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_isShallow"===o)return e;if("__v_raw"===o&&i===(t?e?wt:_t:e?bt:yt).get(n))return n;const s=(0,r.kJ)(n);if(!t){if(s&&(0,r.RI)(N,o))return Reflect.get(N,o,i);if("hasOwnProperty"===o)return D}const c=Reflect.get(n,o,i);return((0,r.yk)(o)?F.has(o):I(o))?c:(t||E(n,"get",o),e?c:Nt(c)?s&&(0,r.S0)(o)?c:c.value:(0,r.Kn)(c)?t?Ot(c):Ct(c):c)}}const V=B(),G=B(!0);function B(t=!1){return function(e,n,o,i){let s=e[n];if(Rt(s)&&Nt(s)&&!Nt(o))return!1;if(!t&&(Pt(o)||Rt(o)||(s=Tt(s),o=Tt(o)),!(0,r.kJ)(e)&&Nt(s)&&!Nt(o)))return s.value=o,!0;const c=(0,r.kJ)(e)&&(0,r.S0)(n)?Number(n)<e.length:(0,r.RI)(e,n),u=Reflect.set(e,n,o,i);return eLine truncated
(self["webpackChunklegado_web_source_editor"]=self["webpackChunklegado_web_source_editor"]||[]).push([[998],{2262:function(t,e,n){"use strict";n.d(e,{B:function(){return s},BK:function(){return Ht},Bj:function(){return i},Fl:function(){return Zt},IU:function(){return Tt},Jd:function(){return S},PG:function(){return jt},SU:function(){return Gt},Um:function(){return St},WL:function(){return qt},X$:function(){return R},X3:function(){return At},XI:function(){return Dt},Xl:function(){return It},dq:function(){return Nt},iH:function(){return Ut},j:function(){return E},lk:function(){return O},nZ:function(){return u},qj:function(){return Ct},qq:function(){return w},yT:function(){return Pt}});var r=n(3577);let o;class i{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!t&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=o;try{return o=this,t()}finally{o=e}}else 0}on(){o=this}off(){o=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this._active=!1}}}function s(t){return new i(t)}function c(t,e=o){e&&e.active&&e.effects.push(t)}function u(){return o}const l=t=>{const e=new Set(t);return e.w=0,e.n=0,e},a=t=>(t.w&m)>0,f=t=>(t.n&m)>0,p=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=m},d=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const o=e[r];a(o)&&!f(o)?o.delete(t):e[n++]=o,o.w&=~m,o.n&=~m}e.length=n}},h=new WeakMap;let v=0,m=1;const g=30;let y;const b=Symbol(""),_=Symbol("");class w{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,c(this,n)}run(){if(!this.active)return this.fn();let t=y,e=k;while(t){if(t===this)return;t=t.parent}try{return this.parent=y,y=this,k=!0,m=1<<++v,v<=g?p(this):x(this),this.fn()}finally{v<=g&&d(this),m=1<<--v,y=this.parent,k=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){y===this?this.deferStop=!0:this.active&&(x(this),this.onStop&&this.onStop(),this.active=!1)}}function x(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let k=!0;const C=[];function S(){C.push(k),k=!1}function O(){const t=C.pop();k=void 0===t||t}function E(t,e,n){if(k&&y){let e=h.get(t);e||h.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=l());const o=void 0;j(r,o)}}function j(t,e){let n=!1;v<=g?f(t)||(t.n|=m,n=!a(t)):n=!t.has(y),n&&(t.add(y),y.deps.push(t))}function R(t,e,n,o,i,s){const c=h.get(t);if(!c)return;let u=[];if("clear"===e)u=[...c.values()];else if("length"===n&&(0,r.kJ)(t)){const t=Number(o);c.forEach(((e,n)=>{("length"===n||n>=t)&&u.push(e)}))}else switch(void 0!==n&&u.push(c.get(n)),e){case"add":(0,r.kJ)(t)?(0,r.S0)(n)&&u.push(c.get("length")):(u.push(c.get(b)),(0,r._N)(t)&&u.push(c.get(_)));break;case"delete":(0,r.kJ)(t)||(u.push(c.get(b)),(0,r._N)(t)&&u.push(c.get(_)));break;case"set":(0,r._N)(t)&&u.push(c.get(b));break}if(1===u.length)u[0]&&P(u[0]);else{const t=[];for(const e of u)e&&t.push(...e);P(l(t))}}function P(t,e){const n=(0,r.kJ)(t)?t:[...t];for(const r of n)r.computed&&A(r,e);for(const r of n)r.computed||A(r,e)}function A(t,e){(t!==y||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function T(t,e){var n;return null===(n=h.get(t))||void 0===n?void 0:n.get(e)}const I=(0,r.fY)("__proto__,__v_isRef,__isVue"),F=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(r.yk)),M=J(),L=J(!1,!0),$=J(!0),N=U();function U(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Tt(this);for(let e=0,o=this.length;e<o;e++)E(n,"get",e+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(Tt)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){S();const n=Tt(this)[e].apply(this,t);return O(),n}})),t}function D(t){const e=Tt(this);return E(e,"has",t),e.hasOwnProperty(t)}function J(t=!1,e=!1){return function(n,o,i){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_isShallow"===o)return e;if("__v_raw"===o&&i===(t?e?wt:_t:e?bt:yt).get(n))return n;const s=(0,r.kJ)(n);if(!t){if(s&&(0,r.RI)(N,o))return Reflect.get(N,o,i);if("hasOwnProperty"===o)return D}const c=Reflect.get(n,o,i);return((0,r.yk)(o)?F.has(o):I(o))?c:(t||E(n,"get",o),e?c:Nt(c)?s&&(0,r.S0)(o)?c:c.value:(0,r.Kn)(c)?t?Ot(c):Ct(c):c)}}const V=B(),G=B(!0);function B(t=!1){return function(e,n,o,i){let s=e[n];if(Rt(s)&&Nt(s)&&!Nt(o))return!1;if(!t&&(Pt(o)||Rt(o)||(s=Tt(s),o=Tt(o)),!(0,r.kJ)(e)&&Nt(s)&&!Nt(o)))return s.value=o,!0;const c=(0,r.kJ)(e)&&(0,r.S0)(n)?Number(n)<e.length:(0,r.RI)(e,n),u=Reflect.set(e,n,o,i);return eLine truncated
/*!
* vuex v4.1.0
* (c) 2022 Evan You