Commit 4c23b0bf authored by akiraohgaki's avatar akiraohgaki

Import lit-html

parent e7a981d2
import {html, render, TemplateResult} from 'lit-html';
import Chirit from '../../../libs/chirit/Chirit.js';
export default class BaseComponent extends Chirit.Component {
constructor() {
super();
this.html = html;
}
setContent(content) {
if (content instanceof TemplateResult) {
render(content, this.contentRoot);
}
else {
super.setContent(content);
}
}
get sharedStyle() {
return `
<style>
......
......@@ -913,6 +913,11 @@
"verror": "1.10.0"
}
},
"lit-html": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/lit-html/-/lit-html-1.0.0.tgz",
"integrity": "sha512-oeWlpLmBW3gFl7979Wol2LKITpmKTUFNn7PnFbh6YNynF61W74l6x5WhwItAwPRSATpexaX1egNnRzlN4GOtfQ=="
},
"load-json-file": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
......
......@@ -17,7 +17,8 @@
"dependencies": {
"electron-store": "2.*.*",
"request": "2.*.*",
"esm": "3.*.*"
"esm": "3.*.*",
"lit-html": "1.*.*"
},
"devDependencies": {
"electron": "4.*.*",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment