fix(admin): 校正侧栏箭头与折叠标志并整理子菜单
This commit is contained in:
@@ -4,7 +4,10 @@ import path from 'node:path'
|
||||
import {fileURLToPath} from 'node:url'
|
||||
import {readFile} from 'node:fs/promises'
|
||||
const host='127.0.0.1',port=process.argv[2]==='--qa'?5181:5179,self=`http://${host}:${port}`,official='https://admin.zhenyangtang.com.cn'
|
||||
const dist=fileURLToPath(new URL('../node_modules/.zyt-live-native/dist/',import.meta.url)), entry=path.join(dist,'live-native/index.html')
|
||||
const candidate=port===5181 ? process.argv[3] : undefined
|
||||
if(candidate && !/^[a-z][a-z0-9-]{1,48}$/.test(candidate))throw Error('Invalid candidate')
|
||||
const base=fileURLToPath(new URL('../node_modules/.zyt-live-native/',import.meta.url))
|
||||
const dist=candidate?path.join(base,'candidates',candidate):path.join(base,'dist'),entry=path.join(dist,'live-native/index.html')
|
||||
const types={js:'text/javascript',css:'text/css',svg:'image/svg+xml',png:'image/png',jpg:'image/jpeg',jpeg:'image/jpeg',webp:'image/webp',gif:'image/gif',ico:'image/x-icon',woff:'font/woff',woff2:'font/woff2',ttf:'font/ttf',otf:'font/otf',mp3:'audio/mpeg',mp4:'video/mp4',json:'application/json',wasm:'application/wasm'}
|
||||
// Same-origin program assets. API authorization, including write permissions, belongs to the official backend.
|
||||
// Media may be served by the storage provider configured by the business; never proxy it through localhost.
|
||||
|
||||
Reference in New Issue
Block a user