feat: Regular monitoring page update [deploy]

This commit is contained in:
vben
2024-07-29 22:11:22 +08:00
parent 66fd052709
commit cd10eb9471
37 changed files with 491 additions and 261 deletions

View File

@@ -7,7 +7,7 @@ VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
VITE_COMPRESS=none
# 是否开启 PWA
VITE_PWA=false
VITE_PWA=true
# vue-router 的模式
VITE_ROUTER_HISTORY=hash

View File

@@ -1,7 +1,6 @@
<script lang="ts" setup>
import { computed } from 'vue';
import { GlobalProvider } from '@vben/common-ui';
import { useDesignTokens } from '@vben/hooks';
import { preferences, usePreferences } from '@vben/preferences';
@@ -26,17 +25,15 @@ const tokenTheme = computed(() => {
return {
algorithm,
token: antDesignTokens.value,
token: antDesignTokens,
};
});
</script>
<template>
<GlobalProvider>
<ConfigProvider :locale="antdLocale" :theme="tokenTheme">
<App>
<RouterView />
</App>
</ConfigProvider>
</GlobalProvider>
<ConfigProvider :locale="antdLocale" :theme="tokenTheme">
<App>
<RouterView />
</App>
</ConfigProvider>
</template>

View File

@@ -3,7 +3,7 @@ import { computed, ref } from 'vue';
import { useRouter } from 'vue-router';
import { AuthenticationLoginExpiredModal } from '@vben/common-ui';
import { LOGIN_PATH } from '@vben/constants';
import { LOGIN_PATH, VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants';
import { BookOpenText, CircleHelp, MdiGithub } from '@vben/icons';
import {
BasicLayout,
@@ -57,7 +57,7 @@ const showDot = computed(() =>
const menus = computed(() => [
{
handler: () => {
openWindow('https://github.com/vbenjs/vue-vben-admin', {
openWindow(VBEN_DOC_URL, {
target: '_blank',
});
},
@@ -66,7 +66,7 @@ const menus = computed(() => [
},
{
handler: () => {
openWindow('https://github.com/vbenjs/vue-vben-admin', {
openWindow(VBEN_GITHUB_URL, {
target: '_blank',
});
},
@@ -75,7 +75,7 @@ const menus = computed(() => [
},
{
handler: () => {
openWindow('https://github.com/vbenjs/vue-vben-admin/issues', {
openWindow(`${VBEN_GITHUB_URL}/issues`, {
target: '_blank',
});
},

View File

@@ -1,6 +1,6 @@
import type { RouteRecordRaw } from 'vue-router';
import { VBEN_GITHUB_URL, VBEN_LOGO_URL } from '@vben/constants';
import { VBEN_DOC_URL, VBEN_GITHUB_URL, VBEN_LOGO_URL } from '@vben/constants';
import { BasicLayout, IFrameView } from '#/layouts';
import { $t } from '#/locales';
@@ -35,7 +35,7 @@ const routes: RouteRecordRaw[] = [
component: IFrameView,
meta: {
icon: 'lucide:book-open-text',
iframeSrc: 'https://doc.vvbin.cn/',
iframeSrc: VBEN_DOC_URL,
keepAlive: true,
title: $t('page.vben.document'),
},