mirror of
https://github.com/nianzhibai/91.git
synced 2026-06-15 00:44:30 +08:00
ae324d3752
Add Unicom cloud drive support for source-file deletion and crawler uploads. - Implement source-file removal for Unicom cloud drive so deleting videos can also remove the original cloud-drive file when requested. - Resolve Unicom cloud drive source identifiers across file FID, object ID, directory ID, rename, and delete flows. - Add upload support for Spider91 crawler imports targeting Unicom cloud drive storage. - Add Unicom cloud drive QR login backend APIs, frontend form support, and tests. - Extend drive capability metadata, scanner behavior, proxy handling, preview handling, and migration coverage for cloud-drive source operations. - Rename Chinese display labels from 联通沃盘 to 联通网盘 and from 123 云盘 to 123网盘 while keeping the root README aligned with origin/main. - Add referrer-policy coverage for 302 video playback and update related frontend playback tests.
16 lines
378 B
TypeScript
16 lines
378 B
TypeScript
import assert from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
import test from "node:test";
|
|
|
|
const indexHtml = readFileSync(
|
|
new URL("../index.html", import.meta.url),
|
|
"utf8"
|
|
);
|
|
|
|
test("app shell prevents referrer leakage for 302 video playback", () => {
|
|
assert.match(
|
|
indexHtml,
|
|
/<meta\s+name="referrer"\s+content="no-referrer"\s*\/?>/
|
|
);
|
|
});
|