Port modular price, product, and PWA fixes into boursecu
Sync live quote handling, SSE product images, store hours, file URL normalization, PWA icon cache, TV monitor, about software, SuperAdmin menu gates, price alerts, and related UX from modular while preserving boursecu branding and config constraints. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { getBoursecuActionIconSrc } from '@/utils/config'
|
||||
import { openGoldDayCalculator } from '@/composables/useGoldDayCalculator'
|
||||
import type { HomeQuickActionItem } from '../types'
|
||||
|
||||
export const boursecuQuickActions: HomeQuickActionItem[] = [
|
||||
@@ -44,4 +45,10 @@ export const boursecuQuickActions: HomeQuickActionItem[] = [
|
||||
iconSrc: getBoursecuActionIconSrc('convert'),
|
||||
route: { name: 'buyProduct' },
|
||||
},
|
||||
{
|
||||
id: 'calculator',
|
||||
label: 'محاسبهگر',
|
||||
icon: 'vuesax-linear:chart-2',
|
||||
handler: () => openGoldDayCalculator(),
|
||||
},
|
||||
]
|
||||
@@ -35,7 +35,13 @@ const resolvedActions = computed(() => {
|
||||
})
|
||||
|
||||
function handleClick(action: HomeQuickActionItem) {
|
||||
router.push(action.route)
|
||||
if (action.handler) {
|
||||
action.handler()
|
||||
return
|
||||
}
|
||||
if (action.route) {
|
||||
router.push(action.route)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -15,7 +15,8 @@ export interface HomeQuickActionItem {
|
||||
label: string
|
||||
icon: string
|
||||
iconSrc?: string
|
||||
route: { name: string; query?: Record<string, string> }
|
||||
route?: { name: string; query?: Record<string, string> }
|
||||
handler?: () => void
|
||||
}
|
||||
|
||||
export interface HomeLayoutSectionConfig {
|
||||
|
||||
Reference in New Issue
Block a user