diff --git a/package.json b/package.json
index 0acf9ebed..52f8a0c00 100644
--- a/package.json
+++ b/package.json
@@ -91,7 +91,8 @@
"dependencies": {
"apexcharts": "3.10.0",
"autosize": "4.0.2",
- "bootstrap": "twbs/bootstrap#8d56c19",
+ "bootstrap": "twbs/bootstrap#9ee9b8a",
+ "chart.js": "^2.8.0",
"imask": "5.2.1",
"jquery": "3.4.1",
"jqvmap": "1.5.1",
diff --git a/pages/_data/libs.json b/pages/_data/libs.json
index f088df092..18a495059 100644
--- a/pages/_data/libs.json
+++ b/pages/_data/libs.json
@@ -7,6 +7,7 @@
"selectize/dist/js/standalone/selectize.min.js",
"apexcharts/dist/apexcharts.min.js",
+ "chart.js/dist/Chart.min.js",
"jqvmap/dist/jquery.vmap.min.js",
"jqvmap/dist/maps/jquery.vmap.world.js",
"jqvmap/dist/maps/jquery.vmap.usa.js",
@@ -16,6 +17,7 @@
],
"css": [
"jqvmap/dist/jqvmap.min.css",
- "selectize/dist/css/selectize.css"
+ "selectize/dist/css/selectize.css",
+ "chart.js/dist/Chart.min.css"
]
}
diff --git a/pages/_includes/js/charts.html b/pages/_includes/js/charts.html
index c93e65fb4..9a2314707 100644
--- a/pages/_includes/js/charts.html
+++ b/pages/_includes/js/charts.html
@@ -1,3 +1,4 @@
+{% capture_global scripts %}
{% removeemptylines %}
{% assign data = site.data.charts[include.chart-id] %}
@@ -127,3 +128,4 @@ document.addEventListener("DOMContentLoaded", function(event) {
{% endif %}
{% endremoveemptylines %}
+{% endcapture_global %}
diff --git a/pages/_includes/ui/avatar.html b/pages/_includes/ui/avatar.html
index ea18bce21..687a4c48f 100644
--- a/pages/_includes/ui/avatar.html
+++ b/pages/_includes/ui/avatar.html
@@ -17,7 +17,7 @@
{% assign link = include.link | default: false %}
{% assign el = 'span' %}
{% if link %}{% assign el = 'a' %}{% endif %}
-<{{ el }} class="avatar{% if include['size'] %} avatar-{{ include['size'] }}{% endif %}{% if include.thumb %} avatar-thumb{% endif %}{% if include.class %} {{ include.class }}{% endif %}{% if include.shape %} {{ include.shape }}{% endif %}{% if include.color %} bg-{{ include.color }}-lt{% endif %}"{% if src %} style="background-image: url({{ site.base }}{{ src }})"{% endif %}>{% if include.status %}
+<{{ el }} class="avatar{% if include['size'] %} avatar-{{ include['size'] }}{% endif %}{% if include.thumb %} avatar-thumb{% endif %}{% if include.class %} {{ include.class }}{% endif %}{% if include.shape %} {{ include.shape }}{% endif %}{% if include.color %} bg-{{ include.color }}-lt{% endif %}"{% if src %} style="background-image: url({{ site.base }}/{{ src }})"{% endif %}>{% if include.status %}
{% if include.status-text %}{{ include.status-text }}{% elsif include.status-icon %}{% include ui/icon.html icon=include.status-icon class="avatar-status-icon" %}{% endif %}
{% endif %}{% if placeholder %}{{ placeholder }}{% elsif include.icon %} {% include ui/icon.html icon=include.icon class="avatar-icon" %}{% endif %}{{ el }}>
{% endremoveemptylines %}
diff --git a/pages/_layouts/base.html b/pages/_layouts/base.html
index 67724577a..3db438041 100644
--- a/pages/_layouts/base.html
+++ b/pages/_layouts/base.html
@@ -44,6 +44,8 @@
{% endif %}
{% endif %}
+{{ site.capture_global.scripts }}
+