rssSourceEditConfig.ts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. export default {
  2. base: {
  3. name: '基础',
  4. children: [
  5. {
  6. title: '源域名',
  7. id: 'sourceUrl',
  8. type: 'String',
  9. hint: '通常填写网站主页,例: https://www.qidian.com',
  10. required: true,
  11. },
  12. {
  13. title: '图标',
  14. id: 'sourceIcon',
  15. type: 'String',
  16. hint: '填写图片网络链接',
  17. },
  18. {
  19. title: '源名称',
  20. id: 'sourceName',
  21. type: 'String',
  22. hint: '会显示在源列表',
  23. required: true,
  24. },
  25. {
  26. title: '源分组',
  27. id: 'sourceGroup',
  28. type: 'String',
  29. hint: '描述源的特征信息',
  30. },
  31. {
  32. title: '源注释',
  33. id: 'sourceComment',
  34. type: 'String',
  35. hint: '描述源作者和状态',
  36. },
  37. {
  38. title: '分类地址',
  39. id: 'sortUrl',
  40. type: 'String',
  41. hint: '名称1::链接1\n名称2::链接2',
  42. },
  43. {
  44. title: '登录地址',
  45. id: 'loginUrl',
  46. type: 'String',
  47. hint: '填写网站登录网址,仅在需要登录的源有用',
  48. },
  49. {
  50. title: '登录界面',
  51. id: 'loginUi',
  52. type: 'String',
  53. hint: '自定义登录界面',
  54. },
  55. {
  56. title: '登录检测',
  57. id: 'loginCheckJs',
  58. type: 'String',
  59. hint: '登录检测js',
  60. },
  61. {
  62. title: '封面解密',
  63. id: 'coverDecodeJs',
  64. type: 'String',
  65. hint: '封面解密js',
  66. },
  67. {
  68. title: '请求头',
  69. id: 'header',
  70. type: 'String',
  71. hint: '客户端标识',
  72. },
  73. {
  74. title: '变量说明',
  75. id: 'variableComment',
  76. type: 'String',
  77. hint: '源变量说明',
  78. },
  79. {
  80. title: '并发率',
  81. id: 'concurrentRate',
  82. type: 'String',
  83. hint: '并发率',
  84. },
  85. ],
  86. },
  87. list: {
  88. name: '列表',
  89. children: [
  90. {
  91. title: '列表规则',
  92. id: 'ruleArticles',
  93. type: 'String',
  94. hint: '规则结果为List<Element>',
  95. },
  96. {
  97. title: '翻页规则',
  98. id: 'ruleNextPage',
  99. type: 'String',
  100. hint: '下一页链接 规则结果为List<String>或String',
  101. },
  102. {
  103. title: '标题规则',
  104. id: 'ruleTitle',
  105. type: 'String',
  106. hint: '文章标题 规则结果为String',
  107. },
  108. {
  109. title: '时间规则',
  110. id: 'rulePubDate',
  111. type: 'String',
  112. hint: '文章发布时间 规则结果为String',
  113. },
  114. {
  115. title: '描述规则',
  116. id: 'ruleDescription',
  117. type: 'String',
  118. hint: '文章简要描述 规则结果为String',
  119. },
  120. {
  121. title: '图片规则',
  122. id: 'ruleImage',
  123. type: 'String',
  124. hint: '文章图片链接 规则结果为String',
  125. },
  126. {
  127. title: '链接规则',
  128. id: 'ruleLink',
  129. type: 'String',
  130. hint: '文章链接 规则结果为String',
  131. },
  132. ],
  133. },
  134. webView: {
  135. name: 'WebView',
  136. children: [
  137. {
  138. title: '内容规则',
  139. id: 'ruleContent',
  140. type: 'String',
  141. hint: '文章正文',
  142. },
  143. {
  144. title: '样式规则',
  145. id: 'style',
  146. type: 'String',
  147. hint: '文章正文样式 填写css',
  148. },
  149. {
  150. title: '注入规则',
  151. id: 'injectJs',
  152. type: 'String',
  153. hint: '注入网页的JavaScript',
  154. },
  155. {
  156. title: '黑名单',
  157. id: 'contentBlacklist',
  158. type: 'String',
  159. hint: 'webView链接加载黑名单,英文逗号隔开',
  160. },
  161. {
  162. title: '白名单',
  163. id: 'contentWhitelist',
  164. type: 'String',
  165. hint: 'webView链接加载白名单,英文逗号隔开',
  166. },
  167. {
  168. title: '链接拦截',
  169. id: 'shouldOverrideUrlLoading',
  170. type: 'String',
  171. hint: '填写js,变量url为当前资源链接,返回true拦截',
  172. },
  173. ],
  174. },
  175. other: {
  176. name: '其他',
  177. children: [
  178. {
  179. title: '列表样式',
  180. id: 'articleStyle',
  181. type: 'Array',
  182. array: ['默认', '大图', '双列'],
  183. },
  184. {
  185. title: '加载地址',
  186. id: 'loadWithBaseUrl',
  187. type: 'Boolean',
  188. },
  189. {
  190. title: '启用JS',
  191. id: 'enableJs',
  192. type: 'Boolean',
  193. },
  194. {
  195. title: '启用',
  196. id: 'enabled',
  197. type: 'Boolean',
  198. },
  199. {
  200. title: 'Cookie',
  201. id: 'enabledCookieJar',
  202. type: 'Boolean',
  203. },
  204. {
  205. title: '单URL',
  206. id: 'singleUrl',
  207. type: 'Boolean',
  208. },
  209. {
  210. title: '排序编号',
  211. id: 'customOrder',
  212. type: 'Number',
  213. },
  214. ],
  215. },
  216. }