chore: 初始开源发布

iotlcm-admin-ui:管理前端(基于 Vben Admin 5.5.9 二次开发)。

- 天地图 API Key → YOUR_TIANDITU_KEY
- OAuth 客户端 ID → your-client-id,store 加密密钥 → 提示自行替换
- Makefile 移除明文 registry 登录口令,镜像地址改
- appIcon 指向内网图床的链接 → /favicon.ico
- 真实手机号 → 合法 11 位编造号(保留号段前 3 位 + 后 4 位)
- 真实邮箱 → example.com(署名头内的上游作者邮箱保留)
- 移除 CI 触发器
- 补 MIT LICENSE(含 Vben Admin 上游声明)+ README
- 统一 LF 行尾并加 .gitattributes

上游 Vben Admin 的版权与许可声明完整保留(各源文件 @Author/@Copyright 头 + LICENSE)。
This commit is contained in:
MiFaZhan
2026-10-26 13:46:34 +08:00
commit 3106d96ac7
1607 changed files with 185856 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
import type { RuntimeSetting } from './config/setting';
import { defineOverridesPreferences } from '@vben/preferences';
/**
* @description 项目配置文件
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
* !!! 更改配置后请清空缓存,否则可能不生效
*/
function createOverridesPreferences(setting: RuntimeSetting) {
return defineOverridesPreferences({
// overrides
app: {
name: setting.appTitle || '',
accessMode: 'backend',
authPageLayout: 'panel-right',
layout: 'header-sidebar-nav',
},
breadcrumb: {
enable: false,
},
shortcutKeys: {
enable: false,
},
tabbar: {
styleType: 'plain',
},
theme: {
mode: 'light',
radius: '0.25',
},
logo: {
enable: true,
source: setting.appIcon || '',
},
copyright: {
enable: true,
companyName: setting.copyright?.companyName || '',
companySiteLink: setting.copyright?.companySiteLink || '',
date: setting.copyright?.date || '',
icp: setting.copyright?.icp || '',
icpLink: setting.copyright?.icpLink || '',
},
widget: {
refresh: false,
},
});
}
export { createOverridesPreferences };
// {
// // overrides
// app: {
// name: import.meta.env.VITE_APP_TITLE,
// accessMode: 'backend',
// },
// theme: {
// mode: "light"
// },
// logo: {
// enable: true,
// source: '/logo.png',
// },
// copyright: {
// enable: true,
// companyName: "李示例",
// companySiteLink: "https://www.xiujiezhilian.cn",
// date: "2024-2025",
// icp: "鲁ICP备2024117944号-1",
// icpLink: "https://beian.miit.gov.cn/",
// },
// }