fix(core): update

This commit is contained in:
Philipp Kunz 2020-05-23 14:00:49 +00:00
parent bb46890b58
commit dcca98c535
4 changed files with 16 additions and 5 deletions

View File

@ -21,6 +21,6 @@
<script src="../ts_web/index.ts"></script> <script src="../ts_web/index.ts"></script>
</head> </head>
<body> <body>
<wcc-dashboard></wcc-dashboard> <></>
</body> </body>
</html> </html>

View File

@ -38,4 +38,4 @@
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
] ]
} }

View File

@ -18,6 +18,10 @@ wcc tools for creating element catalogues
## Usage ## Usage
## Contribution
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
## Contribution ## Contribution

View File

@ -19,13 +19,20 @@ export class WccDashboard extends LitElement {
public selectedViewport: string = 'desktop'; public selectedViewport: string = 'desktop';
@property() @property()
public pages: TemplateResult[] = []; public pages: { [key: string]: TemplateResult } = {};
@property() @property()
public elements: LitElement[] = []; public elements: { [key: string]: LitElement } = {};
constructor() { constructor(elementsArg?: { [key: string]: LitElement }, pagesArg?: { [key: string]: TemplateResult }) {
super(); super();
if (elementsArg) {
this.elements = elementsArg;
}
if (pagesArg) {
this.pages = pagesArg;
}
} }
public render(): TemplateResult { public render(): TemplateResult {