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