diff --git a/.editorconfig b/.editorconfig index a84ebd640..df030a224 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,7 +3,7 @@ charset=utf-8 end_of_line=lf insert_final_newline=true indent_style=tab -indent_size=3 +tab_width=3 max_line_length=off [*.svg] @@ -13,6 +13,7 @@ tab_width=3 [*.html] indent_style=tab indent_size=3 +tab_width=3 insert_final_newline=false [*.md] diff --git a/build/rollup.config.js b/build/rollup.config.js index f0bfcd3f4..ff34a1d7f 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -38,7 +38,7 @@ module.exports = { context: "window", input: { tabler: path.resolve(__dirname, '../js/tabler.js'), - 'tabler-charts': path.resolve(__dirname, '../js/tabler-charts.js'), + // 'tabler-charts': path.resolve(__dirname, '../js/tabler-charts.js'), }, output: { banner, diff --git a/js/tabler-charts.js b/js/tabler-charts.js deleted file mode 100644 index 9aaec558c..000000000 --- a/js/tabler-charts.js +++ /dev/null @@ -1,173 +0,0 @@ -(function ($) { - $(document).ready(function () { - $().peity && - $('[data-spark]').each(function () { - const $this = $(this), - data = $this.attr('data-spark'), - color = $this.attr('data-spark-color') || 'blue', - bgColor = $this.attr('data-spark-color-bg') || 'blue-100', - type = $this.attr('data-spark-type') || 'line'; - - const $div = $('
').html(data); - $this.append($div); - - let fillColor; - - if (type === 'donut' || type === 'pie') { - fillColor = [color, bgColor]; - } else if (type === 'bar') { - fillColor = [color]; - } else if (type === 'line') { - fillColor = bgColor; - } - - $div.peity(type, { - width: $this.width(), - height: $this.height(), - // max: 100, - // min: 0, - stroke: color, - strokeWidth: 2, - fill: fillColor, - padding: 0.2, - innerRadius: type === 'donut' ? 17 : 0, - }); - }); - }); -})(jQuery); - -/* -charts default configuration - */ -if (window.Apex) { - // const borderColor = 'rgba(0, 0, 0, 0.09)'; - // const mutedColor = '#888e9a'; - - // window.Apex = { - // chart: { - // // fontFamily: 'inherit', - // // foreColor: 'currentColor', - // toolbar: { - // show: false, - // }, - // zoom: { - // enabled: false, - // }, - // animations: { - // enabled: false, - // }, - // }, - // - // grid: { - // show: true, - // borderColor: borderColor, - // padding: { - // right: 0, - // bottom: 0, - // left: 0, - // top: 0, - // }, - // }, - // - // dataLabels: { - // enabled: false, - // dropShadow: { - // enabled: false, - // }, - // }, - // - // plotOptions: { - // pie: { - // customScale: 1, - // expandOnClick: false, - // dataLabels: { - // minAngleToShowLabel: 10, - // }, - // donut: { - // size: '80%' - // } - // }, - // }, - // - // stroke: { - // width: 2, - // curve: 'smooth', - // lineCap: "round", - // }, - // - // fill: { - // type: 'solid', - // opacity: 1, - // }, - // - // markers: { - // size: 0, - // strokeWidth: 1, - // radius: 2, - // hover: { - // size: 4, - // }, - // }, - // - // legend: { - // show: true, - // fontSize: '14px', - // markers: { - // width: 8, - // height: 8, - // }, - // itemMargin: { - // horizontal: 0, - // vertical: 8, - // }, - // }, - // - // title: { - // margin: 0, - // floating: true, - // offsetX: 10, - // style: { - // fontSize: '18px', - // }, - // }, - // - // subtitle: { - // margin: 0, - // }, - // - // tooltip: { - // fillSeriesColor: false, - // }, - - // xaxis: { - // labels: { - // style: { - // colors: mutedColor, - // fontSize: '12px', - // }, - // datetimeFormatter: { - // year: 'yyyy', - // month: 'MMM \'yy', - // day: 'd MMM', - // hour: 'HH:mm' - // } - // }, - // tooltip: { - // enabled: false, - // }, - // axisBorder: { - // color: borderColor, - // height: 0, - // }, - // axisTicks: { - // show: true, - // height: 4, - // color: borderColor, - // }, - // }, - // - // yaxis: { - // show: true, - // }, - // }; -} diff --git a/package.json b/package.json index 70a6826d4..102620818 100644 --- a/package.json +++ b/package.json @@ -125,14 +125,6 @@ "path": "./dist/css/tabler.min.css", "maxSize": "45 kB" }, - { - "path": "./dist/css/tabler-charts.css", - "maxSize": "2 kB" - }, - { - "path": "./dist/css/tabler-charts.min.css", - "maxSize": "2 kB" - }, { "path": "./dist/css/tabler-flags.css", "maxSize": "2 kB" diff --git a/pages/_data/libs.json b/pages/_data/libs.json index da96e90ff..7edbc55b7 100644 --- a/pages/_data/libs.json +++ b/pages/_data/libs.json @@ -3,7 +3,7 @@ "jquery", "bootstrap" ], "js": { - "jquery": "jquery/dist/jquery.min.js", + "jquery": "jquery/dist/jquery.slim.min.js", "bootstrap": "bootstrap/dist/js/bootstrap.bundle.min.js", "autosize": "autosize/dist/autosize.min.js", "imask": "imask/dist/imask.min.js", diff --git a/pages/_includes/cards/small-stats.html b/pages/_includes/cards/small-stats.html index 34987af24..2badb5462 100644 --- a/pages/_includes/cards/small-stats.html +++ b/pages/_includes/cards/small-stats.html @@ -1,39 +1,33 @@ {% assign chart-type = include.chart-type | default: 'line' %} {% assign chart-position = include.chart-position | default: 'right' %}
-
- {% if include.icon %} - {% include_cached ui/icon.html icon=include.icon %} - {% elsif include.person-id %} - {% include ui/avatar.html person-id=include.person-id class="mr-3 rounded" %} - {% endif %} +
+ {% if include.icon %} + {% include_cached ui/icon.html icon=include.icon %} + {% elsif include.person-id %} + {% include ui/avatar.html person-id=include.person-id class="mr-3 rounded" %} + {% endif %} - {% if include.chart-data and chart-position=="left" %} -
- {% include ui/sparkline.html data=include.chart-data type=chart-type color=include.color label=include.chart-label label-icon=include.chart-label-icon %} -
- {% endif %} + {% if include.chart-data and chart-position == "left" %} +
+ {% include ui/sparkline.html data=include.chart-data type=chart-type color=include.color label=include.chart-label label-icon=include.chart-label-icon %} +
+ {% endif %} -
-
- {{ include.count | default: 1700 | format_number }} {{ include.subtitle }} - {% if include.small-icon %} - {% include_cached ui/icon.html icon=include.small-icon color=include.color class="icon-sm ml-1" %} - {% endif %} -
-
{{ include.description | default: "Users" }}
-
+
+
+ {{ include.count | default: 1700 | format_number }} {{ include.subtitle }} + {% if include.small-icon %} + {% include_cached ui/icon.html icon=include.small-icon color=include.color class="icon-sm ml-1" %} + {% endif %} +
+
{{ include.description | default: "Users" }}
+
- {% if include.second-icon %} -
- {% include_cached ui/icon.html icon=include.second-icon color=include.color class="icon-lg icon-thin" %} -
- {% endif %} - - {% if include.chart-data and chart-position=="right" %} -
- {% include ui/sparkline.html data=include.chart-data type=chart-type color=include.color label=include.chart-label label-icon=include.chart-label-icon %} -
- {% endif %} -
+ {% if include.chart-data and chart-position=="right" %} +
+ {% include ui/sparkline.html data=include.chart-data type=chart-type color=include.color label=include.chart-label label-icon=include.chart-label-icon %} +
+ {% endif %} +
diff --git a/pages/_includes/cards/subscribe.html b/pages/_includes/cards/subscribe.html index 08b534460..53ca03365 100644 --- a/pages/_includes/cards/subscribe.html +++ b/pages/_includes/cards/subscribe.html @@ -1,35 +1,35 @@ {% assign person-id = include.person-id | default: 0 %} {% assign person = site.data.people[person-id] %}
-
-
-
- {% include ui/avatar.html person=person size="lg" %} -
-
-

- {{ person.full_name }} -

-
- Working in {{ person.company }} -
-
- Online -
-
- -
- -
-
-
+
+
+
+ {% include ui/avatar.html person=person size="lg" %} +
+
+

+ {{ person.full_name }} +

+
+ Working in {{ person.company }} +
+
+ Online +
+
+ +
+ +
+
+
diff --git a/pages/_includes/cards/user-card.html b/pages/_includes/cards/user-card.html index f6db78777..f700a4b6a 100644 --- a/pages/_includes/cards/user-card.html +++ b/pages/_includes/cards/user-card.html @@ -1,11 +1,13 @@ {% assign person-id = include.person-id | default: 0 %} {% assign person = site.data.people[person-id] %} -
-
- {% include ui/avatar.html person=person %} -
-
{{ person.full_name }}
-
{{ person.job_title }}
-
+
+
+ {% include ui/avatar.html person=person class="rounded" %} +
+
+
{{ person.full_name }}
+
{{ person.job_title }}
+
+
diff --git a/pages/_includes/layout/css.html b/pages/_includes/layout/css.html index 7cc1f8bea..89e5dd3d8 100644 --- a/pages/_includes/layout/css.html +++ b/pages/_includes/layout/css.html @@ -12,4 +12,3 @@ - diff --git a/pages/_includes/layout/js.html b/pages/_includes/layout/js.html index 367d4bb12..02bfb608e 100644 --- a/pages/_includes/layout/js.html +++ b/pages/_includes/layout/js.html @@ -11,6 +11,3 @@ - - - diff --git a/pages/_includes/layout/navbar.html b/pages/_includes/layout/navbar.html index fe989724a..07e13e48e 100644 --- a/pages/_includes/layout/navbar.html +++ b/pages/_includes/layout/navbar.html @@ -15,7 +15,7 @@