@saasicat/ui-vue 0.19.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{catalog-JXdKdIqG.d.cts → catalog-DJcfm5N2.d.cts} +21 -7
- package/dist/{catalog-JXdKdIqG.d.ts → catalog-DJcfm5N2.d.ts} +21 -7
- package/dist/{chunk-DPTIOQXX.js → chunk-F7NRM6KI.js} +56 -28
- package/dist/{chunk-RVG6LQHL.js → chunk-LY52T4N4.js} +21 -2
- package/dist/{chunk-ORX3ZG47.js → chunk-XMMFN2WJ.js} +74 -3
- package/dist/client/index.cjs +134 -29
- package/dist/client/index.d.cts +53 -3
- package/dist/client/index.d.ts +53 -3
- package/dist/client/index.js +14 -2
- package/dist/index.cjs +321 -162
- package/dist/index.d.cts +30 -8
- package/dist/index.d.ts +30 -8
- package/dist/index.js +176 -133
- package/dist/quasar/index.cjs +78 -29
- package/dist/quasar/index.d.cts +2 -2
- package/dist/quasar/index.d.ts +2 -2
- package/dist/quasar/index.js +6 -2
- package/dist/testing-e2e/admin-pages-suite.d.cts +37 -0
- package/dist/testing-e2e/admin-pages-suite.d.ts +37 -0
- package/dist/{use-super-admin-i18n-BlqcD0N7.d.ts → use-super-admin-i18n-CHNdsSlm.d.ts} +34 -7
- package/dist/{use-super-admin-i18n-1nCOkvgi.d.cts → use-super-admin-i18n-CgTuNi8h.d.cts} +34 -7
- package/package.json +18 -8
- package/src/client/i18n/messages/bundles.ts +0 -2
- package/src/client/i18n/messages/common.ts +24 -0
- package/src/client/i18n/messages/discovery.ts +2 -2
- package/src/client/i18n/messages/marketing.ts +2 -4
- package/src/client/i18n/messages/plan-detail.ts +0 -4
- package/src/client/i18n/messages/plans.ts +20 -8
- package/src/client/i18n/messages/tenants.ts +0 -2
- package/src/client/index.ts +1 -0
- package/src/client/manifest-loader.ts +1 -1
- package/src/client/resolve-plans.ts +144 -0
- package/src/components/BundleVersionPublishDialog.vue +6 -6
- package/src/components/KvBlock.vue +4 -4
- package/src/components/MarketingPromotionsTab.vue +34 -48
- package/src/components/MfaPromptDialog.vue +8 -2
- package/src/components/TenantActionConfirmDialog.vue +4 -4
- package/src/components/VersionDiffPreview.vue +7 -7
- package/src/components/admin-page/AdminBody.vue +40 -0
- package/src/components/admin-page/AdminFilters.vue +12 -0
- package/src/components/admin-page/AdminHero.vue +49 -0
- package/src/components/admin-page/AdminKpi.vue +84 -0
- package/src/components/admin-page/AdminPage.vue +16 -0
- package/src/components/admin-page/AdminPaginator.vue +195 -0
- package/src/components/admin-page/AdminRefreshBtn.vue +39 -0
- package/src/components/admin-page/AdminSection.vue +53 -0
- package/src/components/admin-page/AdminStatistics.vue +40 -0
- package/src/components/admin-page/AdminTable.vue +175 -0
- package/src/components/bundle-editor/BundleCreatePanel.vue +23 -23
- package/src/components/bundle-editor/BundleFeaturesEditor.vue +7 -7
- package/src/components/bundle-editor/BundlePlanCompatPicker.vue +9 -9
- package/src/components/bundle-editor/BundleQuotasEditor.vue +11 -11
- package/src/components/bundle-editor/BundleStatusBanner.vue +6 -6
- package/src/components/bundle-editor/BundleVersionInlineEditor.vue +18 -18
- package/src/components/bundle-editor/BundleVersionStrip.vue +12 -12
- package/src/components/dialogs/PilotCreateDialog.vue +12 -12
- package/src/components/dialogs/PilotEditDialog.vue +7 -7
- package/src/components/dialogs/PromoCodeCreateDialog.vue +8 -8
- package/src/components/dialogs/PromoCodeDialogFields.vue +33 -19
- package/src/components/dialogs/PromoCodeEditDialog.vue +10 -10
- package/src/components/plan/PlanGrid.vue +1 -1
- package/src/components/plan-create-dialog/PlanCreateDialog.vue +34 -46
- package/src/components/plan-detail/PlanAuditLog.vue +7 -8
- package/src/components/plan-detail/PlanDetail.vue +95 -292
- package/src/components/plan-detail/PlanDetailKpis.vue +22 -27
- package/src/components/plan-detail/PlanTitleEdit.vue +133 -0
- package/src/components/plan-detail/PlanVersionDiffPanel.vue +5 -8
- package/src/components/plan-detail/PlanVersionsPanel.vue +9 -11
- package/src/components/plan-list/PlanList.vue +206 -457
- package/src/components/plan-matrix/PlanMatrix.vue +66 -183
- package/src/components/plan-review/PlanReview.vue +191 -275
- package/src/components/plan-version-editor/PlanCatalogPreview.vue +7 -5
- package/src/components/plan-version-editor/PlanVersionEditor.vue +200 -295
- package/src/components/plan-version-editor/PlanVersionEditorHeader.vue +23 -55
- package/src/index.ts +1 -0
- package/src/pages-standard/AdminLayout.vue +38 -12
- package/src/pages-standard/AdminManifestErrorPage.vue +79 -9
- package/src/pages-standard/AuditPage.vue +65 -109
- package/src/pages-standard/BundlesPage.vue +146 -179
- package/src/pages-standard/DashboardPage.vue +59 -154
- package/src/pages-standard/DiscoveryPage.vue +172 -227
- package/src/pages-standard/EmailHistoryPage.vue +118 -159
- package/src/pages-standard/MarketingCatalogPage.vue +399 -440
- package/src/pages-standard/PilotsPage.vue +69 -117
- package/src/pages-standard/PlansPage.vue +240 -112
- package/src/pages-standard/PlatformEmailPage.vue +56 -91
- package/src/pages-standard/PromoCodeDetailPage.vue +49 -74
- package/src/pages-standard/PromoCodesPage.vue +95 -128
- package/src/pages-standard/SubscriptionsPage.vue +19 -52
- package/src/pages-standard/SuperAdminLoginPage.vue +12 -12
- package/src/pages-standard/SuperAdminSetupWizard.vue +22 -18
- package/src/pages-standard/TenantDetailPage.vue +100 -191
- package/src/pages-standard/TenantsPage.vue +190 -295
- package/src/pages-standard/UsersPage.vue +89 -157
- package/src/pages-standard/bundles-page/BundleAccordionList.vue +20 -17
- package/src/pages-standard/bundles-page/BundlesKpis.vue +13 -22
- package/src/pages-standard/bundles-page/BundlesToolbar.vue +63 -0
- package/src/pages-standard/discovery-page/CatalogEntryTransPanel.vue +10 -10
- package/src/pages-standard/discovery-page/DiscoveryCapList.vue +5 -5
- package/src/pages-standard/discovery-page/DiscoveryFeatureCard.vue +16 -16
- package/src/pages-standard/discovery-page/DiscoveryKpis.vue +31 -27
- package/src/pages-standard/discovery-page/DiscoveryQuotaCard.vue +7 -7
- package/src/pages-standard/marketing-catalog/MarketingCatalogAdmin.vue +111 -73
- package/src/pages-standard/marketing-catalog/MarketingCatalogHeader.vue +43 -62
- package/src/pages-standard/marketing-catalog/MarketingCatalogPreview.vue +53 -35
- package/src/pages-standard/marketing-catalog/MarketingCatalogToolbar.vue +7 -7
- package/src/pages-standard/plan-versions/PlanDiffCard.vue +6 -6
- package/src/pages-standard/plan-versions/PlanVersionsDiff.vue +6 -6
- package/src/pages-standard/plan-versions/PlanVersionsTimeline.vue +16 -16
- package/src/pages-standard/plans-page/PlanBundleOverview.vue +14 -29
- package/src/pages-standard/plans-page/PlanPublishDialog.vue +1 -1
- package/src/pages-standard/plans-page/PlansPageToast.vue +6 -6
- package/src/pages-standard/sa-theme.css +552 -86
- package/src/pages-standard/tenant-detail/TenantMasterData.vue +28 -0
- package/src/pages-standard/tenant-detail/TenantUsage.vue +31 -0
- package/src/pages-standard/tenant-detail/TenantUsers.vue +15 -0
- package/src/pages-standard/tenant-detail/types.ts +38 -0
- package/src/pages-standard/tenants/StatusPill.vue +2 -2
- package/src/pages-tenant/MySubscriptionBundlesPage.vue +25 -25
- package/src/pages-tenant/OnboardingConfigurator.vue +1 -5
- package/src/pages-tenant/PackageSnapshotPanel.vue +1 -1
- package/src/pages-tenant/TenantPlanSection.vue +12 -20
- package/src/quasar/create-super-admin-app.ts +4 -0
- package/src/vue/entitlement-provider.ts +0 -1
- package/src/vue/feature-router-guard.ts +0 -1
- package/src/vue/super-admin-context.ts +106 -1
- package/src/vue/use-api-list.ts +2 -1
- package/src/vue/use-mfa-prompt.ts +72 -0
- package/src/vue/use-pagination.ts +63 -0
- package/src/vue/use-plans.ts +1 -2
- package/src/vue/use-sign-out.ts +90 -0
- package/src/vue/use-tenant-billing.ts +1 -1
- package/src/vue/use-tenant-manifest.ts +0 -1
- package/src/components/KpiCard.vue +0 -53
- package/src/components/plan-cockpit/PlanCockpit.vue +0 -1012
- package/src/components/plan-cockpit/PlanCockpitAuditLog.vue +0 -72
- package/src/components/plan-cockpit/PlanCockpitDiffPanel.vue +0 -100
- package/src/components/plan-cockpit/PlanCockpitHeader.vue +0 -101
- package/src/components/plan-cockpit/PlanCockpitImpactPanel.vue +0 -112
- package/src/components/plan-cockpit/PlanCockpitKpis.vue +0 -68
- package/src/components/plan-cockpit/PlanCockpitVersions.vue +0 -251
- package/src/components/plan-cockpit/types.ts +0 -72
- package/src/components/plan-detail/PlanDetailHeader.vue +0 -194
- package/src/pages-standard/bundles-page/BundlesHeader.vue +0 -68
- package/src/pages-standard/discovery-page/DiscoveryHeader.vue +0 -34
|
@@ -1,79 +1,60 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<div>
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class="
|
|
14
|
-
|
|
2
|
+
<div class="sa-marketing-head-actions">
|
|
3
|
+
<div class="sa-marketing-locale-mgr">
|
|
4
|
+
<span class="sa-marketing-locale-mgr-label">{{ msg.header.localesLabel }}</span>
|
|
5
|
+
<span
|
|
6
|
+
v-for="loc in activeLocaleSet"
|
|
7
|
+
:key="loc"
|
|
8
|
+
class="sa-marketing-locale-pill"
|
|
9
|
+
:class="{ active: loc === activeLocale }"
|
|
10
|
+
>
|
|
11
|
+
<button
|
|
12
|
+
type="button"
|
|
13
|
+
class="sa-marketing-locale-pill-btn"
|
|
14
|
+
@click="$emit('localeChange', loc)"
|
|
15
15
|
>
|
|
16
|
+
{{ loc.toUpperCase() }}
|
|
17
|
+
<span v-if="loc === defaultLocale" :title="msg.header.defaultLocale">★</span>
|
|
18
|
+
</button>
|
|
19
|
+
<button
|
|
20
|
+
v-if="loc !== defaultLocale"
|
|
21
|
+
type="button"
|
|
22
|
+
class="sa-marketing-locale-x"
|
|
23
|
+
:title="msg.header.deactivateLocale"
|
|
24
|
+
@click="$emit('removeLocale', loc)"
|
|
25
|
+
>
|
|
26
|
+
×
|
|
27
|
+
</button>
|
|
28
|
+
</span>
|
|
29
|
+
<div class="sa-marketing-locale-add-wrap">
|
|
30
|
+
<button
|
|
31
|
+
type="button"
|
|
32
|
+
class="sa-marketing-locale-add"
|
|
33
|
+
:disabled="addableLocales.length === 0"
|
|
34
|
+
@click="$emit('update:localePickerOpen', !localePickerOpen)"
|
|
35
|
+
>
|
|
36
|
+
{{ msg.header.addLocale }}
|
|
37
|
+
</button>
|
|
38
|
+
<div v-if="localePickerOpen" class="sa-marketing-locale-picker">
|
|
16
39
|
<button
|
|
40
|
+
v-for="l in addableLocales"
|
|
41
|
+
:key="l"
|
|
17
42
|
type="button"
|
|
18
|
-
class="
|
|
19
|
-
@click="$emit('
|
|
20
|
-
>
|
|
21
|
-
{{ loc.toUpperCase() }}
|
|
22
|
-
<span v-if="loc === defaultLocale" :title="msg.header.defaultLocale"
|
|
23
|
-
>★</span
|
|
24
|
-
>
|
|
25
|
-
</button>
|
|
26
|
-
<button
|
|
27
|
-
v-if="loc !== defaultLocale"
|
|
28
|
-
type="button"
|
|
29
|
-
class="mc-locale-x"
|
|
30
|
-
:title="msg.header.deactivateLocale"
|
|
31
|
-
@click="$emit('removeLocale', loc)"
|
|
32
|
-
>
|
|
33
|
-
×
|
|
34
|
-
</button>
|
|
35
|
-
</span>
|
|
36
|
-
<div class="mc-locale-add-wrap">
|
|
37
|
-
<button
|
|
38
|
-
type="button"
|
|
39
|
-
class="mc-locale-add"
|
|
40
|
-
:disabled="addableLocales.length === 0"
|
|
41
|
-
@click="$emit('update:localePickerOpen', !localePickerOpen)"
|
|
43
|
+
class="sa-marketing-locale-picker-row"
|
|
44
|
+
@click="$emit('addLocale', l)"
|
|
42
45
|
>
|
|
43
|
-
{{
|
|
46
|
+
{{ l.toUpperCase() }}
|
|
44
47
|
</button>
|
|
45
|
-
<div v-if="localePickerOpen" class="mc-locale-picker">
|
|
46
|
-
<button
|
|
47
|
-
v-for="l in addableLocales"
|
|
48
|
-
:key="l"
|
|
49
|
-
type="button"
|
|
50
|
-
class="mc-locale-picker-row"
|
|
51
|
-
@click="$emit('addLocale', l)"
|
|
52
|
-
>
|
|
53
|
-
{{ l.toUpperCase() }}
|
|
54
|
-
</button>
|
|
55
|
-
</div>
|
|
56
48
|
</div>
|
|
57
49
|
</div>
|
|
58
|
-
<button class="mc-btn" type="button" :disabled="busy" @click="$emit('reload')">
|
|
59
|
-
<svg
|
|
60
|
-
width="14"
|
|
61
|
-
height="14"
|
|
62
|
-
viewBox="0 0 24 24"
|
|
63
|
-
fill="none"
|
|
64
|
-
stroke="currentColor"
|
|
65
|
-
stroke-width="2"
|
|
66
|
-
>
|
|
67
|
-
<path d="M21 12a9 9 0 1 1-3-6.7M21 3v6h-6" />
|
|
68
|
-
</svg>
|
|
69
|
-
<span>{{ msg.header.refresh }}</span>
|
|
70
|
-
</button>
|
|
71
50
|
</div>
|
|
51
|
+
<AdminRefreshBtn :loading="busy" @refresh="$emit('reload')" />
|
|
72
52
|
</div>
|
|
73
53
|
</template>
|
|
74
54
|
|
|
75
55
|
<script setup lang="ts">
|
|
76
56
|
import { useSaMessages } from '../../vue/use-super-admin-i18n.js';
|
|
57
|
+
import AdminRefreshBtn from '../../components/admin-page/AdminRefreshBtn.vue';
|
|
77
58
|
|
|
78
59
|
defineProps<{
|
|
79
60
|
activeLocaleSet: string[];
|
|
@@ -1,75 +1,90 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<div class="
|
|
4
|
-
<span class="
|
|
5
|
-
<span class="
|
|
6
|
-
<span class="
|
|
7
|
-
<div class="
|
|
2
|
+
<div class="sa-marketing-window">
|
|
3
|
+
<div class="sa-marketing-chrome">
|
|
4
|
+
<span class="sa-marketing-chrome-dot" style="background: #ef4444" />
|
|
5
|
+
<span class="sa-marketing-chrome-dot" style="background: #f59e0b" />
|
|
6
|
+
<span class="sa-marketing-chrome-dot" style="background: #10b981" />
|
|
7
|
+
<div class="sa-marketing-chrome-url">{{ previewUrl }}</div>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="
|
|
10
|
-
<div class="
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
<div class="sa-marketing-canvas">
|
|
10
|
+
<div class="sa-marketing-eyebrow">{{ msg.preview.eyebrow }}</div>
|
|
11
|
+
<!-- Not a heading element: this is a picture of the public landing
|
|
12
|
+
page inside a browser mock-up, and assistive technology cannot
|
|
13
|
+
tell a mock-up from the document it is embedded in — a real
|
|
14
|
+
<h1> here would be a second page heading. -->
|
|
15
|
+
<div class="sa-marketing-hero">{{ msg.preview.hero }}</div>
|
|
16
|
+
<p class="sa-marketing-sub">{{ msg.preview.sub }}</p>
|
|
13
17
|
|
|
14
|
-
<div
|
|
18
|
+
<div
|
|
19
|
+
v-if="visibleRows.length === 0"
|
|
20
|
+
class="sa-marketing-banner sa-marketing-banner--info"
|
|
21
|
+
>
|
|
15
22
|
{{ msg.preview.emptyBefore }} <strong>{{ msg.tabs.admin }}</strong
|
|
16
23
|
>{{ msg.preview.emptyAfter }}
|
|
17
24
|
</div>
|
|
18
25
|
|
|
19
|
-
<div v-else class="
|
|
26
|
+
<div v-else class="sa-marketing-grid">
|
|
20
27
|
<div
|
|
21
28
|
v-for="row in visibleRows"
|
|
22
29
|
:key="row.plan.id"
|
|
23
|
-
class="
|
|
30
|
+
class="sa-marketing-card"
|
|
24
31
|
:class="{ featured: row.m.highlight, 'has-promo': !!promoOf(row) }"
|
|
25
32
|
>
|
|
26
33
|
<div
|
|
27
34
|
v-if="promoOf(row)"
|
|
28
|
-
class="
|
|
35
|
+
class="sa-marketing-promo-ribbon"
|
|
29
36
|
:style="{ background: promoColorOf(row) }"
|
|
30
37
|
>
|
|
31
38
|
{{ promoBadgeOf(row) }}
|
|
32
39
|
</div>
|
|
33
|
-
<span v-else-if="row.m.badge" class="
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
<span v-else-if="row.m.badge" class="sa-marketing-card-badge">{{
|
|
41
|
+
row.m.badge
|
|
42
|
+
}}</span>
|
|
43
|
+
<div class="sa-marketing-card-key">{{ row.plan.planKey }}</div>
|
|
44
|
+
<div class="sa-marketing-card-name">
|
|
36
45
|
{{ row.m.displayLabel || row.plan.label }}
|
|
37
46
|
</div>
|
|
38
|
-
<div class="
|
|
47
|
+
<div class="sa-marketing-card-desc">
|
|
39
48
|
{{ row.m.description || row.plan.description || '—' }}
|
|
40
49
|
</div>
|
|
41
50
|
|
|
42
|
-
<div class="
|
|
51
|
+
<div class="sa-marketing-card-price">
|
|
43
52
|
<template v-if="row.m.priceTag">
|
|
44
|
-
<span class="
|
|
53
|
+
<span class="sa-marketing-card-price-big" style="font-size: 22px">
|
|
45
54
|
{{ row.m.priceTag }}
|
|
46
55
|
</span>
|
|
47
56
|
</template>
|
|
48
57
|
<template v-else-if="!row.liveVersion">
|
|
49
|
-
<span class="
|
|
58
|
+
<span class="sa-marketing-card-price-big" style="font-size: 22px">
|
|
50
59
|
{{ msg.preview.priceOnRequest }}
|
|
51
60
|
</span>
|
|
52
61
|
</template>
|
|
53
62
|
<template v-else-if="promoResultOf(row)">
|
|
54
|
-
<span class="
|
|
63
|
+
<span class="sa-marketing-card-price-big">
|
|
55
64
|
{{ formatEuro(promoResultOf(row)?.discounted ?? 0) }}
|
|
56
65
|
</span>
|
|
57
|
-
<span class="
|
|
66
|
+
<span class="sa-marketing-card-price-unit">{{
|
|
67
|
+
msg.preview.perMonth
|
|
68
|
+
}}</span>
|
|
58
69
|
</template>
|
|
59
70
|
<template v-else>
|
|
60
|
-
<span class="
|
|
71
|
+
<span class="sa-marketing-card-price-big">
|
|
61
72
|
{{ formatEuro(monthlyOf(row)) }}
|
|
62
73
|
</span>
|
|
63
|
-
<span class="
|
|
74
|
+
<span class="sa-marketing-card-price-unit">{{
|
|
75
|
+
msg.preview.perMonth
|
|
76
|
+
}}</span>
|
|
64
77
|
</template>
|
|
65
78
|
</div>
|
|
66
|
-
<div v-if="promoResultOf(row)" class="
|
|
79
|
+
<div v-if="promoResultOf(row)" class="sa-marketing-card-price-strike">
|
|
67
80
|
<s>{{ formatEuro(promoResultOf(row)?.original ?? 0) }}</s>
|
|
68
|
-
<span class="
|
|
81
|
+
<span class="sa-marketing-price-regular">{{
|
|
82
|
+
msg.preview.regularPrice
|
|
83
|
+
}}</span>
|
|
69
84
|
</div>
|
|
70
85
|
<div
|
|
71
86
|
v-else-if="row.liveVersion && yearlyOf(row) > 0 && !row.m.priceTag"
|
|
72
|
-
class="
|
|
87
|
+
class="sa-marketing-card-price-y"
|
|
73
88
|
>
|
|
74
89
|
{{
|
|
75
90
|
formatMessage(msg.preview.orYearly, {
|
|
@@ -78,18 +93,21 @@
|
|
|
78
93
|
}}
|
|
79
94
|
</div>
|
|
80
95
|
|
|
81
|
-
<button type="button" class="
|
|
82
|
-
<div
|
|
96
|
+
<button type="button" class="sa-marketing-card-cta">{{ ctaText(row) }}</button>
|
|
97
|
+
<div
|
|
98
|
+
v-if="showTrialNote(row) && !promoOf(row)"
|
|
99
|
+
class="sa-marketing-card-trialnote"
|
|
100
|
+
>
|
|
83
101
|
{{ formatMessage(msg.preview.trialNote, { days: row.m.trialDays }) }}
|
|
84
102
|
</div>
|
|
85
|
-
<div v-if="promoFineprintOf(row)" class="
|
|
103
|
+
<div v-if="promoFineprintOf(row)" class="sa-marketing-card-fineprint">
|
|
86
104
|
{{ promoFineprintOf(row) }}
|
|
87
105
|
</div>
|
|
88
106
|
|
|
89
|
-
<div class="
|
|
90
|
-
<ul v-if="row.m.topFeatures.length > 0" class="
|
|
107
|
+
<div class="sa-marketing-card-includes">{{ msg.topFeatures }}</div>
|
|
108
|
+
<ul v-if="row.m.topFeatures.length > 0" class="sa-marketing-card-features">
|
|
91
109
|
<li v-for="(f, i) in row.m.topFeatures" :key="i">
|
|
92
|
-
<span class="
|
|
110
|
+
<span class="sa-marketing-tick">
|
|
93
111
|
<svg
|
|
94
112
|
width="14"
|
|
95
113
|
height="14"
|
|
@@ -107,7 +125,7 @@
|
|
|
107
125
|
</span>
|
|
108
126
|
</li>
|
|
109
127
|
</ul>
|
|
110
|
-
<div v-else class="
|
|
128
|
+
<div v-else class="sa-marketing-card-features-empty">
|
|
111
129
|
{{ msg.preview.noTopFeatures }}
|
|
112
130
|
</div>
|
|
113
131
|
</div>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
<div class="
|
|
2
|
+
<div class="sa-marketing-toolbar">
|
|
3
|
+
<div class="sa-marketing-tabbar">
|
|
4
4
|
<button
|
|
5
5
|
type="button"
|
|
6
|
-
class="
|
|
6
|
+
class="sa-marketing-tab"
|
|
7
7
|
:class="{ active: tab === 'preview' }"
|
|
8
8
|
@click="$emit('update:tab', 'preview')"
|
|
9
9
|
>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</button>
|
|
12
12
|
<button
|
|
13
13
|
type="button"
|
|
14
|
-
class="
|
|
14
|
+
class="sa-marketing-tab"
|
|
15
15
|
:class="{ active: tab === 'admin' }"
|
|
16
16
|
@click="$emit('update:tab', 'admin')"
|
|
17
17
|
>
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
</button>
|
|
20
20
|
<button
|
|
21
21
|
type="button"
|
|
22
|
-
class="
|
|
22
|
+
class="sa-marketing-tab"
|
|
23
23
|
:class="{ active: tab === 'promos' }"
|
|
24
24
|
@click="$emit('update:tab', 'promos')"
|
|
25
25
|
>
|
|
26
26
|
{{ msg.tabs.promos }}
|
|
27
|
-
<span v-if="activePromoCount > 0" class="
|
|
27
|
+
<span v-if="activePromoCount > 0" class="sa-marketing-tab-count">
|
|
28
28
|
{{ activePromoCount }}
|
|
29
29
|
</span>
|
|
30
30
|
</button>
|
|
31
31
|
</div>
|
|
32
|
-
<div class="
|
|
32
|
+
<div class="sa-marketing-meta">
|
|
33
33
|
<span>catalogVersion</span>
|
|
34
34
|
<code>{{ catalogVersion }}</code>
|
|
35
35
|
<span>·</span>
|
|
@@ -64,7 +64,7 @@ const changeCountLabel = computed(() => {
|
|
|
64
64
|
<style scoped>
|
|
65
65
|
.sa-pv-diff-card {
|
|
66
66
|
background: #fff;
|
|
67
|
-
border: 1px solid var(--sa-border,
|
|
67
|
+
border: 1px solid var(--sa-border, var(--sa-border));
|
|
68
68
|
border-radius: 10px;
|
|
69
69
|
margin-bottom: 12px;
|
|
70
70
|
overflow: hidden;
|
|
@@ -92,7 +92,7 @@ const changeCountLabel = computed(() => {
|
|
|
92
92
|
|
|
93
93
|
.sa-pv-diff-card__head {
|
|
94
94
|
padding: 12px 16px;
|
|
95
|
-
border-bottom: 1px solid var(--sa-border-soft,
|
|
95
|
+
border-bottom: 1px solid var(--sa-border-soft, var(--sa-border-soft));
|
|
96
96
|
display: flex;
|
|
97
97
|
align-items: center;
|
|
98
98
|
gap: 12px;
|
|
@@ -110,21 +110,21 @@ const changeCountLabel = computed(() => {
|
|
|
110
110
|
.sa-pv-diff-card__name {
|
|
111
111
|
font-weight: 700;
|
|
112
112
|
font-size: 14px;
|
|
113
|
-
color: var(--sa-heading,
|
|
113
|
+
color: var(--sa-heading, var(--sa-heading));
|
|
114
114
|
font-family: var(--sa-font-head, system-ui, sans-serif);
|
|
115
115
|
}
|
|
116
116
|
.sa-pv-diff-card__ver {
|
|
117
117
|
font-family: var(--sa-font-mono, ui-monospace, monospace);
|
|
118
118
|
font-size: 11px;
|
|
119
119
|
font-weight: 600;
|
|
120
|
-
color: var(--sa-muted,
|
|
121
|
-
background:
|
|
120
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
121
|
+
background: var(--sa-border-soft);
|
|
122
122
|
padding: 2px 6px;
|
|
123
123
|
border-radius: 4px;
|
|
124
124
|
}
|
|
125
125
|
.sa-pv-diff-card__sub {
|
|
126
126
|
font-size: 11.5px;
|
|
127
|
-
color: var(--sa-muted,
|
|
127
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
128
128
|
}
|
|
129
129
|
.sa-pv-diff-card__count {
|
|
130
130
|
font-size: 11px;
|
|
@@ -196,7 +196,7 @@ function directionFor(delta: number, polarity: 'higher' | 'lower'): VersionChang
|
|
|
196
196
|
}
|
|
197
197
|
.sa-pv-diff__overview {
|
|
198
198
|
background: #fff;
|
|
199
|
-
border: 1px solid var(--sa-border,
|
|
199
|
+
border: 1px solid var(--sa-border, var(--sa-border));
|
|
200
200
|
border-radius: 12px;
|
|
201
201
|
padding: 16px 20px;
|
|
202
202
|
margin-bottom: 18px;
|
|
@@ -217,17 +217,17 @@ function directionFor(delta: number, polarity: 'higher' | 'lower'): VersionChang
|
|
|
217
217
|
font-size: 11px;
|
|
218
218
|
font-weight: 700;
|
|
219
219
|
letter-spacing: 0.08em;
|
|
220
|
-
color: var(--sa-muted,
|
|
220
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
221
221
|
text-transform: uppercase;
|
|
222
222
|
}
|
|
223
223
|
.sa-pv-diff__title {
|
|
224
224
|
font-family: var(--sa-font-head, system-ui, sans-serif);
|
|
225
225
|
font-weight: 700;
|
|
226
226
|
font-size: 18px;
|
|
227
|
-
color: var(--sa-heading,
|
|
227
|
+
color: var(--sa-heading, var(--sa-heading));
|
|
228
228
|
}
|
|
229
229
|
.sa-pv-diff__sep {
|
|
230
|
-
color: var(--sa-muted,
|
|
230
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
231
231
|
font-weight: 500;
|
|
232
232
|
}
|
|
233
233
|
.sa-pv-diff__spacer {
|
|
@@ -244,7 +244,7 @@ function directionFor(delta: number, polarity: 'higher' | 'lower'): VersionChang
|
|
|
244
244
|
font-size: 10.5px;
|
|
245
245
|
font-weight: 700;
|
|
246
246
|
letter-spacing: 0.08em;
|
|
247
|
-
color: var(--sa-muted,
|
|
247
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
248
248
|
text-transform: uppercase;
|
|
249
249
|
}
|
|
250
250
|
.sa-pv-diff__stat-value {
|
|
@@ -264,7 +264,7 @@ function directionFor(delta: number, polarity: 'higher' | 'lower'): VersionChang
|
|
|
264
264
|
font-family: var(--sa-font-head, system-ui, sans-serif);
|
|
265
265
|
font-size: 14px;
|
|
266
266
|
font-weight: 700;
|
|
267
|
-
color: var(--sa-muted,
|
|
267
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
268
268
|
text-transform: uppercase;
|
|
269
269
|
letter-spacing: 0.08em;
|
|
270
270
|
}
|
|
@@ -118,14 +118,14 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
118
118
|
width: 280px;
|
|
119
119
|
flex-shrink: 0;
|
|
120
120
|
background: var(--sa-bg-surface, #ffffff);
|
|
121
|
-
border-right: 1px solid var(--sa-border,
|
|
121
|
+
border-right: 1px solid var(--sa-border, var(--sa-border));
|
|
122
122
|
display: flex;
|
|
123
123
|
flex-direction: column;
|
|
124
124
|
overflow: hidden;
|
|
125
125
|
}
|
|
126
126
|
.sa-pv-timeline__head {
|
|
127
127
|
padding: 14px 16px;
|
|
128
|
-
border-bottom: 1px solid var(--sa-border,
|
|
128
|
+
border-bottom: 1px solid var(--sa-border, var(--sa-border));
|
|
129
129
|
background: #fafbfc;
|
|
130
130
|
}
|
|
131
131
|
.sa-pv-timeline__row {
|
|
@@ -137,13 +137,13 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
137
137
|
font-size: 11px;
|
|
138
138
|
font-weight: 700;
|
|
139
139
|
letter-spacing: 0.08em;
|
|
140
|
-
color: var(--sa-muted,
|
|
140
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
141
141
|
text-transform: uppercase;
|
|
142
142
|
}
|
|
143
143
|
.sa-pv-timeline__count {
|
|
144
144
|
margin-top: 2px;
|
|
145
145
|
font-size: 11px;
|
|
146
|
-
color: var(--sa-muted,
|
|
146
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.sa-pv-timeline__list {
|
|
@@ -160,7 +160,7 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
160
160
|
top: 36px;
|
|
161
161
|
bottom: -6px;
|
|
162
162
|
width: 2px;
|
|
163
|
-
background: var(--sa-border,
|
|
163
|
+
background: var(--sa-border, var(--sa-border));
|
|
164
164
|
z-index: 0;
|
|
165
165
|
}
|
|
166
166
|
.sa-pv-timeline__btn {
|
|
@@ -182,7 +182,7 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
182
182
|
color: inherit;
|
|
183
183
|
}
|
|
184
184
|
.sa-pv-timeline__btn:hover:not(.sa-pv-timeline__btn--selected) {
|
|
185
|
-
background: var(--sa-border-soft,
|
|
185
|
+
background: var(--sa-border-soft, var(--sa-border-soft));
|
|
186
186
|
}
|
|
187
187
|
.sa-pv-timeline__btn--selected {
|
|
188
188
|
background: var(--sa-primary-soft, rgba(63, 107, 255, 0.08));
|
|
@@ -210,9 +210,9 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
210
210
|
color: var(--sa-positive, #047857);
|
|
211
211
|
}
|
|
212
212
|
.sa-pv-timeline__node--archived {
|
|
213
|
-
background:
|
|
214
|
-
border-color: var(--sa-muted,
|
|
215
|
-
color: var(--sa-muted,
|
|
213
|
+
background: var(--sa-border-soft);
|
|
214
|
+
border-color: var(--sa-muted, var(--sa-muted));
|
|
215
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
216
216
|
}
|
|
217
217
|
.sa-pv-timeline__node-dot {
|
|
218
218
|
width: 6px;
|
|
@@ -237,7 +237,7 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
237
237
|
font-family: var(--sa-font-mono, ui-monospace, 'SF Mono', Menlo, monospace);
|
|
238
238
|
font-size: 12px;
|
|
239
239
|
font-weight: 700;
|
|
240
|
-
color: var(--sa-heading,
|
|
240
|
+
color: var(--sa-heading, var(--sa-heading));
|
|
241
241
|
}
|
|
242
242
|
.sa-pv-timeline__status {
|
|
243
243
|
font-size: 9.5px;
|
|
@@ -255,8 +255,8 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
255
255
|
color: var(--sa-positive, #047857);
|
|
256
256
|
}
|
|
257
257
|
.sa-pv-timeline__status--archived {
|
|
258
|
-
background:
|
|
259
|
-
color: var(--sa-muted,
|
|
258
|
+
background: var(--sa-border-soft);
|
|
259
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
260
260
|
}
|
|
261
261
|
.sa-pv-timeline__vs {
|
|
262
262
|
font-size: 9.5px;
|
|
@@ -278,7 +278,7 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
278
278
|
}
|
|
279
279
|
.sa-pv-timeline__meta {
|
|
280
280
|
font-size: 11px;
|
|
281
|
-
color: var(--sa-muted,
|
|
281
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
282
282
|
margin-top: 2px;
|
|
283
283
|
display: flex;
|
|
284
284
|
align-items: center;
|
|
@@ -287,10 +287,10 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
287
287
|
|
|
288
288
|
.sa-pv-timeline__foot {
|
|
289
289
|
padding: 10px 14px;
|
|
290
|
-
border-top: 1px solid var(--sa-border,
|
|
290
|
+
border-top: 1px solid var(--sa-border, var(--sa-border));
|
|
291
291
|
background: #fafbfc;
|
|
292
292
|
font-size: 11px;
|
|
293
|
-
color: var(--sa-muted,
|
|
293
|
+
color: var(--sa-muted, var(--sa-muted));
|
|
294
294
|
}
|
|
295
295
|
.sa-pv-timeline__hint {
|
|
296
296
|
display: flex;
|
|
@@ -300,7 +300,7 @@ function metaText(s: CatalogSnapshot): string {
|
|
|
300
300
|
.sa-pv-timeline__clear-btn {
|
|
301
301
|
margin-top: 6px;
|
|
302
302
|
background: #fff;
|
|
303
|
-
border: 1px solid var(--sa-border,
|
|
303
|
+
border: 1px solid var(--sa-border, var(--sa-border));
|
|
304
304
|
border-radius: 6px;
|
|
305
305
|
padding: 4px 10px;
|
|
306
306
|
font-size: 11px;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<h2 class="sa-bundles__title">{{ msg.bundleOverview.title }}</h2>
|
|
2
|
+
<AdminSection :title="msg.bundleOverview.title">
|
|
3
|
+
<template #actions>
|
|
5
4
|
<span class="sa-bundles__count">{{ bundles.length }}</span>
|
|
6
|
-
</
|
|
5
|
+
</template>
|
|
7
6
|
|
|
8
|
-
<div v-if="bundles.length === 0" class="sa-
|
|
7
|
+
<div v-if="bundles.length === 0" class="sa-bundle-overview__empty">
|
|
9
8
|
{{ msg.bundleOverview.empty }}
|
|
10
9
|
</div>
|
|
11
10
|
|
|
@@ -44,11 +43,12 @@
|
|
|
44
43
|
</q-card-section>
|
|
45
44
|
</q-card>
|
|
46
45
|
</div>
|
|
47
|
-
</
|
|
46
|
+
</AdminSection>
|
|
48
47
|
</template>
|
|
49
48
|
|
|
50
49
|
<script setup lang="ts">
|
|
51
50
|
import type { PlanRow } from '@saasicat/types';
|
|
51
|
+
import AdminSection from '../../components/admin-page/AdminSection.vue';
|
|
52
52
|
import { useSaMessages } from '../../vue/use-super-admin-i18n.js';
|
|
53
53
|
|
|
54
54
|
interface BundleEntry {
|
|
@@ -83,30 +83,15 @@ function compatLabel(bundle: BundleEntry): string {
|
|
|
83
83
|
</script>
|
|
84
84
|
|
|
85
85
|
<style scoped>
|
|
86
|
-
.sa-bundles {
|
|
87
|
-
padding: 8px 16px 32px;
|
|
88
|
-
}
|
|
89
|
-
.sa-bundles__head {
|
|
90
|
-
display: flex;
|
|
91
|
-
align-items: center;
|
|
92
|
-
gap: 8px;
|
|
93
|
-
margin: 8px 0 12px;
|
|
94
|
-
}
|
|
95
|
-
.sa-bundles__title {
|
|
96
|
-
font-size: 16px;
|
|
97
|
-
font-weight: 600;
|
|
98
|
-
margin: 0;
|
|
99
|
-
color: #0f172a;
|
|
100
|
-
}
|
|
101
86
|
.sa-bundles__count {
|
|
102
87
|
font-size: 12px;
|
|
103
|
-
color:
|
|
104
|
-
background:
|
|
88
|
+
color: var(--sa-muted);
|
|
89
|
+
background: var(--sa-border);
|
|
105
90
|
border-radius: 999px;
|
|
106
91
|
padding: 1px 8px;
|
|
107
92
|
}
|
|
108
|
-
.sa-
|
|
109
|
-
color:
|
|
93
|
+
.sa-bundle-overview__empty {
|
|
94
|
+
color: var(--sa-muted);
|
|
110
95
|
font-size: 14px;
|
|
111
96
|
padding: 8px 0;
|
|
112
97
|
}
|
|
@@ -120,18 +105,18 @@ function compatLabel(bundle: BundleEntry): string {
|
|
|
120
105
|
}
|
|
121
106
|
.sa-bundle__label {
|
|
122
107
|
font-weight: 600;
|
|
123
|
-
color:
|
|
108
|
+
color: var(--sa-heading);
|
|
124
109
|
}
|
|
125
110
|
.sa-bundle__key {
|
|
126
111
|
font-size: 11px;
|
|
127
|
-
color:
|
|
112
|
+
color: var(--sa-muted-light);
|
|
128
113
|
font-family: monospace;
|
|
129
114
|
}
|
|
130
115
|
.sa-bundle__caption {
|
|
131
116
|
font-size: 11px;
|
|
132
117
|
text-transform: uppercase;
|
|
133
118
|
letter-spacing: 0.04em;
|
|
134
|
-
color:
|
|
119
|
+
color: var(--sa-muted-light);
|
|
135
120
|
margin-bottom: 4px;
|
|
136
121
|
}
|
|
137
122
|
.sa-bundle__chips {
|
|
@@ -144,7 +129,7 @@ function compatLabel(bundle: BundleEntry): string {
|
|
|
144
129
|
color: #3730a3;
|
|
145
130
|
}
|
|
146
131
|
.sa-bundle__muted {
|
|
147
|
-
color:
|
|
132
|
+
color: var(--sa-muted-light);
|
|
148
133
|
}
|
|
149
134
|
.sa-bundle__compat {
|
|
150
135
|
padding-top: 0;
|