Browse Source

chore: replace

main
刘凯 1 year ago
parent
commit
6a3e707741
  1. 2
      .env
  2. 4
      build/vite/plugin/index.ts
  3. 2
      package.json
  4. BIN
      public/favicon.ico
  5. BIN
      public/resource/img/logo.png
  6. BIN
      public/resource/img/pwa-192x192.png
  7. BIN
      public/resource/img/pwa-512x512.png
  8. 2
      src/design/var/index.less
  9. 2
      src/settings/designSetting.ts
  10. 21
      src/views/base/login/LoginForm.vue

2
.env

@ -2,7 +2,7 @@
VITE_PORT = 3000
# 网站标题
VITE_GLOB_APP_TITLE = Fast Iot Web
VITE_GLOB_APP_TITLE = 大白充电
# 简称,用于配置文件名字 不要出现空格、数字开头等特殊字符
VITE_GLOB_APP_SHORT_NAME = FAST_IOT_Admin

4
build/vite/plugin/index.ts

@ -2,7 +2,6 @@ import type { PluginOption } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import UnoCSS from 'unocss/vite'
import { configPwaConfig } from './pwa'
import { configHtmlPlugin } from './html'
import { configCompressPlugin } from './compress'
import { configVisualizerConfig } from './visualizer'
@ -33,9 +32,6 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
if (isBuild) {
// rollup-plugin-gzip
vitePlugins.push(configCompressPlugin(VITE_BUILD_COMPRESS, VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE))
// vite-plugin-pwa
vitePlugins.push(configPwaConfig(viteEnv))
}
return vitePlugins

2
package.json

@ -1,5 +1,5 @@
{
"name": "fast-iot-web",
"name": "charing-web",
"type": "module",
"version": "0.1.0-beta.0",
"packageManager": "pnpm@8.10.0",

BIN
public/favicon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
public/resource/img/logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 KiB

After

Width:  |  Height:  |  Size: 26 KiB

BIN
public/resource/img/pwa-192x192.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
public/resource/img/pwa-512x512.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

2
src/design/var/index.less

@ -2,7 +2,7 @@
@import "easing";
@import "breakpoint";
@namespace: fast-iot;
@namespace: charing;
// tabs
@multiple-height: 30px;

2
src/settings/designSetting.ts

@ -1,6 +1,6 @@
import { ThemeEnum } from '../enums/appEnum'
export const prefixCls = 'fast-iot'
export const prefixCls = 'charing'
export const multipleTabHeight = 30

21
src/views/base/login/LoginForm.vue

@ -1,6 +1,6 @@
<script lang="ts" setup>
import { computed, reactive, ref, unref } from 'vue'
import { Col, Form, Input, Row } from 'ant-design-vue'
import { Form, Input } from 'ant-design-vue'
import { useAsyncState } from '@vueuse/core'
import CryptoJS from 'crypto-js'
import { LoadingOutlined } from '@ant-design/icons-vue'
@ -21,7 +21,7 @@ const { notification, createErrorModal } = useMessage()
const { prefixCls } = useDesign('login')
const userStore = useUserStore()
const { setLoginState, getLoginState } = useLoginState()
const { getLoginState } = useLoginState()
const { getFormRules } = useFormRules()
const formRef = ref()
@ -108,23 +108,6 @@ const { state: captcha, execute: refreshCaptcha, isLoading: isLoadingCaptcha } =
</div>
</FormItem>
<Row class="enter-x">
<Col :span="12">
<FormItem>
<a-button type="link" size="small" @click="setLoginState(LoginStateEnum.REGISTER)">
{{ t('sys.login.registerButton') }}
</a-button>
</FormItem>
</Col>
<Col :span="12">
<FormItem :style="{ 'text-align': 'right' }">
<a-button type="link" size="small" @click="setLoginState(LoginStateEnum.RESET_PASSWORD)">
{{ t('sys.login.forgetPassword') }}
</a-button>
</FormItem>
</Col>
</Row>
<FormItem class="enter-x">
<a-button type="primary" size="large" block :loading="loading" @click="handleLogin">
{{ t('sys.login.loginButton') }}

Loading…
Cancel
Save