diff --git a/README.md b/README.md index 18221c48..4475ea6f 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ Для работы с md файлами локально можно использовать [плагин](https://marketplace.visualstudio.com/items?itemName=Nuxt.mdc) для VSCode. Это позволит вам предварительно просматривать контент прямо в редакторе. Однако для более точного представления конечного вида контента рекомендуется запускать сайт локально. Ниже приведены инструкции по запуску сайта. -- [Как добавить партнера](./content/ru/_partners/software/.README.md); -- [Как добавить интегратора](./content/ru/_partners/integrator/.README.md); -- [Как добавить вакансию](./content/ru/jobs/.README.md); -- [Как добавить ссылку на статью](./content/ru/_articles/.README.md); +- [Как добавить партнера](./doc/partners.md); +- [Как добавить интегратора](./doc/integrators.md); +- [Как добавить вакансию](doc/vacancies); +- [Как добавить ссылку на статью](./doc/articles.md); - [Дополнительные компоненты](./doc/components.md). ## Как запустить сайт локально diff --git a/common/article_categories.ts b/common/article_categories.ts new file mode 100644 index 00000000..eea29848 --- /dev/null +++ b/common/article_categories.ts @@ -0,0 +1,28 @@ +import type { Categories } from '~/common/types'; + +export const categories: Categories = { + ru: [ + { name: 'user_experience', label: 'Опыт пользователей', sub_category: [ + { name: 'retail', label: 'Ритейл, рестораны и отели' }, + { name: 'business_objects', label: 'Бизнес-объекты' }, + { name: 'tsod', label: 'ЦОД' }, + { name: 'apartments', label: 'Многоквартирные дома и ЖК' }, + { name: 'embedded', label: 'Встраиваемые системы и метеостанции' }, + { name: 'home_automation', label: 'Домашняя автоматизация' }, + ] + }, + { name: 'hardware_selection', label: 'Подбор оборудования' }, + { name: 'educational', label: 'Обучающие ролики', sub_category: [ + { name: 'beginners', label: 'Начинающим' }, + { name: 'node_red', label: 'Автоматизация на Node-RED' }, + { name: 'ventilation', label: 'Вентиляция' }, + { name: 'heating', label: 'Отопление' }, + { name: 'electrics', label: 'Электрика' }, + { name: 'integrations', label: 'Интеграция со сторонним ПО' }, + { name: '3rd_party_devices', label: 'Подключение сторонних устройств' }, + ] + }, + { name: 'manufactoring', label: 'О производстве и процессах' }, + ], + en: [], +}; diff --git a/common/districts.ts b/common/districts.ts new file mode 100644 index 00000000..79b28640 --- /dev/null +++ b/common/districts.ts @@ -0,0 +1,17 @@ +import type { Districts } from '~/common/types'; + +export const districts: Districts = { + ru: [ + { value: 'moscow', label: 'Москва и область', coordinates: [55.8, 37.5], zoom: 9 }, + { value: 'spb', label: 'Северо-Западный округ', coordinates: [59.75, 30.5], zoom: 9 }, + { value: 'center', label: 'Центральный округ', coordinates: [54.21, 37.62], zoom: 12 }, + { value: 'volga', label: 'Приволжский округ', coordinates: [57.5, 51], zoom: 6 }, + { value: 'ural', label: 'Уральский округ', coordinates: [56.84, 60.57], zoom: 12 }, + { value: 'by', label: 'Беларусь', coordinates: [53.95, 27.65], zoom: 9 }, + { value: 'kg', label: 'Кыргызстан', coordinates: [42.90, 74.5], zoom: 10 }, + ], + en: [ + { value: 'by', label: 'Republic of Belarus', coordinates: [53.95, 27.65], zoom: 12 }, + { value: 'kg', label: 'Republic of Kyrgyzstan', coordinates: [42.90, 74.5], zoom: 10 }, + ], +}; diff --git a/common/types.ts b/common/types.ts new file mode 100644 index 00000000..9ccc7e36 --- /dev/null +++ b/common/types.ts @@ -0,0 +1,29 @@ +import type { Locale } from '@intlify/core-base'; + +export interface Category { + name: string; + label: string; + sub_category?: Category[]; +} + +export interface Categories { + [locale: Locale]: Category[]; +} + +export interface Article { + title: string; + cover: string; + url: string; + date: string; +} + +export interface District { + value: string; + label: string; + coordinates: number[]; + zoom: number; +} + +export interface Districts { + [locale: Locale]: District[]; +} diff --git a/components/Article.vue b/components/Article.vue index 2843e87d..88fad8af 100644 --- a/components/Article.vue +++ b/components/Article.vue @@ -1,8 +1,9 @@