Skip to content

Commit

Permalink
Merge branch 'polymer3' into 'master'
Browse files Browse the repository at this point in the history
Polymer3

See merge request mistio/mist-insights!16
  • Loading branch information
d-mo committed Apr 19, 2021
2 parents 5b7d1a3 + 7eac1bd commit f2bbc38
Show file tree
Hide file tree
Showing 10 changed files with 3,630 additions and 2,274 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
bower_components

node_modules
30 changes: 25 additions & 5 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,39 @@

<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="../mist-insights.html">
<script type="module" src="../mist-insights.js"></script>

<style is="custom-style" include="demo-pages-shared-styles">
</style>
<!-- FIXME(polymer-modulizer):
These imperative modules that innerHTML your HTML are
a hacky way to be sure that any mixins in included style
modules are ready before any elements that reference them are
instantiated, otherwise the CSS @apply mixin polyfill won't be
able to expand the underlying CSS custom properties.
See: https://github.com/Polymer/polymer-modulizer/issues/154
-->
<script type="module">
const $_documentContainer = document.createElement('template');

$_documentContainer.innerHTML = `<style is="custom-style" include="demo-pages-shared-styles">
</style>`;

document.head.appendChild($_documentContainer.content);
</script>
</head>
<body>
<div class="vertical-section-container centered">
<script type="module">
const $_documentContainer = document.createElement('template');

$_documentContainer.innerHTML = `<div class="vertical-section-container centered">
<h3>Basic mist-insights demo</h3>
<demo-snippet>
<template>
<mist-insights></mist-insights>
</template>
</demo-snippet>
</div>
</div>`;

document.body.appendChild($_documentContainer.content);
</script>
</body>
</html>
1 change: 0 additions & 1 deletion echarts-import.html

This file was deleted.

10 changes: 7 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@

<title>mist-insights</title>

<script src="../webcomponentsjs/webcomponents-lite.js"></script>

<link rel="import" href="../iron-component-page/iron-component-page.html">
</head>
<body>
<iron-component-page src="mist-insights.html"></iron-component-page>
<script type="module">
import "./mist-insights.js"
</script>
<mist-insights period="month" stack-term="" cloud="es123232"
uri=""
token="token"
currency="$"></mist-insights>
</body>
</html>
Loading

0 comments on commit f2bbc38

Please sign in to comment.