phase-3: add bootstrap-aligned mock configuration payloads
This commit is contained in:
253
src/assets/mock/bootstrap/bootstrap.json
Normal file
253
src/assets/mock/bootstrap/bootstrap.json
Normal file
@@ -0,0 +1,253 @@
|
||||
{
|
||||
"schemaVersion": "1.0.0",
|
||||
"generatedAt": "2026-07-03T00:00:00Z",
|
||||
"tenant": {
|
||||
"id": "tenant-default-001",
|
||||
"slug": "default",
|
||||
"code": "DEFAULT",
|
||||
"host": "default.local",
|
||||
"name": "Default Tenant",
|
||||
"websiteBaseUrl": "https://default.local",
|
||||
"builderBaseUrl": "https://builder.default.local",
|
||||
"backofficeBaseUrl": "https://backoffice.default.local",
|
||||
"defaultLocale": "ru",
|
||||
"supportedLocales": ["ru", "en", "hy"],
|
||||
"defaultCurrency": "RUB",
|
||||
"supportedCurrencies": ["RUB", "USD", "EUR", "AMD"],
|
||||
"timezone": "Europe/Moscow"
|
||||
},
|
||||
"branding": {
|
||||
"brandName": "Marketplace Platform Demo",
|
||||
"legalName": "Marketplace Platform LLC",
|
||||
"slogan": "Composable commerce for every tenant",
|
||||
"logoUrl": "/assets/images/dexar-logo.svg",
|
||||
"logoCompactUrl": "/assets/images/dexar-logo-small.svg",
|
||||
"faviconUrl": "/favicon.ico",
|
||||
"appIconUrl": "/assets/icons/icon-192x192.png",
|
||||
"supportEmail": "support@example.com",
|
||||
"supportPhone": "+7-900-000-00-00"
|
||||
},
|
||||
"theme": {
|
||||
"themeId": "default-light",
|
||||
"mode": "light",
|
||||
"palette": {
|
||||
"primary": "#497671",
|
||||
"secondary": "#a1b4b5",
|
||||
"accent": "#a7ceca",
|
||||
"success": "#10b981",
|
||||
"warning": "#f59e0b",
|
||||
"danger": "#ef4444",
|
||||
"info": "#3b82f6",
|
||||
"textPrimary": "#1e3c38",
|
||||
"textSecondary": "#667a77",
|
||||
"backgroundPrimary": "#ffffff",
|
||||
"backgroundSecondary": "#f5f5f5",
|
||||
"border": "#d3dad9"
|
||||
},
|
||||
"typography": {
|
||||
"primaryFontFamily": "DM Sans, sans-serif",
|
||||
"headingFontFamily": "DM Sans, sans-serif",
|
||||
"baseFontSize": 16
|
||||
},
|
||||
"spacing": {
|
||||
"unit": 4,
|
||||
"scale": [0, 4, 8, 12, 16, 24, 32, 48]
|
||||
},
|
||||
"borderRadiusScale": {
|
||||
"sm": "8px",
|
||||
"md": "12px",
|
||||
"lg": "16px",
|
||||
"xl": "22px"
|
||||
},
|
||||
"shadows": {
|
||||
"sm": "0 2px 8px rgba(0,0,0,0.1)",
|
||||
"md": "0 4px 12px rgba(0,0,0,0.15)",
|
||||
"lg": "0 12px 32px rgba(73,118,113,0.2)"
|
||||
},
|
||||
"iconSet": "default"
|
||||
},
|
||||
"company": {
|
||||
"companyName": "Marketplace Platform LLC",
|
||||
"registrationNumber": "1027700000000",
|
||||
"taxId": "7700000000",
|
||||
"address": {
|
||||
"country": "Russia",
|
||||
"region": "Moscow",
|
||||
"city": "Moscow",
|
||||
"street": "Tverskaya 1",
|
||||
"postalCode": "125009"
|
||||
},
|
||||
"contacts": {
|
||||
"email": "info@example.com",
|
||||
"phone": "+7-900-000-00-00",
|
||||
"telegram": "@platform_support",
|
||||
"website": "https://default.local"
|
||||
}
|
||||
},
|
||||
"featureFlags": {
|
||||
"wishlist": true,
|
||||
"compare": true,
|
||||
"reviews": true,
|
||||
"blog": false,
|
||||
"chat": false,
|
||||
"analytics": true,
|
||||
"notifications": true,
|
||||
"coupons": true,
|
||||
"loyalty": false,
|
||||
"giftCards": false,
|
||||
"invoices": true
|
||||
},
|
||||
"apiEndpoints": {
|
||||
"bootstrap": {
|
||||
"path": "/bootstrap",
|
||||
"method": "GET",
|
||||
"timeoutMs": 10000
|
||||
},
|
||||
"website": {},
|
||||
"builder": {},
|
||||
"backoffice": {}
|
||||
},
|
||||
"localization": {
|
||||
"defaultLocale": "ru",
|
||||
"supportedLocales": ["ru", "en", "hy"],
|
||||
"currencyByLocale": {
|
||||
"ru": "RUB",
|
||||
"en": "USD",
|
||||
"hy": "AMD"
|
||||
},
|
||||
"dictionaries": [
|
||||
{
|
||||
"locale": "ru",
|
||||
"dictionaryUrl": "/assets/i18n/ru.json",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
{
|
||||
"locale": "en",
|
||||
"dictionaryUrl": "/assets/i18n/en.json",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
{
|
||||
"locale": "hy",
|
||||
"dictionaryUrl": "/assets/i18n/hy.json",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
]
|
||||
},
|
||||
"seo": {
|
||||
"default": {
|
||||
"title": "Marketplace Platform",
|
||||
"description": "Configuration-driven multi-tenant marketplace platform",
|
||||
"robots": "index,follow"
|
||||
},
|
||||
"byPageKey": {
|
||||
"home": {
|
||||
"title": "Marketplace Platform - Home",
|
||||
"description": "Home page generated from configuration",
|
||||
"canonicalUrl": "https://default.local/",
|
||||
"robots": "index,follow"
|
||||
}
|
||||
}
|
||||
},
|
||||
"permissions": {
|
||||
"definitions": [
|
||||
{
|
||||
"key": "builder.pages.edit",
|
||||
"description": "Edit pages in builder"
|
||||
},
|
||||
{
|
||||
"key": "backoffice.products.read",
|
||||
"description": "Read products in backoffice"
|
||||
}
|
||||
],
|
||||
"roles": [
|
||||
{
|
||||
"role": "builder_admin",
|
||||
"permissions": ["builder.pages.edit"]
|
||||
},
|
||||
{
|
||||
"role": "backoffice_manager",
|
||||
"permissions": ["backoffice.products.read"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"navigation": {
|
||||
"header": [
|
||||
{
|
||||
"id": "nav-home",
|
||||
"labelKey": "nav.home",
|
||||
"route": "/",
|
||||
"icon": "home",
|
||||
"order": 1
|
||||
},
|
||||
{
|
||||
"id": "nav-search",
|
||||
"labelKey": "nav.search",
|
||||
"route": "/search",
|
||||
"icon": "search",
|
||||
"order": 2
|
||||
},
|
||||
{
|
||||
"id": "nav-cart",
|
||||
"labelKey": "nav.cart",
|
||||
"route": "/cart",
|
||||
"icon": "cart",
|
||||
"order": 3
|
||||
}
|
||||
],
|
||||
"footer": [
|
||||
{
|
||||
"id": "footer-about",
|
||||
"labelKey": "nav.about",
|
||||
"route": "/about",
|
||||
"order": 1
|
||||
},
|
||||
{
|
||||
"id": "footer-contacts",
|
||||
"labelKey": "nav.contacts",
|
||||
"route": "/contacts",
|
||||
"order": 2
|
||||
},
|
||||
{
|
||||
"id": "footer-privacy",
|
||||
"labelKey": "nav.privacy",
|
||||
"route": "/privacy-policy",
|
||||
"order": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"pages": [
|
||||
{
|
||||
"id": "page-home",
|
||||
"key": "home",
|
||||
"title": "Home",
|
||||
"route": {
|
||||
"path": "/",
|
||||
"exact": true
|
||||
},
|
||||
"layout": "default-public",
|
||||
"seoKey": "home",
|
||||
"visible": true,
|
||||
"sections": [
|
||||
{
|
||||
"id": "section-hero",
|
||||
"type": "hero",
|
||||
"order": 1,
|
||||
"visible": true,
|
||||
"widgets": [
|
||||
{
|
||||
"id": "widget-hero-main",
|
||||
"type": "hero",
|
||||
"version": "1.0.0",
|
||||
"visible": true,
|
||||
"props": {
|
||||
"title": "Welcome to Marketplace Platform",
|
||||
"subtitle": "Configuration-driven multi-tenant commerce",
|
||||
"ctaLabel": "Start Shopping"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user