diff --git a/app/src/main/assets/web/vue/assets/BookChapter-4ade18f3.css b/app/src/main/assets/web/vue/assets/BookChapter-0adbc371.css similarity index 80% rename from app/src/main/assets/web/vue/assets/BookChapter-4ade18f3.css rename to app/src/main/assets/web/vue/assets/BookChapter-0adbc371.css index aa22ae277..64ce79ee9 100644 --- a/app/src/main/assets/web/vue/assets/BookChapter-4ade18f3.css +++ b/app/src/main/assets/web/vue/assets/BookChapter-0adbc371.css @@ -1 +1 @@ -@charset "UTF-8";.title[data-v-98799b36]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-98799b36]{display:block;word-wrap:break-word;word-break:break-all;letter-spacing:calc(var(--c62877dc) * 1em);line-height:calc(1 + var(--1ecc5ae0));margin:calc(var(--37c81202) * 1em) 0}p[data-v-98799b36] img{height:1em}.full[data-v-98799b36]{display:block;width:100%}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}@font-face{font-family:FZZCYSK;src:local("\263a"),url(./popfont-a80d6a88.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-9aaccea3.woff) format("woff")}[data-v-7c8b23a7] .iconfont,[data-v-7c8b23a7] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-7c8b23a7]{user-select:none;margin:-13px;text-align:left;padding:40px 0 40px 24px;background:#ede7da url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAD1BMVEX48dr48Nf58tv379X17NJtIBxUAAACFUlEQVQ4y1XRUZakMAgF0Af2AiDWApDZgHZqAV1nZv9rGh7Rj7Y8McUFEg1wvcMESMNVD/neU8Xcaz7nYYkYlYO6Ti82PBI4BvIEg1aj3wKwRvIMgZsUy5LdhCawPFh1sZs4SrlyN9fQKpv8s5dgZ2eLyqqJiu+WkCmUEybXkm3INS01WAiv0PapJ0CZc0SJQUzcWnZYbOOY20iFD8Bk+/j2A3wNxH7GdShFYS5ff237kXh9I9zSkQmIAhOsOSVfJ6DIXTMDaPnzkRJ92S1BQQmXl5LdirgRLLDdcYqcGPwe3QN4xCBiGNbrqq9wpW1XCecChwaQdVOsRDpPCpeoolPdxeXp3WNB9PHVzWBHlygy4NJCCrFHREv6bDt0VGwJZASkpONmm1UseGeFKAQexgaAkrfYWl3AGxWOLL2AIMBNbCXpktmS3k3vHeYjGCPBa43wJTurO3ZFVpQSJdAZGLoHTyk1upkjxMEaIxum3iIARcCa5kSkFAW5fi1mUlL9eyOsaanFmOMruwvEdE3ZYzsRSzo5ewRLXyVPPEvknt8ij4DvCg2O7xOgBCUprEzV4z1WekSpUgI8DT2mrnSOXKRfQavwuKA1F+tFnMKdJSUpMA7wQAifWRkMgjUKKZE4lBl6MCM4B1pq1P4uIjDE6Pq6rL0FnW1nIFmta5vrSvq/Ch4tpqG/ZNyyWa5jZPktq81eYv8Bt5s4iFITOp4AAAAASUVORK5CYII=) repeat}.settings-wrapper .settings-title[data-v-7c8b23a7]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-7c8b23a7]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-7c8b23a7]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-7c8b23a7]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-7c8b23a7]{font:12px/16px PingFangSC-Regular,-apple-system,Simsun;display:inline-block;min-width:48px;margin-right:16px;vertical-align:middle;color:#666}.settings-wrapper .setting-list ul li .theme-item[data-v-7c8b23a7]{line-height:32px;width:34px;height:34px;margin-right:16px;margin-top:5px;border-radius:100%;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul li .theme-item .iconfont[data-v-7c8b23a7]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-7c8b23a7]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-7c8b23a7]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading[data-v-7c8b23a7]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-7c8b23a7],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-7c8b23a7]{width:78px;height:34px;cursor:pointer;margin-right:16px;border-radius:2px;text-align:center;vertical-align:middle;display:inline-block;font:14px/34px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.settings-wrapper .setting-list ul .font-list .font-item-input[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .font-item-input[data-v-7c8b23a7]{width:168px;color:#000}.settings-wrapper .setting-list ul .font-list .selected[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .selected[data-v-7c8b23a7]{color:#ed4259;border:1px solid #ed4259}.settings-wrapper .setting-list ul .font-list .font-item[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-7c8b23a7]:hover{border:1px solid #ed4259;color:#ed4259}.settings-wrapper .setting-list ul .font-size[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing[data-v-7c8b23a7]{margin-top:28px}.settings-wrapper .setting-list ul .font-size .resize[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize[data-v-7c8b23a7]{display:inline-block;width:274px;height:34px;vertical-align:middle;border-radius:2px}.settings-wrapper .setting-list ul .font-size .resize span[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize span[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize span[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize span[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize span[data-v-7c8b23a7]{width:89px;height:34px;line-height:34px;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul .font-size .resize span em[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize span em[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize span em[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize span em[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize span em[data-v-7c8b23a7]{font-style:normal}.settings-wrapper .setting-list ul .font-size .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .font-size .resize .more[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .read-width .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .read-width .resize .more[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .letter-spacing .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .letter-spacing .resize .more[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .line-spacing .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .line-spacing .resize .more[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .paragraph-spacing .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .paragraph-spacing .resize .more[data-v-7c8b23a7]:hover{color:#ed4259}.settings-wrapper .setting-list ul .font-size .resize .lang[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize .lang[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize .lang[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize .lang[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize .lang[data-v-7c8b23a7]{color:#a6a6a6;font-weight:400;font-family:FZZCYSK}.settings-wrapper .setting-list ul .font-size .resize b[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize b[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize b[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize b[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize b[data-v-7c8b23a7]{display:inline-block;height:20px;vertical-align:middle}.night[data-v-7c8b23a7] .theme-item,.night[data-v-7c8b23a7] .selected{border:1px solid #666}.night[data-v-7c8b23a7] .moon-icon{color:#ed4259}.night[data-v-7c8b23a7] .font-list .font-item,.night[data-v-7c8b23a7] .font-list .infinite-loading-item,.night .infinite-loading .font-item[data-v-7c8b23a7],.night .infinite-loading .infinite-loading-item[data-v-7c8b23a7],.night[data-v-7c8b23a7] .resize{border:1px solid #666;background:rgba(45,45,45,.5)}.night[data-v-7c8b23a7] .resize b{border-right:1px solid #666}.day[data-v-7c8b23a7] .theme-item{border:1px solid #e5e5e5}.day[data-v-7c8b23a7] .selected{border:1px solid #ed4259}.day[data-v-7c8b23a7] .moon-icon{display:inline;color:#fff3}.day[data-v-7c8b23a7] .font-list .font-item,.day[data-v-7c8b23a7] .font-list .infinite-loading-item,.day .infinite-loading .font-item[data-v-7c8b23a7],.day .infinite-loading .infinite-loading-item[data-v-7c8b23a7]{background:rgba(255,255,255,.5);border:1px solid rgba(0,0,0,.1)}.day[data-v-7c8b23a7] .resize{border:1px solid #e5e5e5;background:rgba(255,255,255,.5)}.day[data-v-7c8b23a7] .resize b{border-right:1px solid #e5e5e5}@media screen and (max-width: 500px){.settings-wrapper i[data-v-7c8b23a7]{display:flex!important;flex-wrap:wrap;padding-bottom:5px!important}}.selected[data-v-63716c56]{color:#eb4259}.wrapper[data-v-63716c56]{display:flex}.wrapper .cata-text[data-v-63716c56]{width:100%;margin-right:26px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cata-wrapper[data-v-4a9ff06c]{margin:-16px;padding:18px 0 24px 25px}.cata-wrapper .title[data-v-4a9ff06c]{font-size:18px;font-weight:400;font-family:FZZCYSK;margin:0 0 20px;color:#ed4259;width:fit-content;border-bottom:1px solid #ed4259}.cata-wrapper[data-v-4a9ff06c] .data-wrapper .cata{height:40px;cursor:pointer;font:16px/40px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.cata-wrapper .night[data-v-4a9ff06c] .cata{border-bottom:1px solid #666}.cata-wrapper .day[data-v-4a9ff06c] .cata{border-bottom:1px solid #f2f2f2}[data-v-ea7d72b2] .pop-setting{margin-left:68px;top:0}[data-v-ea7d72b2] .pop-cata{margin-left:10px}.chapter-wrapper[data-v-ea7d72b2]{padding:0 4%;flex-direction:column;align-items:center}.chapter-wrapper[data-v-ea7d72b2] .no-point{pointer-events:none}.chapter-wrapper .tool-bar[data-v-ea7d72b2]{position:fixed;top:0;left:50%;z-index:100}.chapter-wrapper .tool-bar .tools[data-v-ea7d72b2]{display:flex;flex-direction:column}.chapter-wrapper .tool-bar .tools .tool-icon[data-v-ea7d72b2]{font-size:18px;width:58px;height:48px;text-align:center;padding-top:12px;cursor:pointer;outline:none}.chapter-wrapper .tool-bar .tools .tool-icon .iconfont[data-v-ea7d72b2]{font-family:iconfont;width:16px;height:16px;font-size:16px;margin:0 auto 6px}.chapter-wrapper .tool-bar .tools .tool-icon .icon-text[data-v-ea7d72b2]{font-size:12px}.chapter-wrapper .read-bar[data-v-ea7d72b2]{position:fixed;bottom:0;right:50%;z-index:100}.chapter-wrapper .read-bar .tools[data-v-ea7d72b2]{display:flex;flex-direction:column}.chapter-wrapper .read-bar .tools .tool-icon[data-v-ea7d72b2]{font-size:18px;width:42px;height:31px;padding-top:12px;text-align:center;align-items:center;cursor:pointer;outline:none;margin-top:-1px}.chapter-wrapper .read-bar .tools .tool-icon .iconfont[data-v-ea7d72b2]{font-family:iconfont;width:16px;height:16px;font-size:16px;margin:0 auto 6px}.chapter-wrapper .chapter[data-v-ea7d72b2]{font-family:Microsoft YaHei,PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,sans-serif;text-align:left;padding:0 65px;min-height:100vh;width:670px;margin:0 auto}.chapter-wrapper .chapter[data-v-ea7d72b2] .el-loading-mask{background-color:#0000}.chapter-wrapper .chapter[data-v-ea7d72b2] .el-loading-spinner{font-size:36px;color:#b5b5b5}.chapter-wrapper .chapter[data-v-ea7d72b2] .el-loading-text{font-weight:500;color:#b5b5b5}.chapter-wrapper .chapter .content[data-v-ea7d72b2]{overflow:hidden;font-size:18px;line-height:1.8;font-family:Microsoft YaHei,PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,sans-serif}.chapter-wrapper .chapter .content .bottom-bar[data-v-ea7d72b2],.chapter-wrapper .chapter .content .top-bar[data-v-ea7d72b2]{height:64px}.day[data-v-ea7d72b2] .popup{box-shadow:0 2px 4px #0000001f,0 0 6px #0000000a}.day[data-v-ea7d72b2] .tool-icon{border:1px solid rgba(0,0,0,.1);margin-top:-1px;color:#000}.day[data-v-ea7d72b2] .tool-icon .icon-text{color:#0006}.day[data-v-ea7d72b2] .chapter{border:1px solid #d8d8d8;color:#262626}.night[data-v-ea7d72b2] .popup{box-shadow:0 2px 4px #0000007a,0 0 6px #00000029}.night[data-v-ea7d72b2] .tool-icon{border:1px solid #444;margin-top:-1px;color:#666}.night[data-v-ea7d72b2] .tool-icon .icon-text{color:#666}.night[data-v-ea7d72b2] .chapter{border:1px solid #444;color:#666}.night[data-v-ea7d72b2] .popper__arrow{background:#666}@media screen and (max-width: 750px){.chapter-wrapper[data-v-ea7d72b2]{padding:0}.chapter-wrapper .tool-bar[data-v-ea7d72b2]{left:0;width:100vw;margin-left:0!important}.chapter-wrapper .tool-bar .tools[data-v-ea7d72b2]{flex-direction:row;justify-content:space-between}.chapter-wrapper .tool-bar .tools .tool-icon[data-v-ea7d72b2]{border:none}.chapter-wrapper .read-bar[data-v-ea7d72b2]{right:0;width:100vw;margin-right:0!important}.chapter-wrapper .read-bar .tools[data-v-ea7d72b2]{flex-direction:row;justify-content:space-between;padding:0 15px}.chapter-wrapper .read-bar .tools .tool-icon[data-v-ea7d72b2]{border:none;width:auto}.chapter-wrapper .read-bar .tools .tool-icon .iconfont[data-v-ea7d72b2]{display:inline-block}.chapter-wrapper .chapter[data-v-ea7d72b2]{width:100vw!important;padding:0 20px;box-sizing:border-box}} +@charset "UTF-8";.title[data-v-98799b36]{margin-bottom:57px;font:24px/32px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}p[data-v-98799b36]{display:block;word-wrap:break-word;word-break:break-all;letter-spacing:calc(var(--c62877dc) * 1em);line-height:calc(1 + var(--1ecc5ae0));margin:calc(var(--37c81202) * 1em) 0}p[data-v-98799b36] img{height:1em}.full[data-v-98799b36]{display:block;width:100%}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}@font-face{font-family:FZZCYSK;src:local("\263a"),url(./popfont-a80d6a88.ttf);font-style:normal;font-weight:400}@font-face{font-family:iconfont;src:url(./iconfont-9aaccea3.woff) format("woff")}[data-v-7c8b23a7] .iconfont,[data-v-7c8b23a7] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-7c8b23a7]{user-select:none;margin:-13px;text-align:left;padding:40px 0 40px 24px;background:#ede7da url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAD1BMVEX48dr48Nf58tv379X17NJtIBxUAAACFUlEQVQ4y1XRUZakMAgF0Af2AiDWApDZgHZqAV1nZv9rGh7Rj7Y8McUFEg1wvcMESMNVD/neU8Xcaz7nYYkYlYO6Ti82PBI4BvIEg1aj3wKwRvIMgZsUy5LdhCawPFh1sZs4SrlyN9fQKpv8s5dgZ2eLyqqJiu+WkCmUEybXkm3INS01WAiv0PapJ0CZc0SJQUzcWnZYbOOY20iFD8Bk+/j2A3wNxH7GdShFYS5ff237kXh9I9zSkQmIAhOsOSVfJ6DIXTMDaPnzkRJ92S1BQQmXl5LdirgRLLDdcYqcGPwe3QN4xCBiGNbrqq9wpW1XCecChwaQdVOsRDpPCpeoolPdxeXp3WNB9PHVzWBHlygy4NJCCrFHREv6bDt0VGwJZASkpONmm1UseGeFKAQexgaAkrfYWl3AGxWOLL2AIMBNbCXpktmS3k3vHeYjGCPBa43wJTurO3ZFVpQSJdAZGLoHTyk1upkjxMEaIxum3iIARcCa5kSkFAW5fi1mUlL9eyOsaanFmOMruwvEdE3ZYzsRSzo5ewRLXyVPPEvknt8ij4DvCg2O7xOgBCUprEzV4z1WekSpUgI8DT2mrnSOXKRfQavwuKA1F+tFnMKdJSUpMA7wQAifWRkMgjUKKZE4lBl6MCM4B1pq1P4uIjDE6Pq6rL0FnW1nIFmta5vrSvq/Ch4tpqG/ZNyyWa5jZPktq81eYv8Bt5s4iFITOp4AAAAASUVORK5CYII=) repeat}.settings-wrapper .settings-title[data-v-7c8b23a7]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list[data-v-7c8b23a7]{max-height:calc(70vh - 50px);overflow:auto}.settings-wrapper .setting-list ul[data-v-7c8b23a7]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-7c8b23a7]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-7c8b23a7]{font:12px/16px PingFangSC-Regular,-apple-system,Simsun;display:inline-block;min-width:48px;margin-right:16px;vertical-align:middle;color:#666}.settings-wrapper .setting-list ul li .theme-item[data-v-7c8b23a7]{line-height:32px;width:34px;height:34px;margin-right:16px;margin-top:5px;border-radius:100%;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul li .theme-item .iconfont[data-v-7c8b23a7]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-7c8b23a7]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-7c8b23a7]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading[data-v-7c8b23a7]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-7c8b23a7],.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-7c8b23a7]{width:78px;height:34px;cursor:pointer;margin-right:16px;border-radius:2px;text-align:center;vertical-align:middle;display:inline-block;font:14px/34px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.settings-wrapper .setting-list ul .font-list .font-item-input[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .font-item-input[data-v-7c8b23a7]{width:168px;color:#000}.settings-wrapper .setting-list ul .font-list .selected[data-v-7c8b23a7],.settings-wrapper .setting-list ul .infinite-loading .selected[data-v-7c8b23a7]{color:#ed4259;border:1px solid #ed4259}.settings-wrapper .setting-list ul .font-list .font-item[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .font-list .infinite-loading-item[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .infinite-loading .font-item[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .infinite-loading .infinite-loading-item[data-v-7c8b23a7]:hover{border:1px solid #ed4259;color:#ed4259}.settings-wrapper .setting-list ul .font-size[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing[data-v-7c8b23a7]{margin-top:28px}.settings-wrapper .setting-list ul .font-size .resize[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize[data-v-7c8b23a7]{display:inline-block;width:274px;height:34px;vertical-align:middle;border-radius:2px}.settings-wrapper .setting-list ul .font-size .resize span[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize span[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize span[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize span[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize span[data-v-7c8b23a7]{width:89px;height:34px;line-height:34px;display:inline-block;cursor:pointer;text-align:center;vertical-align:middle}.settings-wrapper .setting-list ul .font-size .resize span em[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize span em[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize span em[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize span em[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize span em[data-v-7c8b23a7]{font-style:normal}.settings-wrapper .setting-list ul .font-size .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .font-size .resize .more[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .read-width .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .read-width .resize .more[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .letter-spacing .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .letter-spacing .resize .more[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .line-spacing .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .line-spacing .resize .more[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .paragraph-spacing .resize .less[data-v-7c8b23a7]:hover,.settings-wrapper .setting-list ul .paragraph-spacing .resize .more[data-v-7c8b23a7]:hover{color:#ed4259}.settings-wrapper .setting-list ul .font-size .resize .lang[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize .lang[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize .lang[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize .lang[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize .lang[data-v-7c8b23a7]{color:#a6a6a6;font-weight:400;font-family:FZZCYSK}.settings-wrapper .setting-list ul .font-size .resize b[data-v-7c8b23a7],.settings-wrapper .setting-list ul .read-width .resize b[data-v-7c8b23a7],.settings-wrapper .setting-list ul .letter-spacing .resize b[data-v-7c8b23a7],.settings-wrapper .setting-list ul .line-spacing .resize b[data-v-7c8b23a7],.settings-wrapper .setting-list ul .paragraph-spacing .resize b[data-v-7c8b23a7]{display:inline-block;height:20px;vertical-align:middle}.night[data-v-7c8b23a7] .theme-item,.night[data-v-7c8b23a7] .selected{border:1px solid #666}.night[data-v-7c8b23a7] .moon-icon{color:#ed4259}.night[data-v-7c8b23a7] .font-list .font-item,.night[data-v-7c8b23a7] .font-list .infinite-loading-item,.night .infinite-loading .font-item[data-v-7c8b23a7],.night .infinite-loading .infinite-loading-item[data-v-7c8b23a7],.night[data-v-7c8b23a7] .resize{border:1px solid #666;background:rgba(45,45,45,.5)}.night[data-v-7c8b23a7] .resize b{border-right:1px solid #666}.day[data-v-7c8b23a7] .theme-item{border:1px solid #e5e5e5}.day[data-v-7c8b23a7] .selected{border:1px solid #ed4259}.day[data-v-7c8b23a7] .moon-icon{display:inline;color:#fff3}.day[data-v-7c8b23a7] .font-list .font-item,.day[data-v-7c8b23a7] .font-list .infinite-loading-item,.day .infinite-loading .font-item[data-v-7c8b23a7],.day .infinite-loading .infinite-loading-item[data-v-7c8b23a7]{background:rgba(255,255,255,.5);border:1px solid rgba(0,0,0,.1)}.day[data-v-7c8b23a7] .resize{border:1px solid #e5e5e5;background:rgba(255,255,255,.5)}.day[data-v-7c8b23a7] .resize b{border-right:1px solid #e5e5e5}@media screen and (max-width: 500px){.settings-wrapper i[data-v-7c8b23a7]{display:flex!important;flex-wrap:wrap;padding-bottom:5px!important}}.selected[data-v-63716c56]{color:#eb4259}.wrapper[data-v-63716c56]{display:flex}.wrapper .cata-text[data-v-63716c56]{width:100%;margin-right:26px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cata-wrapper[data-v-4a9ff06c]{margin:-16px;padding:18px 0 24px 25px}.cata-wrapper .title[data-v-4a9ff06c]{font-size:18px;font-weight:400;font-family:FZZCYSK;margin:0 0 20px;color:#ed4259;width:fit-content;border-bottom:1px solid #ed4259}.cata-wrapper[data-v-4a9ff06c] .data-wrapper .cata{height:40px;cursor:pointer;font:16px/40px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.cata-wrapper .night[data-v-4a9ff06c] .cata{border-bottom:1px solid #666}.cata-wrapper .day[data-v-4a9ff06c] .cata{border-bottom:1px solid #f2f2f2}[data-v-dbdb5877] .pop-setting{margin-left:68px;top:0}[data-v-dbdb5877] .pop-cata{margin-left:10px}.chapter-wrapper[data-v-dbdb5877]{padding:0 4%;flex-direction:column;align-items:center}.chapter-wrapper[data-v-dbdb5877] .no-point{pointer-events:none}.chapter-wrapper .tool-bar[data-v-dbdb5877]{position:fixed;top:0;left:50%;z-index:100}.chapter-wrapper .tool-bar .tools[data-v-dbdb5877]{display:flex;flex-direction:column}.chapter-wrapper .tool-bar .tools .tool-icon[data-v-dbdb5877]{font-size:18px;width:58px;height:48px;text-align:center;padding-top:12px;cursor:pointer;outline:none}.chapter-wrapper .tool-bar .tools .tool-icon .iconfont[data-v-dbdb5877]{font-family:iconfont;width:16px;height:16px;font-size:16px;margin:0 auto 6px}.chapter-wrapper .tool-bar .tools .tool-icon .icon-text[data-v-dbdb5877]{font-size:12px}.chapter-wrapper .read-bar[data-v-dbdb5877]{position:fixed;bottom:0;right:50%;z-index:100}.chapter-wrapper .read-bar .tools[data-v-dbdb5877]{display:flex;flex-direction:column}.chapter-wrapper .read-bar .tools .tool-icon[data-v-dbdb5877]{font-size:18px;width:42px;height:31px;padding-top:12px;text-align:center;align-items:center;cursor:pointer;outline:none;margin-top:-1px}.chapter-wrapper .read-bar .tools .tool-icon .iconfont[data-v-dbdb5877]{font-family:iconfont;width:16px;height:16px;font-size:16px;margin:0 auto 6px}.chapter-wrapper .chapter[data-v-dbdb5877]{font-family:Microsoft YaHei,PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,sans-serif;text-align:left;padding:0 65px;min-height:100vh;width:670px;margin:0 auto}.chapter-wrapper .chapter .content[data-v-dbdb5877]{overflow:hidden;font-size:18px;line-height:1.8;font-family:Microsoft YaHei,PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,sans-serif}.chapter-wrapper .chapter .content .bottom-bar[data-v-dbdb5877],.chapter-wrapper .chapter .content .top-bar[data-v-dbdb5877]{height:64px}.day[data-v-dbdb5877] .popup{box-shadow:0 2px 4px #0000001f,0 0 6px #0000000a}.day[data-v-dbdb5877] .tool-icon{border:1px solid rgba(0,0,0,.1);margin-top:-1px;color:#000}.day[data-v-dbdb5877] .tool-icon .icon-text{color:#0006}.day[data-v-dbdb5877] .chapter{border:1px solid #d8d8d8;color:#262626}.night[data-v-dbdb5877] .popup{box-shadow:0 2px 4px #0000007a,0 0 6px #00000029}.night[data-v-dbdb5877] .tool-icon{border:1px solid #444;margin-top:-1px;color:#666}.night[data-v-dbdb5877] .tool-icon .icon-text{color:#666}.night[data-v-dbdb5877] .chapter{border:1px solid #444;color:#666}.night[data-v-dbdb5877] .popper__arrow{background:#666}@media screen and (max-width: 750px){.chapter-wrapper[data-v-dbdb5877]{padding:0}.chapter-wrapper .tool-bar[data-v-dbdb5877]{left:0;width:100vw;margin-left:0!important}.chapter-wrapper .tool-bar .tools[data-v-dbdb5877]{flex-direction:row;justify-content:space-between}.chapter-wrapper .tool-bar .tools .tool-icon[data-v-dbdb5877]{border:none}.chapter-wrapper .read-bar[data-v-dbdb5877]{right:0;width:100vw;margin-right:0!important}.chapter-wrapper .read-bar .tools[data-v-dbdb5877]{flex-direction:row;justify-content:space-between;padding:0 15px}.chapter-wrapper .read-bar .tools .tool-icon[data-v-dbdb5877]{border:none;width:auto}.chapter-wrapper .read-bar .tools .tool-icon .iconfont[data-v-dbdb5877]{display:inline-block}.chapter-wrapper .chapter[data-v-dbdb5877]{width:100vw!important;padding:0 20px;box-sizing:border-box}} diff --git a/app/src/main/assets/web/vue/assets/BookChapter-1722c488.js b/app/src/main/assets/web/vue/assets/BookChapter-1722c488.js new file mode 100644 index 000000000..9030d2863 --- /dev/null +++ b/app/src/main/assets/web/vue/assets/BookChapter-1722c488.js @@ -0,0 +1 @@ +import{a1 as Ke,n as c,z as C,S as Ie,a7 as _e,o as h,d as v,g as e,t as H,F as oe,O as ie,u as o,a8 as T,a9 as Ve,aa as Ne,v as _,e as W,w as J,a2 as ze,A as ue,ab as He,f as $,L as Ae,ac as Je,x as We,ad as Re,p as ke,i as Be,s as Me,ae as qe,V as Te,N as Qe,k as K,a6 as Ge,c as Ze}from"./vendor-0c9d4c13.js";import{i as Ye,g as De,u as Xe}from"./loading-ddccb8e8.js";import{_ as ce,u as ge,A as de}from"./index-3dbb2f78.js";const je=(n,s,u,g)=>(n/=g/2,n<1?u/2*n*n+s:(n--,-u/2*(n*(n-2)-1)+s)),$e=()=>{let n,s,u,g,i,B,m,S,d,y,a,w,r;function I(){let b=n.scrollTop||n.scrollY||n.pageYOffset;return b=typeof b>"u"?0:b,b}function A(b){const k=b.getBoundingClientRect().top,Z=n.getBoundingClientRect?n.getBoundingClientRect().top:0;return k-Z+u}function x(b){n.scrollTo?n.scrollTo(0,b):n.scrollTop=b}function L(b){y||(y=b),a=b-y,w=B(a,u,S,d),x(w),a({c62877dc:g.spacing.letter,"1ecc5ae0":g.spacing.line,"37c81202":g.spacing.paragraph}));const i=r=>{const I=/]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,A=r.match(I)[1];return Ye(A)?De(A):A},B=r=>{r.target.src=De(r.target.src)},m=r=>{const I=/]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,A=" ";return r.replaceAll(I,A).length},S=c(()=>{let r=-1;return Array.from(g.contents,I=>(r+=m(I)+1,r))}),d=C(),y=C();s({scrollToReadedLength:r=>{if(r===0)return;let I=S.value.findIndex(A=>A>=r);I!==-1&&Ve(()=>{ee(y.value[I],{duration:0})})}});const w=C(null);return Ie(()=>{w.value=new IntersectionObserver(r=>{for(let{target:I,isIntersecting:A}of r)A&&u("readedLengthChange",g.chapterIndex,parseInt(I.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),w.value.observe(d.value),y.value.forEach(r=>{w.value.observe(r)})}),_e(()=>{var r;(r=w.value)==null||r.disconnect(),w.value=null}),(r,I)=>(h(),v(oe,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:d},H(n.title),513),(h(!0),v(oe,null,ie(n.contents,(A,x)=>(h(),v("div",{key:x,ref_for:!0,ref_key:"paragraphRef",ref:y,"data-chapterpos":o(S)[x]},[/^\s*]*src[^>]+>$/.test(A)?(h(),v("img",{key:0,class:"full",src:i(A),onErrorOnce:B,loading:"lazy"},null,40,tt)):(h(),v("p",{key:1,style:T({fontFamily:n.fontFamily,fontSize:n.fontSize}),innerHTML:A},null,12,ot))],8,et))),128))],64))}},st=ce(nt,[["__scopeId","data-v-98799b36"]]);const at="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABj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ywx2dMYPnQHbxdFZ7deiNGxCCtD/QWnbwDoGhRYPDzUdUA3krjpnkvdAgDN4ddLkEQSov9qjd42HaDjI34gEqS9TUueAk+sc4qg5ws407KQYKs8G1jv4xBlqBVk6cb4dISZIwVi1Jzu4+HLk6lyfUxkXvwy+1Q+4WVdHIhwfybZ6CWVhxMEhShOgsP/HOW0MvZJeFwAAAABJRU5ErkJggg==";var te={themes:[{body:"#ede7da url("+at+") repeat",content:"#ede7da url("+it+") repeat",popup:"#ede7da url("+ct+") repeat"},{body:"#ede7da url("+lt+") repeat",content:"#ede7da url("+rt+") repeat",popup:"#ede7da url("+At+") repeat"},{body:"#ede7da url("+dt+") repeat",content:"#ede7da url("+ut+") repeat",popup:"#ede7da url("+gt+") repeat"},{body:"#ede7da url("+pt+") repeat",content:"#ede7da url("+ht+") repeat",popup:"#ede7da url("+ft+") repeat"},{body:"#ebcece repeat",content:"#f5e4e4 repeat",popup:"#faeceb repeat"},{body:"#ede7da url("+vt+") repeat",content:"#ede7da url("+mt+") repeat",popup:"#ede7da url("+yt+") repeat"},{body:"#ede7da url("+bt+") repeat",content:"#ede7da url("+Ct+") repeat",popup:"#ede7da url("+It+") repeat"}],fonts:["Microsoft YaHei, PingFangSC-Regular, HelveticaNeue-Light, Helvetica Neue Light, sans-serif","PingFangSC-Regular, -apple-system, Simsun","Kaiti"]};const l=n=>(ke("data-v-7c8b23a7"),n=n(),Be(),n),kt=l(()=>e("div",{class:"settings-title"},"设置",-1)),Bt={class:"setting-list"},St={class:"theme-list"},wt=l(()=>e("i",null,"阅读主题",-1)),Et=["onClick"],Ut={key:0,class:"iconfont"},xt={key:1,class:"moon-icon"},Qt={class:"font-list"},Dt=l(()=>e("i",null,"正文字体",-1)),_t=["onClick"],Vt={class:"font-list"},Rt=l(()=>e("i",null,"自定字体",-1)),Mt=l(()=>e("p",null," 请确认输入的字体名称完整无误,并且该字体已经安装在您的设备上。 ",-1)),Ft=l(()=>e("p",null,"确定保存吗?",-1)),Lt={style:{"text-align":"right",margin:"0"}},Pt=l(()=>e("span",{type:"text",class:"font-item"},"保存",-1)),Ot={class:"font-size"},Kt=l(()=>e("i",null,"字体大小",-1)),Nt={class:"resize"},zt=l(()=>e("em",{class:"iconfont"},"",-1)),Ht=[zt],Jt=l(()=>e("b",null,null,-1)),Wt={class:"lang"},qt=l(()=>e("b",null,null,-1)),Tt=l(()=>e("em",{class:"iconfont"},"",-1)),Gt=[Tt],Zt={class:"letter-spacing"},Yt=l(()=>e("i",null,"字距",-1)),Xt={class:"resize"},jt=l(()=>e("em",{class:"iconfont"},"",-1)),$t=[jt],eo=l(()=>e("b",null,null,-1)),to={class:"lang"},oo=l(()=>e("b",null,null,-1)),no=l(()=>e("em",{class:"iconfont"},"",-1)),so=[no],ao={class:"line-spacing"},io=l(()=>e("i",null,"行距",-1)),co={class:"resize"},lo=l(()=>e("em",{class:"iconfont"},"",-1)),ro=[lo],Ao=l(()=>e("b",null,null,-1)),uo={class:"lang"},go=l(()=>e("b",null,null,-1)),po=l(()=>e("em",{class:"iconfont"},"",-1)),ho=[po],fo={class:"paragraph-spacing"},vo=l(()=>e("i",null,"段距",-1)),mo={class:"resize"},yo={class:"resize"},bo=l(()=>e("em",{class:"iconfont"},"",-1)),Co=[bo],Io=l(()=>e("b",null,null,-1)),ko={class:"lang"},Bo=l(()=>e("b",null,null,-1)),So=l(()=>e("em",{class:"iconfont"},"",-1)),wo=[So],Eo={key:0,class:"read-width"},Uo=l(()=>e("i",null,"页面宽度",-1)),xo={class:"resize"},Qo=l(()=>e("em",{class:"iconfont"},"",-1)),Do=[Qo],_o=l(()=>e("b",null,null,-1)),Vo={class:"lang"},Ro=l(()=>e("b",null,null,-1)),Mo=l(()=>e("em",{class:"iconfont"},"",-1)),Fo=[Mo],Lo={class:"infinite-loading"},Po=l(()=>e("i",null,"无限加载",-1)),Oo={__name:"ReadSettings",setup(n){const s=ge(),u=C(0),g=C(s.config.theme==6),i=C(""),B=Ne([{background:"rgba(250, 245, 235, 0.8)"},{background:"rgba(245, 234, 204, 0.8)"},{background:"rgba(230, 242, 230, 0.8)"},{background:"rgba(228, 241, 245, 0.8)"},{background:"rgba(245, 228, 228, 0.8)"},{background:"rgba(224, 224, 224, 0.8)"},{background:"rgba(0, 0, 0, 0.5)"}]),m=C({display:"inline",color:"rgba(255,255,255,0.2)"}),S=C(["雅黑","宋体","楷书"]),d=C(s.config.customFontName),y=C(!1);Ie(()=>{var E=s.config;u.value=E.theme,u.value==6?i.value="":i.value=""});const a=c(()=>s.config),w=c(()=>({background:te.themes[a.value.theme].popup})),r=c(()=>s.config.theme),I=c(()=>s.config.font),A=E=>{E==6?(g.value=!0,i.value="",m.value.color="#ed4259"):(g.value=!1,i.value="",m.value.color="rgba(255,255,255,0.2)"),a.value.theme=E,Q(a.value)},x=E=>{a.value.font=E,Q(a.value)},L=()=>{a.value.font=-1,a.value.customFontName=d.value,Q(a.value)},M=c(()=>s.config.fontSize),ne=()=>{a.value.fontSize<48&&(a.value.fontSize+=2),Q(a.value)},b=()=>{a.value.fontSize>12&&(a.value.fontSize-=2),Q(a.value)},k=c(()=>s.config.spacing),Z=()=>{s.config.spacing.letter-=.01,Q(a.value)},pe=()=>{s.config.spacing.letter+=.01,Q(a.value)},le=()=>{s.config.spacing.line-=.1,Q(a.value)},he=()=>{s.config.spacing.line+=.1,Q(a.value)},fe=()=>{s.config.spacing.paragraph-=.1,Q(a.value)},Y=()=>{s.config.spacing.paragraph+=.1,Q(a.value)},ve=c(()=>s.config.readWidth),me=()=>{a.value.readWidth+=160,Q(a.value)},re=()=>{a.value.readWidth>640&&(a.value.readWidth-=160),Q(a.value)},X=c(()=>s.config.infiniteLoading),se=E=>{a.value.infiniteLoading=E,Q(a.value)},Q=E=>{s.setConfig(E),localStorage.setItem("config",JSON.stringify(E)),ye(E)},ye=E=>{de.saveReadConfig(E)};return(E,D)=>{const q=Je,P=We,G=Re;return h(),v("div",{class:_(["settings-wrapper",{night:o(g),day:!o(g)}]),style:T(o(w))},[kt,e("div",Bt,[e("ul",null,[e("li",St,[wt,(h(!0),v(oe,null,ie(o(B),(V,F)=>(h(),v("span",{class:_(["theme-item",{selected:o(r)==F}]),key:F,style:T(V),ref_for:!0,ref:"themes",onClick:be=>A(F)},[F<6?(h(),v("em",Ut,"")):(h(),v("em",xt,H(o(i)),1))],14,Et))),128))]),e("li",Qt,[Dt,(h(!0),v(oe,null,ie(o(S),(V,F)=>(h(),v("span",{class:_(["font-item",{selected:o(I)==F}]),key:F,onClick:be=>x(F)},H(V),11,_t))),128))]),e("li",Vt,[Rt,W(q,{effect:"dark",content:"自定义的字体名称",placement:"top"},{default:J(()=>[ze(e("input",{type:"text",class:"font-item font-item-input","onUpdate:modelValue":D[0]||(D[0]=V=>ue(d)?d.value=V:null),placeholder:"请输入自定义的字体名称"},null,512),[[He,o(d)]])]),_:1}),W(G,{placement:"top",width:"180",trigger:"click",visible:o(y),"onUpdate:visible":D[3]||(D[3]=V=>ue(y)?y.value=V:null)},{reference:J(()=>[Pt]),default:J(()=>[Mt,Ft,e("div",Lt,[W(P,{size:"small",plain:"",onClick:D[1]||(D[1]=V=>y.value=!1)},{default:J(()=>[$("取消")]),_:1}),W(P,{type:"primary",size:"small",onClick:D[2]||(D[2]=V=>{L(),y.value=!1})},{default:J(()=>[$("确定")]),_:1})])]),_:1},8,["visible"])]),e("li",Ot,[Kt,e("div",Nt,[e("span",{class:"less",onClick:b},Ht),Jt,$(),e("span",Wt,H(o(M)),1),qt,e("span",{class:"more",onClick:ne},Gt)])]),e("li",Zt,[Yt,e("div",Xt,[e("span",{class:"less",onClick:Z},$t),eo,$(),e("span",to,H(o(k).letter.toFixed(2)),1),oo,e("span",{class:"more",onClick:pe},so)])]),e("li",ao,[io,e("div",co,[e("span",{class:"less",onClick:le},ro),Ao,$(),e("span",uo,H(o(k).line.toFixed(1)),1),go,e("span",{class:"more",onClick:he},ho)])]),e("li",fo,[vo,e("div",mo,[e("div",yo,[e("span",{class:"less",onClick:fe},Co),Io,e("span",ko,H(o(k).paragraph.toFixed(1)),1),Bo,e("span",{class:"more",onClick:Y},wo)])])]),o(s).miniInterface?Ae("",!0):(h(),v("li",Eo,[Uo,e("div",xo,[e("span",{class:"less",onClick:re},Do),_o,$(),e("span",Vo,H(o(ve)),1),Ro,e("span",{class:"more",onClick:me},Fo)])])),e("li",Lo,[Po,(h(),v("span",{class:_(["infinite-loading-item",{selected:o(X)==!1}]),key:0,onClick:D[4]||(D[4]=V=>se(!1))},"关闭",2)),(h(),v("span",{class:_(["infinite-loading-item",{selected:o(X)==!0}]),key:1,onClick:D[5]||(D[5]=V=>se(!0))},"开启",2))])])])],6)}}},Ko=ce(Oo,[["__scopeId","data-v-7c8b23a7"]]);const No={class:"wrapper"},zo=["onClick"],Ho={__name:"CatalogItem",props:["index","source","gotoChapter"],setup(n){const s=n,u=ge(),g=c(()=>u.readingBook.index),i=m=>m==g.value,B=c(()=>{var m;return((m=s.source)==null?void 0:m.catas)??[s.source]});return(m,S)=>(h(),v("div",No,[(h(!0),v(oe,null,ie(o(B),d=>(h(),v("div",{class:_(["cata-text",{selected:i(d.index)}]),key:d.url,onClick:y=>n.gotoChapter(d)},H(d.title),11,zo))),128))]))}},Jo=ce(Ho,[["__scopeId","data-v-63716c56"]]);const Wo=n=>(ke("data-v-4a9ff06c"),n=n(),Be(),n),qo=Wo(()=>e("div",{class:"title"},"目录",-1)),To={__name:"PopCatalog",emits:["getContent"],setup(n,{emit:s}){const u=ge(),g=c(()=>S.value==6),{catalog:i,popCataVisible:B,miniInterface:m}=Me(u),S=c(()=>u.config.theme),d=c(()=>({background:te.themes[S.value].popup})),y=c({get:()=>u.readingBook.index,set:A=>u.readingBook.index=A}),a=c(()=>{let A=i.value;if(m.value)return A;let x=Math.ceil(A.length/2),L=new Array(x),M=0;for(;M{y.value=i.value.indexOf(A),u.setPopCataVisible(!1),u.setContentLoading(!0),s("getContent",y.value)},r=C(),I=c(()=>m.value?y.value:Math.floor(y.value/2));return qe(()=>{B.value&&r.value.scrollToIndex(I.value)}),(A,x)=>(h(),v("div",{class:_({"cata-wrapper":!0,visible:o(B)}),style:T(o(d))},[qo,W(o(Te),{style:{height:"300px",overflow:"auto"},class:_({night:o(g),day:!o(g)}),ref_key:"virtualListRef",ref:r,"data-key":"index","wrap-class":"data-wrapper","item-class":"cata","data-sources":o(a),"data-component":Jo,"estimate-size":40,"extra-props":{gotoChapter:w}},null,8,["class","data-sources","extra-props"])],6))}},Go=ce(To,[["__scopeId","data-v-4a9ff06c"]]);const R=n=>(ke("data-v-dbdb5877"),n=n(),Be(),n),Zo={class:"tools"},Yo=R(()=>e("div",{class:"iconfont"},"",-1)),Xo=R(()=>e("div",{class:"icon-text"},"目录",-1)),jo=[Yo,Xo],$o=R(()=>e("div",{class:"iconfont"},"",-1)),en=R(()=>e("div",{class:"icon-text"},"设置",-1)),tn=[$o,en],on=R(()=>e("div",{class:"iconfont"},"",-1)),nn=R(()=>e("div",{class:"icon-text"},"书架",-1)),sn=[on,nn],an=R(()=>e("div",{class:"iconfont"},"",-1)),cn=R(()=>e("div",{class:"icon-text"},"顶部",-1)),ln=[an,cn],rn=R(()=>e("div",{class:"iconfont"},"",-1)),An=R(()=>e("div",{class:"icon-text"},"底部",-1)),dn=[rn,An],un={class:"tools"},gn=R(()=>e("div",{class:"iconfont"},"",-1)),pn={key:0},hn={key:0},fn=R(()=>e("div",{class:"iconfont"},"",-1)),vn=R(()=>e("div",{class:"chapter-bar"},null,-1)),mn={class:"content"},yn=["chapterIndex"],bn={__name:"BookChapter",setup(n){const s=C(),{isLoading:u,loadingWrapper:g}=Xe(s,"正在获取信息"),i=ge();try{const t=JSON.parse(localStorage.getItem("config"));t!=null&&i.setConfig(t)}catch{localStorage.removeItem("config")}const{catalog:B,popCataVisible:m,readSettingsVisible:S,miniInterface:d,showContent:y,config:a,readingBook:w,bookProgress:r}=Me(i),I=c({get:()=>w.value.chapterPos,set:t=>w.value.chapterPos=t}),A=c({get:()=>w.value.index,set:t=>w.value.index=t}),x=c(()=>a.value.theme),L=c(()=>a.value.infiniteLoading),M=c(()=>i.config.font>=0?te.fonts[i.config.font]:i.config.customFontName),ne=c(()=>i.config.fontSize+"px"),b=c(()=>te.themes[x.value].body),k=c(()=>te.themes[x.value].content),Z=c(()=>te.themes[x.value].popup),pe=c(()=>d.value?window.innerWidth+"px":i.config.readWidth-130+"px"),le=c(()=>d.value?window.innerWidth-33:i.config.readWidth-33),he=c(()=>({background:b.value})),fe=c(()=>({background:k.value,width:pe.value})),Y=C(!1),ve=c(()=>({background:Z.value,marginLeft:d.value?0:-(i.config.readWidth/2+68)+"px",display:d.value&&!Y.value?"none":"block"})),me=c(()=>({background:Z.value,marginRight:d.value?0:-(i.config.readWidth/2+52)+"px",display:d.value&&!Y.value?"none":"block"})),re=c(()=>x.value==6),X=C(),se=C(),Q=()=>{ee(X.value)},ye=()=>{ee(se.value)},E=Ge(),D=()=>{E.push("/")},q=C([]),P=C(!0),G=(t,f=!0,N=0)=>{f&&(i.setShowContent(!1),ee(X.value,{duration:0}),Se(t,N),q.value=[]);let U=sessionStorage.getItem("bookUrl"),{title:z,index:O}=B.value[t];g(de.getBookContent(U,O).then(p=>{if(p.data.isSuccess){let Oe=p.data.data.split(/\n+/);q.value.push({index:t,content:Oe,title:z}),f&&be(N)}else{K({message:p.data.errorMsg,type:"error"});let j=[p.data.errorMsg];q.value.push({index:t,content:j,title:z})}if(i.setContentLoading(!0),P.value=!1,i.setShowContent(!0),!p.data.isSuccess)throw p.data},p=>{K({message:"获取章节内容失败",type:"error"});let j=["获取章节内容失败!"];throw q.value.push({index:t,content:j,title:z}),i.setShowContent(!0),p}))},V=C(),F=C(),be=t=>{Ve(()=>{F.value.length===1&&F.value[0].scrollToReadedLength(t)})},Fe=(t,f)=>{Se(t,f)};Qe(()=>{var t;document.title=((t=B.value[A.value])==null?void 0:t.title)||document.title});const Se=(t,f)=>{let N=sessionStorage.getItem("bookUrl");var U=JSON.parse(localStorage.getItem(N));U.index=t,U.chapterPos=f,localStorage.setItem(N,JSON.stringify(U)),U=JSON.parse(localStorage.getItem("readingRecent")),U.chapterIndex=t,U.chapterPos=f,localStorage.setItem("readingRecent",JSON.stringify(U)),A.value=t,I.value=f,sessionStorage.setItem("chapterIndex",t),sessionStorage.setItem("chapterPos",String(f))},we=()=>{document.visibilityState=="hidden"&&de.saveBookProgressWithBeacon(r.value)},Ee=()=>{i.setContentLoading(!0);let t=A.value+1;typeof B.value[t]<"u"?(K({message:"下一章",type:"info"}),G(t)):K({message:"本章是最后一章",type:"error"})},Ue=()=>{i.setContentLoading(!0);let t=A.value-1;typeof B.value[t]<"u"?(K({message:"上一章",type:"info"}),G(t)):K({message:"本章是第一章",type:"error"})},ae=C(null),Ce=C();Qe(()=>{var t,f;L.value?(f=ae.value)==null||f.observe(Ce.value):(t=ae.value)==null||t.disconnect()});const Le=()=>{let t=q.value.slice(-1)[0].index;B.value.length-1>t&&G(t+1,!1)},Pe=t=>{if(!u.value)for(let{isIntersecting:f}of t){if(!f)return;Le()}},xe=t=>{switch(t.key){case"ArrowLeft":t.stopPropagation(),t.preventDefault(),Ue();break;case"ArrowRight":t.stopPropagation(),t.preventDefault(),Ee();break;case"ArrowUp":t.stopPropagation(),t.preventDefault(),document.documentElement.scrollTop===0?K({message:"已到达页面顶部",type:"warn"}):ee(0-document.documentElement.clientHeight+100);break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),document.documentElement.clientHeight+document.documentElement.scrollTop===document.documentElement.scrollHeight?K({message:"已到达页面底部",type:"warn"}):ee(document.documentElement.clientHeight-100);break}};return Ie(()=>{let t=sessionStorage.getItem("bookUrl"),f=sessionStorage.getItem("bookName"),N=sessionStorage.getItem("bookAuthor"),U=Number(sessionStorage.getItem("chapterIndex")||0),z=Number(sessionStorage.getItem("chapterPos")||0);var O=JSON.parse(localStorage.getItem(t));(O==null||U!=O.index||z!=O.chapterPos)&&(O={bookName:f,bookAuthor:N,bookUrl:t,index:U,chapterPos:z},localStorage.setItem(t,JSON.stringify(O))),g(de.getChapterList(t).then(p=>{if(!p.data.isSuccess){K({message:p.data.errorMsg,type:"error"}),setTimeout(D,500);return}let j=p.data.data;i.setCatalog(j),i.setReadingBook(O),G(U,!0,z),window.addEventListener("keyup",xe),document.addEventListener("visibilitychange",we),ae.value=new IntersectionObserver(Pe,{rootMargin:"-100% 0% 20% 0%"}),L.value&&ae.value.observe(Ce.value),document.title=null,document.title=f+" | "+B.value[U].title},p=>{throw K({message:"获取书籍目录失败",type:"error"}),p}))}),_e(()=>{var t;window.removeEventListener("keyup",xe),document.removeEventListener("visibilitychange",we),S.value=!1,m.value=!1,(t=ae.value)==null||t.disconnect()}),(t,f)=>{const N=Go,U=Re,z=Ko,O=st;return h(),v("div",{class:_(["chapter-wrapper",{night:o(re),day:!o(re)}]),style:T(o(he)),onClick:f[2]||(f[2]=p=>Y.value=!o(Y))},[e("div",{class:"tool-bar",style:T(o(ve))},[e("div",Zo,[W(U,{placement:"right",width:o(le),trigger:"click","show-arrow":!1,visible:o(m),"onUpdate:visible":f[0]||(f[0]=p=>ue(m)?m.value=p:null),"popper-class":"pop-cata"},{reference:J(()=>[e("div",{class:_(["tool-icon",{"no-point":o(P)}])},jo,2)]),default:J(()=>[W(N,{onGetContent:G,class:"popup"})]),_:1},8,["width","visible"]),W(U,{placement:"right",width:o(le),trigger:"click","show-arrow":!1,visible:o(S),"onUpdate:visible":f[1]||(f[1]=p=>ue(S)?S.value=p:null),"popper-class":"pop-setting"},{reference:J(()=>[e("div",{class:_(["tool-icon",{"no-point":o(P)}])},tn,2)]),default:J(()=>[W(z,{class:"popup"})]),_:1},8,["width","visible"]),e("div",{class:"tool-icon",onClick:D},sn),e("div",{class:_(["tool-icon",{"no-point":o(P)}]),onClick:Q},ln,2),e("div",{class:_(["tool-icon",{"no-point":o(P)}]),onClick:ye},dn,2)])],4),e("div",{class:"read-bar",style:T(o(me))},[e("div",un,[e("div",{class:_(["tool-icon",{"no-point":o(P)}]),onClick:Ue},[gn,o(d)?(h(),v("span",pn,"上一章")):Ae("",!0)],2),e("div",{class:_(["tool-icon",{"no-point":o(P)}]),onClick:Ee},[o(d)?(h(),v("span",hn,"下一章")):Ae("",!0),fn],2)])],4),vn,e("div",{class:"chapter",ref_key:"content",ref:s,style:T(o(fe))},[e("div",mn,[e("div",{class:"top-bar",ref_key:"top",ref:X},null,512),(h(!0),v(oe,null,ie(o(q),p=>(h(),v("div",{key:p.index,chapterIndex:p.index,ref_for:!0,ref_key:"chapter",ref:V},[o(y)?(h(),Ze(O,{key:0,ref_for:!0,ref_key:"chapterRef",ref:F,chapterIndex:p.index,contents:p.content,title:p.title,spacing:o(i).config.spacing,fontSize:o(ne),fontFamily:o(M),onReadedLengthChange:Fe},null,8,["chapterIndex","contents","title","spacing","fontSize","fontFamily"])):Ae("",!0)],8,yn))),128)),e("div",{class:"loading",ref_key:"loading",ref:Ce},null,512),e("div",{class:"bottom-bar",ref_key:"bottom",ref:se},null,512)])],4)],6)}}},Bn=ce(bn,[["__scopeId","data-v-dbdb5877"]]);export{Bn as default}; diff --git a/app/src/main/assets/web/vue/assets/BookChapter-1992d750.js b/app/src/main/assets/web/vue/assets/BookChapter-1992d750.js deleted file mode 100644 index 487638457..000000000 --- a/app/src/main/assets/web/vue/assets/BookChapter-1992d750.js +++ /dev/null @@ -1 +0,0 @@ -import{a1 as Ke,n as l,z as m,S as ke,a8 as _e,o as f,d as v,g as e,t as H,F as oe,O as ce,u as o,a9 as T,aa as Ve,ab as Ne,v as _,e as W,w as J,a2 as ze,A as ue,ac as He,f as $,L as de,ad as Je,x as We,ae as Re,p as Be,i as Se,s as Me,af as qe,V as Te,J as Ge,N as Qe,k as K,a6 as Ze,c as Ye,a7 as Xe}from"./vendor-42d5cecc.js";import{i as je,g as De,l as $e}from"./el-loading-06a73ac7.js";import{_ as le,u as ge,A as Ie}from"./index-dfa25950.js";const et=(s,n,g,p)=>(s/=p/2,s<1?g/2*s*s+n:(s--,-g/2*(s*(s-2)-1)+n)),tt=()=>{let s,n,g,p,i,B,y,S,d,C,a,E,c;function I(){let b=s.scrollTop||s.scrollY||s.pageYOffset;return b=typeof b>"u"?0:b,b}function A(b){const k=b.getBoundingClientRect().top,Z=s.getBoundingClientRect?s.getBoundingClientRect().top:0;return k-Z+g}function x(b){s.scrollTo?s.scrollTo(0,b):s.scrollTop=b}function F(b){C||(C=b),a=b-C,E=B(a,g,S,d),x(E),a({c62877dc:p.spacing.letter,"1ecc5ae0":p.spacing.line,"37c81202":p.spacing.paragraph}));const i=c=>{const I=/]*src="([^"]*(?:"[^>]+\})?)"[^>]*>/,A=c.match(I)[1];return je(A)?De(A):A},B=c=>{c.target.src=De(c.target.src)},y=c=>{const I=/]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g,A=" ";return c.replaceAll(I,A).length},S=l(()=>{let c=-1;return Array.from(p.contents,I=>(c+=y(I)+1,c))}),d=m(),C=m();n({scrollToReadedLength:c=>{if(c===0)return;let I=S.value.findIndex(A=>A>=c);I!==-1&&Ve(()=>{ee(C.value[I],{duration:0})})}});const E=m(null);return ke(()=>{E.value=new IntersectionObserver(c=>{for(let{target:I,isIntersecting:A}of c)A&&g("readedLengthChange",p.chapterIndex,parseInt(I.dataset.chapterpos))},{rootMargin:`0px 0px -${window.innerHeight-24}px 0px`}),E.value.observe(d.value),C.value.forEach(c=>{E.value.observe(c)})}),_e(()=>{var c;(c=E.value)==null||c.disconnect(),E.value=null}),(c,I)=>(f(),v(oe,null,[e("div",{class:"title","data-chapterpos":"0",ref_key:"titleRef",ref:d},H(s.title),513),(f(!0),v(oe,null,ce(s.contents,(A,x)=>(f(),v("div",{key:x,ref_for:!0,ref_key:"paragraphRef",ref:C,"data-chapterpos":o(S)[x]},[/^\s*]*src[^>]+>$/.test(A)?(f(),v("img",{key:0,class:"full",src:i(A),onErrorOnce:B,loading:"lazy"},null,40,nt)):(f(),v("p",{key:1,style:T({fontFamily:s.fontFamily,fontSize:s.fontSize}),innerHTML:A},null,12,st))],8,ot))),128))],64))}},it=le(at,[["__scopeId","data-v-98799b36"]]);const ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXr5djn4dTp49bt59rT6LKxAAACnElEQVQozw3NUUwScRzA8d8R6MF8YMIx8uk47hDSJbj14IPzOGc7jPLvwTGg5uAYDbe2tt56cLtznvEnS6yDqCcEaWi91DvrbLJZz7b1aFtz1aO+2OZWvn+/+4CHeB6BMYaqBLfjPNRY6RFT2JJYby+uAk4WUTrtlmJ4hgPYb2q1XGDQjaK8pgJHvqNaAX+KyuIkDXpgQinb46nOulnn4b5laUHTxLfseeArAoNOeJlOIjdoal0n1FA7tKFv5roK+YaHOqP3P0XyKHPHY+MhTRe5uCZnKhtJKw2eSrSoBDPLtpZuNcFNJcFyiCMxOaaHIfXz1e8HQbWLySrBQ4x0x1qlhnHlnz2HQEC6TNb0gTHXa7IKhcaHqkE015hk9whA0YeWiLIXf7Fa2CZo3DjqjB4tTuF8jIcbfcEx5z/w4sXpQhXW+ju0cqh7icTFmRMaG+v6CIvTjcSpHcH8JEsF3EPh3fRthYdVLLgI2fWXm85/pGFE4l046s70L+yKCcirGFR+jbpy3kMmiCGHrSezVONsn1RBixncyk2PcVWk7DlgxHo8iZwDyq5uAUD854dZhdIFYzKoQig2haUKi1lVufz2RZUZPZ41n/hrOQB6h0Hhg8I367FNoEHgeM/KY7szSeQwD8q2WE3HM35ZLl0K1MJiOtHIkBclRQUwZnyOWcNsRQQgVLj1PSqkjF9DsoOSaSg3iinKzvfmgsNFFfpP/2T3GLGvL4fHEfwIX1sVvXcPqLztehWGcfn9nI2U9nTfCgJPe/jFPLZwgVEzimBgAm0VIyK2tt1cE/AzQdLK+SxLSQ4aDCZnnId94OG2S1XwvnTbNk/ZnhyRCQT+sZM6z9g6LXL1BOBe+zJySiFkHAINCtnQokbCJ/apCv0foqPiZVfhpywAAAAASUVORK5CYII=",lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAi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N/Akn2W04LwxMU/V7XK0bDyN2RxfDyx7I4h5vjZby72V8UnOWumZL3qtYc+8DTE0siSBMXGhywx2dMYPnQHbxdFZ7deiNGxCCtD/QWnbwDoGhRYPDzUdUA3krjpnkvdAgDN4ddLkEQSov9qjd42HaDjI34gEqS9TUueAk+sc4qg5ws407KQYKs8G1jv4xBlqBVk6cb4dISZIwVi1Jzu4+HLk6lyfUxkXvwy+1Q+4WVdHIhwfybZ6CWVhxMEhShOgsP/HOW0MvZJeFwAAAABJRU5ErkJggg==";var te={themes:[{body:"#ede7da url("+ct+") repeat",content:"#ede7da url("+lt+") repeat",popup:"#ede7da url("+rt+") repeat"},{body:"#ede7da url("+At+") repeat",content:"#ede7da url("+dt+") repeat",popup:"#ede7da url("+ut+") repeat"},{body:"#ede7da url("+gt+") repeat",content:"#ede7da url("+pt+") repeat",popup:"#ede7da url("+ht+") repeat"},{body:"#ede7da url("+ft+") repeat",content:"#ede7da url("+vt+") repeat",popup:"#ede7da url("+mt+") repeat"},{body:"#ebcece repeat",content:"#f5e4e4 repeat",popup:"#faeceb repeat"},{body:"#ede7da url("+yt+") repeat",content:"#ede7da url("+Ct+") repeat",popup:"#ede7da url("+bt+") repeat"},{body:"#ede7da url("+It+") repeat",content:"#ede7da url("+kt+") repeat",popup:"#ede7da url("+Bt+") repeat"}],fonts:["Microsoft YaHei, PingFangSC-Regular, HelveticaNeue-Light, Helvetica Neue Light, sans-serif","PingFangSC-Regular, -apple-system, Simsun","Kaiti"]};const r=s=>(Be("data-v-7c8b23a7"),s=s(),Se(),s),St=r(()=>e("div",{class:"settings-title"},"设置",-1)),Et={class:"setting-list"},wt={class:"theme-list"},Ut=r(()=>e("i",null,"阅读主题",-1)),xt=["onClick"],Qt={key:0,class:"iconfont"},Dt={key:1,class:"moon-icon"},_t={class:"font-list"},Vt=r(()=>e("i",null,"正文字体",-1)),Rt=["onClick"],Mt={class:"font-list"},Lt=r(()=>e("i",null,"自定字体",-1)),Ft=r(()=>e("p",null," 请确认输入的字体名称完整无误,并且该字体已经安装在您的设备上。 ",-1)),Pt=r(()=>e("p",null,"确定保存吗?",-1)),Ot={style:{"text-align":"right",margin:"0"}},Kt=r(()=>e("span",{type:"text",class:"font-item"},"保存",-1)),Nt={class:"font-size"},zt=r(()=>e("i",null,"字体大小",-1)),Ht={class:"resize"},Jt=r(()=>e("em",{class:"iconfont"},"",-1)),Wt=[Jt],qt=r(()=>e("b",null,null,-1)),Tt={class:"lang"},Gt=r(()=>e("b",null,null,-1)),Zt=r(()=>e("em",{class:"iconfont"},"",-1)),Yt=[Zt],Xt={class:"letter-spacing"},jt=r(()=>e("i",null,"字距",-1)),$t={class:"resize"},eo=r(()=>e("em",{class:"iconfont"},"",-1)),to=[eo],oo=r(()=>e("b",null,null,-1)),no={class:"lang"},so=r(()=>e("b",null,null,-1)),ao=r(()=>e("em",{class:"iconfont"},"",-1)),io=[ao],co={class:"line-spacing"},lo=r(()=>e("i",null,"行距",-1)),ro={class:"resize"},Ao=r(()=>e("em",{class:"iconfont"},"",-1)),uo=[Ao],go=r(()=>e("b",null,null,-1)),po={class:"lang"},ho=r(()=>e("b",null,null,-1)),fo=r(()=>e("em",{class:"iconfont"},"",-1)),vo=[fo],mo={class:"paragraph-spacing"},yo=r(()=>e("i",null,"段距",-1)),Co={class:"resize"},bo={class:"resize"},Io=r(()=>e("em",{class:"iconfont"},"",-1)),ko=[Io],Bo=r(()=>e("b",null,null,-1)),So={class:"lang"},Eo=r(()=>e("b",null,null,-1)),wo=r(()=>e("em",{class:"iconfont"},"",-1)),Uo=[wo],xo={key:0,class:"read-width"},Qo=r(()=>e("i",null,"页面宽度",-1)),Do={class:"resize"},_o=r(()=>e("em",{class:"iconfont"},"",-1)),Vo=[_o],Ro=r(()=>e("b",null,null,-1)),Mo={class:"lang"},Lo=r(()=>e("b",null,null,-1)),Fo=r(()=>e("em",{class:"iconfont"},"",-1)),Po=[Fo],Oo={class:"infinite-loading"},Ko=r(()=>e("i",null,"无限加载",-1)),No={__name:"ReadSettings",setup(s){const n=ge(),g=m(0),p=m(n.config.theme==6),i=m(""),B=Ne([{background:"rgba(250, 245, 235, 0.8)"},{background:"rgba(245, 234, 204, 0.8)"},{background:"rgba(230, 242, 230, 0.8)"},{background:"rgba(228, 241, 245, 0.8)"},{background:"rgba(245, 228, 228, 0.8)"},{background:"rgba(224, 224, 224, 0.8)"},{background:"rgba(0, 0, 0, 0.5)"}]),y=m({display:"inline",color:"rgba(255,255,255,0.2)"}),S=m(["雅黑","宋体","楷书"]),d=m(n.config.customFontName),C=m(!1);ke(()=>{var w=n.config;g.value=w.theme,g.value==6?i.value="":i.value=""});const a=l(()=>n.config),E=l(()=>({background:te.themes[a.value.theme].popup})),c=l(()=>n.config.theme),I=l(()=>n.config.font),A=w=>{w==6?(p.value=!0,i.value="",y.value.color="#ed4259"):(p.value=!1,i.value="",y.value.color="rgba(255,255,255,0.2)"),a.value.theme=w,Q(a.value)},x=w=>{a.value.font=w,Q(a.value)},F=()=>{a.value.font=-1,a.value.customFontName=d.value,Q(a.value)},M=l(()=>n.config.fontSize),ne=()=>{a.value.fontSize<48&&(a.value.fontSize+=2),Q(a.value)},b=()=>{a.value.fontSize>12&&(a.value.fontSize-=2),Q(a.value)},k=l(()=>n.config.spacing),Z=()=>{n.config.spacing.letter-=.01,Q(a.value)},pe=()=>{n.config.spacing.letter+=.01,Q(a.value)},re=()=>{n.config.spacing.line-=.1,Q(a.value)},he=()=>{n.config.spacing.line+=.1,Q(a.value)},fe=()=>{n.config.spacing.paragraph-=.1,Q(a.value)},Y=()=>{n.config.spacing.paragraph+=.1,Q(a.value)},ve=l(()=>n.config.readWidth),me=()=>{a.value.readWidth+=160,Q(a.value)},Ae=()=>{a.value.readWidth>640&&(a.value.readWidth-=160),Q(a.value)},X=l(()=>n.config.infiniteLoading),se=w=>{a.value.infiniteLoading=w,Q(a.value)},Q=w=>{n.setConfig(w),localStorage.setItem("config",JSON.stringify(w)),ye(w)},ye=w=>{Ie.saveReadConfig(w)};return(w,D)=>{const q=Je,P=We,G=Re;return f(),v("div",{class:_(["settings-wrapper",{night:o(p),day:!o(p)}]),style:T(o(E))},[St,e("div",Et,[e("ul",null,[e("li",wt,[Ut,(f(!0),v(oe,null,ce(o(B),(V,L)=>(f(),v("span",{class:_(["theme-item",{selected:o(c)==L}]),key:L,style:T(V),ref_for:!0,ref:"themes",onClick:Ce=>A(L)},[L<6?(f(),v("em",Qt,"")):(f(),v("em",Dt,H(o(i)),1))],14,xt))),128))]),e("li",_t,[Vt,(f(!0),v(oe,null,ce(o(S),(V,L)=>(f(),v("span",{class:_(["font-item",{selected:o(I)==L}]),key:L,onClick:Ce=>x(L)},H(V),11,Rt))),128))]),e("li",Mt,[Lt,W(q,{effect:"dark",content:"自定义的字体名称",placement:"top"},{default:J(()=>[ze(e("input",{type:"text",class:"font-item font-item-input","onUpdate:modelValue":D[0]||(D[0]=V=>ue(d)?d.value=V:null),placeholder:"请输入自定义的字体名称"},null,512),[[He,o(d)]])]),_:1}),W(G,{placement:"top",width:"180",trigger:"click",visible:o(C),"onUpdate:visible":D[3]||(D[3]=V=>ue(C)?C.value=V:null)},{reference:J(()=>[Kt]),default:J(()=>[Ft,Pt,e("div",Ot,[W(P,{size:"small",plain:"",onClick:D[1]||(D[1]=V=>C.value=!1)},{default:J(()=>[$("取消")]),_:1}),W(P,{type:"primary",size:"small",onClick:D[2]||(D[2]=V=>{F(),C.value=!1})},{default:J(()=>[$("确定")]),_:1})])]),_:1},8,["visible"])]),e("li",Nt,[zt,e("div",Ht,[e("span",{class:"less",onClick:b},Wt),qt,$(),e("span",Tt,H(o(M)),1),Gt,e("span",{class:"more",onClick:ne},Yt)])]),e("li",Xt,[jt,e("div",$t,[e("span",{class:"less",onClick:Z},to),oo,$(),e("span",no,H(o(k).letter.toFixed(2)),1),so,e("span",{class:"more",onClick:pe},io)])]),e("li",co,[lo,e("div",ro,[e("span",{class:"less",onClick:re},uo),go,$(),e("span",po,H(o(k).line.toFixed(1)),1),ho,e("span",{class:"more",onClick:he},vo)])]),e("li",mo,[yo,e("div",Co,[e("div",bo,[e("span",{class:"less",onClick:fe},ko),Bo,e("span",So,H(o(k).paragraph.toFixed(1)),1),Eo,e("span",{class:"more",onClick:Y},Uo)])])]),o(n).miniInterface?de("",!0):(f(),v("li",xo,[Qo,e("div",Do,[e("span",{class:"less",onClick:Ae},Vo),Ro,$(),e("span",Mo,H(o(ve)),1),Lo,e("span",{class:"more",onClick:me},Po)])])),e("li",Oo,[Ko,(f(),v("span",{class:_(["infinite-loading-item",{selected:o(X)==!1}]),key:0,onClick:D[4]||(D[4]=V=>se(!1))},"关闭",2)),(f(),v("span",{class:_(["infinite-loading-item",{selected:o(X)==!0}]),key:1,onClick:D[5]||(D[5]=V=>se(!0))},"开启",2))])])])],6)}}},zo=le(No,[["__scopeId","data-v-7c8b23a7"]]);const Ho={class:"wrapper"},Jo=["onClick"],Wo={__name:"CatalogItem",props:["index","source","gotoChapter"],setup(s){const n=s,g=ge(),p=l(()=>g.readingBook.index),i=y=>y==p.value,B=l(()=>{var y;return((y=n.source)==null?void 0:y.catas)??[n.source]});return(y,S)=>(f(),v("div",Ho,[(f(!0),v(oe,null,ce(o(B),d=>(f(),v("div",{class:_(["cata-text",{selected:i(d.index)}]),key:d.url,onClick:C=>s.gotoChapter(d)},H(d.title),11,Jo))),128))]))}},qo=le(Wo,[["__scopeId","data-v-63716c56"]]);const To=s=>(Be("data-v-4a9ff06c"),s=s(),Se(),s),Go=To(()=>e("div",{class:"title"},"目录",-1)),Zo={__name:"PopCatalog",emits:["getContent"],setup(s,{emit:n}){const g=ge(),p=l(()=>S.value==6),{catalog:i,popCataVisible:B,miniInterface:y}=Me(g),S=l(()=>g.config.theme),d=l(()=>({background:te.themes[S.value].popup})),C=l({get:()=>g.readingBook.index,set:A=>g.readingBook.index=A}),a=l(()=>{let A=i.value;if(y.value)return A;let x=Math.ceil(A.length/2),F=new Array(x),M=0;for(;M{C.value=i.value.indexOf(A),g.setPopCataVisible(!1),g.setContentLoading(!0),n("getContent",C.value)},c=m(),I=l(()=>y.value?C.value:Math.floor(C.value/2));return qe(()=>{B.value&&c.value.scrollToIndex(I.value)}),(A,x)=>(f(),v("div",{class:_({"cata-wrapper":!0,visible:o(B)}),style:T(o(d))},[Go,W(o(Te),{style:{height:"300px",overflow:"auto"},class:_({night:o(p),day:!o(p)}),ref_key:"virtualListRef",ref:c,"data-key":"index","wrap-class":"data-wrapper","item-class":"cata","data-sources":o(a),"data-component":qo,"estimate-size":40,"extra-props":{gotoChapter:E}},null,8,["class","data-sources","extra-props"])],6))}},Yo=le(Zo,[["__scopeId","data-v-4a9ff06c"]]);const R=s=>(Be("data-v-ea7d72b2"),s=s(),Se(),s),Xo={class:"tools"},jo=R(()=>e("div",{class:"iconfont"},"",-1)),$o=R(()=>e("div",{class:"icon-text"},"目录",-1)),en=[jo,$o],tn=R(()=>e("div",{class:"iconfont"},"",-1)),on=R(()=>e("div",{class:"icon-text"},"设置",-1)),nn=[tn,on],sn=R(()=>e("div",{class:"iconfont"},"",-1)),an=R(()=>e("div",{class:"icon-text"},"书架",-1)),cn=[sn,an],ln=R(()=>e("div",{class:"iconfont"},"",-1)),rn=R(()=>e("div",{class:"icon-text"},"顶部",-1)),An=[ln,rn],dn=R(()=>e("div",{class:"iconfont"},"",-1)),un=R(()=>e("div",{class:"icon-text"},"底部",-1)),gn=[dn,un],pn={class:"tools"},hn=R(()=>e("div",{class:"iconfont"},"",-1)),fn={key:0},vn={key:0},mn=R(()=>e("div",{class:"iconfont"},"",-1)),yn=R(()=>e("div",{class:"chapter-bar"},null,-1)),Cn={class:"content"},bn=["chapterIndex"],In={__name:"BookChapter",setup(s){const n=m(!1),g=m(null),p=m();Ge(n,t=>{var u;if(!t)return(u=g.value)==null?void 0:u.close();g.value=Xe.service({target:p.value,spinner:$e,text:"正在获取信息",lock:!0})});const i=ge();try{const t=JSON.parse(localStorage.getItem("config"));t!=null&&i.setConfig(t)}catch{localStorage.removeItem("config")}const{catalog:B,popCataVisible:y,readSettingsVisible:S,miniInterface:d,showContent:C,config:a,readingBook:E,bookProgress:c}=Me(i),I=l({get:()=>E.value.chapterPos,set:t=>E.value.chapterPos=t}),A=l({get:()=>E.value.index,set:t=>E.value.index=t}),x=l(()=>a.value.theme),F=l(()=>a.value.infiniteLoading),M=l(()=>i.config.font>=0?te.fonts[i.config.font]:i.config.customFontName),ne=l(()=>i.config.fontSize+"px"),b=l(()=>te.themes[x.value].body),k=l(()=>te.themes[x.value].content),Z=l(()=>te.themes[x.value].popup),pe=l(()=>d.value?window.innerWidth+"px":i.config.readWidth-130+"px"),re=l(()=>d.value?window.innerWidth-33:i.config.readWidth-33),he=l(()=>({background:b.value})),fe=l(()=>({background:k.value,width:pe.value})),Y=m(!1),ve=l(()=>({background:Z.value,marginLeft:d.value?0:-(i.config.readWidth/2+68)+"px",display:d.value&&!Y.value?"none":"block"})),me=l(()=>({background:Z.value,marginRight:d.value?0:-(i.config.readWidth/2+52)+"px",display:d.value&&!Y.value?"none":"block"})),Ae=l(()=>x.value==6),X=m(),se=m(),Q=()=>{ee(X.value)},ye=()=>{ee(se.value)},w=Ze(),D=()=>{w.push("/")},q=m([]),P=m(!0),G=(t,u=!0,N=0)=>{u&&(i.setShowContent(!1),n.value=!0,ee(X.value,{duration:0}),Ee(t,N),q.value=[]);let U=sessionStorage.getItem("bookUrl"),{title:z,index:O}=B.value[t];Ie.getBookContent(U,O).then(h=>{if(h.data.isSuccess){let Oe=h.data.data.split(/\n+/);q.value.push({index:t,content:Oe,title:z}),u&&Ce(N)}else{K({message:h.data.errorMsg,type:"error"});let j=[h.data.errorMsg];q.value.push({index:t,content:j,title:z})}if(i.setContentLoading(!0),n.value=!1,P.value=!1,i.setShowContent(!0),!h.data.isSuccess)throw h.data},h=>{K({message:"获取章节内容失败",type:"error"});let j=["获取章节内容失败!"];throw q.value.push({index:t,content:j,title:z}),n.value=!1,i.setShowContent(!0),h})},V=m(),L=m(),Ce=t=>{Ve(()=>{L.value.length===1&&L.value[0].scrollToReadedLength(t)})},Le=(t,u)=>{Ee(t,u)};Qe(()=>{var t;document.title=((t=B.value[A.value])==null?void 0:t.title)||document.title});const Ee=(t,u)=>{let N=sessionStorage.getItem("bookUrl");var U=JSON.parse(localStorage.getItem(N));U.index=t,U.chapterPos=u,localStorage.setItem(N,JSON.stringify(U)),U=JSON.parse(localStorage.getItem("readingRecent")),U.chapterIndex=t,U.chapterPos=u,localStorage.setItem("readingRecent",JSON.stringify(U)),A.value=t,I.value=u,sessionStorage.setItem("chapterIndex",t),sessionStorage.setItem("chapterPos",String(u))},ae=()=>{c.value&&document.visibilityState=="hidden"&&(document.removeEventListener("pagehide",ae),navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(c.value)))},we=()=>{i.setContentLoading(!0);let t=A.value+1;typeof B.value[t]<"u"?(K({message:"下一章",type:"info"}),G(t)):K({message:"本章是最后一章",type:"error"})},Ue=()=>{i.setContentLoading(!0);let t=A.value-1;typeof B.value[t]<"u"?(K({message:"上一章",type:"info"}),G(t)):K({message:"本章是第一章",type:"error"})},ie=m(null),be=m();Qe(()=>{var t,u;F.value?(u=ie.value)==null||u.observe(be.value):(t=ie.value)==null||t.disconnect()});const Fe=()=>{let t=q.value.slice(-1)[0].index;B.value.length-1>t&&G(t+1,!1)},Pe=t=>{if(!n.value)for(let{isIntersecting:u}of t){if(!u)return;Fe()}},xe=t=>{switch(t.key){case"ArrowLeft":t.stopPropagation(),t.preventDefault(),Ue();break;case"ArrowRight":t.stopPropagation(),t.preventDefault(),we();break;case"ArrowUp":t.stopPropagation(),t.preventDefault(),document.documentElement.scrollTop===0?K({message:"已到达页面顶部",type:"warn"}):ee(0-document.documentElement.clientHeight+100);break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),document.documentElement.clientHeight+document.documentElement.scrollTop===document.documentElement.scrollHeight?K({message:"已到达页面底部",type:"warn"}):ee(document.documentElement.clientHeight-100);break}};return ke(()=>{n.value=!0;let t=sessionStorage.getItem("bookUrl"),u=sessionStorage.getItem("bookName"),N=sessionStorage.getItem("bookAuthor"),U=Number(sessionStorage.getItem("chapterIndex")||0),z=Number(sessionStorage.getItem("chapterPos")||0);var O=JSON.parse(localStorage.getItem(t));(O==null||U!=O.index||z!=O.chapterPos)&&(O={bookName:u,bookAuthor:N,bookUrl:t,index:U,chapterPos:z},localStorage.setItem(t,JSON.stringify(O))),Ie.getChapterList(t).then(h=>{if(n.value=!1,!h.data.isSuccess){K({message:h.data.errorMsg,type:"error"}),setTimeout(D,500);return}let j=h.data.data;i.setCatalog(j),i.setReadingBook(O),G(U,!0,z),window.addEventListener("keyup",xe),document.addEventListener("visibilitychange",ae),document.addEventListener("pagehide",ae),ie.value=new IntersectionObserver(Pe,{rootMargin:"-100% 0% 20% 0%"}),F.value&&ie.value.observe(be.value),document.title=null,document.title=u+" | "+B.value[U].title},h=>{throw n.value=!1,K({message:"获取书籍目录失败",type:"error"}),h})}),_e(()=>{var t;window.removeEventListener("keyup",xe),document.removeEventListener("visibilitychange",ae),document.removeEventListener("pagehide",ae),S.value=!1,y.value=!1,(t=ie.value)==null||t.disconnect()}),(t,u)=>{const N=Yo,U=Re,z=zo,O=it;return f(),v("div",{class:_(["chapter-wrapper",{night:o(Ae),day:!o(Ae)}]),style:T(o(he)),onClick:u[2]||(u[2]=h=>Y.value=!o(Y))},[e("div",{class:"tool-bar",style:T(o(ve))},[e("div",Xo,[W(U,{placement:"right",width:o(re),trigger:"click","show-arrow":!1,visible:o(y),"onUpdate:visible":u[0]||(u[0]=h=>ue(y)?y.value=h:null),"popper-class":"pop-cata"},{reference:J(()=>[e("div",{class:_(["tool-icon",{"no-point":o(P)}])},en,2)]),default:J(()=>[W(N,{onGetContent:G,class:"popup"})]),_:1},8,["width","visible"]),W(U,{placement:"right",width:o(re),trigger:"click","show-arrow":!1,visible:o(S),"onUpdate:visible":u[1]||(u[1]=h=>ue(S)?S.value=h:null),"popper-class":"pop-setting"},{reference:J(()=>[e("div",{class:_(["tool-icon",{"no-point":o(P)}])},nn,2)]),default:J(()=>[W(z,{class:"popup"})]),_:1},8,["width","visible"]),e("div",{class:"tool-icon",onClick:D},cn),e("div",{class:_(["tool-icon",{"no-point":o(P)}]),onClick:Q},An,2),e("div",{class:_(["tool-icon",{"no-point":o(P)}]),onClick:ye},gn,2)])],4),e("div",{class:"read-bar",style:T(o(me))},[e("div",pn,[e("div",{class:_(["tool-icon",{"no-point":o(P)}]),onClick:Ue},[hn,o(d)?(f(),v("span",fn,"上一章")):de("",!0)],2),e("div",{class:_(["tool-icon",{"no-point":o(P)}]),onClick:we},[o(d)?(f(),v("span",vn,"下一章")):de("",!0),mn],2)])],4),yn,e("div",{class:"chapter",ref_key:"content",ref:p,style:T(o(fe))},[e("div",Cn,[e("div",{class:"top-bar",ref_key:"top",ref:X},null,512),(f(!0),v(oe,null,ce(o(q),h=>(f(),v("div",{key:h.index,chapterIndex:h.index,ref_for:!0,ref_key:"chapter",ref:V},[o(C)?(f(),Ye(O,{key:0,ref_for:!0,ref_key:"chapterRef",ref:L,chapterIndex:h.index,contents:h.content,title:h.title,spacing:o(i).config.spacing,fontSize:o(ne),fontFamily:o(M),onReadedLengthChange:Le},null,8,["chapterIndex","contents","title","spacing","fontSize","fontFamily"])):de("",!0)],8,bn))),128)),e("div",{class:"loading",ref_key:"loading",ref:be},null,512),e("div",{class:"bottom-bar",ref_key:"bottom",ref:se},null,512)])],4)],6)}}},En=le(In,[["__scopeId","data-v-ea7d72b2"]]);export{En as default}; diff --git a/app/src/main/assets/web/vue/assets/BookShelf-d61477a8.js b/app/src/main/assets/web/vue/assets/BookShelf-d61477a8.js deleted file mode 100644 index a8b2c1df2..000000000 --- a/app/src/main/assets/web/vue/assets/BookShelf-d61477a8.js +++ /dev/null @@ -1 +0,0 @@ -import{a1 as Q,n as $,o as g,d as f,g as e,F as V,O as P,t as d,a2 as B,a3 as S,c as q,w as z,f as M,u as o,a4 as G,a5 as D,p as L,i as W,s as X,z as _,J as j,N as J,S as ee,k,e as x,A as te,K as se,v as N,a6 as ae,H as oe,B as ne,a7 as ce}from"./vendor-42d5cecc.js";import{d as re,l as le}from"./el-loading-06a73ac7.js";import{_ as H,u as ie,A as E}from"./index-dfa25950.js";const O=n=>(L("data-v-fd33c3e8"),n=n(),W(),n),de={class:"books-wrapper"},ue={class:"wrapper"},he=["onClick"],pe={class:"cover-img"},ve=["src"],_e={class:"info"},ge={class:"name"},fe={class:"sub"},me={class:"author"},we={class:"tags"},Ae={class:"update-info"},Ie=O(()=>e("div",{class:"dot"},"•",-1)),Be={class:"size"},Se=O(()=>e("div",{class:"dot"},"•",-1)),ke={class:"date"},xe={class:"last-chapter"},ye={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(n,{emit:r}){const y=n;Q(s=>({"036742a7":o(m)}));const C=s=>r("bookClick",G(s)),R=s=>/^data:/.test(s)?s:location.origin+"/cover?path="+encodeURIComponent(s),m=$(()=>y.isSearch?"space-between":"flex-start");return(s,h)=>{const w=D;return g(),f("div",de,[e("div",ue,[(g(!0),f(V,null,P(n.books,c=>{var i;return g(),f("div",{class:"book",key:c.bookUrl,onClick:l=>C(c)},[e("div",pe,[(g(),f("img",{class:"cover",src:R(c.coverUrl),key:c.coverUrl,alt:"",loading:"lazy"},null,8,ve))]),e("div",_e,[e("div",ge,d(c.name),1),e("div",fe,[e("div",me,d(c.author),1),B(e("div",we,[(g(!0),f(V,null,P((i=c.kind)==null?void 0:i.split(",").slice(0,2),l=>(g(),q(w,{key:l},{default:z(()=>[M(d(l),1)]),_:2},1024))),128))],512),[[S,n.isSearch]]),B(e("div",Ae,[Ie,e("div",Be,"共"+d(c.totalChapterNum)+"章",1),Se,e("div",ke,d(o(re)(c.lastCheckTime)),1)],512),[[S,!n.isSearch]])]),B(e("div",{class:"intro"},d(c.intro),513),[[S,n.isSearch]]),B(e("div",{class:"dur-chapter"}," 已读:"+d(c.durChapterTitle),513),[[S,!n.isSearch]]),e("div",xe,"最新:"+d(c.latestChapterTitle),1)])],8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iRiBwt6xPMrBExFZEdRcYR8WOt9bb8MNoKAJ+3Jvtwed05d4dSKtz+c4h4VGsdrRWttZMici8AXFVix+4homNLBUmWZQcQMc/9x4mommXZ84i4t11MKbV5dHR06bxvH5uZmbnZOfdN6O0RmMNE1CxulgCstdeKyBcAcFPrVTyltZ4wxiSVSuXplkhda72zh9P1rClFZFOSJHMdAP5Hq3rxR6eH+IGIvIOuqFlr94nIc10WdRzxy6riAMJnr2nn3JlcME3TppMWNWvtfhF5pmB8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==";const T=n=>(L("data-v-179d47ba"),n=n(),W(),n),Ee={class:"index-wrapper"},ze={class:"navigation-wrapper"},Me=T(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Te={class:"search-wrapper"},be={class:"bottom-wrapper"},Ve={class:"recent-wrapper"},Pe=T(()=>e("div",{class:"recent-title"},"最近阅读",-1)),Je={class:"reading-recent"},Ne={class:"setting-wrapper"},De=T(()=>e("div",{class:"setting-title"},"基本设定",-1)),Le={class:"setting-item"},We={class:"bottom-icons"},He={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},Oe={class:"bottom-icon"},Ze=["src"],Ke={__name:"BookShelf",setup(n){const r=ie(),{connectStatus:y,connectType:C,newConnect:R,shelf:m}=X(r),s=_({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),h=_(!1),w=_(null),c=_(null);j(h,t=>{var a;if(!t)return(a=c.value)==null?void 0:a.close();c.value=ce.service({target:w.value,spinner:le,text:"正在获取书籍信息",lock:!0})});const i=_([]);J(()=>{i.value.length>0&&(h.value=!1)});const l=_(""),A=_(!1);J(()=>{if(!(A.value&&l.value!="")){if(A.value=!1,i.value=[],l.value==""){i.value=m.value;return}i.value=m.value.filter(t=>t.name.includes(l.value)||t.author.includes(l.value))}});const Z=()=>{l.value!=""&&(i.value=[],r.clearSearchBooks(),h.value=!0,A.value=!0,E.search(l.value,t=>{try{r.setSearchBooks(JSON.parse(t)),r.searchBooks.forEach(a=>i.value.push(a))}catch(a){throw k.error("后端数据错误"),a}},()=>{h.value=!1,i.value.length==0&&k.info("搜索结果为空")}))},K=()=>{},F=ae(),Y=async t=>{const{bookUrl:a,name:p,author:u,durChapterIndex:v=0,durChapterPos:I=0}=t;await E.saveBook(t),b(a,p,u,v,I)},b=(t,a,p,u,v)=>{a!=="尚无阅读记录"&&(sessionStorage.setItem("bookUrl",t),sessionStorage.setItem("bookName",a),sessionStorage.setItem("bookAuthor",p),sessionStorage.setItem("chapterIndex",u),sessionStorage.setItem("chapterPos",v),s.value={name:a,author:p,url:t,chapterIndex:u,chapterPos:v},localStorage.setItem("readingRecent",JSON.stringify(s.value)),F.push({path:"/chapter"}))};ee(()=>{let t=localStorage.getItem("readingRecent");t!=null&&(s.value=JSON.parse(t),typeof s.value.chapterIndex>"u"&&(s.value.chapterIndex=0)),h.value=!0,r.saveBookProgress().finally(U)});const U=()=>{E.getBookShelf().then(t=>{r.setConnectType("success"),t.data.isSuccess?r.addBooks(t.data.data.sort(function(a,p){var u=a.durChapterTime||0,v=p.durChapterTime||0;return v-u})):(k.error(t.data.errorMsg),h.value=!1),r.setConnectStatus("已连接 "),r.setNewConnect(!1)}).catch(function(t){throw h.value=!1,r.setConnectType("danger"),r.setConnectStatus("连接失败"),k.error("后端连接失败"),r.setNewConnect(!1),t})};return(t,a)=>{const p=oe,u=D,v=Ce;return g(),f("div",Ee,[e("div",ze,[Me,e("div",Te,[x(p,{placeholder:"搜索书籍,在线书籍自动加入书架",modelValue:o(l),"onUpdate:modelValue":a[0]||(a[0]=I=>te(l)?l.value=I:null),class:"search-input","prefix-icon":o(ne),onKeyup:se(Z,["enter"])},null,8,["modelValue","prefix-icon","onKeyup"])]),e("div",be,[e("div",Ve,[Pe,e("div",Je,[x(u,{type:o(s).name=="尚无阅读记录"?"warning":"",class:N(["recent-book",{"no-point":o(s).url==""}]),size:"large",onClick:a[1]||(a[1]=I=>b(o(s).url,o(s).name,o(s).author,o(s).chapterIndex,o(s).chapterPos))},{default:z(()=>[M(d(o(s).name),1)]),_:1},8,["type","class"])])]),e("div",Ne,[De,e("div",Le,[x(u,{type:o(C),size:"large",class:N(["setting-connect",{"no-point":o(R)}]),onClick:K},{default:z(()=>[M(d(o(y)),1)]),_:1},8,["type","class"])])])]),e("div",We,[e("a",He,[e("div",Oe,[e("img",{src:o(Re),alt:""},null,8,Ze)])])])]),e("div",{class:"shelf-wrapper",ref_key:"shelfWrapper",ref:w},[x(v,{books:o(i),onBookClick:Y,isSearch:o(A)},null,8,["books","isSearch"])],512)])}}},Qe=H(Ke,[["__scopeId","data-v-179d47ba"]]);export{Qe as default}; diff --git a/app/src/main/assets/web/vue/assets/BookShelf-dabb2b6c.js b/app/src/main/assets/web/vue/assets/BookShelf-dabb2b6c.js new file mode 100644 index 000000000..f8fed41c8 --- /dev/null +++ b/app/src/main/assets/web/vue/assets/BookShelf-dabb2b6c.js @@ -0,0 +1 @@ +import{a1 as Q,n as $,o as _,d as v,g as e,F as b,O as L,t as l,a2 as I,a3 as B,c as q,w as M,f as T,u as a,a4 as G,a5 as D,p as J,i as W,s as X,z as g,N as j,S as ee,k,e as S,A as te,K as se,v as N,a6 as ae,H as oe,B as ne}from"./vendor-0c9d4c13.js";import{d as ce,u as re}from"./loading-ddccb8e8.js";import{_ as H,u as ie,A as z}from"./index-3dbb2f78.js";const O=n=>(J("data-v-fd33c3e8"),n=n(),W(),n),le={class:"books-wrapper"},de={class:"wrapper"},ue=["onClick"],he={class:"cover-img"},pe=["src"],_e={class:"info"},ve={class:"name"},ge={class:"sub"},me={class:"author"},fe={class:"tags"},we={class:"update-info"},Ae=O(()=>e("div",{class:"dot"},"•",-1)),Ie={class:"size"},Be=O(()=>e("div",{class:"dot"},"•",-1)),ke={class:"date"},Se={class:"last-chapter"},ye={__name:"BookItems",props:["books","isSearch"],emits:["bookClick"],setup(n,{emit:c}){const y=n;Q(t=>({"036742a7":a(m)}));const x=t=>c("bookClick",G(t)),C=t=>/^data:/.test(t)?t:location.origin+"/cover?path="+encodeURIComponent(t),m=$(()=>y.isSearch?"space-between":"flex-start");return(t,R)=>{const E=D;return _(),v("div",le,[e("div",de,[(_(!0),v(b,null,L(n.books,r=>{var f;return _(),v("div",{class:"book",key:r.bookUrl,onClick:i=>x(r)},[e("div",he,[(_(),v("img",{class:"cover",src:C(r.coverUrl),key:r.coverUrl,alt:"",loading:"lazy"},null,8,pe))]),e("div",_e,[e("div",ve,l(r.name),1),e("div",ge,[e("div",me,l(r.author),1),I(e("div",fe,[(_(!0),v(b,null,L((f=r.kind)==null?void 0:f.split(",").slice(0,2),i=>(_(),q(E,{key:i},{default:M(()=>[T(l(i),1)]),_:2},1024))),128))],512),[[B,n.isSearch]]),I(e("div",we,[Ae,e("div",Ie,"共"+l(r.totalChapterNum)+"章",1),Be,e("div",ke,l(a(ce)(r.lastCheckTime)),1)],512),[[B,!n.isSearch]])]),I(e("div",{class:"intro"},l(r.intro),513),[[B,n.isSearch]]),I(e("div",{class:"dur-chapter"}," 已读:"+l(r.durChapterTitle),513),[[B,!n.isSearch]]),e("div",Se,"最新:"+l(r.latestChapterTitle),1)])],8,ue)}),128))])])}}},xe=H(ye,[["__scopeId","data-v-fd33c3e8"]]);const Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAECUlEQVRYR7WXTYhcRRDHq3pY9yKrYBQ8KBsjgvHgwRhiQBTjYZm4Xe8NusawhwS/o9GLoKhgBGPAgJd1NdGIXwtZTbRf9Rqzl6gHTVyDeIkIgnEOghAM6oKHzTJd0sO8Zaa338zb7NjwmJn++Ndv+lVVVyOso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B8WX0RvZgEEEtaYUUbM2KtfUdE/FUubNHipvBmZIxZp5TaDwBprlQGIHLqzSHiPq01x4B7Xk6Z2d8TfDwPlwFozfd1f90598Hi4uKrY2NjFwrzQVkP81nNi/byAWOMv8gOp2n6fhnt/wDqJrRWLmhIrwAAAABJRU5ErkJggg==";const V=n=>(J("data-v-1fc5c811"),n=n(),W(),n),Re={class:"index-wrapper"},Ee={class:"navigation-wrapper"},ze=V(()=>e("div",{class:"navigation-title-wrapper"},[e("div",{class:"navigation-title"},"阅读"),e("div",{class:"navigation-sub-title"},"清风不识字,何故乱翻书")],-1)),Me={class:"search-wrapper"},Te={class:"bottom-wrapper"},Ve={class:"recent-wrapper"},Pe=V(()=>e("div",{class:"recent-title"},"最近阅读",-1)),be={class:"reading-recent"},Le={class:"setting-wrapper"},Ne=V(()=>e("div",{class:"setting-title"},"基本设定",-1)),De={class:"setting-item"},Je={class:"bottom-icons"},We={href:"https://github.com/gedoor/legado_web_bookshelf",target:"_blank"},He={class:"bottom-icon"},Oe=["src"],Ze={__name:"BookShelf",setup(n){const c=ie(),{connectStatus:y,connectType:x,newConnect:C,shelf:m}=X(c),t=g({name:"尚无阅读记录",author:"",url:"",chapterIndex:0,chapterPos:0}),R=g(null),{showLoading:E,closeLoading:r,loadingWrapper:f}=re(R,"正在获取书籍信息"),i=g([]),d=g(""),w=g(!1);j(()=>{if(!(w.value&&d.value!="")){if(w.value=!1,i.value=[],d.value==""){i.value=m.value;return}i.value=m.value.filter(s=>s.name.includes(d.value)||s.author.includes(d.value))}});const Z=()=>{d.value!=""&&(i.value=[],c.clearSearchBooks(),E(),w.value=!0,z.search(d.value,s=>{try{c.setSearchBooks(JSON.parse(s)),c.searchBooks.forEach(o=>i.value.push(o))}catch(o){throw k.error("后端数据错误"),o}},()=>{r(),i.value.length==0&&k.info("搜索结果为空")}))},K=()=>{},F=ae(),Y=async s=>{const{bookUrl:o,name:h,author:u,durChapterIndex:p=0,durChapterPos:A=0}=s;await z.saveBook(s),P(o,h,u,p,A)},P=(s,o,h,u,p)=>{o!=="尚无阅读记录"&&(sessionStorage.setItem("bookUrl",s),sessionStorage.setItem("bookName",o),sessionStorage.setItem("bookAuthor",h),sessionStorage.setItem("chapterIndex",u),sessionStorage.setItem("chapterPos",p),t.value={name:o,author:h,url:s,chapterIndex:u,chapterPos:p},localStorage.setItem("readingRecent",JSON.stringify(t.value)),F.push({path:"/chapter"}))};ee(()=>{let s=localStorage.getItem("readingRecent");s!=null&&(t.value=JSON.parse(s),typeof t.value.chapterIndex>"u"&&(t.value.chapterIndex=0)),f(c.saveBookProgress().finally(U))});const U=()=>z.getBookShelf().then(s=>{c.setConnectType("success"),s.data.isSuccess?c.addBooks(s.data.data.sort(function(o,h){var u=o.durChapterTime||0,p=h.durChapterTime||0;return p-u})):k.error(s.data.errorMsg),c.setConnectStatus("已连接 "),c.setNewConnect(!1)}).catch(function(s){throw c.setConnectType("danger"),c.setConnectStatus("连接失败"),k.error("后端连接失败"),c.setNewConnect(!1),s});return(s,o)=>{const h=oe,u=D,p=xe;return _(),v("div",Re,[e("div",Ee,[ze,e("div",Me,[S(h,{placeholder:"搜索书籍,在线书籍自动加入书架",modelValue:a(d),"onUpdate:modelValue":o[0]||(o[0]=A=>te(d)?d.value=A:null),class:"search-input","prefix-icon":a(ne),onKeyup:se(Z,["enter"])},null,8,["modelValue","prefix-icon","onKeyup"])]),e("div",Te,[e("div",Ve,[Pe,e("div",be,[S(u,{type:a(t).name=="尚无阅读记录"?"warning":"",class:N(["recent-book",{"no-point":a(t).url==""}]),size:"large",onClick:o[1]||(o[1]=A=>P(a(t).url,a(t).name,a(t).author,a(t).chapterIndex,a(t).chapterPos))},{default:M(()=>[T(l(a(t).name),1)]),_:1},8,["type","class"])])]),e("div",Le,[Ne,e("div",De,[S(u,{type:a(x),size:"large",class:N(["setting-connect",{"no-point":a(C)}]),onClick:K},{default:M(()=>[T(l(a(y)),1)]),_:1},8,["type","class"])])])]),e("div",Je,[e("a",We,[e("div",He,[e("img",{src:a(Ce),alt:""},null,8,Oe)])])])]),e("div",{class:"shelf-wrapper",ref_key:"shelfWrapper",ref:R},[S(p,{books:a(i),onBookClick:Y,isSearch:a(w)},null,8,["books","isSearch"])],512)])}}},Ue=H(Ze,[["__scopeId","data-v-1fc5c811"]]);export{Ue as default}; diff --git a/app/src/main/assets/web/vue/assets/BookShelf-e718c249.css b/app/src/main/assets/web/vue/assets/BookShelf-fdcf8eba.css similarity index 65% rename from app/src/main/assets/web/vue/assets/BookShelf-e718c249.css rename to app/src/main/assets/web/vue/assets/BookShelf-fdcf8eba.css index fd090167f..0e1d38075 100644 --- a/app/src/main/assets/web/vue/assets/BookShelf-e718c249.css +++ b/app/src/main/assets/web/vue/assets/BookShelf-fdcf8eba.css @@ -1 +1 @@ -@charset "UTF-8";.books-wrapper[data-v-fd33c3e8]{overflow:scroll}.books-wrapper .wrapper[data-v-fd33c3e8]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-fd33c3e8]{user-select:none;display:flex;cursor:pointer;margin-bottom:18px;padding:24px;width:360px;flex-direction:row;justify-content:space-around}.books-wrapper .wrapper .book .cover-img[data-v-fd33c3e8],.books-wrapper .wrapper .book .cover-img .cover[data-v-fd33c3e8]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-fd33c3e8]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1}.books-wrapper .wrapper .book .info .name[data-v-fd33c3e8]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-fd33c3e8]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--036742a7);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-fd33c3e8] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-fd33c3e8]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-fd33c3e8]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-fd33c3e8],.books-wrapper .wrapper .book .info .dur-chapter[data-v-fd33c3e8],.books-wrapper .wrapper .book .info .last-chapter[data-v-fd33c3e8]{color:#969ba3;font-size:13px;margin-top:3px;font-weight:500;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}.books-wrapper .wrapper .book[data-v-fd33c3e8]:hover{background:rgba(0,0,0,.1);transition-duration:.5s}.books-wrapper .wrapper[data-v-fd33c3e8]:last-child{margin-right:auto}.books-wrapper[data-v-fd33c3e8]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-fd33c3e8]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-fd33c3e8]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}@font-face{font-family:FZZCYSK;src:local("\263a"),url(./shelffont-16b1b95a.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-179d47ba]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-179d47ba]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-179d47ba]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-179d47ba]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-179d47ba]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-179d47ba] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-179d47ba]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-179d47ba]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-179d47ba]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-179d47ba]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-179d47ba]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-179d47ba]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-179d47ba]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-179d47ba]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-179d47ba]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-179d47ba]{padding:48px;width:100%;display:flex;flex-direction:column}.index-wrapper .shelf-wrapper[data-v-179d47ba] .el-loading-mask{background-color:#0000}.index-wrapper .shelf-wrapper[data-v-179d47ba] .el-loading-spinner{font-size:36px;color:#b5b5b5}.index-wrapper .shelf-wrapper[data-v-179d47ba] .el-loading-text{font-weight:500;color:#b5b5b5}@media screen and (max-width: 750px){.index-wrapper[data-v-179d47ba]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-179d47ba]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-179d47ba]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-179d47ba],.index-wrapper .navigation-wrapper .bottom-icons[data-v-179d47ba]{display:none}.index-wrapper .shelf-wrapper[data-v-179d47ba]{padding:0}.index-wrapper .shelf-wrapper[data-v-179d47ba] .el-loading-spinner{display:none}} +@charset "UTF-8";.books-wrapper[data-v-fd33c3e8]{overflow:scroll}.books-wrapper .wrapper[data-v-fd33c3e8]{display:grid;grid-template-columns:repeat(auto-fill,380px);justify-content:space-around;grid-gap:10px}.books-wrapper .wrapper .book[data-v-fd33c3e8]{user-select:none;display:flex;cursor:pointer;margin-bottom:18px;padding:24px;width:360px;flex-direction:row;justify-content:space-around}.books-wrapper .wrapper .book .cover-img[data-v-fd33c3e8],.books-wrapper .wrapper .book .cover-img .cover[data-v-fd33c3e8]{width:84px;height:112px}.books-wrapper .wrapper .book .info[data-v-fd33c3e8]{display:flex;flex-direction:column;justify-content:space-around;align-items:left;height:112px;margin-left:20px;flex:1}.books-wrapper .wrapper .book .info .name[data-v-fd33c3e8]{width:fit-content;font-size:16px;font-weight:700;color:#33373d}.books-wrapper .wrapper .book .info .sub[data-v-fd33c3e8]{display:flex;flex-direction:row;align-items:baseline;justify-content:var(--036742a7);font-size:12px;font-weight:600;color:#6b6b6b}.books-wrapper .wrapper .book .info .sub .tags[data-v-fd33c3e8] .el-tag{margin-right:.5em}.books-wrapper .wrapper .book .info .sub .update-info[data-v-fd33c3e8]{display:flex}.books-wrapper .wrapper .book .info .sub .update-info .dot[data-v-fd33c3e8]{margin:0 7px}.books-wrapper .wrapper .book .info .intro[data-v-fd33c3e8],.books-wrapper .wrapper .book .info .dur-chapter[data-v-fd33c3e8],.books-wrapper .wrapper .book .info .last-chapter[data-v-fd33c3e8]{color:#969ba3;font-size:13px;margin-top:3px;font-weight:500;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}.books-wrapper .wrapper .book[data-v-fd33c3e8]:hover{background:rgba(0,0,0,.1);transition-duration:.5s}.books-wrapper .wrapper[data-v-fd33c3e8]:last-child{margin-right:auto}.books-wrapper[data-v-fd33c3e8]::-webkit-scrollbar{width:0!important}@media screen and (max-width: 750px){.books-wrapper .wrapper[data-v-fd33c3e8]{display:flex;flex-direction:column}.books-wrapper .wrapper .book[data-v-fd33c3e8]{box-sizing:border-box;width:100%;margin-bottom:0;padding:10px 20px}}@font-face{font-family:FZZCYSK;src:local("\263a"),url(./shelffont-16b1b95a.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-1fc5c811]{height:100%;width:100%;display:flex;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-1fc5c811]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-1fc5c811]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-1fc5c811]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-1fc5c811]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-1fc5c811] .el-input__wrapper{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-1fc5c811]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-1fc5c811]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-1fc5c811]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-1fc5c811]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-1fc5c811]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-1fc5c811]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-1fc5c811]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-1fc5c811]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-1fc5c811]{position:fixed;bottom:0;height:120px;width:260px;align-items:center;display:flex;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-1fc5c811]{padding:48px;width:100%;display:flex;flex-direction:column}.index-wrapper .shelf-wrapper[data-v-1fc5c811] .el-loading-mask{background-color:#0000}.index-wrapper .shelf-wrapper[data-v-1fc5c811] .el-loading-spinner{font-size:36px;color:#b5b5b5}.index-wrapper .shelf-wrapper[data-v-1fc5c811] .el-loading-text{font-weight:500;color:#b5b5b5}@media screen and (max-width: 750px){.index-wrapper[data-v-1fc5c811]{overflow-x:hidden;flex-direction:column}.index-wrapper .navigation-wrapper[data-v-1fc5c811]{padding:20px 24px;box-sizing:border-box;width:100%}.index-wrapper .navigation-wrapper .navigation-title-wrapper[data-v-1fc5c811]{white-space:nowrap;display:flex;justify-content:space-between;align-items:flex-end}.index-wrapper .navigation-wrapper .bottom-wrapper[data-v-1fc5c811],.index-wrapper .navigation-wrapper .bottom-icons[data-v-1fc5c811]{display:none}.index-wrapper .shelf-wrapper[data-v-1fc5c811]{padding:0}.index-wrapper .shelf-wrapper[data-v-1fc5c811] .el-loading-spinner{display:none}} diff --git a/app/src/main/assets/web/vue/assets/config-6d5bece2.js b/app/src/main/assets/web/vue/assets/config-366f8406.js similarity index 60% rename from app/src/main/assets/web/vue/assets/config-6d5bece2.js rename to app/src/main/assets/web/vue/assets/config-366f8406.js index 5ba51c9a1..bb28ec12d 100644 --- a/app/src/main/assets/web/vue/assets/config-6d5bece2.js +++ b/app/src/main/assets/web/vue/assets/config-366f8406.js @@ -1 +1 @@ -import{u as n,A as r}from"./index-dfa25950.js";import"./vendor-42d5cecc.js";const i=n();i.setMiniInterface(window.innerWidth<750);window.onresize=()=>{i.setMiniInterface(window.innerWidth<750)};r.getReadConfig().then(a=>{var e=a.data.data;if(e){const t=n();let o=JSON.parse(e),s=t.config;o=Object.assign(s,o),t.setConfig(o)}}); +import{u as n,A as r}from"./index-3dbb2f78.js";import"./vendor-0c9d4c13.js";const i=n();i.setMiniInterface(window.innerWidth<750);window.onresize=()=>{i.setMiniInterface(window.innerWidth<750)};r.getReadConfig().then(a=>{var e=a.data.data;if(e){const t=n();let o=JSON.parse(e),s=t.config;o=Object.assign(s,o),t.setConfig(o)}}); diff --git a/app/src/main/assets/web/vue/assets/el-loading-06a73ac7.js b/app/src/main/assets/web/vue/assets/el-loading-06a73ac7.js deleted file mode 100644 index 776f14fc4..000000000 --- a/app/src/main/assets/web/vue/assets/el-loading-06a73ac7.js +++ /dev/null @@ -1 +0,0 @@ -import{u}from"./index-dfa25950.js";const f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function D(t,n,e,a){let s=t<12?"AM":"PM";return a&&(s=s.split("").reduce((l,i)=>l+=`${i}.`,"")),e?s.toLowerCase():s}function L(t,n,e={}){var a;const s=t.getFullYear(),l=t.getMonth(),i=t.getDate(),o=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),m=t.getMilliseconds(),d=t.getDay(),c=(a=e.customMeridiem)!=null?a:D,M={YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>l+1,MM:()=>`${l+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(i),DD:()=>`${i}`.padStart(2,"0"),H:()=>String(o),HH:()=>`${o}`.padStart(2,"0"),h:()=>`${o%12||12}`.padStart(1,"0"),hh:()=>`${o%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${m}`.padStart(3,"0"),d:()=>d,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(o,r),AA:()=>c(o,r,!1,!0),a:()=>c(o,r,!0),aa:()=>c(o,r,!0,!0)};return n.replace(f,(S,h)=>h||M[S]())}const w=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function Y(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+u().config.readWidth}const $=t=>{let n=new Date().getTime(),e=Math.floor((n-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=L(new Date(t),"YYYY-MM-DD"),a},v='';export{$ as d,Y as g,w as i,v as l}; diff --git a/app/src/main/assets/web/vue/assets/index-3dbb2f78.js b/app/src/main/assets/web/vue/assets/index-3dbb2f78.js new file mode 100644 index 000000000..5c3f33131 --- /dev/null +++ b/app/src/main/assets/web/vue/assets/index-3dbb2f78.js @@ -0,0 +1,13 @@ +import{r as xe,o as l,c as C,a as ne,b as re,d as E,e as p,w as u,f as y,u as i,l as z,g,F as R,E as Be,h as ue,p as Ue,i as Ee,j as Ve,k as x,m as de,s as X,n as F,t as Q,q as pe,v as he,x as se,y as Ie,z as O,A as M,B as ge,C as Ne,D as Te,G as ie,V as $e,H as Y,I as Le,J as _e,K as Re,L as T,M as Oe,N as Pe,O as K,P as me,Q as Se,R as q,S as De,T as Je,U as Ae,W as Ke,X as je,Y as Me,Z as He,_ as Fe,$ as ze,a0 as qe}from"./vendor-0c9d4c13.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();const We="modulepreload",Ge=function(e,t){return new URL(e,t).href},le={},oe=function(t,o,s){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(r=>{if(r=Ge(r,s),r in le)return;le[r]=!0;const a=r.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(!!s)for(let S=n.length-1;S>=0;S--){const w=n[S];if(w.href===r&&(!a||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${f}`))return;const _=document.createElement("link");if(_.rel=a?"stylesheet":We,a||(_.as="script",_.crossOrigin=""),_.href=r,document.head.appendChild(_),a)return new Promise((S,w)=>{_.addEventListener("load",S),_.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},P=(e,t)=>{const o=e.__vccOpts||e;for(const[s,n]of t)o[s]=n;return o},Qe={};function Xe(e,t){const o=xe("router-view");return l(),C(o)}const Ye=P(Qe,[["render",Xe]]),ye=[{path:"/",name:"shelf",component:()=>oe(()=>import("./BookShelf-dabb2b6c.js"),["./BookShelf-dabb2b6c.js","./vendor-0c9d4c13.js","./vendor-6f0d1692.css","./loading-ddccb8e8.js","./loading-c009631e.css","./BookShelf-fdcf8eba.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>oe(()=>import("./BookChapter-1722c488.js"),["./BookChapter-1722c488.js","./vendor-0c9d4c13.js","./vendor-6f0d1692.css","./loading-ddccb8e8.js","./loading-c009631e.css","./BookChapter-0adbc371.css"],import.meta.url)}];ne({history:re(),routes:ye});const $=e=>(Ue("data-v-aee57c78"),e=e(),Ee(),e),Ze=$(()=>g("br",null,null,-1)),et=$(()=>g("br",null,null,-1)),tt=$(()=>g("br",null,null,-1)),ot=$(()=>g("br",null,null,-1)),nt=$(()=>g("br",null,null,-1)),rt={style:{"margin-top":"20px"}},st=$(()=>g("code",null,"^$()[]{}.?+*|",-1)),it=$(()=>g("br",null,null,-1)),lt=$(()=>g("code",null,"(?s)",-1)),at=$(()=>g("br",null,null,-1)),ct=$(()=>g("code",null,"(?m)",-1)),ut=$(()=>g("br",null,null,-1)),dt=$(()=>g("code",null,"(?i)",-1)),pt=$(()=>g("br",null,null,-1)),ht={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Be,n=ue;return l(),E(R,null,[p(s,{icon:i(z),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:u(()=>[y("书源制作教程")]),_:1},8,["icon"]),Ze,p(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:u(()=>[y("xpath基础教程")]),_:1},8,["icon"]),et,p(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:u(()=>[y("xpath高级教程")]),_:1},8,["icon"]),tt,p(s,{icon:i(z),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:u(()=>[y("正则表达式教程")]),_:1},8,["icon"]),ot,p(s,{icon:i(z),href:"https://regexr-cn.com/",target:"_blank"},{default:u(()=>[y("正则表达式在线验证工具")]),_:1},8,["icon"]),nt,g("div",rt,[g("span",null,[p(n,null,{default:u(()=>[st,y(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),it,g("span",null,[p(n,null,{default:u(()=>[lt,y(" 前缀表示跨行解析")]),_:1})]),at,g("span",null,[p(n,null,{default:u(()=>[ct,y(" 前缀表示逐行匹配")]),_:1})]),ut,g("span",null,[p(n,null,{default:u(()=>[dt,y(" 前缀表示忽略大小写")]),_:1})]),pt])],64)}}},gt=P(ht,[["__scopeId","data-v-aee57c78"]]),_t=1e3,V=Ve.create({baseURL:location.origin,timeout:120*_t}),{hostname:fe,port:be}=new URL(location.origin),mt=/source/i.test(location.href),St=e=>{throw mt&&x({message:"后端错误,检查网络或者阅读app",type:"error"}),e};V.interceptors.response.use(e=>e,St);const yt=()=>V.get("/getReadConfig"),ft=e=>V.post("/saveReadConfig",e),bt=e=>V.post("/saveBookProgress",e),kt=e=>{e&&navigator.sendBeacon(`${location.origin}/saveBookProgress`,JSON.stringify(e))},vt=()=>V.get("/getBookshelf"),Ct=e=>V.get("/getChapterList?url="+encodeURIComponent(e)),wt=(e,t)=>V.get("/getBookContent?url="+encodeURIComponent(e)+"&index="+t),xt=(e,t,o)=>{const s=`ws://${fe}:${Number(be)+1}/searchBook`,n=new WebSocket(s);n.onopen=()=>{n.send(`{"key":"${e}"}`)},n.onmessage=({data:r})=>t(r),n.onclose=()=>{o()}},Bt=e=>V.post("/saveBook",e),Ut=e=>V.post("/deleteBook",e),G=/bookSource/i.test(location.href),Et=()=>G?V.get("getBookSources"):V.get("getRssSources"),Vt=e=>G?V.post("saveBookSource",e):V.post("saveRssSource",e),It=e=>G?V.post("saveBookSources",e):V.post("saveRssSources",e),Nt=e=>G?V.post("deleteBookSources",e):V.post("deleteRssSources",e),Tt=(e,t,o,s)=>{const n=`ws://${fe}:${Number(be)+1}/${G?"bookSource":"rssSource"}Debug`,r=new WebSocket(n);r.onopen=()=>{r.send(JSON.stringify({tag:e,key:t}))},r.onmessage=({data:a})=>o(a),r.onclose=()=>{x({message:"调试已关闭!",type:"info"}),s()}},j={getReadConfig:yt,saveReadConfig:ft,saveBookProgress:bt,saveBookProgressWithBeacon:kt,getBookShelf:vt,getChapterList:Ct,getBookContent:wt,search:xt,saveBook:Bt,deleteBook:Ut,getSources:Et,saveSources:It,saveSource:Vt,deleteSource:Nt,debug:Tt},W=e=>e==null||e.length===0||/^\s+$/.test(e),ke=e=>"bookSourceName"in e,$t=e=>ke(e)?!W(e.bookSourceName)&&!W(e.bookSourceUrl)&&!W(e.bookSourceType):!W(e.sourceName)&&!W(e.sourceName),Lt=(e,t)=>{var o,s,n,r,a,f,b,_;return ke(e)?(((o=e.bookSourceName)==null?void 0:o.includes(t))||((s=e.bookSourceUrl)==null?void 0:s.includes(t))||((n=e.bookSourceGroup)==null?void 0:n.includes(t))||((r=e.bookSourceComment)==null?void 0:r.includes(t)))??!1:(((a=e.sourceName)==null?void 0:a.includes(t))||((f=e.sourceUrl)==null?void 0:f.includes(t))||((b=e.sourceGroup)==null?void 0:b.includes(t))||((_=e.sourceComment)==null?void 0:_.includes(t)))??!1},Rt={ruleSearch:{},ruleBookInfo:{},ruleToc:{},ruleContent:{},ruleReview:{},ruleExplore:{}},Ot={},A=/bookSource/i.test(location.href),ae=A?Rt:Ot,H=de("source",{state:()=>({bookSources:[],rssSources:[],savedSources:[],currentSource:ae,currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},isDebuging:!1}),getters:{sources:e=>A?e.bookSources:e.rssSources,sourceUrlKey:()=>A?"bookSourceUrl":"sourceUrl",sourcesMap:e=>{let t=new Map;return e.sources.forEach(o=>t.set(o[e.sourceUrlKey],o)),t},savedSourcesMap:e=>{let t=new Map;return e.savedSources.forEach(o=>t.set(o[e.sourceUrlKey],o)),t},currentSourceUrl:e=>A?e.currentSource.bookSourceUrl:e.currentSource.sourceUrl,searchKey:e=>A?e.currentSource.ruleSearch.checkKeyWord||"我的":null},actions:{startDebug(){this.currentTab="editDebug",this.isDebuging=!0},debugFinish(){this.isDebuging=!1},saveSources(e){A?this.bookSources=e:this.rssSources=e},setPushReturnSources(e){this.savedSources=e},deleteSources(e){let t=A?this.bookSources:this.rssSources;e.forEach(o=>{let s=t.indexOf(o);s>-1&&t.splice(s,1)})},saveCurrentSource(){let e=this.currentSource,t=this.sourcesMap;t.set(e[this.sourceUrlKey],e),this.saveSources(Array.from(t.values()))},changeCurrentSource(e){this.currentSource=JSON.parse(JSON.stringify(e))},changeTabName(e){this.currentTab=e,localStorage.setItem("tabName",e)},changeEditTabSource(e){this.editTabSource=JSON.parse(JSON.stringify(e))},editHistory(e){let t;if(localStorage.getItem("history"))t=JSON.parse(localStorage.getItem("history")),t.new.push(e),t.new.length>50&&t.new.shift(),t.old.length>50&&t.old.shift(),localStorage.setItem("history",JSON.stringify(t));else{const o={new:[e],old:[]};localStorage.setItem("history",JSON.stringify(o))}},editHistoryUndo(){if(localStorage.getItem("history")){let e=JSON.parse(localStorage.getItem("history"));e.old.push(this.currentSource),e.new.length&&(this.currentSource=e.new.pop()),localStorage.setItem("history",JSON.stringify(e))}},clearAllHistory(){localStorage.setItem("history",JSON.stringify({new:[],old:[]}))},clearEdit(){this.editTabSource={},this.currentSource=ae},clearAllSource(){this.bookSources=[],this.rssSources=[],this.savedSources=[]}}});const Pt={__name:"SourceItem",props:["source"],setup(e){const t=e,o=H(),{savedSourcesMap:s,currentSourceUrl:n,sourceUrlKey:r}=X(o),a=F(()=>t.source[r.value]),f=_=>{o.changeCurrentSource(_)},b=F(()=>s.value.size==0?!1:!s.value.has(a.value));return(_,S)=>{const w=se,v=Ie;return l(),C(v,{size:"large",border:"",label:i(a),class:he({error:i(b),edit:i(a)==i(n)})},{default:u(()=>[y(Q(e.source.bookSourceName||e.source.sourceName)+" ",1),p(w,{text:"",icon:i(pe),onClick:S[0]||(S[0]=c=>f(e.source))},null,8,["icon"])]),_:1},8,["label","class"])}}},Dt=P(Pt,[["__scopeId","data-v-894f04fc"]]);const Jt={class:"tool"},At={__name:"SourceList",setup(e){const t=H(),o=O([]),s=O(""),{sources:n,sourcesMap:r}=X(t),a=F(()=>/bookSource/.test(window.location.href)),f=F(()=>o.value.length==0?[]:o.value.map(c=>r.value.get(c)??{})),b=()=>{j.deleteSource(f.value).then(({data:c})=>{if(!c.isSuccess)return x.error(c.errorMsg);t.deleteSources(f.value),o.value=[]})},_=()=>{t.clearAllSource(),o.value=[]},S=F(()=>{let c=s.value;return c===""?n.value:n.value.filter(U=>Lt(U,c))}),w=()=>{const c=document.createElement("input");c.type="file",c.accept=".json,.txt",c.addEventListener("change",U=>{const D=U.target.files[0];var B=new FileReader;B.readAsText(D),B.onload=()=>{try{const J=JSON.parse(B.result);t.saveSources(J)}catch{x({message:"上传的源格式错误",type:"error"})}}}),c.click()},v=()=>{const c=document.createElement("a");let U=o.value.length===0?S.value:f.value,D=a.value?"BookSource":"RssSource";c.download=`${D}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let B=new Blob([JSON.stringify(U,null,4)],{type:"application/json"});c.href=window.URL.createObjectURL(B),c.click()};return(c,U)=>{const D=Y,B=se,J=Le;return l(),E(R,null,[p(D,{modelValue:i(s),"onUpdate:modelValue":U[0]||(U[0]=I=>M(s)?s.value=I:null),class:"search","prefix-icon":i(ge),placeholder:"筛选源"},null,8,["modelValue","prefix-icon"]),g("div",Jt,[p(B,{onClick:w,icon:i(Ne)},{default:u(()=>[y("打开")]),_:1},8,["icon"]),p(B,{disabled:i(S).length===0,onClick:v,icon:i(Te)},{default:u(()=>[y(" 导出")]),_:1},8,["disabled","icon"]),p(B,{type:"danger",icon:i(ie),onClick:b,disabled:i(o).length===0},{default:u(()=>[y("删除")]),_:1},8,["icon","disabled"]),p(B,{type:"danger",icon:i(ie),onClick:_,disabled:i(n).length===0},{default:u(()=>[y("清空")]),_:1},8,["icon","disabled"])]),p(J,{id:"source-list",modelValue:i(o),"onUpdate:modelValue":U[1]||(U[1]=I=>M(o)?o.value=I:null)},{default:u(()=>[p(i($e),{style:{height:"100%","overflow-y":"auto","overflow-x":"hidden"},"data-key":I=>I.bookSourceUrl||I.sourceUrl,"data-sources":i(S),"data-component":Dt,"estimate-size":45},null,8,["data-key","data-sources"])]),_:1},8,["modelValue"])],64)}}},Kt=P(At,[["__scopeId","data-v-1e35aca9"]]);const jt={__name:"SourceDebug",setup(e){const t=H(),o=O(""),s=O("");_e(()=>t.isDebuging,()=>{t.isDebuging&&r()});const n=f=>{let b=document.querySelector("#debug-text");b.scrollTop=b.scrollHeight,o.value+=f+` +`},r=async()=>{o.value="",await j.saveSource(t.currentSource),j.debug(t.currentSourceUrl,s.value||t.searchKey,n,t.debugFinish)},a=F(()=>/bookSource/.test(window.location.href));return(f,b)=>{const _=Y;return l(),E(R,null,[i(a)?(l(),C(_,{key:0,id:"debug-key",modelValue:i(s),"onUpdate:modelValue":b[0]||(b[0]=S=>M(s)?s.value=S:null),placeholder:"搜索书名、作者","prefix-icon":i(ge),style:{"padding-bottom":"4px"},onKeydown:Re(r,["enter"])},null,8,["modelValue","prefix-icon","onKeydown"])):T("",!0),p(_,{id:"debug-text",modelValue:i(o),"onUpdate:modelValue":b[1]||(b[1]=S=>M(o)?o.value=S:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},Mt=P(jt,[["__scopeId","data-v-eb736730"]]),go=de("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{index:0,chapterPos:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:{theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:"",spacing:{paragraph:1,line:.8,letter:0}},miniInterface:!1,readSettingsVisible:!1}),getters:{bookProgress:e=>{var a;if(e.catalog.length==0)return;const{index:t,chapterPos:o,bookName:s,bookAuthor:n}=e.readingBook;let r=(a=e.catalog[t])==null?void 0:a.title;if(r)return{name:s,author:n,durChapterIndex:t,durChapterPos:o,durChapterTime:new Date().getTime(),durChapterTitle:r}}},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){Object.assign(this.config,e)},setReadSettingsVisible(e){this.readSettingsVisible=e},setShowContent(e){this.showContent=e},setMiniInterface(e){this.miniInterface=e},async setSearchBooks(e){e.forEach(t=>{this.shelf.find(s=>s.bookUrl==t.bookUrl)===void 0&&this.searchBooks.push(t)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){return this.bookProgress?j.saveBookProgress(this.bookProgress):Promise.resolve()}}}),Ht=Oe();const Ft={__name:"SourceJson",setup(e){const t=H(),o=O(""),s=async n=>{try{t.changeEditTabSource(JSON.parse(n))}catch{x({message:"粘贴的源格式错误",type:"error"})}};return Pe(async()=>{let n=t.editTabSource;Object.keys(n).length>0?o.value=JSON.stringify(n,null,4):o.value=""}),(n,r)=>{const a=Y;return l(),C(a,{id:"source-json",modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=f=>M(o)?o.value=f:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:s,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},zt=P(Ft,[["__scopeId","data-v-7e91a802"]]);const qt={__name:"SourceTabTools",setup(e){const t=H(),{currentTab:o}=X(t),s=O([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(n,r)=>{const a=zt,f=Mt,b=Kt,_=gt,S=me,w=Se;return l(),C(w,{modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=v=>M(o)?o.value=v:null)},{default:u(()=>[(l(!0),E(R,null,K(i(s),(v,c)=>(l(),C(S,{key:v[0],name:v[0],label:v[1]},{default:u(()=>[c==0?(l(),C(a,{key:0})):T("",!0),c==1?(l(),C(f,{key:1})):T("",!0),c==2?(l(),C(b,{key:2})):T("",!0),c==3?(l(),C(_,{key:3})):T("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},Wt=P(qt,[["__scopeId","data-v-dcce2457"]]);const Gt={class:"menu flex-column-center"},Qt={class:"hotkeys-header flex-space-between"},Xt=["id"],Yt={key:0},Zt={class:"hotkeys-settings flex-column-center"},eo={class:"title"},to={class:"hotkeys-item__content"},oo={key:0},no={key:0},ro={__name:"ToolBar",setup(e){const t=H(),o=()=>{const h=x({message:"加载中……",showClose:!0,duration:0});j.getSources().then(({data:d})=>{d.isSuccess?(t.changeTabName("editList"),t.saveSources(d.data),x({message:`成功拉取${d.data.length}条源`,type:"success"})):x({message:d.errorMsg??"后端错误",type:"error"})}).finally(()=>h.close())},s=()=>{let h=t.sources;if(t.changeTabName("editList"),h.length===0)return x({message:"空空如也",type:"info"});x({message:"正在推送中",type:"info"}),j.saveSources(h).then(({data:d})=>{if(d.isSuccess){let m=d.data;if(Array.isArray(m)){let k="";h.length>m.length&&(k=` +推送失败的源将用红色字体标注!`,t.setPushReturnSources(m)),x({message:`批量推送源到「阅读3.0APP」 +共计: ${h.length} 条 +成功: ${m.length} 条 +失败: ${h.length-m.length} 条${k}`,type:"success"})}}else x({message:`批量推送源失败! +ErrorMsg: ${d.errorMsg}`,type:"error"})})},n=()=>{t.changeTabName("editTab"),t.changeEditTabSource(t.currentSource)},r=()=>{t.changeCurrentSource(t.editTabSource)},a=()=>{t.editHistoryUndo()},f=()=>{t.clearEdit(),x({message:"已清除",type:"success"})},b=()=>{t.clearEdit(),t.clearAllHistory(),x({message:"已清除所有历史记录",type:"success"})},_=()=>{let h=/bookSource/.test(location.href),d=t.currentSource;$t(d)?j.saveSource(d).then(({data:m})=>{m.isSuccess?(x({message:`源《${h?d.bookSourceName:d.sourceName}》已成功保存到「阅读3.0APP」`,type:"success"}),t.saveCurrentSource()):x({message:`源《${h?d.bookSourceName:d.sourceName}》保存失败! +ErrorMsg: ${m.errorMsg}`,type:"error"})}):x({message:"请检查<必填>项是否全部填写",type:"error"})},S=()=>{t.startDebug()},w=O(Array.of({name:"⇈推送源",hotKeys:[],action:s},{name:"⇊拉取源",hotKeys:[],action:o},{name:"⋙生成源",hotKeys:[],action:n},{name:"⋘编辑源",hotKeys:[],action:r},{name:"✗清空表单",hotKeys:[],action:f},{name:"↶撤销操作",hotKeys:[],action:a},{name:"↷重做操作",hotKeys:[],action:b},{name:"⇏调试源",hotKeys:[],action:S},{name:"✓保存源",hotKeys:[],action:_})),v=O(!0),c=O(!1),U=O(-1),D=()=>{c.value||(v.value=!1),c.value=!1};_e(v,h=>{if(!h)return q.unbind("*");q.unbind(),q("*",d=>{d.preventDefault();let m=q.getPressedKeyString();m.length==1&&m[0]=="esc"||c.value&&U.value>-1&&(w.value[U.value].hotKeys=m)})},{immediate:!0});const B=h=>{c.value=!0,x({message:"按ESC键或者点击空白处结束录入",type:"info"}),w.value[h].hotKeys=[],U.value=h},J=()=>{v.value=!1;const h=[];w.value.forEach(({hotKeys:d,action:m})=>{q(d.join("+"),k=>{k.preventDefault(),m.call(null)}),h.push(d)}),I(h)},I=h=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(h))},L=()=>{try{const h=JSON.parse(localStorage.getItem("legado_web_hotkeys"));if(!Array.isArray(h)||h.length==0)return;w.value.forEach((d,m)=>d.hotKeys=h[m]),v.value=!1,J()}catch{x({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}};return De(()=>{L()}),(h,d)=>{const m=se,k=ue,Z=Ae;return l(),E(R,null,[g("div",Gt,[(l(!0),E(R,null,K(i(w),N=>(l(),C(m,{size:"large",key:N.name,onClick:N.action},{default:u(()=>[y(Q(N.name),1)]),_:2},1032,["onClick"]))),128)),p(m,{size:"large",onClick:d[0]||(d[0]=()=>v.value=!0)},{default:u(()=>[y("快捷键")]),_:1})]),p(Z,{modelValue:i(v),"onUpdate:modelValue":d[1]||(d[1]=N=>M(v)?v.value=N:null),"show-close":!1,"before-close":D},{header:u(({titleClass:N,titleId:ee})=>[g("div",Qt,[g("div",{id:ee,class:he(N)},[y(" 快捷键设置 "),i(c)?(l(),E("span",Yt,[p(k,null,{default:u(()=>[y(" / 录入中 ")]),_:1})])):T("",!0)],10,Xt),p(m,{disabled:i(c),onClick:J,icon:i(Je)},{default:u(()=>[y("保存")]),_:1},8,["disabled","icon"])])]),default:u(()=>[g("div",Zt,[(l(!0),E(R,null,K(i(w),(N,ee)=>(l(),E("div",{key:N.name,class:"hotkeys-item flex-space-between"},[g("span",eo,[p(k,null,{default:u(()=>[y(Q(N.name),1)]),_:2},1024)]),g("div",to,[(l(!0),E(R,null,K(N.hotKeys,(te,we)=>(l(),E("div",{key:te},[g("kbd",null,Q(te),1),we+1[y("+")]),_:1})])):T("",!0)]))),128)),N.hotKeys.length==0?(l(),E("span",no,"未设置")):T("",!0)]),p(m,{disabled:i(c),text:"",icon:i(pe),onClick:te=>B(ee)},{default:u(()=>[y("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},so=P(ro,[["__scopeId","data-v-e3b61f1f"]]);const io={__name:"SourceTabForm",props:["config"],setup(e){const t=H(),{currentSource:o}=X(t);return(s,n)=>{const r=Y,a=Ke,f=je,b=Me,_=He,S=Fe,w=ze,v=me,c=Se;return l(),C(c,{id:"source-edit"},{default:u(()=>[(l(!0),E(R,null,K(Object.values(e.config),({name:U,children:D})=>(l(),C(v,{label:U,key:U},{default:u(()=>[p(w,{"label-position":"right","label-width":"5em"},{default:u(()=>[(l(!0),E(R,null,K(D,({type:B,title:J,namespace:I,id:L,array:h,hint:d,required:m})=>(l(),C(S,{label:J,key:J,required:m},{default:u(()=>[B=="String"&&typeof I>"u"?(l(),C(r,{key:0,type:"textarea",modelValue:i(o)[L],"onUpdate:modelValue":k=>i(o)[L]=k,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):T("",!0),B=="String"&&typeof I<"u"?(l(),C(r,{key:1,type:"textarea",modelValue:i(o)[I][L],"onUpdate:modelValue":k=>i(o)[I][L]=k,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):T("",!0),B=="Boolean"?(l(),C(a,{key:2,modelValue:i(o)[L],"onUpdate:modelValue":k=>i(o)[L]=k},null,8,["modelValue","onUpdate:modelValue"])):T("",!0),B=="Number"?(l(),C(f,{key:3,modelValue:i(o)[L],"onUpdate:modelValue":k=>i(o)[L]=k,min:0},null,8,["modelValue","onUpdate:modelValue"])):T("",!0),B=="Array"?(l(),C(_,{key:4,modelValue:i(o)[L],"onUpdate:modelValue":k=>i(o)[L]=k},{default:u(()=>[(l(!0),E(R,null,K(h,(k,Z)=>(l(),C(b,{value:Z,key:k,label:k},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):T("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},lo=P(io,[["__scopeId","data-v-2cfb5302"]]),ao={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",type:"String",hint:"书源变量说明"},{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:"concurrentRate",type:"String",hint:"并发率"},{title:"js库",id:"jsLib",type:"String",hint:"js库"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"链接验证",id:"bookUrlPattern",type:"String",hint:"当详情页URL与源URL的域名不一致时有效,用于添加网址"}]},search:{name:"搜索",children:[{title:"搜索地址",id:"searchUrl",type:"String",hint:"[域名可省略]/search.php@kw={{key}}"},{title:"校验文字",namespace:"ruleSearch",id:"checkKeyWord",type:"String",hint:"校验关键字"},{title:"列表规则",namespace:"ruleSearch",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",namespace:"ruleSearch",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleSearch",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleSearch",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleSearch",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleSearch",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleSearch",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleSearch",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",namespace:"ruleSearch",id:"bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},find:{name:"发现",children:[{title:"发现地址",id:"exploreUrl",type:"String",hint:`内容能显示在发现菜单 +每行一条发现分类(网址域名可省略),例: +名称1::网址(Url)1 +名称2::网址(Url)2 +...`},{title:"发现筛选",id:"exploreScreen",type:"String",hint:"发现筛选规则"},{title:"列表规则",namespace:"ruleExplore",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List)"},{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)"},{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)"}]},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 返回购买链接或者调用购买接口"},{title:"图片解密",namespace:"ruleContent",id:"imageDecode",type:"String",hint:"填写JavaScript 返回解密图片的bytes "}]},other:{name:"其他",children:[{title:"启用搜索",id:"enabled",type:"Boolean"},{title:"启用发现",id:"enabledExplore",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"搜索权重",id:"weight",type:"Number"},{title:"排序编号",id:"customOrder",type:"Number"}]}},co={base:{name:"基础",children:[{title:"源域名",id:"sourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"图标",id:"sourceIcon",type:"String",hint:"填写图片网络链接"},{title:"源名称",id:"sourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"sourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:"sourceComment",type:"String",hint:"描述源作者和状态"},{title:"分类地址",id:"sortUrl",type:"String",hint:`名称1::链接1 +名称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"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List或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"}]}};const uo={class:"editor"},po={__name:"SourceEditor",setup(e){const t=O({});return/bookSource/i.test(location.href)?(t.value=ao,document.title="书源管理"):(t.value=co,document.title="订阅源管理"),(o,s)=>{const n=lo,r=so,a=Wt;return l(),E("div",uo,[p(n,{class:"left",config:i(t)},null,8,["config"]),p(r),p(a,{class:"right"})])}}},ce=P(po,[["__scopeId","data-v-e99e7704"]]),ve=[{path:"/bookSource",name:"book-home",component:ce},{path:"/rssSource",name:"rss-home",component:ce}];ne({history:re(),routes:ve});const Ce=ne({history:re(),routes:ye.concat(ve)});Ce.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});qe(Ye).use(Ht).use(Ce).mount("#app");oe(()=>import("./config-366f8406.js"),["./config-366f8406.js","./vendor-0c9d4c13.js","./vendor-6f0d1692.css","./config-811f2a0b.css"],import.meta.url);export{j as A,P as _,go as u}; diff --git a/app/src/main/assets/web/vue/assets/index-dfa25950.js b/app/src/main/assets/web/vue/assets/index-dfa25950.js deleted file mode 100644 index 85fe18fcc..000000000 --- a/app/src/main/assets/web/vue/assets/index-dfa25950.js +++ /dev/null @@ -1,13 +0,0 @@ -import{r as xe,o as l,c as C,a as ne,b as re,d as E,e as p,w as u,f as y,u as i,l as z,g as _,F as R,E as Ue,h as ue,p as Be,i as Ee,j as Ve,k as x,m as de,s as X,n as F,t as Q,q as pe,v as he,x as se,y as Ie,z as O,A as M,B as _e,C as Te,D as Ne,G as ie,V as $e,H as Y,I as Le,J as ge,K as Re,L as N,M as Oe,N as Pe,O as K,P as me,Q as Se,R as q,S as De,T as Je,U as Ae,W as Ke,X as je,Y as Me,Z as He,_ as Fe,$ as ze,a0 as qe}from"./vendor-42d5cecc.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}})();const We="modulepreload",Ge=function(e,t){return new URL(e,t).href},le={},oe=function(t,o,s){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(r=>{if(r=Ge(r,s),r in le)return;le[r]=!0;const a=r.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(!!s)for(let S=n.length-1;S>=0;S--){const w=n[S];if(w.href===r&&(!a||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${f}`))return;const g=document.createElement("link");if(g.rel=a?"stylesheet":We,a||(g.as="script",g.crossOrigin=""),g.href=r,document.head.appendChild(g),a)return new Promise((S,w)=>{g.addEventListener("load",S),g.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},P=(e,t)=>{const o=e.__vccOpts||e;for(const[s,n]of t)o[s]=n;return o},Qe={};function Xe(e,t){const o=xe("router-view");return l(),C(o)}const Ye=P(Qe,[["render",Xe]]),ye=[{path:"/",name:"shelf",component:()=>oe(()=>import("./BookShelf-d61477a8.js"),["./BookShelf-d61477a8.js","./vendor-42d5cecc.js","./vendor-6f0d1692.css","./el-loading-06a73ac7.js","./el-loading-d0f2d079.css","./BookShelf-e718c249.css"],import.meta.url)},{path:"/chapter",name:"chapter",component:()=>oe(()=>import("./BookChapter-1992d750.js"),["./BookChapter-1992d750.js","./vendor-42d5cecc.js","./vendor-6f0d1692.css","./el-loading-06a73ac7.js","./el-loading-d0f2d079.css","./BookChapter-4ade18f3.css"],import.meta.url)}];ne({history:re(),routes:ye});const $=e=>(Be("data-v-aee57c78"),e=e(),Ee(),e),Ze=$(()=>_("br",null,null,-1)),et=$(()=>_("br",null,null,-1)),tt=$(()=>_("br",null,null,-1)),ot=$(()=>_("br",null,null,-1)),nt=$(()=>_("br",null,null,-1)),rt={style:{"margin-top":"20px"}},st=$(()=>_("code",null,"^$()[]{}.?+*|",-1)),it=$(()=>_("br",null,null,-1)),lt=$(()=>_("code",null,"(?s)",-1)),at=$(()=>_("br",null,null,-1)),ct=$(()=>_("code",null,"(?m)",-1)),ut=$(()=>_("br",null,null,-1)),dt=$(()=>_("code",null,"(?i)",-1)),pt=$(()=>_("br",null,null,-1)),ht={__name:"SourceHelp",setup(e){return(t,o)=>{const s=Ue,n=ue;return l(),E(R,null,[p(s,{icon:i(z),href:"https://alanskycn.gitee.io/teachme/",target:"_blank"},{default:u(()=>[y("书源制作教程")]),_:1},8,["icon"]),Ze,p(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/29436838",target:"_blank"},{default:u(()=>[y("xpath基础教程")]),_:1},8,["icon"]),et,p(s,{icon:i(z),href:"https://zhuanlan.zhihu.com/p/32187820",target:"_blank"},{default:u(()=>[y("xpath高级教程")]),_:1},8,["icon"]),tt,p(s,{icon:i(z),href:"https://www.w3cschool.cn/regex_rmjc",target:"_blank"},{default:u(()=>[y("正则表达式教程")]),_:1},8,["icon"]),ot,p(s,{icon:i(z),href:"https://regexr-cn.com/",target:"_blank"},{default:u(()=>[y("正则表达式在线验证工具")]),_:1},8,["icon"]),nt,_("div",rt,[_("span",null,[p(n,null,{default:u(()=>[st,y(" 这些是Java正则特殊符号,匹配需转义")]),_:1})]),it,_("span",null,[p(n,null,{default:u(()=>[lt,y(" 前缀表示跨行解析")]),_:1})]),at,_("span",null,[p(n,null,{default:u(()=>[ct,y(" 前缀表示逐行匹配")]),_:1})]),ut,_("span",null,[p(n,null,{default:u(()=>[dt,y(" 前缀表示忽略大小写")]),_:1})]),pt])],64)}}},_t=P(ht,[["__scopeId","data-v-aee57c78"]]),gt=1e3,V=Ve.create({baseURL:location.origin,timeout:120*gt}),{hostname:fe,port:be}=new URL(location.origin),mt=/source/i.test(location.href),St=e=>{throw mt&&x({message:"后端错误,检查网络或者阅读app",type:"error"}),e};V.interceptors.response.use(e=>e,St);const yt=()=>V.get("/getReadConfig"),ft=e=>V.post("/saveReadConfig",e),bt=e=>V.post("/saveBookProgress",e),kt=()=>V.get("/getBookshelf"),vt=e=>V.get("/getChapterList?url="+encodeURIComponent(e)),Ct=(e,t)=>V.get("/getBookContent?url="+encodeURIComponent(e)+"&index="+t),wt=(e,t,o)=>{const s=`ws://${fe}:${Number(be)+1}/searchBook`,n=new WebSocket(s);n.onopen=()=>{n.send(`{"key":"${e}"}`)},n.onmessage=({data:r})=>t(r),n.onclose=()=>{o()}},xt=e=>V.post("/saveBook",e),Ut=e=>V.post("/deleteBook",e),G=/bookSource/i.test(location.href),Bt=()=>G?V.get("getBookSources"):V.get("getRssSources"),Et=e=>G?V.post("saveBookSource",e):V.post("saveRssSource",e),Vt=e=>G?V.post("saveBookSources",e):V.post("saveRssSources",e),It=e=>G?V.post("deleteBookSources",e):V.post("deleteRssSources",e),Tt=(e,t,o,s)=>{const n=`ws://${fe}:${Number(be)+1}/${G?"bookSource":"rssSource"}Debug`,r=new WebSocket(n);r.onopen=()=>{r.send(JSON.stringify({tag:e,key:t}))},r.onmessage=({data:a})=>o(a),r.onclose=()=>{x({message:"调试已关闭!",type:"info"}),s()}},j={getReadConfig:yt,saveReadConfig:ft,saveBookProcess:bt,getBookShelf:kt,getChapterList:vt,getBookContent:Ct,search:wt,saveBook:xt,deleteBook:Ut,getSources:Bt,saveSources:Vt,saveSource:Et,deleteSource:It,debug:Tt},W=e=>e==null||e.length===0||/^\s+$/.test(e),ke=e=>"bookSourceName"in e,Nt=e=>ke(e)?!W(e.bookSourceName)&&!W(e.bookSourceUrl)&&!W(e.bookSourceType):!W(e.sourceName)&&!W(e.sourceName),$t=(e,t)=>{var o,s,n,r,a,f,b,g;return ke(e)?(((o=e.bookSourceName)==null?void 0:o.includes(t))||((s=e.bookSourceUrl)==null?void 0:s.includes(t))||((n=e.bookSourceGroup)==null?void 0:n.includes(t))||((r=e.bookSourceComment)==null?void 0:r.includes(t)))??!1:(((a=e.sourceName)==null?void 0:a.includes(t))||((f=e.sourceUrl)==null?void 0:f.includes(t))||((b=e.sourceGroup)==null?void 0:b.includes(t))||((g=e.sourceComment)==null?void 0:g.includes(t)))??!1},Lt={ruleSearch:{},ruleBookInfo:{},ruleToc:{},ruleContent:{},ruleReview:{},ruleExplore:{}},Rt={},A=/bookSource/i.test(location.href),ae=A?Lt:Rt,H=de("source",{state:()=>({bookSources:[],rssSources:[],savedSources:[],currentSource:ae,currentTab:localStorage.getItem("tabName")||"editTab",editTabSource:{},isDebuging:!1}),getters:{sources:e=>A?e.bookSources:e.rssSources,sourceUrlKey:()=>A?"bookSourceUrl":"sourceUrl",sourcesMap:e=>{let t=new Map;return e.sources.forEach(o=>t.set(o[e.sourceUrlKey],o)),t},savedSourcesMap:e=>{let t=new Map;return e.savedSources.forEach(o=>t.set(o[e.sourceUrlKey],o)),t},currentSourceUrl:e=>A?e.currentSource.bookSourceUrl:e.currentSource.sourceUrl,searchKey:e=>A?e.currentSource.ruleSearch.checkKeyWord||"我的":null},actions:{startDebug(){this.currentTab="editDebug",this.isDebuging=!0},debugFinish(){this.isDebuging=!1},saveSources(e){A?this.bookSources=e:this.rssSources=e},setPushReturnSources(e){this.savedSources=e},deleteSources(e){let t=A?this.bookSources:this.rssSources;e.forEach(o=>{let s=t.indexOf(o);s>-1&&t.splice(s,1)})},saveCurrentSource(){let e=this.currentSource,t=this.sourcesMap;t.set(e[this.sourceUrlKey],e),this.saveSources(Array.from(t.values()))},changeCurrentSource(e){this.currentSource=JSON.parse(JSON.stringify(e))},changeTabName(e){this.currentTab=e,localStorage.setItem("tabName",e)},changeEditTabSource(e){this.editTabSource=JSON.parse(JSON.stringify(e))},editHistory(e){let t;if(localStorage.getItem("history"))t=JSON.parse(localStorage.getItem("history")),t.new.push(e),t.new.length>50&&t.new.shift(),t.old.length>50&&t.old.shift(),localStorage.setItem("history",JSON.stringify(t));else{const o={new:[e],old:[]};localStorage.setItem("history",JSON.stringify(o))}},editHistoryUndo(){if(localStorage.getItem("history")){let e=JSON.parse(localStorage.getItem("history"));e.old.push(this.currentSource),e.new.length&&(this.currentSource=e.new.pop()),localStorage.setItem("history",JSON.stringify(e))}},clearAllHistory(){localStorage.setItem("history",JSON.stringify({new:[],old:[]}))},clearEdit(){this.editTabSource={},this.currentSource=ae},clearAllSource(){this.bookSources=[],this.rssSources=[],this.savedSources=[]}}});const Ot={__name:"SourceItem",props:["source"],setup(e){const t=e,o=H(),{savedSourcesMap:s,currentSourceUrl:n,sourceUrlKey:r}=X(o),a=F(()=>t.source[r.value]),f=g=>{o.changeCurrentSource(g)},b=F(()=>s.value.size==0?!1:!s.value.has(a.value));return(g,S)=>{const w=se,v=Ie;return l(),C(v,{size:"large",border:"",label:i(a),class:he({error:i(b),edit:i(a)==i(n)})},{default:u(()=>[y(Q(e.source.bookSourceName||e.source.sourceName)+" ",1),p(w,{text:"",icon:i(pe),onClick:S[0]||(S[0]=c=>f(e.source))},null,8,["icon"])]),_:1},8,["label","class"])}}},Pt=P(Ot,[["__scopeId","data-v-894f04fc"]]);const Dt={class:"tool"},Jt={__name:"SourceList",setup(e){const t=H(),o=O([]),s=O(""),{sources:n,sourcesMap:r}=X(t),a=F(()=>/bookSource/.test(window.location.href)),f=F(()=>o.value.length==0?[]:o.value.map(c=>r.value.get(c)??{})),b=()=>{j.deleteSource(f.value).then(({data:c})=>{if(!c.isSuccess)return x.error(c.errorMsg);t.deleteSources(f.value),o.value=[]})},g=()=>{t.clearAllSource(),o.value=[]},S=F(()=>{let c=s.value;return c===""?n.value:n.value.filter(B=>$t(B,c))}),w=()=>{const c=document.createElement("input");c.type="file",c.accept=".json,.txt",c.addEventListener("change",B=>{const D=B.target.files[0];var U=new FileReader;U.readAsText(D),U.onload=()=>{try{const J=JSON.parse(U.result);t.saveSources(J)}catch{x({message:"上传的源格式错误",type:"error"})}}}),c.click()},v=()=>{const c=document.createElement("a");let B=o.value.length===0?S.value:f.value,D=a.value?"BookSource":"RssSource";c.download=`${D}_${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/,"$2$1$3").replace(/:/g,"")}.json`;let U=new Blob([JSON.stringify(B,null,4)],{type:"application/json"});c.href=window.URL.createObjectURL(U),c.click()};return(c,B)=>{const D=Y,U=se,J=Le;return l(),E(R,null,[p(D,{modelValue:i(s),"onUpdate:modelValue":B[0]||(B[0]=I=>M(s)?s.value=I:null),class:"search","prefix-icon":i(_e),placeholder:"筛选源"},null,8,["modelValue","prefix-icon"]),_("div",Dt,[p(U,{onClick:w,icon:i(Te)},{default:u(()=>[y("打开")]),_:1},8,["icon"]),p(U,{disabled:i(S).length===0,onClick:v,icon:i(Ne)},{default:u(()=>[y(" 导出")]),_:1},8,["disabled","icon"]),p(U,{type:"danger",icon:i(ie),onClick:b,disabled:i(o).length===0},{default:u(()=>[y("删除")]),_:1},8,["icon","disabled"]),p(U,{type:"danger",icon:i(ie),onClick:g,disabled:i(n).length===0},{default:u(()=>[y("清空")]),_:1},8,["icon","disabled"])]),p(J,{id:"source-list",modelValue:i(o),"onUpdate:modelValue":B[1]||(B[1]=I=>M(o)?o.value=I:null)},{default:u(()=>[p(i($e),{style:{height:"100%","overflow-y":"auto","overflow-x":"hidden"},"data-key":I=>I.bookSourceUrl||I.sourceUrl,"data-sources":i(S),"data-component":Pt,"estimate-size":45},null,8,["data-key","data-sources"])]),_:1},8,["modelValue"])],64)}}},At=P(Jt,[["__scopeId","data-v-1e35aca9"]]);const Kt={__name:"SourceDebug",setup(e){const t=H(),o=O(""),s=O("");ge(()=>t.isDebuging,()=>{t.isDebuging&&r()});const n=f=>{let b=document.querySelector("#debug-text");b.scrollTop=b.scrollHeight,o.value+=f+` -`},r=async()=>{o.value="",await j.saveSource(t.currentSource),j.debug(t.currentSourceUrl,s.value||t.searchKey,n,t.debugFinish)},a=F(()=>/bookSource/.test(window.location.href));return(f,b)=>{const g=Y;return l(),E(R,null,[i(a)?(l(),C(g,{key:0,id:"debug-key",modelValue:i(s),"onUpdate:modelValue":b[0]||(b[0]=S=>M(s)?s.value=S:null),placeholder:"搜索书名、作者","prefix-icon":i(_e),style:{"padding-bottom":"4px"},onKeydown:Re(r,["enter"])},null,8,["modelValue","prefix-icon","onKeydown"])):N("",!0),p(g,{id:"debug-text",modelValue:i(o),"onUpdate:modelValue":b[1]||(b[1]=S=>M(o)?o.value=S:null),type:"textarea",readonly:"",rows:"29",placeholder:"这里用于输出调试信息"},null,8,["modelValue"])],64)}}},jt=P(Kt,[["__scopeId","data-v-eb736730"]]),ho=de("book",{state:()=>({connectStatus:"正在连接后端服务器……",connectType:"",newConnect:!0,searchBooks:[],shelf:[],catalog:[],readingBook:{index:0,chapterPos:0},popCataVisible:!1,contentLoading:!0,showContent:!1,config:{theme:0,font:0,fontSize:18,readWidth:800,infiniteLoading:!1,customFontName:"",spacing:{paragraph:1,line:.8,letter:0}},miniInterface:!1,readSettingsVisible:!1}),getters:{bookProgress:e=>{var a;if(e.catalog.length==0)return;const{index:t,chapterPos:o,bookName:s,bookAuthor:n}=e.readingBook;let r=(a=e.catalog[t])==null?void 0:a.title;if(r)return{name:s,author:n,durChapterIndex:t,durChapterPos:o,durChapterTime:new Date().getTime(),durChapterTitle:r}}},actions:{setConnectStatus(e){this.connectStatus=e},setConnectType(e){this.connectType=e},setNewConnect(e){this.newConnect=e},addBooks(e){this.shelf=e},setCatalog(e){this.catalog=e},setPopCataVisible(e){this.popCataVisible=e},setContentLoading(e){this.contentLoading=e},setReadingBook(e){this.readingBook=e},setConfig(e){Object.assign(this.config,e)},setReadSettingsVisible(e){this.readSettingsVisible=e},setShowContent(e){this.showContent=e},setMiniInterface(e){this.miniInterface=e},async setSearchBooks(e){e.forEach(t=>{this.shelf.find(s=>s.bookUrl==t.bookUrl)===void 0&&this.searchBooks.push(t)})},clearSearchBooks(){this.searchBooks=[]},async saveBookProgress(){return this.bookProgress?j.saveBookProcess(this.bookProgress):Promise.resolve()}}}),Mt=Oe();const Ht={__name:"SourceJson",setup(e){const t=H(),o=O(""),s=async n=>{try{t.changeEditTabSource(JSON.parse(n))}catch{x({message:"粘贴的源格式错误",type:"error"})}};return Pe(async()=>{let n=t.editTabSource;Object.keys(n).length>0?o.value=JSON.stringify(n,null,4):o.value=""}),(n,r)=>{const a=Y;return l(),C(a,{id:"source-json",modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=f=>M(o)?o.value=f:null),type:"textarea",placeholder:"这里输出序列化的JSON数据,可直接导入'阅读'APP",rows:"30",onChange:s,style:{"margin-bottom":"4px"}},null,8,["modelValue"])}}},Ft=P(Ht,[["__scopeId","data-v-7e91a802"]]);const zt={__name:"SourceTabTools",setup(e){const t=H(),{currentTab:o}=X(t),s=O([["editTab","编辑源"],["editDebug","调试源"],["editList","源列表"],["editHelp","帮助信息"]]);return(n,r)=>{const a=Ft,f=jt,b=At,g=_t,S=me,w=Se;return l(),C(w,{modelValue:i(o),"onUpdate:modelValue":r[0]||(r[0]=v=>M(o)?o.value=v:null)},{default:u(()=>[(l(!0),E(R,null,K(i(s),(v,c)=>(l(),C(S,{key:v[0],name:v[0],label:v[1]},{default:u(()=>[c==0?(l(),C(a,{key:0})):N("",!0),c==1?(l(),C(f,{key:1})):N("",!0),c==2?(l(),C(b,{key:2})):N("",!0),c==3?(l(),C(g,{key:3})):N("",!0)]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])}}},qt=P(zt,[["__scopeId","data-v-dcce2457"]]);const Wt={class:"menu flex-column-center"},Gt={class:"hotkeys-header flex-space-between"},Qt=["id"],Xt={key:0},Yt={class:"hotkeys-settings flex-column-center"},Zt={class:"title"},eo={class:"hotkeys-item__content"},to={key:0},oo={key:0},no={__name:"ToolBar",setup(e){const t=H(),o=()=>{const h=x({message:"加载中……",showClose:!0,duration:0});j.getSources().then(({data:d})=>{d.isSuccess?(t.changeTabName("editList"),t.saveSources(d.data),x({message:`成功拉取${d.data.length}条源`,type:"success"})):x({message:d.errorMsg??"后端错误",type:"error"})}).finally(()=>h.close())},s=()=>{let h=t.sources;if(t.changeTabName("editList"),h.length===0)return x({message:"空空如也",type:"info"});x({message:"正在推送中",type:"info"}),j.saveSources(h).then(({data:d})=>{if(d.isSuccess){let m=d.data;if(Array.isArray(m)){let k="";h.length>m.length&&(k=` -推送失败的源将用红色字体标注!`,t.setPushReturnSources(m)),x({message:`批量推送源到「阅读3.0APP」 -共计: ${h.length} 条 -成功: ${m.length} 条 -失败: ${h.length-m.length} 条${k}`,type:"success"})}}else x({message:`批量推送源失败! -ErrorMsg: ${d.errorMsg}`,type:"error"})})},n=()=>{t.changeTabName("editTab"),t.changeEditTabSource(t.currentSource)},r=()=>{t.changeCurrentSource(t.editTabSource)},a=()=>{t.editHistoryUndo()},f=()=>{t.clearEdit(),x({message:"已清除",type:"success"})},b=()=>{t.clearEdit(),t.clearAllHistory(),x({message:"已清除所有历史记录",type:"success"})},g=()=>{let h=/bookSource/.test(location.href),d=t.currentSource;Nt(d)?j.saveSource(d).then(({data:m})=>{m.isSuccess?(x({message:`源《${h?d.bookSourceName:d.sourceName}》已成功保存到「阅读3.0APP」`,type:"success"}),t.saveCurrentSource()):x({message:`源《${h?d.bookSourceName:d.sourceName}》保存失败! -ErrorMsg: ${m.errorMsg}`,type:"error"})}):x({message:"请检查<必填>项是否全部填写",type:"error"})},S=()=>{t.startDebug()},w=O(Array.of({name:"⇈推送源",hotKeys:[],action:s},{name:"⇊拉取源",hotKeys:[],action:o},{name:"⋙生成源",hotKeys:[],action:n},{name:"⋘编辑源",hotKeys:[],action:r},{name:"✗清空表单",hotKeys:[],action:f},{name:"↶撤销操作",hotKeys:[],action:a},{name:"↷重做操作",hotKeys:[],action:b},{name:"⇏调试源",hotKeys:[],action:S},{name:"✓保存源",hotKeys:[],action:g})),v=O(!0),c=O(!1),B=O(-1),D=()=>{c.value||(v.value=!1),c.value=!1};ge(v,h=>{if(!h)return q.unbind("*");q.unbind(),q("*",d=>{d.preventDefault();let m=q.getPressedKeyString();m.length==1&&m[0]=="esc"||c.value&&B.value>-1&&(w.value[B.value].hotKeys=m)})},{immediate:!0});const U=h=>{c.value=!0,x({message:"按ESC键或者点击空白处结束录入",type:"info"}),w.value[h].hotKeys=[],B.value=h},J=()=>{v.value=!1;const h=[];w.value.forEach(({hotKeys:d,action:m})=>{q(d.join("+"),k=>{k.preventDefault(),m.call(null)}),h.push(d)}),I(h)},I=h=>{localStorage.setItem("legado_web_hotkeys",JSON.stringify(h))},L=()=>{try{const h=JSON.parse(localStorage.getItem("legado_web_hotkeys"));if(!Array.isArray(h)||h.length==0)return;w.value.forEach((d,m)=>d.hotKeys=h[m]),v.value=!1,J()}catch{x({message:"快捷键配置错误",type:"error"}),localStorage.removeItem("legado_web_hotkeys")}};return De(()=>{L()}),(h,d)=>{const m=se,k=ue,Z=Ae;return l(),E(R,null,[_("div",Wt,[(l(!0),E(R,null,K(i(w),T=>(l(),C(m,{size:"large",key:T.name,onClick:T.action},{default:u(()=>[y(Q(T.name),1)]),_:2},1032,["onClick"]))),128)),p(m,{size:"large",onClick:d[0]||(d[0]=()=>v.value=!0)},{default:u(()=>[y("快捷键")]),_:1})]),p(Z,{modelValue:i(v),"onUpdate:modelValue":d[1]||(d[1]=T=>M(v)?v.value=T:null),"show-close":!1,"before-close":D},{header:u(({titleClass:T,titleId:ee})=>[_("div",Gt,[_("div",{id:ee,class:he(T)},[y(" 快捷键设置 "),i(c)?(l(),E("span",Xt,[p(k,null,{default:u(()=>[y(" / 录入中 ")]),_:1})])):N("",!0)],10,Qt),p(m,{disabled:i(c),onClick:J,icon:i(Je)},{default:u(()=>[y("保存")]),_:1},8,["disabled","icon"])])]),default:u(()=>[_("div",Yt,[(l(!0),E(R,null,K(i(w),(T,ee)=>(l(),E("div",{key:T.name,class:"hotkeys-item flex-space-between"},[_("span",Zt,[p(k,null,{default:u(()=>[y(Q(T.name),1)]),_:2},1024)]),_("div",eo,[(l(!0),E(R,null,K(T.hotKeys,(te,we)=>(l(),E("div",{key:te},[_("kbd",null,Q(te),1),we+1[y("+")]),_:1})])):N("",!0)]))),128)),T.hotKeys.length==0?(l(),E("span",oo,"未设置")):N("",!0)]),p(m,{disabled:i(c),text:"",icon:i(pe),onClick:te=>U(ee)},{default:u(()=>[y("编辑")]),_:2},1032,["disabled","icon","onClick"])]))),128))])]),_:1},8,["modelValue"])],64)}}},ro=P(no,[["__scopeId","data-v-e3b61f1f"]]);const so={__name:"SourceTabForm",props:["config"],setup(e){const t=H(),{currentSource:o}=X(t);return(s,n)=>{const r=Y,a=Ke,f=je,b=Me,g=He,S=Fe,w=ze,v=me,c=Se;return l(),C(c,{id:"source-edit"},{default:u(()=>[(l(!0),E(R,null,K(Object.values(e.config),({name:B,children:D})=>(l(),C(v,{label:B,key:B},{default:u(()=>[p(w,{"label-position":"right","label-width":"5em"},{default:u(()=>[(l(!0),E(R,null,K(D,({type:U,title:J,namespace:I,id:L,array:h,hint:d,required:m})=>(l(),C(S,{label:J,key:J,required:m},{default:u(()=>[U=="String"&&typeof I>"u"?(l(),C(r,{key:0,type:"textarea",modelValue:i(o)[L],"onUpdate:modelValue":k=>i(o)[L]=k,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):N("",!0),U=="String"&&typeof I<"u"?(l(),C(r,{key:1,type:"textarea",modelValue:i(o)[I][L],"onUpdate:modelValue":k=>i(o)[I][L]=k,placeholder:d,autosize:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])):N("",!0),U=="Boolean"?(l(),C(a,{key:2,modelValue:i(o)[L],"onUpdate:modelValue":k=>i(o)[L]=k},null,8,["modelValue","onUpdate:modelValue"])):N("",!0),U=="Number"?(l(),C(f,{key:3,modelValue:i(o)[L],"onUpdate:modelValue":k=>i(o)[L]=k,min:0},null,8,["modelValue","onUpdate:modelValue"])):N("",!0),U=="Array"?(l(),C(g,{key:4,modelValue:i(o)[L],"onUpdate:modelValue":k=>i(o)[L]=k},{default:u(()=>[(l(!0),E(R,null,K(h,(k,Z)=>(l(),C(b,{value:Z,key:k,label:k},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):N("",!0)]),_:2},1032,["label","required"]))),128))]),_:2},1024)]),_:2},1032,["label"]))),128))]),_:1})}}},io=P(so,[["__scopeId","data-v-2cfb5302"]]),lo={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",type:"String",hint:"书源变量说明"},{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:"concurrentRate",type:"String",hint:"并发率"},{title:"js库",id:"jsLib",type:"String",hint:"js库"},{title:"请求头",id:"header",type:"String",hint:"客户端标识"},{title:"链接验证",id:"bookUrlPattern",type:"String",hint:"当详情页URL与源URL的域名不一致时有效,用于添加网址"}]},search:{name:"搜索",children:[{title:"搜索地址",id:"searchUrl",type:"String",hint:"[域名可省略]/search.php@kw={{key}}"},{title:"校验文字",namespace:"ruleSearch",id:"checkKeyWord",type:"String",hint:"校验关键字"},{title:"列表规则",namespace:"ruleSearch",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List)"},{title:"书名规则",namespace:"ruleSearch",id:"name",type:"String",hint:"选择节点书名 (规则结果为String)"},{title:"作者规则",namespace:"ruleSearch",id:"author",type:"String",hint:"选择节点作者 (规则结果为String)"},{title:"分类规则",namespace:"ruleSearch",id:"kind",type:"String",hint:"选择节点分类信息 (规则结果为String)"},{title:"字数规则",namespace:"ruleSearch",id:"wordCount",type:"String",hint:"选择节点字数信息 (规则结果为String)"},{title:"最新章节",namespace:"ruleSearch",id:"lastChapter",type:"String",hint:"选择节点最新章节 (规则结果为String)"},{title:"简介规则",namespace:"ruleSearch",id:"intro",type:"String",hint:"选择节点书籍简介 (规则结果为String)"},{title:"封面规则",namespace:"ruleSearch",id:"coverUrl",type:"String",hint:"选择节点书籍封面 (规则结果为String类型的url)"},{title:"详情地址",namespace:"ruleSearch",id:"bookUrl",type:"String",hint:"选择书籍详情页网址 (规则结果为String类型的url)"}]},find:{name:"发现",children:[{title:"发现地址",id:"exploreUrl",type:"String",hint:`内容能显示在发现菜单 -每行一条发现分类(网址域名可省略),例: -名称1::网址(Url)1 -名称2::网址(Url)2 -...`},{title:"发现筛选",id:"exploreScreen",type:"String",hint:"发现筛选规则"},{title:"列表规则",namespace:"ruleExplore",id:"bookList",type:"String",hint:"选择书籍节点 (规则结果为List)"},{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)"},{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)"}]},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 返回购买链接或者调用购买接口"},{title:"图片解密",namespace:"ruleContent",id:"imageDecode",type:"String",hint:"填写JavaScript 返回解密图片的bytes "}]},other:{name:"其他",children:[{title:"启用搜索",id:"enabled",type:"Boolean"},{title:"启用发现",id:"enabledExplore",type:"Boolean"},{title:"Cookie",id:"enabledCookieJar",type:"Boolean"},{title:"搜索权重",id:"weight",type:"Number"},{title:"排序编号",id:"customOrder",type:"Number"}]}},ao={base:{name:"基础",children:[{title:"源域名",id:"sourceUrl",type:"String",hint:"通常填写网站主页,例: https://www.qidian.com",required:!0},{title:"图标",id:"sourceIcon",type:"String",hint:"填写图片网络链接"},{title:"源名称",id:"sourceName",type:"String",hint:"会显示在源列表",required:!0},{title:"源分组",id:"sourceGroup",type:"String",hint:"描述源的特征信息"},{title:"源注释",id:"sourceComment",type:"String",hint:"描述源作者和状态"},{title:"分类地址",id:"sortUrl",type:"String",hint:`名称1::链接1 -名称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"},{title:"翻页规则",id:"ruleNextPage",type:"String",hint:"下一页链接 规则结果为List或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"}]}};const co={class:"editor"},uo={__name:"SourceEditor",setup(e){const t=O({});return/bookSource/i.test(location.href)?(t.value=lo,document.title="书源管理"):(t.value=ao,document.title="订阅源管理"),(o,s)=>{const n=io,r=ro,a=qt;return l(),E("div",co,[p(n,{class:"left",config:i(t)},null,8,["config"]),p(r),p(a,{class:"right"})])}}},ce=P(uo,[["__scopeId","data-v-e99e7704"]]),ve=[{path:"/bookSource",name:"book-home",component:ce},{path:"/rssSource",name:"rss-home",component:ce}];ne({history:re(),routes:ve});const Ce=ne({history:re(),routes:ye.concat(ve)});Ce.afterEach(e=>{e.name=="shelf"&&(document.title="书架")});qe(Ye).use(Mt).use(Ce).mount("#app");oe(()=>import("./config-6d5bece2.js"),["./config-6d5bece2.js","./vendor-42d5cecc.js","./vendor-6f0d1692.css","./config-811f2a0b.css"],import.meta.url);export{j as A,P as _,ho as u}; diff --git a/app/src/main/assets/web/vue/assets/el-loading-d0f2d079.css b/app/src/main/assets/web/vue/assets/loading-c009631e.css similarity index 92% rename from app/src/main/assets/web/vue/assets/el-loading-d0f2d079.css rename to app/src/main/assets/web/vue/assets/loading-c009631e.css index b452a7951..226507539 100644 --- a/app/src/main/assets/web/vue/assets/el-loading-d0f2d079.css +++ b/app/src/main/assets/web/vue/assets/loading-c009631e.css @@ -1 +1 @@ -:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-rotate{to{transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}} +:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-rotate{to{transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-loading-spinner{font-size:36px;color:#b5b5b5}.el-loading-text{font-weight:500;color:#b5b5b5!important} diff --git a/app/src/main/assets/web/vue/assets/loading-ddccb8e8.js b/app/src/main/assets/web/vue/assets/loading-ddccb8e8.js new file mode 100644 index 000000000..449b8c5e8 --- /dev/null +++ b/app/src/main/assets/web/vue/assets/loading-ddccb8e8.js @@ -0,0 +1 @@ +import{u as M}from"./index-3dbb2f78.js";import{z as S,J as L,a7 as p,af as w,u as D}from"./vendor-0c9d4c13.js";const Y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function v(t,i,e,a){let o=t<12?"AM":"PM";return a&&(o=o.split("").reduce((n,l)=>n+=`${l}.`,"")),e?o.toLowerCase():o}function y(t,i,e={}){var a;const o=t.getFullYear(),n=t.getMonth(),l=t.getDate(),s=t.getHours(),r=t.getMinutes(),g=t.getSeconds(),d=t.getMilliseconds(),m=t.getDay(),c=(a=e.customMeridiem)!=null?a:v,u={YY:()=>String(o).slice(-2),YYYY:()=>o,M:()=>n+1,MM:()=>`${n+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(e.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(e.locales,{month:"long"}),D:()=>String(l),DD:()=>`${l}`.padStart(2,"0"),H:()=>String(s),HH:()=>`${s}`.padStart(2,"0"),h:()=>`${s%12||12}`.padStart(1,"0"),hh:()=>`${s%12||12}`.padStart(2,"0"),m:()=>String(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(g),ss:()=>`${g}`.padStart(2,"0"),SSS:()=>`${d}`.padStart(3,"0"),d:()=>m,dd:()=>t.toLocaleDateString(e.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(e.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(e.locales,{weekday:"long"}),A:()=>c(s,r),AA:()=>c(s,r,!1,!0),a:()=>c(s,r,!0),aa:()=>c(s,r,!0,!0)};return i.replace(Y,(f,h)=>h||u[f]())}const H=t=>/,\s*\{/.test(t)||!(t.startsWith("http")||t.startsWith("data:")||t.startsWith("blob:"));function b(t){return location.origin+"/image?path="+encodeURIComponent(t)+"&url="+encodeURIComponent(sessionStorage.getItem("bookUrl"))+"&width="+M().config.readWidth}const A=t=>{let i=new Date().getTime(),e=Math.floor((i-t)/1e3),a="";return e<=30?a="刚刚":e<60?a=e+"秒前":e<3600?a=Math.floor(e/60)+"分钟前":e<86400?a=Math.floor(e/3600)+"小时前":e<2592e3?a=Math.floor(e/86400)+"天前":a=y(new Date(t),"YYYY-MM-DD"),a},z='';const W=(t,i,e=z)=>{const a=S(!1);let o=null;const n=()=>a.value=!1,l=()=>a.value=!0;L(a,r=>{if(!r)return o==null?void 0:o.close();o=w.service({target:D(t),spinner:e,text:i,lock:!0,background:"rgba(0, 0, 0, 0)"})});const s=r=>{if(!(r instanceof Promise))throw TypeError("loadingWrapper argument must be Promise");return l(),r.finally(n)};return p(()=>{n()}),{isLoading:a,showLoading:l,closeLoading:n,loadingWrapper:s}};export{A as d,b as g,H as i,W as u}; diff --git a/app/src/main/assets/web/vue/assets/vendor-42d5cecc.js b/app/src/main/assets/web/vue/assets/vendor-0c9d4c13.js similarity index 99% rename from app/src/main/assets/web/vue/assets/vendor-42d5cecc.js rename to app/src/main/assets/web/vue/assets/vendor-0c9d4c13.js index d99e8a50d..08caac3f1 100644 --- a/app/src/main/assets/web/vue/assets/vendor-42d5cecc.js +++ b/app/src/main/assets/web/vue/assets/vendor-0c9d4c13.js @@ -28,4 +28,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * pinia v2.0.34 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Am;const ba=e=>Am=e,Pm=Symbol();function Kl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var os;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(os||(os={}));function gI(){const e=ap(!0),t=e.run(()=>V({}));let n=[],r=[];const o=po({install(s){ba(o),o._a=s,s.provide(Pm,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!v0?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const $m=()=>{};function Xd(e,t,n,r=$m){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Xl()&&Ql(o),o}function no(e,...t){e.slice().forEach(n=>{n(...t)})}function ql(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)&&!qe(r)&&!Ln(r)?e[n]=ql(o,r):e[n]=r}return e}const S6=Symbol();function E6(e){return!Kl(e)||!e.hasOwnProperty(S6)}const{assign:or}=Object;function C6(e){return!!(qe(e)&&e.effect)}function O6(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 or(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=po(O(()=>{ba(n);const v=n._s.get(e);return i[d].call(v,v)})),f),{}))}return l=Im(e,u,t,n,r,!0),l}function Im(e,t,n={},r,o,s){let i;const a=or({actions:{}},n),l={deep:!0};let u,c,f=po([]),d=po([]),v;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),V({});let p;function y(E){let x;u=c=!1,typeof E=="function"?(E(r.state.value[e]),x={type:os.patchFunction,storeId:e,events:v}):(ql(r.state.value[e],E),x={type:os.patchObject,payload:E,storeId:e,events:v});const F=p=Symbol();Re().then(()=>{p===F&&(u=!0)}),c=!0,no(f,x,r.state.value[e])}const g=s?function(){const{state:x}=n,F=x?x():{};this.$patch(R=>{or(R,F)})}:$m;function w(){i.stop(),f=[],d=[],r._s.delete(e)}function _(E,x){return function(){ba(r);const F=Array.from(arguments),R=[],H=[];function B(K){R.push(K)}function A(K){H.push(K)}no(d,{args:F,name:E,store:C,after:B,onError:A});let $;try{$=x.apply(this&&this.$id===e?this:C,F)}catch(K){throw no(H,K),K}return $ instanceof Promise?$.then(K=>(no(R,K),K)).catch(K=>(no(H,K),Promise.reject(K))):(no(R,$),$)}}const T={_p:r,$id:e,$onAction:Xd.bind(null,d),$patch:y,$reset:g,$subscribe(E,x={}){const F=Xd(f,E,x.detached,()=>R()),R=i.run(()=>ue(()=>r.state.value[e],H=>{(x.flush==="sync"?c:u)&&E({storeId:e,type:os.direct,events:v},H)},or({},l,x)));return F},$dispose:w},C=Et(T);r._s.set(e,C);const P=r._e.run(()=>(i=ap(),i.run(()=>t())));for(const E in P){const x=P[E];if(qe(x)&&!C6(x)||Ln(x))s||(m&&E6(x)&&(qe(x)?x.value=m[E]:ql(x,m[E])),r.state.value[e][E]=x);else if(typeof x=="function"){const F=_(E,x);P[E]=F,a.actions[E]=x}}return or(C,P),or(Ae(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:E=>{y(x=>{or(x,E)})}}),r._p.forEach(E=>{or(C,i.run(()=>E({store:C,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(C.$state,m),u=!0,c=!0,C}function yI(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=st();return a=a||u&&Oe(Pm,null),a&&ba(a),a=Am,a._s.has(r)||(s?Im(r,t,o,a):O6(r,o,a)),a._s.get(r)}return i.$id=r,i}function bI(e){{e=Ae(e);const t={};for(const n in e){const r=e[n];(qe(r)||Ln(r))&&(t[n]=jt(e,n))}return t}}var Ja=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xa(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Rm(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function T6(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,s=0;s=0&&Qe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Qe.splice(0,Qe.length),(t===93||t===224)&&(t=91),t in bt){bt[t]=!1;for(var r in xn)xn[r]===t&&(cr[r]=!1)}}function M6(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&&Qa(i)});else if(typeof e=="object")e.key&&Qa(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?Rm(xn,u):[];ut[d]=ut[d].filter(function(m){var p=o?m.method===o:!0;return!(p&&m.scope===r&&T6(m.mods,v))})}})};function Zd(e,t,n,r){if(t.element===r){var o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(var s in bt)Object.prototype.hasOwnProperty.call(bt,s)&&(!bt[s]&&t.mods.indexOf(+s)>-1||bt[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!bt[16]&&!bt[18]&&!bt[17]&&!bt[91]||o||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function ep(e,t){var n=ut["*"],r=e.keyCode||e.which||e.charCode;if(cr.filter.call(this,e)){if((r===93||r===224)&&(r=91),Qe.indexOf(r)===-1&&r!==229&&Qe.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(m){var p=Ul[m];e[m]&&Qe.indexOf(p)===-1?Qe.push(p):!e[m]&&Qe.indexOf(p)>-1?Qe.splice(Qe.indexOf(p),1):m==="metaKey"&&e[m]&&Qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Qe=Qe.slice(Qe.indexOf(p))))}),r in bt){bt[r]=!0;for(var o in xn)xn[o]===r&&(cr[o]=!0);if(!n)return}for(var s in bt)Object.prototype.hasOwnProperty.call(bt,s)&&(bt[s]=e[Ul[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Qe.indexOf(17)===-1&&Qe.push(17),Qe.indexOf(18)===-1&&Qe.push(18),bt[17]=!0,bt[18]=!0);var i=As();if(n)for(var a=0;a-1}function cr(e,t,n){Qe=[];var r=km(e),o=[],s="all",i=document,a=0,l=!1,u=!0,c="+",f=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(i=t.element),t.keyup&&(l=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey)),typeof t=="string"&&(s=t);a1&&(o=Rm(xn,e)),e=e[e.length-1],e=e==="*"?"*":wa(e),e in ut||(ut[e]=[]),ut[e].push({keyup:l,keydown:u,scope:s,mods:o,shortcut:r[a],method:n,key:r[a],splitKey:c,element:i});typeof i<"u"&&!L6(i)&&window&&(Mm.push(i),Xa(i,"keydown",function(d){ep(d,i)},f),Qd||(Qd=!0,Xa(window,"focus",function(){Qe=[]},f)),Xa(i,"keyup",function(d){ep(d,i),N6(d)},f))}function F6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ut).forEach(function(n){var r=ut[n].filter(function(o){return o.scope===t&&o.shortcut===e});r.forEach(function(o){o&&o.method&&o.method()})})}var Za={getPressedKeyString:$6,setScope:Lm,getScope:As,deleteScope:k6,getPressedKeyCodes:P6,isPressed:R6,filter:I6,trigger:F6,unbind:M6,keyMap:xs,modifier:xn,modifierMap:Ul};for(var el in Za)Object.prototype.hasOwnProperty.call(Za,el)&&(cr[el]=Za[el]);if(typeof window<"u"){var B6=window.hotkeys;cr.noConflict=function(e){return e&&window.hotkeys===cr&&(window.hotkeys=B6),cr},window.hotkeys=cr}export{Q6 as $,qe as A,X6 as B,Y6 as C,W6 as D,sI as E,We as F,U6 as G,Iv as H,nI as I,ue as J,Tt as K,ce as L,gI as M,$p as N,Oa as O,fI as P,cI as Q,cr as R,Ue as S,q6 as T,rI as U,mI as V,uI as W,oI as X,aI as Y,iI as Z,Z6 as _,V6 as a,fb as a0,j6 as a1,ct as a2,fn as a3,Ae as a4,UA as a5,K6 as a6,pI as a7,qr as a8,Xe as a9,Re as aa,Fn as ab,sb as ac,Hv as ad,lI as ae,Kr as af,H6 as b,he as c,ne as d,ie as e,Rs as f,fe as g,dI as h,D6 as i,vI as j,hI as k,J6 as l,yI as m,O as n,I as o,z6 as p,G6 as q,Jn as r,bI as s,tt as t,h as u,Y as v,pe as w,eI as x,tI as y,V as z}; + */let Am;const ba=e=>Am=e,Pm=Symbol();function Kl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var os;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(os||(os={}));function gI(){const e=ap(!0),t=e.run(()=>V({}));let n=[],r=[];const o=po({install(s){ba(o),o._a=s,s.provide(Pm,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!v0?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const $m=()=>{};function Xd(e,t,n,r=$m){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Xl()&&Ql(o),o}function no(e,...t){e.slice().forEach(n=>{n(...t)})}function ql(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)&&!qe(r)&&!Ln(r)?e[n]=ql(o,r):e[n]=r}return e}const S6=Symbol();function E6(e){return!Kl(e)||!e.hasOwnProperty(S6)}const{assign:or}=Object;function C6(e){return!!(qe(e)&&e.effect)}function O6(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 or(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=po(O(()=>{ba(n);const v=n._s.get(e);return i[d].call(v,v)})),f),{}))}return l=Im(e,u,t,n,r,!0),l}function Im(e,t,n={},r,o,s){let i;const a=or({actions:{}},n),l={deep:!0};let u,c,f=po([]),d=po([]),v;const m=r.state.value[e];!s&&!m&&(r.state.value[e]={}),V({});let p;function y(E){let x;u=c=!1,typeof E=="function"?(E(r.state.value[e]),x={type:os.patchFunction,storeId:e,events:v}):(ql(r.state.value[e],E),x={type:os.patchObject,payload:E,storeId:e,events:v});const F=p=Symbol();Re().then(()=>{p===F&&(u=!0)}),c=!0,no(f,x,r.state.value[e])}const g=s?function(){const{state:x}=n,F=x?x():{};this.$patch(R=>{or(R,F)})}:$m;function w(){i.stop(),f=[],d=[],r._s.delete(e)}function _(E,x){return function(){ba(r);const F=Array.from(arguments),R=[],H=[];function B(K){R.push(K)}function A(K){H.push(K)}no(d,{args:F,name:E,store:C,after:B,onError:A});let $;try{$=x.apply(this&&this.$id===e?this:C,F)}catch(K){throw no(H,K),K}return $ instanceof Promise?$.then(K=>(no(R,K),K)).catch(K=>(no(H,K),Promise.reject(K))):(no(R,$),$)}}const T={_p:r,$id:e,$onAction:Xd.bind(null,d),$patch:y,$reset:g,$subscribe(E,x={}){const F=Xd(f,E,x.detached,()=>R()),R=i.run(()=>ue(()=>r.state.value[e],H=>{(x.flush==="sync"?c:u)&&E({storeId:e,type:os.direct,events:v},H)},or({},l,x)));return F},$dispose:w},C=Et(T);r._s.set(e,C);const P=r._e.run(()=>(i=ap(),i.run(()=>t())));for(const E in P){const x=P[E];if(qe(x)&&!C6(x)||Ln(x))s||(m&&E6(x)&&(qe(x)?x.value=m[E]:ql(x,m[E])),r.state.value[e][E]=x);else if(typeof x=="function"){const F=_(E,x);P[E]=F,a.actions[E]=x}}return or(C,P),or(Ae(C),P),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:E=>{y(x=>{or(x,E)})}}),r._p.forEach(E=>{or(C,i.run(()=>E({store:C,app:r._a,pinia:r,options:a})))}),m&&s&&n.hydrate&&n.hydrate(C.$state,m),u=!0,c=!0,C}function yI(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=st();return a=a||u&&Oe(Pm,null),a&&ba(a),a=Am,a._s.has(r)||(s?Im(r,t,o,a):O6(r,o,a)),a._s.get(r)}return i.$id=r,i}function bI(e){{e=Ae(e);const t={};for(const n in e){const r=e[n];(qe(r)||Ln(r))&&(t[n]=jt(e,n))}return t}}var Ja=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xa(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Rm(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function T6(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,s=0;s=0&&Qe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Qe.splice(0,Qe.length),(t===93||t===224)&&(t=91),t in bt){bt[t]=!1;for(var r in xn)xn[r]===t&&(cr[r]=!1)}}function M6(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&&Qa(i)});else if(typeof e=="object")e.key&&Qa(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?Rm(xn,u):[];ut[d]=ut[d].filter(function(m){var p=o?m.method===o:!0;return!(p&&m.scope===r&&T6(m.mods,v))})}})};function Zd(e,t,n,r){if(t.element===r){var o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(var s in bt)Object.prototype.hasOwnProperty.call(bt,s)&&(!bt[s]&&t.mods.indexOf(+s)>-1||bt[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!bt[16]&&!bt[18]&&!bt[17]&&!bt[91]||o||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function ep(e,t){var n=ut["*"],r=e.keyCode||e.which||e.charCode;if(cr.filter.call(this,e)){if((r===93||r===224)&&(r=91),Qe.indexOf(r)===-1&&r!==229&&Qe.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(m){var p=Ul[m];e[m]&&Qe.indexOf(p)===-1?Qe.push(p):!e[m]&&Qe.indexOf(p)>-1?Qe.splice(Qe.indexOf(p),1):m==="metaKey"&&e[m]&&Qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Qe=Qe.slice(Qe.indexOf(p))))}),r in bt){bt[r]=!0;for(var o in xn)xn[o]===r&&(cr[o]=!0);if(!n)return}for(var s in bt)Object.prototype.hasOwnProperty.call(bt,s)&&(bt[s]=e[Ul[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Qe.indexOf(17)===-1&&Qe.push(17),Qe.indexOf(18)===-1&&Qe.push(18),bt[17]=!0,bt[18]=!0);var i=As();if(n)for(var a=0;a-1}function cr(e,t,n){Qe=[];var r=km(e),o=[],s="all",i=document,a=0,l=!1,u=!0,c="+",f=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(i=t.element),t.keyup&&(l=t.keyup),t.keydown!==void 0&&(u=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(c=t.splitKey)),typeof t=="string"&&(s=t);a1&&(o=Rm(xn,e)),e=e[e.length-1],e=e==="*"?"*":wa(e),e in ut||(ut[e]=[]),ut[e].push({keyup:l,keydown:u,scope:s,mods:o,shortcut:r[a],method:n,key:r[a],splitKey:c,element:i});typeof i<"u"&&!L6(i)&&window&&(Mm.push(i),Xa(i,"keydown",function(d){ep(d,i)},f),Qd||(Qd=!0,Xa(window,"focus",function(){Qe=[]},f)),Xa(i,"keyup",function(d){ep(d,i),N6(d)},f))}function F6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ut).forEach(function(n){var r=ut[n].filter(function(o){return o.scope===t&&o.shortcut===e});r.forEach(function(o){o&&o.method&&o.method()})})}var Za={getPressedKeyString:$6,setScope:Lm,getScope:As,deleteScope:k6,getPressedKeyCodes:P6,isPressed:R6,filter:I6,trigger:F6,unbind:M6,keyMap:xs,modifier:xn,modifierMap:Ul};for(var el in Za)Object.prototype.hasOwnProperty.call(Za,el)&&(cr[el]=Za[el]);if(typeof window<"u"){var B6=window.hotkeys;cr.noConflict=function(e){return e&&window.hotkeys===cr&&(window.hotkeys=B6),cr},window.hotkeys=cr}export{Q6 as $,qe as A,X6 as B,Y6 as C,W6 as D,sI as E,We as F,U6 as G,Iv as H,nI as I,ue as J,Tt as K,ce as L,gI as M,$p as N,Oa as O,fI as P,cI as Q,cr as R,Ue as S,q6 as T,rI as U,mI as V,uI as W,oI as X,aI as Y,iI as Z,Z6 as _,V6 as a,fb as a0,j6 as a1,ct as a2,fn as a3,Ae as a4,UA as a5,K6 as a6,qr as a7,Xe as a8,Re as a9,Fn as aa,sb as ab,Hv as ac,lI as ad,Kr as ae,pI as af,H6 as b,he as c,ne as d,ie as e,Rs as f,fe as g,dI as h,D6 as i,vI as j,hI as k,J6 as l,yI as m,O as n,I as o,z6 as p,G6 as q,Jn as r,bI as s,tt as t,h as u,Y as v,pe as w,eI as x,tI as y,V as z}; diff --git a/app/src/main/assets/web/vue/index.html b/app/src/main/assets/web/vue/index.html index e5b7cc12a..0a8b1ee16 100644 --- a/app/src/main/assets/web/vue/index.html +++ b/app/src/main/assets/web/vue/index.html @@ -4,8 +4,8 @@ - - + +