@osovitny/anatoly 3.20.34 → 3.20.36
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/fesm2022/osovitny-anatoly.mjs +24 -12
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/index.d.ts +4 -4
- package/package.json +1 -1
|
@@ -616,7 +616,6 @@ class AppContextService extends ApiServiceBase {
|
|
|
616
616
|
|
|
617
617
|
Authors:
|
|
618
618
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
619
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
620
619
|
|
|
621
620
|
Created:
|
|
622
621
|
1 Apr 2024
|
|
@@ -649,18 +648,18 @@ function getAppSettingsByName(name) {
|
|
|
649
648
|
return null;
|
|
650
649
|
}
|
|
651
650
|
function getCurrentApp() {
|
|
652
|
-
|
|
651
|
+
let appSettings = getAppSettingsByName(AppName);
|
|
652
|
+
let appOne = getAppSettingsById(1);
|
|
653
|
+
if (!appSettings || !appOne) {
|
|
653
654
|
return null;
|
|
654
655
|
}
|
|
655
|
-
let appOne = getAppSettingsById(1);
|
|
656
656
|
return {
|
|
657
|
-
|
|
658
|
-
root:
|
|
657
|
+
id: appSettings.id,
|
|
658
|
+
root: appSettings.root,
|
|
659
659
|
one: appOne,
|
|
660
660
|
oneUrl: appOne?.baseUrl + appOne?.root
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
const AppSettings = getAppSettingsByName(AppName);
|
|
664
663
|
|
|
665
664
|
/*
|
|
666
665
|
<file>
|
|
@@ -1348,12 +1347,15 @@ class GoServiceBase {
|
|
|
1348
1347
|
constructor(route, router) {
|
|
1349
1348
|
this.route = route;
|
|
1350
1349
|
this.router = router;
|
|
1350
|
+
this.initialized = false;
|
|
1351
1351
|
this.isDevMode = false;
|
|
1352
|
-
this.internalInit();
|
|
1353
1352
|
}
|
|
1354
|
-
|
|
1355
|
-
this.
|
|
1356
|
-
|
|
1353
|
+
ensureInitialized() {
|
|
1354
|
+
if (!this.initialized) {
|
|
1355
|
+
this.isDevMode = IsDevMode;
|
|
1356
|
+
this.currentApp = getCurrentApp();
|
|
1357
|
+
this.initialized = true;
|
|
1358
|
+
}
|
|
1357
1359
|
}
|
|
1358
1360
|
navigate(commands, extras, reload = false) {
|
|
1359
1361
|
this.router.navigate(commands, extras).then(() => {
|
|
@@ -1363,43 +1365,53 @@ class GoServiceBase {
|
|
|
1363
1365
|
});
|
|
1364
1366
|
}
|
|
1365
1367
|
getHomeUrl() {
|
|
1368
|
+
this.ensureInitialized();
|
|
1366
1369
|
return this.currentApp.root;
|
|
1367
1370
|
}
|
|
1368
1371
|
locationReload() {
|
|
1369
1372
|
window.location.reload();
|
|
1370
1373
|
}
|
|
1371
1374
|
home(reload = false) {
|
|
1375
|
+
this.ensureInitialized();
|
|
1372
1376
|
this.navigate([this.currentApp.root], {}, reload);
|
|
1373
1377
|
}
|
|
1374
1378
|
dashboard(reload = false) {
|
|
1379
|
+
this.ensureInitialized();
|
|
1375
1380
|
this.navigate([this.currentApp.root + '/dashboard'], {}, reload);
|
|
1376
1381
|
}
|
|
1377
1382
|
//Accounts
|
|
1378
1383
|
accountClosed() {
|
|
1384
|
+
this.ensureInitialized();
|
|
1379
1385
|
this.navigate([this.currentApp.root + '/accounts/closed']);
|
|
1380
1386
|
}
|
|
1381
1387
|
//Errors
|
|
1382
1388
|
error() {
|
|
1389
|
+
this.ensureInitialized();
|
|
1383
1390
|
this.navigate([this.currentApp.root + '/errors/error']);
|
|
1384
1391
|
}
|
|
1385
1392
|
//401 Unauthorized
|
|
1386
1393
|
error401() {
|
|
1394
|
+
this.ensureInitialized();
|
|
1387
1395
|
this.navigate([this.currentApp.root + '/errors/401']);
|
|
1388
1396
|
}
|
|
1389
1397
|
//402 Payment Required
|
|
1390
1398
|
error402() {
|
|
1399
|
+
this.ensureInitialized();
|
|
1391
1400
|
this.navigate([this.currentApp.root + '/errors/402']);
|
|
1392
1401
|
}
|
|
1393
1402
|
//403 Forbidden
|
|
1394
1403
|
error403() {
|
|
1404
|
+
this.ensureInitialized();
|
|
1395
1405
|
this.navigate([this.currentApp.root + '/errors/403']);
|
|
1396
1406
|
}
|
|
1397
1407
|
//404 Not Found
|
|
1398
1408
|
error404() {
|
|
1409
|
+
this.ensureInitialized();
|
|
1399
1410
|
this.navigate([this.currentApp.root + '/errors/404']);
|
|
1400
1411
|
}
|
|
1401
1412
|
//500 Internal Server Error
|
|
1402
1413
|
error500() {
|
|
1414
|
+
this.ensureInitialized();
|
|
1403
1415
|
this.navigate([this.currentApp.root + '/errors/500']);
|
|
1404
1416
|
}
|
|
1405
1417
|
static { this.ɵfac = function GoServiceBase_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GoServiceBase)(i0.ɵɵinject(i1$1.ActivatedRoute), i0.ɵɵinject(i1$1.Router)); }; }
|
|
@@ -2486,7 +2498,7 @@ class AnatolyHttpInterceptor {
|
|
|
2486
2498
|
//7. set ca
|
|
2487
2499
|
let app = getCurrentApp();
|
|
2488
2500
|
if (app) {
|
|
2489
|
-
newUrl = this.setQS(newUrl, 'ca=' + app.
|
|
2501
|
+
newUrl = this.setQS(newUrl, 'ca=' + app.id);
|
|
2490
2502
|
}
|
|
2491
2503
|
//8. set new url
|
|
2492
2504
|
req = req.clone({ url: newUrl });
|
|
@@ -11425,5 +11437,5 @@ class AnatolyModule {
|
|
|
11425
11437
|
* Generated bundle index. Do not edit.
|
|
11426
11438
|
*/
|
|
11427
11439
|
|
|
11428
|
-
export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName,
|
|
11440
|
+
export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppVersion, AppsGoServiceBase, AuthService, AuthenticationGuard, BillingService, BillingUtils, BraintreeDialog, BrowserService, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, ClientApps, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, ControlPanelComponent, Convert, Copy2ClipboardComponent, CoreApiService, CountryDropdownlist, CurrenciesApiService, CurrenciesStorageService, DOM, DataPagerComponent, DataViewType, DateConvert, DefaultEditorOptions, DialogBase, DigitalMarketingService, DiscountCodeStatus, DiscountCodeType, EditComponentBase, EditPageBase, EmailsApiService, EnumEditComponentBase, FeatureWillBeReadyComponent, FileSizePipe, FormValidationSummaryComponent, GABillingEvents, GAEvents, GlobalErrorHandler, GoServiceBase, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, ImageReplacerDirective, InjectorInstance$1 as InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10nUtils, LanguageDropdownlist, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationModule, LocalizationService, LocalizePipe, LoggingService, MSALUtils, Mode, ModerationStatus, ModerationStatusDropdownlist, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, PaypalSubscribeButtonComponent, PromoCodesApiService, PublishStatus, PublishStatusDropdownlist, QSUtils, ReplaceTextPipe, SafeHtmlPipe, ScriptService, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionProvider, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, formatUrl, getAppCoreSettings, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, is, resetAppCoreSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
|
|
11429
11441
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|