shared-ritm 1.2.85 → 1.2.87
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/index.css +1 -1
- package/dist/shared-ritm.es.js +1 -1
- package/dist/shared-ritm.umd.js +2 -2
- package/dist/types/api/services/ComentsServise.d.ts +10 -0
- package/dist/types/api/services/MetricsService.d.ts +5 -5
- package/dist/types/api/services/PhotoService.d.ts +51 -38
- package/dist/types/api/types/Api_Users.d.ts +43 -0
- package/package.json +64 -64
- package/src/api/services/MetricsService.ts +5 -5
- package/src/common/app-table/components/ModalSelect.vue +270 -270
- package/src/styles/variables.sass +12 -12
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ApiService from '@/api/settings/ApiService'
|
|
2
|
+
import { Api_Comment_Request_Dto } from '@/api/types/Api_Comment'
|
|
3
|
+
import { Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
|
|
4
|
+
declare class CommentsService extends ApiService {
|
|
5
|
+
uploadComment(payload: Api_Comment_Request_Dto): Promise<Api_Tasks_Task_Dto>
|
|
6
|
+
deleteComment(commentId: string): Promise<unknown>
|
|
7
|
+
editComment(payload: { commentId: string; data: unknown }): Promise<unknown>
|
|
8
|
+
}
|
|
9
|
+
export default function useCommentsService(): CommentsService
|
|
10
|
+
export {}
|
|
@@ -5,7 +5,7 @@ declare class MetricsService extends ApiService {
|
|
|
5
5
|
fetchPieTasks(queryString: string): Promise<ResponseApi<any>>;
|
|
6
6
|
fetchPiePersonnel(queryString: string): Promise<ResponseApi<any>>;
|
|
7
7
|
fetchPersonnelData(queryString: string): Promise<ResponseApi<any>>;
|
|
8
|
-
fetchPersonnelInfo(params: string): Promise<
|
|
8
|
+
fetchPersonnelInfo(params: string): Promise<any>;
|
|
9
9
|
fetchPiePersonnelInfo(params: string): Promise<any>;
|
|
10
10
|
fetchPieCriticalPath(queryString: string): Promise<any[]>;
|
|
11
11
|
fetchPieCriticalPathInfo(params: string): Promise<any>;
|
|
@@ -22,10 +22,10 @@ declare class MetricsService extends ApiService {
|
|
|
22
22
|
fetchEconomicsInfo(params: string): Promise<any>;
|
|
23
23
|
fetchQualityMetrics(params: string): Promise<any>;
|
|
24
24
|
fetchQualityInfo(params: string): Promise<any>;
|
|
25
|
-
fetchPieWorkZone(queryString: string): Promise<
|
|
26
|
-
fetchWorkZoneInfo(queryString: string): Promise<
|
|
27
|
-
fetchPieAllTasks(queryString: string): Promise<
|
|
28
|
-
fetchPieAllTasksInfo(queryString: string): Promise<
|
|
25
|
+
fetchPieWorkZone(queryString: string): Promise<any>;
|
|
26
|
+
fetchWorkZoneInfo(queryString: string): Promise<any>;
|
|
27
|
+
fetchPieAllTasks(queryString: string): Promise<any>;
|
|
28
|
+
fetchPieAllTasksInfo(queryString: string): Promise<any>;
|
|
29
29
|
}
|
|
30
30
|
export default function useMetricsService(): MetricsService;
|
|
31
31
|
export {};
|
|
@@ -1,40 +1,53 @@
|
|
|
1
|
-
import * as faceapi from 'face-api.js'
|
|
1
|
+
import * as faceapi from 'face-api.js'
|
|
2
2
|
declare class PhotoService {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
3
|
+
getVideoStreamConfig(
|
|
4
|
+
width: number,
|
|
5
|
+
height: number,
|
|
6
|
+
): {
|
|
7
|
+
audio: boolean
|
|
8
|
+
video: {
|
|
9
|
+
width: {
|
|
10
|
+
min: number
|
|
11
|
+
ideal: number
|
|
12
|
+
}
|
|
13
|
+
height: {
|
|
14
|
+
min: number
|
|
15
|
+
ideal: number
|
|
16
|
+
}
|
|
17
|
+
facingMode: string
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
getContourCoordinate(
|
|
21
|
+
width: number,
|
|
22
|
+
height: number,
|
|
23
|
+
): {
|
|
24
|
+
x: number
|
|
25
|
+
y: number
|
|
26
|
+
width: number
|
|
27
|
+
height: number
|
|
28
|
+
}
|
|
29
|
+
getBoxData(box: any): {
|
|
30
|
+
x: any
|
|
31
|
+
y: any
|
|
32
|
+
width: any
|
|
33
|
+
height: any
|
|
34
|
+
} | null
|
|
35
|
+
setStylesForCanvas(canvasContainer: any): void
|
|
36
|
+
checkFaceInclusion(frame: any, face: any): boolean
|
|
37
|
+
getFaceDetections(videoRef: any): Promise<
|
|
38
|
+
faceapi.WithFaceExpressions<
|
|
39
|
+
faceapi.WithFaceLandmarks<
|
|
40
|
+
{
|
|
41
|
+
detection: faceapi.FaceDetection
|
|
42
|
+
},
|
|
43
|
+
faceapi.FaceLandmarks68
|
|
44
|
+
>
|
|
45
|
+
>[]
|
|
46
|
+
>
|
|
47
|
+
getCanvas(videoRef: any): HTMLCanvasElement
|
|
48
|
+
getResizedAndDetection(canvas: any, detections: any, ctx: any, videoWidth: number, videoHeight: number): void
|
|
49
|
+
getFaceSnapshot(inputImage: any, box: any): Promise<string | null>
|
|
50
|
+
initModels(): Promise<void>
|
|
38
51
|
}
|
|
39
|
-
export default function usePhotoService(): PhotoService
|
|
40
|
-
export {}
|
|
52
|
+
export default function usePhotoService(): PhotoService
|
|
53
|
+
export {}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type Api_Search_User_Passes = {
|
|
2
|
+
id: string
|
|
3
|
+
type: string
|
|
4
|
+
uuid: string
|
|
5
|
+
}
|
|
6
|
+
export type Api_Search_User_Positions = {
|
|
7
|
+
id: string
|
|
8
|
+
name: string
|
|
9
|
+
display_name: string
|
|
10
|
+
description: string
|
|
11
|
+
}
|
|
12
|
+
export type Api_Search_User_Roles = {
|
|
13
|
+
id: string
|
|
14
|
+
name: string
|
|
15
|
+
display_name: string
|
|
16
|
+
}
|
|
17
|
+
export type Api_Search_User_Teams = {
|
|
18
|
+
id: string
|
|
19
|
+
name: string
|
|
20
|
+
display_name: string
|
|
21
|
+
roles: Api_Search_User_Roles[]
|
|
22
|
+
}
|
|
23
|
+
export type Api_Search_User_Photos = {
|
|
24
|
+
id: string
|
|
25
|
+
name: string
|
|
26
|
+
path: string
|
|
27
|
+
type: string
|
|
28
|
+
}
|
|
29
|
+
export type Api_Search_User = {
|
|
30
|
+
id: string
|
|
31
|
+
full_name: string
|
|
32
|
+
last_name: string
|
|
33
|
+
first_name: string
|
|
34
|
+
patronymic: string
|
|
35
|
+
email: string
|
|
36
|
+
phone: string
|
|
37
|
+
divisions: string
|
|
38
|
+
personnel_number: string
|
|
39
|
+
passes: Api_Search_User_Passes[]
|
|
40
|
+
positions: Api_Search_User_Positions[]
|
|
41
|
+
teams: Api_Search_User_Teams[]
|
|
42
|
+
photos: Api_Search_User_Photos[]
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "shared-ritm",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"private": false,
|
|
5
|
-
"files": [
|
|
6
|
-
"dist",
|
|
7
|
-
"src"
|
|
8
|
-
],
|
|
9
|
-
"main": "dist/shared-ritm.umd.js",
|
|
10
|
-
"type": "module",
|
|
11
|
-
"module": "./dist/shared-ritm.es.js",
|
|
12
|
-
"types": "./dist/types/index.d.ts",
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"import": "./dist/shared-ritm.es.js",
|
|
16
|
-
"require": "./dist/shared-ritm.umd.js",
|
|
17
|
-
"default": "./dist/shared-ritm.es.js",
|
|
18
|
-
"types": "./dist/types/index.d.ts"
|
|
19
|
-
},
|
|
20
|
-
"./style": "./dist/index.css"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"dev": "vite",
|
|
24
|
-
"build": "vite build && tsc --emitDeclarationOnly",
|
|
25
|
-
"typecheck": "vue-tsc --noEmit",
|
|
26
|
-
"lint": "eslint --fix",
|
|
27
|
-
"format": "prettier -w -u ."
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"@quasar/extras": "^1.16.17",
|
|
31
|
-
"@vueuse/core": "^10.1.2",
|
|
32
|
-
"face-api.js": "^0.22.2",
|
|
33
|
-
"axios": "^1.7.7",
|
|
34
|
-
"vue": "^3.5.12",
|
|
35
|
-
"vue-router": "^4.0.3"
|
|
36
|
-
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"quasar": "^2.18.1"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@quasar/vite-plugin": "^1.9.0",
|
|
42
|
-
"@rollup/pluginutils": "^5.1.3",
|
|
43
|
-
"@types/node": "^22.7.9",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^4.25.0",
|
|
45
|
-
"@typescript-eslint/parser": "^4.25.0",
|
|
46
|
-
"@vitejs/plugin-vue": "^5.1.4",
|
|
47
|
-
"@vue/compiler-sfc": "^3.0.5",
|
|
48
|
-
"@vue/eslint-config-prettier": "^6.0.0",
|
|
49
|
-
"@vue/eslint-config-typescript": "^7.0.0",
|
|
50
|
-
"eslint": "^7.27.0",
|
|
51
|
-
"eslint-plugin-prettier": "^3.4.0",
|
|
52
|
-
"eslint-plugin-vue": "^7.10.0",
|
|
53
|
-
"install": "^0.13.0",
|
|
54
|
-
"npm": "^11.4.0",
|
|
55
|
-
"prettier": "^2.3.0",
|
|
56
|
-
"quasar": "^2.18.1",
|
|
57
|
-
"rollup-plugin-visualizer": "^5.14.0",
|
|
58
|
-
"sass": "^1.80.4",
|
|
59
|
-
"typescript": "^5.6.3",
|
|
60
|
-
"vite": "^5.4.9",
|
|
61
|
-
"vite-plugin-css-modules": "^0.0.1",
|
|
62
|
-
"vue-tsc": "^2.1.6"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "shared-ritm",
|
|
3
|
+
"version": "1.2.87",
|
|
4
|
+
"private": false,
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"src"
|
|
8
|
+
],
|
|
9
|
+
"main": "dist/shared-ritm.umd.js",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"module": "./dist/shared-ritm.es.js",
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/shared-ritm.es.js",
|
|
16
|
+
"require": "./dist/shared-ritm.umd.js",
|
|
17
|
+
"default": "./dist/shared-ritm.es.js",
|
|
18
|
+
"types": "./dist/types/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./style": "./dist/index.css"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"build": "vite build && tsc --emitDeclarationOnly",
|
|
25
|
+
"typecheck": "vue-tsc --noEmit",
|
|
26
|
+
"lint": "eslint --fix",
|
|
27
|
+
"format": "prettier -w -u ."
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@quasar/extras": "^1.16.17",
|
|
31
|
+
"@vueuse/core": "^10.1.2",
|
|
32
|
+
"face-api.js": "^0.22.2",
|
|
33
|
+
"axios": "^1.7.7",
|
|
34
|
+
"vue": "^3.5.12",
|
|
35
|
+
"vue-router": "^4.0.3"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"quasar": "^2.18.1"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@quasar/vite-plugin": "^1.9.0",
|
|
42
|
+
"@rollup/pluginutils": "^5.1.3",
|
|
43
|
+
"@types/node": "^22.7.9",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^4.25.0",
|
|
45
|
+
"@typescript-eslint/parser": "^4.25.0",
|
|
46
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
47
|
+
"@vue/compiler-sfc": "^3.0.5",
|
|
48
|
+
"@vue/eslint-config-prettier": "^6.0.0",
|
|
49
|
+
"@vue/eslint-config-typescript": "^7.0.0",
|
|
50
|
+
"eslint": "^7.27.0",
|
|
51
|
+
"eslint-plugin-prettier": "^3.4.0",
|
|
52
|
+
"eslint-plugin-vue": "^7.10.0",
|
|
53
|
+
"install": "^0.13.0",
|
|
54
|
+
"npm": "^11.4.0",
|
|
55
|
+
"prettier": "^2.3.0",
|
|
56
|
+
"quasar": "^2.18.1",
|
|
57
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
58
|
+
"sass": "^1.80.4",
|
|
59
|
+
"typescript": "^5.6.3",
|
|
60
|
+
"vite": "^5.4.9",
|
|
61
|
+
"vite-plugin-css-modules": "^0.0.1",
|
|
62
|
+
"vue-tsc": "^2.1.6"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -18,7 +18,7 @@ class MetricsService extends ApiService {
|
|
|
18
18
|
return await this.get('repairs/metrics/list_position_intersection_group_by_status' + '?' + queryString)
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
public async fetchPersonnelInfo(params: string): Promise<
|
|
21
|
+
public async fetchPersonnelInfo(params: string): Promise<any> {
|
|
22
22
|
return await this.get(`repairs/metrics/list_position_intersection_details?${params}`)
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -85,19 +85,19 @@ class MetricsService extends ApiService {
|
|
|
85
85
|
return await this.get(`repairs/metrics/get_list_task_by_quality?${params}`)
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
public async fetchPieWorkZone(queryString: string): Promise<
|
|
88
|
+
public async fetchPieWorkZone(queryString: string): Promise<any> {
|
|
89
89
|
return await this.get('repairs/metrics/get_list_work_zone_instrument' + '?' + queryString)
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
public async fetchWorkZoneInfo(queryString: string): Promise<
|
|
92
|
+
public async fetchWorkZoneInfo(queryString: string): Promise<any> {
|
|
93
93
|
return await this.get('repairs/metrics/get_list_work_zone_instrument_by_status' + '?' + queryString)
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
public async fetchPieAllTasks(queryString: string): Promise<
|
|
96
|
+
public async fetchPieAllTasks(queryString: string): Promise<any> {
|
|
97
97
|
return await this.get('repairs/metrics/get_list_task_group_by_status' + '?' + queryString)
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
public async fetchPieAllTasksInfo(queryString: string): Promise<
|
|
100
|
+
public async fetchPieAllTasksInfo(queryString: string): Promise<any> {
|
|
101
101
|
return await this.get('repairs/metrics/get_list_task_by_status' + '?' + queryString)
|
|
102
102
|
}
|
|
103
103
|
}
|