Merge branch 'modular' of https://get.feep.ir/khaneghi_abshodeh/khaneghi_user into modular
Integrate remote logo changes with local SSE and wallet assets work.
This commit is contained in:
@@ -13,6 +13,7 @@ import bazretalaLoginLogo from '@/assets/img/bazretala-login-logo.png'
|
||||
import bazretalaNavLogo from '@/assets/img/bazretala-nav-logo.png'
|
||||
import bazretalaFundBg from '@/assets/img/bazretala-fund-bg.png'
|
||||
import bazretalaEmptyFund from '@/assets/img/bazretala-empty-fund.png'
|
||||
import soroushgoldLoginLogo from '@/assets/img/soroushgold-login-logo.png'
|
||||
|
||||
export function getConfigApp(key: string) {
|
||||
const config = window.__APP_CONFIG__ ? window.__APP_CONFIG__.user:{}
|
||||
@@ -31,6 +32,10 @@ export function isBazretalaProject() {
|
||||
return getConfigApp('name') === 'bazretala'
|
||||
}
|
||||
|
||||
export function isSoroushgoldProject() {
|
||||
return getConfigApp('name') === 'soroushgold'
|
||||
}
|
||||
|
||||
export function getBoursecuTransactionsIcon() {
|
||||
return boursecuTransactionsIcon
|
||||
}
|
||||
@@ -116,6 +121,14 @@ export function resolveProjectColor(color?: string | null) {
|
||||
return color
|
||||
}
|
||||
|
||||
/** لوگوی پنل برند لاگین دسکتاپ — فقط soroushgold لوگوی اختصاصی دارد */
|
||||
export function getProjectDesktopLoginBrandLogo(avatar?: string | null) {
|
||||
if (isSoroushgoldProject()) {
|
||||
return soroushgoldLoginLogo
|
||||
}
|
||||
return getProjectSplashLogo(avatar)
|
||||
}
|
||||
|
||||
export function getProjectLoginLogo(avatar?: string | null) {
|
||||
if (isBoursecuProject()) {
|
||||
return boursecuLoginLogo
|
||||
@@ -149,6 +162,9 @@ export function getProjectMobileNavLogo(avatar?: string | null) {
|
||||
if (isBoursecuProject()) {
|
||||
return boursecuLoginLogo
|
||||
}
|
||||
if (isSoroushgoldProject()) {
|
||||
return soroushgoldLoginLogo
|
||||
}
|
||||
return getProjectNavLogo(avatar)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user