shared-ritm 1.3.125 → 1.3.126

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 (82) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +502 -484
  3. package/dist/shared-ritm.umd.js +3 -3
  4. package/dist/types/api/services/MetricsService.d.ts +0 -1
  5. package/dist/types/api/services/PhotoService.d.ts +40 -0
  6. package/dist/types/stories/Button.stories.d.ts +13 -0
  7. package/dist/types/stories/Checkbox.stories.d.ts +7 -0
  8. package/dist/types/stories/Confirm.stories.d.ts +8 -0
  9. package/dist/types/stories/DatePicker.stories.d.ts +8 -0
  10. package/dist/types/stories/Dropdown.stories.d.ts +8 -0
  11. package/dist/types/stories/File.stories.d.ts +8 -0
  12. package/dist/types/stories/Icon.stories.d.ts +7 -0
  13. package/dist/types/stories/Input.stories.d.ts +11 -0
  14. package/dist/types/stories/InputNew.stories.d.ts +12 -0
  15. package/dist/types/stories/InputSearch.stories.d.ts +10 -0
  16. package/dist/types/stories/Loader.stories.d.ts +8 -0
  17. package/dist/types/stories/Select.stories.d.ts +7 -0
  18. package/dist/types/stories/Toggle.stories.d.ts +8 -0
  19. package/package.json +70 -70
  20. package/src/App.vue +2461 -2461
  21. package/src/api/services/AuthService.ts +67 -67
  22. package/src/api/services/ControlsService.ts +100 -100
  23. package/src/api/services/EquipmentService.ts +68 -68
  24. package/src/api/services/GanttService.ts +58 -58
  25. package/src/api/services/InstrumentsService.ts +76 -76
  26. package/src/api/services/MetricsService.ts +0 -3
  27. package/src/api/services/RepairsService.ts +111 -111
  28. package/src/api/services/TasksService.ts +165 -165
  29. package/src/api/services/UserIssueService.ts +32 -32
  30. package/src/api/services/UserService.ts +129 -129
  31. package/src/api/services/VideoService.ts +118 -118
  32. package/src/api/settings/ApiService.ts +185 -185
  33. package/src/api/types/Api_Auth.ts +121 -121
  34. package/src/api/types/Api_Controls.ts +112 -112
  35. package/src/api/types/Api_Equipment.ts +54 -54
  36. package/src/api/types/Api_Instruments.ts +182 -182
  37. package/src/api/types/Api_Metrics.ts +89 -89
  38. package/src/api/types/Api_Repairs.ts +200 -200
  39. package/src/api/types/Api_Search.ts +81 -81
  40. package/src/api/types/Api_Tasks.ts +378 -378
  41. package/src/api/types/Api_User.ts +161 -161
  42. package/src/api/types/Api_User_Issue.ts +36 -36
  43. package/src/api/types/Api_Video.ts +244 -244
  44. package/src/common/app-button/Button.stories.ts +369 -369
  45. package/src/common/app-checkbox/AppCheckbox.vue +33 -31
  46. package/src/common/app-checkbox/Checkbox.stories.ts +252 -252
  47. package/src/common/app-date-picker/DatePicker.stories.ts +66 -66
  48. package/src/common/app-datepicker/Datepicker.stories.ts +145 -145
  49. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  50. package/src/common/app-dialogs/Confirm.stories.ts +93 -93
  51. package/src/common/app-dropdown/Dropdown.stories.ts +94 -94
  52. package/src/common/app-file/File.stories.ts +104 -104
  53. package/src/common/app-icon/AppIcon.vue +110 -110
  54. package/src/common/app-icon/Icon.stories.ts +91 -91
  55. package/src/common/app-input/AppInput.vue +150 -150
  56. package/src/common/app-input/Input.stories.ts +160 -160
  57. package/src/common/app-input-new/AppInputNew.vue +181 -181
  58. package/src/common/app-input-new/InputNew.stories.ts +240 -240
  59. package/src/common/app-input-search/InputSearch.stories.ts +149 -149
  60. package/src/common/app-layout/components/AppLayoutHeader.vue +289 -289
  61. package/src/common/app-loader/Loader.stories.ts +114 -114
  62. package/src/common/app-modal/index.vue +101 -101
  63. package/src/common/app-select/AppSelect.vue +159 -159
  64. package/src/common/app-select/Select.stories.ts +155 -155
  65. package/src/common/app-sheet-new/AppSheetNew.vue +254 -254
  66. package/src/common/app-sidebar/AppSidebar.vue +177 -177
  67. package/src/common/app-table/AppTable.vue +313 -313
  68. package/src/common/app-table/components/ModalSelect.stories.ts +323 -323
  69. package/src/common/app-table/components/ModalSelect.vue +311 -302
  70. package/src/common/app-table/components/TableModal.vue +369 -369
  71. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  72. package/src/common/app-table/controllers/useTableModel.ts +98 -98
  73. package/src/common/app-toggle/AppToggle.vue +12 -12
  74. package/src/common/app-toggle/Toggle.stories.ts +245 -245
  75. package/src/common/app-wrapper/AppWrapper.vue +31 -31
  76. package/src/configs/storybook.ts +14 -14
  77. package/src/icons/sidebar/user-requests-icon.vue +23 -23
  78. package/src/index.ts +134 -134
  79. package/src/shared/styles/general.css +140 -140
  80. package/src/styles/variables.sass +12 -12
  81. package/src/utils/files.ts +38 -38
  82. package/src/utils/helpers.ts +59 -59
package/src/index.ts CHANGED
@@ -1,134 +1,134 @@
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 AppDatepicker from './common/app-datepicker/AppDatepicker.vue'
6
- import AppInput from './common/app-input/AppInput.vue'
7
- import AppInputNew from './common/app-input-new/AppInputNew.vue'
8
- import AppInputSearch from './common/app-input-search/AppInputSearch.vue'
9
- import AppLayout from './common/app-layout/AppLayout.vue'
10
- import AppLayoutHeader from './common/app-layout/components/AppLayoutHeader.vue'
11
- import AppLayoutPage from './common/app-layout/components/AppLayoutPage.vue'
12
- import AppLoader from './common/app-loader/index.vue'
13
- import AppSelect from './common/app-select/AppSelect.vue'
14
- import AppSheet from './common/app-sheet/AppSheet.vue'
15
- import AppSheetNew from './common/app-sheet-new/AppSheetNew.vue'
16
- import AppSidebar from './common/app-sidebar/AppSidebar.vue'
17
- import AppToggle from './common/app-toggle/AppToggle.vue'
18
- import AppWrapper from './common/app-wrapper/AppWrapper.vue'
19
- import AppConfirmDialog from './common/app-dialogs/AppConfirmDialog.vue'
20
- import AppDropdown from './common/app-dropdown/AppDropdown.vue'
21
- import AppTablePagination from './common/app-table/components/TablePagination.vue'
22
- import AppTableSearch from './common/app-table/components/TableSearch.vue'
23
- import AppTableModal from './common/app-table/components/TableModal.vue'
24
- import AppTable from './common/app-table/AppTable.vue'
25
- import AppTableLayout from './common/app-table/AppTableLayout.vue'
26
- import AppModalSelect from './common/app-table/components/ModalSelect.vue'
27
- import AppModal from './common/app-modal/index.vue'
28
- import AppFile from './common/app-file/AppFile.vue'
29
-
30
- import ApiService from './api/settings/ApiService'
31
- import useGanttService from './api/services/GanttService'
32
- import useMetricsService from './api/services/MetricsService'
33
- import useProjectsService from './api/services/ProjectsService'
34
- import useRepairsService from './api/services/RepairsService'
35
- import useTasksService from './api/services/TasksService'
36
- import useAuthService from './api/services/AuthService'
37
- import useFileService from './api/services/FileService'
38
- import useVideoService from './api/services/VideoService'
39
- import useUserService from './api/services/UserService'
40
- import useInstrumentsService from './api/services/InstrumentsService'
41
- import useControlsService from './api/services/ControlsService'
42
- import useSearchService from './api/services/SearchService'
43
- import useModulesService from './api/services/ModulesService'
44
- import useCommentsService from './api/services/CommentsService'
45
- import useEquipmentService from './api/services/EquipmentService'
46
- import useBrigadesService from './api/services/BrigadesService'
47
- import useScheduleService from './api/services/ScheduleService'
48
- import useUserIssueService from './api/services/UserIssueService'
49
-
50
- import useFaceApiHelper from './utils/faceApiHelper'
51
-
52
- export {
53
- AppButton,
54
- AppCheckbox,
55
- AppDatepicker,
56
- AppDatePicker,
57
- AppInput,
58
- AppInputNew,
59
- AppInputSearch,
60
- AppLayout,
61
- AppLayoutHeader,
62
- AppLayoutPage,
63
- AppLoader,
64
- AppSelect,
65
- AppSheet,
66
- AppSheetNew,
67
- AppSidebar,
68
- AppToggle,
69
- AppWrapper,
70
- AppConfirmDialog,
71
- AppDropdown,
72
- AppTablePagination,
73
- AppTableSearch,
74
- AppTableModal,
75
- AppTable,
76
- AppTableLayout,
77
- AppModalSelect,
78
- AppModal,
79
- AppFile,
80
- }
81
-
82
- export {
83
- ApiService,
84
- useAuthService,
85
- useGanttService,
86
- useMetricsService,
87
- useProjectsService,
88
- useRepairsService,
89
- useTasksService,
90
- useFileService,
91
- useControlsService,
92
- useVideoService,
93
- useUserService,
94
- useInstrumentsService,
95
- useSearchService,
96
- useModulesService,
97
- useCommentsService,
98
- useFaceApiHelper,
99
- useEquipmentService,
100
- useBrigadesService,
101
- useScheduleService,
102
- useUserIssueService,
103
- }
104
-
105
- export { useBaseTable } from './common/app-table/controllers/useBaseTable'
106
- export { useTableModel } from './common/app-table/controllers/useTableModel'
107
- export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
108
-
109
- export type { FilterOption, TableModel, TableColumn } from './common/app-table/controllers/useTableModel'
110
-
111
- export type { NotificationType } from './utils/notification'
112
- export { notificationSettings } from './utils/notification'
113
-
114
- export * from './utils/helpers'
115
- export * from './utils/files'
116
-
117
- export * from './api/types/Api_Service'
118
- export * from './api/types/Api_Auth'
119
- export * from './api/types/Api_Tasks'
120
- export * from './api/types/Api_Repairs'
121
- export * from './api/types/Api_Projects'
122
- export * from './api/types/Api_Controls'
123
- export * from './api/types/Api_Instruments'
124
- export * from './api/types/Api_Search'
125
- export * from './api/types/Api_User'
126
- export * from './api/types/Api_Comment'
127
- export * from './api/types/Api_Files'
128
- export * from './api/types/Api_Video'
129
- export * from './api/types/Api_Equipment'
130
- export * from './api/types/Api_Brigades'
131
- export * from './api/types/Api_Modules'
132
- export * from './api/types/Api_Schedule'
133
- export * from './api/types/Api_Metrics'
134
- export * from './api/types/Api_User_Issue'
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 AppDatepicker from './common/app-datepicker/AppDatepicker.vue'
6
+ import AppInput from './common/app-input/AppInput.vue'
7
+ import AppInputNew from './common/app-input-new/AppInputNew.vue'
8
+ import AppInputSearch from './common/app-input-search/AppInputSearch.vue'
9
+ import AppLayout from './common/app-layout/AppLayout.vue'
10
+ import AppLayoutHeader from './common/app-layout/components/AppLayoutHeader.vue'
11
+ import AppLayoutPage from './common/app-layout/components/AppLayoutPage.vue'
12
+ import AppLoader from './common/app-loader/index.vue'
13
+ import AppSelect from './common/app-select/AppSelect.vue'
14
+ import AppSheet from './common/app-sheet/AppSheet.vue'
15
+ import AppSheetNew from './common/app-sheet-new/AppSheetNew.vue'
16
+ import AppSidebar from './common/app-sidebar/AppSidebar.vue'
17
+ import AppToggle from './common/app-toggle/AppToggle.vue'
18
+ import AppWrapper from './common/app-wrapper/AppWrapper.vue'
19
+ import AppConfirmDialog from './common/app-dialogs/AppConfirmDialog.vue'
20
+ import AppDropdown from './common/app-dropdown/AppDropdown.vue'
21
+ import AppTablePagination from './common/app-table/components/TablePagination.vue'
22
+ import AppTableSearch from './common/app-table/components/TableSearch.vue'
23
+ import AppTableModal from './common/app-table/components/TableModal.vue'
24
+ import AppTable from './common/app-table/AppTable.vue'
25
+ import AppTableLayout from './common/app-table/AppTableLayout.vue'
26
+ import AppModalSelect from './common/app-table/components/ModalSelect.vue'
27
+ import AppModal from './common/app-modal/index.vue'
28
+ import AppFile from './common/app-file/AppFile.vue'
29
+
30
+ import ApiService from './api/settings/ApiService'
31
+ import useGanttService from './api/services/GanttService'
32
+ import useMetricsService from './api/services/MetricsService'
33
+ import useProjectsService from './api/services/ProjectsService'
34
+ import useRepairsService from './api/services/RepairsService'
35
+ import useTasksService from './api/services/TasksService'
36
+ import useAuthService from './api/services/AuthService'
37
+ import useFileService from './api/services/FileService'
38
+ import useVideoService from './api/services/VideoService'
39
+ import useUserService from './api/services/UserService'
40
+ import useInstrumentsService from './api/services/InstrumentsService'
41
+ import useControlsService from './api/services/ControlsService'
42
+ import useSearchService from './api/services/SearchService'
43
+ import useModulesService from './api/services/ModulesService'
44
+ import useCommentsService from './api/services/CommentsService'
45
+ import useEquipmentService from './api/services/EquipmentService'
46
+ import useBrigadesService from './api/services/BrigadesService'
47
+ import useScheduleService from './api/services/ScheduleService'
48
+ import useUserIssueService from './api/services/UserIssueService'
49
+
50
+ import useFaceApiHelper from './utils/faceApiHelper'
51
+
52
+ export {
53
+ AppButton,
54
+ AppCheckbox,
55
+ AppDatepicker,
56
+ AppDatePicker,
57
+ AppInput,
58
+ AppInputNew,
59
+ AppInputSearch,
60
+ AppLayout,
61
+ AppLayoutHeader,
62
+ AppLayoutPage,
63
+ AppLoader,
64
+ AppSelect,
65
+ AppSheet,
66
+ AppSheetNew,
67
+ AppSidebar,
68
+ AppToggle,
69
+ AppWrapper,
70
+ AppConfirmDialog,
71
+ AppDropdown,
72
+ AppTablePagination,
73
+ AppTableSearch,
74
+ AppTableModal,
75
+ AppTable,
76
+ AppTableLayout,
77
+ AppModalSelect,
78
+ AppModal,
79
+ AppFile,
80
+ }
81
+
82
+ export {
83
+ ApiService,
84
+ useAuthService,
85
+ useGanttService,
86
+ useMetricsService,
87
+ useProjectsService,
88
+ useRepairsService,
89
+ useTasksService,
90
+ useFileService,
91
+ useControlsService,
92
+ useVideoService,
93
+ useUserService,
94
+ useInstrumentsService,
95
+ useSearchService,
96
+ useModulesService,
97
+ useCommentsService,
98
+ useFaceApiHelper,
99
+ useEquipmentService,
100
+ useBrigadesService,
101
+ useScheduleService,
102
+ useUserIssueService,
103
+ }
104
+
105
+ export { useBaseTable } from './common/app-table/controllers/useBaseTable'
106
+ export { useTableModel } from './common/app-table/controllers/useTableModel'
107
+ export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
108
+
109
+ export type { FilterOption, TableModel, TableColumn } from './common/app-table/controllers/useTableModel'
110
+
111
+ export type { NotificationType } from './utils/notification'
112
+ export { notificationSettings } from './utils/notification'
113
+
114
+ export * from './utils/helpers'
115
+ export * from './utils/files'
116
+
117
+ export * from './api/types/Api_Service'
118
+ export * from './api/types/Api_Auth'
119
+ export * from './api/types/Api_Tasks'
120
+ export * from './api/types/Api_Repairs'
121
+ export * from './api/types/Api_Projects'
122
+ export * from './api/types/Api_Controls'
123
+ export * from './api/types/Api_Instruments'
124
+ export * from './api/types/Api_Search'
125
+ export * from './api/types/Api_User'
126
+ export * from './api/types/Api_Comment'
127
+ export * from './api/types/Api_Files'
128
+ export * from './api/types/Api_Video'
129
+ export * from './api/types/Api_Equipment'
130
+ export * from './api/types/Api_Brigades'
131
+ export * from './api/types/Api_Modules'
132
+ export * from './api/types/Api_Schedule'
133
+ export * from './api/types/Api_Metrics'
134
+ export * from './api/types/Api_User_Issue'
@@ -1,140 +1,140 @@
1
- :root {
2
- --main-header-height: 73px;
3
- --main-footer-height: 66px;
4
- --sidebar-width-max: 250px;
5
- --sidebar-width-min: 66px;
6
- }
7
-
8
- /*border-radius*/
9
- :root {
10
- --border-radius-xxs: 4px;
11
- --border-radius-xs: 8px;
12
- --border-radius-s: 12px;
13
- --border-radius-m: 16px;
14
- }
15
-
16
- /*color*/
17
- :root {
18
- --g-blue: #3f8cff;
19
- --g-blue-light: #e4efff;
20
- --g-blue-dark: #1c75ff;
21
- --g-green: #00d097;
22
- --g-green-light: #e0f9f2;
23
- --g-green-dark: #b8f8e7;
24
- --g-red: #ff192d;
25
- --g-red-light: #fdecee;
26
- --g-red-dark: #ffdcde;
27
- --g-grey-100: #d8e0f0;
28
-
29
- --g-font-color: #0a1629;
30
- --g-font-grey-color: #b9c0c7;
31
- --g-font-secondary-color: #7d8592;
32
-
33
- --g-grey-background: #ced5e0;
34
- --g-grey-hover-background: #9fa5af;
35
- --g-secondary-background: #f4f9fd;
36
- --g-thirty-background: #c8cbcf;
37
-
38
- --g-fire-color-1: #fee7e7;
39
- --g-fire-color-2: #fed4d5;
40
- --g-fire-color-3: #fcc0c0;
41
- --g-fire-color-4: #f9a2a2;
42
- --g-fire-color-5: #f97d7e;
43
- --g-fire-color-6: #f65160;
44
- --g-fire-color-7: #ff192d;
45
- --g-fire-color-8: #ab0514;
46
- --g-fire-color-9: #6e000a;
47
- }
48
-
49
- * {
50
- margin: 0;
51
- padding: 0;
52
- }
53
-
54
- button:active,
55
- 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:
73
- local('NunitoSansFont-Regular'),
74
- url('../fonts/NunitoSansFont.ttf') format('truetype');
75
- font-weight: 400;
76
- font-style: normal;
77
- }
78
-
79
- @font-face {
80
- font-family: 'NunitoSansFont';
81
- src:
82
- local('NunitoSansFont-Bold'),
83
- url('../fonts/NunitoSans_7pt-Bold.ttf') format('truetype');
84
- font-weight: 700;
85
- font-style: normal;
86
- }
87
-
88
- @font-face {
89
- font-family: 'Montserrat';
90
- src:
91
- local('Montserrat-Regular'),
92
- url('../fonts/Montserrat.ttf') format('truetype');
93
- font-weight: 400;
94
- font-style: normal;
95
- }
96
-
97
- @font-face {
98
- font-family: 'Montserrat';
99
- src:
100
- local('Montserrat-Bold'),
101
- url('../fonts/Montserrat-Bold.ttf') format('truetype');
102
- font-weight: 700;
103
- font-style: normal;
104
- }
105
-
106
- @font-face {
107
- font-family: 'Inter';
108
- src:
109
- local('Inter-Regular'),
110
- url('../fonts/Inter_18pt-Regular.ttf') format('truetype');
111
- font-weight: 400;
112
- font-style: normal;
113
- }
114
-
115
- @font-face {
116
- font-family: 'Inter';
117
- src:
118
- local('Inter-SemiBold'),
119
- url('../fonts/Inter_18pt-SemiBold.ttf') format('truetype');
120
- font-weight: 600;
121
- font-style: normal;
122
- }
123
-
124
- @font-face {
125
- font-family: 'Inter';
126
- src:
127
- local('Inter-Bold'),
128
- url('../fonts/Inter_18pt-Bold.ttf') format('truetype');
129
- font-weight: 700;
130
- font-style: normal;
131
- }
132
-
133
- @font-face {
134
- font-family: 'Inter';
135
- src:
136
- local('Inter-Black'),
137
- url('../fonts/Inter_18pt-Black.ttf') format('truetype');
138
- font-weight: 900;
139
- font-style: normal;
140
- }
1
+ :root {
2
+ --main-header-height: 73px;
3
+ --main-footer-height: 66px;
4
+ --sidebar-width-max: 250px;
5
+ --sidebar-width-min: 66px;
6
+ }
7
+
8
+ /*border-radius*/
9
+ :root {
10
+ --border-radius-xxs: 4px;
11
+ --border-radius-xs: 8px;
12
+ --border-radius-s: 12px;
13
+ --border-radius-m: 16px;
14
+ }
15
+
16
+ /*color*/
17
+ :root {
18
+ --g-blue: #3f8cff;
19
+ --g-blue-light: #e4efff;
20
+ --g-blue-dark: #1c75ff;
21
+ --g-green: #00d097;
22
+ --g-green-light: #e0f9f2;
23
+ --g-green-dark: #b8f8e7;
24
+ --g-red: #ff192d;
25
+ --g-red-light: #fdecee;
26
+ --g-red-dark: #ffdcde;
27
+ --g-grey-100: #d8e0f0;
28
+
29
+ --g-font-color: #0a1629;
30
+ --g-font-grey-color: #b9c0c7;
31
+ --g-font-secondary-color: #7d8592;
32
+
33
+ --g-grey-background: #ced5e0;
34
+ --g-grey-hover-background: #9fa5af;
35
+ --g-secondary-background: #f4f9fd;
36
+ --g-thirty-background: #c8cbcf;
37
+
38
+ --g-fire-color-1: #fee7e7;
39
+ --g-fire-color-2: #fed4d5;
40
+ --g-fire-color-3: #fcc0c0;
41
+ --g-fire-color-4: #f9a2a2;
42
+ --g-fire-color-5: #f97d7e;
43
+ --g-fire-color-6: #f65160;
44
+ --g-fire-color-7: #ff192d;
45
+ --g-fire-color-8: #ab0514;
46
+ --g-fire-color-9: #6e000a;
47
+ }
48
+
49
+ * {
50
+ margin: 0;
51
+ padding: 0;
52
+ }
53
+
54
+ button:active,
55
+ 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:
73
+ local('NunitoSansFont-Regular'),
74
+ url('../fonts/NunitoSansFont.ttf') format('truetype');
75
+ font-weight: 400;
76
+ font-style: normal;
77
+ }
78
+
79
+ @font-face {
80
+ font-family: 'NunitoSansFont';
81
+ src:
82
+ local('NunitoSansFont-Bold'),
83
+ url('../fonts/NunitoSans_7pt-Bold.ttf') format('truetype');
84
+ font-weight: 700;
85
+ font-style: normal;
86
+ }
87
+
88
+ @font-face {
89
+ font-family: 'Montserrat';
90
+ src:
91
+ local('Montserrat-Regular'),
92
+ url('../fonts/Montserrat.ttf') format('truetype');
93
+ font-weight: 400;
94
+ font-style: normal;
95
+ }
96
+
97
+ @font-face {
98
+ font-family: 'Montserrat';
99
+ src:
100
+ local('Montserrat-Bold'),
101
+ url('../fonts/Montserrat-Bold.ttf') format('truetype');
102
+ font-weight: 700;
103
+ font-style: normal;
104
+ }
105
+
106
+ @font-face {
107
+ font-family: 'Inter';
108
+ src:
109
+ local('Inter-Regular'),
110
+ url('../fonts/Inter_18pt-Regular.ttf') format('truetype');
111
+ font-weight: 400;
112
+ font-style: normal;
113
+ }
114
+
115
+ @font-face {
116
+ font-family: 'Inter';
117
+ src:
118
+ local('Inter-SemiBold'),
119
+ url('../fonts/Inter_18pt-SemiBold.ttf') format('truetype');
120
+ font-weight: 600;
121
+ font-style: normal;
122
+ }
123
+
124
+ @font-face {
125
+ font-family: 'Inter';
126
+ src:
127
+ local('Inter-Bold'),
128
+ url('../fonts/Inter_18pt-Bold.ttf') format('truetype');
129
+ font-weight: 700;
130
+ font-style: normal;
131
+ }
132
+
133
+ @font-face {
134
+ font-family: 'Inter';
135
+ src:
136
+ local('Inter-Black'),
137
+ url('../fonts/Inter_18pt-Black.ttf') format('truetype');
138
+ font-weight: 900;
139
+ font-style: normal;
140
+ }
@@ -1,12 +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
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
@@ -1,38 +1,38 @@
1
- export function getFileFullPath(path: string): string {
2
- if (!path) return ''
3
- const middlePart = path.startsWith('/uploads') ? '' : '/uploads'
4
- return process.env.VUE_APP_BACKEND_BASE + middlePart + path
5
- }
6
-
7
- export async function openFile(url: string) {
8
- if (!url) return
9
-
10
- try {
11
- const tempLink = document.createElement('a')
12
- tempLink.href = url
13
- tempLink.setAttribute('target', '_blank')
14
- tempLink.click()
15
- } catch (err) {
16
- console.error(err)
17
- }
18
- }
19
-
20
- export const saveBlobAsFile = (blob: Blob, name: string) => {
21
- try {
22
- const a = document.createElement('a')
23
- const url = window.URL.createObjectURL(blob)
24
-
25
- a.href = url
26
- a.download = name
27
-
28
- document.body.appendChild(a)
29
- a.click()
30
-
31
- setTimeout(function () {
32
- document.body.removeChild(a)
33
- window.URL.revokeObjectURL(url)
34
- }, 0)
35
- } catch (error) {
36
- console.error('Ошибка при загрузке файла:', error)
37
- }
38
- }
1
+ export function getFileFullPath(path: string): string {
2
+ if (!path) return ''
3
+ const middlePart = path.startsWith('/uploads') ? '' : '/uploads'
4
+ return process.env.VUE_APP_BACKEND_BASE + middlePart + path
5
+ }
6
+
7
+ export async function openFile(url: string) {
8
+ if (!url) return
9
+
10
+ try {
11
+ const tempLink = document.createElement('a')
12
+ tempLink.href = url
13
+ tempLink.setAttribute('target', '_blank')
14
+ tempLink.click()
15
+ } catch (err) {
16
+ console.error(err)
17
+ }
18
+ }
19
+
20
+ export const saveBlobAsFile = (blob: Blob, name: string) => {
21
+ try {
22
+ const a = document.createElement('a')
23
+ const url = window.URL.createObjectURL(blob)
24
+
25
+ a.href = url
26
+ a.download = name
27
+
28
+ document.body.appendChild(a)
29
+ a.click()
30
+
31
+ setTimeout(function () {
32
+ document.body.removeChild(a)
33
+ window.URL.revokeObjectURL(url)
34
+ }, 0)
35
+ } catch (error) {
36
+ console.error('Ошибка при загрузке файла:', error)
37
+ }
38
+ }