fix:修改项目名称及图标,引入新离线图标

master
wangrunpu 1 day ago
parent 32ec0e88de
commit fa3273d247

@ -1,8 +1,8 @@
# 应用标题
VITE_APP_TITLE=Plus Admin
VITE_APP_TITLE=涉尘涉爆管理平台
# 应用命名空间用于缓存、store等功能的前缀确保隔离
VITE_APP_NAMESPACE=vben-web-antd
VITE_APP_NAMESPACE=stm32-iot-vben5
# 对store进行加密的密钥在将store持久化到localStorage时会使用该密钥进行加密
VITE_APP_STORE_SECURE_KEY=please-replace-me-with-your-own-key

@ -10,9 +10,9 @@
},
"license": "MIT",
"author": {
"name": "bug",
"name": "bug2222",
"email": "wangrunpu2222@gmail.com",
"url": "https://github.com/anncwb"
"url": "https://gitee.com/bug2222"
},
"type": "module",
"scripts": {

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

@ -8,6 +8,7 @@
"oauthLogin": "Oauth Login"
},
"dashboard": {
"home": "Home",
"title": "Dashboard",
"analytics": "Analytics",
"workspace": "Workspace"

@ -8,6 +8,7 @@
"oauthLogin": "第三方登录"
},
"dashboard": {
"home": "首页",
"title": "概览",
"analytics": "分析页",
"workspace": "工作台"

@ -24,6 +24,14 @@ export const overridesPreferences = defineOverridesPreferences({
*
*/
name: import.meta.env.VITE_APP_TITLE,
/**
*
*/
defaultAvatar: '/avatar.png',
/**
*
*/
defaultHomePath: '/home',
/**
* modal
* 1.
@ -65,8 +73,8 @@ export const overridesPreferences = defineOverridesPreferences({
*
* !!!
*/
// logo: {
// enable: true,
// source: '',
// },
logo: {
enable: true,
source: '/icon.png',
},
});

@ -51,34 +51,16 @@ export const localMenuList: RouteRecordStringComponent[] = [
},
name: 'Dashboard',
path: '/',
redirect: '/analytics',
redirect: '/home',
children: [
{
name: 'Analytics',
path: '/analytics',
component: '/dashboard/analytics/index',
name: 'Home',
path: '/home',
component: '/dashboard/home/index',
meta: {
icon: 'solar:home-broken',
affixTab: true,
title: 'page.dashboard.analytics',
},
},
{
name: 'Workspace',
path: '/workspace',
component: '/dashboard/workspace/index',
meta: {
title: 'page.dashboard.workspace',
},
},
{
name: 'VbenDocument',
path: '/vben-admin/document',
component: 'IFrameView',
meta: {
icon: 'lucide:book-open-text',
iframeSrc: 'https://dapdap.top',
keepAlive: true,
title: $t('demos.vben.document'),
title: 'page.dashboard.home',
},
},
{

@ -4,7 +4,7 @@ import { useLocalStorage } from '@vueuse/core';
import { Modal } from 'ant-design-vue';
export function useUploadTip() {
const readTip = useLocalStorage<boolean>('__upload_tip_read_5.4.0', false);
const readTip = useLocalStorage<boolean>('__upload_tip_read_1.0.0', false);
onMounted(() => {
if (readTip.value || !import.meta.env.DEV) {
return;
@ -12,8 +12,7 @@ export function useUploadTip() {
const modalInstance = Modal.info({
title: '提示',
centered: true,
content:
'如果你的版本是从低版本升级到后端>5.4.0, 记得执行升级sql, 否则跳转页面(如oss 代码生成配置)等会404',
content: '您现使用的版本是1.0.0',
okButtonProps: { disabled: true },
onOk() {
modalInstance.destroy();

@ -0,0 +1,30 @@
<script lang="ts" setup>
import { Page } from '@vben/common-ui';
import {VbenIcon} from '@vben/icons';
import { Card, Flex } from 'ant-design-vue';
</script>
<template>
<Page :auto-content-height="true">
<Flex justify="space-between" align="flex-start">
<Card class="w-full">
<Flex justify="space-between" align="center">
<span> hhh </span>
<VbenIcon icon="solar:home-broken" class="size-8 flex-shrink-0" />
</Flex>
</Card>
<Card class="w-full">
<p>card content</p>
</Card>
<Card class="w-full">
<p>card content</p>
</Card>
<Card class="w-full">
<p>card content</p>
</Card>
</Flex>
</Page>
</template>

@ -19,9 +19,9 @@
"repository": "vbenjs/vue-vben-admin.git",
"license": "MIT",
"author": {
"name": "vben",
"email": "ann.vben@gmail.com",
"url": "https://github.com/anncwb"
"name": "bug2222",
"email": "wangrunpu2222@gmail.com",
"url": "https://gitee.com/bug2222"
},
"type": "module",
"scripts": {

@ -41,9 +41,9 @@ const defaultPreferences: Preferences = {
styleType: 'normal',
},
copyright: {
companyName: 'Vben',
companySiteLink: 'https://www.vben.pro',
date: '2024',
companyName: '天恩科技',
companySiteLink: '',
date: '2025',
enable: true,
icp: '',
icpLink: '',

@ -1,14 +1,10 @@
<script setup lang="ts">
import type { AboutProps, DescriptionItem } from './about';
import {
VBEN_DOC_URL,
VBEN_GITHUB_URL,
VBEN_PREVIEW_URL,
} from '@vben/constants';
import { VbenRenderContent } from '@vben-core/shadcn-ui';
import { h } from 'vue';
import { VbenRenderContent } from '@vben-core/shadcn-ui';
import { Page } from '../../components';
interface Props extends AboutProps {}
@ -19,8 +15,8 @@ defineOptions({
withDefaults(defineProps<Props>(), {
description:
'是一个现代化开箱即用的中后台解决方案,采用最新的技术栈,包括 Vue 3.0、Vite、TailwindCSS 和 TypeScript 等前沿技术,代码规范严谨,提供丰富的配置选项,旨在为中大型项目的开发提供现成的开箱即用解决方案及丰富的示例,同时,它也是学习和深入前端技术的一个极佳示例。',
name: 'Vben Admin',
'涉尘涉爆后台管理系统,采用最新的技术栈,包括 Vue 3.0、Vite、TailwindCSS 和 TypeScript 等前沿技术,代码规范严谨,提供丰富的配置选项,旨在达到优质的用户体验,同时,它也是学习和深入前端技术的一个极佳示例。',
name: '涉尘涉爆管理平台',
title: '关于项目',
});
@ -54,7 +50,6 @@ const {
buildTime,
dependencies = {},
devDependencies = {},
homepage,
license,
version,
// vite inject-metadata
@ -73,22 +68,6 @@ const vbenDescriptionItems: DescriptionItem[] = [
content: buildTime,
title: '最后构建时间',
},
{
content: renderLink(homepage, '点击查看'),
title: '主页',
},
{
content: renderLink(VBEN_DOC_URL, '点击查看'),
title: '文档地址',
},
{
content: renderLink(VBEN_PREVIEW_URL, '点击查看'),
title: '预览地址',
},
{
content: renderLink(VBEN_GITHUB_URL, '点击查看'),
title: 'Github',
},
{
content: h('div', [
renderLink(authorUrl, `${authorName} `),
@ -113,9 +92,9 @@ const devDependenciesItems = Object.keys(devDependencies).map((key) => ({
<Page :title="title">
<template #description>
<p class="text-foreground mt-3 text-sm leading-6">
<a :href="VBEN_GITHUB_URL" class="vben-link" target="_blank">
{{ name }}
</a>
<!-- <a :href="VBEN_GITHUB_URL" class="vben-link" target="_blank">-->
<!-- {{ name }}-->
<!-- </a>-->
{{ description }}
</p>
</template>

@ -48,6 +48,7 @@ import insatnceLine from '@iconify/icons-ri/instance-line';
import todoLine from '@iconify/icons-ri/todo-line';
import Authy from '@iconify/icons-simple-icons/authy';
import FolderWithFilesOutline from '@iconify/icons-solar/folder-with-files-outline';
import homeBroken from '@iconify/icons-solar/home-broken';
import monitorBoldDuotone from '@iconify/icons-solar/monitor-bold-duotone';
import monitorCameraOutlined from '@iconify/icons-solar/monitor-camera-outline';
import monitorPhoneOutlined from '@iconify/icons-solar/monitor-smartphone-outline';
@ -77,6 +78,7 @@ addIcon(
addIcon('solar:folder-with-files-outline', FolderWithFilesOutline);
addIcon('simple-icons:authy', Authy);
addIcon('solar:monitor-smartphone-outline', monitorPhoneOutlined);
addIcon('solar:home-broken', homeBroken);
addIcon('ic:baseline-house', BaseLineHouse);
addIcon('ph:users-light', users);
addIcon('bi:houses-fill', BaseLineHousesFill);

@ -1,6 +1,6 @@
{
"welcomeBack": "欢迎回来",
"pageTitle": "开箱即用的大型中后台管理系统",
"pageTitle": "涉尘涉爆后台管理系统",
"pageDesc": "工程化、高性能、跨组件库的前端模版",
"loginSuccess": "登录成功",
"loginSuccessDesc": "欢迎回来",

Loading…
Cancel
Save