Skip to content
Snippets Groups Projects
Commit 208089d8 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

knowledge-base-web-page-element-view: integrate into lerna

parent 47548aa8
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,8 @@
"rollup-plugin-serve": "^1.0.1",
"rollup-plugin-terser": "^6.1.0",
"@rollup/plugin-url": "^5.0.1",
"vpu-auth": "file:./vendor/auth",
"vpu-common": "file:./vendor/common"
"vpu-auth": "^1.0.0",
"vpu-common": "^1.0.0"
},
"dependencies": {
"@open-wc/scoped-elements": "^1.0.9",
......
import glob from 'glob';
import path from 'path';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import copy from 'rollup-plugin-copy';
......@@ -36,15 +35,8 @@ export default {
consts({
environment: build,
}),
resolve({
customResolveOptions: {
// ignore node_modules from vendored packages
moduleDirectory: path.join(process.cwd(), 'node_modules')
}
}),
commonjs({
include: 'node_modules/**'
}),
resolve(),
commonjs(),
json(),
url({
limit: 0,
......
import {i18n} from './i18n';
import {html} from 'lit-element';
import VPULitElement from 'vpu-common/vpu-lit-element'
import {html, LitElement} from 'lit-element';
import {ScopedElementsMixin} from '@open-wc/scoped-elements';
import {MiniSpinner} from 'vpu-common';
import * as commonUtils from "vpu-common/utils";
......@@ -9,7 +8,7 @@ import {unsafeHTML} from 'lit-html/directives/unsafe-html.js';
/**
* KnowledgeBaseWebPageElementView web component
*/
export class KnowledgeBaseWebPageElementView extends ScopedElementsMixin(VPULitElement) {
export class KnowledgeBaseWebPageElementView extends ScopedElementsMixin(LitElement) {
constructor() {
super();
this.lang = 'de';
......@@ -30,6 +29,10 @@ export class KnowledgeBaseWebPageElementView extends ScopedElementsMixin(VPULitE
};
}
_(selector) {
return this.shadowRoot === null ? this.querySelector(selector) : this.shadowRoot.querySelector(selector);
}
/**
* See: https://lit-element.polymer-project.org/guide/properties#initialize
*/
......
auth @ 39d0e356
Subproject commit 39d0e356c029e0f2e92233520660ce307d0741d5
common @ 63b49c3a
Subproject commit 63b49c3a2eeae312b4a2aeec4cc2f7f0ee12b749
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