Browse Source

修改标题

develop
fuguobin 1 year ago
parent
commit
509bb3ca0c
  1. 2
      .env.development
  2. 6
      .env.production
  3. 2
      .env.staging
  4. 6
      README.md
  5. 200
      index.html
  6. 2
      package.json
  7. BIN
      src/assets/images/logo.png
  8. BIN
      src/assets/logo.png
  9. 6
      src/lang/en.ts
  10. 2
      src/lang/zh-cn.ts
  11. 9
      src/layout/components/Sidebar/Logo.vue
  12. 4
      src/settings.ts
  13. 6
      src/types/auto-imports.d.ts

2
.env.development

@ -1,6 +1,6 @@
## 开发环境 ## 开发环境
VITE_APP_ENV = 'development' VITE_APP_ENV = 'development'
VITE_APP_TITLE = 'vue-vite-project-admin' VITE_APP_TITLE = 'Luen Mei Intelligence'
VITE_APP_PORT = 8089 VITE_APP_PORT = 8089
##VITE_APP_WS_API = 'ws://localhost:9010' ## websocket地址 ##VITE_APP_WS_API = 'ws://localhost:9010' ## websocket地址
VITE_APP_BASE_API = '/dev-api' ## '/dev-api'线上接口 '/mock'本地模拟数据 VITE_APP_BASE_API = '/dev-api' ## '/dev-api'线上接口 '/mock'本地模拟数据

6
.env.production

@ -1,10 +1,10 @@
## 生产环境 ## 生产环境
VITE_APP_ENV = 'production' VITE_APP_ENV = 'production'
VITE_APP_TITLE = 'vue-vite-project-admin' VITE_APP_TITLE = 'Luen Mei Intelligence'
VITE_APP_PORT = 8089 VITE_APP_PORT = 8089
#VITE_APP_WS_API = 'ws://board.heatiot.cn:8001/prod-api' ## websocket地址 #VITE_APP_WS_API = 'ws://board.heatiot.cn:8001/prod-api' ## websocket地址
#VITE_APP_BASE_API = 'http://board.heatiot.cn:8001/prod-api/' ## 线上接口 #VITE_APP_BASE_API = 'http://board.heatiot.cn:8001/prod-api/' ## 线上接口
#VITE_APP_WS_API = 'ws://${window.location.host}/ws' ## websocket地址 ws://10.10.10.56:9000/websocket/ #VITE_APP_WS_API = 'ws://${window.location.host}/ws' ## websocket地址 ws://10.10.10.56:9000/websocket/
# VITE_APP_BASE_API = '/prod-api/' ## 正式环境 VITE_APP_BASE_API = '/prod-api/' ## 正式环境
VITE_APP_BASE_API = '/biprod-api/' ## 测试环境 # VITE_APP_BASE_API = '/biprod-api/' ## 测试环境

2
.env.staging

@ -1,5 +1,5 @@
## 模拟环境 ## 模拟环境
VITE_APP_ENV = 'staging' VITE_APP_ENV = 'staging'
VITE_APP_TITLE = 'vue-vite-project-admin' VITE_APP_TITLE = 'Luen Mei Intelligence'
VITE_APP_PORT = 8089 VITE_APP_PORT = 8089
VITE_APP_BASE_API = '/mock' VITE_APP_BASE_API = '/mock'

6
README.md

@ -1,10 +1,10 @@
# Luenmei Operational Cockpit MS # Luen Mei Intelligence Energy MS
> 联美运营驾驶舱管理系统 > 联美智慧能源管理系统
## Build Setup ## Build Setup
``` bash ```bash
# install dependencies # install dependencies
pnpm install pnpm install

200
index.html

@ -1,117 +1,117 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta
name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telphone=no, email=no" />
<meta name="format-detection" content="telphone=no, email=no" />
<title>联美智慧能源科技(沈阳)有限公司</title>
<link rel="icon" href="" type="image/x-icon" />
<meta name="apple-mobile-web-app-title" content="联美智慧能源科技(沈阳)有限公司" />
<meta name="keywords" content="联美智慧,联美智科,智慧能源,管理系统" />
<meta name="description" content="联美智慧能源科技(沈阳)有限公司" />
<meta name="author" content="Daniel" />
<meta name="copyright" content="联美智慧" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<script type="module" src="/src/main.ts"></script>
<style>
:root {
--sk-size: 40px;
--sk-color: #409eff;
}
<head> .loading-home {
<meta charset="UTF-8"> width: 100vw;
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> height: 100vh;
<meta name="viewport" display: flex;
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"> align-items: center;
<meta name="apple-mobile-web-app-capable" content="yes" /> justify-content: center;
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> z-index: 999999;
<meta name="format-detection" content="telphone=no, email=no" /> }
<meta name="format-detection" content="telphone=no, email=no" />
<title>联美运营驾驶舱管理系统</title>
<link rel="icon" href="" type="image/x-icon">
<meta name="apple-mobile-web-app-title" content="联美运营驾驶舱管理系统">
<meta name="keywords" content="数据大屏,管理系统">
<meta name="description" content="联美运营驾驶舱管理系统">
<meta name="author" content="Daniel">
<meta name="copyright" content="Daniel">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<script type="module" src="/src/main.ts"></script>
<style>
:root {
--sk-size: 40px;
--sk-color: #409eff;
}
.loading-home {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
z-index: 999999;
}
.loading-grid {
width: var(--sk-size);
height: var(--sk-size);
}
.loading-cube {
width: 33.33%;
height: 33.33%;
background-color: var(--sk-color);
float: left;
animation: loading-grid 1.3s infinite ease-in-out;
}
.loading-cube:nth-child(1) { .loading-grid {
animation-delay: 0.2s; width: var(--sk-size);
} height: var(--sk-size);
}
.loading-cube:nth-child(2) { .loading-cube {
animation-delay: 0.3s; width: 33.33%;
} height: 33.33%;
background-color: var(--sk-color);
float: left;
animation: loading-grid 1.3s infinite ease-in-out;
}
.loading-cube:nth-child(3) { .loading-cube:nth-child(1) {
animation-delay: 0.4s; animation-delay: 0.2s;
} }
.loading-cube:nth-child(4) { .loading-cube:nth-child(2) {
animation-delay: 0.1s; animation-delay: 0.3s;
} }
.loading-cube:nth-child(5) { .loading-cube:nth-child(3) {
animation-delay: 0.2s; animation-delay: 0.4s;
} }
.loading-cube:nth-child(6) { .loading-cube:nth-child(4) {
animation-delay: 0.3s; animation-delay: 0.1s;
} }
.loading-cube:nth-child(7) { .loading-cube:nth-child(5) {
animation-delay: 0.0s; animation-delay: 0.2s;
} }
.loading-cube:nth-child(8) { .loading-cube:nth-child(6) {
animation-delay: 0.1s; animation-delay: 0.3s;
} }
.loading-cube:nth-child(9) { .loading-cube:nth-child(7) {
animation-delay: 0.2s; animation-delay: 0s;
} }
@keyframes loading-grid { .loading-cube:nth-child(8) {
0%, animation-delay: 0.1s;
70%,
100% {
transform: scale3D(1, 1, 1);
} }
35% {
transform: scale3D(0, 0, 1); .loading-cube:nth-child(9) {
animation-delay: 0.2s;
} }
}
</style>
</head>
<body> @keyframes loading-grid {
<div id="app"> 0%,
<div class="loading-home"> 70%,
<div class="loading-grid"> 100% {
<div class="loading-cube"></div> transform: scale3D(1, 1, 1);
<div class="loading-cube"></div> }
<div class="loading-cube"></div> 35% {
<div class="loading-cube"></div> transform: scale3D(0, 0, 1);
<div class="loading-cube"></div> }
<div class="loading-cube"></div> }
<div class="loading-cube"></div> </style>
<div class="loading-cube"></div> </head>
<div class="loading-cube"></div>
<body>
<div id="app">
<div class="loading-home">
<div class="loading-grid">
<div class="loading-cube"></div>
<div class="loading-cube"></div>
<div class="loading-cube"></div>
<div class="loading-cube"></div>
<div class="loading-cube"></div>
<div class="loading-cube"></div>
<div class="loading-cube"></div>
<div class="loading-cube"></div>
<div class="loading-cube"></div>
</div>
</div>
</div> </div>
</div> </body>
</div> </html>
</body>
</html>

2
package.json

@ -1,5 +1,5 @@
{ {
"name": "luenmei-operational-cockpit-ms", "name": "luen-mei-intelligence-energy-ms",
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"dev": "vite serve --mode development", "dev": "vite serve --mode development",

BIN
src/assets/images/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
src/assets/logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 33 KiB

6
src/lang/en.ts

@ -8,13 +8,13 @@ export default {
}, },
// 登录页面国际化 // 登录页面国际化
login: { login: {
title: 'Luenmei Operational Cockpit MS', title: 'Luen Mei Operational Cockpit MS',
username: 'Username', username: 'Username',
password: 'Password', password: 'Password',
login: 'Login', login: 'Login',
verifyCode: 'Verify Code', verifyCode: 'Verify Code',
group: 'Luenmei Smart Energy Technology (Shenyang) Co., Ltd', group: 'Luen Mei Intelligence Energy Technology (Shenyang) Co., Ltd',
abbreviation: 'Luenmei Smart', abbreviation: 'Luen Mei Intelligence',
copyright: 'All Rights Reserved.' copyright: 'All Rights Reserved.'
}, },
// 导航栏国际化 // 导航栏国际化

2
src/lang/zh-cn.ts

@ -8,7 +8,7 @@ export default {
}, },
// 登录页面国际化 // 登录页面国际化
login: { login: {
title: '联美运营驾驶舱管理系统', title: '联美智慧能源管理系统',
username: '用户名', username: '用户名',
password: '密码', password: '密码',
login: '登 录', login: '登 录',

9
src/layout/components/Sidebar/Logo.vue

@ -7,7 +7,7 @@
</router-link> </router-link>
<router-link v-else key="expand" class="flex items-center justify-center width-100 height-100" to="/"> <router-link v-else key="expand" class="flex items-center justify-center width-100 height-100" to="/">
<img v-if="settingsStore.sidebarLogo" :src="logo" class="logoImg" /> <img v-if="settingsStore.sidebarLogo" :src="logo" class="logoImg" />
<span class="logoText">{{ settingsStore.title }}</span> <!-- <span class="logoText">{{ settingsStore.title }}</span> -->
</router-link> </router-link>
</transition> </transition>
</section> </section>
@ -27,12 +27,13 @@ const logo = ref(new URL(`../../../assets/logo.png`, import.meta.url).href);
<style lang="scss" scoped> <style lang="scss" scoped>
.logo { .logo {
height: 50px; padding: 1.5rem 2rem 0.5rem 2rem;
background-color: $menuBg; background-color: $menuBg;
.logoImg { .logoImg {
width: 1.5rem; display: block;
height: 1.5rem; width: 100%;
height: auto;
} }
.logoText { .logoText {

4
src/settings.ts

@ -50,7 +50,7 @@ interface DefaultSettings {
} }
const defaultSettings: DefaultSettings = { const defaultSettings: DefaultSettings = {
title: '联美运营驾驶舱管理系统', title: '联美智慧能源管理系统',
showSettings: true, showSettings: true,
tagsView: true, tagsView: true,
fixedHeader: false, fixedHeader: false,
@ -69,4 +69,4 @@ const defaultSettings: DefaultSettings = {
language: 'zh-cn' // zh-cn| en language: 'zh-cn' // zh-cn| en
}; };
export default defaultSettings; export default defaultSettings;

6
src/types/auto-imports.d.ts

@ -2,11 +2,8 @@
export {} export {}
declare global { declare global {
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElForm: typeof import('element-plus/es')['ElForm']
const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessage: typeof import('element-plus/es')['ElMessage']
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const ElNotification: typeof import('element-plus/es')['ElNotification']
const NEllipsis: typeof import('naive-ui')['NEllipsis']
const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
const autoResetRef: typeof import('@vueuse/core')['autoResetRef'] const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
const computed: typeof import('vue')['computed'] const computed: typeof import('vue')['computed']
@ -273,11 +270,8 @@ import { UnwrapRef } from 'vue'
declare module 'vue' { declare module 'vue' {
interface ComponentCustomProperties { interface ComponentCustomProperties {
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']> readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
readonly ElForm: UnwrapRef<typeof import('element-plus/es')['ElForm']>
readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']> readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']> readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
readonly ElNotification: UnwrapRef<typeof import('element-plus/es')['ElNotification']>
readonly NEllipsis: UnwrapRef<typeof import('naive-ui')['NEllipsis']>
readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']> readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']> readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>
readonly computed: UnwrapRef<typeof import('vue')['computed']> readonly computed: UnwrapRef<typeof import('vue')['computed']>

Loading…
Cancel
Save