@cloud411716/fancy-webnovel 0.1.61 → 0.1.62
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/infra.js +1 -5
- package/package.json +1 -1
- package/plugins/fancy-scan/index.js +2 -3
package/infra.js
CHANGED
|
@@ -14,14 +14,10 @@
|
|
|
14
14
|
// ---------------------------------------------------------------------------
|
|
15
15
|
|
|
16
16
|
export function notify(session, text) {
|
|
17
|
-
const isHtml = String(text).startsWith('<');
|
|
18
17
|
queueMicrotask(() => {
|
|
19
18
|
session.append(
|
|
20
19
|
'user/message',
|
|
21
|
-
{
|
|
22
|
-
content: [{ type: isHtml ? 'html' : 'text', text: String(text) }],
|
|
23
|
-
source: { kind: 'user' }
|
|
24
|
-
},
|
|
20
|
+
{ content: [{ type: 'text', text: String(text) }], source: { kind: 'user' } },
|
|
25
21
|
{ surfaceOp: 'append' }
|
|
26
22
|
);
|
|
27
23
|
});
|
package/package.json
CHANGED
|
@@ -97,10 +97,9 @@ export async function apply(ctx) {
|
|
|
97
97
|
const FRAMES = '⠋⠙⠹⠸⠴⠦⠧⠇⠏';
|
|
98
98
|
let frame = 0;
|
|
99
99
|
const ticker = setInterval(() => {
|
|
100
|
-
|
|
101
|
-
notify(session, `<span class="spin">${f}</span> 采集中...`);
|
|
100
|
+
notify(session, `⏳ ${FRAMES[frame % FRAMES.length]} 采集中...`);
|
|
102
101
|
frame++;
|
|
103
|
-
},
|
|
102
|
+
}, 400);
|
|
104
103
|
|
|
105
104
|
const proc = spawn('node', [join(SCAN_SCRIPTS_DIR, 'run-scan.js'),
|
|
106
105
|
'--project-root', projectRoot, '--platform', platform, '--length', length], {
|