前端代码

This commit is contained in:
2026-08-13 22:35:13 +08:00
parent 9044bafdff
commit f1a0b17bb0
412 changed files with 36769 additions and 6617 deletions
+22
View File
@@ -0,0 +1,22 @@
/**
* 网站配置文件
*/
const greenText = (text) => `\x1b[32m${text}\x1b[0m`
export const config = {
appName: 'Kra',
showViteLogo: true,
keepAliveTabs: false,
logs: []
}
export const viteLogo = (env) => {
if (config.showViteLogo) {
console.log(greenText('> Kra administration console'))
console.log(greenText('> 当前版本:v3.0.0'))
if (env.VITE_SERVER_PORT) console.log(greenText(`> API:http://127.0.0.1:${env.VITE_SERVER_PORT}`))
if (env.VITE_CLI_PORT) console.log(greenText(`> Web:http://127.0.0.1:${env.VITE_CLI_PORT}`))
}
}
export default config