Adds endpoint of the ssr api

parent 98c17aa9
......@@ -16,8 +16,7 @@ export class I18nManagerService {
constructor(private http: HttpClient) { }
public GET_FE_PROJECT_URL(): string {
return `http://localhost:4000/api/v1/plugin/i18nator/${this.FE_BASE_URL}`;
// return `${location.origin}/api/v1/plugin/i18nator/${this.FE_BASE_URL}`;
return `${DefaultSettings.ssrEndpoint}/api/v1/plugin/i18nator/${this.FE_BASE_URL}`;
}
public GET_BE_PROJECT_URL(): string {
......
{
"ssrEndpoint": "http://localhost:4000",
"serverEndpoint": "http://localhost:3000",
"httpApiEndpoint": "http://localhost:3000/api/v1",
"httpLibEndpoint": "http://localhost:3000/lib",
......
......@@ -4,6 +4,7 @@ const environmentData = require(`../assets/serverEndpoint.json`);
export const DefaultSettings = {
siteId: 'arsnova.click-v2',
ssrEndpoint: environmentData.ssrEndpoint,
httpApiEndpoint: environmentData.httpApiEndpoint,
httpLibEndpoint: environmentData.httpLibEndpoint,
serverEndpoint: environmentData.serverEndpoint,
......@@ -16,7 +17,8 @@ export const DefaultSettings = {
configTrimWhitespaces: false,
configUseKeywords: false,
configUsePunctuation: false,
}, question: {
},
question: {
dispayAnswerText: true,
showOneAnswerPerRow: false,
questionText: '',
......@@ -26,21 +28,38 @@ export const DefaultSettings = {
rangeMax: 60,
correctValue: 30,
answerOptionList: [],
}, music: {
},
music: {
enabled: {
lobby: true, countdownRunning: true, countdownEnd: true,
}, volumeConfig: {
global: 60, lobby: 60, countdownRunning: 60, countdownEnd: 60, useGlobalVolume: true,
}, titleConfig: {
lobby: 'Song0', countdownRunning: 'Song0', countdownEnd: 'Song0',
lobby: true,
countdownRunning: true,
countdownEnd: true,
},
}, nicks: {
volumeConfig: {
global: 60,
lobby: 60,
countdownRunning: 60,
countdownEnd: 60,
useGlobalVolume: true,
},
titleConfig: {
lobby: 'Song0',
countdownRunning: 'Song0',
countdownEnd: 'Song0',
},
},
nicks: {
memberGroups: ['Default'],
maxMembersPerGroup: 10,
autoJoinToGroup: false,
blockIllegalNicks: true,
restrictToCasLogin: false,
selectedNicks: [],
}, theme: 'theme-Material', readingConfirmationEnabled: true, showResponseProgress: true, confidenceSliderEnabled: true, cacheQuizAssets: false,
},
theme: 'theme-Material',
readingConfirmationEnabled: true,
showResponseProgress: true,
confidenceSliderEnabled: true,
cacheQuizAssets: false,
},
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment