2021-06-23 11:36:22 +08:00
|
|
|
|
/**
|
|
|
|
|
* 网站配置文件
|
|
|
|
|
*/
|
2024-05-10 11:15:17 +08:00
|
|
|
|
import chalk from "chalk";
|
2021-06-11 21:37:07 +08:00
|
|
|
|
|
2021-06-23 11:36:22 +08:00
|
|
|
|
const config = {
|
2023-01-14 10:52:15 +08:00
|
|
|
|
appName: 'Gin-Vue-Admin',
|
|
|
|
|
appLogo: 'https://www.gin-vue-admin.com/img/logo.png',
|
2023-12-10 23:30:39 +08:00
|
|
|
|
showViteLogo: true,
|
|
|
|
|
logs: [],
|
2021-06-11 21:37:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-11-24 15:58:43 +08:00
|
|
|
|
export const viteLogo = (env) => {
|
2023-01-14 10:52:15 +08:00
|
|
|
|
if (config.showViteLogo) {
|
|
|
|
|
const chalk = require('chalk')
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
|
|
|
|
`> 欢迎使用Gin-Vue-Admin,开源地址:https://github.com/flipped-aurora/gin-vue-admin`
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
2024-05-09 21:35:39 +08:00
|
|
|
|
`> 当前版本:v2.6.4`
|
2023-01-14 10:52:15 +08:00
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
2024-03-27 16:48:22 +08:00
|
|
|
|
`> 加群方式:微信:shouzi_1994 QQ群:470239250`
|
2023-01-14 10:52:15 +08:00
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
2024-05-10 11:15:17 +08:00
|
|
|
|
`> 项目地址:https://github.com/flipped-aurora/gin-vue-admin`
|
2023-01-14 10:52:15 +08:00
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
|
|
|
|
`> 插件市场:https://plugin.gin-vue-admin.com`
|
|
|
|
|
)
|
|
|
|
|
)
|
2024-05-10 11:15:17 +08:00
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
|
|
|
|
`> GVA讨论社区:https://support.qq.com/products/371961`
|
|
|
|
|
)
|
|
|
|
|
)
|
2023-01-14 10:52:15 +08:00
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
|
|
|
|
`> 默认自动化文档地址:http://127.0.0.1:${env.VITE_SERVER_PORT}/swagger/index.html`
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
|
|
|
|
`> 默认前端文件运行地址:http://127.0.0.1:${env.VITE_CLI_PORT}`
|
|
|
|
|
)
|
|
|
|
|
)
|
2024-05-10 11:15:17 +08:00
|
|
|
|
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
|
|
|
|
`--------------------------------------版权声明--------------------------------------`
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
|
|
|
|
`** 版权所有方:flipped-aurora开源团队 **`
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
|
|
|
|
`** 版权持有公司:北京翻转极光科技有限责任公司 **`
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
2023-01-14 10:52:15 +08:00
|
|
|
|
console.log(
|
|
|
|
|
chalk.green(
|
2024-05-10 11:15:17 +08:00
|
|
|
|
`** 剔除授权标识需购买商用授权:https://gin-vue-admin.com/empower/index.html **`
|
2023-01-14 10:52:15 +08:00
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
console.log('\n')
|
|
|
|
|
}
|
2021-11-24 15:58:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-01-14 10:52:15 +08:00
|
|
|
|
export default config
|