bookSourceEditConfig.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. export default {
  2. base: {
  3. name: "基础",
  4. children: [
  5. {
  6. title: "源类型",
  7. id: "bookSourceType",
  8. type: "Array",
  9. array: ["文本", "音频", "图片", "文件"],
  10. required: true,
  11. },
  12. {
  13. title: "源域名",
  14. id: "bookSourceUrl",
  15. type: "String",
  16. hint: "通常填写网站主页,例: https://www.qidian.com",
  17. required: true,
  18. },
  19. {
  20. title: "源名称",
  21. id: "bookSourceName",
  22. type: "String",
  23. hint: "会显示在源列表",
  24. required: true,
  25. },
  26. {
  27. title: "源分组",
  28. id: "bookSourceGroup",
  29. type: "String",
  30. hint: "描述源的特征信息",
  31. },
  32. {
  33. title: "源注释",
  34. id: "bookSourceComment",
  35. type: "String",
  36. hint: "描述源作者和状态",
  37. },
  38. {
  39. title: "书源变量",
  40. id: "variableComment",
  41. type: "String",
  42. hint: "书源变量说明",
  43. },
  44. {
  45. title: "登录地址",
  46. id: "loginUrl",
  47. type: "String",
  48. hint: "填写网站登录网址,仅在需要登录的源有用",
  49. },
  50. {
  51. title: "登录界面",
  52. id: "loginUi",
  53. type: "String",
  54. hint: "自定义登录界面",
  55. },
  56. {
  57. title: "登录检测",
  58. id: "loginCheckJs",
  59. type: "String",
  60. hint: "登录检测js",
  61. },
  62. {
  63. title: "封面解密",
  64. id: "coverDecodeJs",
  65. type: "String",
  66. hint: "封面解密js",
  67. },
  68. {
  69. title: "并发率",
  70. id: "concurrentRate",
  71. type: "String",
  72. hint: "并发率",
  73. },
  74. {
  75. title: "js库",
  76. id: "jsLib",
  77. type: "String",
  78. hint: "js库",
  79. },
  80. {
  81. title: "请求头",
  82. id: "header",
  83. type: "String",
  84. hint: "客户端标识",
  85. },
  86. {
  87. title: "链接验证",
  88. id: "bookUrlPattern",
  89. type: "String",
  90. hint: "当详情页URL与源URL的域名不一致时有效,用于添加网址",
  91. },
  92. ],
  93. },
  94. search: {
  95. name: "搜索",
  96. children: [
  97. {
  98. title: "搜索地址",
  99. id: "searchUrl",
  100. type: "String",
  101. hint: "[域名可省略]/search.php@kw={{key}}",
  102. },
  103. {
  104. title: "校验文字",
  105. namespace: "ruleSearch",
  106. id: "checkKeyWord",
  107. type: "String",
  108. hint: "校验关键字",
  109. },
  110. {
  111. title: "列表规则",
  112. namespace: "ruleSearch",
  113. id: "bookList",
  114. type: "String",
  115. hint: "选择书籍节点 (规则结果为List<Element>)",
  116. },
  117. {
  118. title: "书名规则",
  119. namespace: "ruleSearch",
  120. id: "name",
  121. type: "String",
  122. hint: "选择节点书名 (规则结果为String)",
  123. },
  124. {
  125. title: "作者规则",
  126. namespace: "ruleSearch",
  127. id: "author",
  128. type: "String",
  129. hint: "选择节点作者 (规则结果为String)",
  130. },
  131. {
  132. title: "分类规则",
  133. namespace: "ruleSearch",
  134. id: "kind",
  135. type: "String",
  136. hint: "选择节点分类信息 (规则结果为String)",
  137. },
  138. {
  139. title: "字数规则",
  140. namespace: "ruleSearch",
  141. id: "wordCount",
  142. type: "String",
  143. hint: "选择节点字数信息 (规则结果为String)",
  144. },
  145. {
  146. title: "最新章节",
  147. namespace: "ruleSearch",
  148. id: "lastChapter",
  149. type: "String",
  150. hint: "选择节点最新章节 (规则结果为String)",
  151. },
  152. {
  153. title: "简介规则",
  154. namespace: "ruleSearch",
  155. id: "intro",
  156. type: "String",
  157. hint: "选择节点书籍简介 (规则结果为String)",
  158. },
  159. {
  160. title: "封面规则",
  161. namespace: "ruleSearch",
  162. id: "coverUrl",
  163. type: "String",
  164. hint: "选择节点书籍封面 (规则结果为String类型的url)",
  165. },
  166. {
  167. title: "详情地址",
  168. namespace: "ruleSearch",
  169. id: "bookUrl",
  170. type: "String",
  171. hint: "选择书籍详情页网址 (规则结果为String类型的url)",
  172. },
  173. ],
  174. },
  175. find: {
  176. name: "发现",
  177. children: [
  178. {
  179. title: "发现地址",
  180. id: "exploreUrl",
  181. type: "String",
  182. hint: "内容能显示在发现菜单\n每行一条发现分类(网址域名可省略),例:\n名称1::网址(Url)1\n名称2::网址(Url)2\n...",
  183. },
  184. {
  185. title: "发现筛选",
  186. id: "exploreScreen",
  187. type: "String",
  188. hint: "发现筛选规则",
  189. },
  190. {
  191. title: "列表规则",
  192. namespace: "ruleExplore",
  193. id: "bookList",
  194. type: "String",
  195. hint: "选择书籍节点 (规则结果为List<Element>)",
  196. },
  197. {
  198. title: "书名规则",
  199. namespace: "ruleExplore",
  200. id: "name",
  201. type: "String",
  202. hint: "选择节点书名 (规则结果为String)",
  203. },
  204. {
  205. title: "作者规则",
  206. namespace: "ruleExplore",
  207. id: "author",
  208. type: "String",
  209. hint: "选择节点作者 (规则结果为String)",
  210. },
  211. {
  212. title: "分类规则",
  213. namespace: "ruleExplore",
  214. id: "kind",
  215. type: "String",
  216. hint: "选择节点分类信息 (规则结果为String)",
  217. },
  218. {
  219. title: "字数规则",
  220. namespace: "ruleExplore",
  221. id: "wordCount",
  222. type: "String",
  223. hint: "选择节点字数信息 (规则结果为String)",
  224. },
  225. {
  226. title: "最新章节",
  227. namespace: "ruleExplore",
  228. id: "lastChapter",
  229. type: "String",
  230. hint: "选择节点最新章节 (规则结果为String)",
  231. },
  232. {
  233. title: "简介规则",
  234. namespace: "ruleExplore",
  235. id: "intro",
  236. type: "String",
  237. hint: "选择节点书籍简介 (规则结果为String)",
  238. },
  239. {
  240. title: "封面规则",
  241. namespace: "ruleExplore",
  242. id: "coverUrl",
  243. type: "String",
  244. hint: "选择节点书籍封面 (规则结果为String类型的url)",
  245. },
  246. {
  247. title: "详情地址",
  248. namespace: "ruleExplore",
  249. id: "bookUrl",
  250. type: "String",
  251. hint: "选择书籍详情页网址 (规则结果为String类型的url)",
  252. },
  253. ],
  254. },
  255. detail: {
  256. name: "详情",
  257. children: [
  258. {
  259. title: "预处理",
  260. namespace: "ruleBookInfo",
  261. id: "init",
  262. type: "String",
  263. hint: "用于加速详情信息检索,只支持AllInOne规则",
  264. },
  265. {
  266. title: "书名规则",
  267. namespace: "ruleBookInfo",
  268. id: "name",
  269. type: "String",
  270. hint: "选择节点书名 (规则结果为String)",
  271. },
  272. {
  273. title: "作者规则",
  274. namespace: "ruleBookInfo",
  275. id: "author",
  276. type: "String",
  277. hint: "选择节点作者 (规则结果为String)",
  278. },
  279. {
  280. title: "分类规则",
  281. namespace: "ruleBookInfo",
  282. id: "kind",
  283. type: "String",
  284. hint: "选择节点分类信息 (规则结果为String)",
  285. },
  286. {
  287. title: "字数规则",
  288. namespace: "ruleBookInfo",
  289. id: "wordCount",
  290. type: "String",
  291. hint: "选择节点字数信息 (规则结果为String)",
  292. },
  293. {
  294. title: "最新章节",
  295. namespace: "ruleBookInfo",
  296. id: "lastChapter",
  297. type: "String",
  298. hint: "选择节点最新章节 (规则结果为String)",
  299. },
  300. {
  301. title: "简介规则",
  302. namespace: "ruleBookInfo",
  303. id: "intro",
  304. type: "String",
  305. hint: "选择节点书籍简介 (规则结果为String)",
  306. },
  307. {
  308. title: "封面规则",
  309. namespace: "ruleBookInfo",
  310. id: "coverUrl",
  311. type: "String",
  312. hint: "选择节点书籍封面 (规则结果为String类型的url)",
  313. },
  314. {
  315. title: "目录地址",
  316. namespace: "ruleBookInfo",
  317. id: "tocUrl",
  318. type: "String",
  319. hint: "选择书籍详情页网址 (规则结果为String类型的url, 与详情页相同时可省略)",
  320. },
  321. {
  322. title: "下载URL",
  323. namespace: "ruleBookInfo",
  324. id: "downloadUrls",
  325. type: "String",
  326. hint: "文件类书源下载地址 (规则结果为String类型的url, 多个链接返回数组)",
  327. },
  328. {
  329. title: "修改书籍",
  330. namespace: "ruleBookInfo",
  331. id: "canReName",
  332. type: "String",
  333. hint: "允许修改书名作者(规则结果为String类型, 默认不允许)",
  334. },
  335. ],
  336. },
  337. directory: {
  338. name: "目录",
  339. children: [
  340. {
  341. title: "预处理",
  342. namespace: "ruleToc",
  343. id: "preUpdateJs",
  344. type: "String",
  345. hint: "更新目录前调用JS 动态更新目录链接",
  346. },
  347. {
  348. title: "列表规则",
  349. namespace: "ruleToc",
  350. id: "chapterList",
  351. type: "String",
  352. hint: "选择目录列表的章节节点 (规则结果为List<Element>)",
  353. },
  354. {
  355. title: "章节名称",
  356. namespace: "ruleToc",
  357. id: "chapterName",
  358. type: "String",
  359. hint: "选择章节名称 (规则结果为String)",
  360. },
  361. {
  362. title: "章节地址",
  363. namespace: "ruleToc",
  364. id: "chapterUrl",
  365. type: "String",
  366. hint: "选择章节链接 (规则结果为String类型的Url)",
  367. },
  368. {
  369. title: "卷名标识",
  370. namespace: "ruleToc",
  371. id: "isVolume",
  372. type: "String",
  373. hint: "章节名称是否是卷名 (规则结果为Bool)",
  374. },
  375. {
  376. title: "收费标识",
  377. namespace: "ruleToc",
  378. id: "isVip",
  379. type: "String",
  380. hint: "章节是否为VIP章节 (规则结果为Bool)",
  381. },
  382. {
  383. title: "购买标识",
  384. namespace: "ruleToc",
  385. id: "isPay",
  386. type: "String",
  387. hint: "章节是否为已购买 (规则结果为Bool)",
  388. },
  389. {
  390. title: "章节信息",
  391. namespace: "ruleToc",
  392. id: "updateTime",
  393. type: "String",
  394. hint: "选择章节信息 (规则结果为String)",
  395. },
  396. {
  397. title: "翻页规则",
  398. namespace: "ruleToc",
  399. id: "nextTocUrl",
  400. type: "String",
  401. hint: "选择目录下一页链接 (规则结果为List<String>或String)",
  402. },
  403. ],
  404. },
  405. content: {
  406. name: "正文",
  407. children: [
  408. {
  409. title: "脚本注入",
  410. namespace: "ruleContent",
  411. id: "webJs",
  412. type: "String",
  413. hint: "注入javascript,用于模拟鼠标点击等,必须有返回值,一般为String类型",
  414. },
  415. {
  416. title: "正文规则",
  417. namespace: "ruleContent",
  418. id: "content",
  419. type: "String",
  420. hint: "选择正文内容 (规则结果为String)",
  421. },
  422. {
  423. title: "翻页规则",
  424. namespace: "ruleContent",
  425. id: "nextContentUrl",
  426. type: "String",
  427. hint: "选择下一分页(不是下一章)链接 (规则结果为String类型的Url)",
  428. },
  429. {
  430. title: "资源正则",
  431. namespace: "ruleContent",
  432. id: "sourceRegex",
  433. type: "String",
  434. hint: "匹配资源的url特征,用于嗅探",
  435. },
  436. {
  437. title: "替换规则",
  438. namespace: "ruleContent",
  439. id: "replaceRegex",
  440. type: "String",
  441. hint: "多页内容合并后替换,用于正文净化",
  442. },
  443. {
  444. title: "图片样式",
  445. namespace: "ruleContent",
  446. id: "imageStyle",
  447. type: "String",
  448. hint: "FULL:铺满 不填:默认样式",
  449. },
  450. {
  451. title: "购买操作",
  452. namespace: "ruleContent",
  453. id: "payAction",
  454. type: "String",
  455. hint: "填写JavaScript 返回购买链接或者调用购买接口",
  456. },
  457. {
  458. title: "图片解密",
  459. namespace: "ruleContent",
  460. id: "imageDecode",
  461. type: "String",
  462. hint: "填写JavaScript 返回解密图片的bytes ",
  463. },
  464. ],
  465. },
  466. /*
  467. review: {
  468. name: "段评",
  469. children: [
  470. {
  471. title: "段评URL",
  472. namespace: "ruleReview",
  473. id: "reviewUrl",
  474. type: "String",
  475. hint: "段评URL",
  476. },
  477. {
  478. title: "发布头像",
  479. namespace: "ruleReview",
  480. id: "avatarRule",
  481. type: "String",
  482. hint: "段评发布者头像",
  483. },
  484. {
  485. title: "段评内容",
  486. namespace: "ruleReview",
  487. id: "contentRule",
  488. type: "String",
  489. hint: "段评内容",
  490. },
  491. {
  492. title: "发布时间",
  493. namespace: "ruleReview",
  494. id: "postTimeRule",
  495. type: "String",
  496. hint: "段评发布时间",
  497. },
  498. {
  499. title: "回复URL",
  500. namespace: "ruleReview",
  501. id: "reviewQuoteUrl",
  502. type: "String",
  503. hint: "获取段评回复URL",
  504. },
  505. {
  506. title: "点赞URL",
  507. namespace: "ruleReview",
  508. id: "voteUpUrl",
  509. type: "String",
  510. hint: "点赞URL",
  511. },
  512. {
  513. title: "点踩URL",
  514. namespace: "ruleReview",
  515. id: "voteDownUrl",
  516. type: "String",
  517. hint: "点踩URL",
  518. },
  519. {
  520. title: "发送回复",
  521. namespace: "ruleReview",
  522. id: "postReviewUrl",
  523. type: "String",
  524. hint: "发送回复URL",
  525. },
  526. {
  527. title: "回复段评",
  528. namespace: "ruleReview",
  529. id: "postQuoteUrl",
  530. type: "String",
  531. hint: "发送回复段评URL",
  532. },
  533. {
  534. title: "删除段评",
  535. namespace: "ruleReview",
  536. id: "deleteUrl",
  537. type: "String",
  538. hint: "删除段评URL",
  539. },
  540. ],
  541. },*/
  542. other: {
  543. name: "其他",
  544. children: [
  545. {
  546. title: "启用搜索",
  547. id: "enabled",
  548. type: "Boolean",
  549. },
  550. {
  551. title: "启用发现",
  552. id: "enabledExplore",
  553. type: "Boolean",
  554. },
  555. // {
  556. // title: "启用段评",
  557. // id: "enabledReview",
  558. // type: "Boolean",
  559. // },
  560. {
  561. title: "Cookie",
  562. id: "enabledCookieJar",
  563. type: "Boolean",
  564. },
  565. {
  566. title: "搜索权重",
  567. id: "weight",
  568. type: "Number",
  569. },
  570. {
  571. title: "排序编号",
  572. id: "customOrder",
  573. type: "Number",
  574. },
  575. ],
  576. },
  577. };