fix(plugins): show tenant domain and move store prices into a tab
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -7,6 +7,13 @@ import api from '@/api/http'
|
||||
import MoneyInput from '@/components/MoneyInput.vue'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
embedded?: boolean
|
||||
}>(),
|
||||
{ embedded: false },
|
||||
)
|
||||
|
||||
type PriceRow = {
|
||||
durationDays: number
|
||||
enabled: boolean
|
||||
@@ -109,8 +116,11 @@ onMounted(load)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="page-shell">
|
||||
<div style="display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px">
|
||||
<div :class="embedded ? 'catalog-embed' : 'page-shell'">
|
||||
<div
|
||||
v-if="!embedded"
|
||||
style="display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px"
|
||||
>
|
||||
<a-button type="text" @click="router.push({ name: 'plugin-panel' })">
|
||||
<ArrowRightOutlined />
|
||||
</a-button>
|
||||
@@ -122,6 +132,14 @@ onMounted(load)
|
||||
<PlusOutlined /> تنظیم جدید
|
||||
</a-button>
|
||||
</div>
|
||||
<div v-else class="catalog-embed-bar">
|
||||
<p class="catalog-hint">
|
||||
همهٔ کلیدهای تنظیمات خانگی سوپرادمین. مدت خاموش در ادمین ماژول دیده نمیشود.
|
||||
</p>
|
||||
<a-button v-if="canWrite" type="primary" size="small" @click="showCreate = true">
|
||||
<PlusOutlined /> تنظیم جدید
|
||||
</a-button>
|
||||
</div>
|
||||
|
||||
<a-spin :spinning="loading">
|
||||
<div class="catalog-grid">
|
||||
@@ -193,6 +211,21 @@ onMounted(load)
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.catalog-embed-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.catalog-hint {
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
min-width: 12rem;
|
||||
color: #64748b;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.catalog-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
|
||||
|
||||
Reference in New Issue
Block a user