feat(cms): add static pages module

This commit is contained in:
sdarbinyan
2026-07-10 13:52:01 +04:00
parent e2c8747fcc
commit 7d6c09a346
25 changed files with 890 additions and 159 deletions

View File

@@ -407,6 +407,7 @@ export const en: Translations = {
footer: 'Footer',
homepage: 'Homepage',
widgets: 'Widgets',
staticPages: 'Static Pages',
marketplaceFeatures: 'Marketplace Features',
preview: 'Preview',
brandName: 'Brand Name',
@@ -443,7 +444,19 @@ export const en: Translations = {
copyright: 'Copyright',
paymentIcons: 'Payment Icons',
socialLinks: 'Social Links',
staticPages: 'Static Pages',
createPage: 'Create Page',
deletePage: 'Delete Page',
pageId: 'Page ID',
slug: 'Slug',
iconLabel: 'Icon',
showInFooter: 'Show In Footer',
showInHeader: 'Show In Header',
showInSitemap: 'Show In Sitemap',
requiresAuthentication: 'Requires Authentication',
footerGroup: 'Footer Group',
orderLabel: 'Order',
translationTitle: 'Translation Title',
htmlPreview: 'HTML',
visible: 'Visible',
layoutLabel: 'Layout',
columns: 'Columns',
@@ -471,6 +484,12 @@ export const en: Translations = {
importError: 'Import failed. Invalid bootstrap JSON.',
featureFlags: 'Feature Flags',
},
staticPages: {
notFound: 'Page not found',
backHome: 'Back to home',
duplicateSlug: 'Duplicate slugs are not allowed.',
emptyTitle: 'Each page must have at least one title.',
},
widgets: {
unavailable: 'Widget unavailable',
},

View File

@@ -407,6 +407,7 @@ export const hy: Translations = {
footer: 'Footer',
homepage: 'Գլխավոր էջ',
widgets: 'Վիջեթներ',
staticPages: 'Ստատիկ էջեր',
marketplaceFeatures: 'Մարքեթփլեյսի հնարավորություններ',
preview: 'Preview',
brandName: 'Բրենդի անվանում',
@@ -443,7 +444,19 @@ export const hy: Translations = {
copyright: 'Copyright',
paymentIcons: 'Վճարման icon-ներ',
socialLinks: 'Սոցիալական հղումներ',
staticPages: 'Ստատիկ էջեր',
createPage: 'Ստեղծել էջ',
deletePage: 'Ջնջել էջը',
pageId: 'Էջի ID',
slug: 'Slug',
iconLabel: 'Իկոնա',
showInFooter: 'Ցույց տալ footer-ում',
showInHeader: 'Ցույց տալ header-ում',
showInSitemap: 'Ցույց տալ sitemap-ում',
requiresAuthentication: 'Պահանջում է մուտք',
footerGroup: 'Footer խումբ',
orderLabel: 'Հերթականություն',
translationTitle: 'Թարգմանության վերնագիր',
htmlPreview: 'HTML',
visible: 'Տեսանելի',
layoutLabel: 'Layout',
columns: 'Սյուներ',
@@ -471,6 +484,12 @@ export const hy: Translations = {
importError: 'Ներմուծումը ձախողվեց։ Սխալ bootstrap JSON։',
featureFlags: 'Feature flags',
},
staticPages: {
notFound: 'Էջը չի գտնվել',
backHome: 'Վերադառնալ գլխավոր',
duplicateSlug: 'Կրկնվող slug-երը թույլատրելի չեն։',
emptyTitle: 'Յուրաքանչյուր էջ պետք է ունենա առնվազն մեկ վերնագիր։',
},
widgets: {
unavailable: 'Վիջեթը հասանելի չէ',
},

View File

@@ -407,6 +407,7 @@ export const ru: Translations = {
footer: 'Футер',
homepage: 'Главная страница',
widgets: 'Виджеты',
staticPages: 'Статические страницы',
marketplaceFeatures: 'Функции маркетплейса',
preview: 'Превью',
brandName: 'Название бренда',
@@ -443,7 +444,19 @@ export const ru: Translations = {
copyright: 'Копирайт',
paymentIcons: 'Иконки оплаты',
socialLinks: 'Социальные ссылки',
staticPages: 'Статические страницы',
createPage: 'Создать страницу',
deletePage: 'Удалить страницу',
pageId: 'ID страницы',
slug: 'Slug',
iconLabel: 'Иконка',
showInFooter: 'Показывать в футере',
showInHeader: 'Показывать в хедере',
showInSitemap: 'Показывать в sitemap',
requiresAuthentication: 'Требует авторизацию',
footerGroup: 'Группа футера',
orderLabel: 'Порядок',
translationTitle: 'Заголовок перевода',
htmlPreview: 'HTML',
visible: 'Видимость',
layoutLabel: 'Layout',
columns: 'Колонки',
@@ -471,6 +484,12 @@ export const ru: Translations = {
importError: 'Импорт не удался. Некорректный JSON bootstrap.',
featureFlags: 'Фичи-флаги',
},
staticPages: {
notFound: 'Страница не найдена',
backHome: 'На главную',
duplicateSlug: 'Дублирующиеся slug запрещены.',
emptyTitle: 'У каждой страницы должен быть хотя бы один заголовок.',
},
widgets: {
unavailable: 'Виджет недоступен',
},

View File

@@ -405,6 +405,7 @@ export interface Translations {
footer: string;
homepage: string;
widgets: string;
staticPages: string;
marketplaceFeatures: string;
preview: string;
brandName: string;
@@ -441,7 +442,19 @@ export interface Translations {
copyright: string;
paymentIcons: string;
socialLinks: string;
staticPages: string;
createPage: string;
deletePage: string;
pageId: string;
slug: string;
iconLabel: string;
showInFooter: string;
showInHeader: string;
showInSitemap: string;
requiresAuthentication: string;
footerGroup: string;
orderLabel: string;
translationTitle: string;
htmlPreview: string;
visible: string;
layoutLabel: string;
columns: string;
@@ -469,6 +482,12 @@ export interface Translations {
importError: string;
featureFlags: string;
};
staticPages: {
notFound: string;
backHome: string;
duplicateSlug: string;
emptyTitle: string;
};
widgets: {
unavailable: string;
};