fetch太慢去除历史提交记录
No files matched your search
@@ -0,0 +1,284 @@
|
||||
OGN5dS5jb20=
|
||||
c2cwMC54eXo=
|
||||
aXRyYWZmaWNuZXQuY29t
|
||||
eGlhb3FpYW5nNTIw
|
||||
MTIzeGlhb3FpYW5n
|
||||
eGlhb3FpYW5neHM=
|
||||
eGlhb3FpYW5nNTIw
|
||||
MzM1eHM=
|
||||
eGN4czk=
|
||||
eGN4czUyMA==
|
||||
c2h1YmFvYW4=
|
||||
c2h1YmFvd2FuZzEyMw==
|
||||
c2h1YmFvYW4=
|
||||
aGFpdGFuZzEyMw==
|
||||
eXV6aGFpd3VsYQ==
|
||||
cG8xOA==
|
||||
Ymwtbm92ZWw=
|
||||
NXRucw==
|
||||
c2hhb3NodWdl
|
||||
amluamlzaHV3dQ==
|
||||
NDJ3Zw==
|
||||
eWlxdXNodQ==
|
||||
c2h1YmFvd2FuZzEyMw==
|
||||
M2hlYmFv
|
||||
MzNoZWJhbw==
|
||||
bHVvcWl1enc=
|
||||
bXlzaHVnZQ==
|
||||
c3NzeHN3
|
||||
eWl0ZQ==
|
||||
Y3Vpd2VpanV1
|
||||
Y3Vpd2VpanV4cw==
|
||||
Y3Vpd2VpanV4
|
||||
eGlhb3FpYW5nd3g=
|
||||
YXN6dw==
|
||||
YXN6dzY=
|
||||
c2FuaGFveHM=
|
||||
ODdzaHV3dQ==
|
||||
NDh3eA==
|
||||
bG9uZ3Rlbmcy
|
||||
NnF3eA==
|
||||
bG9uZ3Rlbmd4cw==
|
||||
aGF4ZHU=
|
||||
M3R3eA==
|
||||
aGF4d3g1
|
||||
NjZsZXdlbg==
|
||||
eGJhbnpodQ==
|
||||
aGR5cA==
|
||||
ZHliejk=
|
||||
ZGl5aWJhbnpodTk=
|
||||
ZGl5aWJhbnpodQ==
|
||||
ZGl5aWJhbnpodTc=
|
||||
YnoyMjI=
|
||||
d29kZWFwaTAwMQ==
|
||||
dGFuZ3poZWthbg==
|
||||
YmF4aWFueHM=
|
||||
eGlhb3NodW9zaGVuemhhbg==
|
||||
ZGFtb2tl
|
||||
emh3ZW5wZw==
|
||||
eXV6aGFpZ2U=
|
||||
d21wOA==
|
||||
OXhpYW53ZW4=
|
||||
bmFucmVudmlw
|
||||
cmV5b28=
|
||||
eWZ4aWFvc2h1b2U=
|
||||
c2Fuaml1enc=
|
||||
N3Fpbmc3
|
||||
cWR4aWFvc2h1bw==
|
||||
Y2hpbmVzZXpq
|
||||
MzlzaHViYW8=
|
||||
a3l4czU=
|
||||
NTZtcw==
|
||||
bml1c2hh
|
||||
bWt4czY=
|
||||
MjIyMjJ4cw==
|
||||
OTVkdXNodQ==
|
||||
YmFuemh1MjI=
|
||||
d3JsdHh0
|
||||
dHVkb3V0eHQ=
|
||||
cm5neHM=
|
||||
OTl3ZW5rdQ==
|
||||
bGFvc2lqaXhz
|
||||
ZnVzaHV6aGFpMQ==
|
||||
cG8xOA==
|
||||
czUyMTc=
|
||||
c2FuaGFveHM=
|
||||
NTJrc2h1
|
||||
NDhyeA==
|
||||
ZWNub3ZlbA==
|
||||
bGllaHVvenc=
|
||||
eGlhb3FpYW5nd3g=
|
||||
NTJrc2h1
|
||||
NDh3eA==
|
||||
NTJrc2h1
|
||||
MDB1aQ==
|
||||
MDFieg==
|
||||
c2h1YmFvMQ==
|
||||
ZG54aWFvc2h1b2E=
|
||||
am5zaHViYQ==
|
||||
MThzaHV3dQ==
|
||||
bGV4cw==
|
||||
MzM1eHM=
|
||||
dXB1
|
||||
ZnVndW9kdQ==
|
||||
ODB0eHQ=
|
||||
YWFyZWFk
|
||||
eWlkdWR1MQ==
|
||||
YmFuemh1d2FuZw==
|
||||
cWloYW9xaWhhbw==
|
||||
OHhpYW54cw==
|
||||
amluamlzaHV3dQ==
|
||||
d21wOA==
|
||||
ZXl1c2h1d3U=
|
||||
NTB4c2Y=
|
||||
aGF4d3g1
|
||||
cG93YW5qdWFu
|
||||
d2luMTBjaXR5
|
||||
eWV5ZXhzdw==
|
||||
bXlzaHVnZQ==
|
||||
eGlhbmd0eHN3
|
||||
Y3Vpd2VpanV4
|
||||
MzY2eHN3
|
||||
aHVheXVld2Vua3U=
|
||||
eW91ZGlhbmxlbg==
|
||||
c291Nzg=
|
||||
bGFucm91Mg==
|
||||
cXFib29r
|
||||
eW91d3V4cw==
|
||||
cnVpbGlzYWxl
|
||||
MzY1bXd3
|
||||
ZnV3ZW5o
|
||||
bGVzYmw=
|
||||
YXd1Ym9vaw==
|
||||
bGl5dXhpYW5nMjAyMA==
|
||||
OTJwb3Bv
|
||||
ZnVzaHV0dWFu
|
||||
ODhkYW5tZWk=
|
||||
ZG14cw==
|
||||
eXVsaW56aGFueWU=
|
||||
M2hlYmFv
|
||||
eGd1YWd1YXhz
|
||||
ZGl5aWJhbnpodTY=
|
||||
aXJlYWR4cw==
|
||||
c2h1YmFvOTY=
|
||||
ZGl5aWJhbnpodTU1NQ==
|
||||
c2Fuaml1enc=
|
||||
N3Fpbmc3
|
||||
NjZsZXdlbg==
|
||||
a3l4czU=
|
||||
MjIyMjJ4cw==
|
||||
c2hhb3NodWdl
|
||||
amlsaW41NQ==
|
||||
bWt4czY=
|
||||
amluc2h1bG91
|
||||
eGlhbndhbmdz
|
||||
eWlkdWR1
|
||||
cWR0eHQ=
|
||||
MTZib29rMQ==
|
||||
am1zaHV3dQ==
|
||||
MzY2eHN3
|
||||
ZHliejk=
|
||||
c2hvdWRhOA==
|
||||
ZnlxMTg=
|
||||
eWlzaHVn
|
||||
eXV6aGFpd3VsYQ==
|
||||
MTFiYW56aHU=
|
||||
MTIzeGlhb3FpYW5n
|
||||
ZGl5aWJhbnpodTk=
|
||||
ZGl5aWJhbnpodQ==
|
||||
MzY2eHN3
|
||||
ODdzaHV3dQ==
|
||||
NnF3eA==
|
||||
emhlbmh1bnhpYW9zaHVv
|
||||
bG9uZ3Rlbmc1Mg==
|
||||
eGlueGluZ3hpYW5nemhpZmE=
|
||||
ZHliejk=
|
||||
ZHVvemhla2Fu
|
||||
MTIzeGlhb3FpYW5n
|
||||
MzM1eHM=
|
||||
am1zaHV3dQ==
|
||||
c2hhb3NodWdl
|
||||
bGF3ZW54cw==
|
||||
cnVzaHV3dQ==
|
||||
MzY2eHN3
|
||||
NTB4c2Y=
|
||||
bGV3ZW41NQ==
|
||||
aGFpdGFuZzEyMw==
|
||||
aGViYW81MjA=
|
||||
bHVvcWl1enc=
|
||||
c3NzeHN3
|
||||
c2h1c2h1d3V4cw==
|
||||
cm5neHM=
|
||||
cWR4aWFvc2h1bw==
|
||||
dHl1ZQ==
|
||||
Y2hlNDM=
|
||||
bG9uZ3Rlbmcy
|
||||
amZ5eHNo
|
||||
aGV0dTI=
|
||||
bGFvc2lqaXhz
|
||||
bG9uZ3Rlbmd4cw==
|
||||
bGllaHVvenc=
|
||||
c2h1YmFvYW4=
|
||||
eHNodW9zaHVv
|
||||
NTIxZGFubWVp
|
||||
YmFuemh1MjI=
|
||||
cWtzaHU=
|
||||
eWZ4aWFvc2h1b2U=
|
||||
a3lnc28=
|
||||
c2h1bG91YmE=
|
||||
NXRucw==
|
||||
N3Fpbmc3
|
||||
bWlhb2R1NQ==
|
||||
eXVzaHV3ZW4=
|
||||
YWFyZWFk
|
||||
cXRzaHU=
|
||||
MTdzaHV3dQ==
|
||||
c2h1YmFvMnM=
|
||||
YnowMDE=
|
||||
ZGFtb2dl
|
||||
MTMxdGI=
|
||||
aXhpYW9z
|
||||
bXlzaHVnZQ==
|
||||
OXhpYW53ZW4=
|
||||
ZHVvemhla2Fu
|
||||
MTIwdw==
|
||||
c2h1c2h1d3U1MjA=
|
||||
c2h1YmFvMnM=
|
||||
YWd4c3c=
|
||||
OTR4c3c=
|
||||
cG8xOA==
|
||||
eWFvY2hpeHM=
|
||||
eGlhb3FpYW5neHM=
|
||||
Ym9va2Js
|
||||
c2Fuaml1eHM=
|
||||
d29kZXNodWJhbw==
|
||||
em9uZ2NhaXhpYW9zaHVvMg==
|
||||
OWI4OTEzOTRkZjVi
|
||||
MThub3ZlbA==
|
||||
YWFib29r
|
||||
YjF0eHQ=
|
||||
eXVjYWl6dw==
|
||||
Yzl0eHQ=
|
||||
ZGl5aWJhbnpodTU1NQ==
|
||||
MzBtYw==
|
||||
eGlueXVzaHV3dQ==
|
||||
c2h1YmFvd2FuZzEyMw==
|
||||
YWd4cw==
|
||||
YmlxdWdlbmw=
|
||||
c2hpcWlzaHV3dQ==
|
||||
c2lsdWtl
|
||||
ZGl5aWJhbnpodTg=
|
||||
ZGl5aWJhbnpodTk=
|
||||
aGV0dW54cw==
|
||||
OTl3ZW5rdQ==
|
||||
aGFpdGFuZ3NodXd1
|
||||
OTd5ZA==
|
||||
eXV6aGFpd3UxMQ==
|
||||
Y3Vpd2VpanV4cw==
|
||||
Y2JpcXU=
|
||||
NTIxZGFubWVp
|
||||
c2h1YmFvMzM=
|
||||
c2FuaGFvMQ==
|
||||
dGlhbm1lbmd3ZW5rdQ==
|
||||
eXVzaHV3dTUyMA==
|
||||
c2h1YmFvMjIy
|
||||
c2h1YmFvd2FuZzEyMw==
|
||||
eXVib29r
|
||||
Y2JpcXU=
|
||||
MWxld2Vu
|
||||
MTV4c3c=
|
||||
eG5jd3h3
|
||||
c2h1YmFvd2FuZzEyMw==
|
||||
c2FuaGFveHM=
|
||||
eXV3YW5nc2hl
|
||||
YmlxdXRz
|
||||
bGFtZWl4cw==
|
||||
eGJhbnpodQ==
|
||||
cWR4aWFvc2h1bw==
|
||||
bWh0bGE=
|
||||
OTl3ZW5rdQ==
|
||||
eGlhb3FpYW5nNTIw
|
||||
dGlhbm1lbmd3ZW5rdQ==
|
||||
YWlmdXNodQ==
|
||||
bWlhb2R1NQ==
|
||||
bWlmZW5neHM=
|
||||
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 246 KiB |
|
After Width: | Height: | Size: 312 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 287 KiB |
@@ -0,0 +1 @@
|
||||
{"arm64-v8a":"690c212d9bbad4b09b9e1ba450b273bb","armeabi-v7a":"4dbb88e5229abef7d84138218772f872","x86":"3f2421e040147da48abb07cfc6c7c87e","x86_64":"730a71ef4f03a27d1c8c8a77e7d09ff5","version":"96.0.4664.104"}
|
||||
@@ -0,0 +1,48 @@
|
||||
[
|
||||
{
|
||||
"bookSourceComment": "",
|
||||
"bookSourceGroup": "听书",
|
||||
"bookSourceName": "消消乐听书",
|
||||
"bookSourceType": 1,
|
||||
"bookSourceUrl": "https://www.kaixin7days.com",
|
||||
"customOrder": 0,
|
||||
"enabled": true,
|
||||
"enabledExplore": true,
|
||||
"exploreUrl": "@js:var header = JSON.parsesource.getLoginHeader()\nvar json = ''\nvar j = null\nif (header != null) {\n json = java.connect('https://www.kaixin7days.com/book-service/bookMgt/getBookCategroy,{\"method\":\"POST\",\"body\":{}}', header).body()\n j = JSON.parse(json)\n}\nif (j == null || j.statusCode != 200) {\n json = java.connect('https://www.kaixin7days.com/visitorLogin,{\"method\":\"POST\", \"body\":{} }').body()\n j = JSON.parse(json)\n var accessToken = {\n Authorization: 'Bearer ' + j.content.accessToken\n }\n header = JSON.stringify(accessToken)\n source.putLoginHeader(header)\n json = java.connect('https://www.kaixin7days.com/book-service/bookMgt/getBookCategroy,{\"method\":\"POST\",\"body\":{} }', header).body()\n j = JSON.parse(json)\n}\nvar fls = j.content\nvar fx = []\nfor (var i = 0; i < fls.length; i++) {\n fx.push({\n title: fls[i].categoryName,\n url: '/book-service/bookMgt/getAllBookByCategroyId,{\"method\":\"POST\",\"body\":{\"categoryIds\": \"' + fls[i].associationCategoryIDs + '\",\"pageNum\": {{page}},\"pageSize\": 100}}'\n })\n}\nJSON.stringify(fx)",
|
||||
"searchUrl": "https://www.kaixin7days.com/book-service/bookMgt/findBookName,{\"method\":\"POST\",\"body\":{\"title\": \"searchKey\",\"pageNum\": {{searchPage}},\"pageSize\": 100}}",
|
||||
"lastUpdateTime": 1630656684531,
|
||||
"loginCheckJs": "var strRes = result\nvar c = JSON.parse(result.body())\nif (c.statusCode == 301) {\n var loginInfo = source.getLoginInfo()\n var dl = null\n if (loginInfo) {\n dl = java.connect('https://www.kaixin7days.com/login,{\"method\":\"POST\",\"body\":' + loginInfo + '}').body()\n } else {\n dl = java.connect('https://www.kaixin7days.com/visitorLogin,{\"method\":\"POST\",\"body\":{}}').body()\n }\n c = JSON.parse(dl)\n var accessToken = {\n Authorization: \"Bearer \" + c.content.accessToken\n }\n var header = JSON.stringify(accessToken)\n source.putLoginHeader(header)\n strRes = java.connect(url, header)\n}\nstrRes",
|
||||
"loginUi": "[{\"name\": \"telephone\",\"type\": \"text\"},{\"name\": \"password\",\"type\": \"password\"},{\"name\": \"注册\",\"type\": \"button\",\"action\": \"http://www.yooike.com/xiaoshuo/#/register?title=%E6%B3%A8%E5%86%8C\"}]",
|
||||
"loginUrl": "var loginInfo = source.getLoginInfo()\nvar json = java.connect('https://www.kaixin7days.com/login,{\"method\":\"POST\",\"body\":' + loginInfo + '}').body()\nvar loginRes = JSON.parse(json)\nvar header = null\nif (loginRes.statusCode == 200) {\n var accessToken = {\n Authorization: \"Bearer \" + loginRes.content.accessToken\n }\n header = JSON.stringify(accessToken)\n source.putLoginHeader(header)\n}\nheader",
|
||||
"respondTime": 180000,
|
||||
"ruleBookInfo": {},
|
||||
"ruleContent": {
|
||||
"content": "",
|
||||
"payAction": "var header = JSON.parse(source.getLoginHeader()); var bookId = book.getVariableMap().get('bookId');var chapterId = java.get('chapterId');\n'http://www.shuidi.online/?name=' + book.getName() + '&type=2&cover=' + book.getCoverUrl() + '&chapterId=' + chapterId + '&chapter=203&allNumber=' + book.getTotalChapterNum() + '&bookId=' + bookId + '&chapterIds=' + chapterId + '&number=' + chapter.getIndex() + '&accessToken=' + header.Authorization.substring(7) + '#/pay'"
|
||||
},
|
||||
"ruleExplore": {
|
||||
"author": "$.author",
|
||||
"bookList": "$.content.content",
|
||||
"bookUrl": "$.id@js:java.put('bookId', result);'https://www.kaixin7days.com/book-service/bookMgt/getAllChapterByBookId,{ \"method\": \"POST\",\"body\": {\"bookId\": \"'+result+'\",\"pageNum\": \"1\",\"pageSize\": \"10000\"} }'",
|
||||
"coverUrl": "$.cover@js:var cover = JSON.parse(result);'https://www.shuidi.online/fileMgt/getPicture?filePath='+cover.storeFilePath",
|
||||
"intro": "$.desc",
|
||||
"lastChapter": "$.newestChapter",
|
||||
"name": "$.title"
|
||||
},
|
||||
"ruleSearch": {
|
||||
"author": "$.author",
|
||||
"bookList": "$.content.content",
|
||||
"bookUrl": "$.id@js:java.put('bookId', result);'https://www.kaixin7days.com/book-service/bookMgt/getAllChapterByBookId,{ \"method\": \"POST\",\"body\": {\"bookId\": \"'+result+'\",\"pageNum\": \"1\",\"pageSize\": \"10000\"} }'",
|
||||
"coverUrl": "$.cover@js:var cover = JSON.parse(result);'https://www.shuidi.online/fileMgt/getPicture?filePath='+cover.storeFilePath",
|
||||
"intro": "$.desc",
|
||||
"lastChapter": "$.newestChapter",
|
||||
"name": "$.title"
|
||||
},
|
||||
"ruleToc": {
|
||||
"chapterList": "$.content.content",
|
||||
"chapterName": "$.chapterTitle",
|
||||
"chapterUrl": "$.id@js:java.put('chapterId', result);'https://www.shuidi.online/fileMgt/getAudioByChapterId?bookId=' + java.get('bookId') + '&chapterId=' + result + \"&pageNum=1&pageSize=50&keyId={{var header = JSON.parse(source.getLoginHeader());var keyId = '1632746188011002';var ks = java.md5Encode(keyId + java.get('chapterId') + header.Authorization);keyId + '&keySecret=' + ks}\" + '}'"
|
||||
},
|
||||
"weight": 0
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"UploadUrl": "http://sy.miaogongzi.cc/shuyuan,{\"method\":\"POST\",\"body\": {\"file\": \"fileRequest\"},\"type\": \"multipart/form-data\"}",
|
||||
"DownloadUrlRule": "$.data@js:if (result == '') \n '' \n else \n 'https://shuyuan.miaogongzi.cc/shuyuan/' + result",
|
||||
"summary": "有效期2天"
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
[
|
||||
{
|
||||
"id": -100,
|
||||
"name": "1.百度",
|
||||
"url": "http://tts.baidu.com/text2audio,{\n \"method\": \"POST\",\n \"body\": \"tex={{java.encodeURI(java.encodeURI(speakText))}}&spd={{(speakSpeed + 5) / 10 + 4}}&per=4127&cuid=baidu_speech_demo&idx=1&cod=2&lan=zh&ctp=1&pdt=11&vol=5&aue=6&pit=3&_res_tag_=audio\"\n}",
|
||||
"contentType": "audio/wav"
|
||||
},
|
||||
{
|
||||
"id": -29,
|
||||
"name": "2.阿里云语音",
|
||||
"url": "https://nls-gateway.cn-shanghai.aliyuncs.com/stream/v1/tts,{\"method\": \"POST\",\"body\": {\"appkey\":\"{{source.getLoginInfoMap().get('AppKey')}}\",\"text\":\"{{speakText}}\",\"format\":\"mp3\",\"volume\":100,\"speech_rate\":{{String((speakSpeed) * 20 - 400)}} }}",
|
||||
"contentType": "audio/mpeg",
|
||||
"loginUrl": "var loginInfo = source.getLoginInfoMap();\nvar accessKeyId = loginInfo.get('AccessKeyId');\nvar accessKeySecret = loginInfo.get('AccessKeySecret');\nvar timestamp = java.timeFormatUTC(new Date().getTime(), \"yyyy-MM-dd'T'HH:mm:ss'Z'\", 0);\nvar aly = new JavaImporter(Packages.javax.crypto.Mac, Packages.javax.crypto.spec.SecretKeySpec, Packages.javax.xml.bind.DatatypeConverter, Packages.java.net.URLEncoder, Packages.java.lang.String, Packages.android.util.Base64);\nwith (aly) {\n function percentEncode(value) {\n return URLEncoder.encode(value, \"UTF-8\").replace(\"+\", \"%20\")\n .replace(\"*\", \"%2A\").replace(\"%7E\", \"~\")\n }\n\n function sign(stringToSign, accessKeySecret) {\n var mac = Mac.getInstance('HmacSHA1');\n mac.init(new SecretKeySpec(String(accessKeySecret + '&').getBytes(\"UTF-8\"), \"HmacSHA1\"));\n var signData = mac.doFinal(String(stringToSign).getBytes(\"UTF-8\"));\n var signBase64 = Base64.encodeToString(signData, Base64.NO_WRAP);\n var signUrlEncode = percentEncode(signBase64);\n return signUrlEncode;\n }\n}\nvar query = 'AccessKeyId=' + accessKeyId + '&Action=CreateToken&Format=JSON&RegionId=cn-shanghai&SignatureMethod=HMAC-SHA1&SignatureNonce=' + java.randomUUID() + '&SignatureVersion=1.0&Timestamp=' + percentEncode(timestamp) + '&Version=2019-02-28';\nvar signStr = sign('GET&' + percentEncode('/') + '&' + percentEncode(query), accessKeySecret);\nvar queryStringWithSign = \"Signature=\" + signStr + \"&\" + query;\nvar body = java.ajax('http://nls-meta.cn-shanghai.aliyuncs.com/?' + queryStringWithSign)\nvar res = JSON.parse(body)\nif (res.Message) {\n throw new Error(res.Message)\n}\nvar header = { \"X-NLS-Token\": res.Token.Id };\nsource.putLoginHeader(JSON.stringify(header))",
|
||||
"loginUi": [
|
||||
{
|
||||
"name": "AppKey",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"name": "AccessKeyId",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"name": "AccessKeySecret",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"loginCheckJs": "var response = result;\nif (response.headers().get(\"Content-Type\") != \"audio/mpeg\") {\n var body = JSON.parse(response.body().string())\n if (body.status == 40000001) {\n source.login()\n java.getHeaderMap().putAll(source.getHeaderMap(true))\n response = java.getResponse()\n } else {\n throw body.message\n }\n}\nresponse"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,107 @@
|
||||
[
|
||||
{
|
||||
"bgStr": "#ffc0edc6",
|
||||
"bgStrEInk": "#FFFFFF",
|
||||
"bgStrNight": "#000000",
|
||||
"bgType": 0,
|
||||
"bgTypeEInk": 0,
|
||||
"bgTypeNight": 0,
|
||||
"darkStatusIcon": true,
|
||||
"darkStatusIconEInk": true,
|
||||
"darkStatusIconNight": false,
|
||||
"footerMode": 0,
|
||||
"footerPaddingBottom": 10,
|
||||
"footerPaddingLeft": 13,
|
||||
"footerPaddingRight": 17,
|
||||
"footerPaddingTop": 0,
|
||||
"headerMode": 0,
|
||||
"headerPaddingBottom": 0,
|
||||
"headerPaddingLeft": 19,
|
||||
"headerPaddingRight": 16,
|
||||
"headerPaddingTop": 10,
|
||||
"letterSpacing": 0,
|
||||
"lineSpacingExtra": 10,
|
||||
"name": "微信读书",
|
||||
"paddingBottom": 4,
|
||||
"paddingLeft": 22,
|
||||
"paddingRight": 22,
|
||||
"paddingTop": 5,
|
||||
"pageAnim": 3,
|
||||
"pageAnimEInk": 3,
|
||||
"paragraphIndent": " ",
|
||||
"paragraphSpacing": 6,
|
||||
"showFooterLine": true,
|
||||
"showHeaderLine": true,
|
||||
"textBold": 0,
|
||||
"textColor": "#ff0b0b0b",
|
||||
"textColorEInk": "#000000",
|
||||
"textColorNight": "#ADADAD",
|
||||
"textSize": 24,
|
||||
"tipColor": -10461088,
|
||||
"tipFooterLeft": 7,
|
||||
"tipFooterMiddle": 0,
|
||||
"tipFooterRight": 6,
|
||||
"tipHeaderLeft": 1,
|
||||
"tipHeaderMiddle": 0,
|
||||
"tipHeaderRight": 2,
|
||||
"titleBottomSpacing": 0,
|
||||
"titleMode": 0,
|
||||
"titleSize": 4,
|
||||
"titleTopSpacing": 0
|
||||
},
|
||||
{
|
||||
"name": "预设1",
|
||||
"bgStr": "#FFFFFF",
|
||||
"bgStrNight": "#000000",
|
||||
"textColor": "#000000",
|
||||
"textColorNight": "#FFFFFF",
|
||||
"bgType": 0,
|
||||
"bgTypeNight": 0,
|
||||
"darkStatusIcon": true,
|
||||
"darkStatusIconNight": false
|
||||
},
|
||||
{
|
||||
"name": "预设2",
|
||||
"bgStr": "#DDC090",
|
||||
"bgStrNight": "#3C3F43",
|
||||
"textColor": "#3E3422",
|
||||
"textColorNight": "#DCDFE1",
|
||||
"bgType": 0,
|
||||
"bgTypeNight": 0,
|
||||
"darkStatusIcon": true,
|
||||
"darkStatusIconNight": false
|
||||
},
|
||||
{
|
||||
"name": "预设3",
|
||||
"bgStr": "#C2D8AA",
|
||||
"bgStrNight": "#3C3F43",
|
||||
"textColor": "#596C44",
|
||||
"textColorNight": "#88C16F",
|
||||
"bgType": 0,
|
||||
"bgTypeNight": 0,
|
||||
"darkStatusIcon": false,
|
||||
"darkStatusIconNight": false
|
||||
},
|
||||
{
|
||||
"name": "预设4",
|
||||
"bgStr": "#DBB8E2",
|
||||
"bgStrNight": "#3C3F43",
|
||||
"textColor": "#68516C",
|
||||
"textColorNight": "#F6AEAE",
|
||||
"bgType": 0,
|
||||
"bgTypeNight": 0,
|
||||
"darkStatusIcon": false,
|
||||
"darkStatusIconNight": false
|
||||
},
|
||||
{
|
||||
"name": "预设5",
|
||||
"bgStr": "#ABCEE0",
|
||||
"bgStrNight": "#3C3F43",
|
||||
"textColor": "#3D4C54",
|
||||
"textColorNight": "#90BFF5",
|
||||
"bgType": 0,
|
||||
"bgTypeNight": 0,
|
||||
"darkStatusIcon": false,
|
||||
"darkStatusIconNight": false
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"customOrder": 1,
|
||||
"enableJs": true,
|
||||
"enabled": true,
|
||||
"singleUrl": true,
|
||||
"sourceGroup": "legado",
|
||||
"sourceIcon": "https://cdn.jsdelivr.net/gh/gedoor/legado@master/app/src/main/res/mipmap-hdpi/ic_launcher.png",
|
||||
"sourceName": "使用说明",
|
||||
"sourceUrl": "https://www.yuque.com/legado"
|
||||
},
|
||||
{
|
||||
"customOrder": 2,
|
||||
"enableJs": true,
|
||||
"enabled": true,
|
||||
"singleUrl": true,
|
||||
"sourceGroup": "legado",
|
||||
"sourceIcon": "http://mmbiz.qpic.cn/mmbiz_png/hpfMV8hEuL2eS6vnCxvTzoOiaCAibV6exBzJWq9xMic9xDg3YXAick87tsfafic0icRwkQ5ibV0bJ84JtSuxhPuEDVquA/0?wx_fmt=png",
|
||||
"sourceName": "小说拾遗",
|
||||
"sourceUrl": "snssdk1128://user/profile/562564899806367"
|
||||
},
|
||||
{
|
||||
"customOrder": 3,
|
||||
"enableJs": true,
|
||||
"enabled": true,
|
||||
"singleUrl": true,
|
||||
"sourceGroup": "legado",
|
||||
"sourceIcon": "https://Cloud.miaogongzi.site/images/icon.png",
|
||||
"sourceName": "Meow云",
|
||||
"sourceUrl": "https://pan.miaogongzi.net"
|
||||
},
|
||||
{
|
||||
"customOrder": 4,
|
||||
"enableJs": true,
|
||||
"enabled": true,
|
||||
"singleUrl": true,
|
||||
"sourceGroup": "legado",
|
||||
"sourceIcon": "https://cdn.jsdelivr.net/gh/gedoor/legado@master/app/src/main/res/mipmap-hdpi/ic_launcher.png",
|
||||
"sourceName": "烏雲净化",
|
||||
"sourceUrl": "https://www.lanzoux.com/b0bw8jwoh"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
[
|
||||
{
|
||||
"themeName": "典雅蓝",
|
||||
"isNightTheme": false,
|
||||
"primaryColor": "#03A9F4",
|
||||
"accentColor": "#AD1457",
|
||||
"backgroundColor": "#F5F5F5",
|
||||
"bottomBackground": "#EEEEEE"
|
||||
},
|
||||
{
|
||||
"themeName": "黑白",
|
||||
"isNightTheme": true,
|
||||
"primaryColor": "#303030",
|
||||
"accentColor": "#E0E0E0",
|
||||
"backgroundColor": "#424242",
|
||||
"bottomBackground": "#424242"
|
||||
},
|
||||
{
|
||||
"themeName": "A屏黑",
|
||||
"isNightTheme": true,
|
||||
"primaryColor": "#000000",
|
||||
"accentColor": "#FFFFFF",
|
||||
"backgroundColor": "#000000",
|
||||
"bottomBackground": "#000000"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,128 @@
|
||||
[
|
||||
{
|
||||
"id": -1,
|
||||
"enable": true,
|
||||
"name": "目录(去空白)",
|
||||
"rule": "(?<=[ \\s])(?:序章|序言|卷首语|扉页|楔子|正文(?!完|结)|终章|后记|尾声|番外|第?\\s{0,4}[\\d〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]+?\\s{0,4}(?:章|节(?!课)|卷|集(?![合和])|部(?![分赛游])|篇(?!张))).{0,30}$",
|
||||
"serialNumber": 0
|
||||
},
|
||||
{
|
||||
"id": -2,
|
||||
"enable": true,
|
||||
"name": "目录",
|
||||
"rule": "^[ \\t]{0,4}(?:序章|序言|卷首语|扉页|楔子|正文(?!完|结)|终章|后记|尾声|番外|第?\\s{0,4}[\\d〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]+?\\s{0,4}(?:章|节(?!课)|卷|集(?![合和])|部(?![分赛游])|篇(?!张))).{0,30}$",
|
||||
"serialNumber": 1
|
||||
},
|
||||
{
|
||||
"id": -3,
|
||||
"enable": false,
|
||||
"name": "目录(匹配简介)",
|
||||
"rule": "(?<=[ \\s])(?:(?:内容|文章)?简介|文案|前言|序章|序言|卷首语|扉页|楔子|正文(?!完|结)|终章|后记|尾声|番外|第?\\s{0,4}[\\d〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]+?\\s{0,4}(?:章|节(?!课)|卷|集(?![合和])|部(?![分赛游])|回(?![合来事去])|场(?![和合比电是])|篇(?!张))).{0,30}$",
|
||||
"serialNumber": 2
|
||||
},
|
||||
{
|
||||
"id": -4,
|
||||
"enable": false,
|
||||
"name": "目录(古典、轻小说备用)",
|
||||
"rule": "^[ \\t]{0,4}(?:序章|楔子|正文(?!完|结)|终章|后记|尾声|番外|第?\\s{0,4}[\\d〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]+?\\s{0,4}(?:章|节(?!课)|卷|集(?![合和])|部(?![分赛游])|回(?![合来事去])|场(?![和合比电是])|话|篇(?!张))).{0,30}$",
|
||||
"serialNumber": 3
|
||||
},
|
||||
{
|
||||
"id": -5,
|
||||
"enable": false,
|
||||
"name": "数字(纯数字标题)",
|
||||
"rule": "(?<=[ \\s])\\d+\\.?[ \\t]{0,4}$",
|
||||
"serialNumber": 4
|
||||
},
|
||||
{
|
||||
"id": -6,
|
||||
"enable": true,
|
||||
"name": "数字 分隔符 标题名称",
|
||||
"rule": "^[ \\t]{0,4}\\d{1,5}[::,., 、_—\\-].{1,30}$",
|
||||
"serialNumber": 5
|
||||
},
|
||||
{
|
||||
"id": -7,
|
||||
"enable": true,
|
||||
"name": "大写数字 分隔符 标题名称",
|
||||
"rule": "^[ \\t]{0,4}(?:序章|序言|卷首语|扉页|楔子|正文(?!完|结)|终章|后记|尾声|番外|[〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8})[ 、_—\\-].{1,30}$",
|
||||
"serialNumber": 6
|
||||
},
|
||||
{
|
||||
"id": -8,
|
||||
"enable": true,
|
||||
"name": "正文 标题/序号",
|
||||
"rule": "^[ \\t]{0,4}正文[ ]{1,4}.{0,20}$",
|
||||
"serialNumber": 7
|
||||
},
|
||||
{
|
||||
"id": -9,
|
||||
"enable": true,
|
||||
"name": "Chapter/Section/Part/Episode 序号 标题",
|
||||
"rule": "^[ \\t]{0,4}(?:[Cc]hapter|[Ss]ection|[Pp]art|PART|[Nn][oO]\\.|[Ee]pisode|(?:内容|文章)?简介|文案|前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外)\\s{0,4}\\d{1,4}.{0,30}$",
|
||||
"serialNumber": 8
|
||||
},
|
||||
{
|
||||
"id": -10,
|
||||
"enable": false,
|
||||
"name": "Chapter(去简介)",
|
||||
"rule": "^[ \\t]{0,4}(?:[Cc]hapter|[Ss]ection|[Pp]art|PART|[Nn][Oo]\\.|[Ee]pisode)\\s{0,4}\\d{1,4}.{0,30}$",
|
||||
"serialNumber": 9
|
||||
},
|
||||
{
|
||||
"id": -11,
|
||||
"enable": true,
|
||||
"name": "特殊符号 序号 标题",
|
||||
"rule": "(?<=[\\s ])[【〔〖「『〈[\\[](?:第|[Cc]hapter)[\\d〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,10}[章节].{0,20}$",
|
||||
"serialNumber": 10
|
||||
},
|
||||
{
|
||||
"id": -12,
|
||||
"enable": false,
|
||||
"name": "特殊符号 标题(成对)",
|
||||
"rule": "(?<=[\\s ]{0,4})(?:[\\[〈「『〖〔《(【\\(].{1,30}[\\)】)》〕〗』」〉\\]]?|(?:内容|文章)?简介|文案|前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外)[ ]{0,4}$",
|
||||
"serialNumber": 11
|
||||
},
|
||||
{
|
||||
"id": -13,
|
||||
"enable":true,
|
||||
"name": "特殊符号 标题(单个)",
|
||||
"rule": "(?<=[\\s ]{0,4})(?:[☆★✦✧].{1,30}|(?:内容|文章)?简介|文案|前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外)[ ]{0,4}$",
|
||||
"serialNumber": 12
|
||||
},
|
||||
{
|
||||
"id": -14,
|
||||
"enable": true,
|
||||
"name": "章/卷 序号 标题",
|
||||
"rule": "^[ \\t ]{0,4}(?:(?:内容|文章)?简介|文案|前言|序章|序言|卷首语|扉页|楔子|正文(?!完|结)|终章|后记|尾声|番外|[卷章][\\d〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8})[ ]{0,4}.{0,30}$",
|
||||
"serialNumber": 13
|
||||
},
|
||||
{
|
||||
"id": -15,
|
||||
"enable":false,
|
||||
"name": "顶格标题",
|
||||
"rule": "^\\S.{1,20}$",
|
||||
"serialNumber": 14
|
||||
},
|
||||
{
|
||||
"id": -16,
|
||||
"enable":false,
|
||||
"name": "双标题(前向)",
|
||||
"rule": "(?m)(?<=[ \\t ]{0,4})第[\\d〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8}章.{0,30}$(?=[\\s ]{0,8}第[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8}章)",
|
||||
"serialNumber": 15
|
||||
},
|
||||
{
|
||||
"id": -17,
|
||||
"enable":false,
|
||||
"name": "双标题(后向)",
|
||||
"rule": "(?m)(?<=[ \\t ]{0,4}第[\\d〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8}章.{0,30}$[\\s ]{0,8})第[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8}章.{0,30}$",
|
||||
"serialNumber": 16
|
||||
},
|
||||
{
|
||||
"id":-18,
|
||||
"enable": true,
|
||||
"name": "标题 特殊符号 序号",
|
||||
"rule": "^.{1,20}[((][\\d〇零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8}[))][ \t]{0,4}$",
|
||||
"serialNumber": 17
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,16 @@
|
||||
# 免责声明(Disclaimer)
|
||||
|
||||
* 阅读是一款解析指定规则并获取内容的工具,为广大网络文学爱好者提供一种方便、快捷舒适的试读体验。
|
||||
* 当您搜索一本书的时,阅读会您所使用的规则将该书的书名以关键词的形式提交到各个第三方网络文学网站。
|
||||
各第三方网站返回的内容与阅读无关,阅读对其概不负责,亦不承担任何法律责任。
|
||||
任何通过使用阅读而链接到的第三方网页均系他人制作或提供,您可能从第三方网页上获得其他服务,阅读对其合法性概不负责,亦不承担任何法律责任。
|
||||
第三方搜索引擎结果根据您提交的书名自动搜索获得并提供试读,不代表阅读赞成或被搜索链接到的第三方网页上的内容或立场。
|
||||
您应该对使用搜索引擎的结果自行承担风险。
|
||||
* 阅读不做任何形式的保证:不保证第三方搜索引擎的搜索结果满足您的要求,不保证搜索服务不中断,不保证搜索结果的安全性、正确性、及时性、合法性。
|
||||
因网络状况、通讯线路、第三方网站等任何原因而导致您不能正常使用阅读,阅读不承担任何法律责任。
|
||||
阅读尊重并保护所有使用阅读用户的个人隐私权,您注册的用户名、电子邮件地址等个人资料,非经您亲自许可或根据相关法律、法规的强制性规定,阅读不会主动地泄露给第三方。
|
||||
* 阅读致力于最大程度地减少网络文学阅读者在自行搜寻过程中的无意义的时间浪费,通过专业搜索展示不同网站中网络文学的最新章节。
|
||||
阅读在为广大小说爱好者提供方便、快捷舒适的试读体验的同时,也使优秀网络文学得以迅速、更广泛的传播,从而达到了在一定程度促进网络文学充分繁荣发展之目的。
|
||||
阅读鼓励广大小说爱好者通过阅读发现优秀网络小说及其提供商,并建议阅读正版图书。
|
||||
任何单位或个人认为通过阅读搜索链接到的第三方网页内容可能涉嫌侵犯其信息网络传播权,应该及时向阅读提出书面权力通知,并提供身份证明、权属证明及详细侵权情况证明。
|
||||
阅读在收到上述法律文件后,将会依法尽快断开相关链接内容。
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Chapter</title>
|
||||
<link href="../Styles/fonts.css" type="text/css" rel="stylesheet"/>
|
||||
<link href="../Styles/main.css" type="text/css" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
<!--<div class="logo">
|
||||
<img alt="" class="logo" src="../Images/logo.png"/>
|
||||
</div>-->
|
||||
<br/>
|
||||
<br/>
|
||||
<h2 class="head">{title}</h2>
|
||||
{content}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Cover</title>
|
||||
<style type="text/css">
|
||||
.pic {
|
||||
margin: 50% 30% 0 30%;
|
||||
padding: 2px 2px;
|
||||
border: 1px solid #f5f5dc;
|
||||
background-color: rgba(250,250,250, 0);
|
||||
border-radius: 1px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="text-align: center;">
|
||||
<div class="pic"><img src="../Images/cover.jpg" style="width: 100%; height: auto;"/></div>
|
||||
<h1 style="margin-top: 5%; font-size: 110%;">{name}</h1>
|
||||
<div class="author" style="margin-top: 0;"><b>{author}</b> <span style="font-size: smaller;">/ 著</span></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,267 @@
|
||||
@charset "utf-8";
|
||||
/*---常用---*/
|
||||
|
||||
@font-face {
|
||||
font-family: "zw";
|
||||
src:
|
||||
local("宋体"),local("明体"),local("明朝"),
|
||||
local("Songti"),local("Songti SC"),local("Songti TC"), /*iOS6+iBooks3*/
|
||||
local("Song S"),local("Song T"),local("STBShusong"),local("TBMincho"),local("HYMyeongJo"), /*Kindle Paperwihite*/
|
||||
local("DK-SONGTI"),
|
||||
url(../Fonts/zw.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/zw.ttf),
|
||||
url(res:///Data/FONT/zw.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/tt0011m_.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/sdcard/fonts/zw.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/extsd/fonts/zw.ttf),
|
||||
url(res:///ebook/fonts/zw.ttf),
|
||||
url(res:///ebook/fonts/DroidSansFallback.ttf),
|
||||
url(res:///fonts/ttf/zw.ttf),
|
||||
url(res:///../../media/mmcblk0p1/fonts/zw.ttf),
|
||||
url(file:///mnt/us/DK_System/system/fonts/zw.ttf), /*Duokan Old Path*/
|
||||
url(file:///mnt/us/DK_System/xKindle/res/userfonts/zw.ttf), /*Duokan 2012 Path*/
|
||||
url(res:///abook/fonts/zw.ttf),
|
||||
url(res:///system/fonts/zw.ttf),
|
||||
url(res:///system/media/sdcard/fonts/zw.ttf),
|
||||
url(res:///media/fonts/zw.ttf),
|
||||
url(res:///sdcard/fonts/zw.ttf),
|
||||
url(res:///system/fonts/DroidSansFallback.ttf),
|
||||
url(res:///mnt/MOVIFAT/font/zw.ttf),
|
||||
url(res:///media/flash/fonts/zw.ttf),
|
||||
url(res:///media/sd/fonts/zw.ttf),
|
||||
url(res:///opt/onyx/arm/lib/fonts/AdobeHeitiStd-Regular.otf),
|
||||
url(res:///../../fonts/zw.ttf),
|
||||
url(res:///../fonts/zw.ttf),
|
||||
url(../../../../../zw.ttf), /*EpubReaderI*/
|
||||
url(res:///mnt/sdcard/fonts/zw.ttf), /*Nook for Android: fonts in TF Card*/
|
||||
url(res:///fonts/zw.ttf), /*ADE1,8, 2.0 Program Path*/
|
||||
url(res:///../../../../Windows/fonts/zw.ttf);
|
||||
/*ADE1,8, 2.0 Windows Path*/;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "fs";
|
||||
src:
|
||||
local("amasis30"),local("仿宋"),local("仿宋_GB2312"),
|
||||
local("Yuanti"),local("Yuanti SC"),local("Yuanti TC"), /*iOS6+iBooks3*/
|
||||
local("DK-FANGSONG"),
|
||||
url(../Fonts/fs.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/fs.ttf),
|
||||
url(res:///Data/FONT/fs.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/tt0011m_.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/sdcard/fonts/fs.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/extsd/fonts/fs.ttf),
|
||||
url(res:///ebook/fonts/fs.ttf),
|
||||
url(res:///ebook/fonts/DroidSansFallback.ttf),
|
||||
url(res:///fonts/ttf/fs.ttf),
|
||||
url(res:///../../media/mmcblk0p1/fonts/fs.ttf),
|
||||
url(file:///mnt/us/DK_System/system/fonts/fs.ttf), /*Duokan Old Path*/
|
||||
url(file:///mnt/us/DK_System/xKindle/res/userfonts/fs.ttf), /*Duokan 2012 Path*/
|
||||
url(res:///abook/fonts/fs.ttf),
|
||||
url(res:///system/fonts/fs.ttf),
|
||||
url(res:///system/media/sdcard/fonts/fs.ttf),
|
||||
url(res:///media/fonts/fs.ttf),
|
||||
url(res:///sdcard/fonts/fs.ttf),
|
||||
url(res:///system/fonts/DroidSansFallback.ttf),
|
||||
url(res:///mnt/MOVIFAT/font/fs.ttf),
|
||||
url(res:///media/flash/fonts/fs.ttf),
|
||||
url(res:///media/sd/fonts/fs.ttf),
|
||||
url(res:///opt/onyx/arm/lib/fonts/AdobeHeitiStd-Regular.otf),
|
||||
url(res:///../../fonts/fs.ttf),
|
||||
url(res:///../fonts/fs.ttf),
|
||||
url(../../../../../fs.ttf), /*EpubReaderI*/
|
||||
url(res:///mnt/sdcard/fonts/fs.ttf), /*Nook for Android: fonts in TF Card*/
|
||||
url(res:///fonts/fs.ttf), /*ADE1,8, 2.0 Program Path*/
|
||||
url(res:///../../../../Windows/fonts/fs.ttf);
|
||||
/*ADE1,8, 2.0 Windows Path*/;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "kt";
|
||||
src:
|
||||
local("Caecilia"),local("楷体"),local("楷体_GB2312"),
|
||||
local("Kaiti"),local("Kaiti SC"),local("Kaiti TC"), /*iOS6+iBooks3*/
|
||||
local("MKai PRC"),local("MKaiGB18030C-Medium"),local("MKaiGB18030C-Bold"), /*Kindle Paperwihite*/
|
||||
local("DK-KAITI"),
|
||||
url(../Fonts/kt.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/kt.ttf),
|
||||
url(res:///Data/FONT/kt.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/tt0011m_.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/sdcard/fonts/kt.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/extsd/fonts/kt.ttf),
|
||||
url(res:///ebook/fonts/kt.ttf),
|
||||
url(res:///ebook/fonts/DroidSansFallback.ttf),
|
||||
url(res:///fonts/ttf/kt.ttf),
|
||||
url(res:///../../media/mmcblk0p1/fonts/kt.ttf),
|
||||
url(file:///mnt/us/DK_System/system/fonts/kt.ttf), /*Duokan Old Path*/
|
||||
url(file:///mnt/us/DK_System/xKindle/res/userfonts/kt.ttf), /*Duokan 2012 Path*/
|
||||
url(res:///abook/fonts/kt.ttf),
|
||||
url(res:///system/fonts/kt.ttf),
|
||||
url(res:///system/media/sdcard/fonts/kt.ttf),
|
||||
url(res:///media/fonts/kt.ttf),
|
||||
url(res:///sdcard/fonts/kt.ttf),
|
||||
url(res:///system/fonts/DroidSansFallback.ttf),
|
||||
url(res:///mnt/MOVIFAT/font/kt.ttf),
|
||||
url(res:///media/flash/fonts/kt.ttf),
|
||||
url(res:///media/sd/fonts/kt.ttf),
|
||||
url(res:///opt/onyx/arm/lib/fonts/AdobeHeitiStd-Regular.otf),
|
||||
url(res:///../../fonts/kt.ttf),
|
||||
url(res:///../fonts/kt.ttf),
|
||||
url(../../../../../kt.ttf), /*EpubReaderI*/
|
||||
url(res:///mnt/sdcard/fonts/kt.ttf), /*Nook for Android: fonts in TF Card*/
|
||||
url(res:///fonts/kt.ttf), /*ADE1,8, 2.0 Program Path*/
|
||||
url(res:///../../../../Windows/fonts/kt.ttf);
|
||||
/*ADE1,8, 2.0 Windows Path*/;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "ht";
|
||||
src:
|
||||
local("黑体"),local("微软雅黑"),
|
||||
local("Heiti"),local("Heiti SC"),local("Heiti TC"), /*iOS6+iBooks3*/
|
||||
local("MYing Hei S"),local("MYing Hei T"),local("TBGothic"), /*Kindle Paperwihite*/
|
||||
local("DK-HEITI"),
|
||||
url(../Fonts/ht.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/ht.ttf),
|
||||
url(res:///Data/FONT/ht.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/tt0011m_.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/sdcard/fonts/ht.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/extsd/fonts/ht.ttf),
|
||||
url(res:///ebook/fonts/ht.ttf),
|
||||
url(res:///ebook/fonts/DroidSansFallback.ttf),
|
||||
url(res:///fonts/ttf/ht.ttf),
|
||||
url(res:///../../media/mmcblk0p1/fonts/ht.ttf),
|
||||
url(file:///mnt/us/DK_System/system/fonts/ht.ttf), /*Duokan Old Path*/
|
||||
url(file:///mnt/us/DK_System/xKindle/res/userfonts/ht.ttf), /*Duokan 2012 Path*/
|
||||
url(res:///abook/fonts/ht.ttf),
|
||||
url(res:///system/fonts/ht.ttf),
|
||||
url(res:///system/media/sdcard/fonts/ht.ttf),
|
||||
url(res:///media/fonts/ht.ttf),
|
||||
url(res:///sdcard/fonts/ht.ttf),
|
||||
url(res:///system/fonts/DroidSansFallback.ttf),
|
||||
url(res:///mnt/MOVIFAT/font/ht.ttf),
|
||||
url(res:///media/flash/fonts/ht.ttf),
|
||||
url(res:///media/sd/fonts/ht.ttf),
|
||||
url(res:///opt/onyx/arm/lib/fonts/AdobeHeitiStd-Regular.otf),
|
||||
url(res:///../../fonts/ht.ttf),
|
||||
url(res:///../fonts/ht.ttf),
|
||||
url(../../../../../ht.ttf), /*EpubReaderI*/
|
||||
url(res:///mnt/sdcard/fonts/ht.ttf), /*Nook for Android: fonts in TF Card*/
|
||||
url(res:///fonts/ht.ttf), /*ADE1,8, 2.0 Program Path*/
|
||||
url(res:///../../../../Windows/fonts/ht.ttf);
|
||||
/*ADE1,8, 2.0 Windows Path*/;
|
||||
}
|
||||
@font-face {
|
||||
font-family:"h1";
|
||||
src:
|
||||
local("方正兰亭特黑长_GBK"),local("方正兰亭特黑长简体"),local("方正兰亭特黑长繁体"),
|
||||
local("LantingTeheichang"),
|
||||
local("Yuanti"),local("Yuanti SC"),local("Yuanti TC"),
|
||||
local("DK-HEITI"),
|
||||
url(../Fonts/h1.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/h1.ttf),
|
||||
url(res:///Data/FONT/h1.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/tt0011m_.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/sdcard/fonts/h1.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/extsd/fonts/h1.ttf),
|
||||
url(res:///ebook/fonts/h1.ttf),
|
||||
url(res:///ebook/fonts/DroidSansFallback.ttf),
|
||||
url(res:///fonts/ttf/h1.ttf),
|
||||
url(res:///../../media/mmcblk0p1/fonts/h1.ttf),
|
||||
url(file:///mnt/us/DK_System/system/fonts/h1.ttf), /*Duokan Old Path*/
|
||||
url(file:///mnt/us/DK_System/xKindle/res/userfonts/h1.ttf), /*Duokan 2012 Path*/
|
||||
url(res:///abook/fonts/h1.ttf),
|
||||
url(res:///system/fonts/h1.ttf),
|
||||
url(res:///system/media/sdcard/fonts/h1.ttf),
|
||||
url(res:///media/fonts/h1.ttf),
|
||||
url(res:///sdcard/fonts/h1.ttf),
|
||||
url(res:///system/fonts/DroidSansFallback.ttf),
|
||||
url(res:///mnt/MOVIFAT/font/h1.ttf),
|
||||
url(res:///media/flash/fonts/h1.ttf),
|
||||
url(res:///media/sd/fonts/h1.ttf),
|
||||
url(res:///opt/onyx/arm/lib/fonts/AdobeHeitiStd-Regular.otf),
|
||||
url(res:///../../fonts/h1.ttf),
|
||||
url(res:///../fonts/h1.ttf),
|
||||
url(../../../../../h1.ttf), /*EpubReaderI*/
|
||||
url(res:///mnt/sdcard/fonts/h1.ttf), /*Nook for Android: fonts in TF Card*/
|
||||
url(res:///fonts/h1.ttf), /*ADE1,8, 2.0 Program Path*/
|
||||
url(res:///../../../../Windows/fonts/h1.ttf); /*ADE1,8, 2.0 Windows Path*/
|
||||
}
|
||||
@font-face {
|
||||
font-family:"h2";
|
||||
src:
|
||||
local("方正大标宋_GBK"),local("方正大标宋简体"),local("方正大标宋繁体"),
|
||||
local("Dabiaosong"),
|
||||
local("Heiti"),local("Heiti SC"),local("Heiti TC"),
|
||||
local("DK-XIAOBIAOSONG"),
|
||||
url(../Fonts/h2.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/h2.ttf),
|
||||
url(res:///Data/FONT/h2.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/tt0011m_.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/sdcard/fonts/h2.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/extsd/fonts/h2.ttf),
|
||||
url(res:///ebook/fonts/h2.ttf),
|
||||
url(res:///ebook/fonts/DroidSansFallback.ttf),
|
||||
url(res:///fonts/ttf/h2.ttf),
|
||||
url(res:///../../media/mmcblk0p1/fonts/h2.ttf),
|
||||
url(file:///mnt/us/DK_System/system/fonts/h2.ttf), /*Duokan Old Path*/
|
||||
url(file:///mnt/us/DK_System/xKindle/res/userfonts/h2.ttf), /*Duokan 2012 Path*/
|
||||
url(res:///abook/fonts/h2.ttf),
|
||||
url(res:///system/fonts/h2.ttf),
|
||||
url(res:///system/media/sdcard/fonts/h2.ttf),
|
||||
url(res:///media/fonts/h2.ttf),
|
||||
url(res:///sdcard/fonts/h2.ttf),
|
||||
url(res:///system/fonts/DroidSansFallback.ttf),
|
||||
url(res:///mnt/MOVIFAT/font/h2.ttf),
|
||||
url(res:///media/flash/fonts/h2.ttf),
|
||||
url(res:///media/sd/fonts/h2.ttf),
|
||||
url(res:///opt/onyx/arm/lib/fonts/AdobeHeitiStd-Regular.otf),
|
||||
url(res:///../../fonts/h2.ttf),
|
||||
url(res:///../fonts/h2.ttf),
|
||||
url(../../../../../h2.ttf), /*EpubReaderI*/
|
||||
url(res:///mnt/sdcard/fonts/h2.ttf), /*Nook for Android: fonts in TF Card*/
|
||||
url(res:///fonts/h2.ttf), /*ADE1,8, 2.0 Program Path*/
|
||||
url(res:///../../../../Windows/fonts/h2.ttf); /*ADE1,8, 2.0 Windows Path*/
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family:"h3";
|
||||
src:
|
||||
local("方正华隶_GBK"),local("方正行黑简体"),local("方正行黑繁体"),
|
||||
local("Yuanti"),local("Yuanti SC"),local("Yuanti TC"),
|
||||
local("DK-FANGSONG"),
|
||||
url(../Fonts/h3.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/h3.ttf),
|
||||
url(res:///Data/FONT/h3.ttf),
|
||||
url(res:///opt/sony/ebook/FONT/tt0011m_.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/sdcard/fonts/h3.ttf),
|
||||
url(res:///ebook/fonts/../../mnt/extsd/fonts/h3.ttf),
|
||||
url(res:///ebook/fonts/h3.ttf),
|
||||
url(res:///ebook/fonts/DroidSansFallback.ttf),
|
||||
url(res:///fonts/ttf/h3.ttf),
|
||||
url(res:///../../media/mmcblk0p1/fonts/h3.ttf),
|
||||
url(file:///mnt/us/DK_System/system/fonts/h3.ttf), /*Duokan Old Path*/
|
||||
url(file:///mnt/us/DK_System/xKindle/res/userfonts/h3.ttf), /*Duokan 2012 Path*/
|
||||
url(res:///abook/fonts/h3.ttf),
|
||||
url(res:///system/fonts/h3.ttf),
|
||||
url(res:///system/media/sdcard/fonts/h3.ttf),
|
||||
url(res:///media/fonts/h3.ttf),
|
||||
url(res:///sdcard/fonts/h3.ttf),
|
||||
url(res:///system/fonts/DroidSansFallback.ttf),
|
||||
url(res:///mnt/MOVIFAT/font/h3.ttf),
|
||||
url(res:///media/flash/fonts/h3.ttf),
|
||||
url(res:///media/sd/fonts/h3.ttf),
|
||||
url(res:///opt/onyx/arm/lib/fonts/AdobeHeitiStd-Regular.otf),
|
||||
url(res:///../../fonts/h3.ttf),
|
||||
url(res:///../fonts/h3.ttf),
|
||||
url(../../../../../h3.ttf), /*EpubReaderI*/
|
||||
url(res:///mnt/sdcard/fonts/h3.ttf), /*Nook for Android: fonts in TF Card*/
|
||||
url(res:///fonts/h3.ttf), /*ADE1,8, 2.0 Program Path*/
|
||||
url(res:///../../../../Windows/fonts/h3.ttf); /*ADE1,8, 2.0 Windows Path*/
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family:"luohua";
|
||||
src:local("汉仪落花体"),
|
||||
url("../Fonts/hylh.ttf");
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN">
|
||||
<head>
|
||||
<title>Intro</title>
|
||||
<link href="../Styles/fonts.css" type="text/css" rel="stylesheet" />
|
||||
<link href="../Styles/main.css" type="text/css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="head" style="margin-bottom:2em;">内容简介</h1>{intro}</body>
|
||||
</html>
|
||||
|
After Width: | Height: | Size: 92 KiB |
@@ -0,0 +1,551 @@
|
||||
@charset "utf-8";
|
||||
@import url("../Styles/fonts.css");
|
||||
body {
|
||||
padding: 0%;
|
||||
margin-top: 0%;
|
||||
margin-bottom: 0%;
|
||||
margin-left: 0.5%;
|
||||
margin-right: 0.5%;
|
||||
line-height: 130%;
|
||||
text-align: justify;
|
||||
font-family: "DK-SONGTI","st","宋体","zw",sans-serif;
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
text-indent: 2em;
|
||||
line-height: 130%;
|
||||
margin-right: 0.5%;
|
||||
margin-left: 0.5%;
|
||||
font-family: "DK-SONGTI","st","宋体","zw",sans-serif;
|
||||
}
|
||||
p.kaiti {
|
||||
font-family: "DK-KAITI","kt","楷体","zw",serif;
|
||||
}
|
||||
|
||||
p.fangsong {
|
||||
font-family: "DK-FANGSONG","fs","仿宋","zw",serif;
|
||||
}
|
||||
|
||||
span.xinli {
|
||||
font-family: "DK-KAITI","kt","楷体","zw",serif;
|
||||
color: #4e753f;
|
||||
}
|
||||
/** 英文斜体字 **/
|
||||
span.english{
|
||||
font-style: italic;
|
||||
}
|
||||
div {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
line-height: 120%;
|
||||
text-align: justify;
|
||||
font-family: "zw";
|
||||
}
|
||||
div.foot {
|
||||
text-indent: 2em;
|
||||
margin: 30% 5% 0 5%;
|
||||
padding: 8px 0;
|
||||
}
|
||||
p.foot {
|
||||
font-family: "DK-KAITI","kt","楷体","zw",serif;
|
||||
}
|
||||
|
||||
/*扉页*/
|
||||
.booksubtitle {
|
||||
padding: 10px 0 0px 0;
|
||||
text-indent: 0em;
|
||||
font-size: 75%;
|
||||
font-family: "ht";
|
||||
}
|
||||
|
||||
.booktitle {
|
||||
padding: 9% 0 0 0;
|
||||
font-size: 1.3em;
|
||||
font-family: "方正小标宋_GBK","DK-XIAOBIAOSONG";
|
||||
font-weight: normal;
|
||||
text-indent: 0em;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.booktitle0 {
|
||||
font-size: 1.2em;
|
||||
font-family: "fs";
|
||||
text-indent: 0em;
|
||||
text-align: center;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.booktitle1 {
|
||||
padding: 0 0 0 0;
|
||||
font-size: 0.85em;
|
||||
font-family: "fs";
|
||||
text-indent: 0em;
|
||||
text-align: center;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.bookauthor {
|
||||
font-family: "DK-FANGSONG",仿宋,"fs","fangsong",sans-serif;
|
||||
padding: 5% 5px 0px 5px;
|
||||
text-indent: 0em;
|
||||
text-align: center;
|
||||
color: #000;
|
||||
font-size: 90%;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.booktranslator {
|
||||
padding: 1% 5px 0px 5px;
|
||||
text-indent: 0em;
|
||||
text-align: center;
|
||||
font-size: 85%;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.bookpub {
|
||||
font-family: "DK-KAITI","kt","楷体","楷体_gb2312";
|
||||
padding: 30% 5px 5px 5px;
|
||||
text-indent: 0em;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/*标题页*/
|
||||
body.head {
|
||||
background-repeat:no-repeat no-repeat;
|
||||
background-size:160px 229px;
|
||||
background-position:bottom right;
|
||||
background-attachment:fixed;
|
||||
}
|
||||
|
||||
body.xhead {
|
||||
background-color: #FDF5E6;
|
||||
}
|
||||
|
||||
h1.head {
|
||||
font-family: "DK-HEITI",黑体,sans-serif;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
color: #311a02;
|
||||
text-indent: 0em;
|
||||
font-weight: normal;
|
||||
duokan-text-indent: 0em;
|
||||
padding: auto;
|
||||
text-align: center;
|
||||
margin-top: -8em;
|
||||
}
|
||||
|
||||
div.head {
|
||||
border: solid 2px #ffffff;
|
||||
padding: 2px;
|
||||
margin: 2em auto 0.7em auto;
|
||||
text-align: center;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
h1.head b {
|
||||
font-family: "方正小标宋_GBK","DK-XIAOBIAOSONG";
|
||||
font-weight: bold;
|
||||
font-size: 1.2em;
|
||||
text-align: center;
|
||||
text-indent: 0em;
|
||||
duokan-text-indent: 0em;
|
||||
color: #311a02;
|
||||
margin: 0.5em auto;
|
||||
line-height: 140%;
|
||||
}
|
||||
|
||||
div.back {
|
||||
text-align: center;
|
||||
text-indent: 0em;
|
||||
duokan-text-indent: 0em;
|
||||
margin: 4em auto;
|
||||
}
|
||||
|
||||
img.back {
|
||||
width: 70%;
|
||||
}
|
||||
img.back2 {
|
||||
width: 40%;
|
||||
margin: 2em 0 0 0;
|
||||
}
|
||||
/*正文*/
|
||||
/**楷体引文**/
|
||||
.titou {
|
||||
font-family: "DK-FANGSONG",仿宋,"fs","fangsong",sans-serif;
|
||||
}
|
||||
.yinwen {
|
||||
font-family: "DK-KAITI","kt","楷体","zw",serif;
|
||||
margin-left: 2em;
|
||||
text-indent: 0em;
|
||||
}
|
||||
.nicename {
|
||||
font-family: "DK-HEITI",黑体,sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
body.head3 {
|
||||
background-color: #a7bdcc;
|
||||
color: #354f66;
|
||||
}
|
||||
|
||||
body.head4 {
|
||||
background-color: #bfd19b;
|
||||
color: #4e753f;
|
||||
}
|
||||
|
||||
h2.head {
|
||||
font-family: "小标宋";
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
margin: -3em 2em 2em 0;
|
||||
color: #3f83e8;
|
||||
line-height: 140%;
|
||||
}
|
||||
|
||||
h2.head span {
|
||||
font-family: "仿宋";
|
||||
font-size: 0.7em;
|
||||
background-color: #3f83e8;
|
||||
border-radius: 9px;
|
||||
padding: 4px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
div.logo {
|
||||
margin: -2em 0% 0 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
img.logo {
|
||||
width: 40%;
|
||||
}
|
||||
.imgl {
|
||||
/*图片居右*/
|
||||
margin: -8.8em 1em 4em 0em;
|
||||
width: 80%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
h1.head {
|
||||
line-height:130%;
|
||||
font-size:1.4em;
|
||||
text-align: center;
|
||||
color: #BA2213;
|
||||
font-weight: bold;
|
||||
margin-top: 2em;
|
||||
margin-bottom: 1em;
|
||||
font-family: "方正小标宋_GBK","DK-XIAOBIAOSONG";
|
||||
|
||||
}
|
||||
h3 {
|
||||
font-family: "DK-HEITI",黑体,sans-serif;
|
||||
font-size: 1.1em;
|
||||
margin: 1em 0;
|
||||
border-left: 1.2em solid #00a1e9;
|
||||
line-height: 120%;
|
||||
padding-left: 3px;
|
||||
color: #00a1e9;
|
||||
}
|
||||
h4 {
|
||||
font-family: "DK-HEITI",黑体,sans-serif;
|
||||
font-size: 1.1em;
|
||||
text-align: center;
|
||||
margin: 1em 0;
|
||||
line-height: 120%;
|
||||
color: #000;
|
||||
}
|
||||
h1.post {
|
||||
font-family: "方正小标宋_GBK","DK-XIAOBIAOSONG";
|
||||
text-align: center;
|
||||
font-size: 1.3em;
|
||||
color: #026fca;
|
||||
margin: 3em auto 2em auto;
|
||||
}
|
||||
.banquan {
|
||||
font-family: "DK-FANGSONG",仿宋,"fs","fangsong",sans-serif;
|
||||
text-align: left;
|
||||
color: #000;
|
||||
font-size:1.1em;
|
||||
margin-bottom:1em;
|
||||
text-indent: 1em;
|
||||
duokan-text-indent: 1em;
|
||||
}
|
||||
p.post {
|
||||
font-family: "DK-FANGSONG",仿宋,"fs","fangsong",sans-serif;
|
||||
}
|
||||
p.zy {
|
||||
font-family: "DK-FANGSONG",仿宋,"fs","fangsong",sans-serif;
|
||||
margin: 1em 0 0 1em;
|
||||
padding: 5px 0px 5px 10px;
|
||||
text-indent: 0em;
|
||||
border-left: 5px solid #a9b5c1;
|
||||
}
|
||||
.sign {
|
||||
font-family: "DK-KAITI","kt","楷体","zw",serif;
|
||||
margin: 1em 2px 0 auto;
|
||||
text-align: right;
|
||||
font-size: 0.8em;
|
||||
text-indent: 0em;
|
||||
duokan-text-indent: 0em;
|
||||
}
|
||||
|
||||
.mark {
|
||||
font-family: "DK-HEITI",黑体,sans-serif;
|
||||
font-size: 0.9em;
|
||||
color: #fff;
|
||||
text-indent: 0em;
|
||||
duokan-text-indent: 0em;
|
||||
background-color: maroon;
|
||||
text-align: center;
|
||||
padding: 0px;
|
||||
margin: 2em 30%;
|
||||
}
|
||||
|
||||
/*出版社*/
|
||||
.chubanshe img{
|
||||
width:106px;
|
||||
height:28px;
|
||||
}
|
||||
.chubanshe {
|
||||
margin-top:20px;
|
||||
}
|
||||
.cr {
|
||||
font-size:0.9em;
|
||||
}
|
||||
|
||||
/*多看画廊*/
|
||||
div.duokan-image-single {
|
||||
text-align: center;
|
||||
margin: 0.5em auto; /*插图盒子上下外边距为0.5em,左右设置auto是为了水平居中这个盒子*/
|
||||
}
|
||||
img.picture-80 {
|
||||
margin: 0; /*清除img元素的外边距*/
|
||||
width: 80%; /*预览窗口的宽度*/
|
||||
box-shadow: 3px 3px 10px #bfbfbf; /*给图片添加阴影效果*/
|
||||
}
|
||||
p.duokan-image-maintitle {
|
||||
margin: 1em 0 0; /*图片说明的段间距*/
|
||||
font-family: "楷体"; /*图片说明使用的字体*/
|
||||
font-size: 0.9em; /*字体大小*/
|
||||
text-indent: 0; /*首行缩进为零,当你使用单标签p来指定首行缩进为2em时,记得在需要居中的文本中清除缩进,因为样式是叠加的*/
|
||||
text-align: center; /*图片说明水平居中*/
|
||||
color: #a52a2a; /*字体颜色*/
|
||||
line-height: 1.25em; /*行高,防止有很长的图片说明*/
|
||||
}
|
||||
|
||||
|
||||
/*制作说明页*/
|
||||
body.description {
|
||||
background-image: url(../Images/001.png);
|
||||
background-position: bottom center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
padding: 25% 10% 0;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
div.description-body {
|
||||
width: 55%;
|
||||
padding: 2em 1.3em;
|
||||
border-radius: 0.5em;
|
||||
font-size: 0.9em;
|
||||
border-style: solid;
|
||||
border-color: #393939;
|
||||
border-width: 0.3em;
|
||||
border-radius: 5em;
|
||||
background-color: #5a5a5a;
|
||||
box-shadow: 2px 2px 3px #828281;
|
||||
}
|
||||
|
||||
h1.description-title {
|
||||
text-align: center;
|
||||
font-family: "黑体";
|
||||
font-size: 1.2em;
|
||||
margin: 0 0 1em 0;
|
||||
color: #FF9;
|
||||
text-shadow: 1px 1px 0 black;
|
||||
}
|
||||
|
||||
p.description-text {
|
||||
color: #f9ddd2;
|
||||
font-family: "准圆";
|
||||
margin: 0;
|
||||
text-align: justify;
|
||||
text-indent: 0;
|
||||
duokan-text-indent: 0;
|
||||
}
|
||||
|
||||
hr.description-hr {
|
||||
margin: 0.5em -1em;
|
||||
border-style: dotted;
|
||||
border-color: #9C9;
|
||||
border-width: 0.05em 0 0 0;
|
||||
}
|
||||
|
||||
p.tips {
|
||||
text-align: justify;
|
||||
text-indent: 0;
|
||||
duokan-text-indent: 0;
|
||||
font-family: "楷体";
|
||||
font-size: 0.7em;
|
||||
color: #FFC;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/*版本说明页*/
|
||||
.ver {
|
||||
font-family: "DK-CODE","DK-XIHEITI",细黑体,"xihei",sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 100%;
|
||||
color: #000;
|
||||
margin: 1em 0 1em 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.vertitle {
|
||||
font-family: "DK-FANGSONG",仿宋,"fs","fangsong",sans-serif;
|
||||
font-size: 100%;
|
||||
text-indent: 0em;
|
||||
text-align: left;
|
||||
duokan-text-indent: 0em;
|
||||
}
|
||||
|
||||
.vertxt {
|
||||
font-family: "DK-FANGSONG",仿宋,"fs","fangsong",sans-serif;
|
||||
line-height: 100%;
|
||||
font-size: 85%;
|
||||
text-indent: 0em;
|
||||
text-align: left;
|
||||
duokan-text-indent: 0em;
|
||||
}
|
||||
.verchar {
|
||||
font-family: "DK-KAITI","kt","楷体","楷体_gb2312";
|
||||
text-align: left;
|
||||
text-indent: 1em;
|
||||
duokan-text-indent: 1em;
|
||||
margin-bottom: 1em;
|
||||
margin-top: 1em;
|
||||
}
|
||||
.vernote {
|
||||
font-family: "DK-FANGSONG",仿宋,"fs","fangsong",sans-serif;
|
||||
font-size: 75%;
|
||||
color: #686d70;
|
||||
text-indent: 0em;
|
||||
text-align: left;
|
||||
duokan-text-indent: 0em;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.line {
|
||||
border: dotted #A2906A;
|
||||
border-width: 1px 0 0 0;
|
||||
}
|
||||
|
||||
.entry {
|
||||
margin-left: 18px;
|
||||
font-size: 83%;
|
||||
color: #8fe0a3;
|
||||
text-indent: 0em;
|
||||
duokan-text-indent: 0em;
|
||||
}
|
||||
/*版权信息*/
|
||||
.vol {
|
||||
text-indent: 0em;
|
||||
text-align: center;
|
||||
padding: 0.8em;
|
||||
margin: 0 auto 3px auto;
|
||||
color: #000;
|
||||
font-family: "方正小标宋_GBK","DK-XIAOBIAOSONG";
|
||||
font-size: 130%;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.cp {
|
||||
font-family: "DK-CODE","DK-XIHEITI",细黑体,"xihei",sans-serif;
|
||||
color: #412938;
|
||||
font-size: 70%;
|
||||
text-align: left;
|
||||
text-indent: 0em;
|
||||
duokan-text-indent: 0em;
|
||||
}
|
||||
|
||||
.xchar {
|
||||
font-family: "DK-KAITI","kt","楷体","楷体_gb2312";
|
||||
text-indent: 0em;
|
||||
duokan-text-indent: 0em;
|
||||
}
|
||||
/*多看弹注*/
|
||||
sup img {
|
||||
line-height: 100%;
|
||||
width: auto;
|
||||
height: 1.0em;
|
||||
margin: 0em;
|
||||
padding: 0em;
|
||||
vertical-align: text-top;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin-bottom:0;
|
||||
padding:0 auto;
|
||||
list-style-type: decimal;
|
||||
}
|
||||
.hr {
|
||||
width:50%;
|
||||
margin:2em 0 0 0.5em;
|
||||
padding:0;
|
||||
height:2px;
|
||||
background-color: #F3221D;
|
||||
}
|
||||
|
||||
.duokan-footnote-content{
|
||||
padding:0 auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.duokan-footnote-item {
|
||||
font-family:"DK-XIHEITI",细黑体,"xihei",sans-serif;
|
||||
text-align: left;
|
||||
font-size: 80%;
|
||||
line-height: 100%;
|
||||
clear: both;
|
||||
color:#000;
|
||||
list-style-type:decimal;
|
||||
}
|
||||
|
||||
li.duokan-footnote-item a {
|
||||
font-family:"DK-HEITI";
|
||||
text-align: left;
|
||||
}
|
||||
a{
|
||||
text-decoration: none;
|
||||
color: #222;
|
||||
}
|
||||
|
||||
a:hover {background: #81caf9}
|
||||
a:active {background: yellow}
|
||||
.duokan-image-maintitle {
|
||||
font-family:"DK-HEITI",黑体,"hei",sans-serif;
|
||||
text-align: center;
|
||||
text-indent: 0em;
|
||||
duokan-text-indent: 0em;
|
||||
font-size:90%;
|
||||
color: #1F4150;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.duokan-image-subtitle {
|
||||
font-family:"DK-XIHEITI",细黑体,"xihei",sans-serif;
|
||||
text-align: center;
|
||||
text-indent: 0em;
|
||||
duokan-text-indent: 0em;
|
||||
font-size:70%;
|
||||
color: #3A3348;
|
||||
margin-top: 1em;
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
```java
|
||||
public enum MimeTypeEnum {
|
||||
|
||||
AAC("acc", "AAC音频", "audio/aac"),
|
||||
|
||||
ABW("abw", "AbiWord文件", "application/x-abiword"),
|
||||
|
||||
ARC("arc", "存档文件", "application/x-freearc"),
|
||||
|
||||
AVI("avi", "音频视频交错格式", "video/x-msvideo"),
|
||||
|
||||
AZW("azw", "亚马逊Kindle电子书格式", "application/vnd.amazon.ebook"),
|
||||
|
||||
BIN("bin", "任何类型的二进制数据", "application/octet-stream"),
|
||||
|
||||
BMP("bmp", "Windows OS / 2位图图形", "image/bmp"),
|
||||
|
||||
BZ("bz", "BZip存档", "application/x-bzip"),
|
||||
|
||||
BZ2("bz2", "BZip2存档", "application/x-bzip2"),
|
||||
|
||||
CSH("csh", "C-Shell脚本", "application/x-csh"),
|
||||
|
||||
CSS("css", "级联样式表(CSS)", "text/css"),
|
||||
|
||||
CSV("csv", "逗号分隔值(CSV)", "text/csv"),
|
||||
|
||||
DOC("doc", "微软Word文件", "application/msword"),
|
||||
|
||||
DOCX("docx", "Microsoft Word(OpenXML)", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"),
|
||||
|
||||
EOT("eot", "MS Embedded OpenType字体", "application/vnd.ms-fontobject"),
|
||||
|
||||
EPUB("epub", "电子出版物(EPUB)", "application/epub+zip"),
|
||||
|
||||
GZ("gz", "GZip压缩档案", "application/gzip"),
|
||||
|
||||
GIF("gif", "图形交换格式(GIF)", "image/gif"),
|
||||
|
||||
HTM("htm", "超文本标记语言(HTML)", "text/html"),
|
||||
|
||||
HTML("html", "超文本标记语言(HTML)", "text/html"),
|
||||
|
||||
ICO("ico", "图标格式", "image/vnd.microsoft.icon"),
|
||||
|
||||
ICS("ics", "iCalendar格式", "text/calendar"),
|
||||
|
||||
JAR("jar", "Java存档", "application/java-archive"),
|
||||
|
||||
JPEG("jpeg", "JPEG图像", "image/jpeg"),
|
||||
|
||||
JPG("jpg", "JPEG图像", "image/jpeg"),
|
||||
|
||||
JS("js", "JavaScript", "text/javascript"),
|
||||
|
||||
JSON("json", "JSON格式", "application/json"),
|
||||
|
||||
JSONLD("jsonld", "JSON-LD格式", "application/ld+json"),
|
||||
|
||||
MID("mid", "乐器数字接口(MIDI)", "audio/midi"),
|
||||
|
||||
MIDI("midi", "乐器数字接口(MIDI)", "audio/midi"),
|
||||
|
||||
MJS("mjs", "JavaScript模块", "text/javascript"),
|
||||
|
||||
MP3("mp3", "MP3音频", "audio/mpeg"),
|
||||
|
||||
MPEG("mpeg", "MPEG视频", "video/mpeg"),
|
||||
|
||||
MPKG("mpkg", "苹果安装程序包", "application/vnd.apple.installer+xml"),
|
||||
|
||||
ODP("odp", "OpenDocument演示文稿文档", "application/vnd.oasis.opendocument.presentation"),
|
||||
|
||||
ODS("ods", "OpenDocument电子表格文档", "application/vnd.oasis.opendocument.spreadsheet"),
|
||||
|
||||
ODT("odt", "OpenDocument文字文件", "application/vnd.oasis.opendocument.text"),
|
||||
|
||||
OGA("oga", "OGG音讯", "audio/ogg"),
|
||||
|
||||
OGV("ogv", "OGG视频", "video/ogg"),
|
||||
|
||||
OGX("ogx", "OGG", "application/ogg"),
|
||||
|
||||
OPUS("opus", "OPUS音频", "audio/opus"),
|
||||
|
||||
OTF("otf", "otf字体", "font/otf"),
|
||||
|
||||
PNG("png", "便携式网络图形", "image/png"),
|
||||
|
||||
PDF("pdf", "Adobe 可移植文档格式(PDF)", "application/pdf"),
|
||||
|
||||
PHP("php", "php", "application/x-httpd-php"),
|
||||
|
||||
PPT("ppt", "Microsoft PowerPoint", "application/vnd.ms-powerpoint"),
|
||||
|
||||
PPTX("pptx", "Microsoft PowerPoint(OpenXML)", "application/vnd.openxmlformats-officedocument.presentationml.presentation"),
|
||||
|
||||
RAR("rar", "RAR档案", "application/vnd.rar"),
|
||||
|
||||
RTF("rtf", "富文本格式", "application/rtf"),
|
||||
|
||||
SH("sh", "Bourne Shell脚本", "application/x-sh"),
|
||||
|
||||
SVG("svg", "可缩放矢量图形(SVG)", "image/svg+xml"),
|
||||
|
||||
SWF("swf", "小型Web格式(SWF)或Adobe Flash文档", "application/x-shockwave-flash"),
|
||||
|
||||
TAR("tar", "磁带存档(TAR)", "application/x-tar"),
|
||||
|
||||
TIF("tif", "标记图像文件格式(TIFF)", "image/tiff"),
|
||||
|
||||
TIFF("tiff", "标记图像文件格式(TIFF)", "image/tiff"),
|
||||
|
||||
TS("ts", "MPEG传输流", "video/mp2t"),
|
||||
|
||||
TTF("ttf", "ttf字体", "font/ttf"),
|
||||
|
||||
TXT("txt", "文本(通常为ASCII或ISO 8859- n", "text/plain"),
|
||||
|
||||
VSD("vsd", "微软Visio", "application/vnd.visio"),
|
||||
|
||||
WAV("wav", "波形音频格式", "audio/wav"),
|
||||
|
||||
WEBA("weba", "WEBM音频", "audio/webm"),
|
||||
|
||||
WEBM("webm", "WEBM视频", "video/webm"),
|
||||
|
||||
WEBP("webp", "WEBP图像", "image/webp"),
|
||||
|
||||
WOFF("woff", "Web开放字体格式(WOFF)", "font/woff"),
|
||||
|
||||
WOFF2("woff2", "Web开放字体格式(WOFF)", "font/woff2"),
|
||||
|
||||
XHTML("xhtml", "XHTML", "application/xhtml+xml"),
|
||||
|
||||
XLS("xls", "微软Excel", "application/vnd.ms-excel"),
|
||||
|
||||
XLSX("xlsx", "微软Excel(OpenXML)", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),
|
||||
|
||||
XML("xml", "XML", "application/xml"),
|
||||
|
||||
XUL("xul", "XUL", "application/vnd.mozilla.xul+xml"),
|
||||
|
||||
ZIP("zip", "ZIP", "application/zip"),
|
||||
|
||||
MIME_3GP("3gp", "3GPP audio/video container", "video/3gpp"),
|
||||
|
||||
MIME_3GP_WITHOUT_VIDEO("3gp", "3GPP audio/video container doesn't contain video", "audio/3gpp2"),
|
||||
|
||||
MIME_3G2("3g2", "3GPP2 audio/video container", "video/3gpp2"),
|
||||
|
||||
MIME_3G2_WITHOUT_VIDEO("3g2", "3GPP2 audio/video container doesn't contain video", "audio/3gpp2"),
|
||||
|
||||
MIME_7Z("7z", "7-zip存档", "application/x-7z-compressed")
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,25 @@
|
||||
# 书源管理界面帮助
|
||||
|
||||
* 书源右上角标志
|
||||
* 绿点表示书源有发现,且启用了发现
|
||||
* 红点表示书源有发现,但是未启用
|
||||
* 没有标志表示此书源没有发现
|
||||
* 右上角有分组菜单,可以按分组筛选书源
|
||||
* 右上角更多菜单里包含
|
||||
* 新建书源
|
||||
* 本地导入
|
||||
* 网络导入
|
||||
* 二维码导入
|
||||
* 分享选中源
|
||||
* 选择源的更多操作在右下角的菜单里面,操作都是针对选择的书源
|
||||
* 启用所选
|
||||
* 禁用所选
|
||||
* 添加分组
|
||||
* 移除分组
|
||||
* 启用发现
|
||||
* 禁用发现
|
||||
* 置顶所选
|
||||
* 置底所选
|
||||
* 导出所选
|
||||
* 校验所选
|
||||
* 校验失败的书源分组会加上"失效",选择"失效"分组即可批量操作
|
||||
@@ -0,0 +1,21 @@
|
||||
# 订阅源管理界面帮助
|
||||
|
||||
* 订阅源可以通过规则订阅一些网络内容
|
||||
* 书源右上角标志
|
||||
* 绿点表示书源有发现,且启用了发现
|
||||
* 红点表示书源有发现,但是未启用
|
||||
* 没有标志表示此书源没有发现
|
||||
* 右上角有分组菜单,可以按分组筛选书源
|
||||
* 右上角更多菜单里包含
|
||||
* 新建订阅源
|
||||
* 本地导入
|
||||
* 网络导入
|
||||
* 二维码导入
|
||||
* 分享选中源
|
||||
* 选择源的更多操作在右下角的菜单里面,操作都是针对选择的书源
|
||||
* 启用所选
|
||||
* 禁用所选
|
||||
* 置顶所选
|
||||
* 置底所选
|
||||
* 导出所选
|
||||
* 校验失败的书源分组会加上"失效",选择"失效"分组即可批量操作
|
||||
@@ -0,0 +1,190 @@
|
||||
# 帮助文档
|
||||
|
||||
## **新人必读**
|
||||
|
||||
【温馨提醒】 *本帮助可以在我的-右上角帮助按钮再次打开,更新前一定要做好备份,以免数据丢失!*
|
||||
|
||||
1. 为什么第一次安装好之后什么东西都没有?
|
||||
* 阅读只是一个转码工具,不提供内容,第一次安装app,需要自己手动导入书源,可以从公众号 **[开源阅读]**、QQ群、酷安评论里获取由书友制作分享的书源。
|
||||
|
||||
2. 正文出现缺字漏字、内容缺失、排版错乱等情况,如何处理?
|
||||
* 有可能是净化规则出现问题,先关闭替换净化并刷新,再观察是否正常。如果正常说明净化规则存在误杀,如果关闭后仍然出现相关问题,请点击源链接查看原文与正文是否相同,如果不同,再进行反馈。
|
||||
|
||||
3. 漫画源看书显示乱码,如何解决?
|
||||
* 异次元和阅读是两个不同的软件,**两个软件的源并不通用**,请导入阅读的支持的漫画源!
|
||||
|
||||
## 书源相关
|
||||
|
||||
1. 如何导入本地书源文件?
|
||||
* 下载群文件里的书源文件(书源格式后缀有txt、json,其中json文件某些情况下无法导入,需要修改后缀为txt格式才可导入);
|
||||
* 打开阅读软件;
|
||||
* 我的 - 点击“书源管理”;
|
||||
* 点击右上角选择“本地导入”;
|
||||
* 左下角选择书源文件所在的路径;
|
||||
* 点击书源文件导入;
|
||||
* 导入后返回书源管理界面;
|
||||
* 新版qq下载路径:Android/data/com.tencent.mobileqq/Tencent/QQfile_recv/
|
||||
|
||||

|
||||
|
||||
2. 如何新建大佬发的单独书源?
|
||||
* 复制书源代码;
|
||||
* 打开阅读软件;
|
||||
* 我的 - 点击“书源管理”;
|
||||
* 右上角选择“新建书源”;
|
||||
* 进入新建书源后点击右上角“粘贴源”;
|
||||
* 粘贴书源完成后点击上方保存;
|
||||
* 本次新建单独书源操作完成。
|
||||
* 注:如果书源有错误或者复制不全会显示格式错误,请重新复制。
|
||||
|
||||
3. 为什么导入2.0书源后无法阅读?
|
||||
* 部分2.0书源并不适用于3.0版本的阅读,建议导入后进行筛选。
|
||||
|
||||
4. 阅读2.0数据如何导入阅读3.0?
|
||||
* 先对阅读2.0的数据进行备份,然后进入阅读3.0,点击“我的”,选择“备份与恢复”,再点击“导入旧版本数据”。
|
||||
|
||||
5. 如何给朋友分享我的书源?
|
||||
* 打开阅读软件;
|
||||
* 点击备份;
|
||||
* 打开手机自带的文件管理;
|
||||
* 手机自带内存根目录找到YueDu3.0文件夹;
|
||||
* 找到myBookSource.json长按选择分享;
|
||||
* 选择微信分享或者QQ分享;
|
||||
* 选择你要分享的好友点击发送;
|
||||
* 好友接收后在手机自带内存根目录找到myBookSource.json文件(最新版QQ 安卓10及以下版本在Android/data/com.tencent.mobileqq/Tencent/QQfile_recv/,安卓11版本用户由于系统限制无法访问data目录,微信在Tencent/MicroMsg/Download);
|
||||
* 复制该文件到手机自带内存根目录找到YueDu3.0文件夹(如已有该文件请先删除该文件或者备份到其他地方再复制到文件夹);
|
||||
* 打开阅读软件点击恢复。
|
||||
* 注:备份路径如已修改过请在修改后的路径下查找书源文件。
|
||||
|
||||
6. 效验书源显示失效就说明书源不能用了吗?
|
||||
* 效验书源只是测试书源,可以做个参考,失效了不代表书源不能用了。
|
||||
|
||||
7. 发现和正版书源能不能使用?
|
||||
* 发现和正版书源只能用来找书,看排行榜,不能用来看书,如需看书请切换书源。
|
||||
|
||||
8. 为什么书源这么多,发现里却只有一点点?
|
||||
* 书源想要在发现界面里显示需要在书源里添加发现规则,并不是所有书源都有发现规则。
|
||||
|
||||
## 本地书籍相关
|
||||
1. 目前阅读支持哪些格式的本地书籍?
|
||||
* 目前支持TXT、EPUB格式
|
||||
|
||||
2. 如何导入本地书籍?
|
||||
* 在书架页面点击右上角,选择“添加本地”,授予相关权限后即可导入本地书籍。也可在文件管理器中使用 **阅读** 打开相关书籍。
|
||||
|
||||
3. 导入TXT文件提示“LoadTocError”或“List is empty”是怎么回事?
|
||||
* 请先去应用详情中确认是否授予了阅读“读写手机存储”的权限。
|
||||
* 自动识别目录失败,可能是相关目录规则未开启,请点击右上角的换源按钮手动更换目录规则。
|
||||
* 如果尝试所有规则均无法识别,请在github上提交issue并附件相关txt文件,也可以发送邮件至i@qnmlgb.trade(标题:legado本地文件章节无法识别,内容对其具体情况进行简要说明,附件上传相关txt文件)。
|
||||
|
||||
4. 如何下载书籍到本地?
|
||||
* 把在线书籍加入到书架后,在书架页面点击右上角,选择“离线缓存”即可。
|
||||
|
||||
5. 如何自定义导出的txt/epub文件名称?
|
||||
* 点击 **离线缓存** - **导出文件名**.
|
||||
* 使用方法:
|
||||
- 导出文件名支持js语法
|
||||
- 可用变量: name - 书名 author-作者
|
||||
- 示例:
|
||||
> {name+"作者:"+author}
|
||||
- 导出文件名:
|
||||
> Legado是最好的在线阅读软件 作者: kunfei.
|
||||
|
||||
**注意:** name、author等变量与字符串的拼接都需要在js环境中进行,即必须使用{ } 将变量与字符串包裹起来.
|
||||
|
||||
6. 为什么我打开本地的TXT文件,显示内容却是乱码?
|
||||
* 部分编码在阅读上会识别错误,建议先用文本编辑器转换为常用的UTF-8格式。
|
||||
|
||||
7. 阅读对部分把正文(如所有含引号的句子)识别成标题,如何解决?
|
||||
* 点击右上角更换目录规则即可。
|
||||
|
||||
## 书籍界面相关
|
||||
|
||||
1. 如何刷新书架?
|
||||
* 在书架界面下拉即可刷新。
|
||||
|
||||
2. 书架界面书籍右上角的红色或者灰色背景小数字代表什么?
|
||||
* 红色代表书籍有更新,灰色代表无更新,数字代表未读章节。
|
||||
|
||||
3. 如何查看书籍详情?
|
||||
* 长按书籍。
|
||||
|
||||
4. 如何对书架上的书进行删除、切换书架的操作?
|
||||
* 书籍详情页操作即可。
|
||||
|
||||
5. 如何禁止或允许某本书更新?
|
||||
* 书籍详情页,点击右上角 - “允许更新”。
|
||||
|
||||
6. 如何更换小说封面、名字、作者或简介?
|
||||
* 书籍详情页,点击右上角修改按钮。
|
||||
|
||||
7. 怎么使用自定义字体?
|
||||
* 阅读界面 - 字体-点击右上角选择字体文件路径。
|
||||
|
||||
8. 目前支持哪些格式的字体文件?
|
||||
* 目前支持ttf、otf格式。
|
||||
|
||||
9. 书籍经常“正在加载中”怎么办?
|
||||
* 在线书籍出现这个问题通常是由于源质量不好或不兼容引起的,可以换其它源多试试;本地书籍出现这个问题大概率是目录规则问题,手动切换规则可以解决。
|
||||
|
||||
10. 书籍内容只有标题,正文内容是路径怎么办?
|
||||
* 通常是缓存路径引起的,更换缓存路径即可。
|
||||
|
||||
11. 看书时如遇到“目录为空”、“加载失败”和长串英文等情况怎么办?
|
||||
* 在线书籍一般是书源问题,切换或更新书源即可。本地书籍请尝试手动更换目录规则。
|
||||
|
||||
12. 为什么每一章的最后一页,阅读的文字和横线背景总是对不齐?
|
||||
* 请在 设置-文字底部对齐 选项中关闭底部对齐,再调整排版。
|
||||
|
||||
13. 漫画源或图片章节只能看到第一页,如何解决?
|
||||
* 请先查看原网页是否正常,若正常,请在书籍阅读界面点击右上角的 **⁝** 按钮,在弹出的菜单中,选择 **翻页动画(本书)**,将翻页动画更改为 **滚动**。
|
||||
|
||||
14. 阅读图片章节、漫画或epub插图时,图片被缩放到一页中,以至无法看清,如何处理?
|
||||
* 临时处理方案:长按图片可以进行双指缩放。图片章节请先参考Q13中的方案将翻页动画更改为**滚动**
|
||||
* 3.0旧版可以点击书籍界面的章节标题进入 **编辑书源** 界面,在 正文-图片样式 中填入 *full*,保存更改,刷新当前章节即可。
|
||||
* 3.0新版可以直接在书籍阅读界面点击右上角的 **⁝** 按钮,选择 图片样式- *full*.
|
||||
|
||||
|
||||
## 替换净化相关
|
||||
1. 替换净化是什么?
|
||||
* 替换净化可以去除书籍内容里的广告、错别字、屏蔽词等。
|
||||
|
||||
2. 如何自己填写净化替换规则?
|
||||
* 第一行:替换规则名称 - 根据自己需求对替换净化规则进行命名;
|
||||
* 第二行:分组 - 净化规则的分组组别;
|
||||
* 第三行:替换规则 - 填写需要被替换的内容;
|
||||
* 第四行:替换为 - 填写想替换成的内容(如不填则默认表示删除第三行里填写的内容);
|
||||
* 第五行:替换范围,选填书名或者源名 - 填写此替换净化规则需要对哪本书籍或者哪个书源生效(如不填则对所有书籍和书源生效)。
|
||||
* 注:如常规去除方法去除不掉,则需要勾选“使用正则表达式”,同时第三行里的替换规则也需要按照正则表达式来填写(正则表达式填写方法可自行百度学习)。
|
||||
|
||||
|
||||
## 备份相关
|
||||
|
||||
1. 云备份在哪?
|
||||
* 我的 - 备份与恢复 - WebDav设置。
|
||||
|
||||
2. 如何操作进行云备份?
|
||||
* 侧栏设置,WebDav设置;
|
||||
* 正确填写WebDAV 服务器地址、WebDAV 账号、WebDAV 密码;(要获得这三项的信息,需要注册一个坚果云账号,如果直接在手机上注册,坚果云会让你下载app,过程比较麻烦,为了一步到位,最好是在电脑上打开这个注册链接:https://www.jianguoyun.com/d/signup ;注册后,进入坚果云;点击右上角账户名处选择 “账户信息”,然后选择“安全选项”;在“安全选项” 中找到“第三方应用管理”,并选择“添加应用”,输入名称如“阅读”后,会生成密码,选择完成;其中 https://dav.jianguoyun.com/dav/ 就是填入“WebDAV 服务器地址”的内容,“使用情况”后面的邮箱地址就是你的“WebDAV 账号”,点击显示密码后得到的密码就是你的“WebDAV 密码”。)
|
||||
* 无需操作,APP默认每天自动云备份一次。
|
||||
|
||||
3. 关于云备份的相关说明
|
||||
* 在正确设置好云备份的情况下,APP默认每天自动云备份一次,当日多次手动云备份会对当日的旧云备份文件进行覆盖,并不会覆盖之前及之后不同日期的备份文件,每天所自动云备份的文件会按照日期进行命名。
|
||||
|
||||
4. 本地备份和云备份都能备份哪些东西?
|
||||
* 书架、看书进度、搜索记录、书源、替换、APP设置等都会备份,基本涵盖所有内容。
|
||||
|
||||
5. 出现某些未知bug怎么办?
|
||||
* 清除软件数据试试看,不行再进行反馈。
|
||||
|
||||
|
||||
## 其他
|
||||
1. 如何听书?
|
||||
* 可以使用手机自带的朗读引擎,也可使用第三方如谷歌、小米等朗读引擎。
|
||||
* 【具体操作:安装-系统设置-其他高级设置-辅助功能-TTS输出-选择安装的朗读引擎(不同品牌手机的操作方法及步骤也不同,视情况而定)。】
|
||||
|
||||
2. 如何设置屏幕方向、屏幕显示时长、显示/隐藏状态栏、显示/隐藏导航栏、音量键翻页、长按选择文本、点击总是翻下一页、自定义翻页案件?
|
||||
* 阅读界面,设置(可上划,下面还有其他设置)。
|
||||
|
||||
3. 搜索的时候感觉手机卡顿,如何解决?
|
||||
* 我的 - 其他设置 - “更新和搜索线程数”调低。
|
||||
@@ -0,0 +1,22 @@
|
||||
# 书源调试
|
||||
|
||||
* 调试搜索>>输入关键字,如:
|
||||
```
|
||||
系统
|
||||
```
|
||||
* 调试发现>>输入发现URL,如:
|
||||
```
|
||||
月票榜::https://www.qidian.com/rank/yuepiao?page={{page}}
|
||||
```
|
||||
* 调试详情页>>输入详情页URL,如:
|
||||
```
|
||||
https://m.qidian.com/book/1015609210
|
||||
```
|
||||
* 调试目录页>>输入目录页URL,如:
|
||||
```
|
||||
++https://www.zhaishuyuan.com/read/30394
|
||||
```
|
||||
* 调试正文页>>输入正文页URL,如:
|
||||
```
|
||||
--https://www.zhaishuyuan.com/chapter/30394/20940996
|
||||
```
|
||||
@@ -0,0 +1,15 @@
|
||||
# 在线朗读规则说明
|
||||
|
||||
* 在线朗读规则为url规则,同书源url
|
||||
* js参数
|
||||
```
|
||||
speakText //朗读文本
|
||||
speakSpeed //朗读速度,0-45
|
||||
```
|
||||
* 例:
|
||||
```
|
||||
http://tts.baidu.com/text2audio,{
|
||||
"method": "POST",
|
||||
"body": "tex={{java.encodeURI(java.encodeURI(speakText))}}&spd={{String((speakSpeed + 5) / 10 + 4)}}&per=5003&cuid=baidu_speech_demo&idx=1&cod=2&lan=zh&ctp=1&pdt=1&vol=5&pit=5&_res_tag_=audio"
|
||||
}
|
||||
```
|
||||
@@ -0,0 +1,58 @@
|
||||
# 阅读界面帮助文档
|
||||
|
||||
## 阅读界面主菜单
|
||||
* 顶部操作
|
||||
* 章节名称:点击可编辑书源
|
||||
* 章节url:点击可打开浏览器浏览
|
||||
* 菜单:**不同类型的书籍显示的菜单不同**。详情请查看菜单文字,长按菜单图标可显示文字
|
||||
* 中间左侧-亮度调节
|
||||
* 亮度调节的顶端有跟随系统亮度的开关,打开后亮度跟随系统,关闭后才可以调节亮度条
|
||||
* 底部操作
|
||||
* 4个圆形按钮依次为 全文搜索✧自动翻页✧替换净化✧切换夜间模式
|
||||
* 上一章✧下一章中间的进度条为页数进度,要快速跳转章节点击目录按钮进入目录快速跳转
|
||||
* 目录->目录和书签界面
|
||||
* 朗读->单击开始朗读,长按进入朗读设置界面
|
||||
* 界面->所有排版设置都在里面
|
||||
* 设置->其它一些设置,找不到的设置去这里看看,可滚动
|
||||
|
||||
## 朗读设置界面
|
||||
* 后台->进入后台朗读,可以做一些其它事
|
||||
* 设置->朗读引擎设置,可以切换本地TTS和在线朗读,在线朗读可自定义
|
||||
|
||||
## 排版设置界面
|
||||
* 白天模式和夜间模式背景不同布局相同
|
||||
* 共用布局->启用共用布局时所有背景使用同一布局,关闭共用布局则每个背景单独布局
|
||||
* 长按背景可进入文字颜色和背景设置界面
|
||||
|
||||
## 其它设置界面
|
||||
* 屏幕方向
|
||||
* 屏幕超时
|
||||
* 隐藏状态栏
|
||||
* 扩展到刘海
|
||||
* 隐藏导航栏
|
||||
* 文字两端对齐
|
||||
* 文字底部对齐
|
||||
* 音量键翻页
|
||||
* 点击翻页
|
||||
* 朗读时音量键翻页
|
||||
* 自动换源->书源被删除时自动切换到其它书源
|
||||
* 长按选择文本
|
||||
* 显示亮度调节控件
|
||||
* 点击区域设置
|
||||
* 自定义翻页按键
|
||||
|
||||
## Txt目录正则说明
|
||||
|
||||
### 菜单区
|
||||
|
||||
- 新增目录规则,当Legado自带的规则不能够满足需求时,用户可根据自己的情况自定义目录规则
|
||||
- 导入默认规则 在旧版本中,Legado自带的规则不会随着软件的更新而更新。用户需要使用最新规则或对自带规则修改后需要重置时,可点击 导入默认规则。**注意:导入默认规则不会重置用户自定义的规则,但如果您对自带的规则进行了修改,则修改的规则会被重置为默认规则。**
|
||||
- 导入在线规则 为了方便异步调试以及用户导入他人的目录规则,Legado增加目录规则的网络导入功能。点击 网络导入 的输入框,可以通过内置的链接导入在线规则。(在线规则优先比内置的规则更加激进,但适配了更多类型的标题格式,用户需根据自己的情况选择是否导入)
|
||||
|
||||
### 操作区
|
||||
![Functions][example]
|
||||
- 按钮① 当前书籍规则 如果Legado的自动识别的目录情况不太理想,用户可以手动点击各个规则前面的按钮,临时对本书启用该规则,该按钮仅**针对当前书籍生效**。
|
||||
- 按钮组② 左边的开关被点亮时,表示该规则针对**所有TXT书籍生效**。开启后会对所有的TXT格式的书籍启用当前规则扫描符合条件的标题格式;中间的按钮表示编辑当前规则,当识别出的目录与你所期望的不一致时,可以修改当前规则以适应你所导入的书籍;右边的按钮表示删除当前规则,当用户不需要当前规则时可直接删除。(默认的规则删除后可点击 导入默认规则 按钮恢复)
|
||||
- 按钮组③ 在当前界面进行操作后,需要点击确认按钮使得选择生效。
|
||||
|
||||
[example]:data:image/jpg;base64,/9j/4RZnRXhpZgAATU0AKgAAAAgADAEAAAMAAAABBDgAAAEBAAMAAAABCWAAAAECAAMAAAADAAAAngEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEVAAMAAAABAAMAAAEaAAUAAAABAAAApAEbAAUAAAABAAAArAEoAAMAAAABAAIAAAExAAIAAAAiAAAAtAEyAAIAAAAUAAAA1odpAAQAAAABAAAA7AAAASQACAAIAAgACvyAAAAnEAAK/IAAACcQQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpADIwMjA6MTE6MjQgMTY6NDQ6MjIAAAAABJAAAAcAAAAEMDIyMaABAAMAAAAB//8AAKACAAQAAAABAAABLKADAAQAAAABAAACWAAAAAAAAAAGAQMAAwAAAAEABgAAARoABQAAAAEAAAFyARsABQAAAAEAAAF6ASgAAwAAAAEAAgAAAgEABAAAAAEAAAGCAgIABAAAAAEAABTdAAAAAAAAAEgAAAABAAAASAAAAAH/2P/tAAxBZG9iZV9DTQAB/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAoABQAwEiAAIRAQMRAf/dAAQABf/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8AfHw7cisvqc0vD21Np929znhzqwz2+l7vSs+lb/3xFb0u91T7fUrAYz1IDt0j0vtf0mbm/wA0mdhZWO91TsjHpsYSHs+10tcHDcxzXt9b6bdz2Jw3MDS0Z2PtIII+2UwQQWO/w37rluy5rFZrmMP1nD+LzkPh/M0L5LmSe8cWXhl/zWTukZDHUB9jGfaZ2F27SNn0trHe39J9Nns9iiemX/ZnZQsrNbN8gF0n0ztdt9qkHdQa4OHUKQ5o2tP22mQPAfplEsy3NLTm45a4HcPtlEEHV/8Ahvzvz0BzOPS+Yw+PrguPw/mNa5LmdtP1WX/vWnqlKvY3Q+o5e/7IKcn049T0r6X7Znbv22+3dtR/+avX/wDuL/4LV/6UUw5jAdsuP/Hi1TyfNRNSwZYnsccwf+i5UqdFNmRcymuN1hDRJgamO60v+avX/wDuL/4LV/6USH1W+sAIIxYIMgi2uQR/1xA8xhrTLj/xoqHK57F4MhHX0S/71y3Nc1xa7QjnUH8WqRYWGskg72h+naSRB/zVpf8ANXr/AP3FH/blX/pROfqz9YBDn40hg0m2sw0e6B+k+ikeYw1/O4/8aKRyue/5nJvp6JP/0Oqqu62y9rcJpON9qy93tJbP2nI2y4Mcz32+zI9W2r0sf9LR+lV+/K+szbLxRiVWVi2tuOS4CaiX+vZZN/5rfSd9Fik/p+HXcaxn34773usbQ28Ml1j3WP8ATrI3e+170T9jO/7m5v8A29/5gmjiAArYVu2sxw5JGXEI2Sfk9XqPF6kV+V9Y2m70MStways0EkEusJ/WGbfXr9rWO/RbvT/mrP8ASVpOPXMg203VVV172uqfOhDDZZts/SWWena+nG3/AKP+Zyrf9Eifsj/u9mf9vf8AmCX7I/7vZn/b3/mCVy7fixiGIEEZNjfyFp9Fwbsbq+T6p2FmMwtra8vBF+TnZP6R7wHPsq/m2v8A+uf4Rbiq4mBXi2WWi226y1rGOfc7edtZe5jW6N/OusVpKAoV5q5nJ7mQyBvSIuq2j6v+e431kyPrHRi2v6LS2wtrB3BofYHbv0hrqe73vZX/ADTPSt3oPR8n6w3fV1t3Um2V55uaA4Vt9Y45trbZc/G2bPWbSb/8B9Bnqekt2yyuqt1tr2111gufY8hrWgfSc5zvotaoNy8V+P8Aa231uxiNwvD2msidu71Z9P6Scg5P1XB7cd/5yvX/AHeJBiPzndN3vB+2bbNgtaASQX/Z/VY30G+5vpb/AOj/APF0IPSbOpv6dc7qYIul+zc0Mds2B3uaza3+dNjG+yv2f6T+es0K3stY19Tg9jxLXtILSD3a5vtcomyuzHfZU5r2FrwHNIcJAc13ub+64JMT/9H0PIwX2vt22NbVkbBc0s3P9nt/RWbhs9v7zH+lZ+mq96qZP1aw8l97n33t+02susDCwasNjmt3bHO2/pf66uX5rqnWltQfVj7Te8vDXDcN36KrafV2sO76dX+jp9SxVL/rL0rHsurtc8Ox7a6Hw0GX2F7GBnu93uqckp1TqZSWVkfWXpmO6wWiwNr9OX7WwfVLNu39Ju/Rtursu9v6KtSq+sOBbbZUxtpfTYyl4DQfdZvj6D3/AEW1u9v85/omWWJKdNAyc7BxNv2vJqx98lvqvayY52+o5viiU2suqZaydrxInnw7bmrA+smPZkZrK6sd+RYcSwM9IgOYTbT+m2ufX6uz6bK/9Iz07fTostTZkgWGblsccmQRmSI0SSKG395h9YMb6t9bqey3q1FFpYGNcLqnNBY71GF1bnfvfTa17N6j0nH6H0voo6ZX1nFss9duSbnWVlvqMsrva1tHrfzX6Bjf53/hFtVX/s/posyWOa1rjFctc5jHvd6FRdu2OdVWWMdssf8AyPU+mj5OWKcYXtb6m91TK2aNJNz2U17i76Hut96XqrcfZ/6EvlmjwnFU5YwduOHTr/NObTm9BZgOwrep4trbBaLX+tWJ9YvfZ7X2Wf6X891n8tQ6Q/ouDi2YeL1DGyLb3OeBW+sOc41tpaxldb3ud7alp157X4LswsIbWLC5ggn9EXss2bvT+l6X6Pf6f9hZlvU2dU6bXe2l1OzOxqy15YdfVotDmuqc/wDMsYkeIC7H2f2rIDFOQiIzHEavjifw9t//0vSn42PZa26ypr7WRseQCRB3N/zXe5insZJO1snUmBJKpZTcs3v9MW7iGfZXMdFTT/hftTJ93u/nPUa/9B/RP1hVrx9Z/Wv+znH9M3V/Z98CKZf6+/2uc5+z0v8AydaSnVNdZkljTPPtH9ycNYDIa0EAAEAcDj8qycwfWl7b2YTsat7mVjHfaAQ14c12Q9+3duY9j7K6m+n+j9Fn+l/R2Mk9aN2I7HbU2rUZjHETMs2urPu/RbfV/wCESU3xAEAQBoAFUyun/aMhmSzIuxrmMdVupLNWOc2yHC+q/wDOr/NVK7/nQWA1egHGh0zE+sWv9Pc125v6N3pb9lnpKeI36yfaa35bqPs7q6/UrYBLbB6X2k7vpbbP1j0tn/BoEA7roTlA3Hfbvv4SS/svImf2llk+foEfccVNb0iy6s13dQyba3fSY8Y7mnv7mPxC1Wsv7UaCMT25EiC6NsT7pLw5n0VHOGYcKMfccjdVu9Eta4t31/avROR+jb+h9Xbu/wCrQ4R4/aV/vz7Q/wDC8f8A3rXr6TbUwV1dQyq62/RYwY7Wj4MbibVAdFZXWB9qvdVS4XCiKWVl9Z9Wve3Hx6XfzjG/nqzjjPPTS2yWZhbaGGwtc4GX/ZvUczfU/az0v+/oPS29UbgX/tRznXkvLN5rLgzY3l2M1lf876qXCPH7Sr359OEeUMYP28L/AP/T9JsyceuxtVjw17o0M6bjsr3ujbX6r/ZV6n86/wDm1M2Vjl7RBDTLhyfot/rIF2H6jrALCyrIgZFYAO7aNntefdV6lY9K3+R/Nejb+lVR31a6S+3Iuexzn5VzMi33R763Gxv0Wtds93vZu+gkp0jZWOXtEan3Didvj+8n3skje2QYI3DQ/urKyfqv0jJ3+ox82hrbCHD3BhqNQdLdv6P7OxTP1c6SbTd6bhYbWXbg4iHVt9JrWx7Wsc3fu2/6R6SnRZZW+dj2vjna4GP834qSo9N6Nh9Nn7Nv1Lz7yD/Oel6n0Ws/7j1K8kpi97GDc9wY3iXEAT8XJrrqcet1t9jaq2xue8hrRJ2t1P7znbWqGTjMyaXUWk+k4gkN0Jg7gN3uSyMVl2OMcOdUGmtzHMglpqcy2r+cD2u91XuSUzZfTZSL2WNdSQXCwEbYH0ju/kodeVi5WNZbi3V5FYD2l9Tg9sgGW7mF3uTVYVVeG7Dc51tbxYHufG53ql77Zgf8K5Cw+nVdPw7qanvs9Tc9z7ILidjahwP3KmJKf//U9DyM2yp9pa1hrxgw2tc6LHep9H0G/R/kU7v6Tkfq/wCi/nFUs+smOy3JqGLkWHFuZQ4sDHbnWONbXVtFnqbdzfz2rUdVW97bHMa59c7HloLmzzsd9JilJ8UlOVmfWHGw33NfRc/7O9tb3NAj3B79zTu+j+icms+sVFdVlr8XI21Xeho0Eklr7W2c+2t3p/8AgtS15PiluPikpx2fWbEfaK/RtAOT9l3nZtB949VxDvbX7P8AjH71c6Z1FnUsUZLKrKBuLTXcAHAgNd+aXfvbf+MVzc7xTSTykpxvrF9Y2dDpc847r3BjXNM7GS53pNDnw76P+EUOlfWX9o9CHVfLine truncated
|
||||
@@ -0,0 +1,204 @@
|
||||
# 正则表达式学习
|
||||
|
||||
- [基本匹配]
|
||||
- [元字符]
|
||||
- [英文句号]
|
||||
- [字符集]
|
||||
- [否定字符集]
|
||||
- [重复]
|
||||
- [星号]
|
||||
- [加号]
|
||||
- [问号]
|
||||
- [花括号]
|
||||
- [字符组]
|
||||
- [分支结构]
|
||||
- [转义特殊字符]
|
||||
- [定位符]
|
||||
- [插入符号]
|
||||
- [美元符号]
|
||||
- [简写字符集]
|
||||
- [断言]
|
||||
- [正向先行断言]
|
||||
- [负向先行断言]
|
||||
- [正向后行断言]
|
||||
- [负向后行断言]
|
||||
- [标记]
|
||||
- [不区分大小写]
|
||||
- [全局搜索]
|
||||
- [多行匹配]
|
||||
- [常用正则表达式]
|
||||
|
||||
## 1. 基本匹配
|
||||
|
||||
正则表达式只是我们用于在文本中检索字母和数字的模式。例如正则表达式 `cat`,表示: 字母 `c` 后面跟着一个字母 `a`,再后面跟着一个字母 `t`。<pre>"cat" => The <a href="#learn-regex"><strong>cat</strong></a> sat on the mat</pre>
|
||||
|
||||
正则表达式 `123` 会匹配字符串 "123"。通过将正则表达式中的每个字符逐个与要匹配的字符串中的每个字符进行比较,来完成正则匹配。
|
||||
正则表达式通常区分大小写,因此正则表达式 `Cat` 与字符串 "cat" 不匹配。<pre>"Cat" => The cat sat on the <a href="#learn-regex"><strong>Cat</strong></a></pre>
|
||||
|
||||
## 2. 元字符
|
||||
|
||||
元字符是正则表达式的基本组成元素。元字符在这里跟它通常表达的意思不一样,而是以某种特殊的含义去解释。有些元字符写在方括号内的时候有特殊含义。
|
||||
元字符如下:
|
||||
|
||||
|元字符|描述|
|
||||
|:----:|----|
|
||||
|.|匹配除换行符以外的任意字符。|
|
||||
|[ ]|字符类,匹配方括号中包含的任意字符。|
|
||||
|[^ ]|否定字符类。匹配方括号中不包含的任意字符|
|
||||
|*|匹配前面的子表达式零次或多次|
|
||||
|+|匹配前面的子表达式一次或多次|
|
||||
|?|匹配前面的子表达式零次或一次,或指明一个非贪婪限定符。|
|
||||
|{n,m}|花括号,匹配前面字符至少 n 次,但是不超过 m 次。|
|
||||
|(xyz)|字符组,按照确切的顺序匹配字符xyz。|
|
||||
|||分支结构,匹配符号之前的字符或后面的字符。|
|
||||
|\|转义符,它可以还原元字符原来的含义,允许你匹配保留字符 <code>[ ] ( ) { } . * + ? ^ $ \ |</code>|
|
||||
|^|匹配行的开始|
|
||||
|$|匹配行的结束|
|
||||
|
||||
## 2.1 英文句号
|
||||
|
||||
英文句号 `.` 是元字符的最简单的例子。元字符 `.` 可以匹配任意单个字符。它不会匹配换行符和新行的字符。例如正则表达式 `.ar`,表示: 任意字符后面跟着一个字母 `a`,
|
||||
再后面跟着一个字母 `r`。<pre>".ar" => The <a href="#learn-regex"><strong>car</strong></a> <a href="#learn-regex"><strong>par</strong></a>ked in the <a href="#learn-regex"><strong>gar</strong></a>age.</pre>
|
||||
|
||||
## 2.2 字符集
|
||||
|
||||
字符集也称为字符类。方括号被用于指定字符集。使用字符集内的连字符来指定字符范围。方括号内的字符范围的顺序并不重要。
|
||||
例如正则表达式 `[Tt]he`,表示: 大写 `T` 或小写 `t` ,后跟字母 `h`,再后跟字母 `e`。<pre>"[Tt]he" => <a href="#learn-regex"><strong>The</strong></a> car parked in <a href="#learn-regex"><strong>the</strong></a> garage.</pre>
|
||||
|
||||
然而,字符集中的英文句号表示它字面的含义。正则表达式 `ar[.]`,表示小写字母 `a`,后面跟着一个字母 `r`,再后面跟着一个英文句号 `.` 字符。<pre>"ar[.]" => A garage is a good place to park a c<a href="#learn-regex"><strong>ar.</strong></a></pre>
|
||||
|
||||
### 2.2.1 否定字符集
|
||||
|
||||
一般来说插入字符 `^` 表示一个字符串的开始,但是当它在方括号内出现时,它会取消字符集。例如正则表达式 `[^c]ar`,表示: 除了字母 `c` 以外的任意字符,后面跟着字符 `a`,
|
||||
再后面跟着一个字母 `r`。<pre>"[^c]ar" => The car <a href="#learn-regex"><strong>par</strong></a>ked in the <a href="#learn-regex"><strong>gar</strong></a>age.</pre>
|
||||
|
||||
## 2.3 重复
|
||||
|
||||
以下元字符 `+`,`*` 或 `?` 用于指定子模式可以出现多少次。这些元字符在不同情况下的作用不同。
|
||||
|
||||
### 2.3.1 星号
|
||||
|
||||
该符号 `*` 表示匹配上一个匹配规则的零次或多次。正则表达式 `a*` 表示小写字母 `a` 可以重复零次或者多次。但是它如果出现在字符集或者字符类之后,它表示整个字符集的重复。
|
||||
例如正则表达式 `[a-z]*`,表示: 一行中可以包含任意数量的小写字母。<pre>"[a-z]*" => T<a href="#learn-regex"><strong>he</strong></a> <a href="#learn-regex"><strong>car</strong></a> <a href="#learn-regex"><strong>parked</strong></a> <a href="#learn-regex"><strong>in</strong></a> <a href="#learn-regex"><strong>the</strong></a> <a href="#learn-regex"><strong>garage</strong></a> #21.</pre>
|
||||
|
||||
该 `*` 符号可以与元符号 `.` 用在一起,用来匹配任意字符串 `.*`。该 `*` 符号可以与空格符 `\s` 一起使用,用来匹配一串空格字符。
|
||||
例如正则表达式 `\s*cat\s*`,表示: 零个或多个空格,后面跟小写字母 `c`,再后面跟小写字母 `a`,再再后面跟小写字母 `t`,后面再跟零个或多个空格。<pre>"\s*cat\s*" => The fat<a href="#learn-regex"><strong> cat </strong></a>sat on the <a href="#learn-regex"><strong>cat</strong></a>.</pre>
|
||||
|
||||
### 2.3.2 加号
|
||||
|
||||
该符号 `+` 匹配上一个字符的一次或多次。例如正则表达式 `c.+t`,表示: 一个小写字母 `c`,后跟任意数量的字符,后跟小写字母 `t`。<pre>"c.+t" => The fat <a href="#learn-regex"><strong>cat sat on the mat</strong></a>.</pre>
|
||||
|
||||
### 2.3.3 问号
|
||||
|
||||
在正则表达式中,元字符 `?` 用来表示前一个字符是可选的。该符号匹配前一个字符的零次或一次。
|
||||
例如正则表达式 `[T]?he`,表示: 可选的大写字母 `T`,后面跟小写字母 `h`,后跟小写字母 `e`。<pre>"[T]he" => <a href="#learn-regex"><strong>The</strong></a> car is parked in the garage.</pre><pre>"[T]?he" => <a href="#learn-regex"><strong>The</strong></a> car is parked in t<a href="#learn-regex"><strong>he</strong></a> garage.</pre>
|
||||
|
||||
## 2.4 花括号
|
||||
|
||||
在正则表达式中花括号(也被称为量词 ?)用于指定字符或一组字符可以重复的次数。例如正则表达式 `[0-9]{2,3}`,表示: 匹配至少2位数字但不超过3位(0到9范围内的字符)。<pre>"[0-9]{2,3}" => The number was 9.<a href="#learn-regex"><strong>999</strong></a>7 but we rounded it off to <a href="#learn-regex"><strong>10</strong></a>.0.</pre>
|
||||
|
||||
我们可以省略第二个数字。例如正则表达式 `[0-9]{2,}`,表示: 匹配2个或更多个数字。如果我们也删除逗号,则正则表达式 `[0-9]{2}`,表示: 匹配正好为2位数的数字。<pre>"[0-9]{2,}" => The number was 9.<a href="#learn-regex"><strong>9997</strong></a> but we rounded it off to <a href="#learn-regex"><strong>10</strong></a>.0.</pre><pre>"[0-9]{2}" => The number was 9.<a href="#learn-regex"><strong>99</strong></a><a href="#learn-regex"><strong>97</strong></a> but we rounded it off to <a href="#learn-regex"><strong>10</strong></a>.0.</pre>
|
||||
|
||||
## 2.5 字符组
|
||||
|
||||
字符组是一组写在圆括号内的子模式 `(...)`。正如我们在正则表达式中讨论的那样,如果我们把一个量词放在一个字符之后,它会重复前一个字符。
|
||||
但是,如果我们把量词放在一个字符组之后,它会重复整个字符组。
|
||||
例如正则表达式 `(ab)*` 表示匹配零个或多个的字符串 "ab"。我们还可以在字符组中使用元字符 `|`。例如正则表达式 `(c|g|p)ar`,表示: 小写字母 `c`、`g` 或 `p` 后面跟字母 `a`,后跟字母 `r`。<pre>"(c|g|p)ar" => The <a href="#learn-regex"><strong>car</strong></a> is <a href="#learn-regex"><strong>par</strong></a>ked in the <a href="#learn-regex"><strong>gar</strong></a>age.</pre>
|
||||
|
||||
## 2.6 分支结构
|
||||
|
||||
在正则表达式中垂直条 `|` 用来定义分支结构,分支结构就像多个表达式之间的条件。现在你可能认为这个字符集和分支机构的工作方式一样。
|
||||
但是字符集和分支结构巨大的区别是字符集只在字符级别上有作用,然而分支结构在表达式级别上依然可以使用。
|
||||
例如正则表达式 `(T|t)he|car`,表示: 大写字母 `T` 或小写字母 `t`,后面跟小写字母 `h`,后跟小写字母 `e` 或小写字母 `c`,后跟小写字母 `a`,后跟小写字母 `r`。<pre>"(T|t)he|car" => <a href="#learn-regex"><strong>The</strong></a> <a href="#learn-regex"><strong>car</strong></a> is parked in <a href="#learn-regex"><strong>the</strong></a> garage.</pre>
|
||||
|
||||
## 2.7 转义特殊字符
|
||||
|
||||
正则表达式中使用反斜杠 `\` 来转义下一个字符。这将允许你使用保留字符来作为匹配字符 `{ } [ ] / \ + * . $ ^ | ?`。在特殊字符前面加 `\`,就可以使用它来做匹配字符。
|
||||
例如正则表达式 `.` 是用来匹配除了换行符以外的任意字符。现在要在输入字符串中匹配 `.` 字符,正则表达式 `(f|c|m)at\.?`,表示: 小写字母 `f`、`c` 或者 `m` 后跟小写字母 `a`,后跟小写字母 `t`,后跟可选的 `.` 字符。<pre>"(f|c|m)at\.?" => The <a href="#learn-regex"><strong>fat</strong></a> <a href="#learn-regex"><strong>cat</strong></a> sat on the <a href="#learn-regex"><strong>mat.</strong></a></pre>
|
||||
|
||||
## 2.8 定位符
|
||||
|
||||
在正则表达式中,为了检查匹配符号是否是起始符号或结尾符号,我们使用定位符。
|
||||
定位符有两种类型: 第一种类型是 `^` 检查匹配字符是否是起始字符,第二种类型是 `$`,它检查匹配字符是否是输入字符串的最后一个字符。
|
||||
|
||||
### 2.8.1 插入符号
|
||||
|
||||
插入符号 `^` 符号用于检查匹配字符是否是输入字符串的第一个字符。如果我们使用正则表达式 `^a` (如果a是起始符号)匹配字符串 `abc`,它会匹配到 `a`。
|
||||
但是如果我们使用正则表达式 `^b`,它是匹配不到任何东西的,因为在字符串 `abc` 中 "b" 不是起始字符。
|
||||
让我们来看看另一个正则表达式 `^(T|t)he`,这表示: 大写字母 `T` 或小写字母 `t` 是输入字符串的起始符号,后面跟着小写字母 `h`,后跟小写字母 `e`。<pre>"(T|t)he" => <a href="#learn-regex"><strong>The</strong></a> car is parked in <a href="#learn-regex"><strong>the</strong></a> garage.</pre><pre>"^(T|t)he" => <a href="#learn-regex"><strong>The</strong></a> car is parked in the garage.</pre>
|
||||
|
||||
### 2.8.2 美元符号
|
||||
|
||||
美元 `$` 符号用于检查匹配字符是否是输入字符串的最后一个字符。例如正则表达式 `(at\.)$`,表示: 小写字母 `a`,后跟小写字母 `t`,后跟一个 `.` 字符,且这个匹配器必须是字符串的结尾。<pre>"(at\.)" => The fat c<a href="#learn-regex"><strong>at.</strong></a> s<a href="#learn-regex"><strong>at.</strong></a> on the m<a href="#learn-regex"><strong>at.</strong></a></pre><pre>"(at\.)$" => The fat cat sat on the m<a href="#learn-regex"><strong>at.</strong></a></pre>
|
||||
|
||||
## 3. 简写字符集
|
||||
|
||||
正则表达式为常用的字符集和常用的正则表达式提供了简写。简写字符集如下:
|
||||
|
||||
|简写|描述|
|
||||
|:----:|----|
|
||||
|.|匹配除换行符以外的任意字符|
|
||||
|\w|匹配所有字母和数字的字符: `[a-zA-Z0-9_]`|
|
||||
|\W|匹配非字母和数字的字符: `[^\w]`|
|
||||
|\d|匹配数字: `[0-9]`|
|
||||
|\D|匹配非数字: `[^\d]`|
|
||||
|\s|匹配空格符: `[\t\n\f\r\p{Z}]`|
|
||||
|\S|匹配非空格符: `[^\s]`|
|
||||
|
||||
## 4. 断言
|
||||
|
||||
后行断言和先行断言有时候被称为断言,它们是特殊类型的 ***非捕获组*** (用于匹配模式,但不包括在匹配列表中)。当我们在一种特定模式之前或者之后有这种模式时,会优先使用断言。
|
||||
例如我们想获取输入字符串 `$4.44 and $10.88` 中带有前缀 `$` 的所有数字。我们可以使用这个正则表达式 `(?<=\$)[0-9\.]*`,表示: 获取包含 `.` 字符且前缀为 `$` 的所有数字。
|
||||
以下是正则表达式中使用的断言:
|
||||
|
||||
|符号|描述|
|
||||
|:----:|----|
|
||||
|?=|正向先行断言|
|
||||
|?!|负向先行断言|
|
||||
|?<=|正向后行断言|
|
||||
|?<!|负向后行断言|
|
||||
|
||||
### 4.1 正向先行断言
|
||||
|
||||
正向先行断言认为第一部分的表达式必须是先行断言表达式。返回的匹配结果仅包含与第一部分表达式匹配的文本。
|
||||
要在一个括号内定义一个正向先行断言,在括号中问号和等号是这样使用的 `(?=...)`。先行断言表达式写在括号中的等号后面。
|
||||
例如正则表达式 `(T|t)he(?=\sfat)`,表示: 匹配大写字母 `T` 或小写字母 `t`,后面跟字母 `h`,后跟字母 `e`。
|
||||
在括号中,我们定义了正向先行断言,它会引导正则表达式引擎匹配 `The` 或 `the` 后面跟着 `fat`。<pre>"(T|t)he(?=\sfat)" => <a href="#learn-regex"><strong>The</strong></a> fat cat sat on the mat.</pre>
|
||||
|
||||
### 4.2 负向先行断言
|
||||
|
||||
当我们需要从输入字符串中获取不匹配表达式的内容时,使用负向先行断言。负向先行断言的定义跟我们定义的正向先行断言一样,
|
||||
唯一的区别是不是等号 `=`,我们使用否定符号 `!`,例如 `(?!...)`。
|
||||
我们来看看下面的正则表达式 `(T|t)he(?!\sfat)`,表示: 从输入字符串中获取全部 `The` 或者 `the` 且不匹配 `fat` 前面加上一个空格字符。<pre>"(T|t)he(?!\sfat)" => The fat cat sat on <a href="#learn-regex"><strong>the</strong></a> mat.</pre>
|
||||
|
||||
### 4.3 正向后行断言
|
||||
|
||||
正向后行断言是用于获取在特定模式之前的所有匹配内容。正向后行断言表示为 `(?<=...)`。例如正则表达式 `(?<=(T|t)he\s)(fat|mat)`,表示: 从输入字符串中获取在单词 `The` 或 `the` 之后的所有 `fat` 和 `mat` 单词。<pre>"(?<=(T|t)he\s)(fat|mat)" => The <a href="#learn-regex"><strong>fat</strong></a> cat sat on the <a href="#learn-regex"><strong>mat</strong></a>.</pre>
|
||||
|
||||
### 4.4 负向后行断言
|
||||
|
||||
负向后行断言是用于获取不在特定模式之前的所有匹配的内容。负向后行断言表示为 `(?<!...)`。例如正则表达式 `(?<!(T|t)he\s)(cat)`,表示: 在输入字符中获取所有不在 `The` 或 `the` 之后的所有单词 `cat`。<pre>"(?<!(T|t)he\s)(cat)" => The cat sat on <a href="#learn-regex"><strong>cat</strong></a>.</pre>
|
||||
|
||||
## 5. 标记
|
||||
|
||||
标记也称为修饰符,因为它会修改正则表达式的输出。这些标志可以以任意顺序或组合使用,并且是正则表达式的一部分。
|
||||
|
||||
|标记|描述|
|
||||
|:----:|----|
|
||||
|i|不区分大小写: 将匹配设置为不区分大小写。|
|
||||
|g|全局搜索: 搜索整个输入字符串中的所有匹配。|
|
||||
|m|多行匹配: 会匹配输入字符串每一行。|
|
||||
|
||||
* **数字**: `\d+$`
|
||||
* **用户名**: `^[\w\d_.]{4,16}$`
|
||||
* **字母数字字符**: `^[a-zA-Z0-9]*$`
|
||||
* **带空格的字母数字字符**: `^[a-zA-Z0-9 ]*$`
|
||||
* **小写字母**: `[a-z]+$`
|
||||
* **大写字母**: `[A-Z]+$`
|
||||
* **网址**: `^(((http|https|ftp):\/\/)?([[a-zA-Z0-9]\-\.])+(\.)([[a-zA-Z0-9]]){2,4}([[a-zA-Z0-9]\/+=%&_\.~?\-]*))*$`
|
||||
* **日期 (MM/DD/YYYY)**: `^(0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)?[0-9]{2}$`
|
||||
* **日期 (YYYY/MM/DD)**: `^(19|20)?[0-9]{2}[- /.](0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])$`
|
||||
* **求更求转发致谢**: `[\((【].*?[求更谢乐发推].*?[】)\)]`
|
||||
* **查找最新章节**: `您可以.*?查找最新章节`
|
||||
* **ps/PS**: `(?i)ps\b.*`
|
||||
* **Html标签**: `<[^>]+?>`
|
||||
@@ -0,0 +1,6 @@
|
||||
# 替换管理界面帮助
|
||||
|
||||
* 替换规则是用来替换正文内容的一种规则
|
||||
* 菜单可以新建和导入规则
|
||||
* 可以拖动排序
|
||||
* 可以选择操作
|
||||
@@ -0,0 +1,177 @@
|
||||
# 源规则帮助
|
||||
|
||||
* [书源帮助文档](https://alanskycn.gitee.io/teachme/Rule/source.html)
|
||||
* [订阅源帮助文档](https://alanskycn.gitee.io/teachme/Rule/rss.html)
|
||||
* [js扩展类](https://github.com/gedoor/legado/blob/master/app/src/main/java/io/legado/app/help/JsExtensions.kt)
|
||||
* 辅助键盘❓中可插入URL参数模板,打开帮助,选择文件
|
||||
* 规则标志, {{......}}内使用规则必须有明显的规则标志,没有规则标志当作js执行
|
||||
```
|
||||
@@ 默认规则,直接写时可以省略@@
|
||||
@XPath: xpath规则,直接写时以//开头可省略@XPath
|
||||
@Json: json规则,直接写时以$.开头可省略@Json
|
||||
: regex规则,不可省略,只可以用在书籍列表和目录列表
|
||||
```
|
||||
|
||||
* 发现url格式
|
||||
```json
|
||||
[
|
||||
{
|
||||
"title": "xxx",
|
||||
"url": "",
|
||||
"style": {
|
||||
"layout_flexGrow": 0,
|
||||
"layout_flexShrink": 1,
|
||||
"layout_alignSelf": "auto",
|
||||
"layout_flexBasisPercent": -1,
|
||||
"layout_wrapBefore": false
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
* 获取登录后的cookie
|
||||
```
|
||||
java.getCookie("http://baidu.com", null) => userid=1234;pwd=adbcd
|
||||
java.getCookie("http://baidu.com", "userid") => 1234
|
||||
```
|
||||
|
||||
* 请求头,支持http代理,socks4 socks5代理设置
|
||||
```
|
||||
socks5代理
|
||||
{
|
||||
"proxy":"socks5://127.0.0.1:1080"
|
||||
}
|
||||
http代理
|
||||
{
|
||||
"proxy":"http://127.0.0.1:1080"
|
||||
}
|
||||
支持代理服务器验证
|
||||
{
|
||||
"proxy":"socks5://127.0.0.1:1080@用户名@密码"
|
||||
}
|
||||
注意:这些请求头是无意义的,会被忽略掉
|
||||
```
|
||||
|
||||
* js 变量和函数
|
||||
```
|
||||
java 变量-当前类
|
||||
baseUrl 变量-当前url,String
|
||||
result 变量-上一步的结果
|
||||
book 变量-书籍类,方法见 io.legado.app.data.entities.Book
|
||||
cookie 变量-cookie操作类,方法见 io.legado.app.help.http.CookieStore
|
||||
cache 变量-缓存操作类,方法见 io.legado.app.help.CacheManager
|
||||
chapter 变量-当前目录类,方法见 io.legado.app.data.entities.BookChapter
|
||||
title 变量-当前标题,String
|
||||
src 内容,源码
|
||||
```
|
||||
|
||||
* url添加js参数,解析url时执行,可在访问url时处理url,例
|
||||
```
|
||||
https://www.baidu.com,{"js":"java.headerMap.put('xxx', 'yyy')"}
|
||||
https://www.baidu.com,{"js":"java.url=java.url+'yyyy'"}
|
||||
```
|
||||
|
||||
* 增加js方法,用于重定向拦截
|
||||
* `java.get(urlStr: String, headers: Map<String, String>)`
|
||||
* `java.post(urlStr: String, body: String, headers: Map<String, String>)`
|
||||
* 对于搜索重定向的源,可以使用此方法获得重定向后的url
|
||||
```
|
||||
(()=>{
|
||||
if(page==1){
|
||||
let url='https://www.yooread.net/e/search/index.php,'+JSON.stringify({
|
||||
"method":"POST",
|
||||
"body":"show=title&tempid=1&keyboard="+key
|
||||
});
|
||||
return java.put('surl',String(java.connect(url).raw().request().url()));
|
||||
} else {
|
||||
return java.get('surl')+'&page='+(page-1)
|
||||
}
|
||||
})()
|
||||
或者
|
||||
(()=>{
|
||||
let base='https://www.yooread.net/e/search/';
|
||||
if(page==1){
|
||||
let url=base+'index.php';
|
||||
let body='show=title&tempid=1&keyboard='+key;
|
||||
return base+java.put('surl',java.post(url,body,{}).header("Location"));
|
||||
} else {
|
||||
return base+java.get('surl')+'&page='+(page-1);
|
||||
}
|
||||
})()
|
||||
```
|
||||
|
||||
* 正文图片链接支持修改headers
|
||||
```
|
||||
let options = {
|
||||
"headers": {"User-Agent": "xxxx","Referrer":baseUrl,"Cookie":"aaa=vbbb;"}
|
||||
};
|
||||
'<img src="'+src+","+JSON.stringify(options)+'">'
|
||||
```
|
||||
|
||||
## 部分js对象属性说明
|
||||
上述js变量与函数中,一些js的对象属性用的频率较高,在此列举。方便写源的时候快速翻阅。
|
||||
|
||||
### book对象的可用属性
|
||||
> 使用方法: 在js中或{{}}中使用book.属性的方式即可获取.如在正文内容后加上 ##{{book.name+"正文卷"+title}} 可以净化 书名+正文卷+章节名称(如 我是大明星正文卷第二章我爸是豪门总裁) 这一类的字符.
|
||||
```
|
||||
bookUrl // 详情页Url(本地书源存储完整文件路径)
|
||||
tocUrl // 目录页Url (toc=table of Contents)
|
||||
origin // 书源URL(默认BookType.local)
|
||||
originName //书源名称 or 本地书籍文件名
|
||||
name // 书籍名称(书源获取)
|
||||
author // 作者名称(书源获取)
|
||||
kind // 分类信息(书源获取)
|
||||
customTag // 分类信息(用户修改)
|
||||
coverUrl // 封面Url(书源获取)
|
||||
customCoverUrl // 封面Url(用户修改)
|
||||
intro // 简介内容(书源获取)
|
||||
customIntro // 简介内容(用户修改)
|
||||
charset // 自定义字符集名称(仅适用于本地书籍)
|
||||
type // 0:text 1:audio
|
||||
group // 自定义分组索引号
|
||||
latestChapterTitle // 最新章节标题
|
||||
latestChapterTime // 最新章节标题更新时间
|
||||
lastCheckTime // 最近一次更新书籍信息的时间
|
||||
lastCheckCount // 最近一次发现新章节的数量
|
||||
totalChapterNum // 书籍目录总数
|
||||
durChapterTitle // 当前章节名称
|
||||
durChapterIndex // 当前章节索引
|
||||
durChapterPos // 当前阅读的进度(首行字符的索引位置)
|
||||
durChapterTime // 最近一次阅读书籍的时间(打开正文的时间)
|
||||
canUpdate // 刷新书架时更新书籍信息
|
||||
order // 手动排序
|
||||
originOrder //书源排序
|
||||
variable // 自定义书籍变量信息(用于书源规则检索书籍信息)
|
||||
```
|
||||
|
||||
### chapter对象的可用属性
|
||||
> 使用方法: 在js中或{{}}中使用chapter.属性的方式即可获取.如在正文内容后加上 ##{{chapter.title+chapter.index}} 可以净化 章节标题+序号(如 第二章 天仙下凡2) 这一类的字符.
|
||||
```
|
||||
url // 章节地址
|
||||
title // 章节标题
|
||||
baseUrl //用来拼接相对url
|
||||
bookUrl // 书籍地址
|
||||
index // 章节序号
|
||||
resourceUrl // 音频真实URL
|
||||
tag //
|
||||
start // 章节起始位置
|
||||
end // 章节终止位置
|
||||
variable //变量
|
||||
```
|
||||
|
||||
### 字体解析使用
|
||||
> 使用方法,在正文替换规则中使用,原理根据f1字体的字形数据到f2中查找字形对应的编码
|
||||
```
|
||||
<js>
|
||||
(function(){
|
||||
var b64=String(src).match(/ttf;base64,([^\)]+)/);
|
||||
if(b64){
|
||||
var f1 = java.queryBase64TTF(b64[1]);
|
||||
var f2 = java.queryTTF("https://alanskycn.gitee.io/teachme/assets/font/Source Han Sans CN Regular.ttf");
|
||||
return java.replaceFont(result, f1, f2);
|
||||
}
|
||||
return result;
|
||||
})()
|
||||
</js>
|
||||
```
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
# WebDav备份教程
|
||||
|
||||
### 阅读支持云备份,采用WebDav协议,所有支持WebDav的云盘都可以,建议采用坚果云,每月免费1G流量,用来备份阅读足够了,下面就采用坚果云来讲解配置步骤.
|
||||
|
||||
1. 打开坚果云网站 https://www.jianguoyun.com/d/home#/
|
||||
2. 如果没有注册过坚果云先注册一下
|
||||
3. 登录坚果云
|
||||
4. 右上角用户名点开点账户信息
|
||||
5. 点击安全选项
|
||||
6. 在第三方管理里添加应用
|
||||
7. 将应用示例里的服务器地址,用户名,和密码填到阅读的WebDav设置里
|
||||
8. 阅读的WebDav配置在我的-备份与恢复,创建子文件夹选项保持默认即可
|
||||
9. 设置完成后手动执行一下备份,看看是否成功
|
||||
10. 恢复时选择想要恢复的备份文件
|
||||
|
||||
### 自动备份说明
|
||||
|
||||
* 设置好备份之后每次退出App会自动进行备份
|
||||
* WebDav同一天的备份会覆盖,不同日期的备份不会覆盖
|
||||
@@ -0,0 +1,692 @@
|
||||
# 更新日志
|
||||
|
||||
* 关注公众号 **[开源阅读]** 菜单•软件下载 提前享受新版本。
|
||||
* 关注合作公众号 **[小说拾遗]** 获取好看的小说。
|
||||
|
||||
## **必读**
|
||||
|
||||
【温馨提醒】 *更新前一定要做好备份,以免数据丢失!*
|
||||
|
||||
* 阅读只是一个转码工具,不提供内容,第一次安装app,需要自己手动导入书源,可以从公众号 **[开源阅读]**、QQ群、酷安评论里获取由书友制作分享的书源。
|
||||
* 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。
|
||||
* 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源!
|
||||
|
||||
**2022/01/03**
|
||||
|
||||
* 重新安装应用后没有权限的本地书籍会提示选择文件所在文件夹,不需要重新添加
|
||||
* 更新okhttp和cronet
|
||||
* 修复web阅读纪录同步问题 解决bug #1478
|
||||
* 去除html中一些乱码  等 解决bug 页面乱码 #1465
|
||||
|
||||
**2022/01/01**
|
||||
|
||||
* 修复本地txt问题,不在拷贝到私有目录,可以正常打开
|
||||
* 优化txt目录识别,取目录数量最多的规则
|
||||
|
||||
**2021/12/28**
|
||||
|
||||
* 用阅读打开本地朗读引擎文件和主体配置文件也可以导入
|
||||
* 缓存图片采用多线程
|
||||
* 本地书籍不在拷贝到私有目录,有权限的会直接打开,没权限的自己选择文件夹保存
|
||||
|
||||
**2021/12/19**
|
||||
|
||||
* 修复全面屏手势会触发翻页的bug
|
||||
* js添加java.logType(*),打印变量类型,方便调试时查看
|
||||
* 修复从发现中打开书籍是会打开其它书源书籍的bug
|
||||
* 全文搜索增加跳转上一个下一个的功能 by Jason Yao
|
||||
* post可以正确识别contentType
|
||||
|
||||
**2021/12/10**
|
||||
|
||||
* 朗读出错不弹出朗读界面的时候可以长按朗读按钮进入朗读界面切换朗读引擎,这个有很多人不知道
|
||||
* 修复cronet访问出错时应用崩溃的bug
|
||||
* 修复一些epub目录不全或内容不全的问题
|
||||
* 修复横屏双页时文字选择的问题
|
||||
* 电脑硬盘坏了还好资料恢复出来了,还是要经常备份比较好
|
||||
|
||||
**2021/11/27**
|
||||
|
||||
* 更新到SDK31,android 12
|
||||
* 修复在线朗读引擎新建会替换之前已有的bug
|
||||
* 修复目录界面自动跳转到顶部bug
|
||||
* 修复阿里云在线朗读引擎模板中获取时间的兼容性问题
|
||||
|
||||
**2021/11/20**
|
||||
|
||||
* 修复部分平板双页问题
|
||||
* 修复书源太多不能导出和备份的问题
|
||||
* 给txt目录规则添加了一个入口,在书源管理的菜单里面
|
||||
|
||||
**2021/11/13**
|
||||
|
||||
* 修复没有目录时进入阅读界面不自动更新目录的bug
|
||||
* 使用系统文件夹选择器出错时自动打开应用文件夹选择器,部分系统文件夹选择器被阉割了
|
||||
|
||||
**2021/11/02**
|
||||
|
||||
* 修复朗读错误时提示不消失的bug
|
||||
* 修复滚动阅读选择文字错位bug by DuShuYuan
|
||||
* 朗读语速调节添加微调按钮
|
||||
|
||||
**2021/10/24**
|
||||
|
||||
* 修复夜间模式不随系统变化的bug
|
||||
|
||||
**2021/10/22**
|
||||
|
||||
* 修复封面
|
||||
* 添加全局字体大小设置
|
||||
* 导入源和规则时可以先编辑再导入
|
||||
|
||||
**2021/10/21**
|
||||
|
||||
* 修复自定义封面会因为图片太大崩溃
|
||||
* 修复play版本一个会引起崩溃的bug
|
||||
|
||||
**2021/10/17**
|
||||
|
||||
* 修复朗读时可能会崩溃的bug
|
||||
|
||||
**2021/10/16**
|
||||
|
||||
* 再次修复朗读卡住问题
|
||||
* 导入书单改为多线程
|
||||
* 修复其它一些bug
|
||||
|
||||
**2021/10/14**
|
||||
|
||||
* 修复遇到一些存标点段朗读出错后不继续的问题
|
||||
* 朗读出错记录错误日志,现在很多界面的菜单里都可以打开日志
|
||||
|
||||
**2021/10/10**
|
||||
|
||||
* 阿里云语音自动登录
|
||||
* 修复一些bug
|
||||
* 优化阿里云登录,需重新登录
|
||||
|
||||
```
|
||||
source登录相关方法,可在js内通过source.调用,可以参考阿里云语音登录
|
||||
login()
|
||||
getHeaderMap(hasLoginHeader: Boolean = false)
|
||||
getLoginHeader(): String?
|
||||
getLoginHeaderMap(): Map<String, String>?
|
||||
putLoginHeader(header: String)
|
||||
removeLoginHeader()
|
||||
setVariable(variable: String?)
|
||||
getVariable(): String?
|
||||
AnalyzeUrl相关函数,js中通过java.调用
|
||||
initUrl() //重新解析url,可以用于登录检测js登录后重新解析url重新访问
|
||||
getHeaderMap().putAll(source.getHeaderMap(true)) //重新设置登录头
|
||||
getStrResponse( jsStr: String? = null, sourceRegex: String? = null) //返回访问结果,文本类型,书源内部重新登录后可调用此方法重新返回结果
|
||||
getResponse(): Response //返回访问结果,网络朗读引擎采用的是这个,调用登录后在调用这方法可以重新访问,参考阿里云登录检测
|
||||
```
|
||||
|
||||
**2021/10/07**
|
||||
|
||||
1. 修复阅读界面长按菜单阻挡选择bug
|
||||
2. 添加订阅源api
|
||||
|
||||
**2021/10/05**
|
||||
|
||||
1. 优化阅读界面导航栏
|
||||
2. 规则添加代码高亮
|
||||
3. web写源添加订阅源
|
||||
4. httpTts朗读添加登录功能
|
||||
|
||||
```
|
||||
返回语音之前加入了检测是否登录传入result为okhttp的Response,里面有headers和body,检测是否登录的js需返回正确的Response
|
||||
```
|
||||
|
||||
**2021/10/02**
|
||||
|
||||
1. 紧急修复弹出框崩溃bug
|
||||
2. 修复字体变粗后不能变回的bug
|
||||
3. 修复底部对齐有时无效的bug
|
||||
|
||||
* 不要嫌更新得频繁,这是因为最近新加的功能比较多,出bug很正常,而且我是一个人写软件,没有测试人员,只有发出来大家一起找bug了,遇到bug及时反馈,能修复的我都会在第一时间修复
|
||||
|
||||
**2021/10/01**
|
||||
|
||||
1. 默认封面名称显示全
|
||||
2. 发现js错误时可以查看错误详情
|
||||
4. 修复rss标题显示url的问题
|
||||
5. 长按正文网址可以选择是否外部浏览器打开,会记住选择
|
||||
6. 添加书源操作按钮,编辑书源移到里面,增加网址点击区域包括书名,更容易点击
|
||||
7. 优化内置浏览器
|
||||
8. 其它一些优化
|
||||
|
||||
**2021/09/29**
|
||||
|
||||
1. 修复阅读界面导航栏挡住内容的bug
|
||||
2. 修复webView=ture是自动跳转移动网站的bug
|
||||
3. 导出添加进度条
|
||||
|
||||
**2021/09/28**
|
||||
|
||||
1. 添加横屏双页模式
|
||||
|
||||
**2021/09/27**
|
||||
|
||||
1. 非Play版本内置更新检测和下载,目前从github检测并下载, 不会自动提醒需手动检测, 可以关注公众号,比较重要的更新会在公众号发布然后可以在软件内更新
|
||||
2. js添加java.webView(html: String?, url: String?, js: String?): String?
|
||||
3. 修复一些bug
|
||||
|
||||
**2021/09/22**
|
||||
|
||||
1. 修复在线朗读遇到单独......崩溃的问题
|
||||
2. 有人提到在线朗读能及时翻页了,本地行不行,这个是要靠本地的tts支持的,我目前用的谷歌文字转语音就是支持的,其它的我不太清楚
|
||||
|
||||
**2021/09/21**
|
||||
|
||||
1. 阅读界面区域设置添加朗读上一段和朗读下一段
|
||||
2. 在线朗读采用平均速度计算及时翻页
|
||||
3. 修复听书定时问题
|
||||
4. 阅读小标题也使用替换
|
||||
|
||||
**2021/09/20**
|
||||
|
||||
1. 修复在线朗读跳段的bug
|
||||
2. 优化默认封面,添加显示书名作者的配置, 后面会添加书名和作者大小位置配置
|
||||
|
||||
**2021/09/18**
|
||||
|
||||
1. 朗读可以选择非默认tts
|
||||
2. 其它一些优化和bug修复
|
||||
|
||||
**2021/09/16**
|
||||
|
||||
1. 优化正文重复标题的去除,必须包含标题且标题后面有空格或换行才会去除,防止误删
|
||||
|
||||
```^(\s|\p{P}|${name})*${title}(\s|\p{P})+```
|
||||
|
||||
**2021/09/15**
|
||||
|
||||
1. 修复因标题加入替换和简繁转换导致的缩进问题
|
||||
2. 如果出现标题不显示是净化规则的问题,可以先关闭净化
|
||||
|
||||
**2021/09/14**
|
||||
|
||||
1. 书架菜单添加了日志,更新失败的和下载失败的信息会显示在里面
|
||||
2. 书源添加校验关键字,有校验关键字的书源用此关键字校验
|
||||
3. 目录添加购买标识规则
|
||||
4. 正文标题使用替换,简繁转换,正文中书名,标题开头的自动去重
|
||||
5. 其它一些优化
|
||||
|
||||
**2021/09/08**
|
||||
|
||||
1. 优化离线缓存
|
||||
2. 听书界面添加登录菜单,和拷贝播放url
|
||||
3. 详情页添加设置源变量和书籍变量
|
||||
4. 订阅添加登录菜单,添加设置源变量
|
||||
|
||||
**2021/09/06**
|
||||
|
||||
1. 采用exoPlayer播放音频,支持更多格式
|
||||
2. 替换不再阻塞
|
||||
3. 修复详情页初始化:规则bug
|
||||
4. 书源内的并发率生效,两种格式
|
||||
* 时间 格式: 如 500, 访问间隔500毫秒
|
||||
* 次数/时间 格式: 如 5/60000, 每分钟最多访问5次
|
||||
|
||||
5. url参数添加js, 和webJs参数,js参数传入url返回新的url, webJs参数在webView内执行直到返回不为空,和正文规则webJs一样
|
||||
6. 重写离线缓存
|
||||
|
||||
**2021/09/01**
|
||||
|
||||
1. 可以直接导出为链接,方便分享
|
||||
2. 修复一些bug
|
||||
|
||||
**2021/08/28**
|
||||
|
||||
1. 发现界面添加登录菜单
|
||||
2. 优化调试界面,预设搜索项可以点击
|
||||
3. 修复再没有webDav恢复时恢复按钮没反应的bug
|
||||
4. 自动阅读的设置改为选择翻页动画
|
||||
|
||||
**2021/08/27**
|
||||
|
||||
1. 修复导入书源问题
|
||||
2. 合并cornet版本,添加cornet开关
|
||||
3. 详情也选择分组后自动加入书架
|
||||
4. 书源管理可以筛选有登录url的书源,分组需登录
|
||||
5. 修复定时加快的问题
|
||||
7. 修复其它一些小bug
|
||||
|
||||
**2021/08/24**
|
||||
|
||||
1. 修复bug
|
||||
2. 可以加载证书过期网站的图片
|
||||
3. 修复书源不兼容老版本的问题
|
||||
4. 书源添加登录ui,和登录检测配置,稍后会给出示例,可以用来制作一些采用token登录的源,稍后会给出示例
|
||||
5. 修复web阅读进度没有同步到webDav的问题
|
||||
|
||||
**2021/08/21**
|
||||
|
||||
1. 阅读时自动更新最新章节
|
||||
2. 朗读添加媒体按键配置
|
||||
3. 修复rss列表界面分类往回切换时没有数据的bug
|
||||
4. 修复订阅分类往回切换时不显示内容的bug
|
||||
5. 导入书源防止非json格式导入
|
||||
6. 校验书源显示详细信息 by h11128
|
||||
7. 其它一些优化
|
||||
|
||||
**2021/08/13**
|
||||
|
||||
1. web传书可以使用
|
||||
2. 修复一些bug
|
||||
|
||||
**2021/08/09**
|
||||
|
||||
1. 修复选择文字不能选择单个文字的bug
|
||||
2. 分组可选择封面
|
||||
|
||||
**2021/08/08**
|
||||
|
||||
1. 背景图片添加模糊设置
|
||||
2. 书籍信息界面添加置顶操作
|
||||
3. 自动翻页时屏幕常亮
|
||||
4. 字典:中文使用百度汉语字典,英文使用海词字典。 by ag2s20150909
|
||||
5. 导入规则时可以选择添加分组还是替换分组
|
||||
|
||||
**2021/08/02**
|
||||
|
||||
1. 换源界面功能添加:置顶,置底,删除 by h11128
|
||||
2. Cronet:优化 by ag2s20150909
|
||||
3. 优化自动翻页 by jiuZhouWorlds
|
||||
4. 封面设置移到主题里面,白天和夜间可分别设置
|
||||
|
||||
**2021/08/01**
|
||||
|
||||
1. 为webService添加快捷操作
|
||||
2. 规则内替换使用正则错误时自动切换为不使用正则
|
||||
3. 优化Cronet
|
||||
4. 阅读界面菜单显示的时候停止按键翻页和自动阅读
|
||||
5. 切换后台停止自动阅读
|
||||
|
||||
**2021/07/29**
|
||||
|
||||
1. 修复每次更新都重新导入text规则的bug
|
||||
2. RSS阅读页添加刷新按钮以应对页面内容过期失效的BUG by JiuZhouWorlds
|
||||
3. 规则内替换使用正则报错时自动使用非正则替换
|
||||
|
||||
**2021/07/27**
|
||||
|
||||
1. 修复bug
|
||||
2. web使用api获取封面,不会再出现没有封面的情况
|
||||
3. 阅读亮度手动调节分别记住白天和夜间模式
|
||||
4. legado://import/auto?src={url}, 自动识别导入类型
|
||||
5. 一些优化并更新了一下web首页,感谢沚水, 传书暂时还不好用
|
||||
|
||||
**2021/07/22**
|
||||
|
||||
1. 非关键规则添加try防止报错中断解析
|
||||
2. 添加获取封面的api
|
||||
3. 获取正文api使用替换规则
|
||||
4. 添加一个ronet版本,网络访问使用Chromium内核
|
||||
5. web书架增加【最近一次更新书籍信息的时间】
|
||||
6. 采用Flow替换LiveData,优化资源使用
|
||||
7. 统一网络一键导入路径legado://import/{path}?src={url}
|
||||
|
||||
* path: bookSource,rssSource,replaceRule,textTocRule,httpTTS,theme,readConfig
|
||||
* 添加了txt小说规则,在线朗读引擎,主题,排版 的一键导入支持,老url依然可用
|
||||
|
||||
8. 替换规则管理添加置顶所选和置底所选
|
||||
|
||||
**2021/07/16**
|
||||
|
||||
1. js扩展函数添加删除本地文件方法
|
||||
2. js扩展函数对于文件的读写删操作都是相对路径,只能操作阅读缓存内的文件,/android/data/{package}/cache/...
|
||||
|
||||
**2021/07/15**
|
||||
|
||||
1. 添加js函数来修复开启js沙箱后某些书源失效。by ag2s20150909
|
||||
|
||||
```kotlin
|
||||
/**
|
||||
* 获取网络zip文件里面的数据
|
||||
* @param url zip文件的链接
|
||||
* @param path 所需获取文件在zip内的路径
|
||||
* @return zip指定文件的数据
|
||||
*/
|
||||
fun getZipStringContent(url: String, path: String): String
|
||||
|
||||
/**
|
||||
* 获取网络zip文件里面的数据
|
||||
* @param url zip文件的链接
|
||||
* @param path 所需获取文件在zip内的路径
|
||||
* @return zip指定文件的数据
|
||||
*/
|
||||
fun getZipByteArrayContent(url: String, path: String): ByteArray?
|
||||
```
|
||||
|
||||
* web服务添加一个导航页
|
||||
|
||||
**2021/07/11**
|
||||
|
||||
1. 开启JS沙箱限制
|
||||
|
||||
* 禁止在js里exec运行命令
|
||||
* 禁止在js里通过geClass反射
|
||||
* 禁止在js里创建File对象
|
||||
* 禁止在js里获取Packages scope
|
||||
|
||||
2. 优化并修复bug
|
||||
|
||||
**2021/07/10**
|
||||
|
||||
1. 阅读界面长按菜单改回原来样式
|
||||
2. 解决导入书源时重命名分组和保留名称冲突的问题
|
||||
|
||||
**2021/07/09**
|
||||
|
||||
1. 发现url添加json格式, 支持设置标签样式
|
||||
|
||||
* 样式属性可以搜索 [FleboxLayout子元素支持的属性介绍](https://www.jianshu.com/p/3c471953e36d)
|
||||
* 样式属性可省略,有默认值
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"title": "xxx",
|
||||
"url": "",
|
||||
"style": {
|
||||
"layout_flexGrow": 0,
|
||||
"layout_flexShrink": 1,
|
||||
"layout_alignSelf": "auto",
|
||||
"layout_flexBasisPercent": -1,
|
||||
"layout_wrapBefore": false
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
**2021/07/07**
|
||||
|
||||
1. 默认规则新增类似`jsonPath`的索引写法 by bushixuanqi
|
||||
|
||||
* 格式形如 `[index,index, ...]` 或 `[!index,index, ...]` 其中`[!`开头表示筛选方式为排除,`index`可以是单个索引,也可以是区间。
|
||||
* 区间格式为 `start:end` 或 `start:end:step`,其中`start`为`0`可省略,`end`为`-1`可省略。
|
||||
* 索引、区间两端、区间间隔都支持负数
|
||||
* 例如 `tag.div[-1, 3:-2:-10, 2]`
|
||||
* 特殊用法 `tag.div[-1:0]` 可在任意地方让列表反向
|
||||
|
||||
2. 允许索引作为@分段后每个部分的首规则,此时相当于前面是`children`
|
||||
|
||||
* `head@.1@text` 与 `head@[1]@text` 与 `head@children[1]@text` 等价
|
||||
|
||||
3. 添加Umd格式支持 by ag2s20150909
|
||||
4. 修复web页面按键重复监听的bug
|
||||
5. 亮度条往中间移了一点,防止误触
|
||||
6. 添加内置字典
|
||||
|
||||
**2021/06/29**
|
||||
|
||||
* 修复html格式化bug
|
||||
* 订阅界面webView支持css prefers-color-scheme: dark 查询,需webView v76或更高版本
|
||||
* 如webView低于v76可以用js调用activity.isNightTheme()来获取当前是否暗模式
|
||||
* 修复一些书籍导出epub失败 by ag2s20150909
|
||||
|
||||
**2021/06/22**
|
||||
|
||||
* 修复隐藏未读设置不生效的bug
|
||||
* 修复系统字体大小选择大时导入界面按钮显示不全的bug
|
||||
* 修复听书从后台打开时不对的bug
|
||||
|
||||
**2021/06/20**
|
||||
|
||||
* viewPager2 改回 viewPager
|
||||
* 添加配置导入文件规则功能 by bushixuanqi
|
||||
* 文件夹分组样式优化(未完成)
|
||||
* epub支持外部模板
|
||||
* 修复一些bug
|
||||
|
||||
**2021/06/06**
|
||||
|
||||
* 添加自定义导出文件名
|
||||
* 添加书架文件夹分组样式,未完成
|
||||
* viewPager2 3层嵌套有问题,书架换回viewPager
|
||||
|
||||
**2021/05/29**
|
||||
|
||||
* 谷歌版可使用外部epub模板
|
||||
* Asset文件夹下二级以内目录全文件读取,Asset->文件夹->文件
|
||||
* epub元数据修改,使修改字体只对正文生效
|
||||
* 修复epub模板文件的排序问题
|
||||
* epub可自定义模板,模板路径为书籍导出目录的Asset文件夹,[模板范例](https://wwa.lanzoux.com/ibjBspkn05i)
|
||||
|
||||
```
|
||||
Asset中里面必须有Text文件夹,Text文件夹里必须有chapter.html,否则导出正文会为空
|
||||
chapter.html的关键字有{title}、{content}
|
||||
其他html文件的关键字有{name}、{author}、{intro}、{kind}、{wordCount}
|
||||
```
|
||||
|
||||
**2021/05/24**
|
||||
|
||||
* 反转目录后刷新内容
|
||||
* 修复上下滑动会导致左右切换问题
|
||||
* 精确搜索增加包含关键词的,比如搜索五行 五行天也显示出来, 五天行不显示
|
||||
|
||||
**2021/05/21**
|
||||
|
||||
* 添加反转目录功能
|
||||
* 修复分享bug
|
||||
* 详情页添加登录菜单
|
||||
* 添加发现界面隐藏配置
|
||||
|
||||
**2021/05/16**
|
||||
|
||||
* 添加总是使用默认封面配置
|
||||
* 添加一种语言 ptbr translation by mezysinc
|
||||
* epublib 修bug by ag2s20150909
|
||||
|
||||
**2021/05/08**
|
||||
|
||||
* 预下载章节可调整数目
|
||||
* 修复低版本Android使用TTS闪退。 by ag2s20150909
|
||||
* 修复WebDav报错
|
||||
* 优化翻页动画点击翻页
|
||||
|
||||
**2021/05/06**
|
||||
|
||||
* 修复bug
|
||||
* url参数添加重置次数,retry
|
||||
* 修改默认tts, 手动导入
|
||||
* 升级android studio
|
||||
|
||||
**2021/04/30**
|
||||
|
||||
* epub插图,epublib优化,图片解码优化,epub读取导出优化。by ag2s20150909
|
||||
* 添加高刷设置
|
||||
* 其它一些优化
|
||||
* pro版本被play商店下架了,先把pro设置图片背景的功能开放到所有版本,使用pro版本的可以使用备份恢复功能切换最新版本
|
||||
|
||||
**2021/04/16**
|
||||
|
||||
* 去掉google统计,解决华为手机使用崩溃的bug
|
||||
* 添加规则订阅时判断重复提醒
|
||||
* 添加恢复预设布局的功能, 添加一个微信读书布局作为预设布局
|
||||
|
||||
**2021/04/08**
|
||||
|
||||
* 缓存时重新检查并缓存图片
|
||||
* 订阅源调试添加源码查看
|
||||
* web调试不输出源码
|
||||
* 修复bug
|
||||
* 换源优化 --- by ag2s20150909
|
||||
* 修复localBook获取书名作者名的逻辑
|
||||
* 修复导出的epub的标题文字过大的bug
|
||||
* 优化图片排版
|
||||
|
||||
**2021/04/02**
|
||||
|
||||
* 修复bug
|
||||
* 书源调试添加源码查看
|
||||
* 添加导出epub by ag2s20150909
|
||||
* 换源添加是否校验作者选项
|
||||
|
||||
**2021/03/31**
|
||||
|
||||
* 优化epubLib by ag2s20150909
|
||||
* 升级库,修改弃用方法
|
||||
* tts引擎添加导入导出功能
|
||||
|
||||
**2021/03/23**
|
||||
|
||||
* 修复繁简转换“勐”“十”问题。使用了剥离HanLP简繁代码的民间库。APK减少6M左右
|
||||
* js添加一个并发访问的方法 java.ajaxAll(urlList: Array<String>) 返回 Array<StrResponse?>
|
||||
* 优化目录并发访问
|
||||
* 添加自定义epublib,支持epub v3解析目录。by ag2s20150909
|
||||
|
||||
**2021/03/19**
|
||||
|
||||
* 修复图片地址参数缺少的bug
|
||||
* 修复更改替换规则时多次重新加载正文导致朗读多次停顿的bug
|
||||
* 修复是否使用替换默认值修改后不及时生效的bug
|
||||
* 修复繁简转换“勐”“十”问题。使用了剥离HanLP简繁代码的民间库。APK减少6M左右 by hoodie13
|
||||
* 百度tsn改为tts
|
||||
|
||||
**2021/03/15**
|
||||
|
||||
* 优化图片TEXT样式显示
|
||||
* 图片url在解析正文时就拼接成绝对url
|
||||
* 修复一些bug
|
||||
|
||||
**2021/03/08**
|
||||
|
||||
* 阅读页面停留10分钟之后自动备份进度
|
||||
* 添加了针对中文的断行排版处理-by hoodie13, 需要再阅读界面设置里手动开启
|
||||
* 添加朗读快捷方式
|
||||
* 优化Epub解析 by hoodie13
|
||||
* epub书籍增加cache by hoodie13
|
||||
* 修复切换书籍或者章节时的断言崩溃问题。看漫画容易复现。 by hoodie13
|
||||
* 修正增加书签alert的正文内容较多时,确定键溢出屏幕问题 by hoodie13
|
||||
* 图片样式添加TEXT, 阅读界面菜单里可以选择图片样式
|
||||
|
||||
**2021/02/26**
|
||||
|
||||
* 添加反转内容功能
|
||||
* 更新章节时若无目录url将自动加载详情页
|
||||
* 添加变量nextChapterUrl
|
||||
* 订阅跳转外部应用时提示
|
||||
* 修复恢复bug
|
||||
* 详情页拼接url改为重定向后的地址
|
||||
* 不重复解析详情页
|
||||
|
||||
**2021/02/21**
|
||||
|
||||
* 下一页规则改为在内容规则之后执行
|
||||
* 书籍导出增加编码设置和导出文件夹设置,使用替换设置
|
||||
* 导入源添加等待框
|
||||
* 修复一些崩溃bug
|
||||
|
||||
**2021/02/16**
|
||||
|
||||
* 修复分享内容不对的bug
|
||||
* 优化主题颜色,添加透明度
|
||||
* rss分类url支持js
|
||||
* 打开阅读时同步阅读进度
|
||||
|
||||
**2021/02/09**
|
||||
|
||||
* 修复分组内书籍数目少于搜索线程数目,会导致搜索线程数目变低
|
||||
* 修复保存书源时不更新书源时间的bug
|
||||
* 订阅添加夜间模式,需启用js,还不是很完善
|
||||
* 优化源导入界面
|
||||
|
||||
**2021/01/18**
|
||||
|
||||
* 增加三星 S Pen 支持 by [dacer](https://github.com/dacer)
|
||||
* 订阅添加阅读下载,可以从多个渠道下载
|
||||
* 修复一些BUG
|
||||
**2020/12/30**
|
||||
|
||||
* 解决文件下载异常,在线语音可正常播放 by [Celeter](https://github.com/Celeter)
|
||||
* 更新默认在线朗读库, 默认id小于0方便下次更新时删除旧数据, 有重复的自己删除
|
||||
* 导入导出书单
|
||||
* 其它一些优化
|
||||
|
||||
**2020/12/27**
|
||||
|
||||
* 订阅添加搜索和分组
|
||||
* 修复部分手机状态栏bug
|
||||
* 单url订阅支持内容规则和样式
|
||||
|
||||
**2020/12/09**
|
||||
|
||||
* 修复bug
|
||||
* 优化中文排序
|
||||
* 优化编码识别
|
||||
* 选择文字时优先选词
|
||||
* 优化进度同步,进入书籍时同步,每次同步单本书,减少同步文件大小
|
||||
|
||||
**2020/11/18**
|
||||
|
||||
* 优化导航栏
|
||||
* js添加java.log(msg: String)用于调试时输出消息
|
||||
* js添加cookie变量,方法见io.legado.app.help.http.api.CookieManager
|
||||
* js添加cache变量,可以用来存储token之类的临时值,可以设置保存时间,方法见io.legado.app.help.CacheManager
|
||||
* 需要token的网站可以用js来写了,比如阿里tts
|
||||
|
||||
**2020/11/15**
|
||||
|
||||
* 正文规则添加字体规则,返回ByteArray
|
||||
* js添加方法:
|
||||
|
||||
```
|
||||
base64DecodeToByteArray(str: String?): ByteArray?
|
||||
base64DecodeToByteArray(str: String?, flags: Int): ByteArray?
|
||||
```
|
||||
|
||||
**2020/11/07**
|
||||
|
||||
* 详情页菜单添加拷贝URL
|
||||
* 解决一些书名太长缓存报错的bug
|
||||
* 添加备份搜索记录
|
||||
* 替换编辑界面添加正则学习教程
|
||||
* 去除解析目录时拼接相对url,提升解析速度
|
||||
* 自动分段优化 by [tumuyan](https://github.com/tumuyan)
|
||||
* web支持图片显示 by [六月](https://github.com/Celeter)
|
||||
|
||||
**2020/10/24**
|
||||
|
||||
* 修复选择错误的bug
|
||||
* 修复长图最后一张不能滚动的bug
|
||||
* js添加java.getCookie(sourceUrl:String, key:String? = null)来获取登录后的cookie
|
||||
by [AndyBernie](https://github.com/AndyBernie)
|
||||
|
||||
```
|
||||
java.getCookie("http://baidu.com", null) => userid=1234;pwd=adbcd
|
||||
java.getCookie("http://baidu.com", "userid") => 1234
|
||||
```
|
||||
|
||||
* 修复简繁转换没有处理标题
|
||||
* 每本书可以单独设置翻页动画,在菜单里
|
||||
* 添加重新分段功能,针对每本书,在菜单里,分段代码来自[tumuyan](https://github.com/tumuyan)
|
||||
|
||||
**2020/10/07**
|
||||
|
||||
* 更新时预下载10章
|
||||
* 支持更多分组
|
||||
* url添加js参数,解析url时执行,可在访问url时处理url,例
|
||||
|
||||
```
|
||||
https://www.baidu.com,{"js":"java.headerMap.put('xxx', 'yyy')"}
|
||||
https://www.baidu.com,{"js":"java.url=java.url+'yyyy'"}
|
||||
```
|
||||
|
||||
**2020/09/29**
|
||||
|
||||
* 增加了几个方法用于处理文件 by [Celeter](https://github.com/Celeter)
|
||||
|
||||
```
|
||||
//文件下载,content为十六进制字符串,url用于生成文件名,返回文件路径
|
||||
downloadFile(content: String, url: String): String
|
||||
//文件解压,zipPath为压缩文件路径,返回解压路径
|
||||
unzipFile(zipPath: String): String
|
||||
//文件夹内所有文件读取
|
||||
getTxtInFolder(unzipPath: String): String
|
||||
```
|
||||
|
||||
* 增加type字段,返回16进制字符串,例:`https://www.baidu.com,{"type":"zip"}`
|
||||
* 底部操作栏阴影跟随设置调节
|
||||
@@ -0,0 +1,5 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/web.iml" filepath="$PROJECT_DIR$/.idea/web.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/../../../../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,8 @@
|
||||
/*!
|
||||
* Powered by uglifiyJS v2.6.1, Build by http://tool.uis.cc/jsmin/
|
||||
* build time: Sun Jul 25 2021 19:58:00 GMT+0800 (中国标准时间)
|
||||
*/
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1<i.call(n,e)!==r}):k.filter(n,e,r)}function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function M(e){return e}function I(e){throw e}function W(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),k.ready()}function X(e,t){return t.toUpperCase()}function V(e){return e.replace(z,"ms-").replace(U,X)}function Y(){this.expando=k.expando+Y.uid++}function ee(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:K.test(i)?JSON.parse(i):i)}catch(e){}J.set(e,t,n)}else n=void 0;return n}function le(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},u=s(),l=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==l&&+u)&&ne.exec(k.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)k.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,k.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function fe(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;f>c;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Q.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&se(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ce[s])||(o=a.body.appendChild(a.createElement(s)),u=k.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ce[s]=u)))):"none"!==n&&(l[c]="none",Q.set(r,"display",n)));for(c=0;f>c;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;r>n;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}function we(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;h>d;d++)if((o=e[d])||0===o)if("object"===w(o))k.merge(p,o.nodeType?[o]:o);else if(be.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+k.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;k.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&-1<k.inArray(o,r))i&&i.push(o);else if(l=oe(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n)for(c=0;o=a[c++];)he.test(o.type||"")&&n.push(o);return f}function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.tyLine truncated
|
||||
w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=G.needsContext.test(e)?0:o.length;i--&&(a=o[i],!b.relative[s=a.type]);)if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=k.split("").sort(D).join("")===k,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;return n?void 0:!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);k.find=h,k.expr=h.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=h.uniqueSort,k.text=h.getText,k.isXMLDoc=h.isXML,k.contains=h.contains,k.escapeSelector=h.escape;var T=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=k.expr.match.needsContext,D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;r>t;t++)if(k.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;r>t;t++)k.find(e,i[t],n);return r>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&N.test(e)?k(e):e||[],!1).length}});var q,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&k(e);if(!N.test(e))for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(k(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return"undefined"!=typeof e.contentDocument?e.contentDocument:(A(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(r,i){k.fn[r]=function(e,t){var n=k.map(this,i,e);return"Until"!==r.slice(-5)&&(tLine truncated
|
||||
k.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;o>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each(["toggle","show","hide"],function(e,r){var i=k.fn[r];k.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(ft(r,!0),e,t,n)}}),k.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){k.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),rt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){it||(it=!0,lt())},k.fx.stop=function(){it=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(r,e){return r=k.fx&&k.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},ot=E.createElement("input"),at=E.createElement("select").appendChild(E.createElement("option")),ot.type="checkbox",y.checkOn=""!==ot.value,y.optSelected=at.selected,(ot=E.createElement("input")).value="t",ot.type="radio",y.radioValue="t"===ot.value;var ht,gt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return _(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;return 3!==o&&8!==o&&2!==o?"undefined"==typeof e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r):void 0},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(R);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var a=gt[t]||k.find.attr;gt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=gt[o],gt[o]=r,r=null!=a(e,t,n)?o:null,gt[o]=i),r}});var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;k.fn.extend({prop:function(e,t){return _(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;return 3!==o&&8!==o&&2!==o?(1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]):void 0},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){k(this).addClass(t.call(this,e,xt(this)))});if((e=bt(t)).length)for(;n=this[u++];)if(i=xt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){k(this).removeClass(t.call(this,e,xt(this)))});if(!arguments.length)return this.attr("class","");if((e=bt(t)).length)for(;n=this[u++];)if(i=xt(n),r=1===n.nodeType&&" "+mt(i)+" "){for(a=0;o=e[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=mt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){k(this).toggleClass(i.call(this,e,xt(this),t),t)}):this.each(function(){var e,t,n,r;if(a)for(t=0,n=k(this),r=bt(i);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!==o||((e=xt(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+mt(xt(n))+" ").indexOf(t))return!0;return!1}});var wt=/\r/g;k.fn.extend({val:function(n){var rLine truncated
|
||||
visibleClass:"visible"},userConfig),"jQuery"!=typeof config.target&&(config.target=$(config.target)),$this._hide=function(event){config.target.hasClass(config.visibleClass)&&(event&&(event.preventDefault(),event.stopPropagation()),config.target.removeClass(config.visibleClass),window.setTimeout(function(){config.resetScroll&&$this.scrollTop(0),config.resetForms&&$this.find("form").each(function(){this.reset()})},config.delay))},$this.css("-ms-overflow-style","-ms-autohiding-scrollbar").css("-webkit-overflow-scrolling","touch"),config.hideOnClick&&($this.find("a").css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),$this.on("click","a",function(event){var $a=$(this),href=$a.attr("href"),target=$a.attr("target");href&&"#"!=href&&""!=href&&href!="#"+id&&(event.preventDefault(),event.stopPropagation(),$this._hide(),window.setTimeout(function(){"_blank"==target?window.open(href):window.location.href=href},config.delay+10))})),$this.on("touchstart",function(event){$this.touchPosX=event.originalEvent.touches[0].pageX,$this.touchPosY=event.originalEvent.touches[0].pageY}),$this.on("touchmove",function(event){if(null!==$this.touchPosX&&null!==$this.touchPosY){var diffX=$this.touchPosX-event.originalEvent.touches[0].pageX,diffY=$this.touchPosY-event.originalEvent.touches[0].pageY,th=$this.outerHeight(),ts=$this.get(0).scrollHeight-$this.scrollTop();if(config.hideOnSwipe){var result=!1,boundary=20,delta=50;switch(config.side){case"left":result=boundary>diffY&&diffY>-1*boundary&&diffX>delta;break;case"right":result=boundary>diffY&&diffY>-1*boundary&&-1*delta>diffX;break;case"top":result=boundary>diffX&&diffX>-1*boundary&&diffY>delta;break;case"bottom":result=boundary>diffX&&diffX>-1*boundary&&-1*delta>diffY}if(result)return $this.touchPosX=null,$this.touchPosY=null,$this._hide(),!1}($this.scrollTop()<0&&0>diffY||ts>th-2&&th+2>ts&&diffY>0)&&(event.preventDefault(),event.stopPropagation())}}),$this.on("click touchend touchstart touchmove",function(event){event.stopPropagation()}),$this.on("click",'a[href="#'+id+'"]',function(event){event.preventDefault(),event.stopPropagation(),config.target.removeClass(config.visibleClass)}),$body.on("click touchend",function(event){$this._hide(event)}),$body.on("click",'a[href="#'+id+'"]',function(event){event.preventDefault(),event.stopPropagation(),config.target.toggleClass(config.visibleClass)}),config.hideOnEscape&&$window.on("keydown",function(event){27==event.keyCode&&$this._hide(event)}),$this},$.fn.placeholder=function(){if("undefined"!=typeof document.createElement("input").placeholder)return $(this);if(0==this.length)return $this;if(this.length>1){for(var i=0;i<this.length;i++)$(this[i]).placeholder();return $this}var $this=$(this);return $this.find("input[type=text],textarea").each(function(){var i=$(this);(""==i.val()||i.val()==i.attr("placeholder"))&&i.addClass("polyfill-placeholder").val(i.attr("placeholder"))}).on("blur",function(){var i=$(this);i.attr("name").match(/-polyfill-field$/)||""==i.val()&&i.addClass("polyfill-placeholder").val(i.attr("placeholder"))}).on("focus",function(){var i=$(this);i.attr("name").match(/-polyfill-field$/)||i.val()==i.attr("placeholder")&&i.removeClass("polyfill-placeholder").val("")}),$this.find("input[type=password]").each(function(){var i=$(this),x=$($("<div>").append(i.clone()).remove().html().replace(/type="password"/i,'type="text"').replace(/type=password/i,"type=text"));""!=i.attr("id")&&x.attr("id",i.attr("id")+"-polyfill-field"),""!=i.attr("name")&&x.attr("name",i.attr("name")+"-polyfill-field"),x.addClass("polyfill-placeholder").val(x.attr("placeholder")).insertAfter(i),""==i.val()?i.hide():x.hide(),i.on("blur",function(event){event.preventDefault();var x=i.parent().find("input[name="+i.attr("name")+"-polyfill-field]");""==i.val()&&(i.hide(),x.show())}),x.on("focus",function(event){event.preventDefault();var i=x.parent().find("input[name="+x.attr("name").replace("-polyfill-field","")+"]");x.hide(),i.show().focus()}).on("keypress",function(event){event.preventDefault(),x.val("")})}),$this.on("submit",function(){$this.find("input[type=text],input[type=password],textarea").each(function(event){var i=$(this);i.attr("name").match(/-polyfill-field$/)&&i.attr("name",""),i.val()==i.attr("placeholder")&&(i.removeClass("polyfill-placeholder"),i.val(""))})}).on("reset",function(event){event.preventDefault(),$this.find("select").val($("option:first").val()),$this.find("input,textarea").each(function(){var x,i=$(this);switch(i.removeClass("polyfill-placeholder"),this.type){case"submit":case"reset":break;case"password":i.val(i.attr("defaultValue")),x=i.parent().find("input[name="+i.attr("name")+"-polyfill-field]"),""==i.val()?(i.hide(),x.show()):(i.show(),x.hide());break;case"checkbox":case"radio":i.attr("checked",i.attr("defaultValue"));break;case"text":case"textarea":i.val(i.attr("defaultValue")),""==i.val()&&(i.addClass("polyfill-placeholder"),i.val(i.attr("placeholder")));break;default:i.val(i.attr("defaultValue"))}})}),$this},$.prioritizeLine truncated
|
||||
@@ -0,0 +1,256 @@
|
||||
/*
|
||||
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
|
||||
* Digest Algorithm, as defined in RFC 1321.
|
||||
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
|
||||
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
||||
* Distributed under the BSD License
|
||||
* See http://pajhome.org.uk/crypt/md5 for more info.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Configurable variables. You may need to tweak these to be compatible with
|
||||
* the server-side, but the defaults work in most cases.
|
||||
*/
|
||||
var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */
|
||||
var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */
|
||||
var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */
|
||||
|
||||
/*
|
||||
* These are the functions you'll usually want to call
|
||||
* They take string arguments and return either hex or base-64 encoded strings
|
||||
*/
|
||||
function hex_md5(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz));}
|
||||
function b64_md5(s){ return binl2b64(core_md5(str2binl(s), s.length * chrsz));}
|
||||
function str_md5(s){ return binl2str(core_md5(str2binl(s), s.length * chrsz));}
|
||||
function hex_hmac_md5(key, data) { return binl2hex(core_hmac_md5(key, data)); }
|
||||
function b64_hmac_md5(key, data) { return binl2b64(core_hmac_md5(key, data)); }
|
||||
function str_hmac_md5(key, data) { return binl2str(core_hmac_md5(key, data)); }
|
||||
|
||||
/*
|
||||
* Perform a simple self-test to see if the VM is working
|
||||
*/
|
||||
function md5_vm_test()
|
||||
{
|
||||
return hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72";
|
||||
}
|
||||
|
||||
/*
|
||||
* Calculate the MD5 of an array of little-endian words, and a bit length
|
||||
*/
|
||||
function core_md5(x, len)
|
||||
{
|
||||
/* append padding */
|
||||
x[len >> 5] |= 0x80 << ((len) % 32);
|
||||
x[(((len + 64) >>> 9) << 4) + 14] = len;
|
||||
|
||||
var a = 1732584193;
|
||||
var b = -271733879;
|
||||
var c = -1732584194;
|
||||
var d = 271733878;
|
||||
|
||||
for(var i = 0; i < x.length; i += 16)
|
||||
{
|
||||
var olda = a;
|
||||
var oldb = b;
|
||||
var oldc = c;
|
||||
var oldd = d;
|
||||
|
||||
a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
|
||||
d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
|
||||
c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
|
||||
b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
|
||||
a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
|
||||
d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
|
||||
c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
|
||||
b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
|
||||
a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
|
||||
d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
|
||||
c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
|
||||
b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
|
||||
a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
|
||||
d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
|
||||
c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
|
||||
b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
|
||||
|
||||
a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
|
||||
d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
|
||||
c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
|
||||
b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
|
||||
a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
|
||||
d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
|
||||
c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
|
||||
b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
|
||||
a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
|
||||
d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
|
||||
c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
|
||||
b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
|
||||
a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
|
||||
d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
|
||||
c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
|
||||
b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
|
||||
|
||||
a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
|
||||
d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
|
||||
c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
|
||||
b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
|
||||
a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
|
||||
d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
|
||||
c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
|
||||
b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
|
||||
a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
|
||||
d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
|
||||
c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
|
||||
b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
|
||||
a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
|
||||
d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
|
||||
c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
|
||||
b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
|
||||
|
||||
a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
|
||||
d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
|
||||
c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
|
||||
b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
|
||||
a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
|
||||
d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
|
||||
c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
|
||||
b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
|
||||
a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
|
||||
d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
|
||||
c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
|
||||
b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
|
||||
a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
|
||||
d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
|
||||
c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
|
||||
b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
|
||||
|
||||
a = safe_add(a, olda);
|
||||
b = safe_add(b, oldb);
|
||||
c = safe_add(c, oldc);
|
||||
d = safe_add(d, oldd);
|
||||
}
|
||||
return Array(a, b, c, d);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* These functions implement the four basic operations the algorithm uses.
|
||||
*/
|
||||
function md5_cmn(q, a, b, x, s, t)
|
||||
{
|
||||
return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
|
||||
}
|
||||
function md5_ff(a, b, c, d, x, s, t)
|
||||
{
|
||||
return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
|
||||
}
|
||||
function md5_gg(a, b, c, d, x, s, t)
|
||||
{
|
||||
return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
|
||||
}
|
||||
function md5_hh(a, b, c, d, x, s, t)
|
||||
{
|
||||
return md5_cmn(b ^ c ^ d, a, b, x, s, t);
|
||||
}
|
||||
function md5_ii(a, b, c, d, x, s, t)
|
||||
{
|
||||
return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
|
||||
}
|
||||
|
||||
/*
|
||||
* Calculate the HMAC-MD5, of a key and some data
|
||||
*/
|
||||
function core_hmac_md5(key, data)
|
||||
{
|
||||
var bkey = str2binl(key);
|
||||
if(bkey.length > 16) bkey = core_md5(bkey, key.length * chrsz);
|
||||
|
||||
var ipad = Array(16), opad = Array(16);
|
||||
for(var i = 0; i < 16; i++)
|
||||
{
|
||||
ipad[i] = bkey[i] ^ 0x36363636;
|
||||
opad[i] = bkey[i] ^ 0x5C5C5C5C;
|
||||
}
|
||||
|
||||
var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz);
|
||||
return core_md5(opad.concat(hash), 512 + 128);
|
||||
}
|
||||
|
||||
/*
|
||||
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
||||
* to work around bugs in some JS interpreters.
|
||||
*/
|
||||
function safe_add(x, y)
|
||||
{
|
||||
var lsw = (x & 0xFFFF) + (y & 0xFFFF);
|
||||
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
||||
return (msw << 16) | (lsw & 0xFFFF);
|
||||
}
|
||||
|
||||
/*
|
||||
* Bitwise rotate a 32-bit number to the left.
|
||||
*/
|
||||
function bit_rol(num, cnt)
|
||||
{
|
||||
return (num << cnt) | (num >>> (32 - cnt));
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert a string to an array of little-endian words
|
||||
* If chrsz is ASCII, characters >255 have their hi-byte silently ignored.
|
||||
*/
|
||||
function str2binl(str)
|
||||
{
|
||||
var bin = Array();
|
||||
var mask = (1 << chrsz) - 1;
|
||||
for(var i = 0; i < str.length * chrsz; i += chrsz)
|
||||
bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32);
|
||||
return bin;
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert an array of little-endian words to a string
|
||||
*/
|
||||
function binl2str(bin)
|
||||
{
|
||||
var str = "";
|
||||
var mask = (1 << chrsz) - 1;
|
||||
for(var i = 0; i < bin.length * 32; i += chrsz)
|
||||
str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & mask);
|
||||
return str;
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert an array of little-endian words to a hex string.
|
||||
*/
|
||||
function binl2hex(binarray)
|
||||
{
|
||||
var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
|
||||
var str = "";
|
||||
for(var i = 0; i < binarray.length * 4; i++)
|
||||
{
|
||||
str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
|
||||
hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert an array of little-endian words to a base-64 string
|
||||
*/
|
||||
function binl2b64(binarray)
|
||||
{
|
||||
var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
var str = "";
|
||||
for(var i = 0; i < binarray.length * 4; i += 3)
|
||||
{
|
||||
var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16)
|
||||
| (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 )
|
||||
| ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF);
|
||||
for(var j = 0; j < 4; j++)
|
||||
{
|
||||
if(i * 8 + j * 6 > binarray.length * 32) str += b64pad;
|
||||
else str += tab.charAt((triplet >> 6*(3-j)) & 0x3F);
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
.editor {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
}
|
||||
.setbox,
|
||||
.menu,
|
||||
.outbox {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
max-height: 100vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.menu {
|
||||
justify-content: center;
|
||||
max-width: 90px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
.menu .button {
|
||||
width: 90px;
|
||||
height: 30px;
|
||||
min-height: 30px;
|
||||
margin: 5px 0px;
|
||||
cursor: pointer;
|
||||
}
|
||||
@keyframes stroker {
|
||||
0% {
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
100% {
|
||||
stroke-dashoffset: -240;
|
||||
}
|
||||
}
|
||||
.button rect {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
fill: transparent;
|
||||
stroke: #666;
|
||||
stroke-width: 2px;
|
||||
}
|
||||
.button rect.busy {
|
||||
stroke: #fd1850;
|
||||
stroke-dasharray: 30 90;
|
||||
animation: stroker 1s linear infinite;
|
||||
}
|
||||
.button text {
|
||||
text-anchor: middle;
|
||||
dominant-baseline: middle;
|
||||
}
|
||||
.setbox {
|
||||
min-width: 40em;
|
||||
}
|
||||
.rules {
|
||||
overflow: auto;
|
||||
}
|
||||
.tabbox {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
}
|
||||
.rules > * {
|
||||
display: flex;
|
||||
margin: 2px 0;
|
||||
}
|
||||
.rules textarea {
|
||||
flex: 1;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.rules > *,
|
||||
.rules > * > div,
|
||||
.rules textarea {
|
||||
min-height: 1em;
|
||||
}
|
||||
textarea {
|
||||
word-break: break-all;
|
||||
}
|
||||
.tabtitle {
|
||||
display: flex;
|
||||
z-index: 1;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.tabtitle > div {
|
||||
cursor: pointer;
|
||||
padding: 1px 10px 0 10px;
|
||||
border-bottom: 3px solid transparent;
|
||||
font-weight: bold;
|
||||
}
|
||||
.tabtitle > .this {
|
||||
color: #4f9da6;
|
||||
border-bottom-color: #4ebbe4;
|
||||
}
|
||||
.tabbody {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
margin-top: -1px;
|
||||
border: 1px solid #a9a9a9;
|
||||
height: 0;
|
||||
}
|
||||
.tabbody > * {
|
||||
flex: 1;
|
||||
flex-flow: column;
|
||||
display: none;
|
||||
}
|
||||
.tabbody > .this {
|
||||
display: flex;
|
||||
}
|
||||
.tabbody > * > .titlebar {
|
||||
display: flex;
|
||||
}
|
||||
.tabbody > * > .titlebar > * {
|
||||
flex: 1;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
.tabbody > * > .context {
|
||||
flex: 1;
|
||||
flex-flow: column;
|
||||
border: 0;
|
||||
padding: 5px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.tabbody > * > .inputbox {
|
||||
border: 0;
|
||||
border-bottom: #a9a9a9 solid 1px;
|
||||
height: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
.link > * {
|
||||
display: flex;
|
||||
margin: 5px;
|
||||
border-bottom: 1px solid;
|
||||
text-decoration: none;
|
||||
}
|
||||
#RuleList > label > * {
|
||||
background: #eee;
|
||||
padding-left: 3px;
|
||||
margin: 2px 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
#RuleList input[type="radio"] {
|
||||
display: none;
|
||||
}
|
||||
#RuleList input[type="radio"]:checked + * {
|
||||
background: #15cda8;
|
||||
}
|
||||
.isError {
|
||||
color: #ff0000;
|
||||
}
|
||||
@@ -0,0 +1,428 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>阅读3.0源编辑器_V4.0</title>
|
||||
<link rel="icon" href="favicon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="index.css"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="editor">
|
||||
<div class="setbox">
|
||||
<div>
|
||||
<a href="../index.html">←主页</a>
|
||||
<b>书源</b>
|
||||
</div>
|
||||
<div class="rules">
|
||||
<div><b>基本</b></div>
|
||||
<div>
|
||||
<div>源域名 :</div>
|
||||
<textarea rows="1" id="bookSourceUrl" class="base" title="bookSourceUrl"
|
||||
placeholder="<必填>通常填写网站主页,例: https://www.qidian.com"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>源类型 :</div>
|
||||
<textarea rows="1" id="bookSourceType" class="base" title="bookSourceType"
|
||||
placeholder="<必填>0:文本 1:音频"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>源名称 :</div>
|
||||
<textarea rows="1" id="bookSourceName" class="base" title="bookSourceName"
|
||||
placeholder="<必填>会显示在源列表"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>源分组 :</div>
|
||||
<textarea rows="1" id="bookSourceGroup" class="base" title="bookSourceGroup"
|
||||
placeholder="<选填>描述源的特征信息"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>源注释 :</div>
|
||||
<textarea rows="1" id="bookSourceComment" class="base" title="bookSourceComment"
|
||||
placeholder="<选填>描述源作者和状态"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>登录地址:</div>
|
||||
<textarea rows="1" id="loginUrl" class="base" title="loginUrl"
|
||||
placeholder="<选填>填写网站登录网址,仅在需要登录的源有用"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>登录界面:</div>
|
||||
<textarea rows="3" id="loginUi" class="base" title="loginUi"
|
||||
placeholder="<选填>自定义登录界面"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>登录检测:</div>
|
||||
<textarea rows="3" id="loginCheckJs" class="base" title="loginCheckJs"
|
||||
placeholder="<选填>登录检测js"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>并发率 :</div>
|
||||
<textarea rows="1" id="concurrentRate" class="base" title="concurrentRate"
|
||||
placeholder="<选填>并发率"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>请求头 :</div>
|
||||
<textarea rows="3" id="header" class="base" title="header"
|
||||
placeholder="<选填>客户端标识"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>链接验证:</div>
|
||||
<textarea rows="1" id="bookUrlPattern" class="base" title="bookUrlPattern"
|
||||
placeholder="<选填>当详情页URL与源URL的域名不一致时有效,用于添加网址"></textarea>
|
||||
</div>
|
||||
<p></p>
|
||||
<div><b>搜索</b></div>
|
||||
<div>
|
||||
<div>搜索地址:</div>
|
||||
<textarea rows="1" id="searchUrl" class="base" title="searchUrl"
|
||||
placeholder="[域名可省略]/search.php@kw={{key}}"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>校验文字:</div>
|
||||
<textarea rows="1" id="ruleSearch_checkKeyWord" class="ruleSearch"
|
||||
title="checkKeyWord"
|
||||
placeholder="校验关键字"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>列表规则:</div>
|
||||
<textarea rows="1" id="ruleSearch_bookList" class="ruleSearch" title="bookList"
|
||||
placeholder="选择书籍节点 (规则结果为List<Element>)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>书名规则:</div>
|
||||
<textarea rows="1" id="ruleSearch_name" class="ruleSearch" title="name"
|
||||
placeholder="选择节点书名 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>作者规则:</div>
|
||||
<textarea rows="1" id="ruleSearch_author" class="ruleSearch" title="author"
|
||||
placeholder="选择节点作者 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>分类规则:</div>
|
||||
<textarea rows="1" id="ruleSearch_kind" class="ruleSearch" title="kind"
|
||||
placeholder="选择节点分类信息 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>字数规则:</div>
|
||||
<textarea rows="1" id="ruleSearch_wordCount" class="ruleSearch" title="wordCount"
|
||||
placeholder="选择节点字数信息 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>最新章节:</div>
|
||||
<textarea rows="1" id="ruleSearch_lastChapter" class="ruleSearch"
|
||||
title="lastChapter"
|
||||
placeholder="选择节点最新章节 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>简介规则:</div>
|
||||
<textarea rows="1" id="ruleSearch_intro" class="ruleSearch" title="intro"
|
||||
placeholder="选择节点书籍简介 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>封面规则:</div>
|
||||
<textarea rows="1" id="ruleSearch_coverUrl" class="ruleSearch" title="coverUrl"
|
||||
placeholder="选择节点书籍封面 (规则结果为String类型的url)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>详情地址:</div>
|
||||
<textarea rows="1" id="ruleSearch_bookUrl" class="ruleSearch" title="bookUrl"
|
||||
placeholder="选择书籍详情页网址 (规则结果为String类型的url)"></textarea>
|
||||
</div>
|
||||
<p></p>
|
||||
<div><b>发现</b></div>
|
||||
<div>
|
||||
<div>发现地址:</div>
|
||||
<textarea rows="6" id="exploreUrl" class="base" title="exploreUrl"
|
||||
placeholder="内容能显示在发现菜单 每行一条发现分类(网址域名可省略),例: 名称1::网址(Url)1 名称2::网址(Url)2 ..."></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>列表规则:</div>
|
||||
<textarea rows="1" id="ruleExplore_bookList" class="ruleExplore" title="bookList"
|
||||
placeholder="选择书籍节点 (规则结果为List<Element>)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>书名规则:</div>
|
||||
<textarea rows="1" id="ruleExplore_name" class="ruleExplore" title="name"
|
||||
placeholder="选择节点书名 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>作者规则:</div>
|
||||
<textarea rows="1" id="ruleExplore_author" class="ruleExplore" title="author"
|
||||
placeholder="选择节点作者 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>分类规则:</div>
|
||||
<textarea rows="1" id="ruleExplore_kind" class="ruleExplore" title="kind"
|
||||
placeholder="选择节点分类信息 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>字数规则:</div>
|
||||
<textarea rows="1" id="ruleExplore_wordCount" class="ruleExplore" title="wordCount"
|
||||
placeholder="选择节点字数信息 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>最新章节:</div>
|
||||
<textarea rows="1" id="ruleExplore_lastChapter" class="ruleExplore"
|
||||
title="lastChapter"
|
||||
placeholder="选择节点最新章节 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>简介规则:</div>
|
||||
<textarea rows="1" id="ruleExplore_intro" class="ruleExplore" title="intro"
|
||||
placeholder="选择节点书籍简介 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>封面规则:</div>
|
||||
<textarea rows="1" id="ruleExplore_coverUrl" class="ruleExplore" title="coverUrl"
|
||||
placeholder="选择节点书籍封面 (规则结果为String类型的url)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>详情地址:</div>
|
||||
<textarea rows="1" id="ruleExplore_bookUrl" class="ruleExplore" title="bookUrl"
|
||||
placeholder="选择书籍详情页网址 (规则结果为String类型的url)"></textarea>
|
||||
</div>
|
||||
<p></p>
|
||||
<div><b>详情</b></div>
|
||||
<div>
|
||||
<div>预处理 :</div>
|
||||
<textarea rows="3" id="ruleBookInfo_init" class="ruleBookInfo" title="init"
|
||||
placeholder="用于加速详情信息检索,只支持AllInOne规则"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>书名规则:</div>
|
||||
<textarea rows="1" id="ruleBookInfo_name" class="ruleBookInfo" title="name"
|
||||
placeholder="选择节点书名 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>作者规则:</div>
|
||||
<textarea rows="1" id="ruleBookInfo_author" class="ruleBookInfo" title="author"
|
||||
placeholder="选择节点作者 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>分类规则:</div>
|
||||
<textarea rows="1" id="ruleBookInfo_kind" class="ruleBookInfo" title="kind"
|
||||
placeholder="选择节点分类信息 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>字数规则:</div>
|
||||
<textarea rows="1" id="ruleBookInfo_wordCount" class="ruleBookInfo"
|
||||
title="wordCount"
|
||||
placeholder="选择节点字数信息 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>最新章节:</div>
|
||||
<textarea rows="1" id="ruleBookInfo_lastChapter" class="ruleBookInfo"
|
||||
title="lastChapter"
|
||||
placeholder="选择节点最新章节 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>简介规则:</div>
|
||||
<textarea rows="1" id="ruleBookInfo_intro" class="ruleBookInfo" title="intro"
|
||||
placeholder="选择节点书籍简介 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>封面规则:</div>
|
||||
<textarea rows="1" id="ruleBookInfo_coverUrl" class="ruleBookInfo" title="coverUrl"
|
||||
placeholder="选择节点书籍封面 (规则结果为String类型的url)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>目录地址:</div>
|
||||
<textarea rows="1" id="ruleBookInfo_tocUrl" class="ruleBookInfo" title="tocUrl"
|
||||
placeholder="选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)"></textarea>
|
||||
</div>
|
||||
<p></p>
|
||||
<div><b>目录</b></div>
|
||||
<div>
|
||||
<div>列表规则:</div>
|
||||
<textarea rows="3" id="ruleToc_chapterList" class="ruleToc" title="chapterList"
|
||||
placeholder="选择目录列表的章节节点 (规则结果为List<Element>)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>章节名称:</div>
|
||||
<textarea rows="1" id="ruleToc_chapterName" class="ruleToc" title="chapterName"
|
||||
placeholder="选择章节名称 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>章节地址:</div>
|
||||
<textarea rows="1" id="ruleToc_chapterUrl" class="ruleToc" title="chapterUrl"
|
||||
placeholder="选择章节链接 (规则结果为String类型的Url)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>收费标识:</div>
|
||||
<textarea rows="1" id="ruleToc_isVip" class="ruleToc" title="isVip"
|
||||
placeholder="章节是否为VIP章节 (规则结果为Bool)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>购买标识:</div>
|
||||
<textarea rows="1" id="ruleToc_isPay" class="ruleToc" title="isPay"
|
||||
placeholder="章节是否为已购买 (规则结果为Bool)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>章节信息:</div>
|
||||
<textarea rows="1" id="ruleToc_updateTime" class="ruleToc" title="updateTime"
|
||||
placeholder="选择章节信息 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>翻页规则:</div>
|
||||
<textarea rows="1" id="ruleToc_nextTocUrl" class="ruleToc" title="nextTocUrl"
|
||||
placeholder="选择目录下一页链接 (规则结果为List<String>或String)"></textarea>
|
||||
</div>
|
||||
<p></p>
|
||||
<div><b>正文</b></div>
|
||||
<div>
|
||||
<div>脚本注入:</div>
|
||||
<textarea rows="3" id="ruleContent_webJs" class="ruleContent" title="webJs"
|
||||
placeholder="注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>正文规则:</div>
|
||||
<textarea rows="1" id="ruleContent_content" class="ruleContent" title="content"
|
||||
placeholder="选择正文内容 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>翻页规则:</div>
|
||||
<textarea rows="1" id="ruleContent_nextContentUrl" class="ruleContent"
|
||||
title="nextContentUrl"
|
||||
placeholder="选择下一分页(不是下一章)链接 (规则结果为String类型的Url)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>资源正则:</div>
|
||||
<textarea rows="1" id="ruleContent_sourceRegex" class="ruleContent"
|
||||
title="sourceRegex"
|
||||
placeholder="匹配资源的url特征,用于嗅探"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>替换规则:</div>
|
||||
<textarea rows="1" id="ruleContent_replaceRegex" class="ruleContent"
|
||||
title="replaceRegex"
|
||||
placeholder="多页内容合并后替换,用于正文净化"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>图片样式:</div>
|
||||
<textarea rows="1" id="ruleContent_imageStyle" class="ruleContent"
|
||||
title="imageStyle"
|
||||
placeholder="FULL:铺满 不填:默认样式"></textarea>
|
||||
</div>
|
||||
<p></p>
|
||||
<div><b>其它规则</b></div>
|
||||
<div>
|
||||
<div>启用搜索:</div>
|
||||
<textarea rows="1" id="enabled" class="base" title="enabled"
|
||||
placeholder="启用: true 关闭: false (可选,默认true)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>启用发现:</div>
|
||||
<textarea rows="1" id="enabledExplore" class="base" title="enabledExplore"
|
||||
placeholder="启用: true 关闭: false (可选,默认true)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>搜索权重:</div>
|
||||
<textarea rows="1" id="weight" class="base" title="weight"
|
||||
placeholder="整数: 0~N (可选,默认0) | 数字越大越靠前"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>排序编号:</div>
|
||||
<textarea rows="1" id="customOrder" class="base" title="customOrder"
|
||||
placeholder="整数: 0~N (可选,默认0) | 数字越小越靠前"></textarea>
|
||||
</div>
|
||||
<div style="display:none;">
|
||||
<div>更新时间:</div>
|
||||
<textarea rows="1" id="lastUpdateTime" class="base" title="lastUpdateTime"
|
||||
placeholder="毫秒级时间戳 (自动生成) | 请勿手动填写"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu">
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⇈推送源</text>
|
||||
<rect id="push"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⇊拉取源</text>
|
||||
<rect id="pull"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⋘编辑源</text>
|
||||
<rect id="editor"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⋙生成源</text>
|
||||
<rect id="conver"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">✗清空表单</text>
|
||||
<rect id="initial"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">↶撤销操作</text>
|
||||
<rect id="undo"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">↷重做操作</text>
|
||||
<rect id="redo"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⇏调试源</text>
|
||||
<rect id="debug"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">✓保存源</text>
|
||||
<rect id="accept"></rect>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="outbox">
|
||||
<div class="tabbox">
|
||||
<div class="tabtitle">
|
||||
<div name="编辑源" class="tab1 this">编辑源</div>
|
||||
<div name="调试源" class="tab2">调试源</div>
|
||||
<div name="源列表" class="tab3">源列表</div>
|
||||
<div name="帮助信息" class="tab4">帮助信息</div>
|
||||
</div>
|
||||
<div class="tabbody">
|
||||
<div class="tab1 this">
|
||||
<textarea class="context" id="RuleJsonString"
|
||||
placeholder="这里输出序列化的JSON数据,可直接导入'阅读'APP"></textarea>
|
||||
</div>
|
||||
<div class="tab2">
|
||||
<input type="text" class="inputbox" id="DebugKey" placeholder="输入搜索关键字,默认搜「我的」">
|
||||
<textarea class="context" id="DebugConsole" placeholder="这里用于输出调试信息"></textarea>
|
||||
</div>
|
||||
<div class="tab3">
|
||||
<input type="text" class="inputbox" id="Filter"
|
||||
placeholder="输入筛选关键词(源名称、源URL或源分组)后按回车筛选源">
|
||||
<div class="titlebar">
|
||||
<button id="Import">导入源文件</button>
|
||||
<button id="Export">导出源文件</button>
|
||||
<button id="Delete">删除选中源</button>
|
||||
<button id="ClrAll">清空列表</button>
|
||||
</div>
|
||||
<div class="context" id="RuleList"></div>
|
||||
</div>
|
||||
<div class="tab4">
|
||||
<div class="context link">
|
||||
<a target="_blank" href="https://alanskycn.gitee.io/teachme">源制作教程</a>
|
||||
<a target="_blank"
|
||||
href="https://zhuanlan.zhihu.com/p/29436838">Xpath基础教程</a>
|
||||
<a target="_blank"
|
||||
href="https://zhuanlan.zhihu.com/p/32187820">Xpath高级教程</a>
|
||||
<a target="_blank" href="https://www.w3cschool.cn/regex_rmjc">正则表达式教程</a>
|
||||
<a target="_blank" href="https://regexr.com">正则表达式在线验证工具</a>
|
||||
<div>^$()[]{}.?+*| 这些是Java正则特殊符号,匹配需转义
|
||||
<br>(?s) 前缀表示跨行解析
|
||||
<br>(?m) 前缀表示逐行匹配
|
||||
<br>(?i) 前缀表示忽略大小写
|
||||
</div>
|
||||
<a target="_blank" href="https://www.beta.browxy.com">代码在线运行工具</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,516 @@
|
||||
// 简化js原生选择器
|
||||
function $(selector) { return document.querySelector(selector); }
|
||||
function $$(selector) { return document.querySelectorAll(selector); }
|
||||
// 读写Hash值(val未赋值时为读取)
|
||||
function hashParam(key, val) {
|
||||
let hashstr = decodeURIComponent(window.location.hash);
|
||||
let regKey = new RegExp(`${key}=([^&]*)`);
|
||||
let getVal = regKey.test(hashstr) ? hashstr.match(regKey)[1] : null;
|
||||
if (val == undefined) return getVal;
|
||||
if (hashstr == '' || hashstr == '#') {
|
||||
window.location.hash = `#${key}=${val}`;
|
||||
}
|
||||
else {
|
||||
if (getVal) window.location.hash = hashstr.replace(getVal, val);
|
||||
else {
|
||||
window.location.hash = hashstr.indexOf(key) > -1 ? hashstr.replace(regKey, `${key}=${val}`) : `${hashstr}&${key}=${val}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 创建源规则容器对象
|
||||
function Container() {
|
||||
let ruleJson = {};
|
||||
let searchJson = {};
|
||||
let exploreJson = {};
|
||||
let bookInfoJson = {};
|
||||
let tocJson = {};
|
||||
let contentJson = {};
|
||||
|
||||
// 基本以及其他
|
||||
$$('.rules .base').forEach(item => ruleJson[item.title] = '');
|
||||
ruleJson.lastUpdateTime = 0;
|
||||
ruleJson.customOrder = 0;
|
||||
ruleJson.weight = 0;
|
||||
ruleJson.enabled = true;
|
||||
ruleJson.enabledExplore = true;
|
||||
|
||||
// 搜索规则
|
||||
$$('.rules .ruleSearch').forEach(item => searchJson[item.title] = '');
|
||||
ruleJson.ruleSearch = searchJson;
|
||||
|
||||
// 发现规则
|
||||
$$('.rules .ruleExplore').forEach(item => exploreJson[item.title] = '');
|
||||
ruleJson.ruleExplore = exploreJson;
|
||||
|
||||
// 详情页规则
|
||||
$$('.rules .ruleBookInfo').forEach(item => bookInfoJson[item.title] = '');
|
||||
ruleJson.ruleBookInfo = bookInfoJson;
|
||||
|
||||
// 目录规则
|
||||
$$('.rules .ruleToc').forEach(item => tocJson[item.title] = '');
|
||||
ruleJson.ruleToc = tocJson;
|
||||
|
||||
// 正文规则
|
||||
$$('.rules .ruleContent').forEach(item => contentJson[item.title] = '');
|
||||
ruleJson.ruleContent = contentJson;
|
||||
|
||||
return ruleJson;
|
||||
}
|
||||
// 选项卡Tab切换事件处理
|
||||
function showTab(tabName) {
|
||||
$$('.tabtitle>*').forEach(node => { node.className = node.className.replace(' this', ''); });
|
||||
$$('.tabbody>*').forEach(node => { node.className = node.className.replace(' this', ''); });
|
||||
$(`.tabbody>.${$(`.tabtitle>*[name=${tabName}]`).className}`).className += ' this';
|
||||
$(`.tabtitle>*[name=${tabName}]`).className += ' this';
|
||||
hashParam('tab', tabName);
|
||||
}
|
||||
// 源列表列表标签构造函数
|
||||
function newRule(rule) {
|
||||
return `<label for="${rule.bookSourceUrl}"><input type="radio" name="rule" id="${rule.bookSourceUrl}"><div>${rule.bookSourceName}<br>${rule.bookSourceUrl}</div></label>`;
|
||||
}
|
||||
// 缓存规则列表
|
||||
var RuleSources = [];
|
||||
if (localStorage.getItem('BookSources')) {
|
||||
RuleSources = JSON.parse(localStorage.getItem('BookSources'));
|
||||
RuleSources.forEach(item => $('#RuleList').innerHTML += newRule(item));
|
||||
}
|
||||
// 页面加载完成事件
|
||||
window.onload = () => {
|
||||
$$('.tabtitle>*').forEach(item => {
|
||||
item.addEventListener('click', () => {
|
||||
showTab(item.innerHTML);
|
||||
});
|
||||
});
|
||||
if (hashParam('tab')) showTab(hashParam('tab'));
|
||||
}
|
||||
// 获取数据
|
||||
function HttpGet(url) {
|
||||
return fetch(hashParam('domain') ? hashParam('domain') + url : url)
|
||||
.then(res => res.json()).catch(err => console.error('Error:', err));
|
||||
}
|
||||
// 提交数据
|
||||
function HttpPost(url, data) {
|
||||
return fetch(hashParam('domain') ? hashParam('domain') + url : url, {
|
||||
body: JSON.stringify(data),
|
||||
method: 'POST',
|
||||
mode: "cors",
|
||||
headers: new Headers({
|
||||
'Content-Type': 'application/json;charset=utf-8'
|
||||
})
|
||||
}).then(res => res.json()).catch(err => console.error('Error:', err));
|
||||
}
|
||||
// 将源表单转化为源对象
|
||||
function rule2json() {
|
||||
let RuleJSON = Container();
|
||||
// 转换base
|
||||
Object.keys(RuleJSON).forEach(key => {
|
||||
if (!key.startsWith("rule")) {
|
||||
RuleJSON[key] = $('#' + key).value;
|
||||
}
|
||||
});
|
||||
|
||||
// 转换搜索规则
|
||||
let searchJson = {};
|
||||
Object.keys(RuleJSON.ruleSearch).forEach(key => {
|
||||
if ($('#' + 'ruleSearch_' + key).value)
|
||||
searchJson[key] = $('#' + 'ruleSearch_' + key).value;
|
||||
});
|
||||
RuleJSON.ruleSearch = searchJson;
|
||||
|
||||
// 转换发现规则
|
||||
let exploreJson = {};
|
||||
Object.keys(RuleJSON.ruleExplore).forEach(key => {
|
||||
if ($('#' + 'ruleExplore_' + key).value)
|
||||
exploreJson[key] = $('#' + 'ruleExplore_' + key).value;
|
||||
});
|
||||
RuleJSON.ruleExplore = exploreJson;
|
||||
|
||||
// 转换详情页规则
|
||||
let bookInfoJson = {};
|
||||
Object.keys(RuleJSON.ruleBookInfo).forEach(key => {
|
||||
if ($('#' + 'ruleBookInfo_' + key).value)
|
||||
bookInfoJson[key] = $('#' + 'ruleBookInfo_' + key).value;
|
||||
});
|
||||
RuleJSON.ruleBookInfo = bookInfoJson;
|
||||
|
||||
// 转换目录规则
|
||||
let tocJson = {};
|
||||
Object.keys(RuleJSON.ruleToc).forEach(key => {
|
||||
if ($('#' + 'ruleToc_' + key).value)
|
||||
tocJson[key] = $('#' + 'ruleToc_' + key).value;
|
||||
});
|
||||
RuleJSON.ruleToc = tocJson;
|
||||
|
||||
// 转换正文规则
|
||||
let contentJson = {};
|
||||
Object.keys(RuleJSON.ruleContent).forEach(key => {
|
||||
if ($('#' + 'ruleContent_' + key).value)
|
||||
contentJson[key] = $('#' + 'ruleContent_' + key).value;
|
||||
});
|
||||
RuleJSON.ruleContent = contentJson;
|
||||
|
||||
RuleJSON.lastUpdateTime = new Date().getTime();
|
||||
RuleJSON.customOrder = RuleJSON.customOrder == '' ? 0 : parseInt(RuleJSON.customOrder);
|
||||
RuleJSON.weight = RuleJSON.weight == '' ? 0 : parseInt(RuleJSON.weight);
|
||||
RuleJSON.bookSourceType == RuleJSON.bookSourceType == '' ? 0 : parseInt(RuleJSON.bookSourceType);
|
||||
RuleJSON.enabled = RuleJSON.enabled == '' || String(RuleJSON.enabled).toLocaleLowerCase().replace(/^\s*|\s*$/g, '') == 'true';
|
||||
RuleJSON.enabledExplore = RuleJSON.enabledExplore == '' || String(RuleJSON.enabledExplore).toLocaleLowerCase().replace(/^\s*|\s*$/g, '') == 'true';
|
||||
return RuleJSON;
|
||||
}
|
||||
// 将源对象填充到源表单
|
||||
function json2rule(RuleEditor) {
|
||||
let RuleJSON = Container();
|
||||
// 转换base
|
||||
Object.keys(RuleJSON).forEach(key => {
|
||||
if (!key.startsWith("rule")) {
|
||||
let val = RuleEditor[key];
|
||||
if (typeof val == "number") {
|
||||
$("#" + key).value = val ? String(val) : '0';
|
||||
}
|
||||
else if (typeof val == "boolean") {
|
||||
$("#" + key).value = val ? String(val) : 'false';
|
||||
}
|
||||
else {
|
||||
$("#" + key).value = val ? String(val) : '';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 转换搜索规则
|
||||
if (RuleEditor.ruleSearch) {
|
||||
let searchJson = RuleEditor.ruleSearch;
|
||||
Object.keys(RuleJSON.ruleSearch).forEach(key => {
|
||||
$('#' + 'ruleSearch_' + key).value = searchJson[key] ? searchJson[key] : '';
|
||||
});
|
||||
}
|
||||
|
||||
// 转换发现规则
|
||||
if (RuleEditor.ruleExplore) {
|
||||
let exploreJson = RuleEditor.ruleExplore;
|
||||
Object.keys(RuleJSON.ruleExplore).forEach(key => {
|
||||
$('#' + 'ruleExplore_' + key).value = exploreJson[key] ? exploreJson[key] : '';
|
||||
});
|
||||
}
|
||||
|
||||
// 转换详情页规则
|
||||
if (RuleEditor.ruleBookInfo) {
|
||||
let bookInfoJson = RuleEditor.ruleBookInfo;
|
||||
Object.keys(RuleJSON.ruleBookInfo).forEach(key => {
|
||||
$('#' + 'ruleBookInfo_' + key).value = bookInfoJson[key] ? bookInfoJson[key] : '';
|
||||
});
|
||||
}
|
||||
|
||||
// 转换目录规则
|
||||
if (RuleEditor.ruleToc) {
|
||||
let tocJson = RuleEditor.ruleToc;
|
||||
Object.keys(RuleJSON.ruleToc).forEach(key => {
|
||||
$('#' + 'ruleToc_' + key).value = tocJson[key] ? tocJson[key] : '';
|
||||
});
|
||||
}
|
||||
|
||||
// 转换正文规则
|
||||
if (RuleEditor.ruleContent) {
|
||||
let contentJson = RuleEditor.ruleContent;
|
||||
Object.keys(RuleJSON.ruleContent).forEach(key => {
|
||||
$('#' + 'ruleContent_' + key).value = contentJson[key] ? contentJson[key] : '';
|
||||
});
|
||||
}
|
||||
}
|
||||
// 记录操作过程
|
||||
var course = { "old": [], "now": {}, "new": [] };
|
||||
if (localStorage.getItem('bookSourceCourse')) {
|
||||
course = JSON.parse(localStorage.getItem('bookSourceCourse'));
|
||||
json2rule(course.now);
|
||||
}
|
||||
else {
|
||||
course.now = rule2json();
|
||||
window.localStorage.setItem('bookSourceCourse', JSON.stringify(course));
|
||||
}
|
||||
function todo() {
|
||||
course.old.push(Object.assign({}, course.now));
|
||||
course.now = rule2json();
|
||||
course.new = [];
|
||||
if (course.old.length > 50) course.old.shift(); // 限制历史记录堆栈大小
|
||||
localStorage.setItem('bookSourceCourse', JSON.stringify(course));
|
||||
}
|
||||
function undo() {
|
||||
course = JSON.parse(localStorage.getItem('bookSourceCourse'));
|
||||
if (course.old.length > 0) {
|
||||
course.new.push(course.now);
|
||||
course.now = course.old.pop();
|
||||
localStorage.setItem('bookSourceCourse', JSON.stringify(course));
|
||||
json2rule(course.now);
|
||||
}
|
||||
}
|
||||
function redo() {
|
||||
course = JSON.parse(localStorage.getItem('bookSourceCourse'));
|
||||
if (course.new.length > 0) {
|
||||
course.old.push(course.now);
|
||||
course.now = course.new.pop();
|
||||
localStorage.setItem('bookSourceCourse', JSON.stringify(course));
|
||||
json2rule(course.now);
|
||||
}
|
||||
}
|
||||
function setRule(editRule) {
|
||||
let checkRule = RuleSources.find(x => x.bookSourceUrl == editRule.bookSourceUrl);
|
||||
if ($(`input[id="${editRule.bookSourceUrl}"]`)) {
|
||||
Object.keys(checkRule).forEach(key => { checkRule[key] = editRule[key]; });
|
||||
$(`input[id="${editRule.bookSourceUrl}"]+*`).innerHTML = `${editRule.bookSourceName}<br>${editRule.bookSourceUrl}`;
|
||||
} else {
|
||||
RuleSources.push(editRule);
|
||||
$('#RuleList').innerHTML += newRule(editRule);
|
||||
}
|
||||
}
|
||||
$$('input').forEach((item) => { item.addEventListener('change', () => { todo() }) });
|
||||
$$('textarea').forEach((item) => { item.addEventListener('change', () => { todo() }) });
|
||||
// 处理按钮点击事件
|
||||
$('.menu').addEventListener('click', e => {
|
||||
let thisNode = e.target;
|
||||
thisNode = thisNode.parentNode.nodeName == 'svg' ? thisNode.parentNode.querySelector('rect') :
|
||||
thisNode.nodeName == 'svg' ? thisNode.querySelector('rect') : null;
|
||||
if (!thisNode) return;
|
||||
if (thisNode.getAttribute('class') == 'busy') return;
|
||||
thisNode.setAttribute('class', 'busy');
|
||||
switch (thisNode.id) {
|
||||
case 'push':
|
||||
$$('#RuleList>label>div').forEach(item => { item.className = ''; });
|
||||
(async () => {
|
||||
await HttpPost(`/saveBookSources`, RuleSources).then(json => {
|
||||
if (json.isSuccess) {
|
||||
let okData = json.data;
|
||||
if (Array.isArray(okData)) {
|
||||
let failMsg = ``;
|
||||
if (RuleSources.length > okData.length) {
|
||||
RuleSources.forEach(item => {
|
||||
if (okData.find(x => x.bookSourceUrl == item.bookSourceUrl)) { }
|
||||
else { $(`#RuleList #${item.bookSourceUrl}+*`).className += 'isError'; }
|
||||
});
|
||||
failMsg = '\n推送失败的源将用红色字体标注!';
|
||||
}
|
||||
alert(`批量推送源到「阅读3.0APP」\n共计: ${RuleSources.length} 条\n成功: ${okData.length} 条\n失败: ${RuleSources.length - okData.length} 条${failMsg}`);
|
||||
}
|
||||
else {
|
||||
alert(`批量推送源到「阅读3.0APP」成功!\n共计: ${RuleSources.length} 条`);
|
||||
}
|
||||
}
|
||||
else {
|
||||
alert(`批量推送源失败!\nErrorMsg: ${json.errorMsg}`);
|
||||
}
|
||||
}).catch(err => { alert(`批量推送源失败,无法连接到「阅读3.0APP」!\n${err}`); });
|
||||
thisNode.setAttribute('class', '');
|
||||
})();
|
||||
return;
|
||||
case 'pull':
|
||||
showTab('源列表');
|
||||
(async () => {
|
||||
await HttpGet(`/getBookSources`).then(json => {
|
||||
if (json.isSuccess) {
|
||||
$('#RuleList').innerHTML = ''
|
||||
localStorage.setItem('BookSources', JSON.stringify(RuleSources = json.data));
|
||||
RuleSources.forEach(item => {
|
||||
$('#RuleList').innerHTML += newRule(item);
|
||||
});
|
||||
alert(`成功拉取 ${RuleSources.length} 条源`);
|
||||
}
|
||||
else {
|
||||
alert(`批量拉取源失败!\nErrorMsg: ${json.errorMsg}`);
|
||||
}
|
||||
}).catch(err => { alert(`批量拉取源失败,无法连接到「阅读3.0APP」!\n${err}`); });
|
||||
thisNode.setAttribute('class', '');
|
||||
})();
|
||||
return;
|
||||
case 'editor':
|
||||
if ($('#RuleJsonString').value == '') break;
|
||||
try {
|
||||
json2rule(JSON.parse($('#RuleJsonString').value));
|
||||
todo();
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
alert(error);
|
||||
}
|
||||
break;
|
||||
case 'conver':
|
||||
showTab('编辑源');
|
||||
$('#RuleJsonString').value = JSON.stringify(rule2json(), null, 4);
|
||||
break;
|
||||
case 'initial':
|
||||
$$('.rules textarea').forEach(item => { item.value = '' });
|
||||
todo();
|
||||
break;
|
||||
case 'undo':
|
||||
undo()
|
||||
break;
|
||||
case 'redo':
|
||||
redo()
|
||||
break;
|
||||
case 'debug':
|
||||
showTab('调试源');
|
||||
let wsOrigin = (hashParam('domain') || location.origin).replace(/^.*?:/, 'ws:').replace(/\d+$/, (port) => (parseInt(port) + 1));
|
||||
let DebugInfos = $('#DebugConsole');
|
||||
function DebugPrint(msg) { DebugInfos.value += `\n${msg}`; DebugInfos.scrollTop = DebugInfos.scrollHeight; }
|
||||
let saveRule = [rule2json()];
|
||||
HttpPost(`/saveBookSources`, saveRule).then(sResult => {
|
||||
if (sResult.isSuccess) {
|
||||
let sKey = DebugKey.value ? DebugKey.value : '我的';
|
||||
$('#DebugConsole').value = `源《${saveRule[0].bookSourceName}》保存成功!使用搜索关键字“${sKey}”开始调试...`;
|
||||
let ws = new WebSocket(`${wsOrigin}/bookSourceDebug`);
|
||||
ws.onopen = () => {
|
||||
ws.send(`{"tag":"${saveRule[0].bookSourceUrl}", "key":"${sKey}"}`);
|
||||
};
|
||||
ws.onmessage = (msg) => {
|
||||
console.log('[调试]', msg);
|
||||
DebugPrint(msg.data);
|
||||
};
|
||||
ws.onerror = (err) => {
|
||||
throw `${err.data}`;
|
||||
}
|
||||
ws.onclose = () => {
|
||||
thisNode.setAttribute('class', '');
|
||||
DebugPrint(`\n调试服务已关闭!`);
|
||||
}
|
||||
} else throw `${sResult.errorMsg}`;
|
||||
}).catch(err => {
|
||||
DebugPrint(`调试过程意外中止,以下是详细错误信息:\n${err}`);
|
||||
thisNode.setAttribute('class', '');
|
||||
});
|
||||
return;
|
||||
case 'accept':
|
||||
(async () => {
|
||||
let saveRule = [rule2json()];
|
||||
await HttpPost(`/saveBookSource`, saveRule[0]).then(json => {
|
||||
alert(json.isSuccess ? `源《${saveRule[0].bookSourceName}》已成功保存到「阅读3.0APP」` : `源《${saveRule[0].bookSourceName}》保存失败!\nErrorMsg: ${json.errorMsg}`);
|
||||
setRule(saveRule[0]);
|
||||
}).catch(err => { alert(`保存源失败,无法连接到「阅读3.0APP」!\n${err}`); });
|
||||
thisNode.setAttribute('class', '');
|
||||
})();
|
||||
return;
|
||||
default:
|
||||
}
|
||||
setTimeout(() => { thisNode.setAttribute('class', ''); }, 500);
|
||||
});
|
||||
$('#DebugKey').addEventListener('keydown', e => {
|
||||
if (e.keyCode == 13) {
|
||||
let clickEvent = document.createEvent('MouseEvents');
|
||||
clickEvent.initEvent("click", true, false);
|
||||
$('#debug').dispatchEvent(clickEvent);
|
||||
}
|
||||
});
|
||||
$('#Filter').addEventListener('keydown', e => {
|
||||
if (e.keyCode == 13) {
|
||||
let cashList = [];
|
||||
$('#RuleList').innerHTML = "";
|
||||
let sKey = Filter.value ? Filter.value : '';
|
||||
if (sKey == '') {
|
||||
cashList = RuleSources;
|
||||
} else {
|
||||
let patt = new RegExp(sKey);
|
||||
RuleSources.forEach(source => {
|
||||
if (patt.test(source.bookSourceUrl) || patt.test(source.bookSourceName) || patt.test(source.bookSourceGroup)) {
|
||||
cashList.push(source);
|
||||
}
|
||||
})
|
||||
}
|
||||
cashList.forEach(source => {
|
||||
$('#RuleList').innerHTML += newRule(source);
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
// 列表规则更改事件
|
||||
$('#RuleList').addEventListener('click', e => {
|
||||
let editRule = null;
|
||||
if (e.target && e.target.getAttribute('name') == 'rule') {
|
||||
editRule = rule2json();
|
||||
json2rule(RuleSources.find(x => x.bookSourceUrl == e.target.id));
|
||||
} else return;
|
||||
if (editRule.bookSourceUrl == '') return;
|
||||
if (editRule.bookSourceName == '') editRule.bookSourceName = editRule.bookSourceUrl.replace(/.*?\/\/|\/.*/g, '');
|
||||
setRule(editRule);
|
||||
localStorage.setItem('BookSources', JSON.stringify(RuleSources));
|
||||
});
|
||||
// 处理列表按钮事件
|
||||
$('.tab3>.titlebar').addEventListener('click', e => {
|
||||
let thisNode = e.target;
|
||||
if (thisNode.nodeName != 'BUTTON') return;
|
||||
switch (thisNode.id) {
|
||||
case 'Import':
|
||||
let fileImport = document.createElement('input');
|
||||
fileImport.type = 'file';
|
||||
fileImport.accept = '.json';
|
||||
fileImport.addEventListener('change', () => {
|
||||
let file = fileImport.files[0];
|
||||
let reader = new FileReader();
|
||||
reader.onloadend = function (evt) {
|
||||
if (evt.target.readyState == FileReader.DONE) {
|
||||
let fileText = evt.target.result;
|
||||
try {
|
||||
let fileJson = JSON.parse(fileText);
|
||||
let newSources = [];
|
||||
newSources.push(...fileJson);
|
||||
if (window.confirm(`如何处理导入的源?\n"确定": 覆盖当前列表(不会删除APP源)\n"取消": 插入列表尾部(自动忽略重复源)`)) {
|
||||
localStorage.setItem('BookSources', JSON.stringify(RuleSources = newSources));
|
||||
$('#RuleList').innerHTML = ''
|
||||
RuleSources.forEach(item => {
|
||||
$('#RuleList').innerHTML += newRule(item);
|
||||
});
|
||||
}
|
||||
else {
|
||||
newSources = newSources.filter(item => !JSON.stringify(RuleSources).includes(item.bookSourceUrl));
|
||||
RuleSources.push(...newSources);
|
||||
localStorage.setItem('BookSources', JSON.stringify(RuleSources));
|
||||
newSources.forEach(item => {
|
||||
$('#RuleList').innerHTML += newRule(item);
|
||||
});
|
||||
}
|
||||
alert(`成功导入 ${newSources.length} 条源`);
|
||||
}
|
||||
catch (err) {
|
||||
alert(`导入源文件失败!\n${err}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
reader.readAsText(file);
|
||||
}, false);
|
||||
fileImport.click();
|
||||
break;
|
||||
case 'Export':
|
||||
let fileExport = document.createElement('a');
|
||||
fileExport.download = `Rules${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/, '$2$1$3').replace(/:/g, '')}.json`;
|
||||
let myBlob = new Blob([JSON.stringify(RuleSources, null, 4)], { type: "application/json" });
|
||||
fileExport.href = window.URL.createObjectURL(myBlob);
|
||||
fileExport.click();
|
||||
break;
|
||||
case 'Delete':
|
||||
let selectRule = $('#RuleList input:checked');
|
||||
if (!selectRule) {
|
||||
alert(`没有源被选中!`);
|
||||
return;
|
||||
}
|
||||
if (confirm(`确定要删除选定源吗?\n(同时删除APP内源)`)) {
|
||||
let selectRuleUrl = selectRule.id;
|
||||
let deleteSources = RuleSources.filter(item => item.bookSourceUrl == selectRuleUrl); // 提取待删除的源
|
||||
let laveSources = RuleSources.filter(item => !(item.bookSourceUrl == selectRuleUrl)); // 提取待留下的源
|
||||
HttpPost(`/deleteBookSources`, deleteSources).then(json => {
|
||||
if (json.isSuccess) {
|
||||
let selectNode = document.getElementById(selectRuleUrl).parentNode;
|
||||
selectNode.parentNode.removeChild(selectNode);
|
||||
localStorage.setItem('BookSources', JSON.stringify(RuleSources = laveSources));
|
||||
if ($('#bookSourceUrl').value == selectRuleUrl) {
|
||||
$$('.rules textarea').forEach(item => { item.value = '' });
|
||||
todo();
|
||||
}
|
||||
console.log(deleteSources);
|
||||
console.log(`以上源已删除!`)
|
||||
}
|
||||
}).catch(err => { alert(`删除源失败,无法连接到「阅读3.0APP」!\n${err}`); });
|
||||
}
|
||||
break;
|
||||
case 'ClrAll':
|
||||
if (confirm(`确定要清空当前源列表吗?\n(不会删除APP内源)`)) {
|
||||
localStorage.setItem('BookSources', JSON.stringify(RuleSources = []));
|
||||
$('#RuleList').innerHTML = ''
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
@charset "UTF-8";@font-face{font-family:FZZCYSK;src:local("☺"),url(../fonts/shelffont.6c094b6d.ttf);font-style:normal;font-weight:400}.index-wrapper[data-v-3cffa1cb]{height:100%;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.index-wrapper .navigation-wrapper[data-v-3cffa1cb]{width:260px;min-width:260px;padding:48px 36px;background-color:#f7f7f7}.index-wrapper .navigation-wrapper .navigation-title[data-v-3cffa1cb]{font-size:24px;font-weight:500;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .navigation-sub-title[data-v-3cffa1cb]{font-size:16px;font-weight:300;font-family:FZZCYSK;margin-top:16px;color:#b1b1b1}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-3cffa1cb]{border-radius:50%;margin-top:24px}.index-wrapper .navigation-wrapper .search-wrapper .search-input[data-v-3cffa1cb] .el-input__inner{border-radius:50px;border-color:#e3e3e3}.index-wrapper .navigation-wrapper .recent-wrapper[data-v-3cffa1cb]{margin-top:36px}.index-wrapper .navigation-wrapper .recent-wrapper .recent-title[data-v-3cffa1cb]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent[data-v-3cffa1cb]{margin:18px 0}.index-wrapper .navigation-wrapper .recent-wrapper .reading-recent .recent-book[data-v-3cffa1cb]{font-size:10px;cursor:pointer}.index-wrapper .navigation-wrapper .setting-wrapper[data-v-3cffa1cb]{margin-top:36px}.index-wrapper .navigation-wrapper .setting-wrapper .setting-title[data-v-3cffa1cb]{font-size:14px;color:#b1b1b1;font-family:FZZCYSK}.index-wrapper .navigation-wrapper .setting-wrapper .no-point[data-v-3cffa1cb]{pointer-events:none}.index-wrapper .navigation-wrapper .setting-wrapper .setting-connect[data-v-3cffa1cb]{font-size:8px;margin-top:16px;cursor:pointer}.index-wrapper .navigation-wrapper .bottom-icons[data-v-3cffa1cb]{position:fixed;bottom:0;height:120px;width:260px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.index-wrapper .shelf-wrapper[data-v-3cffa1cb]{padding:48px 48px;width:100%}.index-wrapper .shelf-wrapper[data-v-3cffa1cb] .el-icon-loading{font-size:36px;color:#b5b5b5}.index-wrapper .shelf-wrapper[data-v-3cffa1cb] .el-loading-text{font-weight:500;color:#b5b5b5}.index-wrapper .shelf-wrapper .books-wrapper[data-v-3cffa1cb]{height:100%;overflow:scroll}.index-wrapper .shelf-wrapper .books-wrapper .wrapper[data-v-3cffa1cb]{display:grid;grid-template-columns:repeat(auto-fill,380px);-ms-flex-pack:distribute;justify-content:space-around;grid-gap:10px}.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book[data-v-3cffa1cb]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer;margin-bottom:18px;padding:24px 24px;width:360px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around}.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book .cover-img .cover[data-v-3cffa1cb],.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book .cover-img[data-v-3cffa1cb]{width:84px;height:112px}.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book .info[data-v-3cffa1cb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:left;-ms-flex-align:left;align-items:left;height:112px;margin-left:20px;-webkit-box-flex:1;-ms-flex:1;flex:1}.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book .info .name[data-v-3cffa1cb]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;font-weight:700;color:#33373d}.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book .info .sub[data-v-3cffa1cb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-size:12px;font-weight:600;color:#6b6b6b}.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book .info .sub .dot[data-v-3cffa1cb]{margin:0 7px}.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book .info .dur-chapter[data-v-3cffa1cb],.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book .info .intro[data-v-3cffa1cb],.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book .info .last-chapter[data-v-3cffa1cb]{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}.index-wrapper .shelf-wrapper .books-wrapper .wrapper .book[data-v-3cffa1cb]:hoveLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50;margin:0;height:100%}
|
||||
@@ -0,0 +1 @@
|
||||
.el-message__closeBtn:focus,.el-message__content:focus{outline-width:0}.el-message{min-width:380px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border-width:1px;border-style:solid;border-color:#ebeef5;position:fixed;left:50%;top:20px;-webkit-transform:translateX(-50%);transform:translateX(-50%);background-color:#edf2fc;-webkit-transition:opacity .3s,top .4s,-webkit-transform .4s;transition:opacity .3s,top .4s,-webkit-transform .4s;transition:opacity .3s,transform .4s,top .4s;transition:opacity .3s,transform .4s,top .4s,-webkit-transform .4s;overflow:hidden;padding:15px 15px 15px 20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-message.is-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.el-message.is-closable .el-message__content{padding-right:16px}.el-message p{margin:0}.el-message--info .el-message__content{color:#909399}.el-message--success{background-color:#f0f9eb;border-color:#e1f3d8}.el-message--success .el-message__content{color:#67c23a}.el-message--warning{background-color:#fdf6ec;border-color:#faecd8}.el-message--warning .el-message__content{color:#e6a23c}.el-message--error{background-color:#fef0f0;border-color:#fde2e2}.el-message--error .el-message__content{color:#f56c6c}.el-message__icon{margin-right:10px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__closeBtn{position:absolute;top:50%;right:15px;-webkit-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer;color:#c0c4cc;font-size:16px}.el-message__closeBtn:hover{color:#909399}.el-message .el-icon-success{color:#67c23a}.el-message .el-icon-error{color:#f56c6c}.el-message .el-icon-info{color:#909399}.el-message .el-icon-warning{color:#e6a23c}.el-message-fade-enter,.el-message-fade-leave-active{opacity:0;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.el-fade-in-enter,.el-fade-in-leave-active,.el-fade-in-linear-enter,.el-fade-in-linear-leave,.el-fade-in-linear-leave-active,.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active,.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.el-fade-in-enter-active,.el-fade-in-leave-active,.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter,.el-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.el-zoom-in-top-enter,.el-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.el-zoom-in-bottom-enter,.el-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.el-zoom-in-left-enter,.el-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45);transform:scale(.45)}.collapse-transition{-webkit-transition:height .3s ease-in-out,padding-top .3s ease-in-out,padding-bottom .3s ease-in-out;transition:height .3s ease-in-out,padding-top .3s Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
@charset "UTF-8";.detail-wrapper[data-v-57115a66]{padding:2% 0}.detail-wrapper .detail .bar .el-breadcrumb[data-v-57115a66]{font-size:24px;font-weight:500;line-height:48px}.detail-wrapper .detail .bar .el-breadcrumb .index[data-v-57115a66]{color:#333}.detail-wrapper .detail .bar .el-breadcrumb .sub[data-v-57115a66]{color:#676767}.detail-wrapper .detail .el-divider[data-v-57115a66]{margin-top:2%}.detail-wrapper .detail .catalog[data-v-57115a66]{margin-top:2%;display:grid;grid-template-columns:repeat(auto-fill,300px);-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.detail-wrapper .detail .catalog .note[data-v-57115a66]{width:200px;font-weight:500;font-size:14px;line-height:40px;padding-left:12px;padding-right:12px;word-wrap:break-word;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}@font-face{font-family:FZZCYSK;src:local("☺"),url(../fonts/popfont.f39ecc1a.ttf);font-style:normal;font-weight:400}.cata-wrapper[data-v-22f8c37b]{margin:-16px;padding:18px 0 24px 25px}.cata-wrapper .title[data-v-22f8c37b]{font-size:18px;font-weight:400;font-family:FZZCYSK;margin:0 0 20px 0;color:#ed4259;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-bottom:1px solid #ed4259}.cata-wrapper .data-wrapper[data-v-22f8c37b]{height:300px;overflow:auto}.cata-wrapper .data-wrapper .cata[data-v-22f8c37b]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.cata-wrapper .data-wrapper .cata .selected[data-v-22f8c37b]{color:#eb4259}.cata-wrapper .data-wrapper .cata .log[data-v-22f8c37b]{width:50%;height:40px;cursor:pointer;float:left;font:16px/40px PingFangSC-Regular,HelveticaNeue-Light,Helvetica Neue Light,Microsoft YaHei,sans-serif}.cata-wrapper .data-wrapper .cata .log .log-text[data-v-22f8c37b]{margin-right:26px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cata-wrapper .night[data-v-22f8c37b] .log{border-bottom:1px solid #666}.cata-wrapper .day[data-v-22f8c37b] .log{border-bottom:1px solid #f2f2f2}@font-face{font-family:iconfont;src:url(../fonts/iconfont.f9a3fb0e.woff) format("woff")}[data-v-36dafd56] .iconfont,[data-v-36dafd56] .moon-icon{font-family:iconfont;font-style:normal}.settings-wrapper[data-v-36dafd56]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:-13px;width:478px;height:300px;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-36dafd56]{font-size:18px;line-height:22px;margin-bottom:28px;font-family:FZZCYSK;font-weight:400}.settings-wrapper .setting-list ul[data-v-36dafd56]{list-style:none outside none;margin:0;padding:0}.settings-wrapper .setting-list ul li[data-v-36dafd56]{list-style:none outside none}.settings-wrapper .setting-list ul li i[data-v-36dafd56]{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-36dafd56]{line-height:32px;width:34px;height:34px;margin-right:16px;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-36dafd56]{display:none}.settings-wrapper .setting-list ul li .selected[data-v-36dafd56]{color:#ed4259}.settings-wrapper .setting-list ul li .selected .iconfont[data-v-36dafd56]{display:inline}.settings-wrapper .setting-list ul .font-list[data-v-36dafd56]{margin-top:28px}.settings-wrapper .setting-list ul .font-list .font-item[data-v-36dafd56]{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[data-v-36dafd56]:hover,.settings-Line truncated
|
||||
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 799 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1,149 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||
width="16.000000pt" height="16.000000pt" viewBox="0 0 16.000000 16.000000"
|
||||
preserveAspectRatio="xMidYMid meet">
|
||||
<metadata>
|
||||
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
||||
</metadata>
|
||||
<g transform="translate(0.000000,16.000000) scale(0.000320,-0.000320)"
|
||||
fill="#000000" stroke="none">
|
||||
<path d="M18 46618 c45 -75 122 -207 122 -211 0 -2 25 -45 55 -95 30 -50 55
|
||||
-96 55 -102 0 -5 5 -10 10 -10 6 0 10 -4 10 -9 0 -5 73 -135 161 -288 89 -153
|
||||
173 -298 187 -323 14 -25 32 -57 41 -72 88 -149 187 -324 189 -335 2 -7 8 -13
|
||||
13 -13 5 0 9 -4 9 -10 0 -5 46 -89 103 -187 175 -302 490 -846 507 -876 8 -16
|
||||
20 -36 25 -45 28 -46 290 -498 339 -585 13 -23 74 -129 136 -236 61 -107 123
|
||||
-215 137 -240 14 -25 29 -50 33 -56 5 -5 23 -37 40 -70 18 -33 38 -67 44 -75
|
||||
11 -16 21 -33 63 -109 14 -25 29 -50 33 -56 4 -5 21 -35 38 -65 55 -100 261
|
||||
-455 269 -465 4 -5 14 -21 20 -35 15 -29 41 -75 103 -180 24 -41 52 -88 60
|
||||
-105 9 -16 57 -100 107 -185 112 -193 362 -626 380 -660 8 -14 23 -38 33 -55
|
||||
11 -16 23 -37 27 -45 4 -8 26 -46 48 -85 23 -38 53 -90 67 -115 46 -81 64
|
||||
-113 178 -310 62 -107 121 -210 132 -227 37 -67 56 -99 85 -148 16 -27 32 -57
|
||||
36 -65 4 -8 15 -27 25 -42 9 -15 53 -89 96 -165 44 -76 177 -307 296 -513 120
|
||||
-206 268 -463 330 -570 131 -227 117 -203 200 -348 36 -62 73 -125 82 -140 10
|
||||
-15 21 -34 25 -42 4 -8 20 -37 36 -65 17 -27 38 -65 48 -82 49 -85 64 -111 87
|
||||
-153 13 -25 28 -49 32 -55 4 -5 78 -134 165 -285 87 -151 166 -288 176 -305
|
||||
10 -16 26 -43 35 -59 9 -17 125 -217 257 -445 132 -229 253 -441 270 -471 17
|
||||
-30 45 -79 64 -108 18 -29 33 -54 33 -57 0 -2 20 -37 44 -77 24 -40 123 -212
|
||||
221 -383 97 -170 190 -330 205 -355 16 -25 39 -65 53 -90 13 -25 81 -144 152
|
||||
-265 70 -121 137 -238 150 -260 12 -22 37 -65 55 -95 18 -30 43 -73 55 -95 12
|
||||
-22 48 -85 80 -140 77 -132 163 -280 190 -330 13 -22 71 -123 130 -225 59
|
||||
-102 116 -199 126 -217 10 -17 29 -50 43 -72 15 -22 26 -43 26 -45 0 -2 27
|
||||
-50 60 -106 33 -56 60 -103 60 -105 0 -2 55 -98 90 -155 8 -14 182 -316 239
|
||||
-414 13 -22 45 -79 72 -124 27 -46 49 -86 49 -89 0 -2 14 -24 30 -48 16 -24
|
||||
30 -46 30 -49 0 -5 74 -135 100 -176 5 -8 24 -42 43 -75 50 -88 58 -101 262
|
||||
-455 104 -179 199 -345 213 -370 14 -25 28 -49 32 -55 4 -5 17 -26 28 -45 10
|
||||
-19 62 -109 114 -200 114 -197 133 -230 170 -295 16 -27 33 -57 38 -65 17 -28
|
||||
96 -165 103 -180 4 -8 16 -28 26 -45 10 -16 77 -131 148 -255 72 -124 181
|
||||
-313 243 -420 62 -107 121 -209 131 -227 35 -62 323 -560 392 -678 38 -66 83
|
||||
-145 100 -175 16 -30 33 -59 37 -65 4 -5 17 -27 29 -47 34 -61 56 -100 90
|
||||
-156 17 -29 31 -55 31 -57 0 -2 17 -32 39 -67 21 -35 134 -229 251 -433 117
|
||||
-203 235 -407 261 -451 27 -45 49 -85 49 -88 0 -4 8 -19 19 -34 15 -21 200
|
||||
-341 309 -533 10 -19 33 -58 51 -87 17 -29 31 -54 31 -56 0 -2 25 -44 55 -94
|
||||
30 -50 55 -95 55 -98 0 -4 6 -15 14 -23 7 -9 27 -41 43 -71 17 -30 170 -297
|
||||
342 -594 171 -296 311 -542 311 -547 0 -5 5 -9 10 -9 6 0 10 -4 10 -10 0 -5
|
||||
22 -47 49 -92 27 -46 58 -99 68 -118 24 -43 81 -140 93 -160 5 -8 66 -114 135
|
||||
-235 69 -121 130 -227 135 -235 12 -21 259 -447 283 -490 10 -19 28 -47 38
|
||||
-62 11 -14 19 -29 19 -32 0 -3 37 -69 83 -148 99 -170 305 -526 337 -583 13
|
||||
-22 31 -53 41 -70 11 -16 22 -37 26 -45 7 -14 82 -146 103 -180 14 -24 181
|
||||
-311 205 -355 13 -22 46 -80 75 -130 29 -49 64 -110 78 -135 14 -25 51 -88 82
|
||||
-140 31 -52 59 -102 63 -110 4 -8 18 -33 31 -55 205 -353 284 -489 309 -535
|
||||
17 -30 45 -78 62 -106 18 -28 36 -60 39 -72 4 -12 12 -22 17 -22 5 0 9 -4 9
|
||||
-10 0 -5 109 -197 241 -427 133 -230 250 -431 259 -448 51 -90 222 -385 280
|
||||
-485 37 -63 78 -135 92 -160 14 -25 67 -117 118 -205 51 -88 101 -175 111
|
||||
-193 34 -58 55 -95 149 -257 51 -88 101 -173 110 -190 9 -16 76 -131 147 -255
|
||||
72 -124 140 -241 151 -260 61 -108 281 -489 355 -615 38 -66 77 -133 87 -150
|
||||
35 -63 91 -161 100 -175 14 -23 99 -169 128 -220 54 -97 135 -235 142 -245 4
|
||||
-5 20 -32 35 -60 26 -48 238 -416 276 -480 10 -16 26 -46 37 -65 30 -53 382
|
||||
-661 403 -695 10 -16 22 -37 26 -45 4 -8 26 -48 50 -88 24 -41 43 -75 43 -77
|
||||
0 -2 22 -40 50 -85 27 -45 50 -84 50 -86 0 -3 38 -69 83 -147 84 -142 302
|
||||
-520 340 -587 10 -19 34 -60 52 -90 18 -30 44 -75 57 -100 14 -25 45 -79 70
|
||||
-120 25 -41 56 -96 70 -121 14 -25 77 -133 138 -240 62 -107 122 -210 132
|
||||
-229 25 -43 310 -535 337 -581 11 -19 26 -45 34 -59 17 -32 238 -414 266 -460
|
||||
11 -19 24 -41 28 -49 3 -7 75 -133 160 -278 84 -146 153 -269 153 -274 0 -5 5
|
||||
-9 10 -9 6 0 10 -4 10 -10 0 -5 82 -150 181 -322 182 -314 201 -346 240 -415
|
||||
12 -21 80 -139 152 -263 71 -124 141 -245 155 -270 14 -25 28 -49 32 -55 6 -8
|
||||
145 -248 220 -380 37 -66 209 -362 229 -395 11 -19 24 -42 28 -49 4 -8 67
|
||||
-118 140 -243 73 -125 133 -230 133 -233 0 -2 15 -28 33 -57 19 -29 47 -78 64
|
||||
-108 17 -30 53 -93 79 -139 53 -90 82 -141 157 -272 82 -142 115 -199 381
|
||||
-659 142 -245 268 -463 281 -485 12 -22 71 -125 132 -230 60 -104 172 -298
|
||||
248 -430 76 -132 146 -253 156 -270 11 -16 22 -36 26 -44 3 -8 30 -54 60 -103
|
||||
29 -49 53 -91 53 -93 0 -3 18 -34 40 -70 22 -36 40 -67 40 -69 0 -2 37 -66 81
|
||||
-142 45 -77 98 -168 119 -204 20 -36 47 -81 58 -100 12 -19 27 -47 33 -62 6
|
||||
-16 15 -28 20 -28 5 0 9 -4 9 -9 0 -6 63 -118 140 -251 77 -133 140 -243 140
|
||||
-245 0 -2 18 -33 41 -70 22 -37 49 -83 60 -101 10 -19 29 -51 40 -71 25 -45
|
||||
109 -189 126 -218 7 -11 17 -29 22 -40 6 -11 22 -38 35 -60 14 -22 37 -62 52
|
||||
-90 14 -27 35 -62 45 -77 11 -14 19 -29 19 -32 0 -3 18 -35 40 -71 22 -36 40
|
||||
-67 40 -69 0 -2 19 -35 42 -72 23 -38 55 -94 72 -124 26 -47 139 -244 171
|
||||
-298 6 -9 21 -36 34 -60 28 -48 37 -51 51 -19 6 12 19 36 29 52 10 17 27 46
|
||||
38 65 11 19 104 181 208 360 103 179 199 345 213 370 14 25 42 74 64 109 21
|
||||
34 38 65 38 67 0 2 18 33 40 69 22 36 40 67 40 69 0 3 177 310 199 346 16 26
|
||||
136 234 140 244 2 5 25 44 52 88 27 44 49 81 49 84 0 2 18 34 40 70 22 36 40
|
||||
67 40 69 0 2 20 36 43 77 35 58 169 289 297 513 9 17 50 86 90 155 40 69 86
|
||||
150 103 180 16 30 35 62 41 70 6 8 16 24 22 35 35 64 72 129 167 293 59 100
|
||||
116 199 127 220 11 20 30 53 41 72 43 72 1070 1850 1121 1940 14 25 65 113
|
||||
113 195 48 83 96 166 107 185 10 19 28 50 38 68 11 18 73 124 137 235 64 111
|
||||
175 303 246 427 71 124 173 299 225 390 52 91 116 202 143 248 27 45 49 85 49
|
||||
89 0 4 6 14 14 22 7 9 28 43 46 76 26 47 251 436 378 655 11 19 29 51 40 70
|
||||
11 19 101 176 201 348 99 172 181 317 181 323 0 5 5 9 10 9 6 0 10 5 10 11 0
|
||||
6 8 23 18 37 11 15 32 52 49 82 16 30 130 228 253 440 122 212 234 405 248
|
||||
430 13 25 39 70 57 100 39 65 69 117 130 225 25 44 50 87 55 95 12 19 78 134
|
||||
220 380 61 107 129 224 150 260 161 277 222 382 246 425 15 28 47 83 71 123
|
||||
24 41 43 78 43 83 0 5 4 9 8 9 4 0 13 12 19 28 7 15 23 45 36 67 66 110 277
|
||||
478 277 483 0 3 6 13 14 21 7 9 27 41 43 71 17 30 45 80 63 110 34 57 375 649
|
||||
394 685 6 11 16 27 22 35 6 8 26 42 44 75 18 33 41 74 51 90 10 17 24 41 32
|
||||
55 54 97 72 128 88 152 11 14 19 28 19 30 0 3 79 141 175 308 96 167 175 305
|
||||
175 308 0 3 6 13 14 21 7 9 26 39 41 66 33 60 276 483 338 587 24 40 46 80 50
|
||||
88 4 8 13 24 20 35 14 23 95 163 125 215 11 19 52 91 92 160 40 69 80 139 90
|
||||
155 9 17 103 179 207 360 105 182 200 346 211 365 103 181 463 802 489 845 7
|
||||
11 15 27 19 35 4 8 29 51 55 95 64 110 828 1433 848 1470 9 17 24 41 33 55 9
|
||||
14 29 48 45 77 15 28 52 93 82 145 30 51 62 107 71 123 17 30 231 398 400 690
|
||||
51 88 103 179 115 202 12 23 26 48 32 55 6 7 24 38 40 68 17 30 61 107 98 170
|
||||
37 63 84 144 103 180 19 36 41 72 48 81 8 8 14 18 14 21 0 4 27 51 59 106 32
|
||||
55 72 124 89 154 16 29 71 125 122 213 51 88 104 180 118 205 13 25 28 50 32
|
||||
55 4 6 17 26 28 45 11 19 45 80 77 135 31 55 66 116 77 135 11 19 88 152 171
|
||||
295 401 694 620 1072 650 1125 11 19 87 152 170 295 83 143 158 273 166 288 9
|
||||
16 21 36 26 45 6 9 31 52 55 96 25 43 54 94 66 115 11 20 95 164 186 321 91
|
||||
157 173 299 182 315 9 17 26 46 37 65 12 19 66 114 121 210 56 96 108 186 117
|
||||
200 8 14 24 40 34 59 24 45 383 664 412 713 5 9 17 29 26 45 15 28 120 210
|
||||
241 419 36 61 68 117 72 125 4 8 12 23 19 34 35 57 245 420 262 453 11 20 35
|
||||
61 53 90 17 29 32 54 32 56 0 3 28 51 62 108 33 57 70 119 80 138 10 19 23 42
|
||||
28 50 5 8 32 53 59 100 27 47 149 258 271 470 122 212 234 405 248 430 30 53
|
||||
62 108 80 135 6 11 15 27 19 35 4 8 85 150 181 315 96 165 187 323 202 350 31
|
||||
56 116 202 130 225 5 8 25 42 43 75 19 33 92 159 162 280 149 257 157 271 202
|
||||
350 19 33 38 67 43 75 9 14 228 392 275 475 12 22 55 96 95 165 40 69 80 139
|
||||
90 155 24 42 202 350 221 383 9 15 27 47 41 72 14 25 75 131 136 236 61 106
|
||||
121 210 134 232 99 172 271 470 279 482 5 8 23 40 40 70 18 30 81 141 142 245
|
||||
60 105 121 210 135 235 14 25 71 124 127 220 56 96 143 247 194 335 51 88 96
|
||||
167 102 175 14 24 180 311 204 355 23 43 340 590 356 615 5 8 50 87 101 175
|
||||
171 301 517 898 582 1008 25 43 46 81 46 83 0 2 12 23 27 47 14 23 40 67 56
|
||||
97 16 30 35 62 42 70 7 8 15 22 18 30 4 8 20 38 37 65 16 28 33 57 37 65 6 12
|
||||
111 196 143 250 5 8 55 95 112 193 57 98 113 195 126 215 12 20 27 46 32 57 6
|
||||
11 14 27 20 35 5 8 76 130 156 270 80 140 165 287 187 325 23 39 52 90 66 115
|
||||
13 25 30 52 37 61 8 8 14 18 14 21 0 4 41 77 92 165 50 87 175 302 276 478
|
||||
101 176 208 360 236 408 28 49 67 117 86 152 19 35 41 70 48 77 6 6 12 15 12
|
||||
19 0 7 124 224 167 291 12 21 23 40 23 42 0 2 21 40 46 83 26 43 55 92 64 109
|
||||
54 95 327 568 354 614 19 30 45 75 59 100 71 128 82 145 89 148 4 2 8 8 8 13
|
||||
0 5 42 82 94 172 311 538 496 858 518 897 14 25 40 70 58 100 18 30 42 71 53
|
||||
90 10 19 79 139 152 265 73 127 142 246 153 265 10 19 43 76 72 125 29 50 63
|
||||
108 75 130 65 116 80 140 87 143 4 2 8 8 8 12 0 8 114 212 140 250 6 8 14 24
|
||||
20 35 5 11 54 97 108 190 l100 170 -9611 3 c-5286 1 -9614 -1 -9618 -5 -5 -6
|
||||
-419 -719 -619 -1068 -89 -155 -267 -463 -323 -560 -38 -66 -81 -140 -95 -165
|
||||
-31 -56 -263 -457 -526 -910 -110 -190 -224 -388 -254 -440 -29 -52 -61 -109
|
||||
-71 -125 -23 -39 -243 -420 -268 -465 -11 -19 -204 -352 -428 -740 -224 -388
|
||||
-477 -826 -563 -975 -85 -148 -185 -322 -222 -385 -37 -63 -120 -207 -185
|
||||
-320 -65 -113 -177 -306 -248 -430 -72 -124 -172 -297 -222 -385 -51 -88 -142
|
||||
-245 -202 -350 -131 -226 -247 -427 -408 -705 -65 -113 -249 -432 -410 -710
|
||||
-160 -278 -388 -673 -506 -877 -118 -205 -216 -373 -219 -373 -3 0 -52 82
|
||||
-109 183 -58 100 -144 250 -192 332 -95 164 -402 696 -647 1120 -85 149 -228
|
||||
396 -317 550 -212 365 -982 1700 -1008 1745 -10 19 -43 76 -72 125 -29 50 -64
|
||||
110 -77 135 -14 25 -63 110 -110 190 -47 80 -96 165 -110 190 -14 25 -99 171
|
||||
-188 325 -89 154 -174 300 -188 325 -13 25 -64 113 -112 195 -48 83 -140 242
|
||||
-205 355 -65 113 -183 317 -263 454 -79 137 -152 264 -163 282 -50 89 -335
|
||||
583 -354 614 -12 19 -34 58 -50 85 -15 28 -129 226 -253 440 -124 215 -235
|
||||
408 -247 430 -12 22 -69 121 -127 220 -58 99 -226 389 -373 645 -148 256 -324
|
||||
561 -392 678 -67 117 -134 232 -147 255 -13 23 -33 59 -46 80 l-22 37 -9615 0
|
||||
-9615 0 20 -32z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" style="padding: 0;height:100%">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<!--[if IE]>
|
||||
<link rel="icon" href="favicon.ico"/><![endif]--><title>Legado Bookshelf</title>
|
||||
<link href="css/about.b9bb4fe0.css" rel="prefetch">
|
||||
<link href="css/detail.e03dc50b.css" rel="prefetch">
|
||||
<link href="js/about.9f8f9ac0.js" rel="prefetch">
|
||||
<link href="js/about~detail.8270a871.js" rel="prefetch">
|
||||
<link href="js/detail.4e6a53a9.js" rel="prefetch">
|
||||
<link href="css/app.e4c919b7.css" rel="preload" as="style">
|
||||
<link href="css/chunk-vendors.8a465a1d.css" rel="preload" as="style">
|
||||
<link href="js/app.e84ee963.js" rel="preload" as="script">
|
||||
<link href="js/chunk-vendors.3ef7796f.js" rel="preload" as="script">
|
||||
<link href="css/chunk-vendors.8a465a1d.css" rel="stylesheet">
|
||||
<link href="css/app.e4c919b7.css" rel="stylesheet">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="img/icons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="img/icons/favicon-16x16.png">
|
||||
<link rel="manifest" href="manifest.json">
|
||||
<meta name="theme-color" content="#4DBA87">
|
||||
<meta name="apple-mobile-web-app-capable" content="no">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<meta name="apple-mobile-web-app-title" content="yd-web-tool">
|
||||
<link rel="apple-touch-icon" href="img/icons/apple-touch-icon-152x152.png">
|
||||
<link rel="mask-icon" href="img/icons/safari-pinned-tab.svg" color="#4DBA87">
|
||||
<meta name="msapplication-TileImage" content="img/icons/msapplication-icon-144x144.png">
|
||||
<meta name="msapplication-TileColor" content="#000000">
|
||||
</head>
|
||||
<style>body::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<body style="margin: 0;height:100%">
|
||||
<noscript><strong>We're sorry but yd-web-tool doesn't work properly without JavaScript enabled.
|
||||
Please enable it to continue.</strong></noscript>
|
||||
<div id="app"></div>
|
||||
<script src="js/chunk-vendors.3ef7796f.js"></script>
|
||||
<script src="js/app.e84ee963.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["about"],{"04d1":function(t,e,n){var r=n("342f"),a=r.match(/firefox\/(\d+)/i);t.exports=!!a&&+a[1]},"0cb2":function(t,e,n){var r=n("7b0b"),a=Math.floor,i="".replace,s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,o,l,u){var d=n+t.length,f=o.length,h=c;return void 0!==l&&(l=r(l),h=s),i.call(u,h,(function(r,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(d);case"<":s=l[i.slice(1,-1)];break;default:var c=+i;if(0===c)return r;if(c>f){var u=a(c/10);return 0===u?r:u<=f?void 0===o[u-1]?i.charAt(1):o[u-1]+i.charAt(1):r}s=o[c-1]}return void 0===s?"":s}))}},"4d63":function(t,e,n){var r=n("83ab"),a=n("da84"),i=n("94ca"),s=n("7156"),c=n("9112"),o=n("9bf2").f,l=n("241c").f,u=n("44e7"),d=n("ad6d"),f=n("9f7f"),h=n("6eeb"),g=n("d039"),v=n("5135"),p=n("69f3").enforce,m=n("2626"),b=n("b622"),w=n("fce3"),x=n("107c"),C=b("match"),A=a.RegExp,I=A.prototype,R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,y=/a/g,k=/a/g,E=new A(y)!==y,M=f.UNSUPPORTED_Y,S=r&&(!E||M||w||x||g((function(){return k[C]=!1,A(y)!=y||A(k)==k||"/a/i"!=A(y,"i")}))),B=function(t){for(var e,n=t.length,r=0,a="",i=!1;r<=n;r++)e=t.charAt(r),"\\"!==e?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),a+=e):a+="[\\s\\S]":a+=e+t.charAt(++r);return a},T=function(t){for(var e,n=t.length,r=0,a="",i=[],s={},c=!1,o=!1,l=0,u="";r<=n;r++){if(e=t.charAt(r),"\\"===e)e+=t.charAt(++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:R.test(t.slice(r+1))&&(r+=2,o=!0),a+=e,l++;continue;case">"===e&&o:if(""===u||v(s,u))throw new SyntaxError("Invalid capture group name");s[u]=!0,i.push([u,l]),o=!1,u="";continue}o?u+=e:a+=e}return[a,i]};if(i("RegExp",S)){for(var $=function(t,e){var n,r,a,i,o,l,f=this instanceof $,h=u(t),g=void 0===e,v=[],m=t;if(!f&&h&&g&&t.constructor===$)return t;if((h||t instanceof $)&&(t=t.source,g&&(e="flags"in m?m.flags:d.call(m))),t=void 0===t?"":String(t),e=void 0===e?"":String(e),m=t,w&&"dotAll"in y&&(r=!!e&&e.indexOf("s")>-1,r&&(e=e.replace(/s/g,""))),n=e,M&&"sticky"in y&&(a=!!e&&e.indexOf("y")>-1,a&&(e=e.replace(/y/g,""))),x&&(i=T(t),t=i[0],v=i[1]),o=s(A(t,e),f?this:I,$),(r||a||v.length)&&(l=p(o),r&&(l.dotAll=!0,l.raw=$(B(t),n)),a&&(l.sticky=!0),v.length&&(l.groups=v)),t!==m)try{c(o,"source",""===m?"(?:)":m)}catch(b){}return o},_=function(t){t in $||o($,t,{configurable:!0,get:function(){return A[t]},set:function(e){A[t]=e}})},D=l(A),z=0;D.length>z;)_(D[z++]);I.constructor=$,$.prototype=I,h(a,"RegExp",$)}m("RegExp")},"4e82":function(t,e,n){"use strict";var r=n("23e7"),a=n("1c0b"),i=n("7b0b"),s=n("50c4"),c=n("d039"),o=n("addb"),l=n("a640"),u=n("04d1"),d=n("d998"),f=n("2d00"),h=n("512c"),g=[],v=g.sort,p=c((function(){g.sort(void 0)})),m=c((function(){g.sort(null)})),b=l("sort"),w=!c((function(){if(f)return f<70;if(!(u&&u>3)){if(d)return!0;if(h)return h<603;var t,e,n,r,a="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:e+r,v:n})}for(g.sort((function(t,e){return e.v-t.v})),r=0;r<g.length;r++)e=g[r].k.charAt(0),a.charAt(a.length-1)!==e&&(a+=e);return"DGBEFHACIJK"!==a}})),x=p||!m||!b||!w,C=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:String(e)>String(n)?1:-1}};r({target:"Array",proto:!0,forced:x},{sort:function(t){void 0!==t&&a(t);var e=i(this);if(w)return void 0===t?v.call(e):v.call(e,t);var n,r,c=[],l=s(e.length);for(r=0;r<l;r++)r in e&&c.push(e[r]);c=o(c,C(t)),n=c.length,r=0;while(r<n)e[r]=c[r++];while(r<l)delete e[r++];return e}})},"512c":function(t,e,n){var r=n("342f"),a=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!a&&+a[1]},5319:function(t,e,n){"use strict";var r=n("d784"),a=n("d039"),i=n("825a"),s=n("50c4"),c=n("a691"),o=n("1d80"),l=n("8aa5"),u=n("0cb2"),d=n("14c3"),f=n("b622"),h=f("replace"),g=Math.max,v=Math.min,p=function(t){return void 0===t?t:String(t)},m=function(){return"$0"==="a".replace(/./,"$0")}(),b=function(){return!!/./[h]&&""===/./[h]("a","$0")}(),w=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));r("replace",(function(t,e,n){var r=b?"$":"$0";return[function(t,n){var r=o(this),a=void 0==t?void 0:t[h];return void 0!==a?a.call(t,r,n):e.call(String(r),t,n)},function(t,a){if("string"===typeof a&&-1===a.indexOf(r)&&-1===a.indexOf("$<")){var o=n(e,this,t,a);if(o.done)return o.value}var f=i(this),h=String(t),m="function"===typeof a;m||(a=String(a));var b=f.global;if(b){var w=f.unicode;f.lastIndex=0}var x=[];while(1){var C=d(f,h);if(null===C)break;if(x.push(C),!b)break;var A=String(C[0]);""===A&&(f.lastIndex=l(h,s(f.lastIndex),w))}for(var I="",R=0,y=0;y<x.length;y++){C=x[y];for(var k=String(C[0]),E=g(v(c(C.index),h.length),0),M=[],S=1;S<C.length;S++)M.push(p(C[S]));var B=C.groups;if(m){var T=[k].concat(M,E,h);void 0!==B&&T.push(B);var $=String(a.apply(void
Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["about~detail"],{"0a06":function(e,t,n){"use strict";var r=n("c532"),o=n("30b5"),i=n("f6b4"),s=n("5270"),a=n("4a7b");function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=a(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=c},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"107c":function(e,t,n){var r=n("d039");e.exports=r((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},"14c3":function(e,t,n){var r=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),o=n("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function a(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var c={adapter:a(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c}).call(this,n("4362"))},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.paLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
(function(e){function t(t){for(var o,r,i=t[0],c=t[1],l=t[2],f=0,d=[];f<i.length;f++)r=i[f],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&d.push(a[r][0]),a[r]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);s&&s(t);while(d.length)d.shift()();return u.push.apply(u,l||[]),n()}function n(){for(var e,t=0;t<u.length;t++){for(var n=u[t],o=!0,r=1;r<n.length;r++){var i=n[r];0!==a[i]&&(o=!1)}o&&(u.splice(t--,1),e=c(c.s=n[0]))}return e}var o={},r={app:0},a={app:0},u=[];function i(e){return c.p+"js/"+({"about~detail":"about~detail",about:"about",detail:"detail"}[e]||e)+"."+{"about~detail":"8270a871",about:"9f8f9ac0",detail:"4e6a53a9"}[e]+".js"}function c(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={about:1,detail:1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="css/"+({"about~detail":"about~detail",about:"about",detail:"detail"}[e]||e)+"."+{"about~detail":"31d6cfe0",about:"b9bb4fe0",detail:"e03dc50b"}[e]+".css",a=c.p+o,u=document.getElementsByTagName("link"),i=0;i<u.length;i++){var l=u[i],f=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(f===o||f===a))return t()}var d=document.getElementsByTagName("style");for(i=0;i<d.length;i++){l=d[i],f=l.getAttribute("data-href");if(f===o||f===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var o=t&&t.target&&t.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=o,delete r[e],s.parentNode.removeChild(s),n(u)},s.href=a;var p=document.getElementsByTagName("head")[0];p.appendChild(s)})).then((function(){r[e]=0})));var o=a[e];if(0!==o)if(o)t.push(o[2]);else{var u=new Promise((function(t,n){o=a[e]=[t,n]}));t.push(o[2]=u);var l,f=document.createElement("script");f.charset="utf-8",f.timeout=120,c.nc&&f.setAttribute("nonce",c.nc),f.src=i(e);var d=new Error;l=function(t){f.onerror=f.onload=null,clearTimeout(s);var n=a[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",d.name="ChunkLoadError",d.type=o,d.request=r,n[1](d)}a[e]=void 0}};var s=setTimeout((function(){l({type:"timeout",target:f})}),12e4);f.onerror=f.onload=l,document.head.appendChild(f)}return Promise.all(t)},c.m=e,c.c=o,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)c.d(n,o,function(t){return e[t]}.bind(null,o));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="",c.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],f=l.push.bind(l);l.push=t,l=l.slice();for(var d=0;d<l.length;d++)t(l[d]);var s=f;u.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";n("85ec")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var o=n("2b0e"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},a=[],u={name:"app",components:{}},i=u,c=(n("034f"),n("2877")),l=Object(c["a"])(i,r,a,!1,null,null,null),f=l.exports,d=(n("d3b7"),n("3ca3"),n("ddb0"),n("8c4f"));o["default"].use(d["a"]);var s=d["a"].prototype.push;d["a"].prototype.push=function(e){return s.call(this,e).catch((function(e){return e}))};var p=[{path:"/",name:"index",component:function(){return Promise.all([n.e("about~detail"),n.e("about")]).then(n.bind(null,"d504"))}},{path:"/about",name:"about",component:function(){return Promise.all([n.e("about~detail"),n.e("about")]).then(n.bind(null,"f820"))}},{path:"/detail",name:"Detail",component:function(){return Promise.all([n.e("about~detail"),n.e("detail")]).then(n.bind(null,"c84b"))}},{path:"/chapter",name:"Chapter",component:function(){return Promise.all([n.e("about~detail"),n.e("detail")]).then(n.bind(null,"537b"))}}],b=new d["a"]({base:"",routes:p}),h=b,g=(n("0fb7"),n("450d"),n("f529")),m=n.n(g),v=(n("9e1f"),n("6ed5")),y=n.n(v),w=(n("be4f"),n("896a")),C=n.n(w),S=(n("cbb5"),n("8bbc")),P=n.n(S),O=(n("10cb"),n("f3ad")),j=n.n(O),k=(n("06f1"),n("6ac9")),T=n.n(k),_=(n("5466"),n("ecdf")),x=n.n(_),E=(n("38a0"),n("ad41")),A=n.n(E),L=(n("b84d"),n("c216")),$=n.n(L),B=(n("8f24"),n("76b9")),N=n.n(B),V=(n("e3ea"),n("7bc3")),M=n.n(V),D=(n("1951"),n("eedf")),q=n.n(D);o["deLine truncated
|
||||
@@ -0,0 +1,33 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"06cf":function(e,t,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},"06f1":function(e,t,n){},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0fb7":function(e,t,n){},"10cb":function(e,t,n){},"14e9":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=131)}({131:function(e,t,n){"use strict";n.r(t);var r=n(16),o=n(38),i=n.n(o),a=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function u(e){var t=e.move,n=e.size,r=e.bar,o={},i="translate"+r.axis+"("+t+"%)";return o[r.size]=n,o.transform=i,o.msTransform=i,o.webkitTransform=i,o}var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:u({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-t,o=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=o*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},f={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=i()(),n=this.wrapStyle;if(t){var r="-"+t+"px",o="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=o:n=o}var s=e(this.tag,{class:["el-scroLine truncated
|
||||
/*!
|
||||
* Vue.js v2.6.14
|
||||
* (c) 2014-2021 Evan You
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
var n=Object.freeze({});function r(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function f(e){return"[object RegExp]"===u.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}m("slot,component",!0);var y=m("key,ref,slot,slot-scope,is");function g(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.call(e,t)}function x(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var w=/-(\w)/g,C=x((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),S=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),O=/\B([A-Z])/g,E=x((function(e){return e.replace(O,"-$1").toLowerCase()}));function k(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function $(e,t){return e.bind(t)}var j=Function.prototype.bind?$:k;function T(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function A(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n<e.length;n++)e[n]&&A(t,e[n]);return t}function P(e,t,n){}var L=function(e,t,n){return!1},R=function(e){return e};function N(e,t){if(e===t)return!0;var n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every((function(e,n){return N(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return N(e[n],t[n])}))}catch(u){return!1}}function I(e,t){for(var n=0;n<e.length;n++)if(N(e[n],t))return n;return-1}function F(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var H="data-server-rendered",D=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:P,parsePlatformTagName:R,mustUseProp:L,async:!0,_lifecycleHooks:z},W=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function U(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var q=new RegExp("[^"+W.source+".$_\\d]");function K(e){if(!q.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var G,X="__proto__"in{},Y="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Z=J&&WXEnvironment.platform.toLowerCase(),Q=Y&&window.navigator.userAgent.toLowerCase(),ee=Q&&/msie|trident/.test(Q),te=Q&&Q.indexOf("msie 9.0")>0,ne=Q&&Q.indexOf("edge/")>0,re=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===Z),oe=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ie={}.watch,ae=!1;if(Y)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(Sa){}var le=function(){return void 0===G&&(G=!Y&&!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),G},ue=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,de="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);fe="undefined"!==typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var pe=P,he=0,ve=function(){this.id=he++,this.subs=[]};ve.prototype.addSub=function(e){this.subs.push(e)},ve.prototype.removeSub=function(e){g(this.subs,e)},ve.prototype.depend=funcLine truncated
|
||||
/*!
|
||||
* vuex v3.6.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=s(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}function f(e,t){return function(){return e(t)}}var d=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(e,t){this._children[e]=t},d.prototype.removeChild=function(e){delete this._children[e]},d.prototype.getChild=function(e){return this._children[e]},d.prototype.hasChild=function(e){return e in this._children},d.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},d.prototype.forEachChild=function(e){l(this._children,e)},d.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},d.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},d.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(d.prototype,p);var h=function(e){this.register([],e,!1)};function v(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;v(e.concat(r),t.getChild(r),n.modules[r])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},h.prototype.update=function(e){v([],this.root,e)},h.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new d(t,n);if(0===e.length)this.root=o;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],o)}t.modules&&l(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var m;var y=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!==typeof window&&window.Vue&&A(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var o=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,n){return l.call(o,e,t,n)},this.strict=r;var u=this._modules.root.state;w(this,u,[],this._modules.root),x(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:m.config.devtools;c&&i(this)},g={state:{configurable:!0}};function b(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function _(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;w(e,n,[],e._modules.root,!0),x(e,n,t)}function x(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={};l(o,(function(t,n){i[n]=f(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:i}),m.config.silent=a,e.strict&&$(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),m.nextTick((function(){return r.$destroy()})))}function w(e,t,n,r,o){var i=!n.length,aLine truncated
|
||||
/**
|
||||
* Checks if an event is supported in the current execution environment.
|
||||
*
|
||||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||||
* `reset`, `load`, `error`, and `select`.
|
||||
*
|
||||
* Borrows from Modernizr.
|
||||
*
|
||||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||||
* @param {?boolean} capture Check if the capture phase is supported.
|
||||
* @return {boolean} True if the event is supported.
|
||||
* @internal
|
||||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||||
*/
|
||||
function i(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"===typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=i},"7bc3":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=82)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):o&&(l=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},82:function(e,t,n){"use strict";n.r(t);var r=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])},o=[];r._withStripped=!0;var i={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},a=i,s=n(0),l=Object(s["a"])(a,r,o,!0,null,null,null);l.options.__file="packages/divider/src/main.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},"7c73":function(e,t,n){var r,o=n("825a"),i=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),f=">",d="<",p="prototype",h="script",v=c("IE_PROTO"),m=function(){},y=function(e){return d+h+f+e+d+"/"+h+f},g=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+h+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=r?g(r):b();var e=a.length;while(e--)delete _[p][a[e]];return _()};s[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[p]=o(e),n=new m,m[p]=null,n[v]=e):n=_(),void 0===t?n:i(n,t)}},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),u=n("6eeb"),c=n("b622"),f=n("c430"),d=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=c("iterator"),y="keys",g="values",b="entries",_=function(){return this};e.exports=function(e,t,n,c,p,x,w){o(n,t,c);var C,S,O,E=function(e){if(e===p&&A)return A;if(!v&&e in j)return j[e];switch(e){case y:return function(){return new n(this,e)};case g:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",$=!1,j=e.prototype,T=j[m]||j["@@iterator"]||p&&j[p],A=!v&&T||E(p),M="Array"==t&&j.entries||T;if(M&&(C=i(M.call(new e)),h!==Object.prototype&&C.next&&(f||i(C)===h||(a?a(C,h):"function"!=typeof C[m]&&l(C,m,_)),s(C,k,!0,!0),f&&(d[k]=_))),p==g&&T&&T.name!==g&&($=!0,A=function(){return T.call(this)}),f&&!w||j[m]===A||l(j,m,A),d[t]=A,p)if(S={values:E(g),keys:x?A:E(y),entries:E(b)},w)for(O in S)(v||$||!(O in j))&&u(j,O,S[O]);else r({target:t,proto:!0,forced:v||$},S);return S}},"7f4d":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=argumeLine truncated
|
||||
/*!
|
||||
* vue-router v3.5.2
|
||||
* (c) 2021 Evan You
|
||||
* @license MIT
|
||||
*/function r(e,t){0}function o(e,t){for(var n in t)e[n]=t[n];return e}var i=/[!'()*]/g,a=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g,l=function(e){return encodeURIComponent(e).replace(i,a).replace(s,",")};function u(e){try{return decodeURIComponent(e)}catch(t){0}return e}function c(e,t,n){void 0===t&&(t={});var r,o=n||d;try{r=o(e||"")}catch(s){r={}}for(var i in t){var a=t[i];r[i]=Array.isArray(a)?a.map(f):f(a)}return r}var f=function(e){return null==e||"object"===typeof e?e:String(e)};function d(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=u(n.shift()),o=n.length>0?u(n.join("=")):null;void 0===t[r]?t[r]=o:Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]})),t):t}function p(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return l(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(l(t)):r.push(l(t)+"="+l(e)))})),r.join("&")}return l(t)+"="+l(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var h=/\/?$/;function v(e,t,n,r){var o=r&&r.options.stringifyQuery,i=t.query||{};try{i=m(i)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:i,params:t.params||{},fullPath:b(t,o),matched:e?g(e):[]};return n&&(a.redirectedFrom=b(n,o)),Object.freeze(a)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var y=v(null,{path:"/"});function g(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function b(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var o=e.hash;void 0===o&&(o="");var i=t||p;return(n||"/")+i(r)+o}function _(e,t,n){return t===y?e===t:!!t&&(e.path&&t.path?e.path.replace(h,"")===t.path.replace(h,"")&&(n||e.hash===t.hash&&x(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&x(e.query,t.query)&&x(e.params,t.params))))}function x(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,o){var i=e[n],a=r[o];if(a!==n)return!1;var s=t[n];return null==i||null==s?i===s:"object"===typeof i&&"object"===typeof s?x(i,s):String(i)===String(s)}))}function w(e,t){return 0===e.path.replace(h,"/").indexOf(t.path.replace(h,"/"))&&(!t.hash||e.hash===t.hash)&&C(e.query,t.query)}function C(e,t){for(var n in t)if(!(n in e))return!1;return!0}function S(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var o=n.instances[r],i=n.enteredCbs[r];if(o&&i){delete n.enteredCbs[r];for(var a=0;a<i.length;a++)o._isBeingDestroyed||i[a](o)}}}}var O={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,i=t.parent,a=t.data;a.routerView=!0;var s=i.$createElement,l=n.name,u=i.$route,c=i._routerViewCache||(i._routerViewCache={}),f=0,d=!1;while(i&&i._routerRoot!==i){var p=i.$vnode?i.$vnode.data:{};p.routerView&&f++,p.keepAlive&&i._directInactive&&i._inactive&&(d=!0),i=i.$parent}if(a.routerViewDepth=f,d){var h=c[l],v=h&&h.component;return v?(h.configProps&&E(v,a,h.route,h.configProps),s(v,a,r)):s()}var m=u.matched[f],y=m&&m.components[l];if(!m||!y)return c[l]=null,s();c[l]={component:y},a.registerRouteInstance=function(e,t){var n=m.instances[l];(t&&n!==e||!t&&n===e)&&(m.instances[l]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){m.instances[l]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[l]&&(m.instances[l]=e.componentInstance),S(u)};var g=m.props&&m.props[l];return g&&(o(c[l],{route:u,configProps:g}),E(y,a,u,g)),s(y,a,r)}};function E(e,t,n,r){var i=t.props=k(n,r);if(i){i=t.props=o({},i);var a=t.attrs=t.attrs||{};for(var s in i)e.props&&s in e.props||(a[s]=i[s],delete i[s])}}function k(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function $(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var o=t.split("/");n&&o[o.length-1]||o.pop();for(var i=e.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var s=i[a];".."===s?o.pop():"."!==s&&o.push(s)}return""!==o[0]&&o.unshift(""),o.join("/")}function j(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var o=e.indexOf("?");return o>=0&&(n=e.slice(o+1),e=e.slice(0,o)),{path:e,query:n,hash:t}}function T(e){return e.replace(/\/\//g,"/")}var A=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},M=J,P=F,L=H,R=B,N=Y,I=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(e,t){var n,r=[],o=0,i=0,a="",s=t&&t.delimiter||"/";while(null!=(n=I.exec(e))){var l=n[0],u=n[1],c=n.index;if(a+=e.slice(i,c),i=c+l.lLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["detail"],{"057f":function(t,e,n){var o=n("fc6a"),i=n("241c").f,s={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==s.call(t)?r(t):i(o(t))}},"05b3":function(t,e,n){},"0827":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEUWGBkYGhsdHyAfISI1t/v6AAAB5ElEQVQozxXQsYoTURSA4f/EeycZsDgDdySDjihk38Hy3GWi2J2BCaziQhaiaB+tt9AFu1kwvYUPsIXNPoB9BAUfwAfwEUzKv/v4odGrroyp9/rUaC6rZ5skv5F8qPsfYYP+yKUMymmAEEeW55oUR4o8jr05KNzJ07yvB7w0KKfLwcQUSjfmMU0PJfPHFoEVU+ohNrcKMEzMQ23FDnVSI2dqtYWI7KlLu6vE4UnyvKc3SJuL7lBbeEEl42ItpGLjzIT8PRJCmkRjVpVpsbJFVN0687okJNZiHAr5Z7MV0BnGIDc+THM1zlbieBc1Fq+tH5BH+OpnbWkj40hSqC8Lw2TvFuF0SUFJCk2IytXbjeqcRAt6NHpnrUkUU4KRzZs8RCK8N/Akn2W04LwxMU/V7XK0bDyN2RxfDyx7I4h5vjZby72V8UnOWumZL3qtYc+8DTE0siSBMXGhywx2dMYPnQHbxdFZ7deiNGxCCtD/QWnbwDoGhRYPDzUdUA3krjpnkvdAgDN4ddLkEQSov9qjd42HaDjI34gEqS9TUueAk+sc4qg5ws407KQYKs8G1jv4xBlqBVk6cb4dISZIwVi1Jzu4+HLk6lyfUxkXvwy+1Q+4WVdHIhwfybZ6CWVhxMEhShOgsP/HOW0MvZJeFwAAAABJRU5ErkJggg=="},1276:function(t,e,n){"use strict";var o=n("d784"),i=n("44e7"),s=n("825a"),a=n("1d80"),r=n("4840"),c=n("8aa5"),A=n("50c4"),l=n("14c3"),u=n("9263"),f=n("9f7f"),g=n("d039"),d=f.UNSUPPORTED_Y,h=[].push,p=Math.min,m=4294967295,b=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(t,e,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var o=String(a(this)),s=void 0===n?m:n>>>0;if(0===s)return[];if(void 0===t)return[o];if(!i(t))return e.call(o,t,s);var r,c,A,l=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,d=new RegExp(t.source,f+"g");while(r=u.call(d,o)){if(c=d.lastIndex,c>g&&(l.push(o.slice(g,r.index)),r.length>1&&r.index<o.length&&h.apply(l,r.slice(1)),A=r[0].length,g=c,l.length>=s))break;d.lastIndex===r.index&&d.lastIndex++}return g===o.length?!A&&d.test("")||l.push(""):l.push(o.slice(g)),l.length>s?l.slice(0,s):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=a(this),s=void 0==e?void 0:e[t];return void 0!==s?s.call(e,i,n):o.call(String(i),e,n)},function(t,i){var a=n(o,this,t,i,o!==e);if(a.done)return a.value;var u=s(this),f=String(t),g=r(u,RegExp),h=u.unicode,b=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(d?"g":"y"),v=new g(d?"^(?:"+u.source+")":u,b),C=void 0===i?m:i>>>0;if(0===C)return[];if(0===f.length)return null===l(v,f)?[f]:[];var y=0,B=0,S=[];while(B<f.length){v.lastIndex=d?0:B;var I,k=l(v,d?f.slice(B):f);if(null===k||(I=p(A(v.lastIndex+(d?B:0)),f.length))===y)B=c(f,B,h);else{if(S.push(f.slice(y,B)),S.length===C)return S;for(var w=1;w<=k.length-1;w++)if(S.push(k[w]),S.length===C)return S;B=y=I}}return S.push(f.slice(y)),S}]}),!b,d)},1632:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXh7vLf7PDj8PTm8/ecW+lZAAACZElEQVQozw2RsU8TUQCHfz3fw7MS87jeI7DdmSMpDEoHE+P0HqGkvRR8vb5XC4NpN2RQZqcK9xJkwtriekcggerC4OZADDiT+A+goxv/gfwB3zd8H/T6vYF/pTZkCSmDNd3CBEtmZJP4N+CvvhecDvmntKsvwB17rpbIRTLOEoYkj9KZzRUuJsuBQFwgptyJ3Y7EL4V+ud5LO1UnMeQSSObqisiISZkbQBlliP3qWSk3GPQXjxv6VF2BTDO4ySx1zhuJXbA2wBNJF4t5vH9keg6wu5NvUpLtXrZ3OHC9ZsgVcZdOl38PM1y/L6m8GRiErj4AqezUjHGatGGIgs5NJDHh8Ua1IuB4035haVT6SaYWMoQ0eJ3rB/Gpnr3fB49YAy1Wa21YKqAHOmAveVw6CCMGMZh5bGtVI7jnZaiQNbta1Z+285oSoKoRbta1KZ/1bBdKH/RIxv2pRVpkoCmvpr097RWoo0CpMlTWllIenSjECU8mV43mHx2fIRfH/pncrJm3+58BWdbSqCS07/yiQnvHiCG4ZPGRFeAtfreoOubyctzHvLNHhjNvIhukxQzjU5O6QdOEzUp1Ef4d98Pxz+IPYX0bcpnT52dbedfz8y7C4R89RV+MjJkuCCx7mWDt4eyK/62lQB55xXGJK7p8u6bgRv4hVHylelYGGFs64W94tng8sAIVqSRJBpqRA9rFvAysS+9ak8s7557pz5HR4qhCRmWgplpTRJ+bhYfSAMO8/YBucWPuSdmFFtOnuWqvV2NbF6CJnbhNDzEZ/T0XSDrUydzkZCG1z/oIEyUFYxW/KPXNfwopuHDcO04UAAAAAElFTkSuQmCC"},"1dde":function(t,e,n){var o=n("d039"),i=n("b622"),s=n("2d00"),a=i("species");t.exports=function(t){return s>=51||!o((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1e75":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAgMAAABjUWAiAAAADFBMVEXM2t7O3ODQ3uLR4OTDp25yAAACdUlEQVQozw3P70sTcQDH8c/3/M7NG+j35mnHwjwh4hRy/QFK3zvPNbeIG1koPZmxfj2IDAwihL53zj0JYisfmEHcZJZOiBUG60lZiI8T/ANusuftgQ+kCPIPeMP7hS5mUrV9c1g6MQCAEZ8tDLHwofImAGRlX+SZK3Vu9rRRPuO4PK6/9nA4GIATsxlODS+rdCMhkAZivpYV0LWoQHSLSA4NfUg+6mY+7BKL2++F9LvnrBDYm6JO9i/YO3i/HJTGQ4pdIV82TbEDFG6vGYCd4wZchgK5J2CrKTLE+Tx0v+YGlIbdWJFcQl4ptBN8fUJQN1MCJLcZLYwUVVo+famGGty8EXJF5ofOEDzcodT3/Fb0I5sHmc1ZG7CcSl8COgxlXx09jT05OafjCZLIHJhGIaU6wDZHsuMQ41wbdjmQXbhKnMq1zlXSYrjCnyZblqexA7fC8RxS74tq2P3OxSQwTuJSApH8OZLzBBLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"yd-web-tool","short_name":"yd-web-tool","theme_color":"#4DBA87","icons":[{"src":"./img/icons/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"./img/icons/android-chrome-512x512.png","sizes":"512x512","type":"image/png"},{"src":"./img/icons/android-chrome-maskable-192x192.png","sizes":"192x192","type":"image/png","purpose":"maskable"},{"src":"./img/icons/android-chrome-maskable-512x512.png","sizes":"512x512","type":"image/png","purpose":"maskable"}],"start_url":".","display":"standalone","background_color":"#000000"}
|
||||
@@ -0,0 +1,70 @@
|
||||
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
||||
{
|
||||
"revision": "c6913d775f2f965ac5f3",
|
||||
"url": "css/about.b9bb4fe0.css"
|
||||
},
|
||||
{
|
||||
"revision": "c7b3e35a4e0391b1ed37",
|
||||
"url": "css/app.e4c919b7.css"
|
||||
},
|
||||
{
|
||||
"revision": "9a65f05f9810a3ea7f46",
|
||||
"url": "css/chunk-vendors.8a465a1d.css"
|
||||
},
|
||||
{
|
||||
"revision": "5ab5c6be15b21e2d609b",
|
||||
"url": "css/detail.e03dc50b.css"
|
||||
},
|
||||
{
|
||||
"revision": "535877f50039c0cb49a6196a5b7517cd",
|
||||
"url": "fonts/element-icons.535877f5.woff"
|
||||
},
|
||||
{
|
||||
"revision": "732389ded34cb9c52dd88271f1345af9",
|
||||
"url": "fonts/element-icons.732389de.ttf"
|
||||
},
|
||||
{
|
||||
"revision": "f9a3fb0e145017e166dd4d91d9280cc4",
|
||||
"url": "fonts/iconfont.f9a3fb0e.woff"
|
||||
},
|
||||
{
|
||||
"revision": "f39ecc1a1d2a1eff3aca8aadd818bb61",
|
||||
"url": "fonts/popfont.f39ecc1a.ttf"
|
||||
},
|
||||
{
|
||||
"revision": "6c094b6d4ae9404dbed273c41b06fae8",
|
||||
"url": "fonts/shelffont.6c094b6d.ttf"
|
||||
},
|
||||
{
|
||||
"revision": "8a8424347500238b7b6c08a98d0f89af",
|
||||
"url": "index.html"
|
||||
},
|
||||
{
|
||||
"revision": "c6913d775f2f965ac5f3",
|
||||
"url": "js/about.9f8f9ac0.js"
|
||||
},
|
||||
{
|
||||
"revision": "5998ccb313ed338c15e1",
|
||||
"url": "js/about~detail.8270a871.js"
|
||||
},
|
||||
{
|
||||
"revision": "c7b3e35a4e0391b1ed37",
|
||||
"url": "js/app.e84ee963.js"
|
||||
},
|
||||
{
|
||||
"revision": "9a65f05f9810a3ea7f46",
|
||||
"url": "js/chunk-vendors.3ef7796f.js"
|
||||
},
|
||||
{
|
||||
"revision": "5ab5c6be15b21e2d609b",
|
||||
"url": "js/detail.4e6a53a9.js"
|
||||
},
|
||||
{
|
||||
"revision": "b46d04eb43bc31ca0f9f95121646440d",
|
||||
"url": "manifest.json"
|
||||
},
|
||||
{
|
||||
"revision": "b6216d61c03e6ce0c9aea6ca7808f7ca",
|
||||
"url": "robots.txt"
|
||||
}
|
||||
]);
|
||||
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Welcome to your Workbox-powered service worker!
|
||||
*
|
||||
* You'll need to register this file in your web app and you should
|
||||
* disable HTTP caching for this file too.
|
||||
* See https://goo.gl/nhQhGp
|
||||
*
|
||||
* The rest of the code is auto-generated. Please don't update this file
|
||||
* directly; instead, make changes to your Workbox build configuration
|
||||
* and re-run your build process.
|
||||
* See https://goo.gl/2aRDsh
|
||||
*/
|
||||
|
||||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||
|
||||
importScripts(
|
||||
"precache-manifest.5ae9ceec57e7f0f3cc808807b7fe5f32.js"
|
||||
);
|
||||
|
||||
workbox.core.setCacheNameDetails({prefix: "yd-web-tool"});
|
||||
|
||||
self.addEventListener('message', (event) => {
|
||||
if (event.data && event.data.type === 'SKIP_WAITING') {
|
||||
self.skipWaiting();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
|
||||
* requests for URLs in the manifest.
|
||||
* See https://goo.gl/S9QRab
|
||||
*/
|
||||
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
||||
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
||||
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 92 KiB |
@@ -0,0 +1,68 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Forty by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Legado web 导航</title>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="stylesheet" href="assets/css/main.css"/>
|
||||
</head>
|
||||
|
||||
<body class="is-preload">
|
||||
|
||||
<!-- Wrapper -->
|
||||
<div id="wrapper">
|
||||
|
||||
<!-- Header -->
|
||||
<header id="header" class="alt">
|
||||
<nav>
|
||||
<a href="#menu">Menu</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Menu -->
|
||||
<nav id="menu">
|
||||
<ul class="links">
|
||||
<li><a href="https://github.com/gedoor/legado">Github</a></li>
|
||||
<li><a href="https://github.com/zsakvo">zsakvo</a></li>
|
||||
<li><a href="#">Design: HTML5 UP</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<!-- Banner -->
|
||||
<section id="banner" class="major">
|
||||
<div class="inner">
|
||||
<header class="major">
|
||||
<h1>昨日邻家乞新火,晓窗分与读书灯</h1>
|
||||
</header>
|
||||
<div class="content">
|
||||
<!-- <p>A responsive site template designed by HTML5 UP<br />
|
||||
and released under the Creative Commons.</p> -->
|
||||
<ul class="actions">
|
||||
<li><a href="bookshelf/index.html" class="button next scrolly">书架</a></li>
|
||||
</ul>
|
||||
<ul class="actions">
|
||||
<li><a href="bookSource/index.html" class="button next scrolly">书源</a></li>
|
||||
</ul>
|
||||
<ul class="actions">
|
||||
<li><a href="uploadBook/index.html" class="button next scrolly">传书</a></li>
|
||||
</ul>
|
||||
<ul class="actions">
|
||||
<li><a href="rssSource/index.html" class="button next scrolly">订阅源</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="assets/js/dist.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,150 @@
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
.editor {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
}
|
||||
.setbox,
|
||||
.menu,
|
||||
.outbox {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
max-height: 100vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.menu {
|
||||
justify-content: center;
|
||||
max-width: 90px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
.menu .button {
|
||||
width: 90px;
|
||||
height: 30px;
|
||||
min-height: 30px;
|
||||
margin: 5px 0px;
|
||||
cursor: pointer;
|
||||
}
|
||||
@keyframes stroker {
|
||||
0% {
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
100% {
|
||||
stroke-dashoffset: -240;
|
||||
}
|
||||
}
|
||||
.button rect {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
fill: transparent;
|
||||
stroke: #666;
|
||||
stroke-width: 2px;
|
||||
}
|
||||
.button rect.busy {
|
||||
stroke: #fd1850;
|
||||
stroke-dasharray: 30 90;
|
||||
animation: stroker 1s linear infinite;
|
||||
}
|
||||
.button text {
|
||||
text-anchor: middle;
|
||||
dominant-baseline: middle;
|
||||
}
|
||||
.setbox {
|
||||
min-width: 40em;
|
||||
}
|
||||
.rules {
|
||||
overflow: auto;
|
||||
}
|
||||
.tabbox {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
}
|
||||
.rules > * {
|
||||
display: flex;
|
||||
margin: 2px 0;
|
||||
}
|
||||
.rules textarea {
|
||||
flex: 1;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.rules > *,
|
||||
.rules > * > div,
|
||||
.rules textarea {
|
||||
min-height: 1em;
|
||||
}
|
||||
textarea {
|
||||
word-break: break-all;
|
||||
}
|
||||
.tabtitle {
|
||||
display: flex;
|
||||
z-index: 1;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.tabtitle > div {
|
||||
cursor: pointer;
|
||||
padding: 1px 10px 0 10px;
|
||||
border-bottom: 3px solid transparent;
|
||||
font-weight: bold;
|
||||
}
|
||||
.tabtitle > .this {
|
||||
color: #4f9da6;
|
||||
border-bottom-color: #4ebbe4;
|
||||
}
|
||||
.tabbody {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
margin-top: -1px;
|
||||
border: 1px solid #a9a9a9;
|
||||
height: 0;
|
||||
}
|
||||
.tabbody > * {
|
||||
flex: 1;
|
||||
flex-flow: column;
|
||||
display: none;
|
||||
}
|
||||
.tabbody > .this {
|
||||
display: flex;
|
||||
}
|
||||
.tabbody > * > .titlebar {
|
||||
display: flex;
|
||||
}
|
||||
.tabbody > * > .titlebar > * {
|
||||
flex: 1;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
.tabbody > * > .context {
|
||||
flex: 1;
|
||||
flex-flow: column;
|
||||
border: 0;
|
||||
padding: 5px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.tabbody > * > .inputbox {
|
||||
border: 0;
|
||||
border-bottom: #a9a9a9 solid 1px;
|
||||
height: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
.link > * {
|
||||
display: flex;
|
||||
margin: 5px;
|
||||
border-bottom: 1px solid;
|
||||
text-decoration: none;
|
||||
}
|
||||
#RuleList > label > * {
|
||||
background: #eee;
|
||||
padding-left: 3px;
|
||||
margin: 2px 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
#RuleList input[type="radio"] {
|
||||
display: none;
|
||||
}
|
||||
#RuleList input[type="radio"]:checked + * {
|
||||
background: #15cda8;
|
||||
}
|
||||
.isError {
|
||||
color: #ff0000;
|
||||
}
|
||||
@@ -0,0 +1,243 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>阅读3.0订阅源编辑器_V4.0</title>
|
||||
<link rel="icon" href="favicon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="index.css"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="editor">
|
||||
<div class="setbox">
|
||||
<div>
|
||||
<a href="../index.html">←主页</a>
|
||||
<b>订阅源</b>
|
||||
</div>
|
||||
<div class="rules">
|
||||
<div><b>基本</b></div>
|
||||
<div>
|
||||
<div>源域名 :</div>
|
||||
<textarea rows="1" id="sourceUrl" class="base" title="sourceUrl"
|
||||
placeholder="<必填>通常填写网站主页,例: https://www.qidian.com"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>源名称 :</div>
|
||||
<textarea rows="1" id="sourceName" class="base" title="sourceName"
|
||||
placeholder="<必填>源名称"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>图标 :</div>
|
||||
<textarea rows="1" id="sourceIcon" class="base" title="sourceIcon"
|
||||
placeholder="<选填>图标"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>源分组 :</div>
|
||||
<textarea rows="1" id="sourceGroup" class="base" title="sourceGroup"
|
||||
placeholder="<选填>描述源的特征信息"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>源注释 :</div>
|
||||
<textarea rows="1" id="sourceComment" class="base" title="sourceComment"
|
||||
placeholder="<选填>描述源作者和状态"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>登录地址:</div>
|
||||
<textarea rows="1" id="loginUrl" class="base" title="loginUrl"
|
||||
placeholder="<选填>填写网站登录网址,仅在需要登录的源有用"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>登录界面:</div>
|
||||
<textarea rows="3" id="loginUi" class="base" title="loginUi"
|
||||
placeholder="<选填>自定义登录界面"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>登录检测:</div>
|
||||
<textarea rows="3" id="loginCheckJs" class="base" title="loginCheckJs"
|
||||
placeholder="<选填>登录检测js"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>并发率 :</div>
|
||||
<textarea rows="1" id="concurrentRate" class="base" title="concurrentRate"
|
||||
placeholder="<选填>并发率"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>请求头 :</div>
|
||||
<textarea rows="3" id="header" class="base" title="header"
|
||||
placeholder="<选填>客户端标识"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>分类地址:</div>
|
||||
<textarea rows="3" id="sortUrl" class="base" title="sortUrl"
|
||||
placeholder="<选填>例: 名称1::网址(Url)1 名称2::网址(Url)2 ..."></textarea>
|
||||
</div>
|
||||
<p></p>
|
||||
<div><b>列表规则</b></div>
|
||||
<div>
|
||||
<div>列表样式:</div>
|
||||
<textarea rows="1" id="articleStyle" class="base" title="articleStyle"
|
||||
placeholder="列表样式:0,1,2"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>列表规则:</div>
|
||||
<textarea rows="1" id="ruleArticles" class="base" title="ruleArticles"
|
||||
placeholder="列表规则 (规则结果为List<Element>)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>标题规则:</div>
|
||||
<textarea rows="1" id="ruleTitle" class="base" title="ruleTitle"
|
||||
placeholder="选择节点书名 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>时间规则:</div>
|
||||
<textarea rows="1" id="rulePubDate" class="base" title="rulePubDate"
|
||||
placeholder="发表时间 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>翻页规则:</div>
|
||||
<textarea rows="1" id="ruleNextPage" class="base" title="ruleNextPage"
|
||||
placeholder="下一页链接 (规则结果为List<String>或String)"></textarea>
|
||||
</div>
|
||||
<p></p>
|
||||
<div><b>WebView规则</b></div>
|
||||
<div>
|
||||
<div>加载地址:</div>
|
||||
<textarea rows="1" id="loadWithBaseUrl" class="base" title="loadWithBaseUrl"
|
||||
placeholder="是否加载url (启用: true 关闭: false (可选,默认true))"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>启用JS :</div>
|
||||
<textarea rows="1" id="enableJs" class="base" title="enableJs"
|
||||
placeholder="是否启用Js (启用: true 关闭: false (可选,默认true))"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>描述规则:</div>
|
||||
<textarea rows="1" id="ruleDescription" class="base" title="ruleDescription"
|
||||
placeholder="rss内容 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>图片地址:</div>
|
||||
<textarea rows="1" id="ruleImage" class="base" title="ruleImage"
|
||||
placeholder="图片rul规则 (规则结果为url)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>原文链接:</div>
|
||||
<textarea rows="1" id="ruleLink" class="base" title="ruleLink"
|
||||
placeholder="原文链接规则 (规则结果为url)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>内容规则:</div>
|
||||
<textarea rows="1" id="ruleContent" class="base" title="ruleContent"
|
||||
placeholder="内容规则 (规则结果为String)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>内容样式:</div>
|
||||
<textarea rows="1" id="style" class="base" title="style"
|
||||
placeholder="内容样式 (css样式)"></textarea>
|
||||
</div>
|
||||
<p></p>
|
||||
<div><b>其它规则</b></div>
|
||||
<div>
|
||||
<div>启用 :</div>
|
||||
<textarea rows="1" id="enabled" class="base" title="enabled"
|
||||
placeholder="启用: true 关闭: false (可选,默认true)"></textarea>
|
||||
</div>
|
||||
<div>
|
||||
<div>排序编号:</div>
|
||||
<textarea rows="1" id="customOrder" class="base" title="customOrder"
|
||||
placeholder="整数: 0~N (可选,默认0) | 数字越小越靠前"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu">
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⇈推送源</text>
|
||||
<rect id="push"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⇊拉取源</text>
|
||||
<rect id="pull"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⋘编辑源</text>
|
||||
<rect id="editor"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⋙生成源</text>
|
||||
<rect id="conver"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">✗清空表单</text>
|
||||
<rect id="initial"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">↶撤销操作</text>
|
||||
<rect id="undo"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">↷重做操作</text>
|
||||
<rect id="redo"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">⇏调试源</text>
|
||||
<rect id="debug"></rect>
|
||||
</svg>
|
||||
<svg class="button">
|
||||
<text x="50%" y="55%">✓保存源</text>
|
||||
<rect id="accept"></rect>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="outbox">
|
||||
<div class="tabbox">
|
||||
<div class="tabtitle">
|
||||
<div name="编辑源" class="tab1 this">编辑源</div>
|
||||
<div name="调试源" class="tab2">调试源</div>
|
||||
<div name="源列表" class="tab3">源列表</div>
|
||||
<div name="帮助信息" class="tab4">帮助信息</div>
|
||||
</div>
|
||||
<div class="tabbody">
|
||||
<div class="tab1 this">
|
||||
<textarea class="context" id="RuleJsonString"
|
||||
placeholder="这里输出序列化的JSON数据,可直接导入'阅读'APP"></textarea>
|
||||
</div>
|
||||
<div class="tab2">
|
||||
<textarea class="context" id="DebugConsole" placeholder="这里用于输出调试信息"></textarea>
|
||||
</div>
|
||||
<div class="tab3">
|
||||
<input type="text" class="inputbox" id="Filter"
|
||||
placeholder="输入筛选关键词(源名称、源URL或源分组)后按回车筛选源">
|
||||
<div class="titlebar">
|
||||
<button id="Import">导入源文件</button>
|
||||
<button id="Export">导出源文件</button>
|
||||
<button id="Delete">删除选中源</button>
|
||||
<button id="ClrAll">清空列表</button>
|
||||
</div>
|
||||
<div class="context" id="RuleList"></div>
|
||||
</div>
|
||||
<div class="tab4">
|
||||
<div class="context link">
|
||||
<a target="_blank" href="https://alanskycn.gitee.io/teachme">源制作教程</a>
|
||||
<a target="_blank"
|
||||
href="https://zhuanlan.zhihu.com/p/29436838">Xpath基础教程</a>
|
||||
<a target="_blank"
|
||||
href="https://zhuanlan.zhihu.com/p/32187820">Xpath高级教程</a>
|
||||
<a target="_blank" href="https://www.w3cschool.cn/regex_rmjc">正则表达式教程</a>
|
||||
<a target="_blank" href="https://regexr.com">正则表达式在线验证工具</a>
|
||||
<div>^$()[]{}.?+*| 这些是Java正则特殊符号,匹配需转义
|
||||
<br>(?s) 前缀表示跨行解析
|
||||
<br>(?m) 前缀表示逐行匹配
|
||||
<br>(?i) 前缀表示忽略大小写
|
||||
</div>
|
||||
<a target="_blank" href="https://www.beta.browxy.com">代码在线运行工具</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/assets/js/md5.js"></script>
|
||||
<script type="text/javascript" src="index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,395 @@
|
||||
// 简化js原生选择器
|
||||
function $(selector) { return document.querySelector(selector); }
|
||||
function $$(selector) { return document.querySelectorAll(selector); }
|
||||
// 读写Hash值(val未赋值时为读取)
|
||||
function hashParam(key, val) {
|
||||
let hashstr = decodeURIComponent(window.location.hash);
|
||||
let regKey = new RegExp(`${key}=([^&]*)`);
|
||||
let getVal = regKey.test(hashstr) ? hashstr.match(regKey)[1] : null;
|
||||
if (val == undefined) return getVal;
|
||||
if (hashstr == '' || hashstr == '#') {
|
||||
window.location.hash = `#${key}=${val}`;
|
||||
}
|
||||
else {
|
||||
if (getVal) window.location.hash = hashstr.replace(getVal, val);
|
||||
else {
|
||||
window.location.hash = hashstr.indexOf(key) > -1 ? hashstr.replace(regKey, `${key}=${val}`) : `${hashstr}&${key}=${val}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 创建源规则容器对象
|
||||
function Container() {
|
||||
let ruleJson = {};
|
||||
|
||||
// 基本以及其他
|
||||
$$('.rules .base').forEach(item => ruleJson[item.title] = '');
|
||||
ruleJson.customOrder = 0;
|
||||
ruleJson.enabled = true;
|
||||
|
||||
return ruleJson;
|
||||
}
|
||||
// 选项卡Tab切换事件处理
|
||||
function showTab(tabName) {
|
||||
$$('.tabtitle>*').forEach(node => { node.className = node.className.replace(' this', ''); });
|
||||
$$('.tabbody>*').forEach(node => { node.className = node.className.replace(' this', ''); });
|
||||
$(`.tabbody>.${$(`.tabtitle>*[name=${tabName}]`).className}`).className += ' this';
|
||||
$(`.tabtitle>*[name=${tabName}]`).className += ' this';
|
||||
hashParam('tab', tabName);
|
||||
}
|
||||
// 源列表列表标签构造函数
|
||||
function newRule(rule) {
|
||||
return `<label for="${hex_md5(rule.sourceUrl)}"><input type="radio" name="rule" id="${hex_md5(rule.sourceUrl)}"><div>${rule.sourceName}<br>${rule.sourceUrl}</div></label>`;
|
||||
}
|
||||
// 缓存规则列表
|
||||
var RuleSources = [];
|
||||
if (localStorage.getItem('RssSources')) {
|
||||
RuleSources = JSON.parse(localStorage.getItem('RssSources'));
|
||||
RuleSources.forEach(item => $('#RuleList').innerHTML += newRule(item));
|
||||
}
|
||||
// 页面加载完成事件
|
||||
window.onload = () => {
|
||||
$$('.tabtitle>*').forEach(item => {
|
||||
item.addEventListener('click', () => {
|
||||
showTab(item.innerHTML);
|
||||
});
|
||||
});
|
||||
if (hashParam('tab')) showTab(hashParam('tab'));
|
||||
}
|
||||
// 获取数据
|
||||
function HttpGet(url) {
|
||||
return fetch(hashParam('domain') ? hashParam('domain') + url : url)
|
||||
.then(res => res.json()).catch(err => console.error('Error:', err));
|
||||
}
|
||||
// 提交数据
|
||||
function HttpPost(url, data) {
|
||||
return fetch(hashParam('domain') ? hashParam('domain') + url : url, {
|
||||
body: JSON.stringify(data),
|
||||
method: 'POST',
|
||||
mode: "cors",
|
||||
headers: new Headers({
|
||||
'Content-Type': 'application/json;charset=utf-8'
|
||||
})
|
||||
}).then(res => res.json()).catch(err => console.error('Error:', err));
|
||||
}
|
||||
// 将源表单转化为源对象
|
||||
function rule2json() {
|
||||
let RuleJSON = Container();
|
||||
// 转换base
|
||||
Object.keys(RuleJSON).forEach(key => {
|
||||
if (!key.startsWith("rule")) {
|
||||
RuleJSON[key] = $('#' + key).value;
|
||||
}
|
||||
});
|
||||
|
||||
RuleJSON.lastUpdateTime = new Date().getTime();
|
||||
RuleJSON.customOrder = RuleJSON.customOrder == '' ? 0 : parseInt(RuleJSON.customOrder);
|
||||
RuleJSON.enabled = RuleJSON.enabled == '' || String(RuleJSON.enabled).toLocaleLowerCase().replace(/^\s*|\s*$/g, '') == 'true';
|
||||
return RuleJSON;
|
||||
}
|
||||
// 将源对象填充到源表单
|
||||
function json2rule(RuleEditor) {
|
||||
let RuleJSON = Container();
|
||||
// 转换base
|
||||
Object.keys(RuleJSON).forEach(key => {
|
||||
let val = RuleEditor[key];
|
||||
if (typeof val == "number") {
|
||||
$("#" + key).value = val ? String(val) : '0';
|
||||
}
|
||||
else if (typeof val == "boolean") {
|
||||
$("#" + key).value = val ? String(val) : 'false';
|
||||
}
|
||||
else {
|
||||
$("#" + key).value = val ? String(val) : '';
|
||||
}
|
||||
});
|
||||
}
|
||||
// 记录操作过程
|
||||
var course = { "old": [], "now": {}, "new": [] };
|
||||
if (localStorage.getItem('rssSourceCourse')) {
|
||||
course = JSON.parse(localStorage.getItem('rssSourceCourse'));
|
||||
json2rule(course.now);
|
||||
}
|
||||
else {
|
||||
course.now = rule2json();
|
||||
window.localStorage.setItem('rssSourceCourse', JSON.stringify(course));
|
||||
}
|
||||
function todo() {
|
||||
course.old.push(Object.assign({}, course.now));
|
||||
course.now = rule2json();
|
||||
course.new = [];
|
||||
if (course.old.length > 50) course.old.shift(); // 限制历史记录堆栈大小
|
||||
localStorage.setItem('rssSourceCourse', JSON.stringify(course));
|
||||
}
|
||||
function undo() {
|
||||
course = JSON.parse(localStorage.getItem('rssSourceCourse'));
|
||||
if (course.old.length > 0) {
|
||||
course.new.push(course.now);
|
||||
course.now = course.old.pop();
|
||||
localStorage.setItem('rssSourceCourse', JSON.stringify(course));
|
||||
json2rule(course.now);
|
||||
}
|
||||
}
|
||||
function redo() {
|
||||
course = JSON.parse(localStorage.getItem('rssSourceCourse'));
|
||||
if (course.new.length > 0) {
|
||||
course.old.push(course.now);
|
||||
course.now = course.new.pop();
|
||||
localStorage.setItem('rssSourceCourse', JSON.stringify(course));
|
||||
json2rule(course.now);
|
||||
}
|
||||
}
|
||||
function setRule(editRule) {
|
||||
let checkRule = RuleSources.find(x => x.sourceUrl == editRule.sourceUrl);
|
||||
if ($(`input[id="${hex_md5(editRule.sourceUrl)}"]`)) {
|
||||
Object.keys(checkRule).forEach(key => { checkRule[key] = editRule[key]; });
|
||||
$(`input[id="${hex_md5(editRule.sourceUrl)}"]+*`).innerHTML = `${editRule.sourceName}<br>${editRule.sourceUrl}`;
|
||||
} else {
|
||||
RuleSources.push(editRule);
|
||||
$('#RuleList').innerHTML += newRule(editRule);
|
||||
}
|
||||
}
|
||||
$$('input').forEach((item) => { item.addEventListener('change', () => { todo() }) });
|
||||
$$('textarea').forEach((item) => { item.addEventListener('change', () => { todo() }) });
|
||||
// 处理按钮点击事件
|
||||
$('.menu').addEventListener('click', e => {
|
||||
let thisNode = e.target;
|
||||
thisNode = thisNode.parentNode.nodeName == 'svg' ? thisNode.parentNode.querySelector('rect') :
|
||||
thisNode.nodeName == 'svg' ? thisNode.querySelector('rect') : null;
|
||||
if (!thisNode) return;
|
||||
if (thisNode.getAttribute('class') == 'busy') return;
|
||||
thisNode.setAttribute('class', 'busy');
|
||||
switch (thisNode.id) {
|
||||
case 'push':
|
||||
$$('#RuleList>label>div').forEach(item => { item.className = ''; });
|
||||
(async () => {
|
||||
await HttpPost(`/saveRssSources`, RuleSources).then(json => {
|
||||
if (json.isSuccess) {
|
||||
let okData = json.data;
|
||||
if (Array.isArray(okData)) {
|
||||
let failMsg = ``;
|
||||
if (RuleSources.length > okData.length) {
|
||||
RuleSources.forEach(item => {
|
||||
if (okData.find(x => x.sourceUrl == item.sourceUrl)) { }
|
||||
else { $(`#RuleList #${item.sourceUrl}+*`).className += 'isError'; }
|
||||
});
|
||||
failMsg = '\n推送失败的源将用红色字体标注!';
|
||||
}
|
||||
alert(`批量推送源到「阅读3.0APP」\n共计: ${RuleSources.length} 条\n成功: ${okData.length} 条\n失败: ${RuleSources.length - okData.length} 条${failMsg}`);
|
||||
}
|
||||
else {
|
||||
alert(`批量推送源到「阅读3.0APP」成功!\n共计: ${RuleSources.length} 条`);
|
||||
}
|
||||
}
|
||||
else {
|
||||
alert(`批量推送源失败!\nErrorMsg: ${json.errorMsg}`);
|
||||
}
|
||||
}).catch(err => { alert(`批量推送源失败,无法连接到「阅读3.0APP」!\n${err}`); });
|
||||
thisNode.setAttribute('class', '');
|
||||
})();
|
||||
return;
|
||||
case 'pull':
|
||||
showTab('源列表');
|
||||
(async () => {
|
||||
await HttpGet(`/getRssSources`).then(json => {
|
||||
if (json.isSuccess) {
|
||||
$('#RuleList').innerHTML = ''
|
||||
localStorage.setItem('RssSources', JSON.stringify(RuleSources = json.data));
|
||||
RuleSources.forEach(item => {
|
||||
$('#RuleList').innerHTML += newRule(item);
|
||||
});
|
||||
alert(`成功拉取 ${RuleSources.length} 条源`);
|
||||
}
|
||||
else {
|
||||
alert(`批量拉取源失败!\nErrorMsg: ${json.errorMsg}`);
|
||||
}
|
||||
}).catch(err => { alert(`批量拉取源失败,无法连接到「阅读3.0APP」!\n${err}`); });
|
||||
thisNode.setAttribute('class', '');
|
||||
})();
|
||||
return;
|
||||
case 'editor':
|
||||
if ($('#RuleJsonString').value == '') break;
|
||||
try {
|
||||
json2rule(JSON.parse($('#RuleJsonString').value));
|
||||
todo();
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
alert(error);
|
||||
}
|
||||
break;
|
||||
case 'conver':
|
||||
showTab('编辑源');
|
||||
$('#RuleJsonString').value = JSON.stringify(rule2json(), null, 4);
|
||||
break;
|
||||
case 'initial':
|
||||
$$('.rules textarea').forEach(item => { item.value = '' });
|
||||
todo();
|
||||
break;
|
||||
case 'undo':
|
||||
undo()
|
||||
break;
|
||||
case 'redo':
|
||||
redo()
|
||||
break;
|
||||
case 'debug':
|
||||
showTab('调试源');
|
||||
let wsOrigin = (hashParam('domain') || location.origin).replace(/^.*?:/, 'ws:').replace(/\d+$/, (port) => (parseInt(port) + 1));
|
||||
let DebugInfos = $('#DebugConsole');
|
||||
function DebugPrint(msg) { DebugInfos.value += `\n${msg}`; DebugInfos.scrollTop = DebugInfos.scrollHeight; }
|
||||
let saveRule = [rule2json()];
|
||||
HttpPost(`/saveRssSource`, saveRule[0]).then(sResult => {
|
||||
if (sResult.isSuccess) {
|
||||
$('#DebugConsole').value = `源《${saveRule[0].sourceName}》保存成功!开始调试...`;
|
||||
let ws = new WebSocket(`${wsOrigin}/rssSourceDebug`);
|
||||
ws.onopen = () => {
|
||||
ws.send(`{"tag":"${saveRule[0].sourceUrl}", "key":""}`);
|
||||
};
|
||||
ws.onmessage = (msg) => {
|
||||
console.log('[调试]', msg);
|
||||
DebugPrint(msg.data);
|
||||
};
|
||||
ws.onerror = (err) => {
|
||||
throw `${err.data}`;
|
||||
}
|
||||
ws.onclose = () => {
|
||||
thisNode.setAttribute('class', '');
|
||||
DebugPrint(`\n调试服务已关闭!`);
|
||||
}
|
||||
} else throw `${sResult.errorMsg}`;
|
||||
}).catch(err => {
|
||||
DebugPrint(`调试过程意外中止,以下是详细错误信息:\n${err}`);
|
||||
thisNode.setAttribute('class', '');
|
||||
});
|
||||
return;
|
||||
case 'accept':
|
||||
(async () => {
|
||||
let saveRule = [rule2json()];
|
||||
await HttpPost(`/saveRssSources`, saveRule).then(json => {
|
||||
alert(json.isSuccess ? `源《${saveRule[0].sourceName}》已成功保存到「阅读3.0APP」` : `源《${saveRule[0].sourceName}》保存失败!\nErrorMsg: ${json.errorMsg}`);
|
||||
setRule(saveRule[0]);
|
||||
}).catch(err => { alert(`保存源失败,无法连接到「阅读3.0APP」!\n${err}`); });
|
||||
thisNode.setAttribute('class', '');
|
||||
})();
|
||||
return;
|
||||
default:
|
||||
}
|
||||
setTimeout(() => { thisNode.setAttribute('class', ''); }, 500);
|
||||
});
|
||||
$('#Filter').addEventListener('keydown', e => {
|
||||
if (e.keyCode == 13) {
|
||||
let cashList = [];
|
||||
$('#RuleList').innerHTML = "";
|
||||
let sKey = Filter.value ? Filter.value : '';
|
||||
if (sKey == '') {
|
||||
cashList = RuleSources;
|
||||
} else {
|
||||
let patt = new RegExp(sKey);
|
||||
RuleSources.forEach(source => {
|
||||
if (patt.test(source.sourceUrl) || patt.test(source.sourceName) || patt.test(source.bookSourceGroup)) {
|
||||
cashList.push(source);
|
||||
}
|
||||
})
|
||||
}
|
||||
cashList.forEach(source => {
|
||||
$('#RuleList').innerHTML += newRule(source);
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
// 列表规则更改事件
|
||||
$('#RuleList').addEventListener('click', e => {
|
||||
let editRule = null;
|
||||
if (e.target && e.target.getAttribute('name') == 'rule') {
|
||||
editRule = rule2json();
|
||||
json2rule(RuleSources.find(x => hex_md5(x.sourceUrl) == e.target.id));
|
||||
} else return;
|
||||
if (editRule.sourceUrl == '') return;
|
||||
if (editRule.sourceName == '') editRule.sourceName = editRule.sourceUrl.replace(/.*?\/\/|\/.*/g, '');
|
||||
setRule(editRule);
|
||||
localStorage.setItem('RssSources', JSON.stringify(RuleSources));
|
||||
});
|
||||
// 处理列表按钮事件
|
||||
$('.tab3>.titlebar').addEventListener('click', e => {
|
||||
let thisNode = e.target;
|
||||
if (thisNode.nodeName != 'BUTTON') return;
|
||||
switch (thisNode.id) {
|
||||
case 'Import':
|
||||
let fileImport = document.createElement('input');
|
||||
fileImport.type = 'file';
|
||||
fileImport.accept = '.json';
|
||||
fileImport.addEventListener('change', () => {
|
||||
let file = fileImport.files[0];
|
||||
let reader = new FileReader();
|
||||
reader.onloadend = function (evt) {
|
||||
if (evt.target.readyState == FileReader.DONE) {
|
||||
let fileText = evt.target.result;
|
||||
try {
|
||||
let fileJson = JSON.parse(fileText);
|
||||
let newSources = [];
|
||||
newSources.push(...fileJson);
|
||||
if (window.confirm(`如何处理导入的源?\n"确定": 覆盖当前列表(不会删除APP源)\n"取消": 插入列表尾部(自动忽略重复源)`)) {
|
||||
localStorage.setItem('RssSources', JSON.stringify(RuleSources = newSources));
|
||||
$('#RuleList').innerHTML = ''
|
||||
RuleSources.forEach(item => {
|
||||
$('#RuleList').innerHTML += newRule(item);
|
||||
});
|
||||
}
|
||||
else {
|
||||
newSources = newSources.filter(item => !JSON.stringify(RuleSources).includes(item.sourceUrl));
|
||||
RuleSources.push(...newSources);
|
||||
localStorage.setItem('RssSources', JSON.stringify(RuleSources));
|
||||
newSources.forEach(item => {
|
||||
$('#RuleList').innerHTML += newRule(item);
|
||||
});
|
||||
}
|
||||
alert(`成功导入 ${newSources.length} 条源`);
|
||||
}
|
||||
catch (err) {
|
||||
alert(`导入源文件失败!\n${err}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
reader.readAsText(file);
|
||||
}, false);
|
||||
fileImport.click();
|
||||
break;
|
||||
case 'Export':
|
||||
let fileExport = document.createElement('a');
|
||||
fileExport.download = `Rules${Date().replace(/.*?\s(\d+)\s(\d+)\s(\d+:\d+:\d+).*/, '$2$1$3').replace(/:/g, '')}.json`;
|
||||
let myBlob = new Blob([JSON.stringify(RuleSources, null, 4)], { type: "application/json" });
|
||||
fileExport.href = window.URL.createObjectURL(myBlob);
|
||||
fileExport.click();
|
||||
break;
|
||||
case 'Delete':
|
||||
let selectRule = $('#RuleList input:checked');
|
||||
if (!selectRule) {
|
||||
alert(`没有源被选中!`);
|
||||
return;
|
||||
}
|
||||
if (confirm(`确定要删除选定源吗?\n(同时删除APP内源)`)) {
|
||||
let selectRuleUrl = selectRule.id;
|
||||
let deleteSources = RuleSources.filter(item => item.sourceUrl == selectRuleUrl); // 提取待删除的源
|
||||
let laveSources = RuleSources.filter(item => !(item.sourceUrl == selectRuleUrl)); // 提取待留下的源
|
||||
HttpPost(`/deleteRssSources`, deleteSources).then(json => {
|
||||
if (json.isSuccess) {
|
||||
let selectNode = document.getElementById(selectRuleUrl).parentNode;
|
||||
selectNode.parentNode.removeChild(selectNode);
|
||||
localStorage.setItem('RssSources', JSON.stringify(RuleSources = laveSources));
|
||||
if ($('#sourceUrl').value == selectRuleUrl) {
|
||||
$$('.rules textarea').forEach(item => { item.value = '' });
|
||||
todo();
|
||||
}
|
||||
console.log(deleteSources);
|
||||
console.log(`以上源已删除!`)
|
||||
}
|
||||
}).catch(err => { alert(`删除源失败,无法连接到「阅读3.0APP」!\n${err}`); });
|
||||
}
|
||||
break;
|
||||
case 'ClrAll':
|
||||
if (confirm(`确定要清空当前源列表吗?\n(不会删除APP内源)`)) {
|
||||
localStorage.setItem('RssSources', JSON.stringify(RuleSources = []));
|
||||
$('#RuleList').innerHTML = ''
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,49 @@
|
||||
@charset "utf-8";
|
||||
/* CSS Document */
|
||||
body, div, p, ul, h1, h2, h3, h4, h5,span , img,dl,dt,dd{ margin: 0; padding: 0; }
|
||||
html, body { height: 100%;}
|
||||
body { font-family: Helvetica,'微软雅黑';background:#03a9f4
|
||||
/*url(../i/bg.jpg)*/; font-size: 14px; color: #313131; }
|
||||
h1, h2, h3, h4, h5 {margin:0;padding:0;}
|
||||
em { font-style: normal; }
|
||||
ul, ol, li { list-style: none }
|
||||
img { border: 0 none }
|
||||
a { text-decoration: none; color: #858585; }
|
||||
.fl{float:left;}
|
||||
.fr{float:right;}
|
||||
/*layut css*/
|
||||
.wrap{width:860px; margin:0 auto; overflow:hidden;zoom:1;}
|
||||
.right{width:527px; float:right; background:#eeeeed; overflow:hidden;}
|
||||
.title{height:50px; background:#8bc34a; line-height:3.0em;color:#fff;font-size:16px;padding-left:25px;}
|
||||
.jdt{ background:#bebebe; height:3px; position:relative;}
|
||||
.jdt p{ position:absolute;left:0;top:0; height:3px; }
|
||||
.jdt p.orange{background:#8bc34a;}
|
||||
.jdt p.gray{background:#999;}
|
||||
|
||||
.first{background:#8bc34a;}
|
||||
.right dl{ overflow:hidden;zoom:1;}
|
||||
.grybg{background:#eaeae9;}
|
||||
.first dt,.first dd{ background:url(../i/wifi_d_bg.png) no-repeat right top;_background:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="wifi_d_bg.png")}
|
||||
.right dt,.first dt{width:255px;padding-left:25px;}
|
||||
.right dd,.first dd{width:110px; text-align:center;}
|
||||
.right dt,.right dd{color:#555;float:left; line-height:2.8em;font-size:16px;}
|
||||
.right dd.orange{color:#8bc34a; cursor:pointer}
|
||||
.right dd.gray{color:#aaa;}
|
||||
|
||||
.scroll{height:900px; overflow-y:scroll;padding-bottom:10px;position:relative;z-index:9999;}
|
||||
.left{margin-right:527px;}
|
||||
.logo{height:112px; background:url(../i/wifi_logo_3.png) no-repeat left 24px;margin-bottom:36px;}
|
||||
.wf_box{height:204px;margin-bottom:46px; overflow:hidden;}
|
||||
.wf_box h3{padding:124px 0 0 0;color:#fff;width:200px; height:76px; margin-left:55px; text-align:center;}
|
||||
.wf_wifi{ background:url(../i/wifi_img.png) no-repeat 47px top;}
|
||||
.wf_active,.wf_normal{background:url(../i/wifi_tz0.png) no-repeat;}
|
||||
.wf_active{background-position:56px -210px;}
|
||||
.wf_normal{background-position:56px top;}
|
||||
.wf_btn{width:203px;height:100px;padding-left:37px;margin-bottom:16px;}
|
||||
.wf_left{width:6px; height:100px; background:url(../i/wifi_left.png) no-repeat left top; float:left;}
|
||||
.wf_right{width:6px; height:100px; background:url(../i/wifi_right.png) no-repeat left top; float:left;}
|
||||
.wf_center{width:228px; float:left; background:#8bc34a; text-align:center;color:#fff;height:100px;}
|
||||
.wf_center h3{font-size:24px; line-height:1.6em;margin-top:22px;}
|
||||
.wf_center p{font-size:14px; line-height:1.6em;}
|
||||
.wf_gs{color:#fff; line-height:1.6em;padding-left:37px;}
|
||||
.right dd.wf_bgn{ background:none;}
|
||||
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1,14 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="108dp" height="108dp" viewBox="0 0 108 108">
|
||||
<path d="M0,0h108v108h-108z" fill="#FFFFFF" />
|
||||
<path
|
||||
d="M55.659,79.068c-1.258,0 -2.521,-0.094 -3.753,-0.279c-0.773,-0.115 -1.307,-0.838 -1.19,-1.611s0.841,-1.311 1.612,-1.191c1.093,0.164 2.214,0.248 3.331,0.248c12.261,0 22.235,-9.975 22.235,-22.235c0,-12.26 -9.975,-22.234 -22.235,-22.234c-10.531,0 -19.695,7.479 -21.79,17.781c-0.155,0.768 -0.902,1.262 -1.671,1.107c-0.767,-0.156 -1.263,-0.904 -1.106,-1.672c2.361,-11.618 12.693,-20.051 24.567,-20.051c13.823,0 25.069,11.246 25.069,25.068C80.729,67.822 69.482,79.068 55.659,79.068z"
|
||||
fill="#568FCC" />
|
||||
<path
|
||||
d="M30.986,53.461c0,0 -3.656,-1.06 -3.656,1.636c0,2.693 0,15.295 0,15.295s-0.674,2.598 2.598,3.369c3.271,0.77 7.697,2.404 7.697,2.404s3.464,0.387 5.58,-0.479c2.116,-0.867 7.505,-2.215 7.505,-2.215s2.213,-0.383 2.213,-3.656c0,-3.271 0,-14.24 0,-14.24s-0.771,-3.366 -4.233,-1.922c-3.464,1.444 -5.869,2.118 -5.869,2.118s-4.33,0.48 -6.157,-0.385C34.834,54.519 30.986,53.461 30.986,53.461z"
|
||||
fill="#568FCC" />
|
||||
<path d="M53.445,48.757m-3.5,0a3.5,3.5 0,1 1,7 0a3.5,3.5 0,1 1,-7 0" fill="#568FCC" />
|
||||
<path d="M66.861,48.757m-3.5,0a3.5,3.5 0,1 1,7 0a3.5,3.5 0,1 1,-7 0" fill="#568FCC" />
|
||||
<path
|
||||
d="M39.758,74.008c-0.783,0 -1.418,-0.635 -1.418,-1.418v-12.5c0,-0.783 0.635,-1.416 1.418,-1.416s1.418,0.633 1.418,1.416v12.5C41.176,73.373 40.541,74.008 39.758,74.008z"
|
||||
fill="#FFFFFF" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link href="css/stylewf.css" type="text/css" rel="stylesheet"/>
|
||||
<title data-js="t0"></title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<div class="right">
|
||||
<p class="title" data-js="t1"></p>
|
||||
<dl class="first">
|
||||
<dt data-js="t2"></dt>
|
||||
<dd data-js="t3"></dd>
|
||||
<dd class="wf_bgn" data-js="t4"></dd>
|
||||
</dl>
|
||||
|
||||
<div class="scroll">
|
||||
<ul class="" id="tableStyle"></ul>
|
||||
</div><!--scroll end-->
|
||||
</div><!--right end-->
|
||||
<div class="left">
|
||||
<div class="logo"></div>
|
||||
<div id="drag_area" class="wf_box">
|
||||
<h3 data-js="t6"></h3>
|
||||
</div><!--wf_bg1和wf_bg2两个背景样式还有wf_on样式拖拽时候的状态-->
|
||||
<div class="wf_btn">
|
||||
<div id="spanButtonPlaceHolder"></div>
|
||||
</div>
|
||||
<p class="wf_gs" data-js="t5"></p>
|
||||
</div><!--left end -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script src="js/langSwich.js"></script>
|
||||
<script src="js/swfupload.js"></script>
|
||||
<script src="js/common.js"></script>
|
||||
<script src="js/swf_fun.js"></script>
|
||||
<script src="js/html5_fun.js"></script>
|
||||
@@ -0,0 +1,236 @@
|
||||
/**
|
||||
* 公共函数
|
||||
*/
|
||||
|
||||
//全局的配置文件
|
||||
var config = {
|
||||
fileTypes: "txt|epub|umd", //允许上传的文件格式 "txt|epub" // |doc|docx|wps|xls|xlsx|et|ppt|pptx|dps
|
||||
//url : "http://"+location.host+"?action=addBook",//"http://localhost/t/post.php",//
|
||||
url: "../addLocalBook",
|
||||
fileLimitSize: 500 * 1024 * 1024,
|
||||
};
|
||||
|
||||
var file = {
|
||||
inQueue: [], //已经在队列里面的文件,包括 HTML5上传和 Flash上传的
|
||||
clientHaveFiles: [], // 客户端已经存在的文件列表
|
||||
};
|
||||
|
||||
/**
|
||||
* HTML5 和 flash 公用,所有文件对象集合
|
||||
* @var array
|
||||
*/
|
||||
var filesUpload = []; //
|
||||
|
||||
//统计文件大小
|
||||
function countFileSize(fileSize) {
|
||||
var KB = 1024;
|
||||
var MB = 1024 * 1024;
|
||||
if (KB >= fileSize) {
|
||||
return fileSize + "B";
|
||||
} else if (MB >= fileSize) {
|
||||
return (fileSize / KB).toFixed(2) + "KB";
|
||||
} else {
|
||||
return (fileSize / MB).toFixed(2) + "MB";
|
||||
}
|
||||
}
|
||||
|
||||
//如果文件太长进行截取
|
||||
function substr_string(name) {
|
||||
var maxLen = 15;
|
||||
var len = name.length;
|
||||
if (len < 17) return name;
|
||||
|
||||
var lastIndex = name.lastIndexOf(".");
|
||||
var suffix = name.substr(lastIndex);
|
||||
var pre = name.substr(0, lastIndex);
|
||||
var preLen = pre.length;
|
||||
var preStart = preLen - 10;
|
||||
//前面10个 + 后面5个
|
||||
var fileName =
|
||||
pre.substr(0, 10) +
|
||||
"...." +
|
||||
pre.substr(preStart > 4 ? -4 : -preStart, 4) +
|
||||
suffix;
|
||||
return fileName;
|
||||
}
|
||||
|
||||
function checkFile(file) {
|
||||
if (file.size > config.fileLimitSize) {
|
||||
return jsonLang.t11;
|
||||
}
|
||||
|
||||
if (
|
||||
!file.name ||
|
||||
!file.name.toLowerCase().match("(" + config.fileTypes + ")$")
|
||||
) {
|
||||
return jsonLang.t12;
|
||||
}
|
||||
|
||||
var len = filesUpload.length;
|
||||
for (var i = 0; i < len; i++) {
|
||||
if (filesUpload[i].name == file.name) {
|
||||
return jsonLang.t13;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加文件时,回调的函数
|
||||
* @param object file 文件对象
|
||||
* @param int type 0 是swf 上传的,1 是html5上传的
|
||||
*/
|
||||
function fileQueued(file, type) {
|
||||
var size = 0,
|
||||
fid = file.id,
|
||||
name = "";
|
||||
type = type || 0;
|
||||
|
||||
if (file != undefined) {
|
||||
//计算文件大小 单位MB
|
||||
size = countFileSize(file.size);
|
||||
name = substr_string(file.name);
|
||||
//创建要插入的元素
|
||||
var li = document.createElement("li");
|
||||
li.id = `tr_${fid}`;
|
||||
li.innerHTML = `<dl class="grybg">
|
||||
<dt>${name}</dt>
|
||||
<dd>${size}</dd>
|
||||
<dd id="handle_button_${fid}" onclick=userCancelUpload("${fid}",${type}) class="orange">
|
||||
<span id="progress_bar_span_${fid}">0%</span> ${jsonLang.t9}
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="jdt"><p id="progress_bar_p_${fid}" ></p></div>`;
|
||||
var table = document.getElementById("tableStyle");
|
||||
table.appendChild(li);
|
||||
//保存falsh_id,为上传做准备
|
||||
//global_flash_id.push(file.id);
|
||||
//更改背景颜色
|
||||
changeTrBackGroundColor();
|
||||
}
|
||||
}
|
||||
|
||||
function changeTrBackGroundColor() {
|
||||
var getTr = document.getElementById("tableStyle").getElementsByTagName("dl");
|
||||
trNum = getTr.length;
|
||||
for (var i = 0; i < trNum; i++) {
|
||||
if (i % 2 == 0) {
|
||||
getTr[i].style.backgroundColor = "#f3f3f3";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//上传时返回的状态
|
||||
function uploadProgress(file, bytesLoaded, bytesTotal) {
|
||||
var progressClass = document.getElementById(
|
||||
"progress_bar_p_" + file.id
|
||||
).classList;
|
||||
if (!progressClass.contains("orange")) {
|
||||
progressClass.add("orange");
|
||||
}
|
||||
document.getElementById("progress_bar_p_" + file.id).style.width =
|
||||
(bytesLoaded / bytesTotal) * 100 + "%";
|
||||
document.getElementById("progress_bar_span_" + file.id).innerHTML =
|
||||
parseInt((bytesLoaded / bytesTotal) * 100) + "%";
|
||||
}
|
||||
|
||||
//上传成功
|
||||
function uploadSuccess(file, serverData, res) {
|
||||
var id = "handle_button_" + file.id;
|
||||
var dd = document.createElement("dd");
|
||||
dd.innerHTML = jsonLang.t10;
|
||||
document.getElementById(id).replaceWith(dd);
|
||||
}
|
||||
|
||||
//取消上传
|
||||
function userCancelUpload(file_id, type) {
|
||||
if (type == 0) {
|
||||
SWFFuns.cancelUpload(file_id);
|
||||
} else {
|
||||
HTML5Funs.cancelUpload(file_id);
|
||||
}
|
||||
var element = document.getElementById("handle_button_" + file_id);
|
||||
element.innerHTML = jsonLang.t14;
|
||||
element.classList.remove("orange");
|
||||
element.classList.add("gray");
|
||||
//如果已经上传一部分了
|
||||
var progressElement = document.getElementById("progress_bar_p_" + file_id);
|
||||
if (progressElement.classList.contains("orange")) {
|
||||
progressElement.classList.remove("orange");
|
||||
progressElement.classList.add("gray");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过文件名称 从全局的文件列表中获取文件对象
|
||||
*
|
||||
*/
|
||||
function getFileFomeFilesUpload(filename) {
|
||||
var len = filesUpload.length;
|
||||
for (var i = 0; i < len; i++) {
|
||||
if (filesUpload[i].name == filename) {
|
||||
return filesUpload[i];
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 往全局的 上传列表添加一个数据
|
||||
*/
|
||||
function addFileToFilesUpload(file) {
|
||||
if (typeof file == "string") {
|
||||
filesUpload.push({ name: file });
|
||||
return true;
|
||||
} else if (typeof file == "object") {
|
||||
filesUpload.push(file);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 往全局的 上传列表添加一个数据
|
||||
*/
|
||||
function updateFileToFilesUpload(file) {
|
||||
var len = filesUpload.length;
|
||||
for (var i = 0; i < len; i++) {
|
||||
if (filesUpload[i].name == file.name) {
|
||||
filesUpload[i] = file;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找在数组中的位置
|
||||
*/
|
||||
function findObjectKey(object, fid) {
|
||||
var len = object.length;
|
||||
for (var i = 0; i < len; i++) {
|
||||
if (object[i].id == fid) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* 从全局的文件集合中移除文件,一般上传失败时使用
|
||||
* @param array files 文件对象集合 [{},{},{}]
|
||||
* @param int fid 要删除的文件id
|
||||
* @return 删除后的数组, 其实数组是引用类型可以不返回
|
||||
*/
|
||||
function removeFileFromFilesUpload(files, fid) {
|
||||
var filesUploadKey = -1;
|
||||
|
||||
filesUploadKey = findObjectKey(files, fid);
|
||||
//从全局文件中移除
|
||||
if (filesUploadKey > -1) files.splice(filesUploadKey, 1);
|
||||
|
||||
return files;
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
/**
|
||||
* 处理拖拽上传
|
||||
*/
|
||||
var isDragOver = false; //拖拽触发点
|
||||
var fileNumber = -1; //上传文件编号
|
||||
var fileNumberPex = "zyFileUpload_"; //编号前缀
|
||||
var currUploadfile = {}; //当前上传的文件对象
|
||||
|
||||
var uploadQueue = []; //上传队列集合
|
||||
var isUploading = false; //是否正在上传
|
||||
|
||||
var XHR;
|
||||
try {
|
||||
XHR = new XMLHttpRequest();
|
||||
} catch (e) {}
|
||||
|
||||
(function (isSupportFileUpload) {
|
||||
//不支持拖拽上传,或者 不支持FormData ,显示WiFi表示
|
||||
if (!isSupportFileUpload) {
|
||||
document.getElementById("drag_area").classList.add("wf_wifi");
|
||||
document.getElementById("drag_area").innerHTML = "";
|
||||
return;
|
||||
//更换样式
|
||||
} else {
|
||||
document.getElementById("drag_area").classList.add("wf_normal");
|
||||
}
|
||||
|
||||
addEvent();
|
||||
|
||||
/**
|
||||
* 添加事件
|
||||
*/
|
||||
function addEvent() {
|
||||
var dropArea = document.getElementById("drag_area");
|
||||
dropArea.addEventListener("dragover", handleDragOver, false);
|
||||
dropArea.addEventListener("dragleave", handleDragLeave, false);
|
||||
dropArea.addEventListener("drop", handleDrop, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* 松开拖拽文件的处理,进行上传
|
||||
*/
|
||||
function handleDrop(evt) {
|
||||
evt.stopPropagation();
|
||||
evt.preventDefault();
|
||||
var classList = document.getElementById("drag_area").classList;
|
||||
classList.add("wf_normal");
|
||||
classList.remove("wf_active");
|
||||
|
||||
console.log("Drop");
|
||||
isDragOver = false;
|
||||
|
||||
var file = {};
|
||||
var errorMsgs = [];
|
||||
var len = evt.dataTransfer.files.length;
|
||||
|
||||
for (var i = 0; i < len; i++) {
|
||||
fileNumber++;
|
||||
file = evt.dataTransfer.files[i];
|
||||
file.id = fileNumberPex + fileNumber;
|
||||
|
||||
//检测文件
|
||||
msg = checkFile(file);
|
||||
//文件可以通过
|
||||
if (!msg) {
|
||||
//添加全局
|
||||
filesUpload.push(file);
|
||||
//添加上传队列
|
||||
uploadQueue.push(file);
|
||||
//在页面进行展示
|
||||
fileQueued(file, 1);
|
||||
} else {
|
||||
errorMsgs.push(msg);
|
||||
}
|
||||
}
|
||||
|
||||
if (errorMsgs.length > 0) {
|
||||
//只选择做一个进行上传
|
||||
if (len == 1) {
|
||||
alert(errorMsgs[0]);
|
||||
} else {
|
||||
a1 = len;
|
||||
a2 = len - errorMsgs.length;
|
||||
|
||||
var replaceArr = new Array(a1, a2);
|
||||
alert(stringReplace(jsonLang.t7, replaceArr));
|
||||
}
|
||||
}
|
||||
|
||||
//拿出第一个,进行上传
|
||||
if (!isUploading && uploadQueue.length > 0)
|
||||
uploadFiles(uploadQueue.shift());
|
||||
}
|
||||
|
||||
function handleDragOver(evt) {
|
||||
evt.stopPropagation();
|
||||
evt.preventDefault();
|
||||
//防止多次DOM操作
|
||||
if (!isDragOver) {
|
||||
console.log("Over");
|
||||
var classList = document.getElementById("drag_area").classList;
|
||||
classList.add("wf_active");
|
||||
classList.remove("wf_normal");
|
||||
isDragOver = true;
|
||||
}
|
||||
}
|
||||
|
||||
function handleDragLeave(evt) {
|
||||
console.log("DragLeave");
|
||||
evt.stopPropagation();
|
||||
evt.preventDefault();
|
||||
isDragOver = false;
|
||||
var classList = document.getElementById("drag_area").classList;
|
||||
classList.add("wf_normal");
|
||||
classList.remove("wf_active");
|
||||
}
|
||||
|
||||
function uploadFiles(file) {
|
||||
//正在上传
|
||||
isUploading = true;
|
||||
//设置上传的数据
|
||||
var reader = new FileReader();
|
||||
reader.readAsDataURL(file);
|
||||
reader.onload = function (e) {
|
||||
var data = e.target.result;
|
||||
var fd = new FormData();
|
||||
fd.append("fileName", file.name);
|
||||
fd.append("fileData", data);
|
||||
//设置当前的上传对象
|
||||
currUploadfile = file;
|
||||
|
||||
if (XHR.readyState > 0) {
|
||||
XHR = new XMLHttpRequest();
|
||||
}
|
||||
|
||||
XHR.upload.addEventListener("progress", progress, false);
|
||||
XHR.upload.addEventListener("load", requestLoad, false);
|
||||
XHR.upload.addEventListener("error", error, false);
|
||||
XHR.upload.addEventListener("abort", abort, false);
|
||||
XHR.upload.addEventListener("loadend", loadend, false);
|
||||
XHR.upload.addEventListener("loadstart", loadstart, false);
|
||||
XHR.open("POST", config.url);
|
||||
XHR.send(fd);
|
||||
XHR.onreadystatechange = function () {
|
||||
//只要上传完成不管成功失败
|
||||
if (XHR.readyState == 4) {
|
||||
console.log("onreadystatechange ", XHR.status, +new Date());
|
||||
|
||||
if (XHR.status == 200) {
|
||||
uploadSuccess(currUploadfile, {}, XHR.status);
|
||||
} else {
|
||||
uploadError();
|
||||
}
|
||||
|
||||
//进行下一个上传
|
||||
nextUpload();
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
//请求完成,无论失败或成功
|
||||
function loadend(evt) {
|
||||
console.log("loadend", +new Date(), evt);
|
||||
}
|
||||
//请求开始
|
||||
function loadstart(evt) {
|
||||
console.log("loadstart", evt);
|
||||
}
|
||||
|
||||
//在请求发送或接收数据期间,在服务器指定的时间间隔触发。
|
||||
function progress(evt) {
|
||||
uploadProgress(currUploadfile, evt.loaded || evt.position, evt.total);
|
||||
}
|
||||
|
||||
//在请求被取消时触发,例如,在调用 abort() 方法时。
|
||||
function abort(evt) {
|
||||
console.log("abort", evt);
|
||||
}
|
||||
|
||||
//在请求失败时触发。
|
||||
function error(evt) {
|
||||
//终止ajax请求
|
||||
XHR.abort();
|
||||
uploadError();
|
||||
nextUpload();
|
||||
}
|
||||
|
||||
//在请求成功完成时触发。
|
||||
function requestLoad(evt) {
|
||||
console.log("requestLoad", +new Date(), evt);
|
||||
}
|
||||
|
||||
//进行下一个上传
|
||||
function nextUpload() {
|
||||
isUploading = false;
|
||||
if (uploadQueue.length > 0) {
|
||||
uploadFiles(uploadQueue.shift());
|
||||
} else {
|
||||
//米有正在上传的了
|
||||
currUploadfile = {};
|
||||
}
|
||||
}
|
||||
|
||||
//上传出错误了,比如断网,
|
||||
function uploadError() {
|
||||
//移除全局变量中的,上传出错的
|
||||
removeFileFromFilesUpload(filesUpload, currUploadfile.id);
|
||||
var file = currUploadfile;
|
||||
var dd = document.createElement("dd")
|
||||
dd.innerHTML = jsonLang.t8
|
||||
document
|
||||
.getElementById("handle_button_" + file.id)
|
||||
.replaceWith(dd);
|
||||
}
|
||||
|
||||
//对外部注册的函数
|
||||
var HTML5Funs = {
|
||||
/**
|
||||
* 取消上传
|
||||
* @param string fid 文件的Id
|
||||
*/
|
||||
cancelUpload: function (fid) {
|
||||
var filesUploadKey = -1;
|
||||
var uploadQueueKey = -1;
|
||||
|
||||
//从全局中删除文件
|
||||
removeFileFromFilesUpload(filesUpload, fid);
|
||||
|
||||
//如果是正在上传的,AJAX取消
|
||||
if (currUploadfile.id == fid) {
|
||||
XHR.abort();
|
||||
} else {
|
||||
//从上传队列中移除
|
||||
removeFileFromFilesUpload(uploadQueue, fid);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
window.HTML5Funs = HTML5Funs;
|
||||
})("FormData" in window && "ondrop" in document.body);
|
||||
@@ -0,0 +1,111 @@
|
||||
/**
|
||||
* wifi传书功能,供客户端调用
|
||||
* 切换语言环境 addby zhongweikang@zhangyue.com 2015/09/23
|
||||
*/
|
||||
|
||||
var language; //当前语言
|
||||
var jsonEn; //英文
|
||||
var jsonZh; //中文
|
||||
|
||||
/**
|
||||
* 语言包
|
||||
*/
|
||||
jsonEn = {
|
||||
t0: "WiFi Upload",
|
||||
t1: "Documents",
|
||||
t2: "Name",
|
||||
t3: "Size",
|
||||
t4: "Operation",
|
||||
t5: "Supported Format:TXT、EPUB、UMD",
|
||||
t6: "Drag here and Drop to upload",
|
||||
t7: "You choosed [txt] files ,we only can upload [txt] of them。\nPlease choose TXT、EPUB、UMD files, file name cannot be repeated.",
|
||||
t8: "Failed",
|
||||
t9: "Cancel",
|
||||
t10: "Done",
|
||||
t11: "One of books is over 500MB",
|
||||
t12: "Bad file mode",
|
||||
t13: "File already exists",
|
||||
t14: "Canceled",
|
||||
};
|
||||
jsonZh = {
|
||||
t0: "传书",
|
||||
t1: "文档",
|
||||
t2: "名字",
|
||||
t3: "大小",
|
||||
t4: "操作",
|
||||
t5: "支持类型:TXT、EPUB、UMD",
|
||||
t6: "拖至此处上传",
|
||||
t7: "你选择了[txt]个文件,我们只能上传其中的[txt]。\n请选择 TXT、EPUB、UMD 类型的文件,文件的名字不能重复。",
|
||||
t8: "失败",
|
||||
t9: "取消",
|
||||
t10: "完成",
|
||||
t11: "上传文件不能大于500MB",
|
||||
t12: "无效的文件格式",
|
||||
t13: "文件已存在",
|
||||
t14: "已取消",
|
||||
};
|
||||
|
||||
if (navigator.language) {
|
||||
language = navigator.language;
|
||||
} else {
|
||||
language = navigator.browserLanguage;
|
||||
}
|
||||
language = language.toLowerCase(language);
|
||||
|
||||
/**
|
||||
* 切换语言
|
||||
*/
|
||||
function langSwich(s) {
|
||||
switch (s) {
|
||||
case "en-us":
|
||||
_strReplace(jsonEn);
|
||||
break;
|
||||
case "zh-cn":
|
||||
_strReplace(jsonZh);
|
||||
break;
|
||||
default:
|
||||
_strReplace(jsonEn);
|
||||
break;
|
||||
}
|
||||
}
|
||||
function _strReplace(d) {
|
||||
window.jsonLang = d; //全局变量在其他js文件中会遇到,勿删。
|
||||
for (var i in jsonLang) {
|
||||
var element = document.querySelector("[data-js=" + i + "]");
|
||||
if (element) {
|
||||
element.innerHTML = d[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 特殊字符串替换,例:语言包中的 t7
|
||||
* content 替换前的文本
|
||||
* replace 待插入的文本 (支持变量或数组)
|
||||
*/
|
||||
var isArray = function (obj) {
|
||||
return Object.prototype.toString.call(obj) === "[object Array]";
|
||||
};
|
||||
function stringReplace(content, replace) {
|
||||
var str = content;
|
||||
if (!str) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (isArray(replace)) {
|
||||
strs = str.split("[txt]");
|
||||
count = strs.length - 1;
|
||||
|
||||
var string = "";
|
||||
for (var i = 0; i < count; i++) {
|
||||
string = string + strs[i] + replace[i];
|
||||
}
|
||||
string = string + strs[count];
|
||||
} else {
|
||||
string = str.replace(replace, "[txt]");
|
||||
}
|
||||
return string;
|
||||
}
|
||||
|
||||
//执行
|
||||
langSwich(language);
|
||||