shared-ritm 1.1.3 → 1.1.4
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/dist/shared-ritm.es.js +527 -518
- package/dist/shared-ritm.umd.js +7 -7
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/notification.d.ts +2 -0
- package/package.json +3 -3
- package/src/App.vue +1 -1
- package/src/index.ts +4 -0
- package/src/utils/notification.ts +13 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -19,8 +19,10 @@ import useRepairsService from '@/api/services/RepairsService';
|
|
|
19
19
|
import useTasksService from '@/api/services/TasksService';
|
|
20
20
|
import useAuthService from '@/api/services/AuthService';
|
|
21
21
|
import ApiService from '@/api/settings/ApiService';
|
|
22
|
+
import notification from '@/utils/notification';
|
|
22
23
|
export { AppButton, AppCheckbox, AppDatePicker, AppInput, AppInputSearch, AppLayout, AppLayoutHeader, AppLoader, AppSelect, AppSheet, AppSidebar, AppToggle, AppWrapper, };
|
|
23
24
|
export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, };
|
|
25
|
+
export { notification };
|
|
24
26
|
export * from '@/api/types/Api_Tasks';
|
|
25
27
|
export * from '@/api/types/Api_Repairs';
|
|
26
28
|
export * from '@/api/types/Api_Projects';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shared-ritm",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"main": "dist/shared-ritm.umd.js",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"module": "./dist/shared-ritm.es.js",
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
15
|
"import": "./dist/shared-ritm.es.js",
|
|
16
16
|
"require": "./dist/shared-ritm.umd.js",
|
|
17
17
|
"default": "./dist/shared-ritm.es.js",
|
|
18
|
-
"types": "./dist/index.d.ts"
|
|
18
|
+
"types": "./dist/types/index.d.ts"
|
|
19
19
|
},
|
|
20
20
|
"./style": "./dist/index.css"
|
|
21
21
|
},
|
package/src/App.vue
CHANGED
|
@@ -2399,7 +2399,7 @@ const menuItems = ref([
|
|
|
2399
2399
|
],
|
|
2400
2400
|
},
|
|
2401
2401
|
{ name: 'video-sync', icon: 'videozones-icon', label: 'Разметка видеозоны', to: '/video-sync' },
|
|
2402
|
-
{ name: '
|
|
2402
|
+
{ name: 'notification', icon: 'notification-icon', label: 'Уведомления', to: '/notification' },
|
|
2403
2403
|
{ name: 'sign-out', icon: 'logout-icon', label: 'Выход', to: '/sign-out' },
|
|
2404
2404
|
])
|
|
2405
2405
|
</script>
|
package/src/index.ts
CHANGED
|
@@ -21,6 +21,8 @@ import useTasksService from '@/api/services/TasksService'
|
|
|
21
21
|
import useAuthService from '@/api/services/AuthService'
|
|
22
22
|
import ApiService from '@/api/settings/ApiService'
|
|
23
23
|
|
|
24
|
+
import notification from '@/utils/notification'
|
|
25
|
+
|
|
24
26
|
export {
|
|
25
27
|
AppButton,
|
|
26
28
|
AppCheckbox,
|
|
@@ -47,6 +49,8 @@ export {
|
|
|
47
49
|
useTasksService,
|
|
48
50
|
}
|
|
49
51
|
|
|
52
|
+
export { notification }
|
|
53
|
+
|
|
50
54
|
export * from '@/api/types/Api_Tasks'
|
|
51
55
|
export * from '@/api/types/Api_Repairs'
|
|
52
56
|
export * from '@/api/types/Api_Projects'
|
|
@@ -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
|
+
}
|