Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
arsnova-click-v2-frontend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
12
Merge Requests
12
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
ARSnova
arsnova-click-v2-frontend
Commits
4ae558a9
Commit
4ae558a9
authored
Nov 18, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds environment setting to enable or disable the cas login for attendees
parent
44d49217
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
3 deletions
+12
-3
src/app/lib/interfaces/IEnvironment.ts
src/app/lib/interfaces/IEnvironment.ts
+1
-0
src/app/quiz/quiz-manager/nickname-manager/nickname-manager.component.ts
...iz-manager/nickname-manager/nickname-manager.component.ts
+6
-3
src/environments/environment.prod.ts
src/environments/environment.prod.ts
+1
-0
src/environments/environment.thm.beta.ts
src/environments/environment.thm.beta.ts
+1
-0
src/environments/environment.thm.staging.ts
src/environments/environment.thm.staging.ts
+1
-0
src/environments/environment.ts
src/environments/environment.ts
+1
-0
src/environments/environment.westermann.ts
src/environments/environment.westermann.ts
+1
-0
No files found.
src/app/lib/interfaces/IEnvironment.ts
View file @
4ae558a9
...
...
@@ -2,6 +2,7 @@ import { LoginMechanism } from '../enums/enums';
import
{
QuizTheme
}
from
'
../enums/QuizTheme
'
;
export
interface
IEnvironment
{
enableCasLogin
:
boolean
;
sentryDSN
?:
string
;
version
:
string
;
claimSrc
?:
string
;
...
...
src/app/quiz/quiz-manager/nickname-manager/nickname-manager.component.ts
View file @
4ae558a9
...
...
@@ -2,6 +2,7 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnIni
import
{
DomSanitizer
,
SafeHtml
}
from
'
@angular/platform-browser
'
;
import
{
Subject
}
from
'
rxjs
'
;
import
{
takeUntil
}
from
'
rxjs/operators
'
;
import
{
environment
}
from
'
../../../../environments/environment
'
;
import
{
StorageKey
}
from
'
../../../lib/enums/enums
'
;
import
{
IAvailableNicks
}
from
'
../../../lib/interfaces/IAvailableNicks
'
;
import
{
NickApiService
}
from
'
../../../service/api/nick/nick-api.service
'
;
...
...
@@ -61,9 +62,11 @@ export class NicknameManagerComponent implements OnInit, OnDestroy {
)
{
this
.
footerBarService
.
TYPE_REFERENCE
=
NicknameManagerComponent
.
TYPE
;
this
.
footerBarService
.
replaceFooterElements
([
this
.
footerBarService
.
footerElemBack
,
this
.
footerBarService
.
footerElemBlockRudeNicknames
,
this
.
footerBarService
.
footerElemEnableCasLogin
,
]);
const
footerElements
=
[
this
.
footerBarService
.
footerElemBack
,
this
.
footerBarService
.
footerElemBlockRudeNicknames
];
if
(
environment
.
enableCasLogin
)
{
footerElements
.
push
(
this
.
footerBarService
.
footerElemEnableCasLogin
);
}
this
.
footerBarService
.
replaceFooterElements
(
footerElements
);
this
.
quizService
.
loadDataToEdit
(
sessionStorage
.
getItem
(
StorageKey
.
CurrentQuizName
));
}
...
...
src/environments/environment.prod.ts
View file @
4ae558a9
...
...
@@ -5,6 +5,7 @@ import { IEnvironment } from '../app/lib/interfaces/IEnvironment';
export
const
environment
:
IEnvironment
=
{
production
:
true
,
version
:
'
VERSION
'
,
enableCasLogin
:
true
,
sentryDSN
:
'
https://f16c02fdefe64c018f5d580d1cf05b56@sentry.io/1819496
'
,
ssrEndpoint
:
'
https://staging.arsnova.click/backend
'
,
serverEndpoint
:
'
https://staging.arsnova.click/backend
'
,
...
...
src/environments/environment.thm.beta.ts
View file @
4ae558a9
...
...
@@ -5,6 +5,7 @@ import { IEnvironment } from '../app/lib/interfaces/IEnvironment';
export
const
environment
:
IEnvironment
=
{
production
:
true
,
version
:
'
VERSION
'
,
enableCasLogin
:
false
,
sentryDSN
:
'
https://f16c02fdefe64c018f5d580d1cf05b56@sentry.io/1819496
'
,
ssrEndpoint
:
'
https://beta.arsnova.click/backend
'
,
serverEndpoint
:
'
https://beta.arsnova.click/backend
'
,
...
...
src/environments/environment.thm.staging.ts
View file @
4ae558a9
...
...
@@ -5,6 +5,7 @@ import { IEnvironment } from '../app/lib/interfaces/IEnvironment';
export
const
environment
:
IEnvironment
=
{
production
:
true
,
version
:
'
VERSION
'
,
enableCasLogin
:
true
,
sentryDSN
:
'
https://f16c02fdefe64c018f5d580d1cf05b56@sentry.io/1819496
'
,
ssrEndpoint
:
'
https://staging.arsnova.click/backend
'
,
serverEndpoint
:
'
https://staging.arsnova.click/backend
'
,
...
...
src/environments/environment.ts
View file @
4ae558a9
...
...
@@ -10,6 +10,7 @@ import { IEnvironment } from '../app/lib/interfaces/IEnvironment';
export
const
environment
:
IEnvironment
=
{
production
:
false
,
version
:
'
VERSION
'
,
enableCasLogin
:
true
,
ssrEndpoint
:
'
http://192.168.2.106:4000
'
,
serverEndpoint
:
'
http://192.168.2.106:3010
'
,
httpApiEndpoint
:
'
http://192.168.2.106:3010/api/v1
'
,
...
...
src/environments/environment.westermann.ts
View file @
4ae558a9
...
...
@@ -4,6 +4,7 @@ import { IEnvironment } from '../app/lib/interfaces/IEnvironment';
export
const
environment
:
IEnvironment
=
{
production
:
true
,
enableCasLogin
:
false
,
version
:
'
VERSION
'
,
ssrEndpoint
:
'
https://test01.ars.sbzo.de
'
,
serverEndpoint
:
'
https://test01.ars.sbzo.de
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment