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
GitLab 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
292a98a6
Commit
292a98a6
authored
5 years ago
by
Neuber, Eugen Ramon
Committed by
Reiter, Christoph
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert local function getAssetURL()
parent
7b8eed47
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/common/utils.js
+0
-10
0 additions, 10 deletions
packages/common/utils.js
packages/common/vpu-button.js
+2
-1
2 additions, 1 deletion
packages/common/vpu-button.js
with
2 additions
and
11 deletions
packages/common/utils.js
+
0
−
10
View file @
292a98a6
import
env
from
'
./env.js
'
;
import
env
from
'
./env.js
'
;
export
const
getAssetURL
=
(
path
)
=>
{
const
elm
=
document
.
getElementById
(
'
vpu-library-app-src
'
);
if
(
!
elm
)
return
path
;
const
url
=
elm
.
src
;
// newer browsers only
//var url = import.meta.url;
return
new
URL
(
path
,
url
).
href
;
};
/**
/**
* Parses a link header
* Parses a link header
*
*
...
...
This diff is collapsed.
Click to expand it.
packages/common/vpu-button.js
+
2
−
1
View file @
292a98a6
...
@@ -2,6 +2,7 @@ import {html, LitElement, css} from 'lit-element';
...
@@ -2,6 +2,7 @@ import {html, LitElement, css} from 'lit-element';
import
*
as
commonUtils
from
'
./utils.js
'
;
import
*
as
commonUtils
from
'
./utils.js
'
;
import
bulmaCSSPath
from
'
bulma/css/bulma.min.css
'
;
import
bulmaCSSPath
from
'
bulma/css/bulma.min.css
'
;
import
VPULitElement
from
'
./vpu-lit-element.js
'
;
import
VPULitElement
from
'
./vpu-lit-element.js
'
;
import
*
as
utils
from
'
../../src/utils
'
;
/**
/**
* vpu-button implements a button with Bulma styles and automatic spinner and
* vpu-button implements a button with Bulma styles and automatic spinner and
...
@@ -71,7 +72,7 @@ class Button extends VPULitElement {
...
@@ -71,7 +72,7 @@ class Button extends VPULitElement {
}
}
render
()
{
render
()
{
const
bulmaCSS
=
commonU
tils
.
getAssetURL
(
bulmaCSSPath
);
const
bulmaCSS
=
u
tils
.
getAssetURL
(
bulmaCSSPath
);
return
html
`
return
html
`
<link rel="stylesheet" href="
${
bulmaCSS
}
">
<link rel="stylesheet" href="
${
bulmaCSS
}
">
...
...
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