shared-ritm 1.2.83 → 1.2.85
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 +19 -14
- package/dist/shared-ritm.umd.js +3 -3
- package/dist/types/api/services/AuthService.d.ts +1 -0
- package/dist/types/api/services/PhotoService.d.ts +38 -51
- package/package.json +1 -1
- package/src/api/services/AuthService.ts +6 -0
- package/src/common/app-table/components/ModalSelect.vue +1 -1
- package/src/styles/variables.sass +12 -12
- package/dist/types/api/services/ComentsServise.d.ts +0 -10
- package/dist/types/api/types/Api_Users.d.ts +0 -43
|
@@ -16,6 +16,7 @@ export type ConfigResponse = any;
|
|
|
16
16
|
declare class AuthService extends ApiService {
|
|
17
17
|
login(email: string, password: string): Promise<any>;
|
|
18
18
|
loginPhoto(photo: any): Promise<any>;
|
|
19
|
+
loginVideo(data: any): Promise<any>;
|
|
19
20
|
logout(): Promise<any>;
|
|
20
21
|
userInfo(): Promise<any>;
|
|
21
22
|
configs(): Promise<any>;
|
|
@@ -1,53 +1,40 @@
|
|
|
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
|
-
|
|
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>
|
|
3
|
+
getVideoStreamConfig(width: number, height: number): {
|
|
4
|
+
audio: boolean;
|
|
5
|
+
video: {
|
|
6
|
+
width: {
|
|
7
|
+
min: number;
|
|
8
|
+
ideal: number;
|
|
9
|
+
};
|
|
10
|
+
height: {
|
|
11
|
+
min: number;
|
|
12
|
+
ideal: number;
|
|
13
|
+
};
|
|
14
|
+
facingMode: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
getContourCoordinate(width: number, height: number): {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
};
|
|
23
|
+
getBoxData(box: any): {
|
|
24
|
+
x: any;
|
|
25
|
+
y: any;
|
|
26
|
+
width: any;
|
|
27
|
+
height: any;
|
|
28
|
+
} | null;
|
|
29
|
+
setStylesForCanvas(canvasContainer: any): void;
|
|
30
|
+
checkFaceInclusion(frame: any, face: any): boolean;
|
|
31
|
+
getFaceDetections(videoRef: any): Promise<faceapi.WithFaceExpressions<faceapi.WithFaceLandmarks<{
|
|
32
|
+
detection: faceapi.FaceDetection;
|
|
33
|
+
}, faceapi.FaceLandmarks68>>[]>;
|
|
34
|
+
getCanvas(videoRef: any): HTMLCanvasElement;
|
|
35
|
+
getResizedAndDetection(canvas: any, detections: any, ctx: any, videoWidth: number, videoHeight: number): void;
|
|
36
|
+
getFaceSnapshot(inputImage: any, box: any): Promise<string | null>;
|
|
37
|
+
initModels(): Promise<void>;
|
|
51
38
|
}
|
|
52
|
-
export default function usePhotoService(): PhotoService
|
|
53
|
-
export {}
|
|
39
|
+
export default function usePhotoService(): PhotoService;
|
|
40
|
+
export {};
|
package/package.json
CHANGED
|
@@ -30,6 +30,12 @@ class AuthService extends ApiService {
|
|
|
30
30
|
return this.post<any, LoginResponse>(`/login/from_photo`, { photo })
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
public loginVideo(data: any) {
|
|
34
|
+
return this.post<any, LoginResponse>(`/login/video`, data, {
|
|
35
|
+
transformRequest: d => d,
|
|
36
|
+
})
|
|
37
|
+
}
|
|
38
|
+
|
|
33
39
|
public logout() {
|
|
34
40
|
return this.post<null, LoginResponse>(`/logout`, null)
|
|
35
41
|
}
|
|
@@ -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,10 +0,0 @@
|
|
|
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 {}
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
}
|