@rxap/firebase 21.0.1 → 22.0.0-dev.1
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 +31 -0
- package/README.md +1 -1
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +75 -5
- package/compodoc/dependencies.html +104 -27
- package/compodoc/index.html +47 -6
- 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 +114 -64
- 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 +215 -0
- package/compodoc/miscellaneous/functions.html +860 -117
- 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 +3419 -1369
- 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 +41 -5
- 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 +2 -2
- 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 +1 -1
- 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 +110 -97
- package/fesm2022/rxap-firebase-auth.mjs.map +1 -1
- package/fesm2022/rxap-firebase.mjs +399 -385
- package/fesm2022/rxap-firebase.mjs.map +1 -1
- package/package.json +16 -29
- package/types/rxap-firebase-auth.d.ts +36 -29
- package/types/rxap-firebase.d.ts +237 -185
- 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
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare const JSZip: any;
|
|
4
|
+
|
|
5
|
+
@Injectable({
|
|
6
|
+
providedIn: 'root'
|
|
7
|
+
})
|
|
8
|
+
export class ZipExportService {
|
|
9
|
+
|
|
10
|
+
exportTemplates(files: any[]) {
|
|
11
|
+
const zip = new JSZip();
|
|
12
|
+
|
|
13
|
+
// Add all template files to the ZIP
|
|
14
|
+
files.forEach(file => {
|
|
15
|
+
zip.file(file.path, file.content);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
// Add a README with instructions
|
|
19
|
+
const readme = this.generateReadme();
|
|
20
|
+
zip.file('README.md', readme);
|
|
21
|
+
|
|
22
|
+
// Generate and download the ZIP file
|
|
23
|
+
zip.generateAsync({ type: 'blob' })
|
|
24
|
+
.then((content: Blob) => {
|
|
25
|
+
this.downloadBlob(content, 'compodoc-templates.zip');
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
private generateReadme(): string {
|
|
30
|
+
return `# Compodoc Custom Templates
|
|
31
|
+
|
|
32
|
+
This ZIP file contains customized templates for Compodoc documentation generation.
|
|
33
|
+
|
|
34
|
+
## Contents
|
|
35
|
+
|
|
36
|
+
- **Templates** (\`.hbs\` files): Handlebars templates for generating documentation pages
|
|
37
|
+
- **Styles** (\`.css\` files): Stylesheets for customizing the appearance
|
|
38
|
+
- **Scripts** (\`.js\` files): JavaScript files for additional functionality
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
1. Extract this ZIP file to a directory on your system
|
|
43
|
+
2. Use the \`--templates\` flag when running Compodoc to specify the path to your custom templates:
|
|
44
|
+
|
|
45
|
+
\`\`\`bash
|
|
46
|
+
compodoc -p tsconfig.json --templates ./path/to/custom/templates/
|
|
47
|
+
\`\`\`
|
|
48
|
+
|
|
49
|
+
## Template Structure
|
|
50
|
+
|
|
51
|
+
- \`page.hbs\` - Main page template
|
|
52
|
+
- \`partials/\` - Directory containing partial templates
|
|
53
|
+
- \`styles/\` - Directory containing CSS files
|
|
54
|
+
- \`js/\` - Directory containing JavaScript files
|
|
55
|
+
|
|
56
|
+
## Customization Tips
|
|
57
|
+
|
|
58
|
+
1. **Templates**: Use Handlebars syntax to customize the HTML structure
|
|
59
|
+
2. **Styles**: Modify CSS to change colors, fonts, layout, etc.
|
|
60
|
+
3. **Scripts**: Add custom JavaScript functionality
|
|
61
|
+
|
|
62
|
+
## Backup
|
|
63
|
+
|
|
64
|
+
Always keep a backup of your original templates before making changes.
|
|
65
|
+
|
|
66
|
+
## Documentation
|
|
67
|
+
|
|
68
|
+
For more information about customizing Compodoc templates, visit:
|
|
69
|
+
https://compodoc.app/guides/template-customization.html
|
|
70
|
+
|
|
71
|
+
Generated by Compodoc Template Playground
|
|
72
|
+
`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private downloadBlob(blob: Blob, filename: string) {
|
|
76
|
+
const url = window.URL.createObjectURL(blob);
|
|
77
|
+
const a = document.createElement('a');
|
|
78
|
+
a.href = url;
|
|
79
|
+
a.download = filename;
|
|
80
|
+
a.style.display = 'none';
|
|
81
|
+
document.body.appendChild(a);
|
|
82
|
+
a.click();
|
|
83
|
+
document.body.removeChild(a);
|
|
84
|
+
window.URL.revokeObjectURL(url);
|
|
85
|
+
}
|
|
86
|
+
}
|