Update to Angular 9

This commit is contained in:
Nathanael Anderson
2024-02-22 15:00:32 -06:00
parent 65d34322fe
commit b4721d466e
9 changed files with 2125 additions and 688 deletions
+26 -1
View File
@@ -13,6 +13,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "../build/app",
"index": "src/index.html",
"main": "src/main.ts",
@@ -34,6 +35,12 @@
},
"configurations": {
"production": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
@@ -51,6 +58,12 @@
"buildOptimizer": true
},
"test": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
@@ -68,6 +81,12 @@
"buildOptimizer": false
},
"test2": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
@@ -85,6 +104,12 @@
"buildOptimizer": false
},
"local": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
@@ -203,7 +228,7 @@
},
"schematics": {
"@schematics/angular:component": {
"styleext": "scss"
"style": "scss"
}
}
}
+18 -17
View File
@@ -17,16 +17,16 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^8.2.14",
"@angular/common": "^8.2.14",
"@angular/compiler": "^8.2.14",
"@angular/core": "^8.2.14",
"@angular/forms": "^8.2.14",
"@angular/animations": "^9.1.13",
"@angular/common": "^9.1.13",
"@angular/compiler": "^9.1.13",
"@angular/core": "^9.1.13",
"@angular/forms": "^9.1.13",
"@angular/http": "^7.2.15",
"@angular/platform-browser": "^8.2.14",
"@angular/platform-browser-dynamic": "^8.2.14",
"@angular/platform-server": "^8.2.14",
"@angular/router": "^8.2.14",
"@angular/platform-browser": "^9.1.13",
"@angular/platform-browser-dynamic": "^9.1.13",
"@angular/platform-server": "^9.1.13",
"@angular/router": "^9.1.13",
"@simonwep/pickr": "^1.0.0-beta",
"@types/hammerjs": "^2.0.36",
"@types/jquery": "^3.3.29",
@@ -41,20 +41,21 @@
"randomcolor": "^0.5.4",
"rxjs": "^6.6.7",
"rxjs-compat": "^6.5.2",
"tslib": "^1.10.0",
"type-func": "^1.0.3",
"unzipper": "^0.10.10",
"uuid": "^3.3.2",
"zone.js": "^0.9.1"
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.803.29",
"@angular/cli": "^8.3.29",
"@angular/compiler-cli": "^8.2.14",
"@angular/language-service": "^8.2.14",
"@angular-devkit/build-angular": "~0.901.13",
"@angular/cli": "^9.1.15",
"@angular/compiler-cli": "^9.1.13",
"@angular/language-service": "^9.1.13",
"@types/jasmine": "^3.3.13",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.0.8",
"codelyzer": "^5.1.0",
"@types/node": "^12.11.1",
"codelyzer": "^5.1.2",
"jasmine-core": "^3.4.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^6.3.16",
@@ -68,7 +69,7 @@
"rxjs-tslint": "^0.1.7",
"ts-node": "~7.0.0",
"tslint": "^5.17.0",
"typescript": "3.5.3",
"typescript": "3.8.3",
"webpack": "^4.34.0"
}
}
+3 -3
View File
@@ -14,9 +14,9 @@ import { environment } from '../environments/environment';
styleUrls: ['./app.component.scss'],
})
export class AppComponent implements OnInit, AfterViewInit {
@ViewChild('spinner', { static: false }) spinner;
@ViewChild('status', { static: false }) status;
@ViewChild('webview', { static: false }) webview;
@ViewChild('spinner') spinner;
@ViewChild('status') status;
@ViewChild('webview') webview;
helpStatus: string;
extraHelpStatus: string;
devMode: boolean;
+3 -3
View File
@@ -22,9 +22,9 @@ declare let M;
styleUrls: ['./files.component.scss'],
})
export class FilesComponent implements OnInit {
@ViewChild('filesModal', { static: false }) filesModal;
@ViewChild('fixedAction', { static: false }) fixedAction;
@ViewChild('downloadMediaModal', { static: false }) downloadMediaModal;
@ViewChild('filesModal') filesModal;
@ViewChild('fixedAction') fixedAction;
@ViewChild('downloadMediaModal') downloadMediaModal;
@ViewChild('mkDirModal', { static: true }) mkDirModal;
files: FileFolderListing[] = [];
selectedFiles: FileFolderListing[] = [];
@@ -35,12 +35,12 @@ interface LogCatEntry {
styleUrls: ['./header.component.scss'],
})
export class HeaderComponent implements OnInit {
@ViewChild('header', { static: false }) header;
@ViewChild('bookmarksModal', { static: false }) bookmarksModal;
@ViewChild('beatOnModal', { static: false }) beatOnModal;
@ViewChild('mainLogo', { static: false }) mainLogo;
@ViewChild('safeModal', { static: false }) safeModal;
@ViewChild('manageFavs', { static: false }) manageFavs;
@ViewChild('header') header;
@ViewChild('bookmarksModal') bookmarksModal;
@ViewChild('beatOnModal') beatOnModal;
@ViewChild('mainLogo') mainLogo;
@ViewChild('safeModal') safeModal;
@ViewChild('manageFavs') manageFavs;
ConnectionStatus = ConnectionStatus;
folder = FolderType;
isAlive = true;
@@ -13,7 +13,7 @@ import { PackageService } from './package.service';
styleUrls: ['./packages.component.scss'],
})
export class PackagesComponent implements OnInit {
@ViewChild('appSettingsModal', { static: false }) appSettingsModal;
@ViewChild('appSettingsModal') appSettingsModal;
isLoadingApp = false;
folder = FolderType;
currentPackage: any = { package: { packageName: '', name: '', icon: '' }, versionCode: 0 };
+6 -3
View File
@@ -4,8 +4,11 @@
"outDir": "../out-tsc/app",
"types": [ ]
},
"exclude": [
"test.ts",
"**/*.spec.ts"
"files": [
"main.ts",
"polyfills.ts"
],
"include": [
"src/**/*.d.ts"
]
}
+1 -1
View File
@@ -5,7 +5,7 @@
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "es2015",
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
+2061 -653
View File
File diff suppressed because it is too large Load Diff