diff --git a/js/app/charts.js b/js/app/charts.js index 1bb9013d87e53995a9ddf5ed19e957741270ef0e..2fd1eae7fa6bcf10db3c5925d364b244442cdb8a 100644 --- a/js/app/charts.js +++ b/js/app/charts.js @@ -41,48 +41,89 @@ /* -Apexcharts default configuration +charts default configuration */ if (window.Apex) { - Apex.grid = { - padding: { - right: 0, - left: 0, - bottom: 0, - top: 0 - } - }; - Apex.dataLabels = { - enabled: false - }; + window.Apex = { + grid: { + show: false, + padding: { + right: 0, + left: 0, + bottom: 0, + top: 0 + } + }, - Apex.plotOptions = { - pie: { - expandOnClick: false, + dataLabels: { + enabled: false }, - }; - Apex.chart = { - toolbar: { - show: false, + plotOptions: { + pie: { + expandOnClick: false, + }, + }, + + chart: { + toolbar: { + show: false, + }, + zoom: { + enabled: false + }, + animations: { + enabled: false, + } + }, + + stroke: { + width: 2, + curve: 'smooth', + }, + + fill: { + type: 'solid', + opacity: 1 }, - animations: { - enabled: false, - } - }; - Apex.stroke = { - width: 2, - curve: 'smooth', - }; + markers: { + strokeWidth: 1 + }, + + legend: { + show: false + }, - Apex.fill = { - type: 'solid', - opacity: 1 - }; + title: { + style: { + fontSize: '14px', + fontFamily: 'inherit' + } + }, + + tooltip: { + fillSeriesColor: false + }, - Apex.legend = { - show: false - }; + xaxis: { + labels: { + show: false + }, + tooltip: { + enabled: false + }, + axisBorder: { + show: false + } + }, + + yaxis: { + show: false, + labels: { + show: false + } + } + } } diff --git a/pages/_data/charts.yml b/pages/_data/charts.yml index 7706c8ea388d1ddb272b6bf1550ad5d06a7e2e5d..3986032e626a606dda255a568fc09814e24ddd9b 100644 --- a/pages/_data/charts.yml +++ b/pages/_data/charts.yml @@ -330,12 +330,13 @@ usd-eur: series: - name: USD/EUR color: black - data: [1.1241, 1.0972, 1.0601, 1.0516, 1.2795, 1.0573, 1.065, 1.1892, 1.1243, 1.1421, 1.1835, 1.1917, 1.1811, 1.1649, 1.1888, 1.1995, 1.2412, 1.2193, 1.2325, 1.2077, 1.1692, 1.168, 1.1686, 1.1601, 1.1608, 1.1317, 1.0318, 1.1465, 1.1444, 1.1371] + data: [1.1241, 1.0972, 1.0601, 1.0516, 1.2795, 1.0573, 1.065, 1.1892, 1.1243, 1.1421, 1.1835, 1.1917, 1.1811, 1.1649, 1.1888, 1.1995, 1.2412, 1.2193, 1.2325, 1.2077, 1.1692, 1.168, 1.1686, 1.1601, 1.1608, 1.1317, 1.0318, 1.1465, 1.1444] devices: type: donut sparkline: true hide-legend: true + sparkline: true series: - name: a color: blue-dark diff --git a/pages/_docs/avatars.md b/pages/_docs/avatars.md new file mode 100644 index 0000000000000000000000000000000000000000..82f14b71d0a596d844dbe4babec1c555b481c060 --- /dev/null +++ b/pages/_docs/avatars.md @@ -0,0 +1,99 @@ +--- +title: Avatars +description: Create and group avatars of various shapes and sizes with one component. +--- + +### Default markup + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html person-id=1 %} +{% include ui/avatar.html person-id=2 %} +{% include ui/avatar.html person-id=3 %} +{% endexample %} + +### Avatar size + +Using Bootstrap’s typical naming structure, you can create a standard avatar, or scale it up to different sizes based on what’s needed. + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html person-id=10 size="xl" %} +{% include ui/avatar.html person-id=9 size="lg" %} +{% include ui/avatar.html person-id=8 size="md" %} +{% include ui/avatar.html person-id=7 %} +{% include ui/avatar.html person-id=6 size="sm" %} +{% endexample %} + +### Avatar status + +Add an online or offline status indicator to show user's availability. + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html person-id=11 %} +{% include ui/avatar.html person-id=12 status="danger" %} +{% include ui/avatar.html person-id=13 status="success" %} +{% include ui/avatar.html person-id=14 status="warning" %} +{% include ui/avatar.html person-id=15 status="info" %} +{% include ui/avatar.html person-id=16 status="gray" %} +{% endexample %} + +### Avatar shape + +Change the shape of an avatar with the default Bootstrap image classes. + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html person-id=17 %} +{% include ui/avatar.html person-id=18 shape="rounded" %} +{% include ui/avatar.html person-id=19 shape="rounded-circle" %} +{% include ui/avatar.html person-id=20 shape="rounded-0" %} +{% include ui/avatar.html person-id=21 shape="rounded-lg" %} +{% endexample %} + +### Initials + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html placeholder="AB" size="xl" %} +{% include ui/avatar.html placeholder="CD" size="lg" %} +{% include ui/avatar.html placeholder="EF" size="md" %} +{% include ui/avatar.html placeholder="GH" %} +{% include ui/avatar.html placeholder="IJ" size="sm" %} +{% endexample %} + + +### Avatar initials color + +[See more]({% docs_url colors %}) + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html placeholder="AB" color="green" %} +{% include ui/avatar.html placeholder="CD" color="red" %} +{% include ui/avatar.html placeholder="EF" color="yellow" %} +{% include ui/avatar.html placeholder="GH" color="blue" %} +{% include ui/avatar.html placeholder="IJ" color="purple" %} +{% endexample %} + +### Avatar initials icons + +{% example html wrapper=avatar-list %} +{% include ui/avatar.html icon="user" %} +{% include ui/avatar.html icon="plus" %} +{% include ui/avatar.html icon="user-plus" %} +{% endexample %} + +### Avatars list + +{% example html %} +
+{% for person in site.data.people limit: 5 offset: 20 %} + {% include ui/avatar.html person=person %} +{% endfor %} +
+{% endexample %} + +{% example html %} +
+ {% for person in site.data.people limit: 5 offset: 30 %} + {% include ui/avatar.html person=person element="a" %} + {% endfor %} + +8 +
+{% endexample %} diff --git a/pages/_docs/index.md b/pages/_docs/index.md index d961f53c04c79a1a8e5223e218824a1ff5cdb94c..bbd3d41815f2a7af7921aabe526015bcf5d55985 100644 --- a/pages/_docs/index.md +++ b/pages/_docs/index.md @@ -26,9 +26,6 @@ When completed, you'll be able to run the various commands provided from the com 2. Open [http://localhost:4000](http://localhost:4000) in your browser, and voilà. 3. Any change in `/src` directory will build application and refresh the page. -
-Warning! all changes made in _site/ folder would be overwriten on application build. -
### Bugs and feature requests diff --git a/pages/_includes/js/charts.html b/pages/_includes/js/charts.html index 7488bc3ac6c4ffa2eaead0abe13875084bf0ae68..5e13958e491ff876f81a36b440987f3e5d10b239 100644 --- a/pages/_includes/js/charts.html +++ b/pages/_includes/js/charts.html @@ -4,7 +4,9 @@ {% if data %}