From e801e923324fa0fbff822551acb968720d750c22 Mon Sep 17 00:00:00 2001
From: Dominik Frantisek Bucik <bucik@ics.muni.cz>
Date: Wed, 19 Jul 2023 14:15:40 +0200
Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=84=20fix=20prettier?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 www/res/css/cmservice.css |  4 +++-
 www/res/css/eduteams.css  | 17 +++++++++++++----
 www/res/js/charts.js      | 18 +++++++++---------
 3 files changed, 25 insertions(+), 14 deletions(-)

diff --git a/www/res/css/cmservice.css b/www/res/css/cmservice.css
index dee4061..a4ed3a5 100644
--- a/www/res/css/cmservice.css
+++ b/www/res/css/cmservice.css
@@ -288,7 +288,9 @@ form .remember select.amount:active {
   overflow: hidden;
   -webkit-transform: rotate(45deg);
   transform: rotate(45deg);
-  box-shadow: 0 0 0 3px #eb3814, 0px 21px 5px -18px rgba(0, 0, 0, 0.6);
+  box-shadow:
+    0 0 0 3px #eb3814,
+    0px 21px 5px -18px rgba(0, 0, 0, 0.6);
   background: #eb3814;
   text-align: center;
 }
diff --git a/www/res/css/eduteams.css b/www/res/css/eduteams.css
index b0cf47d..8f4467b 100644
--- a/www/res/css/eduteams.css
+++ b/www/res/css/eduteams.css
@@ -123,9 +123,12 @@ a#registration-btn {
 .form-control:focus {
   border-color: rgb(20, 125, 250);
   outline: 0;
-  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
+  -webkit-box-shadow:
+    inset 0 1px 1px rgba(0, 0, 0, 0.075),
+    0 0 8px rgb(20, 125, 250);
+  box-shadow:
+    inset 0 1px 1px rgba(0, 0, 0, 0.075),
     0 0 8px rgb(20, 125, 250);
-  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgb(20, 125, 250);
 }
 
 /*-------------------------------------------------*/
@@ -274,7 +277,10 @@ p {
   margin: 0;
   padding: 14px 6px;
   border-left: 3px solid #fff;
-  transition: background-color 0.2s ease, border-left 0.2s ease, color 0.2s ease;
+  transition:
+    background-color 0.2s ease,
+    border-left 0.2s ease,
+    color 0.2s ease;
   cursor: pointer;
 }
 
@@ -298,7 +304,10 @@ p {
   padding: 14px 6px;
   border-left: none;
   color: #147dfa;
-  transition: background-color 0.2s ease, border-left 0.2s ease, color 0.2s ease;
+  transition:
+    background-color 0.2s ease,
+    border-left 0.2s ease,
+    color 0.2s ease;
   cursor: pointer;
   background-color: #f3f3f3;
 }
diff --git a/www/res/js/charts.js b/www/res/js/charts.js
index d0b0d84..a95e41e 100644
--- a/www/res/js/charts.js
+++ b/www/res/js/charts.js
@@ -59,7 +59,7 @@ function drawLoginsChart(getEl) {
     $(el)
       .parent()
       .replaceWith(
-        '<p class="text-muted">No data has been recorded in the selected period...</p>'
+        '<p class="text-muted">No data has been recorded in the selected period...</p>',
       );
     return;
   }
@@ -234,7 +234,7 @@ function drawPieChart(dataName, viewCols, url, getEl) {
 
   const processedData = processDataForPieChart(
     getStatisticsData(dataName),
-    viewCols
+    viewCols,
   );
   const data = processedData.data;
 
@@ -243,7 +243,7 @@ function drawPieChart(dataName, viewCols, url, getEl) {
       .parent()
       .parent()
       .replaceWith(
-        '<p class="text-muted">No data has been recorded in the selected period...</p>'
+        '<p class="text-muted">No data has been recorded in the selected period...</p>',
       );
     return;
   }
@@ -302,7 +302,7 @@ function drawPieChart(dataName, viewCols, url, getEl) {
         evt,
         "nearest",
         { intersect: true },
-        false
+        false,
       );
       if (activePoints.length) {
         window.location.href =
@@ -317,7 +317,7 @@ function getDrawChart(side) {
     null,
     "loginCountPer" + side,
     [0, 2],
-    getStatisticsData("module_url_base") + "detail.php?side=" + side + "&id="
+    getStatisticsData("module_url_base") + "detail.php?side=" + side + "&id=",
   );
 }
 
@@ -328,7 +328,7 @@ function drawCountTable(
   dataName,
   allowHTML,
   url,
-  getEl
+  getEl,
 ) {
   const el = getEl();
   if (!el) return;
@@ -399,7 +399,7 @@ function getDrawTable(side) {
     2,
     "loginCountPer" + side,
     false,
-    getStatisticsData("module_url_base") + "detail.php?side=" + side + "&id="
+    getStatisticsData("module_url_base") + "detail.php?side=" + side + "&id=",
   );
 }
 
@@ -411,7 +411,7 @@ function getDrawCountTable(side) {
     2,
     "accessCounts",
     true,
-    null
+    null,
   );
 }
 
@@ -436,7 +436,7 @@ function chartInit() {
     idLoadCallback(side + "Table", getDrawTable(side));
     idLoadCallback(
       "detail" + side + "Chart",
-      drawPieChart.bind(null, "accessCounts", [0, 2], null)
+      drawPieChart.bind(null, "accessCounts", [0, 2], null),
     );
     idLoadCallback("detail" + side + "Table", getDrawCountTable(side));
   });
-- 
GitLab