diff --git a/html/index.html b/html/index.html index 3850161..fe28e32 100644 --- a/html/index.html +++ b/html/index.html @@ -21,6 +21,6 @@ - + <> diff --git a/package.json b/package.json index ffe110c..37dbb96 100644 --- a/package.json +++ b/package.json @@ -38,4 +38,4 @@ "npmextra.json", "readme.md" ] -} +} \ No newline at end of file diff --git a/readme.md b/readme.md index 1cf238a..c1570b1 100644 --- a/readme.md +++ b/readme.md @@ -18,6 +18,10 @@ wcc tools for creating element catalogues ## 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 diff --git a/ts_web/elements/wcc-dashboard.ts b/ts_web/elements/wcc-dashboard.ts index 5bc7d06..0249574 100644 --- a/ts_web/elements/wcc-dashboard.ts +++ b/ts_web/elements/wcc-dashboard.ts @@ -19,13 +19,20 @@ export class WccDashboard extends LitElement { public selectedViewport: string = 'desktop'; @property() - public pages: TemplateResult[] = []; + public pages: { [key: string]: TemplateResult } = {}; @property() - public elements: LitElement[] = []; + public elements: { [key: string]: LitElement } = {}; - constructor() { + constructor(elementsArg?: { [key: string]: LitElement }, pagesArg?: { [key: string]: TemplateResult }) { super(); + if (elementsArg) { + this.elements = elementsArg; + } + + if (pagesArg) { + this.pages = pagesArg; + } } public render(): TemplateResult {