@smartsoft001-mobilems/angular 2.11.0 → 2.12.0
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.
|
@@ -1556,9 +1556,29 @@ var GameType;
|
|
|
1556
1556
|
class ImageBox {
|
|
1557
1557
|
}
|
|
1558
1558
|
|
|
1559
|
+
const authenticationGuard = () => {
|
|
1560
|
+
const router = inject(Router);
|
|
1561
|
+
const authStorageService = inject(AuthStorageService);
|
|
1562
|
+
if (authStorageService.hasUser()) {
|
|
1563
|
+
return true;
|
|
1564
|
+
}
|
|
1565
|
+
router.navigate(['/logowanie']);
|
|
1566
|
+
return false;
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
const unauthorizedGuard = () => {
|
|
1570
|
+
const router = inject(Router);
|
|
1571
|
+
const authStorageService = inject(AuthStorageService);
|
|
1572
|
+
if (!authStorageService.hasUser()) {
|
|
1573
|
+
return true;
|
|
1574
|
+
}
|
|
1575
|
+
router.navigate(['/strona-glowna']);
|
|
1576
|
+
return false;
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1559
1579
|
/**
|
|
1560
1580
|
* Generated bundle index. Do not edit.
|
|
1561
1581
|
*/
|
|
1562
1582
|
|
|
1563
|
-
export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, GameType, GlobalService, HoverDirective, ImageBox, ListMode, MetaService, PageComponent, SERVICES, ScrollTopComponent, ScrollableDirective, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, environment, setTranslationsAndLang };
|
|
1583
|
+
export { AppComponent, AuthStorageService, COMPONENTS, ConfigsFacade, ConfigsService, ContrastService, CrudBaseService, DIRECTIVES, DictionaryService, FileUrlService, FiltersBaseComponent, FiltersContext, GameType, GlobalService, HoverDirective, ImageBox, ListMode, MetaService, PageComponent, SERVICES, ScrollTopComponent, ScrollableDirective, SeoService, SettingsService, SharedConfig, SharedModule, StyleService, TRANSLATE_DATA_PL, TranslationService, WcagService, authenticationGuard, environment, setTranslationsAndLang, unauthorizedGuard };
|
|
1564
1584
|
//# sourceMappingURL=smartsoft001-mobilems-angular.mjs.map
|