angular-update into master #110
No files matched your search
@@ -26,6 +26,7 @@
|
||||
!.vscode/extensions.json
|
||||
|
||||
# misc
|
||||
/.angular/cache
|
||||
/.sass-cache
|
||||
/connect.lock
|
||||
/coverage
|
||||
|
||||
+4
-25
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
|
||||
"version": 1,
|
||||
"defaultProject": "app",
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"app": {
|
||||
@@ -138,7 +137,6 @@
|
||||
"browserTarget": "app:build:production"
|
||||
},
|
||||
"ci": {
|
||||
"progress": false
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -178,18 +176,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"src/tsconfig.app.json",
|
||||
"src/tsconfig.spec.json"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
},
|
||||
"ionic-cordova-build": {
|
||||
"builder": "@ionic/angular-toolkit:cordova-build",
|
||||
"options": {
|
||||
@@ -234,22 +220,15 @@
|
||||
"devServerTarget": "app:serve:ci"
|
||||
}
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"options": {
|
||||
"tsConfig": "e2e/tsconfig.e2e.json",
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"defaultCollection": "@ionic/angular-toolkit",
|
||||
"analytics": "bc50a445-b524-469d-86fd-93122ac7835c"
|
||||
"analytics": "bc50a445-b524-469d-86fd-93122ac7835c",
|
||||
"schematicCollections": [
|
||||
"@ionic/angular-toolkit"
|
||||
]
|
||||
},
|
||||
"schematics": {
|
||||
"@ionic/angular-toolkit:component": {
|
||||
|
||||
Generated
+15055
-14497
File diff suppressed because it is too large.
Load diff
+43
-43
@@ -24,55 +24,55 @@
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^12.2.3",
|
||||
"@angular/common": "^12.2.3",
|
||||
"@angular/core": "^12.2.3",
|
||||
"@angular/forms": "^12.2.3",
|
||||
"@angular/platform-browser": "^12.2.3",
|
||||
"@angular/platform-browser-dynamic": "^12.2.3",
|
||||
"@angular/router": "^12.2.3",
|
||||
"@angular/service-worker": "^12.2.3",
|
||||
"@ionic/angular": "5.1.1",
|
||||
"@angular/animations": "^16.0.0",
|
||||
"@angular/common": "^16.0.0",
|
||||
"@angular/core": "^16.0.0",
|
||||
"@angular/forms": "^16.0.0",
|
||||
"@angular/platform-browser": "^16.0.0",
|
||||
"@angular/platform-browser-dynamic": "^16.0.0",
|
||||
"@angular/router": "^16.0.0",
|
||||
"@angular/service-worker": "^16.0.0",
|
||||
"@ionic/angular": "^7.0.5",
|
||||
"@ionic/cli": "^6.20.1",
|
||||
"@meddv/ngx-pinch-zoom": "^16.0.0",
|
||||
"core-js": "^3.6.4",
|
||||
"echarts": "^4.6.0",
|
||||
"echarts": "^5.4.2",
|
||||
"g": "^2.0.1",
|
||||
"leaflet": "^1.5.1",
|
||||
"leaflet": "^1.9.3",
|
||||
"leaflet-defaulticon-compatibility": "^0.1.1",
|
||||
"leaflet-geosearch": "^2.7.0",
|
||||
"ngx-device-detector": "^2.1.1",
|
||||
"ngx-echarts": "^4.2.2",
|
||||
"ngx-pinch-zoom": "^2.6.2",
|
||||
"npm": "^6.14.17",
|
||||
"rxjs": "~6.5.4",
|
||||
"tslib": "^2.0.0",
|
||||
"zone.js": "~0.11.4"
|
||||
"leaflet-geosearch": "^3.8.0",
|
||||
"ngx-device-detector": "^6.0.2",
|
||||
"ngx-echarts": "^16.0.0",
|
||||
"npm": "^9.6.6",
|
||||
"rxjs": "^7.5.0",
|
||||
"tslib": "^2.5.0",
|
||||
"zone.js": "~0.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/architect": "^0.1202.2",
|
||||
"@angular-devkit/build-angular": "~12.2.2",
|
||||
"@angular-devkit/core": "12.2.2",
|
||||
"@angular-devkit/schematics": "~12.2.2",
|
||||
"@angular/cli": "~12.2.2",
|
||||
"@angular/compiler": "~12.2.3",
|
||||
"@angular/compiler-cli": "~12.2.3",
|
||||
"@angular/language-service": "~12.2.3",
|
||||
"@ionic/angular-toolkit": "^2.1.2",
|
||||
"@types/jasmine": "~3.6.0",
|
||||
"@types/jasminewd2": "^2.0.8",
|
||||
"@types/node": "^13.7.1",
|
||||
"codelyzer": "^6.0.0",
|
||||
"jasmine-core": "~3.6.0",
|
||||
"jasmine-spec-reporter": "~5.0.0",
|
||||
"karma": "^6.3.20",
|
||||
"karma-chrome-launcher": "~3.1.0",
|
||||
"karma-coverage-istanbul-reporter": "~3.0.2",
|
||||
"karma-jasmine": "~4.0.0",
|
||||
"karma-jasmine-html-reporter": "^1.5.0",
|
||||
"protractor": "~7.0.0",
|
||||
"ts-node": "^8.6.2",
|
||||
"tslint": "~6.1.0",
|
||||
"typescript": "~4.3.5"
|
||||
"@angular-devkit/architect": "^0.1600.0",
|
||||
"@angular-devkit/build-angular": "^16.0.0",
|
||||
"@angular-devkit/core": "16.0.0",
|
||||
"@angular-devkit/schematics": "^16.0.0",
|
||||
"@angular/cli": "^16.0.0",
|
||||
"@angular/compiler": "^16.0.0",
|
||||
"@angular/compiler-cli": "^16.0.0",
|
||||
"@angular/language-service": "^16.0.0",
|
||||
"@ionic/angular-toolkit": "^9.0.0",
|
||||
"@types/jasmine": "^4.3.1",
|
||||
"@types/jasminewd2": "^2.0.10",
|
||||
"@types/node": "^20.1.0",
|
||||
"codelyzer": "^6.0.2",
|
||||
"jasmine-core": "^4.6.0",
|
||||
"jasmine-spec-reporter": "^7.0.0",
|
||||
"karma": "^6.4.2",
|
||||
"karma-chrome-launcher": "^3.2.0",
|
||||
"karma-coverage-istanbul-reporter": "^3.0.3",
|
||||
"karma-jasmine": "^5.1.0",
|
||||
"karma-jasmine-html-reporter": "^2.0.0",
|
||||
"protractor": "^7.0.0",
|
||||
"ts-node": "^10.9.1",
|
||||
"tslint": "^6.1.3",
|
||||
"typescript": "^5.0.4"
|
||||
},
|
||||
"description": "This is a web application to provide some useful information during your stay at PSI."
|
||||
}
|
||||
@@ -91,7 +91,7 @@ const routes: Routes = [
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })],
|
||||
imports: [RouterModule.forRoot(routes, {})],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class AppRoutingModule { }
|
||||
@@ -35,7 +35,7 @@ import {CoronatransportpopoverComponent} from './components/coronatransportpopov
|
||||
import {CoronahelppageComponent} from './components/coronahelppage/coronahelppage.component';
|
||||
|
||||
// external libraries
|
||||
import {PinchZoomModule} from 'ngx-pinch-zoom';
|
||||
import {PinchZoomModule} from '@meddv/ngx-pinch-zoom';
|
||||
import {NgxEchartsModule} from 'ngx-echarts';
|
||||
import {CoronaCateringPopoverComponent} from './components/corona-catering-popover/corona-catering-popover.component';
|
||||
|
||||
@@ -63,9 +63,6 @@ import {CoronaCateringPopoverComponent} from './components/corona-catering-popov
|
||||
CoronaCateringPopoverComponent,
|
||||
CoronahelppageComponent
|
||||
],
|
||||
entryComponents: [
|
||||
ProfileModalPage
|
||||
],
|
||||
imports: [
|
||||
AppRoutingModule,
|
||||
BrowserModule,
|
||||
@@ -74,13 +71,13 @@ import {CoronaCateringPopoverComponent} from './components/corona-catering-popov
|
||||
FormsModule,
|
||||
HttpClientModule,
|
||||
IonicModule.forRoot(),
|
||||
NgxEchartsModule,
|
||||
PinchZoomModule,
|
||||
NgxEchartsModule,
|
||||
ReactiveFormsModule,
|
||||
ServiceWorkerModule.register('ngsw-worker.js', {enabled: environment.production})
|
||||
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production })
|
||||
],
|
||||
providers: [
|
||||
{provide: RouteReuseStrategy, useClass: IonicRouteStrategy}
|
||||
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
})
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { ModalController, PopoverController } from '@ionic/angular';
|
||||
import { Content } from '@angular/compiler/src/render3/r3_ast';
|
||||
|
||||
@Component({
|
||||
selector: 'app-coronahelppage',
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
BusStatus,
|
||||
BUS_LIMITS
|
||||
} from '../../interfaces/bus-schedule';
|
||||
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
|
||||
import {UntypedFormBuilder, UntypedFormGroup, Validators} from '@angular/forms';
|
||||
import {ModalController, Platform, PopoverController, ToastController} from '@ionic/angular';
|
||||
import {CoronatransportpopoverComponent} from '../../components/coronatransportpopover/coronatransportpopover.component';
|
||||
import {CoronaBusService} from '../../services/corona-bus.service';
|
||||
@@ -32,14 +32,14 @@ export class CoronatransportPage implements OnInit {
|
||||
public busSchedule: BusSchedule;
|
||||
public filteredAData: Arrival[] = [];
|
||||
public filteredDData: Departure[] = [];
|
||||
public arrivalForm: FormGroup;
|
||||
public departureForm: FormGroup;
|
||||
public arrivalForm: UntypedFormGroup;
|
||||
public departureForm: UntypedFormGroup;
|
||||
private selections: BusSelection[] = [];
|
||||
private busesStatus: BusInformation[] = [];
|
||||
public limits = BUS_LIMITS;
|
||||
|
||||
constructor(private http: HttpClient,
|
||||
private _FB: FormBuilder,
|
||||
private _FB: UntypedFormBuilder,
|
||||
private modalController: ModalController,
|
||||
private popoverController: PopoverController,
|
||||
private toastController: ToastController,
|
||||
|
||||
@@ -7,7 +7,7 @@ import { GeoSearchControl, OpenStreetMapProvider } from 'leaflet-geosearch';
|
||||
// provider of the map geosearch (OpenStreetMap)
|
||||
const provider = new OpenStreetMapProvider();
|
||||
// settings of the map geosearch
|
||||
const searchControl = new GeoSearchControl({
|
||||
const searchControl = GeoSearchControl({
|
||||
autoClose: true,
|
||||
keepResult: true,
|
||||
provider: provider,
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
</div>
|
||||
|
||||
<!-- business lunch wines -->
|
||||
<div class="businessmenu" *ngFor="let wine of menuswines">
|
||||
<!-- <div class="businessmenu" *ngFor="let wine of menuswines">
|
||||
<ion-text class="ion-padding">
|
||||
<h2><strong>Our regional wine recommendation</strong></h2>
|
||||
</ion-text>
|
||||
@@ -169,7 +169,7 @@
|
||||
<ion-text class="ion-padding">
|
||||
<h2><small>per dl {{wine.price}} CHF</small></h2>
|
||||
</ion-text>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
@@ -75,17 +75,17 @@ export class OasemenuPage implements OnInit {
|
||||
// translation of the title
|
||||
this.titles = [
|
||||
{menu1_lunch: 'Menu 1'},
|
||||
{menu1_dinner_english: 'Menu 1 Dinner'},
|
||||
{menu2: 'Menu 2'},
|
||||
{menu1_dinner: 'Menu 1 Dinner'},
|
||||
{menu2_lunch: 'Menu 2'},
|
||||
{vegi_lunch: 'Vegi'},
|
||||
{vegi_dinner_english: 'Vegi Dinner'},
|
||||
{vegi_dinner: 'Vegi Dinner'},
|
||||
{business: 'Business Lunch'},
|
||||
{dessert_sb: 'Dessert'},
|
||||
{grill: 'Grill'}
|
||||
];
|
||||
|
||||
// define all menus for the lunch
|
||||
let typeslunch = ['menu1_lunch', 'menu2', 'vegi_lunch', 'dessert_sb'];
|
||||
let typeslunch = ['menu1_lunch', 'menu2_lunch', 'vegi_lunch', 'dessert_sb'];
|
||||
this.menuslunch = typeslunch.map(type => {
|
||||
var main = todaysMenus.filter(menu => menu.type == type && menu.course == 'main')[0];
|
||||
var starter = todaysMenus.filter(menu => menu.type == type && menu.course == 'starter')[0];
|
||||
@@ -101,7 +101,7 @@ export class OasemenuPage implements OnInit {
|
||||
});
|
||||
|
||||
// define all menus for the dinner
|
||||
let typesdinner = ['menu1_dinner_english', 'vegi_dinner_english', 'dessert_sb', 'grill'];
|
||||
let typesdinner = ['menu1_dinner', 'vegi_dinner', 'dessert_sb', 'grill'];
|
||||
this.menusdinner = typesdinner.map(type => {
|
||||
var main = todaysMenus.filter(menu => menu.type == type && menu.course == 'main')[0];
|
||||
var starter = todaysMenus.filter(menu => menu.type == type && menu.course == 'starter')[0];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http'
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import { debounceTime, map } from 'rxjs/operators';
|
||||
@@ -15,13 +15,13 @@ export class PhonebookPage implements OnInit {
|
||||
|
||||
// declare variables
|
||||
public assets = environment.assets;
|
||||
public searchForm: FormGroup;
|
||||
public searchForm: UntypedFormGroup;
|
||||
public proposalList: PhonebookUser[];
|
||||
public showList: boolean = false;
|
||||
public query: BehaviorSubject<string> = new BehaviorSubject('');
|
||||
|
||||
|
||||
constructor(private http: HttpClient, private fb: FormBuilder) {
|
||||
constructor(private http: HttpClient, private fb: UntypedFormBuilder) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {IonSlides, ModalController, PopoverController, ToastController} from '@ionic/angular';
|
||||
import { ModalController, PopoverController, ToastController} from '@ionic/angular';
|
||||
import {environment} from '../../../environments/environment';
|
||||
import {CoronarestaurantPage} from '../coronarestaurant/coronarestaurant.page';
|
||||
import {CoronatransportPage} from '../coronatransport/coronatransport.page';
|
||||
@@ -28,7 +28,6 @@ import {BUS_LIMITS, BusInformation, BusStatus} from '../../interfaces/bus-schedu
|
||||
styleUrls: ['./psicheckin.page.scss'],
|
||||
})
|
||||
export class PsicheckinPage implements OnInit {
|
||||
@ViewChild(IonSlides) slides: IonSlides;
|
||||
public assets = environment.assets;
|
||||
public timeframes: TimeframeElement[] = [
|
||||
{text: '11:00 - 11:45', value: Timeframe.slot_11_00_11_45},
|
||||
|
||||
@@ -41,19 +41,9 @@ import 'core-js/es/set';
|
||||
**/
|
||||
import 'core-js/es/array';
|
||||
|
||||
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
||||
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
||||
|
||||
/** IE10 and IE11 requires the following for the Reflect API. */
|
||||
import 'core-js/es/reflect';
|
||||
|
||||
/**
|
||||
* Web Animations `@angular/platform-browser/animations`
|
||||
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
||||
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
||||
**/
|
||||
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
||||
|
||||
/**
|
||||
* By default, zone.js will patch all possible macroTask and DomEvents
|
||||
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
||||
|
||||
+3
-7
@@ -7,14 +7,10 @@ import {
|
||||
platformBrowserDynamicTesting
|
||||
} from '@angular/platform-browser-dynamic/testing';
|
||||
|
||||
declare const require: any;
|
||||
|
||||
// First, initialize the Angular testing environment.
|
||||
getTestBed().initTestEnvironment(
|
||||
BrowserDynamicTestingModule,
|
||||
platformBrowserDynamicTesting()
|
||||
platformBrowserDynamicTesting(), {
|
||||
teardown: { destroyAfterEach: false }
|
||||
}
|
||||
);
|
||||
// Then we find all the tests.
|
||||
const context = require.context('./', true, /\.spec\.ts$/);
|
||||
// And load the modules.
|
||||
context.keys().map(context);
|
||||
+4
-2
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"skipLibCheck": true,
|
||||
"baseUrl": "./",
|
||||
"outDir": "./dist/out-tsc",
|
||||
"sourceMap": true,
|
||||
@@ -9,13 +10,14 @@
|
||||
"moduleResolution": "node",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"target": "es5",
|
||||
"target": "ES2022",
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
],
|
||||
"lib": [
|
||||
"es2018",
|
||||
"dom"
|
||||
]
|
||||
],
|
||||
"useDefineForClassFields": false
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user