toevoeging baseApi + versienummer
This commit is contained in:
@@ -11,7 +11,7 @@ RUN npm install -g @angular/cli
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN ng build --configuration=production
|
RUN ng build --configuration=test
|
||||||
|
|
||||||
# Gebruik een multi-architecture versie van Nginx
|
# Gebruik een multi-architecture versie van Nginx
|
||||||
FROM nginx:latest
|
FROM nginx:latest
|
||||||
|
|||||||
@@ -94,6 +94,9 @@
|
|||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"buildTarget": "PayPoint:build:development"
|
"buildTarget": "PayPoint:build:development"
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"buildTarget": "PayPoint:build:test"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "development"
|
"defaultConfiguration": "development"
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
Inloggen
|
Inloggen
|
||||||
</button>
|
</button>
|
||||||
</footer>
|
</footer>
|
||||||
|
<!-- <br>-->
|
||||||
|
<p>{{appVersion}}</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ tui-error {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 28px;
|
margin-bottom: 28px;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import {AuthService} from '../../services/auth.service';
|
|||||||
import {UserDto} from '../../models/user-dto';
|
import {UserDto} from '../../models/user-dto';
|
||||||
import {HttpErrorResponse} from '@angular/common/http';
|
import {HttpErrorResponse} from '@angular/common/http';
|
||||||
import {TuiValidationError} from '@taiga-ui/cdk';
|
import {TuiValidationError} from '@taiga-ui/cdk';
|
||||||
|
import {environment} from '../../../environments/environment';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-login',
|
selector: 'app-login',
|
||||||
@@ -26,6 +27,7 @@ import {TuiValidationError} from '@taiga-ui/cdk';
|
|||||||
export class LoginComponent {
|
export class LoginComponent {
|
||||||
form: FormGroup;
|
form: FormGroup;
|
||||||
protected enabled = false;
|
protected enabled = false;
|
||||||
|
appVersion = environment.appVersion;
|
||||||
|
|
||||||
protected error = new TuiValidationError('Ongeldige gebruikersnaam of wachtwoord.');
|
protected error = new TuiValidationError('Ongeldige gebruikersnaam of wachtwoord.');
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {HttpClient} from '@angular/common/http';
|
import {HttpClient} from '@angular/common/http';
|
||||||
import {Appointment} from '../models/appointment';
|
import {Appointment} from '../models/appointment';
|
||||||
|
import {environment} from '../../environments/environment';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class AppointmentService {
|
export class AppointmentService {
|
||||||
// baseApi = "http://localhost:8080/api/appointments";
|
baseApi = `${environment.baseApi}/appointments`;
|
||||||
baseApi = "https://api.melvanveen.nl/api/appointments";
|
|
||||||
|
|
||||||
constructor(private http: HttpClient) {
|
constructor(private http: HttpClient) {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ import {HttpClient} from '@angular/common/http';
|
|||||||
import {JwtHelperService} from '@auth0/angular-jwt';
|
import {JwtHelperService} from '@auth0/angular-jwt';
|
||||||
import {Observable} from 'rxjs';
|
import {Observable} from 'rxjs';
|
||||||
import {jwtDecode} from 'jwt-decode';
|
import {jwtDecode} from 'jwt-decode';
|
||||||
|
import {environment} from '../../environments/environment';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class AuthService {
|
export class AuthService {
|
||||||
// private baseApi = 'http://localhost:8080/api/auth/login';
|
baseApi = `${environment.baseApi}/auth/login`;
|
||||||
baseApi = "https://api.melvanveen.nl/api/auth/login";
|
|
||||||
jwtHelper = new JwtHelperService();
|
jwtHelper = new JwtHelperService();
|
||||||
|
|
||||||
constructor(private http: HttpClient) {
|
constructor(private http: HttpClient) {
|
||||||
|
|||||||
@@ -2,14 +2,13 @@ import {Injectable} from '@angular/core';
|
|||||||
import {HttpClient} from '@angular/common/http';
|
import {HttpClient} from '@angular/common/http';
|
||||||
import {Customer} from '../models/customer';
|
import {Customer} from '../models/customer';
|
||||||
import {Observable} from 'rxjs';
|
import {Observable} from 'rxjs';
|
||||||
|
import {environment} from '../../environments/environment';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class CustomerService {
|
export class CustomerService {
|
||||||
// baseApi = "http://localhost:8080/api/customers";
|
baseApi = `${environment.baseApi}/customers`;
|
||||||
baseApi = "https://api.melvanveen.nl/api/customers";
|
|
||||||
|
|
||||||
|
|
||||||
constructor(private http: HttpClient) {
|
constructor(private http: HttpClient) {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
import { version } from '../../package.json';
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
baseApi: 'http://localhost:8080/api',
|
baseApi: 'http://localhost:8080/api',
|
||||||
production: false
|
production: false,
|
||||||
|
appVersion: version + '-LOCAL'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
import { version } from '../../package.json';
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
baseApi: 'http://localhost:8080/api',
|
baseApi: 'https://api-test.melvanveen.nl/api',
|
||||||
production: false
|
production: false,
|
||||||
|
appVersion: version + '-SNAPSHOT'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
import { version } from '../../package.json';
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
baseApi: 'https://api.melvanveen.nl/api',
|
baseApi: 'https://api.melvanveen.nl/api',
|
||||||
production: true
|
production: true,
|
||||||
|
appVersion: version
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user