Make boursecu branch boursecu-only and simplify app loading.
Remove multi-tenant branches and default views, show logo-only boot and splash screens, and polish boursecu transactions tab styling. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+3
-51
@@ -11,42 +11,13 @@
|
||||
</div>
|
||||
<AConfigProvider :theme="antTheme ?? undefined" direction="rtl">
|
||||
<div v-if="showSplash" class="app-splash-screen flex justify-center" :style="{ backgroundColor: getProjectSplashBackground() }">
|
||||
<template v-if="!isBoursecuProject()">
|
||||
<div class="app-splash-screen__gradient app-splash-screen__gradient--top h-1/3 flex">
|
||||
<img :src="img_topGradiant" alt="" class="absolute z-10 w-full h-full object-cover"/>
|
||||
<img :src="img_pattern" alt="" class="absolute w-full h-full object-none"/>
|
||||
</div>
|
||||
<div class="app-splash-screen__gradient app-splash-screen__gradient--bottom h-1/3">
|
||||
<img
|
||||
:src="img_bottomGradiant"
|
||||
alt=""
|
||||
class="absolute z-10 w-full h-full object-cover"
|
||||
/>
|
||||
<img :src="img_pattern" alt="" class="absolute w-full h-full object-none"/>
|
||||
</div>
|
||||
</template>
|
||||
<div class="self-center splash_appear_fade_in">
|
||||
<img
|
||||
:src="getProjectSplashLogo(config?.config?.avatar)"
|
||||
:class="isBoursecuProject()
|
||||
? 'w-[min(72vw,280px)] h-auto object-contain'
|
||||
: hasCustomLoginLogoLayout()
|
||||
? 'w-[80vw] max-w-[320px] h-auto object-contain'
|
||||
: 'h-[20vh] object-contain'"
|
||||
class="w-[min(72vw,280px)] h-auto object-contain"
|
||||
alt=""
|
||||
>
|
||||
</div>
|
||||
<div class="fixed w-full bottom-5 home_appear_fade_in_up">
|
||||
<div
|
||||
class="text-center text-xs"
|
||||
:class="isBoursecuProject() ? 'text-white' : ''"
|
||||
>
|
||||
نسخه: {{ displayVersion }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="absolute bottom-10">
|
||||
<a-spin :indicator="splashIndicator" size="small"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else class="app-main">
|
||||
@@ -90,16 +61,10 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import pkg from '../package.json'
|
||||
import { getDisplayAppVersion } from '@/config/config-cache'
|
||||
import {computed, defineAsyncComponent, h, onMounted, ref, watch} from 'vue'
|
||||
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'
|
||||
import img_bottomGradiant from '@/views/login/assets/img/gr_bottom_white.svg'
|
||||
import {computed, defineAsyncComponent, onMounted, ref, watch} from 'vue'
|
||||
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
|
||||
import {useConfigStore} from "@/store/configStore";
|
||||
import {getProjectFontFamily, getProjectSplashBackground, getProjectSplashLogo, getProjectBrandRed, getProjectPrimaryColor, hasCustomLoginLogoLayout, isBoursecuProject, resetAppSurfaceBackground} from "@/utils/config";
|
||||
import {getProjectFontFamily, getProjectSplashBackground, getProjectSplashLogo, getProjectBrandRed, getProjectPrimaryColor, resetAppSurfaceBackground} from "@/utils/config";
|
||||
import {ConfigProvider as AConfigProvider} from 'ant-design-vue'
|
||||
import BasicIcon from "@/components/BasicPacks/BasicIcon.vue";
|
||||
import { useApplyDesktopLayoutClass, useDesktopBreakpoint } from '@/layouts/composables/useAppLayout'
|
||||
@@ -126,24 +91,11 @@ const showDesktopFloatingCredit = computed(() => {
|
||||
return route.name === 'login' || !!route.meta.hideMenu
|
||||
})
|
||||
|
||||
const displayVersion = getDisplayAppVersion(pkg.version)
|
||||
const config = useConfigStore()
|
||||
const splashIndicator = computed(() => h(LoadingOutlined, {
|
||||
style: {
|
||||
fontSize: '24px',
|
||||
color: isBoursecuProject() ? '#ffffff' : undefined,
|
||||
},
|
||||
spin: true
|
||||
}))
|
||||
const showSplash = ref(true)
|
||||
const popVisible = ref(false)
|
||||
|
||||
// const GAROOSI_SUPPORT_URL = 'https://ble.ir/garoosigallery'
|
||||
|
||||
const supportLink = computed(() => {
|
||||
// if (config.config?.name === 'garoosi') {
|
||||
// return GAROOSI_SUPPORT_URL
|
||||
// }
|
||||
return buildSupportMessengerUrl(
|
||||
supportMessengerSettings.value.messenger,
|
||||
supportMessengerSettings.value.messengerId
|
||||
|
||||
Reference in New Issue
Block a user