实现快传,完善快传和网盘的功能,实现文件的互传等一系列功能
This commit is contained in:
@@ -79,11 +79,6 @@ try {
|
||||
throw '文件列表为空'
|
||||
}
|
||||
|
||||
$schedule = Invoke-RestMethod -Uri 'http://127.0.0.1:8080/api/cqu/schedule?semester=2025-2026-1&studentId=20230001' -Headers $headers -Method Get
|
||||
if ($schedule.data.Count -lt 1) {
|
||||
throw '课表接口为空'
|
||||
}
|
||||
|
||||
$frontend = Start-Process `
|
||||
-FilePath 'cmd.exe' `
|
||||
-ArgumentList '/c', 'npm run dev -- --host 127.0.0.1 --port 4173' `
|
||||
@@ -113,7 +108,6 @@ try {
|
||||
|
||||
Write-Output "BACKEND_OK username=$username"
|
||||
Write-Output "FILES_OK count=$($files.data.items.Count)"
|
||||
Write-Output "SCHEDULE_OK count=$($schedule.data.Count)"
|
||||
Write-Output 'FRONTEND_OK url=http://127.0.0.1:4173'
|
||||
}
|
||||
finally {
|
||||
|
||||
@@ -18,15 +18,15 @@ const CONTENT_TYPES = new Map([
|
||||
]);
|
||||
|
||||
const FRONTEND_SPA_ALIASES = [
|
||||
't',
|
||||
'overview',
|
||||
'files',
|
||||
'school',
|
||||
'transfer',
|
||||
'games',
|
||||
'login',
|
||||
'admin',
|
||||
'admin/users',
|
||||
'admin/files',
|
||||
'admin/schoolSnapshots',
|
||||
];
|
||||
|
||||
export function normalizeEndpoint(endpoint) {
|
||||
|
||||
@@ -36,9 +36,10 @@ test('getContentType resolves common frontend asset types', () => {
|
||||
test('frontend spa aliases are uploaded as html entry points', () => {
|
||||
const aliases = getFrontendSpaAliasKeys();
|
||||
|
||||
assert.ok(aliases.includes('t/index.html'));
|
||||
assert.ok(aliases.includes('overview'));
|
||||
assert.ok(aliases.includes('transfer/index.html'));
|
||||
assert.ok(aliases.includes('admin/users'));
|
||||
assert.ok(aliases.includes('admin/schoolSnapshots/index.html'));
|
||||
assert.equal(getFrontendSpaAliasContentType(), 'text/html; charset=utf-8');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user