Skip to content

Commit 1a5b347

Browse files
committed
fix naming in const variables & add approve-skill modal & info components for approve skill module
1 parent 1f3ab38 commit 1a5b347

52 files changed

Lines changed: 361 additions & 253 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

projects/core/src/consts/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!-- @format -->
2+
3+
# 🧱 Core / Const — правила нейминга
4+
5+
## Общая идея
6+
7+
Папка `core/const` хранит все константы проекта (навигация, списки для select, статусы, роли и т.д.).
8+
Каждая константа должна быть названа единообразно и понятно по контексту.
9+
10+
---
11+
12+
## 🧩 Имена файлов
13+
14+
- Формат: `feature.const.ts`
15+
- Название — в **kebab-case**.
16+
- Примеры:
17+
- `navigation.const.ts`
18+
- `selects.const.ts`
19+
- `permissions.const.ts`
20+
21+
---
22+
23+
## 🧠 Имена переменных
24+
25+
- Формат: **camelCase**
26+
- Если переменная содержит список — использовать **множественное число**
27+
- Имя отражает назначение
28+
- Экспорт только через `export const`
29+
30+
**Примеры:**
31+
32+
```ts
33+
export const navItems = [...]
34+
```

projects/core/src/consts/feed-filter-list.ts renamed to projects/core/src/consts/filters/feed-filter.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @format */
22

3-
export const feedFilterlist = [
3+
export const feedFilter = [
44
{
55
id: 1,
66
name: "новости проектов",

projects/core/src/consts/rating-filters.ts renamed to projects/core/src/consts/filters/rating-filter.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @format */
22

3-
export const ratingFiltersList = [
3+
export const ratingFilters = [
44
{
55
label: "Месяц",
66
id: 0,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @format */
22

3-
export const filterTags = [
3+
export const tagsFilter = [
44
{ id: 1, label: "Оцененные", value: true },
55
{ id: 0, label: "Не оцененные", value: false },
66
];

projects/core/src/consts/filter-experience.ts renamed to projects/core/src/consts/filters/work-experience-filter.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @format */
22

3-
export const filterExperience = [
3+
export const workExperienceFilter = [
44
{ label: "Без опыта", value: "no_experience" },
55
{ label: "До 1 года", value: "up_to_a_year" },
66
{ label: "От 1 года до 3 лет", value: "from_one_to_three_years" },

projects/core/src/consts/filter-work-format.ts renamed to projects/core/src/consts/filters/work-format-filter.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @format */
22

3-
export const filterWorkFormat = [
3+
export const workFormatFilter = [
44
{ label: "Удаленная работа", value: "remote" },
55
{ label: "Работа в офисе", value: "office" },
66
{ label: "Смешанный формат", value: "hybrid" },

projects/core/src/consts/filter-work-schedule.ts renamed to projects/core/src/consts/filters/work-schedule-filter.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @format */
22

3-
export const filterWorkSchedule = [
3+
export const workScheduleFilter = [
44
{ label: "Полный рабочий день", value: "full_time" },
55
{ label: "Сменный график", value: "shift_work" },
66
{ label: "Гибкий график", value: "flexible_schedule" },
File renamed without changes.
File renamed without changes.

projects/core/src/consts/list-direction-project.ts renamed to projects/core/src/consts/lists/ldirection-project-list.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const directionProjectList = [
2222
},
2323
{
2424
id: 3,
25-
value: "им Био", // Возможно опечатка, должно быть "Хим Био"
25+
value: "Хим Био",
2626
label: "Хим Био",
2727
},
2828
{

0 commit comments

Comments
 (0)