@social-mail/social-mail-client 1.2.115 → 1.2.117
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/admin/AdminAppIndex.pack.js +16 -6
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/user/multi-factor/SetupMultiFactorPage.d.ts +16 -0
- package/dist/common/pages/user/multi-factor/SetupMultiFactorPage.d.ts.map +1 -0
- package/dist/common/pages/user/multi-factor/SetupMultiFactorPage.js +158 -0
- package/dist/common/pages/user/multi-factor/SetupMultiFactorPage.js.map +1 -0
- package/dist/common/pages/user/services/UserService.d.ts +1 -0
- package/dist/common/pages/user/services/UserService.d.ts.map +1 -1
- package/dist/common/pages/user/services/UserService.js +13 -6
- package/dist/common/pages/user/services/UserService.js.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js +3 -0
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.d.ts.map +1 -1
- package/dist/web/AppIndex.js +8 -9
- package/dist/web/AppIndex.js.map +1 -1
- package/dist/web/AppIndex.pack.js +186 -16
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +3 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/user/multi-factor/SetupMultiFactorPage.tsx +160 -0
- package/src/common/pages/user/services/UserService.ts +9 -4
- package/src/common/pages/websites/studio/WebSiteStudioPage.tsx +3 -0
- package/src/web/AppIndex.tsx +6 -10
|
@@ -43832,6 +43832,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
43832
43832
|
editCode() {
|
|
43833
43833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43834
43834
|
const file = yield PageNavigator.pushPageForResult(CodeEditorPage, this.selectedFile);
|
|
43835
|
+
this.selectedFile.fileContentID = file.fileContentID;
|
|
43836
|
+
this.selectedFile.url = file.url;
|
|
43837
|
+
this.selectedFile.downloadUrl = file.downloadUrl;
|
|
43835
43838
|
this.htmlEditor.htmlPage = yield FetchBuilder.get(file.url).responseAsText();
|
|
43836
43839
|
});
|
|
43837
43840
|
}
|
|
@@ -43986,10 +43989,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
43986
43989
|
|
|
43987
43990
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/websites/studio/WebSiteStudioPage");
|
|
43988
43991
|
|
|
43989
|
-
System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../SocialMailApp"], function (_export, _context) {
|
|
43992
|
+
System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../SocialMailApp", "@web-atoms/date-time/dist/DateTime"], function (_export, _context) {
|
|
43990
43993
|
"use strict";
|
|
43991
43994
|
|
|
43992
|
-
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, User, UserAuthFactor, SocialMailApp, UserService;
|
|
43995
|
+
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, User, UserAuthFactor, SocialMailApp, DateTime, UserService;
|
|
43993
43996
|
return {
|
|
43994
43997
|
setters: [function (_tslib) {
|
|
43995
43998
|
__awaiter = _tslib.__awaiter;
|
|
@@ -44006,6 +44009,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
44006
44009
|
UserAuthFactor = _modelModel.UserAuthFactor;
|
|
44007
44010
|
}, function (_SocialMailApp) {
|
|
44008
44011
|
SocialMailApp = _SocialMailApp.default;
|
|
44012
|
+
}, function (_webAtomsDateTimeDistDateTime) {
|
|
44013
|
+
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
44009
44014
|
}],
|
|
44010
44015
|
execute: function () {
|
|
44011
44016
|
UserService = class UserService {
|
|
@@ -44021,7 +44026,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
44021
44026
|
}
|
|
44022
44027
|
save(user) {
|
|
44023
44028
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44024
|
-
let cloner = this.entityService.cloner(user)
|
|
44029
|
+
let cloner = this.entityService.cloner(user);
|
|
44025
44030
|
if (user.changePassword) {
|
|
44026
44031
|
cloner = cloner.include(x => x.changePassword);
|
|
44027
44032
|
}
|
|
@@ -44029,16 +44034,21 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
44029
44034
|
});
|
|
44030
44035
|
}
|
|
44031
44036
|
createAuthFactor(user, method = "totp") {
|
|
44032
|
-
var _a;
|
|
44033
44037
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44034
44038
|
const authFactor = UserAuthFactor.create({
|
|
44039
|
+
userID: user.userID,
|
|
44035
44040
|
method
|
|
44036
44041
|
});
|
|
44037
|
-
|
|
44038
|
-
yield this.save(user);
|
|
44042
|
+
yield this.entityService.save(authFactor);
|
|
44039
44043
|
return authFactor;
|
|
44040
44044
|
});
|
|
44041
44045
|
}
|
|
44046
|
+
verify(af) {
|
|
44047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44048
|
+
af.dateUpdated = DateTime.now;
|
|
44049
|
+
yield this.entityService.save(af, x => x);
|
|
44050
|
+
});
|
|
44051
|
+
}
|
|
44042
44052
|
};
|
|
44043
44053
|
__decorate([Inject, __metadata("design:type", EntityService)], UserService.prototype, "entityService", void 0);
|
|
44044
44054
|
UserService = __decorate([DITransient()], UserService);
|