Skip to content

Commit ff401e7

Browse files
authored
Merge pull request #241 from PROCOLLAB-github/update-edit-project
Update edit project
2 parents 79a72aa + d69fb1f commit ff401e7

542 files changed

Lines changed: 16220 additions & 12500 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/filter-experience.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

projects/core/src/consts/filter-work-format.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

projects/core/src/consts/filter-work-schedule.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/** @format */
2+
3+
export const feedFilter = [
4+
{
5+
id: 1,
6+
name: "новости проектов",
7+
value: "projects",
8+
icon: "projects",
9+
},
10+
{
11+
id: 2,
12+
name: "свежие вакансии",
13+
value: "vacancy",
14+
icon: "suitcase",
15+
},
16+
{
17+
id: 3,
18+
name: "новости сообщества",
19+
value: "news",
20+
icon: "people-bold",
21+
},
22+
{
23+
id: 4,
24+
name: "новости программ",
25+
value: "projects/1",
26+
icon: "procollab",
27+
},
28+
{
29+
id: 5,
30+
name: "образование",
31+
value: "education",
32+
icon: "trajectories",
33+
},
34+
];

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
/** @format */
22

3-
export const ratingFiltersList = [
3+
export const ratingFilters = [
44
{
5-
label: "Месяц",
5+
label: "месяц",
66
id: 0,
77
value: "last_month",
88
},
99
{
10-
label: "Год",
10+
label: "год",
1111
id: 1,
1212
value: "last_year",
1313
},
1414
{
15-
label: "День",
15+
label: "день",
1616
id: 2,
1717
value: "last_day",
1818
},
1919
{
20-
label: "Неделя",
20+
label: "неделя",
2121
id: 3,
2222
value: "last_week",
2323
},
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/** @format */
22

3-
export const filterTags = [
4-
{ id: 2, label: "Все проекты", value: null },
3+
export const tagsFilter = [
54
{ id: 1, label: "Оцененные", value: true },
65
{ id: 0, label: "Не оцененные", value: false },
76
];
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @format */
2+
3+
export const workExperienceFilter = [
4+
{ label: "без опыта", value: "no_experience" },
5+
{ label: "до 1 года", value: "up_to_a_year" },
6+
{ label: "от 1 года до 3 лет", value: "from_one_to_three_years" },
7+
{ label: "от 3 лет и более", value: "from_three_years" },
8+
];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/** @format */
2+
3+
export const workFormatFilter = [
4+
{ label: "удаленная работа", value: "remote" },
5+
{ label: "работа в офисе", value: "office" },
6+
{ label: "смешанный формат", value: "hybrid" },
7+
];
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/** @format */
2+
3+
export const workScheduleFilter = [
4+
{ label: "полный рабочий день", value: "full_time" },
5+
{ label: "сменный график", value: "shift_work" },
6+
{ label: "гибкий график", value: "flexible_schedule" },
7+
{ label: "частичная занятость", value: "part_time" },
8+
{ label: "стажировка", value: "internship" },
9+
];

0 commit comments

Comments
 (0)