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
ec139756
Commit
ec139756
authored
5 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Move to scoped vpu-icon
parent
b12cdcaf
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/auth/src/auth.js
+9
-2
9 additions, 2 deletions
packages/auth/src/auth.js
packages/auth/vendor/common
+1
-1
1 addition, 1 deletion
packages/auth/vendor/common
with
10 additions
and
3 deletions
packages/auth/src/auth.js
+
9
−
2
View file @
ec139756
import
{
i18n
}
from
'
./i18n.js
'
;
import
{
i18n
}
from
'
./i18n.js
'
;
import
{
html
,
css
}
from
'
lit-element
'
;
import
{
html
,
css
}
from
'
lit-element
'
;
import
{
unsafeHTML
}
from
'
lit-html/directives/unsafe-html.js
'
;
import
{
unsafeHTML
}
from
'
lit-html/directives/unsafe-html.js
'
;
import
{
ScopedElementsMixin
}
from
'
@open-wc/scoped-elements
'
;
import
JSONLD
from
'
vpu-common/jsonld
'
;
import
JSONLD
from
'
vpu-common/jsonld
'
;
import
*
as
commonUtils
from
'
vpu-common/utils
'
;
import
*
as
commonUtils
from
'
vpu-common/utils
'
;
import
*
as
commonStyles
from
'
vpu-common/styles
'
;
import
*
as
commonStyles
from
'
vpu-common/styles
'
;
import
*
as
events
from
'
vpu-common/events.js
'
;
import
*
as
events
from
'
vpu-common/events.js
'
;
import
'
vpu-common/vpu-icon.js
'
;
import
{
Icon
}
from
'
vpu-common
'
;
import
VPULitElement
from
'
vpu-common/vpu-lit-element
'
;
import
VPULitElement
from
'
vpu-common/vpu-lit-element
'
;
import
{
KeycloakWrapper
}
from
'
./keycloak.js
'
;
import
{
KeycloakWrapper
}
from
'
./keycloak.js
'
;
...
@@ -31,7 +32,7 @@ const LoginStatus = Object.freeze({
...
@@ -31,7 +32,7 @@ const LoginStatus = Object.freeze({
* window.VPUPerson: Person json object of the user (optional, enable by setting the `load-person` attribute,
* window.VPUPerson: Person json object of the user (optional, enable by setting the `load-person` attribute,
* which will dispatch a `vpu-auth-person-init` event when loaded)
* which will dispatch a `vpu-auth-person-init` event when loaded)
*/
*/
export
class
Auth
extends
VPULitElement
{
export
class
Auth
extends
ScopedElementsMixin
(
VPULitElement
)
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
lang
=
'
de
'
;
this
.
lang
=
'
de
'
;
...
@@ -70,6 +71,12 @@ export class Auth extends VPULitElement {
...
@@ -70,6 +71,12 @@ export class Auth extends VPULitElement {
this
.
_onKCChanged
=
this
.
_onKCChanged
.
bind
(
this
);
this
.
_onKCChanged
=
this
.
_onKCChanged
.
bind
(
this
);
}
}
static
get
scopedElements
()
{
return
{
'
vpu-icon
'
:
Icon
,
};
}
_onKCChanged
(
event
)
{
_onKCChanged
(
event
)
{
const
kc
=
event
.
detail
;
const
kc
=
event
.
detail
;
let
newPerson
=
false
;
let
newPerson
=
false
;
...
...
This diff is collapsed.
Click to expand it.
common
@
010b54fa
Subproject commit
5aa64ec47e7b65d69327f4dec1102917fe33bd22
Subproject commit
010b54fa455829d732152b6794c7a92a874249aa
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