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
10879526
Commit
10879526
authored
2 years ago
by
Steinwender, Tamara
Browse files
Options
Downloads
Patches
Plain Diff
Small bugfix
parent
6d973895
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/file-handling/src/demo.js
+2
-4
2 additions, 4 deletions
packages/file-handling/src/demo.js
toolkit-showcase/src/dbp-file-handling-demo-activity.js
+5
-5
5 additions, 5 deletions
toolkit-showcase/src/dbp-file-handling-demo-activity.js
with
7 additions
and
9 deletions
packages/file-handling/src/demo.js
+
2
−
4
View file @
10879526
import
{
createInstance
}
from
'
./i18n
'
;
import
{
html
,
LitElement
}
from
'
lit
'
;
import
{
unsafeHTML
}
from
'
lit/directives/unsafe-html.js
'
;
import
{
ScopedElementsMixin
}
from
'
@open-wc/scoped-elements
'
;
import
{
FileSource
}
from
'
./file-source
.js
'
;
import
{
FileSink
}
from
'
./file-sink
.js
'
;
import
{
FileSource
}
from
'
./file-source
'
;
import
{
FileSink
}
from
'
./file-sink
'
;
import
*
as
commonUtils
from
'
@dbp-toolkit/common/utils
'
;
export
class
FileSourceDemo
extends
ScopedElementsMixin
(
LitElement
)
{
...
...
@@ -102,7 +101,6 @@ export class FileSourceDemo extends ScopedElementsMixin(LitElement) {
<section class="section">
<div class="content">
<h1 class="title">
${
i18n
.
t
(
'
demo-title
'
)}
</h1>
<!-- <p>
${
unsafeHTML
(
i18n
.
t
(
'
required-server
'
,
{
url
:
this
.
url
}))}
</p> -->
</div>
<div class="content">
<h2 class="subtitle">Selected files</h2>
...
...
This diff is collapsed.
Click to expand it.
toolkit-showcase/src/dbp-file-handling-demo-activity.js
+
5
−
5
View file @
10879526
import
{
css
,
html
}
from
'
lit
'
;
import
{
ScopedElementsMixin
}
from
'
@open-wc/scoped-elements
'
;
import
{
FileSourceDemo
}
from
'
@dbp-toolkit/file-handling/src/demo
'
;
import
*
as
commonUtils
from
'
@dbp-toolkit/common/utils
'
;
import
*
as
commonStyles
from
'
@dbp-toolkit/common/styles
'
;
import
*
as
commonUtils
from
'
@dbp-toolkit/common/utils
'
;
import
{
unsafeHTML
}
from
'
lit/directives/unsafe-html.js
'
;
import
readme
from
'
@dbp-toolkit/file-handling/README.md
'
;
import
*
as
demoStyles
from
'
./styles
'
;
import
{
AdapterLitElement
}
from
'
@dbp-toolkit/provider/src/adapter-lit-element
'
;
class
DbpFileHandlingDemoActivity
extends
ScopedElementsMixin
(
AdapterLitElement
)
{
export
class
DbpFileHandlingDemoActivity
extends
ScopedElementsMixin
(
AdapterLitElement
)
{
constructor
()
{
super
();
this
.
lang
=
'
en
'
;
...
...
@@ -17,7 +17,7 @@ class DbpFileHandlingDemoActivity extends ScopedElementsMixin(AdapterLitElement)
static
get
scopedElements
()
{
return
{
'
dbp-file-
handling
-demo
'
:
FileSourceDemo
,
'
dbp-file-
source
-demo
'
:
FileSourceDemo
,
};
}
...
...
@@ -60,10 +60,10 @@ class DbpFileHandlingDemoActivity extends ScopedElementsMixin(AdapterLitElement)
render
()
{
return
html
`
${
unsafeHTML
(
readme
)}
<dbp-file-
handling
-demo
<dbp-file-
source
-demo
id="demo"
lang="
${
this
.
lang
}
"
entry-point-url="
${
this
.
entryPointUrl
}
"></dbp-file-
handling
-demo>
entry-point-url="
${
this
.
entryPointUrl
}
"></dbp-file-
source
-demo>
`
;
}
}
...
...
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