rssSourceEditConfig.ts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. title: 'js库',
  87. id: 'jsLib',
  88. type: 'String',
  89. hint: 'js库, 可填写js或者key-value object获取在线js文件',
  90. },
  91. ],
  92. },
  93. list: {
  94. name: '列表',
  95. children: [
  96. {
  97. title: '列表规则',
  98. id: 'ruleArticles',
  99. type: 'String',
  100. hint: '规则结果为List<Element>',
  101. },
  102. {
  103. title: '翻页规则',
  104. id: 'ruleNextPage',
  105. type: 'String',
  106. hint: '下一页链接 规则结果为List<String>或String',
  107. },
  108. {
  109. title: '标题规则',
  110. id: 'ruleTitle',
  111. type: 'String',
  112. hint: '文章标题 规则结果为String',
  113. },
  114. {
  115. title: '时间规则',
  116. id: 'rulePubDate',
  117. type: 'String',
  118. hint: '文章发布时间 规则结果为String',
  119. },
  120. {
  121. title: '描述规则',
  122. id: 'ruleDescription',
  123. type: 'String',
  124. hint: '文章简要描述 规则结果为String',
  125. },
  126. {
  127. title: '图片规则',
  128. id: 'ruleImage',
  129. type: 'String',
  130. hint: '文章图片链接 规则结果为String',
  131. },
  132. {
  133. title: '链接规则',
  134. id: 'ruleLink',
  135. type: 'String',
  136. hint: '文章链接 规则结果为String',
  137. },
  138. ],
  139. },
  140. webView: {
  141. name: 'WebView',
  142. children: [
  143. {
  144. title: '内容规则',
  145. id: 'ruleContent',
  146. type: 'String',
  147. hint: '文章正文',
  148. },
  149. {
  150. title: '样式规则',
  151. id: 'style',
  152. type: 'String',
  153. hint: '文章正文样式 填写css',
  154. },
  155. {
  156. title: '注入规则',
  157. id: 'injectJs',
  158. type: 'String',
  159. hint: '注入网页的JavaScript',
  160. },
  161. {
  162. title: '黑名单',
  163. id: 'contentBlacklist',
  164. type: 'String',
  165. hint: 'webView链接加载黑名单,英文逗号隔开',
  166. },
  167. {
  168. title: '白名单',
  169. id: 'contentWhitelist',
  170. type: 'String',
  171. hint: 'webView链接加载白名单,英文逗号隔开',
  172. },
  173. {
  174. title: '链接拦截',
  175. id: 'shouldOverrideUrlLoading',
  176. type: 'String',
  177. hint: '填写js,变量url为当前资源链接,返回true拦截',
  178. },
  179. ],
  180. },
  181. other: {
  182. name: '其他',
  183. children: [
  184. {
  185. title: '列表样式',
  186. id: 'articleStyle',
  187. type: 'Array',
  188. array: ['默认', '大图', '双列'],
  189. },
  190. {
  191. title: '加载地址',
  192. id: 'loadWithBaseUrl',
  193. type: 'Boolean',
  194. },
  195. {
  196. title: '启用JS',
  197. id: 'enableJs',
  198. type: 'Boolean',
  199. },
  200. {
  201. title: '启用',
  202. id: 'enabled',
  203. type: 'Boolean',
  204. },
  205. {
  206. title: 'Cookie',
  207. id: 'enabledCookieJar',
  208. type: 'Boolean',
  209. },
  210. {
  211. title: '单URL',
  212. id: 'singleUrl',
  213. type: 'Boolean',
  214. },
  215. {
  216. title: '排序编号',
  217. id: 'customOrder',
  218. type: 'Number',
  219. },
  220. ],
  221. },
  222. }