mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-10-21 20:57:10 +08:00
26 lines
1023 B
TypeScript
26 lines
1023 B
TypeScript
import boxen from 'boxen'
|
|
import picocolors from 'picocolors'
|
|
import type { Plugin } from 'vite'
|
|
|
|
export default function appInfo(): Plugin {
|
|
return {
|
|
name: 'appInfo',
|
|
apply: 'serve',
|
|
async buildStart() {
|
|
const { bold, green, cyan, bgGreen, underline } = picocolors
|
|
// eslint-disable-next-line no-console
|
|
console.log(
|
|
boxen(
|
|
`${bold(green(`${bgGreen('ContiNew Admin v4.1.0-SNAPSHOT')}`))}\n${cyan('在线文档:')}${underline('https://continew.top')}\n${cyan('吐槽广场:')}${underline('https://continew.top/docs/admin/issue-hub.html')}\n${cyan('常见问题:')}${underline('https://continew.top/docs/admin/faq.html')}\n${cyan('更新日志:')}${underline('https://continew.top/docs/admin/changelog/')}\n${cyan('持续迭代优化的,高质量多租户中后台管理系统框架')}`,
|
|
{
|
|
padding: 1,
|
|
margin: 1,
|
|
borderStyle: 'double',
|
|
textAlignment: 'center',
|
|
},
|
|
),
|
|
)
|
|
},
|
|
}
|
|
}
|