group training: add admin menu improvements, add build environment files
This commit is contained in:
@@ -64,6 +64,58 @@
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"cutler-movar": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.cutler-movar.ts"
|
||||
}
|
||||
],
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"namedChunks": false,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "2mb",
|
||||
"maximumError": "5mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"cutler-gyor": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.cutler-gyor.ts"
|
||||
}
|
||||
],
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"namedChunks": false,
|
||||
"extractLicenses": true,
|
||||
"vendorChunk": false,
|
||||
"buildOptimizer": true,
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "2mb",
|
||||
"maximumError": "5mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": ""
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"build:prod": "ng build --configuration production",
|
||||
"build:prod-cutler-gyor": "ng build --configuration cutler-gyor",
|
||||
"build:prod-cutler-movar": "ng build --configuration cutler-movar",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e"
|
||||
|
||||
@@ -1,51 +1,54 @@
|
||||
import {environment} from "../../environments/environment";
|
||||
|
||||
export class Endpoints {
|
||||
private static contextPath = "http://localhost:86/fitness_web";
|
||||
private static baseUrl: string = Endpoints.contextPath + "/customerapi/web/index.php?r=";
|
||||
|
||||
// private static apiUrl: string = "http://localhost:86/fitness_web/customerapi/web/index.php?r=";
|
||||
private static apiUrl: string = environment.apiUrl;
|
||||
|
||||
public static POST_USERS_AUTHENTICATE(){
|
||||
return `${this.baseUrl}user/login`;
|
||||
return `${this.apiUrl}user/login`;
|
||||
}
|
||||
|
||||
public static POST_USER_PASSWORD_CHANGE(){
|
||||
return `${this.baseUrl}user/password-change`;
|
||||
return `${this.apiUrl}user/password-change`;
|
||||
}
|
||||
|
||||
public static GET_EVENTS( ){
|
||||
return `${this.baseUrl}/events`;
|
||||
return `${this.apiUrl}/events`;
|
||||
}
|
||||
|
||||
public static GET_EVENT( id: number){
|
||||
return `${this.baseUrl}/event/event&id_event=${id}`;
|
||||
return `${this.apiUrl}/event/event&id_event=${id}`;
|
||||
}
|
||||
|
||||
|
||||
public static POST_EVENT_REGISTRATIONS_REGISTER(id: number){
|
||||
return `${this.baseUrl}/event-registration/register&id_event=${id}`;
|
||||
return `${this.apiUrl}/event-registration/register&id_event=${id}`;
|
||||
}
|
||||
|
||||
public static GET_EVENT_REGISTRATIONS_FIND(){
|
||||
return `${this.baseUrl}/event-registration/index`;
|
||||
return `${this.apiUrl}/event-registration/index`;
|
||||
}
|
||||
|
||||
public static GET_REGISTRATION( id: number){
|
||||
return `${this.baseUrl}/event-registration/registration&id_registration=${id}`;
|
||||
return `${this.apiUrl}/event-registration/registration&id_registration=${id}`;
|
||||
}
|
||||
|
||||
public static POST_EVENT_CANCEL( id: number){
|
||||
return `${this.baseUrl}/event/cancel&id_event=${id}`;
|
||||
return `${this.apiUrl}/event/cancel&id_event=${id}`;
|
||||
}
|
||||
|
||||
public static POST_EVENT_REGISTRATION_CANCEL( id: number){
|
||||
return `${this.baseUrl}/event-registration/cancel&idRegistration=${id}`;
|
||||
return `${this.apiUrl}/event-registration/cancel&idRegistration=${id}`;
|
||||
}
|
||||
|
||||
public static GET_EVENT_TYPES(){
|
||||
return `${this.baseUrl}/event-type`;
|
||||
return `${this.apiUrl}/event-type`;
|
||||
}
|
||||
|
||||
|
||||
public static GET_EVENTS_AVAILABLE(){
|
||||
return `${this.baseUrl}/event/available`;
|
||||
return `${this.apiUrl}/event/available`;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
4
customer/app/src/environments/environment.cutler-gyor.ts
Normal file
4
customer/app/src/environments/environment.cutler-gyor.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const environment = {
|
||||
production: true,
|
||||
apiUrl: "http://cutler-gyor:80/fitness_web/customerapi/web/index.php?r="
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
export const environment = {
|
||||
production: true,
|
||||
apiUrl: "http://cutler-movar:80/fitness_web/customerapi/web/index.php?r="
|
||||
};
|
||||
@@ -1,3 +1,4 @@
|
||||
export const environment = {
|
||||
production: true
|
||||
production: true,
|
||||
apiUrl: "http://myapi:80/fitness_web/customerapi/web/index.php?r="
|
||||
};
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
// The list of file replacements can be found in `angular.json`.
|
||||
|
||||
export const environment = {
|
||||
production: false
|
||||
production: false,
|
||||
apiUrl: 'http://localhost:86/fitness_web/customerapi/web/index.php?r='
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user