bookSourceEditConfig.js 14 KB

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