Merge branch 'main' into pages

This commit is contained in:
xiaoxian521
2026-01-28 08:18:17 +08:00
9 changed files with 316 additions and 300 deletions

View File

@@ -127,7 +127,7 @@
"@types/dagre": "^0.7.53", "@types/dagre": "^0.7.53",
"@types/intro.js": "^5.1.5", "@types/intro.js": "^5.1.5",
"@types/js-cookie": "^3.0.6", "@types/js-cookie": "^3.0.6",
"@types/node": "^20.19.29", "@types/node": "^20.19.30",
"@types/nprogress": "^0.2.3", "@types/nprogress": "^0.2.3",
"@types/path-browserify": "^1.0.3", "@types/path-browserify": "^1.0.3",
"@types/qrcode": "^1.5.6", "@types/qrcode": "^1.5.6",
@@ -154,16 +154,16 @@
"rimraf": "^6.1.2", "rimraf": "^6.1.2",
"rollup-plugin-visualizer": "^6.0.5", "rollup-plugin-visualizer": "^6.0.5",
"sass": "^1.97.2", "sass": "^1.97.2",
"stylelint": "^16.26.1", "stylelint": "^17.0.0",
"stylelint-config-recess-order": "^7.4.0", "stylelint-config-recess-order": "^7.4.0",
"stylelint-config-recommended-vue": "^1.6.1", "stylelint-config-recommended-vue": "^1.6.1",
"stylelint-config-standard-scss": "^14.0.0", "stylelint-config-standard-scss": "^17.0.0",
"stylelint-prettier": "^5.0.3", "stylelint-prettier": "^5.0.3",
"svgo": "^4.0.0", "svgo": "^4.0.0",
"tailwindcss": "^4.1.18", "tailwindcss": "^4.1.18",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"typescript-eslint": "^8.53.0", "typescript-eslint": "^8.53.0",
"unplugin-icons": "^22.5.0", "unplugin-icons": "^23.0.1",
"vite": "^7.3.1", "vite": "^7.3.1",
"vite-plugin-cdn-import": "^1.0.1", "vite-plugin-cdn-import": "^1.0.1",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",

574
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,12 +7,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { useRouter } from "vue-router";
import { useGlobal } from "@pureadmin/utils"; import { useGlobal } from "@pureadmin/utils";
import { checkVersion } from "version-rocket"; import { checkVersion } from "version-rocket";
import { defineComponent, computed } from "vue"; import { defineComponent, computed } from "vue";
import { ElConfigProvider } from "element-plus"; import { ElConfigProvider } from "element-plus";
import { ReDialog } from "@/components/ReDialog"; import { ReDialog, closeAllDialog } from "@/components/ReDialog";
import { ReDrawer } from "@/components/ReDrawer"; import { ReDrawer, closeAllDrawer } from "@/components/ReDrawer";
import en from "element-plus/es/locale/lang/en"; import en from "element-plus/es/locale/lang/en";
import zhCn from "element-plus/es/locale/lang/zh-cn"; import zhCn from "element-plus/es/locale/lang/zh-cn";
import plusEn from "plus-pro-components/es/locale/lang/en"; import plusEn from "plus-pro-components/es/locale/lang/en";
@@ -27,12 +28,19 @@ export default defineComponent({
ReDrawer ReDrawer
}, },
setup() { setup() {
const router = useRouter();
const { $storage } = useGlobal<GlobalPropertiesApi>(); const { $storage } = useGlobal<GlobalPropertiesApi>();
const currentLocale = computed(() => { const currentLocale = computed(() => {
return $storage.locale?.locale === "zh" return $storage.locale?.locale === "zh"
? { ...zhCn, ...plusZhCn } ? { ...zhCn, ...plusZhCn }
: { ...en, ...plusEn }; : { ...en, ...plusEn };
}); });
router.beforeEach(() => {
closeAllDialog();
closeAllDrawer();
});
return { return {
currentLocale currentLocale
}; };

View File

@@ -174,7 +174,7 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
} }
.translation { .translation {
::v-deep(.el-dropdown-menu__item) { :deep(.el-dropdown-menu__item) {
padding: 5px 40px; padding: 5px 40px;
} }
@@ -192,7 +192,7 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
.logout { .logout {
width: 120px; width: 120px;
::v-deep(.el-dropdown-menu__item) { :deep(.el-dropdown-menu__item) {
display: inline-flex; display: inline-flex;
flex-wrap: wrap; flex-wrap: wrap;
min-width: 100%; min-width: 100%;

View File

@@ -159,7 +159,7 @@ onMounted(() => {
} }
.translation { .translation {
::v-deep(.el-dropdown-menu__item) { :deep(.el-dropdown-menu__item) {
padding: 5px 40px; padding: 5px 40px;
} }
@@ -177,7 +177,7 @@ onMounted(() => {
.logout { .logout {
width: 120px; width: 120px;
::v-deep(.el-dropdown-menu__item) { :deep(.el-dropdown-menu__item) {
display: inline-flex; display: inline-flex;
flex-wrap: wrap; flex-wrap: wrap;
min-width: 100%; min-width: 100%;

View File

@@ -180,7 +180,7 @@ watch(
} }
.translation { .translation {
::v-deep(.el-dropdown-menu__item) { :deep(.el-dropdown-menu__item) {
padding: 5px 40px; padding: 5px 40px;
} }
@@ -198,7 +198,7 @@ watch(
.logout { .logout {
width: 120px; width: 120px;
::v-deep(.el-dropdown-menu__item) { :deep(.el-dropdown-menu__item) {
display: inline-flex; display: inline-flex;
flex-wrap: wrap; flex-wrap: wrap;
min-width: 100%; min-width: 100%;

View File

@@ -171,7 +171,7 @@ onBeforeUnmount(() => {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep(.el-upload-dragger) { :deep(.el-upload-dragger) {
display: flex; display: flex;
align-items: center; align-items: center;
height: 180px; height: 180px;

View File

@@ -71,17 +71,17 @@ const settingTB: ContextProps = reactive({
.dv-a { .dv-a {
padding-top: 30vh; padding-top: 30vh;
color: rgba($color: dodgerblue, $alpha: 80%); color: rgb(30 144 255 / 80%);
} }
.dv-b { .dv-b {
padding-top: 10vh; padding-top: 10vh;
color: rgba($color: #000, $alpha: 80%); color: rgb(0 0 0 / 80%);
} }
.dv-c { .dv-c {
padding-top: 18vh; padding-top: 18vh;
color: rgba($color: #ce272d, $alpha: 80%); color: rgb(206 39 45 / 80%);
} }
} }
</style> </style>

View File

@@ -368,7 +368,7 @@ watch(loginDay, value => {
} }
.translation { .translation {
::v-deep(.el-dropdown-menu__item) { :deep(.el-dropdown-menu__item) {
padding: 5px 40px; padding: 5px 40px;
} }