Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
2211a358
Commit
2211a358
authored
4 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Add a keycloak-config attribute and forward it to vpu-auth"
This reverts commit 299dfdded2b3a56a9e666e70c301c7408e570eba.
parent
057fb6c1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/app-shell/README.md
+1
-2
1 addition, 2 deletions
packages/app-shell/README.md
packages/app-shell/src/app-shell.js
+5
-4
5 additions, 4 deletions
packages/app-shell/src/app-shell.js
with
6 additions
and
6 deletions
packages/app-shell/README.md
+
1
−
2
View file @
2211a358
...
@@ -14,11 +14,10 @@ activities. Handles login, language selection, activity switching, menus etc.
...
@@ -14,11 +14,10 @@ activities. Handles login, language selection, activity switching, menus etc.
## Attributes
## Attributes
-
`lang`
(optional, default:
`de`
): set to
`de`
or
`en`
for German or English
-
`lang`
(optional, default:
`de`
): set to
`de`
or
`en`
for German or English
-
example
`<vpu-a
pp-shell
lang="de" </vpu-a
pp-shell
>`
-
example
`<vpu-a
uth
lang="de" </vpu-a
uth
>`
-
`src`
: The path to a topic metadata file (json)
-
`src`
: The path to a topic metadata file (json)
-
`base-path`
(optional, default:
`/`
: An absolute base path for routing
-
`base-path`
(optional, default:
`/`
: An absolute base path for routing
-
`entry-point-url`
: Entry point URL to access the API
-
`entry-point-url`
: Entry point URL to access the API
-
`keycloak-config`
: See
`vpu-auth`
for details
## Topic Metadata
## Topic Metadata
...
...
This diff is collapsed.
Click to expand it.
packages/app-shell/src/app-shell.js
+
5
−
4
View file @
2211a358
...
@@ -5,6 +5,7 @@ import {LanguageSelect} from 'vpu-language-select';
...
@@ -5,6 +5,7 @@ import {LanguageSelect} from 'vpu-language-select';
import
{
Icon
}
from
'
vpu-common
'
;
import
{
Icon
}
from
'
vpu-common
'
;
import
{
Auth
}
from
'
vpu-auth
'
;
import
{
Auth
}
from
'
vpu-auth
'
;
import
{
Notification
}
from
'
vpu-notification
'
;
import
{
Notification
}
from
'
vpu-notification
'
;
import
*
as
commonUtils
from
'
vpu-common/utils
'
;
import
*
as
commonStyles
from
'
vpu-common/styles
'
;
import
*
as
commonStyles
from
'
vpu-common/styles
'
;
import
buildinfo
from
'
consts:buildinfo
'
;
import
buildinfo
from
'
consts:buildinfo
'
;
import
{
classMap
}
from
'
lit-html/directives/class-map.js
'
;
import
{
classMap
}
from
'
lit-html/directives/class-map.js
'
;
...
@@ -46,14 +47,13 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
...
@@ -46,14 +47,13 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
super
();
super
();
this
.
lang
=
i18n
.
language
;
this
.
lang
=
i18n
.
language
;
this
.
activeView
=
''
;
this
.
activeView
=
''
;
this
.
entryPointUrl
=
''
;
this
.
entryPointUrl
=
commonUtils
.
getAPiUrl
()
;
this
.
subtitle
=
''
;
this
.
subtitle
=
''
;
this
.
description
=
''
;
this
.
description
=
''
;
this
.
routes
=
[];
this
.
routes
=
[];
this
.
metadata
=
{};
this
.
metadata
=
{};
this
.
topic
=
{};
this
.
topic
=
{};
this
.
basePath
=
'
/
'
;
this
.
basePath
=
'
/
'
;
this
.
keycloakConfig
=
null
;
this
.
_updateAuth
=
this
.
_updateAuth
.
bind
(
this
);
this
.
_updateAuth
=
this
.
_updateAuth
.
bind
(
this
);
this
.
_loginStatus
=
'
unknown
'
;
this
.
_loginStatus
=
'
unknown
'
;
...
@@ -218,7 +218,6 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
...
@@ -218,7 +218,6 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
basePath
:
{
type
:
String
,
attribute
:
'
base-path
'
},
basePath
:
{
type
:
String
,
attribute
:
'
base-path
'
},
activeView
:
{
type
:
String
,
attribute
:
false
},
activeView
:
{
type
:
String
,
attribute
:
false
},
entryPointUrl
:
{
type
:
String
,
attribute
:
'
entry-point-url
'
},
entryPointUrl
:
{
type
:
String
,
attribute
:
'
entry-point-url
'
},
keycloakConfig
:
{
type
:
Object
,
attribute
:
'
keycloak-config
'
},
metadata
:
{
type
:
Object
,
attribute
:
false
},
metadata
:
{
type
:
Object
,
attribute
:
false
},
topic
:
{
type
:
Object
,
attribute
:
false
},
topic
:
{
type
:
Object
,
attribute
:
false
},
subtitle
:
{
type
:
String
,
attribute
:
false
},
subtitle
:
{
type
:
String
,
attribute
:
false
},
...
@@ -638,6 +637,8 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
...
@@ -638,6 +637,8 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
}
}
render
()
{
render
()
{
const
silentCheckSsoUri
=
commonUtils
.
getAssetURL
(
'
silent-check-sso.html
'
);
const
getSelectClasses
=
(
name
=>
{
const
getSelectClasses
=
(
name
=>
{
return
classMap
({
selected
:
this
.
activeView
===
name
});
return
classMap
({
selected
:
this
.
activeView
===
name
});
});
});
...
@@ -684,7 +685,7 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
...
@@ -684,7 +685,7 @@ export class AppShell extends ScopedElementsMixin(LitElement) {
<div class="hd1-middle">
<div class="hd1-middle">
</div>
</div>
<div class="hd1-right">
<div class="hd1-right">
<vpu-auth lang="
${
this
.
lang
}
" show-profile keycloak-config=
"
${
JSON
.
stringify
(
this
.
key
c
loakC
onfig
)}
"
load-person try-login></vpu-auth>
<vpu-auth lang="
${
this
.
lang
}
" show-profile keycloak-config=
'{"clientId": "
${
commonUtils
.
setting
(
'
key
C
loakC
lientId
'
)}
", "silentCheckSsoRedirectUri": "
${
silentCheckSsoUri
}
"}'
load-person try-login></vpu-auth>
</div>
</div>
<div class="hd2-left">
<div class="hd2-left">
<div class="header">
<div class="header">
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment