Add Khanegi modular appearance editor and variant routing.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-09 12:58:44 +03:30
co-authored by Cursor
parent 8652e63ea6
commit be4931047d
5 changed files with 443 additions and 5 deletions
+10 -1
View File
@@ -18,6 +18,7 @@ type Tenant = {
nodeServer: string
notes?: string | null
hasAppUiConfig?: boolean
uiVariant?: 'modular' | 'newTheme'
}
const route = useRoute()
@@ -144,6 +145,9 @@ onMounted(load)
بررسی محصول
</a-tag>
<a-tag v-if="item.hasAppUiConfig" color="purple">ظاهر اپ</a-tag>
<a-tag v-if="product === 'khanegi'" :color="item.uiVariant === 'newTheme' ? 'geekblue' : 'cyan'">
{{ item.uiVariant === 'newTheme' ? 'New theme' : 'Modular' }}
</a-tag>
</div>
</div>
</div>
@@ -157,7 +161,12 @@ onMounted(load)
style="flex: 1"
@click="
router.push({
name: product === 'hamkar' ? 'version-ui-hamkar' : 'version-ui',
name:
product === 'hamkar'
? 'version-ui-hamkar'
: item.uiVariant === 'newTheme'
? 'version-ui'
: 'version-ui-modular',
params: { id: item.id },
})
"