1405/04/25

-
This commit is contained in:
2026-07-16 11:17:18 +03:30
parent 51e3c3f0cb
commit 12382656e8
42 changed files with 639 additions and 112 deletions
+18 -12
View File
@@ -3,14 +3,7 @@
<transition mode="out-in" name="fade">
<AConfigProvider
v-if="!showSplash"
:theme="{
token: {
colorPrimary: colors.primary,
colorLink: colors.primary,
colorLinkActive: colors.primary,
colorLinkHover: colors['primary-rgba']
}
}"
:theme="antDesignTheme"
direction="rtl"
>
<router-view v-slot="{ Component, route }">
@@ -68,10 +61,9 @@
</template>
<script lang="ts" setup>
import { colors } from './themeConfig'
import pkg from '../package.json'
import { getDisplayAppVersion } from '@/config/config-cache'
import { computed, defineAsyncComponent, h, onMounted, ref } from 'vue'
import pkg from '../package.json'
import img_topGradiant from '@/views/login/assets/img/gr_top_white.svg'
import img_pattern from '@/views/login/assets/img/pattern.svg'
import { LoadingOutlined } from '@ant-design/icons-vue'
@@ -83,6 +75,7 @@ import {
} from '@/utils/supportMessenger'
import { useDraggableFloatingButton } from '@/utils/useDraggableFloatingButton'
import { useApplyDesktopLayoutClass } from '@/layouts/composables/useAppLayout'
import { getProjectBranding } from '@/utils/project'
import img_bottomGradiant from '@/views/login/assets/img/gr_bottom_white.svg'
import logoFull from '@/assets/img/logo_full_.png'
@@ -100,6 +93,19 @@ const indicator = h(LoadingOutlined, {
const displayVersion = getDisplayAppVersion(pkg.version)
const showSplash = ref(true)
const antDesignTheme = computed(() => {
const primary = getProjectBranding().accentColor
return {
token: {
colorPrimary: primary,
colorLink: primary,
colorLinkActive: primary,
colorLinkHover: primary,
},
}
})
useApplyDesktopLayoutClass()
const supportLink = computed(() =>
@@ -141,7 +147,7 @@ const supportAccentColor = computed(() => {
case 'soroush':
return '#2563eb'
default:
return colors.primary || '#334155'
return getProjectBranding().accentColor
}
})
@@ -181,7 +187,7 @@ onMounted(async () => {
<style lang="less">
.updateButton .van-dialog__confirm .van-button__text {
color: @primary-color !important;
color: @theme-primary !important;
font-weight: 600;
font-size: 15px;
}