shared-ritm 1.0.24 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
package/src/App.vue CHANGED
@@ -1,12 +1,112 @@
1
1
  <template>
2
- <app-button label="asad" color="primary" />
3
- <app-input v-model="test" type="text" />
2
+ <app-layout :logged="false">
3
+ <template #header>
4
+ <!-- <app-layout-header />-->
5
+ </template>
6
+ <template #drawer>
7
+ <app-sidebar :is-drawer="true" :menu-items="menuItems" />
8
+ </template>
9
+ <app-button label="asad" color="primary" />
10
+ <app-input v-model="test" type="text" />
11
+ </app-layout>
4
12
  </template>
5
13
 
6
14
  <script setup lang="ts">
7
15
  import AppButton from '@/common/app-button/AppButton.vue'
8
16
  import AppInput from '@/common/app-input/AppInput.vue'
9
17
  import { ref } from 'vue'
18
+ import AppSidebar from '@/common/app-sidebar/AppSidebar.vue'
19
+ import AppLayout from '@/common/app-layout/AppLayout.vue'
20
+ //import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue'
10
21
  const test = ref('sdf')
22
+ const menuItems = ref([
23
+ { name: 'profile', icon: 'user-icon', label: 'Мой профиль', to: '/profile' },
24
+ {
25
+ name: 'repairs-icon',
26
+ icon: 'repairs-icon',
27
+ label: 'Ремонты',
28
+ to: '',
29
+ items: [
30
+ { name: 'repairs/', icon: 'repairs-icon', label: 'Ремонты', to: '/repairs/' },
31
+ { name: 'equipment', icon: 'videozones-icon', label: 'Оборудование', to: '/equipment' },
32
+ ],
33
+ },
34
+ { name: 'projects', icon: 'projects-icon', label: 'Проекты', to: '/projects' },
35
+ { name: 'projects-and-tasks', icon: 'projects-icon', label: 'Проекты и задачи', to: '/projects-and-tasks' },
36
+ {
37
+ name: 'tasks-icon',
38
+ icon: 'tasks-icon',
39
+ label: 'Задачник',
40
+ to: '',
41
+ items: [
42
+ { name: 'tasks', icon: 'tasks_tasks-icon', label: 'Рабочие задания', to: '/tasks' },
43
+ { name: 'my-tasks-today', icon: 'tasks_today-icon', label: 'Мои рабочие задания', to: '/my-tasks-today' },
44
+ ],
45
+ },
46
+ {
47
+ name: 'instruments-icon',
48
+ icon: 'instruments-icon',
49
+ label: 'Инструменты',
50
+ to: '',
51
+ items: [
52
+ { name: 'instruments', icon: 'repairs-icon', label: 'Инструменты', to: '/instruments' },
53
+ { name: 'warehouses', icon: 'warehouses-icon', label: 'Инструменты на складе', to: '/warehouses' },
54
+ { name: 'workshop', icon: 'workshop-icon', label: 'Мастерская', to: '/workshop' },
55
+ {
56
+ name: 'instrument-work-zone',
57
+ icon: 'instrument-work-zone-icon',
58
+ label: 'Зоны проведения работ',
59
+ to: '/instrument-work-zone',
60
+ },
61
+ ],
62
+ },
63
+ {
64
+ name: 'order-icon',
65
+ icon: 'order-icon',
66
+ label: 'Заказ',
67
+ to: '',
68
+ items: [
69
+ { name: 'instrument-preorder', icon: 'preorder-icon', label: 'Предзаказ', to: '/instrument-preorder' },
70
+ { name: 'instrument-order', icon: 'instrument-order-icon', label: 'Заказы МТР', to: '/instrument-order' },
71
+ ],
72
+ },
73
+ { name: 'modules', icon: 'modules-icon', label: 'Модули', to: '/modules' },
74
+ {
75
+ name: 'instrument-history',
76
+ icon: 'instrument-history-icon',
77
+ label: 'История применения',
78
+ to: '/instrument-history',
79
+ },
80
+ { name: 'status-history', icon: 'status-history-icon', label: 'История статусов', to: '/status-history' },
81
+ { name: 'pass', icon: 'pass-icon', label: 'Присвоить метку', to: '/pass' },
82
+ { name: 'assign-module', icon: 'assign-module-icon', label: 'Выдать МТР', to: '/assign-module' },
83
+ {
84
+ name: 'users-icon',
85
+ icon: 'users-icon',
86
+ label: 'Пользователи',
87
+ to: '',
88
+ items: [
89
+ { name: 'users', icon: 'user-icon', label: 'Пользователи', to: '/users' },
90
+ { name: 'positions', icon: 'positions-icon', label: 'Должности', to: '/positions' },
91
+ { name: 'roles', icon: 'roles-icon', label: 'Роли', to: '/roles' },
92
+ { name: 'teams', icon: 'teams-icon', label: 'Команды', to: '/teams' },
93
+ ],
94
+ },
95
+ {
96
+ name: 'workzones-icon',
97
+ icon: 'workzones-icon',
98
+ label: 'Зоны работ',
99
+ to: '',
100
+ items: [
101
+ { name: 'work-zone', icon: 'videozones-icon', label: 'Видео зоны', to: '/work-zone' },
102
+ { name: 'video-source', icon: 'videosources-icon', label: 'Источники видео', to: '/video-source' },
103
+ { name: 'video-wall', icon: 'videowall-icon', label: 'Видео стена', to: '/video-wall' },
104
+ { name: 'checkpoints', icon: 'modules-icon', label: 'Контрольные точки', to: '/checkpoints' },
105
+ ],
106
+ },
107
+ { name: 'video-sync', icon: 'videozones-icon', label: 'Разметка видеозоны', to: '/video-sync' },
108
+ { name: 'notifications', icon: 'notifications-icon', label: 'Уведомления', to: '/notifications' },
109
+ { name: 'sign-out', icon: 'logout-icon', label: 'Выход', to: '/sign-out' },
110
+ ])
11
111
  </script>
12
112
  <style lang="scss"></style>
@@ -36,13 +36,12 @@ import Tasks_todayIcon from '@/icons/sidebar/tasks_today-icon.vue'
36
36
  import ArrowFrameIcon from '@/icons/components/arrow-frame-icon.vue'
37
37
 
38
38
  import { computed, defineProps } from 'vue'
39
- import { NamedColor } from 'quasar/dist/types/api'
40
39
 
41
40
  interface Props {
42
41
  size?: string | undefined
43
42
  tag?: string | undefined
44
43
  name: string
45
- color?: NamedColor | undefined
44
+ color?: string | undefined
46
45
  }
47
46
 
48
47
  const props = withDefaults(defineProps<Props>(), {
@@ -1,31 +1,31 @@
1
- <template>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- width="currentWidth"
5
- height="currentHeight"
6
- viewBox="0 0 24 24"
7
- fill="currentFill"
8
- >
9
- <path
10
- d="M13.01 2.91995L18.91 5.53995C20.61 6.28995 20.61 7.52995 18.91 8.27995L13.01 10.8999C12.34 11.1999 11.24 11.1999 10.57 10.8999L4.67002 8.27995C2.97002 7.52995 2.97002 6.28995 4.67002 5.53995L10.57 2.91995C11.24 2.61995 12.34 2.61995 13.01 2.91995Z"
11
- stroke="currentStroke"
12
- stroke-width="1.5"
13
- stroke-linecap="round"
14
- stroke-linejoin="round"
15
- />
16
- <path
17
- d="M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11"
18
- stroke="currentStroke"
19
- stroke-width="1.5"
20
- stroke-linecap="round"
21
- stroke-linejoin="round"
22
- />
23
- <path
24
- d="M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16"
25
- stroke="currentStroke"
26
- stroke-width="1.5"
27
- stroke-linecap="round"
28
- stroke-linejoin="round"
29
- />
30
- </svg>
31
- </template>
1
+ <template>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="currentWidth"
5
+ height="currentHeight"
6
+ viewBox="0 0 24 24"
7
+ fill="currentFill"
8
+ >
9
+ <path
10
+ d="M13.01 2.91995L18.91 5.53995C20.61 6.28995 20.61 7.52995 18.91 8.27995L13.01 10.8999C12.34 11.1999 11.24 11.1999 10.57 10.8999L4.67002 8.27995C2.97002 7.52995 2.97002 6.28995 4.67002 5.53995L10.57 2.91995C11.24 2.61995 12.34 2.61995 13.01 2.91995Z"
11
+ stroke="currentStroke"
12
+ stroke-width="1.5"
13
+ stroke-linecap="round"
14
+ stroke-linejoin="round"
15
+ />
16
+ <path
17
+ d="M3 11C3 11.84 3.63 12.81 4.4 13.15L11.19 16.17C11.71 16.4 12.3 16.4 12.81 16.17L19.6 13.15C20.37 12.81 21 11.84 21 11"
18
+ stroke="currentStroke"
19
+ stroke-width="1.5"
20
+ stroke-linecap="round"
21
+ stroke-linejoin="round"
22
+ />
23
+ <path
24
+ d="M3 16C3 16.93 3.55 17.77 4.4 18.15L11.19 21.17C11.71 21.4 12.3 21.4 12.81 21.17L19.6 18.15C20.45 17.77 21 16.93 21 16"
25
+ stroke="currentStroke"
26
+ stroke-width="1.5"
27
+ stroke-linecap="round"
28
+ stroke-linejoin="round"
29
+ />
30
+ </svg>
31
+ </template>
@@ -1,39 +1,39 @@
1
- <template>
2
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M12.3701 8.87988H17.6201"
5
- stroke="currentStroke"
6
- stroke-width="1.5"
7
- stroke-linecap="round"
8
- stroke-linejoin="round"
9
- />
10
- <path
11
- d="M6.37988 8.87988L7.12988 9.62988L9.37988 7.37988"
12
- stroke="currentStroke"
13
- stroke-width="1.5"
14
- stroke-linecap="round"
15
- stroke-linejoin="round"
16
- />
17
- <path
18
- d="M12.3701 15.8799H17.6201"
19
- stroke="currentStroke"
20
- stroke-width="1.5"
21
- stroke-linecap="round"
22
- stroke-linejoin="round"
23
- />
24
- <path
25
- d="M6.37988 15.8799L7.12988 16.6299L9.37988 14.3799"
26
- stroke="currentStroke"
27
- stroke-width="1.5"
28
- stroke-linecap="round"
29
- stroke-linejoin="round"
30
- />
31
- <path
32
- d="M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z"
33
- stroke="currentStroke"
34
- stroke-width="1.5"
35
- stroke-linecap="round"
36
- stroke-linejoin="round"
37
- />
38
- </svg>
39
- </template>
1
+ <template>
2
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path
4
+ d="M12.3701 8.87988H17.6201"
5
+ stroke="currentStroke"
6
+ stroke-width="1.5"
7
+ stroke-linecap="round"
8
+ stroke-linejoin="round"
9
+ />
10
+ <path
11
+ d="M6.37988 8.87988L7.12988 9.62988L9.37988 7.37988"
12
+ stroke="currentStroke"
13
+ stroke-width="1.5"
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ />
17
+ <path
18
+ d="M12.3701 15.8799H17.6201"
19
+ stroke="currentStroke"
20
+ stroke-width="1.5"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ />
24
+ <path
25
+ d="M6.37988 15.8799L7.12988 16.6299L9.37988 14.3799"
26
+ stroke="currentStroke"
27
+ stroke-width="1.5"
28
+ stroke-linecap="round"
29
+ stroke-linejoin="round"
30
+ />
31
+ <path
32
+ d="M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z"
33
+ stroke="currentStroke"
34
+ stroke-width="1.5"
35
+ stroke-linecap="round"
36
+ stroke-linejoin="round"
37
+ />
38
+ </svg>
39
+ </template>
@@ -1,27 +1,27 @@
1
- <template>
2
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <path
4
- d="M9.31006 14.7L10.8101 16.2L14.8101 12.2"
5
- stroke="currentStroke"
6
- stroke-width="1.5"
7
- stroke-linecap="round"
8
- stroke-linejoin="round"
9
- />
10
- <path
11
- d="M10 6H14C16 6 16 5 16 4C16 2 15 2 14 2H10C9 2 8 2 8 4C8 6 9 6 10 6Z"
12
- stroke="currentStroke"
13
- stroke-width="1.5"
14
- stroke-miterlimit="10"
15
- stroke-linecap="round"
16
- stroke-linejoin="round"
17
- />
18
- <path
19
- d="M16 4.02002C19.33 4.20002 21 5.43002 21 10V16C21 20 20 22 15 22H9C4 22 3 20 3 16V10C3 5.44002 4.67 4.20002 8 4.02002"
20
- stroke="currentStroke"
21
- stroke-width="1.5"
22
- stroke-miterlimit="10"
23
- stroke-linecap="round"
24
- stroke-linejoin="round"
25
- />
26
- </svg>
27
- </template>
1
+ <template>
2
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path
4
+ d="M9.31006 14.7L10.8101 16.2L14.8101 12.2"
5
+ stroke="currentStroke"
6
+ stroke-width="1.5"
7
+ stroke-linecap="round"
8
+ stroke-linejoin="round"
9
+ />
10
+ <path
11
+ d="M10 6H14C16 6 16 5 16 4C16 2 15 2 14 2H10C9 2 8 2 8 4C8 6 9 6 10 6Z"
12
+ stroke="currentStroke"
13
+ stroke-width="1.5"
14
+ stroke-miterlimit="10"
15
+ stroke-linecap="round"
16
+ stroke-linejoin="round"
17
+ />
18
+ <path
19
+ d="M16 4.02002C19.33 4.20002 21 5.43002 21 10V16C21 20 20 22 15 22H9C4 22 3 20 3 16V10C3 5.44002 4.67 4.20002 8 4.02002"
20
+ stroke="currentStroke"
21
+ stroke-width="1.5"
22
+ stroke-miterlimit="10"
23
+ stroke-linecap="round"
24
+ stroke-linejoin="round"
25
+ />
26
+ </svg>
27
+ </template>