Skip to content
Snippets Groups Projects
Commit fed44adb authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon: Committed by Reiter, Christoph
Browse files

Remove CDNJS.CLOUDFLARE for bulma.css

parent d50af20e
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@
"vpu-common": "file:./vendor/common"
},
"dependencies": {
"bulma": "^0.7.5",
"jquery": "^3.4.1",
"lit-element": "^2.1.0",
"select2": "^4.0.9"
......
......@@ -34,12 +34,14 @@ export default {
include: 'node_modules/**'
}),
url({
limit: 0,
include: [
"node_modules/select2/**/*.css",
],
emitFiles: true,
fileName: 'shared/[name].[hash][extname]'
limit: 0,
include: [
"node_modules/bulma/**/*.css",
"node_modules/bulma/**/*.sass",
"node_modules/select2/**/*.css",
],
emitFiles: true,
fileName: 'shared/[name].[hash][extname]'
}),
json(),
(build !== 'local' && build !== 'test') ? terser() : false,
......
......@@ -2,6 +2,8 @@ import {i18n} from './i18n.js';
import {html, LitElement} from 'lit-element';
import './person-select.js';
import * as commonUtils from 'vpu-common/utils';
import bulmaCSSPath from "bulma/css/bulma.min.css";
import {getAssetURL} from "./utils";
class PersonSelectDemo extends LitElement {
constructor() {
......@@ -24,10 +26,9 @@ class PersonSelectDemo extends LitElement {
}
render() {
const bulmaCSS = getAssetURL(bulmaCSSPath);
return html`
<style>
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css">
<link rel="stylesheet" href="${bulmaCSS}">
<section class="section">
<div class="container">
......
......@@ -8,8 +8,10 @@ import {html} from 'lit-element';
import {i18n} from './i18n.js';
import VPULitElementJQuery from 'vpu-common/vpu-lit-element-jquery';
import * as commonUtils from 'vpu-common/utils';
import * as utils from "./utils";
import select2CSSPath from 'select2/dist/css/select2.min.css';
import {send as notify} from "vpu-common/notification";
import bulmaCSSPath from "bulma/css/bulma.min.css";
select2(window, $);
......@@ -216,9 +218,9 @@ class PersonSelect extends VPULitElementJQuery {
render() {
const select2CSS = getAssetURL(select2CSSPath);
const bulmaCSS = getAssetURL(bulmaCSSPath);
return html`
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css">
<link rel="stylesheet" href="${bulmaCSS}">
<link rel="stylesheet" href="${select2CSS}">
<style>
#${this.selectId} {
......
......@@ -6,7 +6,7 @@ export const getAssetURL = (path) => {
// newer browsers only
//var url = import.meta.url;
return new URL(path, url).href;
}
};
/**
* Finds an object in a JSON result by identifier
......@@ -27,4 +27,4 @@ export const findObjectInApiResults = (identifier, results, identifierAttribute
return object;
}
}
}
};
auth @ fd7e46df
Subproject commit 6a6413f48e0cd5508546841905f73a9486211bd0
Subproject commit fd7e46df47782d2f4438ed81aff7bfc7f5ddf1d9
common @ 5e3da6e2
Subproject commit f65096b99b737a046d07ad6616eec31788850422
Subproject commit 5e3da6e22fd0d14b95fbc032d385c020ae47fba7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment