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:
@@ -1,18 +1,16 @@
|
||||
import { computed, inject, provide, type ComputedRef, type InjectionKey } from 'vue'
|
||||
import { computed, inject, provide, type InjectionKey } from 'vue'
|
||||
import { useConfigStore } from '@/store/configStore'
|
||||
import {
|
||||
getProjectBaleLink,
|
||||
getProjectSupportPhoneLink,
|
||||
isBoursecuProject,
|
||||
} from '@/utils/config'
|
||||
import { getRulesBlocks, getRulesTitle, type RulesBlock } from '../rulesContent'
|
||||
|
||||
export interface RulesPageContext {
|
||||
config: ReturnType<typeof useConfigStore>
|
||||
nameProject: ComputedRef<string>
|
||||
isBoursecu: ComputedRef<boolean>
|
||||
rulesTitle: ComputedRef<string>
|
||||
rulesBlocks: ComputedRef<RulesBlock[]>
|
||||
nameProject: ReturnType<typeof computed<string>>
|
||||
rulesTitle: ReturnType<typeof computed<string>>
|
||||
rulesBlocks: ReturnType<typeof computed<RulesBlock[]>>
|
||||
getProjectSupportPhoneLink: typeof getProjectSupportPhoneLink
|
||||
getProjectBaleLink: typeof getProjectBaleLink
|
||||
}
|
||||
@@ -26,16 +24,13 @@ export function useRulesPage() {
|
||||
() => config.config?.name_fa || config.config?.name || 'بورس مس',
|
||||
)
|
||||
|
||||
const isBoursecu = computed(() => isBoursecuProject())
|
||||
const rulesTitle = computed(() => getRulesTitle(nameProject.value, true))
|
||||
|
||||
const rulesTitle = computed(() => getRulesTitle(nameProject.value, isBoursecu.value))
|
||||
|
||||
const rulesBlocks = computed(() => getRulesBlocks(nameProject.value, isBoursecu.value))
|
||||
const rulesBlocks = computed(() => getRulesBlocks(nameProject.value, true))
|
||||
|
||||
const context: RulesPageContext = {
|
||||
config,
|
||||
nameProject,
|
||||
isBoursecu,
|
||||
rulesTitle,
|
||||
rulesBlocks,
|
||||
getProjectSupportPhoneLink,
|
||||
|
||||
Reference in New Issue
Block a user