10 |
11 |
12 |
15 |
16 | Nomos
17 |
18 |
19 |
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/src/environments/environment.ts:
--------------------------------------------------------------------------------
1 | // This file can be replaced during build by using the `fileReplacements` array.
2 | // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
3 | // The list of file replacements can be found in `angular.json`.
4 |
5 | export const environment = {
6 | production: false
7 | };
8 |
9 | /*
10 | * For easier debugging in development mode, you can import the following file
11 | * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
12 | *
13 | * This import should be commented out in production mode because it will have a negative impact
14 | * on performance if an error is thrown.
15 | */
16 | // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
17 |
--------------------------------------------------------------------------------
/src/app/settings/addon-detail/addon-detail.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit, ViewChild, ViewContainerRef } from '@angular/core';
2 | import { PluginLoaderService } from '../../services/plugin-loader.service';
3 |
4 | @Component({
5 | selector: 'wk-addon-detail',
6 | templateUrl: './addon-detail.component.html',
7 | styleUrls: ['./addon-detail.component.scss'],
8 | standalone: false
9 | })
10 | export class AddonDetailComponent implements OnInit {
11 | @ViewChild('detailRef', { read: ViewContainerRef, static: true })
12 | detailRef: ViewContainerRef;
13 |
14 | constructor(private pluginLoader: PluginLoaderService) {}
15 |
16 | ngOnInit() {
17 | this.pluginLoader.createComponent('plugin-detail', this.detailRef);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /.angular/cache
2 | # Specifies intentionally untracked files to ignore when using Git
3 | # http://git-scm.com/docs/gitignore
4 |
5 | *~
6 | *.sw[mnpcod]
7 | .tmp
8 | *.tmp
9 | *.tmp.*
10 | *.sublime-project
11 | *.sublime-workspace
12 | .DS_Store
13 | Thumbs.db
14 | UserInterfaceState.xcuserstate
15 | $RECYCLE.BIN/
16 |
17 | *.log
18 | log.txt
19 | npm-debug.log*
20 |
21 | /.idea
22 | /.ionic
23 | /.sass-cache
24 | /.sourcemaps
25 | /.versions
26 | /.vscode
27 | /coverage
28 | /node_modules
29 | /platforms
30 | /plugins
31 | /www
32 |
33 |
34 |
35 | resources/android/icon
36 | resources/android/splash
37 | resources/ios/icon
38 | resources/ios/splash
39 |
40 | ## Local history plugin vscode
41 | .history
42 |
43 | ## Android
44 | .gradle/
45 | android/.idea
46 |
--------------------------------------------------------------------------------
/src/app/settings/addon-settings/addon-settings.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit, ViewChild, ViewContainerRef } from '@angular/core';
2 | import { PluginLoaderService } from '../../services/plugin-loader.service';
3 |
4 | @Component({
5 | selector: 'wk-addon-settings',
6 | templateUrl: './addon-settings.component.html',
7 | styleUrls: ['./addon-settings.component.scss'],
8 | standalone: false
9 | })
10 | export class AddonSettingsComponent implements OnInit {
11 | @ViewChild('settingsRef', { read: ViewContainerRef, static: true })
12 | settingsRef: ViewContainerRef;
13 |
14 | constructor(private pluginLoader: PluginLoaderService) {}
15 |
16 | ngOnInit() {
17 | this.pluginLoader.createComponent('settings', this.settingsRef, null);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |