fmode-ng 0.0.36 → 0.0.38
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/esm2022/lib/aigc/avatar/comp-avatar-role-video/comp-avatar-role-video.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-header-area/comp-header-area.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-message-card/comp-message-card.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/chat-panel/chat-panel.component.mjs +1 -1
- package/esm2022/lib/aigc/chat/comp-role-prompt/comp-role-prompt.component.mjs +1 -1
- package/esm2022/lib/aigc/service-fmai/service-chat/chat-class.mjs +1 -1
- package/esm2022/lib/aigc/voice/audio.player.mjs +10 -0
- package/esm2022/lib/aigc/voice/index.mjs +1 -1
- package/esm2022/lib/aigc/voice/tts/fmode-tts-class.mjs +1 -1
- package/esm2022/lib/social/wechat/wechat-jssdk.service.mjs +1 -1
- package/esm2022/lib/user/account/account.service.mjs +10 -0
- package/esm2022/lib/user/captcha/captcha.component.mjs +10 -0
- package/esm2022/lib/user/comp-user-avatar/comp-user-avatar.component.mjs +1 -1
- package/esm2022/lib/user/index.mjs +1 -1
- package/esm2022/lib/user/login/auth.guard.mjs +10 -0
- package/esm2022/lib/user/login/auth.service.mjs +10 -0
- package/esm2022/lib/user/login/login.component.mjs +10 -0
- package/esm2022/lib/user/modal-user-login/modal-user-login.component.mjs +10 -0
- package/esm2022/lib/user/profile/auth-profile.guard.mjs +10 -0
- package/esm2022/lib/user/profile/auth-profile.service.mjs +10 -0
- package/esm2022/lib/user/profile/profile-bind/profile-bind.component.mjs +10 -0
- package/esm2022/lib/user/profile/profile.module.mjs +10 -0
- package/esm2022/lib/user/staff/index.mjs +10 -0
- package/esm2022/lib/user/staff/staff.guard.mjs +10 -0
- package/esm2022/lib/user/staff/staff.module.mjs +10 -0
- package/esm2022/lib/user/staff/staff.service.mjs +10 -0
- package/esm2022/lib/user/user-name.pipe.mjs +10 -0
- package/esm2022/lib/user/user.module.mjs +10 -0
- package/esm2022/lib/video/fm-video/fm-video.component.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/fmode-ng.mjs +1 -1
- package/fesm2022/fmode-ng.mjs.map +1 -1
- package/lib/aigc/avatar/comp-avatar-role-video/comp-avatar-role-video.component.d.ts +8 -2
- package/lib/aigc/chat/chat-panel/chat-panel.component.d.ts +3 -1
- package/lib/aigc/service-fmai/service-chat/chat-class.d.ts +17 -0
- package/lib/aigc/voice/audio.player.d.ts +10 -0
- package/lib/aigc/voice/index.d.ts +1 -0
- package/lib/social/wechat/wechat-jssdk.service.d.ts +1 -1
- package/lib/user/{account.service.d.ts → account/account.service.d.ts} +4 -3
- package/lib/user/captcha/captcha.component.d.ts +21 -0
- package/lib/user/comp-user-avatar/comp-user-avatar.component.d.ts +1 -1
- package/lib/user/index.d.ts +15 -2
- package/lib/user/login/auth.guard.d.ts +13 -0
- package/lib/user/{auth.service.d.ts → login/auth.service.d.ts} +2 -1
- package/lib/user/login/login.component.d.ts +159 -0
- package/lib/user/modal-user-login/modal-user-login.component.d.ts +40 -0
- package/lib/user/profile/auth-profile.guard.d.ts +13 -0
- package/lib/user/profile/auth-profile.service.d.ts +36 -0
- package/lib/user/profile/profile-bind/profile-bind.component.d.ts +32 -0
- package/lib/user/profile/profile.module.d.ts +17 -0
- package/lib/user/staff/index.d.ts +3 -0
- package/lib/user/staff/staff.guard.d.ts +16 -0
- package/lib/user/staff/staff.module.d.ts +7 -0
- package/lib/user/staff/staff.service.d.ts +18 -0
- package/lib/user/user-name.pipe.d.ts +8 -0
- package/lib/user/user.module.d.ts +24 -0
- package/lib/video/fm-video/fm-video.component.d.ts +0 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2022/lib/user/account.service.mjs +0 -10
- package/esm2022/lib/user/auth.service.mjs +0 -10
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import { AfterViewInit, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FmodeAvatarRoleComp } from '../interface-avatar-role';
|
|
3
3
|
import 'recorder-core/src/extensions/waveview';
|
|
4
4
|
import Parse from "parse";
|
|
5
5
|
import { FmodeChat } from '../../service-fmai/service-chat/chat-class';
|
|
6
6
|
import { FmVideoComponent } from '../../../video';
|
|
7
|
+
import { NavController } from '@ionic/angular/standalone';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class CompAvatarRoleVideoComponent implements FmodeAvatarRoleComp, AfterViewInit, OnInit {
|
|
10
|
+
private navCtrl;
|
|
9
11
|
avatarVideo: FmVideoComponent;
|
|
10
12
|
animClass: string;
|
|
11
13
|
fmodeChat: FmodeChat;
|
|
12
14
|
role: Parse.Object;
|
|
13
15
|
wave: any;
|
|
14
16
|
waveInterval: any;
|
|
17
|
+
onClose: EventEmitter<boolean>;
|
|
18
|
+
constructor(navCtrl: NavController);
|
|
19
|
+
close(): void;
|
|
20
|
+
goBack(): void;
|
|
15
21
|
playWave(): void;
|
|
16
22
|
stopWave(): void;
|
|
17
23
|
ngAfterViewInit(): void;
|
|
@@ -20,5 +26,5 @@ export declare class CompAvatarRoleVideoComponent implements FmodeAvatarRoleComp
|
|
|
20
26
|
playAnimation(): (name: string) => void;
|
|
21
27
|
playVideo(src: string): void;
|
|
22
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<CompAvatarRoleVideoComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CompAvatarRoleVideoComponent, "fm-avatar-role-video", never, { "fmodeChat": { "alias": "fmodeChat"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompAvatarRoleVideoComponent, "fm-avatar-role-video", never, { "fmodeChat": { "alias": "fmodeChat"; "required": false; }; "role": { "alias": "role"; "required": false; }; }, { "onClose": "onClose"; }, never, never, true, never>;
|
|
24
30
|
}
|
|
@@ -13,6 +13,7 @@ export declare class ChatPanelComponent implements OnInit, AfterViewInit {
|
|
|
13
13
|
fmodeChat: FmodeChat;
|
|
14
14
|
leftButtons: any[] | undefined;
|
|
15
15
|
modelList: any[] | undefined;
|
|
16
|
+
isDirect: boolean;
|
|
16
17
|
showInputModal: boolean;
|
|
17
18
|
showMessageArea: boolean;
|
|
18
19
|
showHeaderArea: boolean;
|
|
@@ -22,7 +23,8 @@ export declare class ChatPanelComponent implements OnInit, AfterViewInit {
|
|
|
22
23
|
scrollToBottom(comp: ElementRef): void;
|
|
23
24
|
ngAfterViewInit(): void;
|
|
24
25
|
ngOnInit(): void;
|
|
26
|
+
sayWelcome(): void;
|
|
25
27
|
loadMask(): void;
|
|
26
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatPanelComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatPanelComponent, "app-chat-panel", never, { "chatId": { "alias": "chatId"; "required": false; }; "maskId": { "alias": "maskId"; "required": false; }; "roleId": { "alias": "roleId"; "required": false; }; "leftButtons": { "alias": "leftButtons"; "required": false; }; "modelList": { "alias": "modelList"; "required": false; }; "showInputModal": { "alias": "showInputModal"; "required": false; }; "showMessageArea": { "alias": "showMessageArea"; "required": false; }; "showHeaderArea": { "alias": "showHeaderArea"; "required": false; }; }, {}, never, ["[chat-header]", "[chat-content]", "[chat-footer]"], true, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatPanelComponent, "app-chat-panel", never, { "chatId": { "alias": "chatId"; "required": false; }; "maskId": { "alias": "maskId"; "required": false; }; "roleId": { "alias": "roleId"; "required": false; }; "leftButtons": { "alias": "leftButtons"; "required": false; }; "modelList": { "alias": "modelList"; "required": false; }; "isDirect": { "alias": "isDirect"; "required": false; }; "showInputModal": { "alias": "showInputModal"; "required": false; }; "showMessageArea": { "alias": "showMessageArea"; "required": false; }; "showHeaderArea": { "alias": "showHeaderArea"; "required": false; }; }, {}, never, ["[chat-header]", "[chat-content]", "[chat-footer]"], true, never>;
|
|
28
30
|
}
|
|
@@ -14,6 +14,13 @@ export interface FmodeChatEventMap {
|
|
|
14
14
|
onComplete?(FmodeChatMessage: any): void;
|
|
15
15
|
onSSMLComplete?(FmodeChatMessageVoice: any): void;
|
|
16
16
|
}
|
|
17
|
+
export interface FmodeChatVoiceConfig {
|
|
18
|
+
voice: string;
|
|
19
|
+
autoTalk: boolean;
|
|
20
|
+
welcome: {
|
|
21
|
+
enabled: true;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
17
24
|
export declare function getMessageContentText(content: any | string | Array<ChatImageContentItem>): string;
|
|
18
25
|
export declare function getMessageImageUrl(content: any | string | Array<ChatImageContentItem>): any;
|
|
19
26
|
export interface ChatImageContentItem {
|
|
@@ -49,6 +56,7 @@ export declare class FmodeChat {
|
|
|
49
56
|
chatServ: any;
|
|
50
57
|
userInput: string;
|
|
51
58
|
userImage: string;
|
|
59
|
+
isDirect: boolean;
|
|
52
60
|
/**
|
|
53
61
|
* 虚拟形象展示状态
|
|
54
62
|
*/
|
|
@@ -60,6 +68,7 @@ export declare class FmodeChat {
|
|
|
60
68
|
* 预置提示词弹窗是否展示
|
|
61
69
|
*/
|
|
62
70
|
isPromptModalOpen: boolean;
|
|
71
|
+
isPromptMessageAreaShow: boolean;
|
|
63
72
|
promptList: any;
|
|
64
73
|
/**
|
|
65
74
|
* 输入按钮区域
|
|
@@ -77,6 +86,7 @@ export declare class FmodeChat {
|
|
|
77
86
|
* 开启ssml system提示词
|
|
78
87
|
* 开启回答文本除xml显示模式
|
|
79
88
|
*/
|
|
89
|
+
voiceConfig: FmodeChatVoiceConfig | undefined;
|
|
80
90
|
isTalkMode: boolean;
|
|
81
91
|
SSMLRoleVoice: string;
|
|
82
92
|
ncloud: NovaCloudService;
|
|
@@ -86,6 +96,13 @@ export declare class FmodeChat {
|
|
|
86
96
|
* 会话Avatar控制
|
|
87
97
|
*/
|
|
88
98
|
playAnimation: (animName: string) => void;
|
|
99
|
+
welcome: () => Promise<void>;
|
|
100
|
+
getTimeOfDay(): "早上" | "中午" | "下午" | "晚上";
|
|
101
|
+
self: {
|
|
102
|
+
Person?: Parse.Object | undefined;
|
|
103
|
+
Profile?: Parse.Object | undefined;
|
|
104
|
+
};
|
|
105
|
+
loadSelf(className: any, userKey: any): Promise<any>;
|
|
89
106
|
/**
|
|
90
107
|
* 对话模型提示词
|
|
91
108
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class AudioPlayer {
|
|
2
|
+
private static instance;
|
|
3
|
+
private audio;
|
|
4
|
+
private constructor();
|
|
5
|
+
static getInstance(): AudioPlayer;
|
|
6
|
+
setAudioEvent(event: any, func: any): void;
|
|
7
|
+
get duration(): number;
|
|
8
|
+
get src(): string;
|
|
9
|
+
play(src: string): Promise<void>;
|
|
10
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NovaCloudService } from "
|
|
1
|
+
import { NovaCloudService } from "../../nova-cloud/nova-cloud.service";
|
|
2
2
|
import Parse from "parse";
|
|
3
|
-
import { AuthService } from "
|
|
3
|
+
import { AuthService } from "../login/auth.service";
|
|
4
4
|
import { HttpClient } from "@angular/common/http";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class AccountService {
|
|
@@ -12,7 +12,8 @@ export declare class AccountService {
|
|
|
12
12
|
profile: Parse.Object;
|
|
13
13
|
wxAppId: string;
|
|
14
14
|
wxpayEnabled: boolean;
|
|
15
|
-
appid:
|
|
15
|
+
appid: string;
|
|
16
|
+
shareInfo: any;
|
|
16
17
|
constructor(ncloud: NovaCloudService, authServ: AuthService, http: HttpClient);
|
|
17
18
|
getProfile(): Promise<void>;
|
|
18
19
|
getBilling(): Promise<any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit, EventEmitter, ElementRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CaptchaComponent implements OnInit {
|
|
4
|
+
canvasDom: ElementRef;
|
|
5
|
+
type: string;
|
|
6
|
+
canvas_id: string;
|
|
7
|
+
drawCode: Array<string>;
|
|
8
|
+
vCode: string;
|
|
9
|
+
changeVal: EventEmitter<any>;
|
|
10
|
+
onEnter: EventEmitter<any>;
|
|
11
|
+
code: string;
|
|
12
|
+
constructor();
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngAfterViewInit(): void;
|
|
15
|
+
updateDrawCode(): void;
|
|
16
|
+
randomColor(): string;
|
|
17
|
+
enter(e: any): void;
|
|
18
|
+
onChange(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaptchaComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaptchaComponent, "fm-captcha", never, { "type": { "alias": "type"; "required": false; }; "canvas_id": { "alias": "canvas_id"; "required": false; }; "drawCode": { "alias": "drawCode"; "required": false; }; "vCode": { "alias": "vCode"; "required": false; }; }, { "changeVal": "changeVal"; "onEnter": "onEnter"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from "@angular/core";
|
|
2
2
|
import Parse from "parse";
|
|
3
|
-
import { AccountService } from "../account.service";
|
|
3
|
+
import { AccountService } from "../account/account.service";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CompUserAvatarComponent implements OnInit {
|
|
6
6
|
private novaAccount;
|
package/lib/user/index.d.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
export * from "./comp-user-avatar/comp-user-avatar.component";
|
|
2
|
-
export * from "./auth.service";
|
|
3
|
-
export * from "./account.service";
|
|
2
|
+
export * from "./login/auth.service";
|
|
3
|
+
export * from "./account/account.service";
|
|
4
|
+
export * from "./user.module";
|
|
5
|
+
export * from "./user-name.pipe";
|
|
6
|
+
export * from "./staff";
|
|
7
|
+
export * from "./profile/auth-profile.guard";
|
|
8
|
+
export * from "./profile/auth-profile.service";
|
|
9
|
+
export * from "./profile/profile-bind/profile-bind.component";
|
|
10
|
+
export * from "./profile/profile.module";
|
|
11
|
+
export * from "./modal-user-login/modal-user-login.component";
|
|
12
|
+
export * from "./login/auth.guard";
|
|
13
|
+
export * from "./login/auth.service";
|
|
14
|
+
export * from "./login/login.component";
|
|
15
|
+
export * from "./account/account.service";
|
|
16
|
+
export * from "./captcha/captcha.component";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { AuthService } from './auth.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AuthPcuserGuard {
|
|
7
|
+
authService: AuthService;
|
|
8
|
+
router: Router;
|
|
9
|
+
constructor(authService: AuthService, router: Router);
|
|
10
|
+
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthPcuserGuard, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthPcuserGuard>;
|
|
13
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Parse from "parse";
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import { NovaCloudService } from '
|
|
3
|
+
import { NovaCloudService } from '../../nova-cloud';
|
|
4
4
|
import { HttpClient } from '@angular/common/http';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class AuthService {
|
|
@@ -23,6 +23,7 @@ export declare class AuthService {
|
|
|
23
23
|
set logoUrl(v: string);
|
|
24
24
|
company: string;
|
|
25
25
|
getCompanyId(): string;
|
|
26
|
+
wechatUrl: string;
|
|
26
27
|
/**
|
|
27
28
|
* 资金账户:user自动创建唯一资金账户
|
|
28
29
|
*/
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { AuthService } from './auth.service';
|
|
6
|
+
import Parse from "parse";
|
|
7
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
8
|
+
import { HttpClient } from "@angular/common/http";
|
|
9
|
+
import { NovaCloudService } from '../../nova-cloud/nova-cloud.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class LoginComponent implements OnInit {
|
|
12
|
+
authServ: AuthService;
|
|
13
|
+
private novaCloud;
|
|
14
|
+
private fb;
|
|
15
|
+
private message;
|
|
16
|
+
router: Router;
|
|
17
|
+
private route;
|
|
18
|
+
private activatedRoute;
|
|
19
|
+
private http;
|
|
20
|
+
nums: string[];
|
|
21
|
+
str: string;
|
|
22
|
+
canvas: any;
|
|
23
|
+
image: any;
|
|
24
|
+
tabIndex: number;
|
|
25
|
+
drawCode(str: any): any;
|
|
26
|
+
drawline(canvas: any, context: any): void;
|
|
27
|
+
drawDot(canvas: any, context: any): void;
|
|
28
|
+
convertCanvasToImage(canvas: any): any;
|
|
29
|
+
vCode: string;
|
|
30
|
+
validateForm: FormGroup;
|
|
31
|
+
validateUserForm: FormGroup;
|
|
32
|
+
validateSMSForm: FormGroup;
|
|
33
|
+
smsCodeErrorTip: string;
|
|
34
|
+
userErrorTip: any;
|
|
35
|
+
passwordErrorTip: any;
|
|
36
|
+
forgetphoneCodesErrorTip: any;
|
|
37
|
+
phoneErrorTip: any;
|
|
38
|
+
codeVerified: boolean;
|
|
39
|
+
codeErrorTip: any;
|
|
40
|
+
username: any;
|
|
41
|
+
forgetusername: string;
|
|
42
|
+
forgetPassword: string;
|
|
43
|
+
forgetConfirmpassword: string;
|
|
44
|
+
forgerphoneCode: string;
|
|
45
|
+
smsCode: string;
|
|
46
|
+
phoneCode: any;
|
|
47
|
+
registForm: FormGroup;
|
|
48
|
+
forgetForm: FormGroup;
|
|
49
|
+
registNameErrorTip: any;
|
|
50
|
+
registIdcardErrorTip: any;
|
|
51
|
+
registName: any;
|
|
52
|
+
phoneCodes: any;
|
|
53
|
+
registPhone: any;
|
|
54
|
+
registIdcard: any;
|
|
55
|
+
passwordVisible: boolean;
|
|
56
|
+
passwordVisible2: boolean;
|
|
57
|
+
passwordVisible3: boolean;
|
|
58
|
+
iseducation: boolean;
|
|
59
|
+
selectEducation: any;
|
|
60
|
+
redirectUrl: any;
|
|
61
|
+
isSended: boolean;
|
|
62
|
+
isSending: boolean;
|
|
63
|
+
smsTimeCount: number;
|
|
64
|
+
sendSMSCode(): void;
|
|
65
|
+
countDownSMS(): void;
|
|
66
|
+
submitFormMobileSMS(value: {
|
|
67
|
+
mobile: string;
|
|
68
|
+
smsCode: string;
|
|
69
|
+
checkCode: string;
|
|
70
|
+
}): void;
|
|
71
|
+
submitFormMobilePassword(value: {
|
|
72
|
+
mobile: string;
|
|
73
|
+
username?: string;
|
|
74
|
+
password: string;
|
|
75
|
+
checkCode: string;
|
|
76
|
+
}): void;
|
|
77
|
+
submitFormUserPassword(value: {
|
|
78
|
+
mobile: string;
|
|
79
|
+
username?: string;
|
|
80
|
+
password: string;
|
|
81
|
+
checkCode: string;
|
|
82
|
+
}): void;
|
|
83
|
+
forgetFormFun(value: {
|
|
84
|
+
forgetusername: string;
|
|
85
|
+
forgetPassword: string;
|
|
86
|
+
forgetConfirmpassword: string;
|
|
87
|
+
forgerphoneCode: string;
|
|
88
|
+
}): Promise<void>;
|
|
89
|
+
regpassword: any;
|
|
90
|
+
confirmPassword: any;
|
|
91
|
+
registSubmitForm(value: {
|
|
92
|
+
registName: string;
|
|
93
|
+
registIdcard: string;
|
|
94
|
+
regpassword: string;
|
|
95
|
+
confirmPassword: string;
|
|
96
|
+
phoneCode: string;
|
|
97
|
+
registPhone: string;
|
|
98
|
+
}): Promise<void>;
|
|
99
|
+
getSelectEducation(): void;
|
|
100
|
+
loginSMS(): void;
|
|
101
|
+
loginMobilePassword(): Promise<void>;
|
|
102
|
+
loading: boolean;
|
|
103
|
+
loading2: boolean;
|
|
104
|
+
Profile: any;
|
|
105
|
+
Lesson: any;
|
|
106
|
+
myDate: Date;
|
|
107
|
+
isVisible: boolean;
|
|
108
|
+
profile: any;
|
|
109
|
+
queryUser(): Promise<void>;
|
|
110
|
+
type: string;
|
|
111
|
+
mobileUserMap: {};
|
|
112
|
+
getMobileUser(mobile: any): Promise<any>;
|
|
113
|
+
forget(): void;
|
|
114
|
+
backLogin(): void;
|
|
115
|
+
handleCancel(): void;
|
|
116
|
+
password: any;
|
|
117
|
+
handleOk(): void;
|
|
118
|
+
isOkLoading: boolean;
|
|
119
|
+
getCode(): Promise<void>;
|
|
120
|
+
getCode2(): Promise<void>;
|
|
121
|
+
verifyCode(mobile: any, code: any): Promise<unknown>;
|
|
122
|
+
countDown: number;
|
|
123
|
+
isCountDown: boolean;
|
|
124
|
+
countDownFun(): void;
|
|
125
|
+
mobileLogin: boolean;
|
|
126
|
+
rootPage: string;
|
|
127
|
+
logo: string;
|
|
128
|
+
qrcode: string;
|
|
129
|
+
company: Parse.Object;
|
|
130
|
+
companyId: string;
|
|
131
|
+
app: Parse.Object;
|
|
132
|
+
appId: string;
|
|
133
|
+
constructor(authServ: AuthService, novaCloud: NovaCloudService, fb: FormBuilder, message: NzMessageService, router: Router, route: ActivatedRoute, activatedRoute: ActivatedRoute, http: HttpClient);
|
|
134
|
+
initCompanyConfig(): Promise<void>;
|
|
135
|
+
initAppConfig(): Promise<boolean>;
|
|
136
|
+
initLoginForm(): void;
|
|
137
|
+
userNameAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
138
|
+
smsAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
139
|
+
passwordAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
140
|
+
codeAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
141
|
+
confirmPasswordErrorTip: any;
|
|
142
|
+
regpasswordErrorTip: any;
|
|
143
|
+
phoneCodesErrorTip: any;
|
|
144
|
+
registIdcardAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
145
|
+
forgetNameAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
146
|
+
forgetPasswordAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
147
|
+
forgetConfirmPasswordAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
148
|
+
forgetCodeAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
149
|
+
registNameAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
150
|
+
registPhoneAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
151
|
+
registCodeAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
152
|
+
regpasswordAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
153
|
+
confirmPasswordAsyncValidator: (control: FormControl) => Observable<ValidationErrors>;
|
|
154
|
+
code: any;
|
|
155
|
+
ngOnInit(): void;
|
|
156
|
+
creatCode(): void;
|
|
157
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginComponent, never>;
|
|
158
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginComponent, "app-pcuser-login", never, {}, {}, never, never, false, never>;
|
|
159
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { OnInit, ElementRef } from "@angular/core";
|
|
2
|
+
import { Router } from "@angular/router";
|
|
3
|
+
import { AuthService } from "../login/auth.service";
|
|
4
|
+
import { NzMessageService } from "ng-zorro-antd/message";
|
|
5
|
+
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ModalUserLoginComponent implements OnInit {
|
|
8
|
+
private msg;
|
|
9
|
+
authServ: AuthService;
|
|
10
|
+
private router;
|
|
11
|
+
private http;
|
|
12
|
+
mobile: string;
|
|
13
|
+
password: string;
|
|
14
|
+
password2: string;
|
|
15
|
+
isUserRuleChecked: boolean;
|
|
16
|
+
canvasDom: ElementRef;
|
|
17
|
+
loginInfo: any;
|
|
18
|
+
localCodeNum: string;
|
|
19
|
+
constructor(msg: NzMessageService, authServ: AuthService, router: Router, http: HttpClient);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
signMobilePassword(): void;
|
|
23
|
+
loginMobilePassword(): void;
|
|
24
|
+
close(): void;
|
|
25
|
+
goHome(): void;
|
|
26
|
+
handleEscapeKey(event: KeyboardEvent): void;
|
|
27
|
+
activeButton: string;
|
|
28
|
+
setActiveButton(buttonName: string): void;
|
|
29
|
+
countdown: number;
|
|
30
|
+
buttonText: string;
|
|
31
|
+
isCountingdown: boolean;
|
|
32
|
+
startCountdown(): void;
|
|
33
|
+
time(): void;
|
|
34
|
+
login(): Promise<void>;
|
|
35
|
+
drawCode: Array<string>;
|
|
36
|
+
updateDrawCode(): void;
|
|
37
|
+
randomColor(): string;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalUserLoginComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalUserLoginComponent, "fm-modal-user-login", never, {}, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { AuthProfileService } from './auth-profile.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AuthProfileGuard {
|
|
7
|
+
authProfileServ: AuthProfileService;
|
|
8
|
+
router: Router;
|
|
9
|
+
constructor(authProfileServ: AuthProfileService, router: Router);
|
|
10
|
+
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthProfileGuard, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthProfileGuard>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Parse from "parse";
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AuthProfileService {
|
|
5
|
+
router: Router;
|
|
6
|
+
profile: Parse.Object;
|
|
7
|
+
_profileId: string;
|
|
8
|
+
_companyId: string;
|
|
9
|
+
isLeader: boolean;
|
|
10
|
+
isManager: boolean;
|
|
11
|
+
get profileId(): string;
|
|
12
|
+
set profileId(v: string);
|
|
13
|
+
get profilePointer(): {
|
|
14
|
+
__type: string;
|
|
15
|
+
className: string;
|
|
16
|
+
objectId: string;
|
|
17
|
+
};
|
|
18
|
+
get companyId(): string;
|
|
19
|
+
set companyId(v: string);
|
|
20
|
+
get companyPointer(): {
|
|
21
|
+
__type: string;
|
|
22
|
+
className: string;
|
|
23
|
+
objectId: string;
|
|
24
|
+
};
|
|
25
|
+
redirectUrl: string;
|
|
26
|
+
_user: Parse.User;
|
|
27
|
+
get user(): Parse.User<Parse.Attributes>;
|
|
28
|
+
set user(v: Parse.User<Parse.Attributes>);
|
|
29
|
+
constructor(router: Router);
|
|
30
|
+
getProfile(): Promise<Parse.Object<Parse.Attributes>>;
|
|
31
|
+
bindProfile(profile: Parse.Object): Promise<void>;
|
|
32
|
+
checkProfile(url: string): Promise<boolean>;
|
|
33
|
+
setCurrentProfileLocalStorage(profile: Parse.Object): Promise<void>;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthProfileService, never>;
|
|
35
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthProfileService>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AuthProfileService } from "../auth-profile.service";
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import { Router } from "@angular/router";
|
|
4
|
+
import { NzModalService } from "ng-zorro-antd/modal";
|
|
5
|
+
import { NzMessageService } from "ng-zorro-antd/message";
|
|
6
|
+
import { CrossService } from "../../../platform/cross.service";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ProfileBindComponent {
|
|
9
|
+
private authProfile;
|
|
10
|
+
private router;
|
|
11
|
+
private modal;
|
|
12
|
+
private message;
|
|
13
|
+
cross: CrossService;
|
|
14
|
+
profile: Parse.Object;
|
|
15
|
+
user: Parse.User;
|
|
16
|
+
profileList: Array<Parse.Object>;
|
|
17
|
+
pdata: any;
|
|
18
|
+
now: Date;
|
|
19
|
+
currentProfile: string;
|
|
20
|
+
onResize(): void;
|
|
21
|
+
constructor(authProfile: AuthProfileService, router: Router, modal: NzModalService, message: NzMessageService, cross: CrossService);
|
|
22
|
+
loadProfiles(): Promise<void>;
|
|
23
|
+
isVisible: boolean;
|
|
24
|
+
bindProfile(p?: any): void;
|
|
25
|
+
profileSearched: Parse.Object;
|
|
26
|
+
searchProfile(): Promise<void>;
|
|
27
|
+
selectProfile(p: any): void;
|
|
28
|
+
goProfileManage(): void;
|
|
29
|
+
onShowModal(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileBindComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProfileBindComponent, "fm-profile-bind", never, {}, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./profile-bind/profile-bind.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@angular/forms";
|
|
6
|
+
import * as i4 from "@angular/router";
|
|
7
|
+
import * as i5 from "ng-zorro-antd/input";
|
|
8
|
+
import * as i6 from "ng-zorro-antd/button";
|
|
9
|
+
import * as i7 from "ng-zorro-antd/modal";
|
|
10
|
+
import * as i8 from "ng-zorro-antd/message";
|
|
11
|
+
import * as i9 from "ng-zorro-antd/icon";
|
|
12
|
+
export declare const ProfileRoutes: Routes;
|
|
13
|
+
export declare class ProfileModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProfileModule, [typeof i1.ProfileBindComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.RouterModule, typeof i5.NzInputModule, typeof i6.NzButtonModule, typeof i7.NzModalModule, typeof i8.NzMessageModule, typeof i9.NzIconModule], never>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ProfileModule>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { StaffService } from './staff.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Staff员工身份检测
|
|
7
|
+
* @example
|
|
8
|
+
canActivate:[],
|
|
9
|
+
*/
|
|
10
|
+
export declare class AuthStaffGuard {
|
|
11
|
+
private staffServ;
|
|
12
|
+
constructor(staffServ: StaffService);
|
|
13
|
+
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthStaffGuard, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthStaffGuard>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
export declare class StaffModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StaffModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StaffModule, never, [typeof i1.CommonModule], never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StaffModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StaffService {
|
|
5
|
+
private router;
|
|
6
|
+
redirectURL: string;
|
|
7
|
+
staff: Parse.Object;
|
|
8
|
+
realStaff: Parse.Object;
|
|
9
|
+
isSuperAdmin: boolean;
|
|
10
|
+
constructor(router: Router);
|
|
11
|
+
checkStaff(): Promise<boolean>;
|
|
12
|
+
loadStaffByUser(isRefresh?: boolean): Promise<any>;
|
|
13
|
+
isPeiZhu: boolean;
|
|
14
|
+
checkIsPeiZhu(): Promise<void>;
|
|
15
|
+
peizhuJob(route: any): boolean;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StaffService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StaffService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import Parse from "parse";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UserNamePipe implements PipeTransform {
|
|
5
|
+
transform(user: Parse.User, ...args: unknown[]): unknown;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserNamePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<UserNamePipe, "userName", false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./login/login.component";
|
|
4
|
+
import * as i2 from "./user-name.pipe";
|
|
5
|
+
import * as i3 from "@angular/common";
|
|
6
|
+
import * as i4 from "@angular/forms";
|
|
7
|
+
import * as i5 from "@angular/common/http";
|
|
8
|
+
import * as i6 from "@angular/router";
|
|
9
|
+
import * as i7 from "ng-zorro-antd/input";
|
|
10
|
+
import * as i8 from "ng-zorro-antd/button";
|
|
11
|
+
import * as i9 from "ng-zorro-antd/modal";
|
|
12
|
+
import * as i10 from "ng-zorro-antd/radio";
|
|
13
|
+
import * as i11 from "ng-zorro-antd/spin";
|
|
14
|
+
import * as i12 from "ng-zorro-antd/tabs";
|
|
15
|
+
import * as i13 from "ng-zorro-antd/form";
|
|
16
|
+
import * as i14 from "ng-zorro-antd/message";
|
|
17
|
+
import * as i15 from "./modal-user-login/modal-user-login.component";
|
|
18
|
+
import * as i16 from "./captcha/captcha.component";
|
|
19
|
+
export declare const UserRoutes: Routes;
|
|
20
|
+
export declare class UserModule {
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserModule, never>;
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserModule, [typeof i1.LoginComponent, typeof i2.UserNamePipe], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.HttpClientModule, typeof i4.ReactiveFormsModule, typeof i6.RouterModule, typeof i7.NzInputModule, typeof i8.NzButtonModule, typeof i9.NzModalModule, typeof i10.NzRadioModule, typeof i11.NzSpinModule, typeof i12.NzTabsModule, typeof i13.NzFormModule, typeof i14.NzMessageModule, typeof i15.ModalUserLoginComponent, typeof i16.CaptchaComponent], [typeof i1.LoginComponent, typeof i15.ModalUserLoginComponent, typeof i2.UserNamePipe, typeof i16.CaptchaComponent]>;
|
|
23
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UserModule>;
|
|
24
|
+
}
|
|
@@ -5,12 +5,10 @@ export declare class FmVideoComponent implements OnChanges {
|
|
|
5
5
|
canvasRef: ElementRef<HTMLCanvasElement>;
|
|
6
6
|
private video;
|
|
7
7
|
private ctx;
|
|
8
|
-
isPlaying: boolean;
|
|
9
8
|
canvasStyle: any;
|
|
10
9
|
constructor();
|
|
11
10
|
ngOnChanges(changes: SimpleChanges): void;
|
|
12
11
|
play(url: string): void;
|
|
13
|
-
togglePlay(): void;
|
|
14
12
|
private drawFrame;
|
|
15
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FmVideoComponent, never>;
|
|
16
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<FmVideoComponent, "fm-video", never, { "url": { "alias": "url"; "required": false; }; "canvasStyle": { "alias": "canvasStyle"; "required": false; }; }, {}, never, never, true, never>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * from './lib/aigc';
|
|
|
2
2
|
export * from './lib/map';
|
|
3
3
|
export * from './lib/storage';
|
|
4
4
|
export * from './lib/platform';
|
|
5
|
-
export * from './lib/user';
|
|
6
5
|
export * from './lib/social';
|
|
7
6
|
export * from './lib/video';
|
|
8
7
|
export * from "./lib/nova-cloud";
|
|
8
|
+
export * from './lib/user';
|