@cloud411716/fancy-webnovel 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/bootstrap/index.js +1 -1
- package/commands/scan/index.js +1 -1
- package/commands/scan/platforms/qidian.js +11 -10
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import { join } from 'path';
|
|
|
10
10
|
import { notify } from '../../infra.js';
|
|
11
11
|
import { initProject } from './init-project.js';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// inject is declared in the root index.js; only apply() is imported by index.js
|
|
14
14
|
|
|
15
15
|
function isValidPath(p) {
|
|
16
16
|
return (
|
package/commands/scan/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import * as fanqie from './platforms/fanqie.js';
|
|
|
14
14
|
import * as jinjiang from './platforms/jinjiang.js';
|
|
15
15
|
import * as qimao from './platforms/qimao.js';
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// inject is declared in the root index.js; only apply() is imported by index.js
|
|
18
18
|
|
|
19
19
|
const PLATFORM_TABLE = [
|
|
20
20
|
['1', 'qidian', '起点'],
|
|
@@ -15,23 +15,24 @@
|
|
|
15
15
|
|
|
16
16
|
const MOBILE_BASE = 'https://m.qidian.com';
|
|
17
17
|
|
|
18
|
+
// RANK_PATHS keys match rank.type (passed by scraper as rankId)
|
|
18
19
|
const RANK_PATHS = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
'5173_2': '/rank/1_5173_2',
|
|
21
|
+
'5173_7': '/rank/1_5173_7',
|
|
22
|
+
'5173_14': '/rank/1_5173_14',
|
|
23
|
+
'5173_22': '/rank/1_5173_22',
|
|
24
|
+
'5173_31': '/rank/1_5173_31',
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
export const platform = 'qidian';
|
|
27
28
|
export const label = '起点';
|
|
28
29
|
|
|
29
30
|
export const rankList = [
|
|
30
|
-
{ id: '
|
|
31
|
-
{ id: '
|
|
32
|
-
{ id: '
|
|
33
|
-
{ id: '
|
|
34
|
-
{ id: '
|
|
31
|
+
{ id: '5173_2', label: '畅销榜', channel: '1', type: '5173_2' },
|
|
32
|
+
{ id: '5173_7', label: '月票榜', channel: '1', type: '5173_7' },
|
|
33
|
+
{ id: '5173_14', label: '签约作者新书榜', channel: '1', type: '5173_14' },
|
|
34
|
+
{ id: '5173_22', label: '公众作者新书榜', channel: '1', type: '5173_22' },
|
|
35
|
+
{ id: '5173_31', label: '新人作者新书榜', channel: '1', type: '5173_31' },
|
|
35
36
|
];
|
|
36
37
|
|
|
37
38
|
const HEADERS = {
|
package/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import { apply as applyScan } from './commands/scan/index.js';
|
|
|
30
30
|
* Services this plugin requires from the Cordis context.
|
|
31
31
|
* All are provided by dsh-base, so this works on every DSH UI.
|
|
32
32
|
*/
|
|
33
|
-
export const inject = ['commands', 'userQuestions'];
|
|
33
|
+
export const inject = ['commands', 'userQuestions', 'timer'];
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Called once when the plugin is loaded into a Cordis context (fiber).
|