@rxap/firebase 22.0.0-dev.0 → 22.0.0-dev.2
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/CHANGELOG.md +44 -0
- package/README.md +5 -3
- package/compodoc/{modules/RxapAngularFireStorageModule.html → architecture.html} +70 -96
- package/compodoc/changelog.html +88 -5
- package/compodoc/dependencies.html +104 -27
- package/compodoc/index.html +50 -8
- package/compodoc/injectables/AppCheckService.html +121 -116
- package/compodoc/injectables/RxapFirebaseMessagingService.html +198 -59
- package/compodoc/interceptors/FirebaseAppCheckHttpInterceptor.html +89 -34
- package/compodoc/interfaces/FirebaseConfig.html +116 -66
- package/compodoc/interfaces/Message.html +256 -159
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +25 -12
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +217 -0
- package/compodoc/miscellaneous/functions.html +935 -111
- package/compodoc/miscellaneous/variables.html +614 -127
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +3499 -1425
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/AppCheckService.html +106 -5
- package/docs/html/classes/FirebaseAppCheckHttpInterceptor.html +107 -8
- package/docs/html/classes/RxapFirebaseMessagingService.html +123 -7
- package/docs/html/functions/AnalyticsEnabledFactory.html +42 -1
- package/docs/html/functions/AppCheckEnabledFactory.html +42 -1
- package/docs/html/functions/AppCheckSiteKeyFactory.html +42 -1
- package/docs/html/functions/AppIsTokenAutoRefreshEnabledFactory.html +42 -1
- package/docs/html/functions/AuthLanguageCodeFactory.html +42 -1
- package/docs/html/functions/AuthPersistenceFactory.html +42 -1
- package/docs/html/functions/AuthSettingsFactory.html +42 -1
- package/docs/html/functions/AuthTenantIdFactory.html +42 -1
- package/docs/html/functions/AuthUseDeviceLanguageFactory.html +42 -1
- package/docs/html/functions/DataCollectionEnabledFactory.html +42 -1
- package/docs/html/functions/EnablePersistenceTokenFactory.html +42 -1
- package/docs/html/functions/FirebaseAnalyticsFactory.html +45 -0
- package/docs/html/functions/FirebaseAppCheckFactory.html +47 -0
- package/docs/html/functions/FirebaseAppFactory.html +45 -0
- package/docs/html/functions/FirebaseAuthFactory.html +43 -0
- package/docs/html/functions/FirebaseFirestoreFactory.html +43 -0
- package/docs/html/functions/FirebaseFunctionsFactory.html +43 -0
- package/docs/html/functions/FirebaseMessagingFactory.html +44 -0
- package/docs/html/functions/FirebaseNameOrConfigTokenFactory.html +42 -1
- package/docs/html/functions/FirebaseOptionsTokenFactory.html +42 -1
- package/docs/html/functions/FirebasePerformanceFactory.html +43 -0
- package/docs/html/functions/FirebaseStorageFactory.html +43 -0
- package/docs/html/functions/FirestoreSettingsTokenFactory.html +42 -1
- package/docs/html/functions/FunctionsNewOriginBehaviorFactory.html +42 -1
- package/docs/html/functions/FunctionsOriginFactory.html +42 -1
- package/docs/html/functions/FunctionsRegionFactory.html +42 -1
- package/docs/html/functions/GetAnalyticsAppName.html +42 -1
- package/docs/html/functions/InstrumentationEnabledFactory.html +42 -1
- package/docs/html/functions/PersistenceSettingsTokenFactory.html +42 -1
- package/docs/html/functions/ServiceWorkerFactory.html +38 -1
- package/docs/html/functions/StorageBucketFactory.html +42 -1
- package/docs/html/functions/StorageMaxOperationRetryTimeFactory.html +42 -1
- package/docs/html/functions/StorageMaxUploadRetryTimeFactory.html +42 -1
- package/docs/html/functions/UseAuthEmulatorFactory.html +42 -1
- package/docs/html/functions/UseFirestoreEmulatorFactory.html +42 -1
- package/docs/html/functions/UseFunctionsEmulatorFactory.html +42 -1
- package/docs/html/functions/VapidKeyFactory.html +42 -1
- package/docs/html/functions/provideFirebaseAppCheck.html +40 -0
- package/docs/html/functions/provideFirebaseStorageEmulator.html +40 -0
- package/docs/html/hierarchy.html +29 -0
- package/docs/html/index.html +44 -7
- package/docs/html/interfaces/FirebaseConfig.html +123 -9
- package/docs/html/interfaces/Message.html +67 -4
- package/docs/html/modules.html +48 -1
- package/docs/html/variables/APP_CHECK_ENABLED.html +33 -1
- package/docs/html/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.html +33 -1
- package/docs/html/variables/APP_CHECK_SITE_KEY.html +33 -1
- package/docs/html/variables/FIREBASE_ANALYTICS.html +35 -0
- package/docs/html/variables/FIREBASE_ANALYTICS_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_APP.html +33 -0
- package/docs/html/variables/FIREBASE_APP_CHECK.html +35 -0
- package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.html +33 -1
- package/docs/html/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.html +33 -1
- package/docs/html/variables/FIREBASE_APP_CHECK_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_APP_NAME.html +35 -0
- package/docs/html/variables/FIREBASE_APP_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_AUTH.html +33 -0
- package/docs/html/variables/FIREBASE_AUTH_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_FIRESTORE.html +33 -0
- package/docs/html/variables/FIREBASE_FIRESTORE_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_FUNCTIONS.html +33 -0
- package/docs/html/variables/FIREBASE_FUNCTIONS_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_MESSAGING.html +35 -0
- package/docs/html/variables/FIREBASE_MESSAGING_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_MESSAGING_VAPID_KEY.html +33 -0
- package/docs/html/variables/FIREBASE_OPTIONS.html +35 -0
- package/docs/html/variables/FIREBASE_PERFORMANCE.html +33 -0
- package/docs/html/variables/FIREBASE_PERFORMANCE_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_PROVIDERS.html +33 -1
- package/docs/html/variables/FIREBASE_STORAGE.html +33 -0
- package/docs/html/variables/FIREBASE_STORAGE_PROVIDERS.html +33 -1
- package/docs/html/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.html +33 -1
- package/docs/html/variables/USE_STORAGE_EMULATOR.html +33 -1
- package/docs/html/variables/provideAngularFireAppCheck.html +47 -0
- package/docs/html/variables/provideAngularFireStorageEmulator.html +47 -0
- package/docs/markdown/README.md +6 -4
- package/docs/markdown/classes/AppCheckService.md +10 -12
- package/docs/markdown/classes/FirebaseAppCheckHttpInterceptor.md +9 -9
- package/docs/markdown/classes/RxapFirebaseMessagingService.md +23 -15
- package/docs/markdown/functions/AnalyticsEnabledFactory.md +2 -2
- package/docs/markdown/functions/AppCheckEnabledFactory.md +2 -2
- package/docs/markdown/functions/AppCheckSiteKeyFactory.md +2 -2
- package/docs/markdown/functions/AppIsTokenAutoRefreshEnabledFactory.md +2 -2
- package/docs/markdown/functions/AuthLanguageCodeFactory.md +2 -2
- package/docs/markdown/functions/AuthPersistenceFactory.md +2 -2
- package/docs/markdown/functions/AuthSettingsFactory.md +2 -2
- package/docs/markdown/functions/AuthTenantIdFactory.md +2 -2
- package/docs/markdown/functions/AuthUseDeviceLanguageFactory.md +2 -2
- package/docs/markdown/functions/DataCollectionEnabledFactory.md +2 -2
- package/docs/markdown/functions/EnablePersistenceTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebaseAnalyticsFactory.md +27 -0
- package/docs/markdown/functions/FirebaseAppCheckFactory.md +35 -0
- package/docs/markdown/functions/FirebaseAppFactory.md +27 -0
- package/docs/markdown/functions/FirebaseAuthFactory.md +25 -0
- package/docs/markdown/functions/FirebaseFirestoreFactory.md +25 -0
- package/docs/markdown/functions/FirebaseFunctionsFactory.md +25 -0
- package/docs/markdown/functions/FirebaseMessagingFactory.md +23 -0
- package/docs/markdown/functions/FirebaseNameOrConfigTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebaseOptionsTokenFactory.md +2 -2
- package/docs/markdown/functions/FirebasePerformanceFactory.md +25 -0
- package/docs/markdown/functions/FirebaseStorageFactory.md +25 -0
- package/docs/markdown/functions/FirestoreSettingsTokenFactory.md +2 -2
- package/docs/markdown/functions/FunctionsNewOriginBehaviorFactory.md +2 -2
- package/docs/markdown/functions/FunctionsOriginFactory.md +2 -2
- package/docs/markdown/functions/FunctionsRegionFactory.md +2 -2
- package/docs/markdown/functions/GetAnalyticsAppName.md +4 -4
- package/docs/markdown/functions/InstrumentationEnabledFactory.md +2 -2
- package/docs/markdown/functions/PersistenceSettingsTokenFactory.md +2 -2
- package/docs/markdown/functions/ServiceWorkerFactory.md +4 -4
- package/docs/markdown/functions/StorageBucketFactory.md +2 -2
- package/docs/markdown/functions/StorageMaxOperationRetryTimeFactory.md +2 -2
- package/docs/markdown/functions/StorageMaxUploadRetryTimeFactory.md +2 -2
- package/docs/markdown/functions/UseAuthEmulatorFactory.md +2 -2
- package/docs/markdown/functions/UseFirestoreEmulatorFactory.md +2 -2
- package/docs/markdown/functions/UseFunctionsEmulatorFactory.md +2 -2
- package/docs/markdown/functions/VapidKeyFactory.md +2 -2
- package/docs/markdown/functions/provideFirebaseAppCheck.md +17 -0
- package/docs/markdown/functions/provideFirebaseStorageEmulator.md +17 -0
- package/docs/markdown/globals.md +27 -4
- package/docs/markdown/interfaces/FirebaseConfig.md +88 -84
- package/docs/markdown/interfaces/Message.md +5 -5
- package/docs/markdown/variables/APP_CHECK_ENABLED.md +2 -2
- package/docs/markdown/variables/APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +2 -2
- package/docs/markdown/variables/APP_CHECK_SITE_KEY.md +2 -2
- package/docs/markdown/variables/FIREBASE_ANALYTICS.md +13 -0
- package/docs/markdown/variables/FIREBASE_ANALYTICS_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP.md +11 -0
- package/docs/markdown/variables/FIREBASE_APP_CHECK.md +13 -0
- package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_CHECK_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_APP_NAME.md +13 -0
- package/docs/markdown/variables/FIREBASE_APP_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_AUTH.md +11 -0
- package/docs/markdown/variables/FIREBASE_AUTH_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_FIRESTORE.md +11 -0
- package/docs/markdown/variables/FIREBASE_FIRESTORE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_FUNCTIONS.md +11 -0
- package/docs/markdown/variables/FIREBASE_FUNCTIONS_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_MESSAGING.md +13 -0
- package/docs/markdown/variables/FIREBASE_MESSAGING_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_MESSAGING_VAPID_KEY.md +11 -0
- package/docs/markdown/variables/FIREBASE_OPTIONS.md +13 -0
- package/docs/markdown/variables/FIREBASE_PERFORMANCE.md +11 -0
- package/docs/markdown/variables/FIREBASE_PERFORMANCE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/FIREBASE_STORAGE.md +11 -0
- package/docs/markdown/variables/FIREBASE_STORAGE_PROVIDERS.md +2 -2
- package/docs/markdown/variables/RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +2 -2
- package/docs/markdown/variables/USE_STORAGE_EMULATOR.md +2 -2
- package/docs/markdown/variables/provideAngularFireAppCheck.md +21 -0
- package/docs/markdown/variables/provideAngularFireStorageEmulator.md +21 -0
- package/docs/wiki/Class.AppCheckService.md +9 -11
- package/docs/wiki/Class.FirebaseAppCheckHttpInterceptor.md +8 -8
- package/docs/wiki/Class.RxapFirebaseMessagingService.md +22 -14
- package/docs/wiki/Function.AnalyticsEnabledFactory.md +1 -1
- package/docs/wiki/Function.AppCheckEnabledFactory.md +1 -1
- package/docs/wiki/Function.AppCheckSiteKeyFactory.md +1 -1
- package/docs/wiki/Function.AppIsTokenAutoRefreshEnabledFactory.md +1 -1
- package/docs/wiki/Function.AuthLanguageCodeFactory.md +1 -1
- package/docs/wiki/Function.AuthPersistenceFactory.md +1 -1
- package/docs/wiki/Function.AuthSettingsFactory.md +1 -1
- package/docs/wiki/Function.AuthTenantIdFactory.md +1 -1
- package/docs/wiki/Function.AuthUseDeviceLanguageFactory.md +1 -1
- package/docs/wiki/Function.DataCollectionEnabledFactory.md +1 -1
- package/docs/wiki/Function.EnablePersistenceTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebaseAnalyticsFactory.md +23 -0
- package/docs/wiki/Function.FirebaseAppCheckFactory.md +31 -0
- package/docs/wiki/Function.FirebaseAppFactory.md +23 -0
- package/docs/wiki/Function.FirebaseAuthFactory.md +21 -0
- package/docs/wiki/Function.FirebaseFirestoreFactory.md +21 -0
- package/docs/wiki/Function.FirebaseFunctionsFactory.md +21 -0
- package/docs/wiki/Function.FirebaseMessagingFactory.md +19 -0
- package/docs/wiki/Function.FirebaseNameOrConfigTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebaseOptionsTokenFactory.md +1 -1
- package/docs/wiki/Function.FirebasePerformanceFactory.md +21 -0
- package/docs/wiki/Function.FirebaseStorageFactory.md +21 -0
- package/docs/wiki/Function.FirestoreSettingsTokenFactory.md +1 -1
- package/docs/wiki/Function.FunctionsNewOriginBehaviorFactory.md +1 -1
- package/docs/wiki/Function.FunctionsOriginFactory.md +1 -1
- package/docs/wiki/Function.FunctionsRegionFactory.md +1 -1
- package/docs/wiki/Function.GetAnalyticsAppName.md +3 -3
- package/docs/wiki/Function.InstrumentationEnabledFactory.md +1 -1
- package/docs/wiki/Function.PersistenceSettingsTokenFactory.md +1 -1
- package/docs/wiki/Function.ServiceWorkerFactory.md +3 -3
- package/docs/wiki/Function.StorageBucketFactory.md +1 -1
- package/docs/wiki/Function.StorageMaxOperationRetryTimeFactory.md +1 -1
- package/docs/wiki/Function.StorageMaxUploadRetryTimeFactory.md +1 -1
- package/docs/wiki/Function.UseAuthEmulatorFactory.md +1 -1
- package/docs/wiki/Function.UseFirestoreEmulatorFactory.md +1 -1
- package/docs/wiki/Function.UseFunctionsEmulatorFactory.md +1 -1
- package/docs/wiki/Function.VapidKeyFactory.md +1 -1
- package/docs/wiki/Function.provideFirebaseAppCheck.md +13 -0
- package/docs/wiki/Function.provideFirebaseStorageEmulator.md +13 -0
- package/docs/wiki/Home.md +5 -3
- package/docs/wiki/Interface.FirebaseConfig.md +87 -83
- package/docs/wiki/Interface.Message.md +4 -4
- package/docs/wiki/Variable.APP_CHECK_ENABLED.md +1 -1
- package/docs/wiki/Variable.APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED.md +1 -1
- package/docs/wiki/Variable.APP_CHECK_SITE_KEY.md +1 -1
- package/docs/wiki/Variable.FIREBASE_ANALYTICS.md +9 -0
- package/docs/wiki/Variable.FIREBASE_ANALYTICS_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP.md +7 -0
- package/docs/wiki/Variable.FIREBASE_APP_CHECK.md +9 -0
- package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_CHECK_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_APP_NAME.md +9 -0
- package/docs/wiki/Variable.FIREBASE_APP_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_AUTH.md +7 -0
- package/docs/wiki/Variable.FIREBASE_AUTH_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_FIRESTORE.md +7 -0
- package/docs/wiki/Variable.FIREBASE_FIRESTORE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_FUNCTIONS.md +7 -0
- package/docs/wiki/Variable.FIREBASE_FUNCTIONS_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_MESSAGING.md +9 -0
- package/docs/wiki/Variable.FIREBASE_MESSAGING_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_MESSAGING_VAPID_KEY.md +7 -0
- package/docs/wiki/Variable.FIREBASE_OPTIONS.md +9 -0
- package/docs/wiki/Variable.FIREBASE_PERFORMANCE.md +7 -0
- package/docs/wiki/Variable.FIREBASE_PERFORMANCE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.FIREBASE_STORAGE.md +7 -0
- package/docs/wiki/Variable.FIREBASE_STORAGE_PROVIDERS.md +1 -1
- package/docs/wiki/Variable.RXAP_REQUEST_CLOUD_MESSAGING_TOKEN.md +1 -1
- package/docs/wiki/Variable.USE_STORAGE_EMULATOR.md +1 -1
- package/docs/wiki/Variable.provideAngularFireAppCheck.md +17 -0
- package/docs/wiki/Variable.provideAngularFireStorageEmulator.md +17 -0
- package/docs/wiki/_Sidebar.md +25 -2
- package/docs/wiki/globals.md +26 -3
- package/fesm2022/rxap-firebase-auth.mjs +19 -7
- package/fesm2022/rxap-firebase-auth.mjs.map +1 -1
- package/fesm2022/rxap-firebase.mjs +183 -160
- package/fesm2022/rxap-firebase.mjs.map +1 -1
- package/generators.json +16 -0
- package/package.json +16 -31
- package/src/generators/init/generator.js +120 -0
- package/src/generators/init/index.js +6 -0
- package/src/generators/init/schema.json +8 -0
- package/src/generators/package.json +3 -0
- package/types/rxap-firebase-auth.d.ts +9 -1
- package/types/rxap-firebase.d.ts +75 -18
- package/compodoc/js/libs/vis.min.js +0 -47
- package/compodoc/js/menu-wc_es5.js +0 -40
- package/compodoc/modules/RxapAngularFireAppCheckModule/dependencies.svg +0 -50
- package/compodoc/modules/RxapAngularFireAppCheckModule.html +0 -411
- package/docs/html/functions/provideAngularFireAppCheck.html +0 -3
- package/docs/html/functions/provideAngularFireStorageEmulator.html +0 -3
- package/docs/markdown/functions/provideAngularFireAppCheck.md +0 -18
- package/docs/markdown/functions/provideAngularFireStorageEmulator.md +0 -18
- package/docs/wiki/Function.provideAngularFireAppCheck.md +0 -14
- package/docs/wiki/Function.provideAngularFireStorageEmulator.md +0 -14
- package/theme.css +0 -1
package/compodoc/index.html
CHANGED
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -79,9 +100,10 @@
|
|
|
79
100
|
<compodoc-menu mode="normal"></compodoc-menu>
|
|
80
101
|
</div>
|
|
81
102
|
<!-- START CONTENT -->
|
|
82
|
-
<div class="content
|
|
103
|
+
<div class="content readme">
|
|
83
104
|
<div class="content-data">
|
|
84
105
|
|
|
106
|
+
|
|
85
107
|
<p>This package provides Angular modules and services to integrate with Firebase, including App Check, Messaging, and Storage. It offers providers for configuring Firebase options and emulators, as well as an HTTP interceptor for App Check. The package also includes utilities for requesting cloud messaging tokens and displaying notifications.</p>
|
|
86
108
|
<p><a href="https://www.npmjs.com/package/@rxap/firebase"><img src="https://img.shields.io/npm/v/@rxap/firebase?style=flat-square" alt="npm version" class="img-responsive"></a>
|
|
87
109
|
<a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen friendly" class="img-responsive"></a>
|
|
@@ -98,9 +120,10 @@
|
|
|
98
120
|
</ul>
|
|
99
121
|
<h1>Installation</h1>
|
|
100
122
|
<p><strong>Add the package to your workspace:</strong></p>
|
|
101
|
-
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">
|
|
102
|
-
<
|
|
103
|
-
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">
|
|
123
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">npm install @rxap/firebase</code></pre></div><p>With pnpm or yarn use <code>pnpm add</code> or <code>yarn add</code> instead of <code>npm install</code>.</p>
|
|
124
|
+
<p><strong>Install peer dependencies:</strong></p>
|
|
125
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">npm install @angular/common @angular/core @rxap/config @rxap/rxjs @rxap/utilities firebase rxjs </code></pre></div><p><strong>Execute the init generator:</strong></p>
|
|
126
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">nx g @rxap/firebase:init</code></pre></div><h1>Generators</h1>
|
|
104
127
|
<h2>init</h2>
|
|
105
128
|
<blockquote>
|
|
106
129
|
<p>Initialize the package in the workspace</p>
|
|
@@ -123,6 +146,9 @@
|
|
|
123
146
|
|
|
124
147
|
|
|
125
148
|
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
126
152
|
|
|
127
153
|
|
|
128
154
|
|
|
@@ -151,13 +177,31 @@
|
|
|
151
177
|
|
|
152
178
|
<script>
|
|
153
179
|
var COMPODOC_CURRENT_PAGE_DEPTH = 0;
|
|
154
|
-
var COMPODOC_CURRENT_PAGE_CONTEXT = '
|
|
180
|
+
var COMPODOC_CURRENT_PAGE_CONTEXT = 'readme';
|
|
155
181
|
var COMPODOC_CURRENT_PAGE_URL = 'index.html';
|
|
156
182
|
var MAX_SEARCH_RESULTS = 15;
|
|
157
183
|
</script>
|
|
158
184
|
|
|
159
185
|
<script>
|
|
160
186
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
187
|
+
var updateDarkModeSwitchOffset = function () {
|
|
188
|
+
var content = document.querySelector('.content');
|
|
189
|
+
var scrollbarWidth = 0;
|
|
190
|
+
|
|
191
|
+
if (content) {
|
|
192
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
document.documentElement.style.setProperty(
|
|
196
|
+
'--content-scrollbar-width',
|
|
197
|
+
scrollbarWidth + 'px'
|
|
198
|
+
);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
updateDarkModeSwitchOffset();
|
|
202
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
203
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
204
|
+
|
|
161
205
|
checkToggle(darkModeState);
|
|
162
206
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
163
207
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -173,14 +217,12 @@
|
|
|
173
217
|
<script src="./js/libs/lit-html.js"></script>
|
|
174
218
|
|
|
175
219
|
<script src="./js/menu-wc.js" defer></script>
|
|
176
|
-
<script nomodule src="./js/menu-wc_es5.js" defer></script>
|
|
177
220
|
|
|
178
221
|
<script src="./js/libs/bootstrap-native.js"></script>
|
|
179
222
|
|
|
180
223
|
<script src="./js/libs/es6-shim.min.js"></script>
|
|
181
224
|
<script src="./js/libs/EventDispatcher.js"></script>
|
|
182
225
|
<script src="./js/libs/promise.min.js"></script>
|
|
183
|
-
<script src="./js/libs/zepto.min.js"></script>
|
|
184
226
|
|
|
185
227
|
<script src="./js/compodoc.js"></script>
|
|
186
228
|
|
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -89,11 +110,20 @@
|
|
|
89
110
|
|
|
90
111
|
|
|
91
112
|
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
92
117
|
<ol class="breadcrumb">
|
|
93
118
|
<li class="breadcrumb-item">Injectables</li>
|
|
94
119
|
<li class="breadcrumb-item" >AppCheckService</li>
|
|
95
120
|
</ol>
|
|
96
121
|
|
|
122
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
123
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
124
|
+
<code>src/lib/app-check.ts</code>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
97
127
|
<ul class="nav nav-tabs" role="tablist">
|
|
98
128
|
<li class="nav-item">
|
|
99
129
|
<a href="#info"
|
|
@@ -101,6 +131,12 @@
|
|
|
101
131
|
class="nav-link active"
|
|
102
132
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
103
133
|
</li>
|
|
134
|
+
<li class="nav-item">
|
|
135
|
+
<a href="#api"
|
|
136
|
+
class="nav-link"
|
|
137
|
+
|
|
138
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
139
|
+
</li>
|
|
104
140
|
<li class="nav-item">
|
|
105
141
|
<a href="#source"
|
|
106
142
|
class="nav-link"
|
|
@@ -111,30 +147,26 @@
|
|
|
111
147
|
|
|
112
148
|
<div class="tab-content">
|
|
113
149
|
<div class="tab-pane fade active in" id="info">
|
|
114
|
-
<p class="comment">
|
|
115
|
-
<h3>File</h3>
|
|
116
|
-
</p>
|
|
117
|
-
<p class="comment">
|
|
118
|
-
<code>src/lib/app-check.ts</code>
|
|
119
|
-
</p>
|
|
120
150
|
|
|
121
151
|
|
|
122
152
|
|
|
123
153
|
|
|
124
154
|
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<div class="tab-pane fade " id="api">
|
|
125
158
|
<section data-compodoc="block-index">
|
|
126
159
|
<h3 id="index">Index</h3>
|
|
127
|
-
|
|
128
|
-
|
|
160
|
+
<table class="table table-sm table-bordered index-table">
|
|
161
|
+
<tbody>
|
|
129
162
|
<tr>
|
|
130
|
-
<td class="col-md-
|
|
163
|
+
<td class="col-md-3">
|
|
131
164
|
<h6><b>Properties</b></h6>
|
|
132
165
|
</td>
|
|
133
|
-
|
|
134
|
-
<tr>
|
|
135
|
-
<td class="col-md-4">
|
|
166
|
+
<td class="col-md-9">
|
|
136
167
|
<ul class="index-list">
|
|
137
168
|
<li>
|
|
169
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
138
170
|
<span class="modifier">Public</span>
|
|
139
171
|
<span class="modifier">Readonly</span>
|
|
140
172
|
<a href="#onTokenChanged$" >onTokenChanged$</a>
|
|
@@ -142,53 +174,39 @@
|
|
|
142
174
|
</ul>
|
|
143
175
|
</td>
|
|
144
176
|
</tr>
|
|
177
|
+
</tbody>
|
|
178
|
+
</table>
|
|
145
179
|
|
|
180
|
+
<table class="table table-sm table-bordered index-table">
|
|
181
|
+
<tbody>
|
|
146
182
|
<tr>
|
|
147
|
-
<td class="col-md-
|
|
183
|
+
<td class="col-md-3">
|
|
148
184
|
<h6><b>Methods</b></h6>
|
|
149
185
|
</td>
|
|
150
|
-
|
|
151
|
-
<tr>
|
|
152
|
-
<td class="col-md-4">
|
|
186
|
+
<td class="col-md-9">
|
|
153
187
|
<ul class="index-list">
|
|
154
188
|
<li>
|
|
189
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
155
190
|
<span class="modifier">Public</span>
|
|
156
191
|
<a href="#getToken" >getToken</a>
|
|
157
192
|
</li>
|
|
158
193
|
<li>
|
|
194
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
159
195
|
<span class="modifier">Public</span>
|
|
160
196
|
<a href="#setTokenAutoRefreshEnabled" >setTokenAutoRefreshEnabled</a>
|
|
161
197
|
</li>
|
|
162
198
|
</ul>
|
|
163
199
|
</td>
|
|
164
200
|
</tr>
|
|
201
|
+
</tbody>
|
|
202
|
+
</table>
|
|
165
203
|
|
|
166
204
|
|
|
167
205
|
|
|
168
206
|
|
|
169
207
|
|
|
170
|
-
</tbody>
|
|
171
|
-
</table>
|
|
172
208
|
</section>
|
|
173
209
|
|
|
174
|
-
<section data-compodoc="block-constructor">
|
|
175
|
-
<h3 id="constructor">Constructor</h3>
|
|
176
|
-
<table class="table table-sm table-bordered">
|
|
177
|
-
<tbody>
|
|
178
|
-
<tr>
|
|
179
|
-
<td class="col-md-4">
|
|
180
|
-
<code>constructor()</code>
|
|
181
|
-
</td>
|
|
182
|
-
</tr>
|
|
183
|
-
<tr>
|
|
184
|
-
<td class="col-md-4">
|
|
185
|
-
<div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/app-check.ts:34</a></div>
|
|
186
|
-
</td>
|
|
187
|
-
</tr>
|
|
188
|
-
|
|
189
|
-
</tbody>
|
|
190
|
-
</table>
|
|
191
|
-
</section>
|
|
192
210
|
|
|
193
211
|
<section data-compodoc="block-methods">
|
|
194
212
|
|
|
@@ -217,8 +235,8 @@
|
|
|
217
235
|
|
|
218
236
|
<tr>
|
|
219
237
|
<td class="col-md-4">
|
|
220
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
221
|
-
class="link-to-prism">src/lib/app-check.ts:
|
|
238
|
+
<div class="io-line">Defined in <a href="" data-line="34"
|
|
239
|
+
class="link-to-prism">src/lib/app-check.ts:34</a></div>
|
|
222
240
|
</td>
|
|
223
241
|
</tr>
|
|
224
242
|
|
|
@@ -286,8 +304,8 @@
|
|
|
286
304
|
|
|
287
305
|
<tr>
|
|
288
306
|
<td class="col-md-4">
|
|
289
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
290
|
-
class="link-to-prism">src/lib/app-check.ts:
|
|
307
|
+
<div class="io-line">Defined in <a href="" data-line="41"
|
|
308
|
+
class="link-to-prism">src/lib/app-check.ts:41</a></div>
|
|
291
309
|
</td>
|
|
292
310
|
</tr>
|
|
293
311
|
|
|
@@ -334,6 +352,7 @@
|
|
|
334
352
|
</tbody>
|
|
335
353
|
</table>
|
|
336
354
|
</section>
|
|
355
|
+
|
|
337
356
|
<section data-compodoc="block-properties">
|
|
338
357
|
|
|
339
358
|
<h3 id="inputs">
|
|
@@ -360,12 +379,19 @@
|
|
|
360
379
|
</tr>
|
|
361
380
|
<tr>
|
|
362
381
|
<td class="col-md-4">
|
|
363
|
-
<i>Default value : </i><code>
|
|
382
|
+
<i>Default value : </i><code>this.appCheck ?
|
|
383
|
+
new Observable<AppCheckTokenResult>(subscriber => onTokenChanged(
|
|
384
|
+
this.appCheck!,
|
|
385
|
+
tokenResult => subscriber.next(tokenResult),
|
|
386
|
+
error => subscriber.error(error),
|
|
387
|
+
() => subscriber.complete(),
|
|
388
|
+
)).pipe(shareReplay({ bufferSize: 1, refCount: true })) :
|
|
389
|
+
EMPTY</code>
|
|
364
390
|
</td>
|
|
365
391
|
</tr>
|
|
366
392
|
<tr>
|
|
367
393
|
<td class="col-md-4">
|
|
368
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
394
|
+
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/app-check.ts:25</a></div>
|
|
369
395
|
</td>
|
|
370
396
|
</tr>
|
|
371
397
|
|
|
@@ -378,100 +404,58 @@
|
|
|
378
404
|
|
|
379
405
|
|
|
380
406
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
381
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
import {
|
|
389
|
-
FIREBASE_APP_NAME,
|
|
390
|
-
FIREBASE_OPTIONS,
|
|
391
|
-
ɵfirebaseAppFactory,
|
|
392
|
-
} from '@angular/fire/compat';
|
|
393
|
-
import { FirebaseOptions } from 'firebase/app';
|
|
407
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
408
|
+
EnvironmentProviders,
|
|
409
|
+
inject,
|
|
410
|
+
Injectable,
|
|
411
|
+
makeEnvironmentProviders,
|
|
412
|
+
provideAppInitializer,
|
|
413
|
+
} from '@angular/core';
|
|
394
414
|
import {
|
|
395
|
-
AppCheck,
|
|
396
415
|
AppCheckTokenResult,
|
|
397
416
|
getToken,
|
|
398
417
|
onTokenChanged,
|
|
399
418
|
setTokenAutoRefreshEnabled,
|
|
400
|
-
} from '
|
|
419
|
+
} from 'firebase/app-check';
|
|
401
420
|
import {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
} from '
|
|
421
|
+
EMPTY,
|
|
422
|
+
Observable,
|
|
423
|
+
} from 'rxjs';
|
|
424
|
+
import { shareReplay } from 'rxjs/operators';
|
|
425
|
+
import { FIREBASE_APP_CHECK } from './tokens';
|
|
406
426
|
|
|
407
427
|
@Injectable()
|
|
408
428
|
export class AppCheckService {
|
|
409
|
-
private readonly
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
// NgZone is only injected because the @angular/fire compat factory (ɵfirebaseAppFactory) requires it
|
|
420
|
-
const zone = inject<NgZone>(NgZone);
|
|
421
|
-
const siteKey = inject(APP_CHECK_SITE_KEY, { optional: true });
|
|
422
|
-
const isTokenAutoRefreshEnabled = inject(APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED, { optional: true });
|
|
423
|
-
|
|
424
|
-
if (this.enabled) {
|
|
425
|
-
if (siteKey) {
|
|
426
|
-
const app: any = ɵfirebaseAppFactory(options, zone, nameOrConfig);
|
|
427
|
-
const appCheck = this._appCheck = app.appCheck();
|
|
428
|
-
appCheck.activate(
|
|
429
|
-
siteKey,
|
|
430
|
-
isTokenAutoRefreshEnabled ?? undefined,
|
|
431
|
-
);
|
|
432
|
-
this.onTokenChanged$ = (new Observable<AppCheckTokenResult>(subscriber => {
|
|
433
|
-
onTokenChanged(
|
|
434
|
-
appCheck,
|
|
435
|
-
tokenResult => subscriber.next(tokenResult),
|
|
436
|
-
error => subscriber.error(error),
|
|
437
|
-
() => subscriber.complete(),
|
|
438
|
-
);
|
|
439
|
-
})).pipe(
|
|
440
|
-
shareReplay(1),
|
|
441
|
-
);
|
|
442
|
-
} else {
|
|
443
|
-
if (isDevMode()) {
|
|
444
|
-
console.error('The app check site key is not provided');
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
} else {
|
|
448
|
-
if (isDevMode()) {
|
|
449
|
-
console.warn('App check is disabled');
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
429
|
+
private readonly appCheck = inject(FIREBASE_APP_CHECK, { optional: true }) ?? null;
|
|
430
|
+
|
|
431
|
+
public readonly onTokenChanged$: Observable<AppCheckTokenResult> = this.appCheck ?
|
|
432
|
+
new Observable<AppCheckTokenResult>(subscriber => onTokenChanged(
|
|
433
|
+
this.appCheck!,
|
|
434
|
+
tokenResult => subscriber.next(tokenResult),
|
|
435
|
+
error => subscriber.error(error),
|
|
436
|
+
() => subscriber.complete(),
|
|
437
|
+
)).pipe(shareReplay({ bufferSize: 1, refCount: true })) :
|
|
438
|
+
EMPTY;
|
|
453
439
|
|
|
454
440
|
public getToken(forceRefresh?: boolean): Promise<string> {
|
|
455
|
-
if (this.
|
|
456
|
-
return getToken(this.
|
|
457
|
-
Promise.reject(new Error('firebase app check is not initialized'));
|
|
441
|
+
if (this.appCheck) {
|
|
442
|
+
return getToken(this.appCheck, forceRefresh).then(result => result.token);
|
|
458
443
|
}
|
|
459
444
|
return Promise.reject(new Error('firebase app check is not initialized'));
|
|
460
445
|
}
|
|
461
446
|
|
|
462
447
|
public setTokenAutoRefreshEnabled(isTokenAutoRefreshEnabled: boolean): void {
|
|
463
|
-
if (this.
|
|
464
|
-
setTokenAutoRefreshEnabled(this.
|
|
448
|
+
if (this.appCheck) {
|
|
449
|
+
setTokenAutoRefreshEnabled(this.appCheck, isTokenAutoRefreshEnabled);
|
|
465
450
|
}
|
|
466
451
|
}
|
|
467
452
|
|
|
468
453
|
}
|
|
469
454
|
|
|
470
455
|
/**
|
|
471
|
-
* Registers the AppCheckService and eagerly instantiates it on app initialization
|
|
472
|
-
* (replaces the former RxapAngularFireAppCheckModule).
|
|
456
|
+
* Registers the AppCheckService and eagerly instantiates it on app initialization.
|
|
473
457
|
*/
|
|
474
|
-
export function
|
|
458
|
+
export function provideFirebaseAppCheck(): EnvironmentProviders {
|
|
475
459
|
return makeEnvironmentProviders([
|
|
476
460
|
AppCheckService,
|
|
477
461
|
provideAppInitializer(() => {
|
|
@@ -479,6 +463,11 @@ export function provideAngularFireAppCheck(): EnvironmentProviders {
|
|
|
479
463
|
}),
|
|
480
464
|
]);
|
|
481
465
|
}
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @deprecated use provideFirebaseAppCheck
|
|
469
|
+
*/
|
|
470
|
+
export const provideAngularFireAppCheck = provideFirebaseAppCheck;
|
|
482
471
|
</code></pre>
|
|
483
472
|
</div>
|
|
484
473
|
|
|
@@ -528,6 +517,24 @@ export function provideAngularFireAppCheck(): EnvironmentProviders {
|
|
|
528
517
|
|
|
529
518
|
<script>
|
|
530
519
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
520
|
+
var updateDarkModeSwitchOffset = function () {
|
|
521
|
+
var content = document.querySelector('.content');
|
|
522
|
+
var scrollbarWidth = 0;
|
|
523
|
+
|
|
524
|
+
if (content) {
|
|
525
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
document.documentElement.style.setProperty(
|
|
529
|
+
'--content-scrollbar-width',
|
|
530
|
+
scrollbarWidth + 'px'
|
|
531
|
+
);
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
updateDarkModeSwitchOffset();
|
|
535
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
536
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
537
|
+
|
|
531
538
|
checkToggle(darkModeState);
|
|
532
539
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
533
540
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -543,14 +550,12 @@ export function provideAngularFireAppCheck(): EnvironmentProviders {
|
|
|
543
550
|
<script src="../js/libs/lit-html.js"></script>
|
|
544
551
|
|
|
545
552
|
<script src="../js/menu-wc.js" defer></script>
|
|
546
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
547
553
|
|
|
548
554
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
549
555
|
|
|
550
556
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
551
557
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
552
558
|
<script src="../js/libs/promise.min.js"></script>
|
|
553
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
554
559
|
|
|
555
560
|
<script src="../js/compodoc.js"></script>
|
|
556
561
|
|