shared-ritm 1.1.8 → 1.1.10

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.
Files changed (80) hide show
  1. package/dist/types/index.d.ts +3 -3
  2. package/package.json +10 -9
  3. package/src/App.vue +2411 -0
  4. package/src/api/services/AuthService.ts +41 -0
  5. package/src/api/services/GanttService.ts +17 -0
  6. package/src/api/services/MetricsService.ts +101 -0
  7. package/src/api/services/ProjectsService.ts +57 -0
  8. package/src/api/services/RepairsService.ts +82 -0
  9. package/src/api/services/TasksService.ts +27 -0
  10. package/src/api/settings/ApiService.ts +124 -0
  11. package/src/api/types/Api_Metrics.ts +0 -0
  12. package/src/api/types/Api_Projects.ts +33 -0
  13. package/src/api/types/Api_Repairs.ts +57 -0
  14. package/src/api/types/Api_Tasks.ts +124 -0
  15. package/src/common/app-button/AppButton.vue +173 -0
  16. package/src/common/app-checkbox/AppCheckbox.vue +26 -0
  17. package/src/common/app-date-picker/AppDatePicker.vue +66 -0
  18. package/src/common/app-icon/AppIcon.vue +104 -0
  19. package/src/common/app-input/AppInput.vue +147 -0
  20. package/src/common/app-input-search/AppInputSearch.vue +170 -0
  21. package/src/common/app-layout/AppLayout.vue +62 -0
  22. package/src/common/app-layout/components/AppLayoutHeader.vue +124 -0
  23. package/src/common/app-loader/index.vue +43 -0
  24. package/src/common/app-page-layout/AppPageLayout.vue +122 -0
  25. package/src/common/app-select/AppSelect.vue +157 -0
  26. package/src/common/app-sheet/AppSheet.vue +114 -0
  27. package/src/common/app-sidebar/AppSidebar.vue +167 -0
  28. package/src/common/app-sidebar/components/SidebarMenu.vue +29 -0
  29. package/src/common/app-sidebar/components/SidebarMenuItem.vue +137 -0
  30. package/src/common/app-toggle/AppToggle.vue +23 -0
  31. package/src/common/app-wrapper/AppWrapper.vue +28 -0
  32. package/src/global.d.ts +1 -0
  33. package/src/icons/components/arrow-down-icon.vue +25 -0
  34. package/src/icons/components/arrow-frame-icon.vue +19 -0
  35. package/src/icons/components/arrow-square.vue +22 -0
  36. package/src/icons/header/flashIcon.vue +24 -0
  37. package/src/icons/header/notificationIcon.vue +18 -0
  38. package/src/icons/header/searchStatusIcon.vue +24 -0
  39. package/src/icons/header/smallCapsIcon.vue +34 -0
  40. package/src/icons/sidebar/assign-module-icon.vue +36 -0
  41. package/src/icons/sidebar/instrument-history-icon.vue +32 -0
  42. package/src/icons/sidebar/instrument-order-icon.vue +38 -0
  43. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -0
  44. package/src/icons/sidebar/instruments-icon.vue +45 -0
  45. package/src/icons/sidebar/logo-icon.vue +15 -0
  46. package/src/icons/sidebar/logout-icon.vue +13 -0
  47. package/src/icons/sidebar/modules-icon.vue +16 -0
  48. package/src/icons/sidebar/notifications-icon.vue +24 -0
  49. package/src/icons/sidebar/order-icon.vue +44 -0
  50. package/src/icons/sidebar/pass-icon.vue +38 -0
  51. package/src/icons/sidebar/positions-icon.vue +42 -0
  52. package/src/icons/sidebar/preorder-icon.vue +19 -0
  53. package/src/icons/sidebar/projects-icon.vue +31 -0
  54. package/src/icons/sidebar/repair-object-icon.vue +18 -0
  55. package/src/icons/sidebar/repairs-icon.vue +20 -0
  56. package/src/icons/sidebar/roles-icon.vue +26 -0
  57. package/src/icons/sidebar/status-history-icon.vue +24 -0
  58. package/src/icons/sidebar/tasks-icon.vue +28 -0
  59. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -0
  60. package/src/icons/sidebar/tasks_today-icon.vue +27 -0
  61. package/src/icons/sidebar/teams-icon.vue +32 -0
  62. package/src/icons/sidebar/user-icon.vue +18 -0
  63. package/src/icons/sidebar/users-icon.vue +46 -0
  64. package/src/icons/sidebar/videosources-icon.vue +19 -0
  65. package/src/icons/sidebar/videowall-icon.vue +13 -0
  66. package/src/icons/sidebar/videozones-icon.vue +21 -0
  67. package/src/icons/sidebar/warehouses-icon.vue +43 -0
  68. package/src/icons/sidebar/workshop-icon.vue +100 -0
  69. package/src/icons/sidebar/workzones-icon.vue +22 -0
  70. package/src/index.ts +57 -0
  71. package/src/main.ts +15 -0
  72. package/src/quasar-user-options.ts +17 -0
  73. package/src/shared/fonts/Montserrat-Bold.ttf +0 -0
  74. package/src/shared/fonts/Montserrat.ttf +0 -0
  75. package/src/shared/fonts/NunitoSansFont.ttf +0 -0
  76. package/src/shared/fonts/NunitoSans_7pt-Bold.ttf +0 -0
  77. package/src/shared/styles/general.css +96 -0
  78. package/src/shims-vue.d.ts +5 -0
  79. package/src/styles/variables.sass +12 -0
  80. package/src/utils/notification.ts +13 -0
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M2 12H22" stroke="currentStroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
4
+ <path
5
+ d="M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z"
6
+ stroke="currentStroke"
7
+ stroke-width="1.5"
8
+ stroke-linecap="round"
9
+ stroke-linejoin="round"
10
+ />
11
+ <path d="M12 2V22" stroke="currentStroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
12
+ </svg>
13
+ </template>
@@ -0,0 +1,21 @@
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="M21.0801 8.58003V15.42C21.0801 16.54 20.4802 17.58 19.5102 18.15L13.5702 21.58C12.6002 22.14 11.4002 22.14 10.4202 21.58L4.48016 18.15C3.51016 17.59 2.91016 16.55 2.91016 15.42V8.58003C2.91016 7.46003 3.51016 6.41999 4.48016 5.84999L10.4202 2.42C11.3902 1.86 12.5902 1.86 13.5702 2.42L19.5102 5.84999C20.4802 6.41999 21.0801 7.45003 21.0801 8.58003Z"
5
+ stroke="currentStroke"
6
+ stroke-width="1.5"
7
+ stroke-linecap="round"
8
+ stroke-linejoin="round"
9
+ />
10
+ <path
11
+ d="M9.75 12V10.8C9.75 9.26001 10.84 8.63005 12.17 9.40005L13.21 10L14.25 10.6C15.58 11.37 15.58 12.63 14.25 13.4L13.21 14L12.17 14.6C10.84 15.37 9.75 14.74 9.75 13.2V12Z"
12
+ stroke="currentStroke"
13
+ stroke-width="1.5"
14
+ stroke-miterlimit="10"
15
+ stroke-linecap="round"
16
+ stroke-linejoin="round"
17
+ />
18
+ </svg>
19
+ </template>
20
+
21
+ <script setup lang="ts"></script>
@@ -0,0 +1,43 @@
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="M15.5 11H8.5C7.67 11 7 11.67 7 12.5V22H17V12.5C17 11.67 16.33 11 15.5 11Z"
5
+ stroke="currentStroke"
6
+ stroke-width="1.5"
7
+ stroke-miterlimit="10"
8
+ stroke-linecap="round"
9
+ stroke-linejoin="round"
10
+ />
11
+ <path
12
+ d="M2 22H22"
13
+ stroke="currentStroke"
14
+ stroke-width="1.5"
15
+ stroke-miterlimit="10"
16
+ stroke-linecap="round"
17
+ stroke-linejoin="round"
18
+ />
19
+ <path
20
+ d="M2.94995 22L2.99995 9.96999C2.99995 9.35999 3.28995 8.78004 3.76995 8.40004L10.77 2.95003C11.49 2.39003 12.5 2.39003 13.23 2.95003L20.23 8.39003C20.72 8.77003 21 9.34999 21 9.96999V22"
21
+ stroke="currentStroke"
22
+ stroke-width="1.5"
23
+ stroke-miterlimit="10"
24
+ stroke-linejoin="round"
25
+ />
26
+ <path
27
+ d="M10 16.25V17.75"
28
+ stroke="currentStroke"
29
+ stroke-width="1.5"
30
+ stroke-miterlimit="10"
31
+ stroke-linecap="round"
32
+ stroke-linejoin="round"
33
+ />
34
+ <path
35
+ d="M10.5 7.5H13.5"
36
+ stroke="currentStroke"
37
+ stroke-width="1.5"
38
+ stroke-miterlimit="10"
39
+ stroke-linecap="round"
40
+ stroke-linejoin="round"
41
+ />
42
+ </svg>
43
+ </template>
@@ -0,0 +1,100 @@
1
+ <template>
2
+ <svg width="24" height="24" viewBox="0 0 24 30" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <g filter="url(#filter0_d_116_6675)">
4
+ <path d="M11.99 12V22" stroke="currentStroke" stroke-width="1.5" stroke-miterlimit="10" stroke-linejoin="round" />
5
+ </g>
6
+ <g filter="url(#filter1_d_116_6675)">
7
+ <path d="M15.99 12V22" stroke="currentStroke" stroke-width="1.5" stroke-miterlimit="10" stroke-linejoin="round" />
8
+ </g>
9
+ <path
10
+ d="M2 22H22"
11
+ stroke="currentStroke"
12
+ stroke-width="1.5"
13
+ stroke-miterlimit="10"
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ />
17
+ <path
18
+ d="M12 2C13.6 2.64 15.4 2.64 17 2V5C15.4 5.64 13.6 5.64 12 5V2Z"
19
+ stroke="currentStroke"
20
+ stroke-width="1.5"
21
+ stroke-miterlimit="10"
22
+ stroke-linecap="round"
23
+ stroke-linejoin="round"
24
+ />
25
+ <path
26
+ d="M12 5V8"
27
+ stroke="currentStroke"
28
+ stroke-width="1.5"
29
+ stroke-miterlimit="10"
30
+ stroke-linecap="round"
31
+ stroke-linejoin="round"
32
+ />
33
+ <path
34
+ d="M17 8H7C5 8 4 9 4 11V22H20V11C20 9 19 8 17 8Z"
35
+ stroke="currentStroke"
36
+ stroke-width="1.5"
37
+ stroke-miterlimit="10"
38
+ stroke-linecap="round"
39
+ stroke-linejoin="round"
40
+ />
41
+ <path
42
+ d="M4.58008 12H19.4201"
43
+ stroke="currentStroke"
44
+ stroke-width="1.5"
45
+ stroke-miterlimit="10"
46
+ stroke-linecap="round"
47
+ stroke-linejoin="round"
48
+ />
49
+ <path d="M7.98999 12V22" stroke="currentStroke" stroke-width="1.5" stroke-miterlimit="10" stroke-linejoin="round" />
50
+ <defs>
51
+ <filter
52
+ id="filter0_d_116_6675"
53
+ x="7.23999"
54
+ y="12"
55
+ width="9.5"
56
+ height="18"
57
+ filterUnits="userSpaceOnUse"
58
+ color-interpolation-filters="sRGB"
59
+ >
60
+ <feFlood flood-opacity="0" result="BackgroundImageFix" />
61
+ <feColorMatrix
62
+ in="SourceAlpha"
63
+ type="matrix"
64
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
65
+ result="hardAlpha"
66
+ />
67
+ <feOffset dy="4" />
68
+ <feGaussianBlur stdDeviation="2" />
69
+ <feComposite in2="hardAlpha" operator="out" />
70
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" />
71
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_116_6675" />
72
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_116_6675" result="shape" />
73
+ </filter>
74
+ <filter
75
+ id="filter1_d_116_6675"
76
+ x="11.24"
77
+ y="12"
78
+ width="9.5"
79
+ height="18"
80
+ filterUnits="userSpaceOnUse"
81
+ color-interpolation-filters="sRGB"
82
+ >
83
+ <feFlood flood-opacity="0" result="BackgroundImageFix" />
84
+ <feColorMatrix
85
+ in="SourceAlpha"
86
+ type="matrix"
87
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
88
+ result="hardAlpha"
89
+ />
90
+ <feOffset dy="4" />
91
+ <feGaussianBlur stdDeviation="2" />
92
+ <feComposite in2="hardAlpha" operator="out" />
93
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" />
94
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_116_6675" />
95
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_116_6675" result="shape" />
96
+ </filter>
97
+ </defs>
98
+ </svg>
99
+ </template>
100
+ <script setup lang="ts"></script>
@@ -0,0 +1,22 @@
1
+ <template>
2
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M17 3H21V7" stroke="currentStroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
4
+ <path d="M15 9L21 3" stroke="currentStroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
5
+ <path d="M7 21H3V17" stroke="currentStroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
6
+ <path d="M9 15L3 21" stroke="currentStroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
7
+ <path
8
+ d="M14.02 2.20001C13.37 2.07001 12.69 2 12 2C6.48 2 2 6.48 2 12C2 12.69 2.07001 13.36 2.20001 14"
9
+ stroke="currentStroke"
10
+ stroke-width="1.5"
11
+ stroke-linecap="round"
12
+ stroke-linejoin="round"
13
+ />
14
+ <path
15
+ d="M9.97998 21.8C10.63 21.93 11.31 22 12 22C17.52 22 22 17.52 22 12C22 11.32 21.93 10.65 21.8 10"
16
+ stroke="currentStroke"
17
+ stroke-width="1.5"
18
+ stroke-linecap="round"
19
+ stroke-linejoin="round"
20
+ />
21
+ </svg>
22
+ </template>
package/src/index.ts ADDED
@@ -0,0 +1,57 @@
1
+ import '@/shared/styles/general.css'
2
+ import AppButton from '@/common/app-button/AppButton.vue'
3
+ import AppCheckbox from '@/common/app-checkbox/AppCheckbox.vue'
4
+ import AppDatePicker from '@/common/app-date-picker/AppDatePicker.vue'
5
+ import AppInput from '@/common/app-input/AppInput.vue'
6
+ import AppInputSearch from '@/common/app-input-search/AppInputSearch.vue'
7
+ import AppLayout from '@/common/app-layout/AppLayout.vue'
8
+ import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue'
9
+ import AppLoader from '@/common/app-loader/index.vue'
10
+ import AppSelect from '@/common/app-select/AppSelect.vue'
11
+ import AppSheet from '@/common/app-sheet/AppSheet.vue'
12
+ import AppSidebar from '@/common/app-sidebar/AppSidebar.vue'
13
+ import AppToggle from '@/common/app-toggle/AppToggle.vue'
14
+ import AppWrapper from '@/common/app-wrapper/AppWrapper.vue'
15
+
16
+ import useGanttService from '@/api/services/GanttService'
17
+ import useMetricsService from '@/api/services/MetricsService'
18
+ import useProjectsService from '@/api/services/ProjectsService'
19
+ import useRepairsService from '@/api/services/RepairsService'
20
+ import useTasksService from '@/api/services/TasksService'
21
+ import useAuthService from '@/api/services/AuthService'
22
+ import ApiService from '@/api/settings/ApiService'
23
+
24
+ import notification from '@/utils/notification'
25
+
26
+ export {
27
+ AppButton,
28
+ AppCheckbox,
29
+ AppDatePicker,
30
+ AppInput,
31
+ AppInputSearch,
32
+ AppLayout,
33
+ AppLayoutHeader,
34
+ AppLoader,
35
+ AppSelect,
36
+ AppSheet,
37
+ AppSidebar,
38
+ AppToggle,
39
+ AppWrapper,
40
+ }
41
+
42
+ export {
43
+ ApiService,
44
+ useAuthService,
45
+ useGanttService,
46
+ useMetricsService,
47
+ useProjectsService,
48
+ useRepairsService,
49
+ useTasksService,
50
+ }
51
+
52
+ export { notification }
53
+
54
+ export * from './api/types/Api_Tasks'
55
+ export * from './api/types/Api_Repairs'
56
+ export * from './api/types/Api_Projects'
57
+ // export * from '@/api/types/Api_Metrics'
package/src/main.ts ADDED
@@ -0,0 +1,15 @@
1
+ import { createApp } from 'vue'
2
+ import { Quasar } from 'quasar'
3
+
4
+ import '@quasar/extras/material-icons/material-icons.css'
5
+ import 'quasar/src/css/index.sass'
6
+
7
+ import '@/shared/styles/general.css'
8
+
9
+ import App from './App.vue'
10
+
11
+ const app = createApp(App)
12
+
13
+ //@ts-ignore
14
+ app.use(Quasar, { plugins: [] })
15
+ app.mount('#app')
@@ -0,0 +1,17 @@
1
+ import { Quasar, Notify, Loading, Dialog } from 'quasar'
2
+
3
+ import 'quasar/src/css/index.sass'
4
+ import '@quasar/extras/roboto-font/roboto-font.css'
5
+ import '@quasar/extras/material-icons/material-icons.css'
6
+ import '@quasar/extras/material-icons-outlined/material-icons-outlined.css'
7
+ import '@quasar/extras/mdi-v7/mdi-v7.css'
8
+
9
+ const quasarUserOptions = {
10
+ plugins: {
11
+ Notify,
12
+ Loading,
13
+ Dialog,
14
+ },
15
+ }
16
+
17
+ export { Quasar, quasarUserOptions }
Binary file
@@ -0,0 +1,96 @@
1
+
2
+ :root {
3
+ --main-header-height: 73px;
4
+ --main-footer-height: 66px;
5
+ --sidebar-width-max: 250px;
6
+ --sidebar-width-min: 66px;
7
+ }
8
+
9
+ /*border-radius*/
10
+ :root {
11
+ --border-radius-xxs: 4px;
12
+ --border-radius-xs: 8px;
13
+ --border-radius-s: 12px;
14
+ --border-radius-m: 16px;
15
+ }
16
+
17
+ /*color*/
18
+ :root {
19
+ --g-blue: #3F8CFF;
20
+ --g-blue-light: #E4EFFF;
21
+ --g-blue-dark: #1C75FF;
22
+ --g-green: #00D097;
23
+ --g-green-light: #E0F9F2;
24
+ --g-green-dark: #B8F8E7;
25
+ --g-red: #FF192D;
26
+ --g-red-light: #FDECEE;
27
+ --g-red-dark: #ffdcde;
28
+ --g-grey-100: #D8E0F0;
29
+
30
+ --g-font-color: #0A1629;
31
+ --g-font-grey-color: #B9C0C7;
32
+ --g-font-secondary-color: #7D8592;
33
+
34
+ --g-grey-background: #CED5E0;
35
+ --g-grey-hover-background: #9fa5af;
36
+ --g-secondary-background: #F4F9FD;
37
+ --g-thirty-background: #c8cbcf;
38
+
39
+ --g-fire-color-1: #FEE7E7;
40
+ --g-fire-color-2: #FED4D5;
41
+ --g-fire-color-3: #FCC0C0;
42
+ --g-fire-color-4: #F9A2A2;
43
+ --g-fire-color-5: #F97D7E;
44
+ --g-fire-color-6: #F65160;
45
+ --g-fire-color-7: #FF192D;
46
+ --g-fire-color-8: #AB0514;
47
+ --g-fire-color-9: #6E000A;
48
+ }
49
+
50
+ * {
51
+ margin: 0;
52
+ padding: 0;
53
+ }
54
+
55
+ button:active, button:focus {
56
+ outline: none !important;
57
+ }
58
+
59
+ html {
60
+ font-family: 'NunitoSansFont', sans-serif !important;
61
+ }
62
+
63
+ .ant-dropdown {
64
+ z-index: 10000;
65
+ .content {
66
+ z-index: 10000;
67
+ }
68
+ }
69
+
70
+ @font-face {
71
+ font-family: 'NunitoSansFont';
72
+ src: local('NunitoSansFont-Regular'), url('../fonts/NunitoSansFont.ttf') format('truetype');
73
+ font-weight: 400;
74
+ font-style: normal;
75
+ }
76
+
77
+ @font-face {
78
+ font-family: 'NunitoSansFont';
79
+ src: local('NunitoSansFont-Bold'), url('../fonts/NunitoSans_7pt-Bold.ttf') format('truetype');
80
+ font-weight: 700;
81
+ font-style: normal;
82
+ }
83
+
84
+ @font-face {
85
+ font-family: 'Montserrat';
86
+ src: local('Montserrat-Regular'), url('../fonts/Montserrat.ttf') format('truetype');
87
+ font-weight: 400;
88
+ font-style: normal;
89
+ }
90
+
91
+ @font-face {
92
+ font-family: 'Montserrat';
93
+ src: local('Montserrat-Bold'), url('../fonts/Montserrat-Bold.ttf') format('truetype');
94
+ font-weight: 700;
95
+ font-style: normal;
96
+ }
@@ -0,0 +1,5 @@
1
+ declare module '*.vue' {
2
+ import { DefineComponent } from 'vue'
3
+ const component: DefineComponent<{}, {}, any>
4
+ export default component
5
+ }
@@ -0,0 +1,12 @@
1
+ $primary : #1976D2
2
+ $secondary : #C4C4C4
3
+ $accent : #665BA6
4
+ $positive : #3B9F69
5
+ $negative : #C10015
6
+ $info : #31CCEC
7
+ $warning : #F2C037
8
+
9
+ $dark : #1D1D1D
10
+ $dark-page : #121212
11
+
12
+ $secondary: #1D1D1D
@@ -0,0 +1,13 @@
1
+ import { useQuasar } from 'quasar'
2
+
3
+ const $q = useQuasar()
4
+
5
+ export type NotificationType = 'danger' | 'success' | 'warning' | 'info' | 'default'
6
+
7
+ export default function notification(type: NotificationType, message: string): void {
8
+ $q.notify({
9
+ message,
10
+ color: type === 'danger' ? 'red' : type === 'success' ? 'green' : type === 'warning' ? 'orange' : 'white',
11
+ position: 'top-right',
12
+ })
13
+ }