Bump deps
This commit is contained in:
parent
48781b33fe
commit
6dd89e4c69
4630
package-lock.json
generated
4630
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
|
@ -10,22 +10,22 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^14.0.0",
|
"@angular/animations": "^15.0.4",
|
||||||
"@angular/common": "^14.0.0",
|
"@angular/common": "^15.0.4",
|
||||||
"@angular/compiler": "^14.0.0",
|
"@angular/compiler": "^15.0.4",
|
||||||
"@angular/core": "^14.0.0",
|
"@angular/core": "^15.0.4",
|
||||||
"@angular/forms": "^14.0.0",
|
"@angular/forms": "^15.0.4",
|
||||||
"@angular/platform-browser": "^14.0.0",
|
"@angular/platform-browser": "^15.0.4",
|
||||||
"@angular/platform-browser-dynamic": "^14.0.0",
|
"@angular/platform-browser-dynamic": "^15.0.4",
|
||||||
"@angular/router": "^14.0.0",
|
"@angular/router": "^15.0.4",
|
||||||
"rxjs": "~7.5.0",
|
"rxjs": "~7.5.0",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
"zone.js": "~0.11.4"
|
"zone.js": "~0.11.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^14.2.1",
|
"@angular-devkit/build-angular": "^15.0.4",
|
||||||
"@angular/cli": "~14.2.1",
|
"@angular/cli": "~15.0.4",
|
||||||
"@angular/compiler-cli": "^14.0.0",
|
"@angular/compiler-cli": "^15.0.4",
|
||||||
"@types/jasmine": "~4.0.0",
|
"@types/jasmine": "~4.0.0",
|
||||||
"jasmine-core": "~4.3.0",
|
"jasmine-core": "~4.3.0",
|
||||||
"karma": "~6.4.0",
|
"karma": "~6.4.0",
|
||||||
|
@ -33,6 +33,6 @@
|
||||||
"karma-coverage": "~2.2.0",
|
"karma-coverage": "~2.2.0",
|
||||||
"karma-jasmine": "~5.1.0",
|
"karma-jasmine": "~5.1.0",
|
||||||
"karma-jasmine-html-reporter": "~2.0.0",
|
"karma-jasmine-html-reporter": "~2.0.0",
|
||||||
"typescript": "~4.7.2"
|
"typescript": "~4.8.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,13 +3,13 @@ import {HttpClient, HttpParams} from '@angular/common/http';
|
||||||
import {Observable} from 'rxjs';
|
import {Observable} from 'rxjs';
|
||||||
import {Event} from '../models/event';
|
import {Event} from '../models/event';
|
||||||
import {UtilsService} from './utils.service';
|
import {UtilsService} from './utils.service';
|
||||||
|
import { environment } from './../../environments/environment';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class ApiService {
|
export class ApiService {
|
||||||
// apiUrl = 'https://api.nachklang.art/calendar/events/';
|
apiUrl = environment.apiUrl + '/calendar/events/';
|
||||||
apiUrl = 'http://localhost:3000/calendar/events/';
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private http: HttpClient
|
private http: HttpClient
|
||||||
|
@ -18,7 +18,6 @@ export class ApiService {
|
||||||
|
|
||||||
getEvents(calendar: string): Observable<Event[]> {
|
getEvents(calendar: string): Observable<Event[]> {
|
||||||
try {
|
try {
|
||||||
// Get password
|
|
||||||
let password = UtilsService.getPasswordFromLocalStorage();
|
let password = UtilsService.getPasswordFromLocalStorage();
|
||||||
|
|
||||||
let params = new HttpParams();
|
let params = new HttpParams();
|
||||||
|
@ -32,7 +31,6 @@ export class ApiService {
|
||||||
|
|
||||||
updateEvent(event: Event): Observable<any> {
|
updateEvent(event: Event): Observable<any> {
|
||||||
try {
|
try {
|
||||||
// Get password
|
|
||||||
let password = UtilsService.getPasswordFromLocalStorage();
|
let password = UtilsService.getPasswordFromLocalStorage();
|
||||||
|
|
||||||
let updateEvent: any = event;
|
let updateEvent: any = event;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
export const environment = {
|
export const environment = {
|
||||||
production: true
|
production: true,
|
||||||
|
apiUrl: 'https://api.nachklang.art'
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
// The list of file replacements can be found in `angular.json`.
|
// The list of file replacements can be found in `angular.json`.
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
production: false
|
production: false,
|
||||||
|
apiUrl: 'http://localhost:3000'
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user