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
780da142
Unverified
Commit
780da142
authored
3 years ago
by
Bekerle, Patrizio
Browse files
Options
Downloads
Patches
Plain Diff
Set default app shell name and remove shell-name and shell-subname attributes
parent
54953798
No related branches found
No related tags found
No related merge requests found
Pipeline
#45009
failed
3 years ago
Stage: test
Stage: deploy
Stage: e2e
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/app-shell/README.md
+0
-4
0 additions, 4 deletions
packages/app-shell/README.md
packages/app-shell/src/app-shell.js
+1
-5
1 addition, 5 deletions
packages/app-shell/src/app-shell.js
with
1 addition
and
9 deletions
packages/app-shell/README.md
+
0
−
4
View file @
780da142
...
...
@@ -30,10 +30,6 @@ npm i @dbp-toolkit/app-shell
-
example
`<dbp-app-shell matomo-site-id="456789"></dbp-app-shell>`
-
`no-welcome-page`
(optional): skips the welcome page and welcome page isn't visible in menu
-
example
`<dbp-app-shell no-welcome-page></dbp-app-shell>`
-
`shell-name`
(optional, default:
``): sets the shell name in the left upper corner of the header
- example `<dbp-app-shell shell-name="Testpage"></dbp-app-shell>`
- `shell-subname` (optional, default: ``
): sets the shell subname in the left upper corner of the header
-
example
`<dbp-app-shell shell-name="Testpage subtitle"></dbp-app-shell>`
-
`no-brand`
(optional): disables the logo in the right upper corner of the header
-
example
`<dbp-app-shell no-brand></dbp-app-shell>`
...
...
This diff is collapsed.
Click to expand it.
packages/app-shell/src/app-shell.js
+
1
−
5
View file @
780da142
...
...
@@ -68,8 +68,6 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) {
this
.
_attrObserver
=
new
MutationObserver
(
this
.
onAttributeObserved
);
this
.
shellName
=
''
;
this
.
shellSubname
=
''
;
this
.
noBrand
=
false
;
this
.
auth
=
{};
}
...
...
@@ -244,8 +242,6 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) {
matomoUrl
:
{
type
:
String
,
attribute
:
"
matomo-url
"
},
matomoSiteId
:
{
type
:
Number
,
attribute
:
"
matomo-site-id
"
},
noWelcomePage
:
{
type
:
Boolean
,
attribute
:
"
no-welcome-page
"
},
shellName
:
{
type
:
String
,
attribute
:
"
shell-name
"
},
shellSubname
:
{
type
:
String
,
attribute
:
"
shell-subname
"
},
noBrand
:
{
type
:
Boolean
,
attribute
:
"
no-brand
"
},
gitInfo
:
{
type
:
String
,
attribute
:
"
git-info
"
},
buildUrl
:
{
type
:
String
,
attribute
:
"
build-url
"
},
...
...
@@ -891,7 +887,7 @@ export class AppShell extends ScopedElementsMixin(AdapterLitElement) {
</div>
<div class="hd2-left">
<div class="header">
<slot name="name">
${
this
.
shellName
}
<br>
${
this
.
shellSubname
}
</slot>
<slot name="name">
Digital Blueprint
</slot>
</div>
</div>
<div class="hd2-right">
...
...
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