From f8cc896fbd702bbea6ce99aff42bc35a914ab0b1 Mon Sep 17 00:00:00 2001 From: Brycen G Date: Mon, 2 Dec 2024 14:18:32 -0500 Subject: [PATCH] style(frontend): apply new styling rules --- frontend/append.js | 4 +-- frontend/cypress/plugins/index.js | 2 +- frontend/server.js | 1 - frontend/src/components/Medal.tsx | 2 +- frontend/src/components/Navbar.tsx | 4 +-- .../src/components/dashboard/CardFour.tsx | 2 +- frontend/src/components/dashboard/CardOne.tsx | 2 +- .../src/components/dashboard/CardThree.tsx | 2 +- frontend/src/components/dashboard/CardTwo.tsx | 2 +- .../src/components/dashboard/ChatCard.tsx | 28 +++++++++---------- .../src/components/dashboard/CheckboxFive.tsx | 4 +-- .../src/components/dashboard/CheckboxFour.tsx | 4 +-- .../src/components/dashboard/CheckboxOne.tsx | 4 +-- .../components/dashboard/CheckboxThree.tsx | 4 +-- .../src/components/dashboard/CheckboxTwo.tsx | 2 +- .../components/dashboard/DarkModeSwitcher.tsx | 4 +-- frontend/src/components/dashboard/Header.tsx | 6 ++-- .../src/components/dashboard/SwitcherFour.tsx | 2 +- .../src/components/dashboard/SwitcherOne.tsx | 2 +- .../components/dashboard/SwitcherThree.tsx | 4 +-- .../src/components/dashboard/SwitcherTwo.tsx | 2 +- .../src/pages.disabled/dashboard/index.tsx | 2 +- frontend/src/pages/index.tsx | 2 +- 23 files changed, 45 insertions(+), 46 deletions(-) diff --git a/frontend/append.js b/frontend/append.js index 6828de57..b90d3fe8 100644 --- a/frontend/append.js +++ b/frontend/append.js @@ -1,7 +1,7 @@ const { existsSync, appendFileSync } = require('node:fs'); -const { join } = require('node:path'); +const path = require('node:path'); -const standAloneNextServerPath = join(__dirname, '.next', 'standalone', 'server.js'); +const standAloneNextServerPath = path.join(__dirname, '.next', 'standalone', 'server.js'); const standAloneNextServerExists = existsSync(standAloneNextServerPath); // I used the javascript to modify the javascript diff --git a/frontend/cypress/plugins/index.js b/frontend/cypress/plugins/index.js index 5e5a708d..717e6316 100644 --- a/frontend/cypress/plugins/index.js +++ b/frontend/cypress/plugins/index.js @@ -1,4 +1,4 @@ -// eslint-disable-next-line import/no-extraneous-dependencies +// eslint-disable-next-line unicorn/no-anonymous-default-export const useBabelRC = require('@cypress/code-coverage/use-babelrc'); module.exports = (on, config) => { diff --git a/frontend/server.js b/frontend/server.js index 41889ce9..c8734747 100644 --- a/frontend/server.js +++ b/frontend/server.js @@ -4,7 +4,6 @@ const { createServer } = require('node:http'); const { parse } = require('node:url'); -const { join } = require('node:path'); const next = require('next'); const development = process.env.NODE_ENV !== 'production'; diff --git a/frontend/src/components/Medal.tsx b/frontend/src/components/Medal.tsx index 5902e72d..3fdbff4e 100644 --- a/frontend/src/components/Medal.tsx +++ b/frontend/src/components/Medal.tsx @@ -51,7 +51,7 @@ const Modal = (properties: IMedalProperties) => { onClick={() => setShowModal(false)} data-testid="medal-button2" > - + × diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index b0e3c076..dc64b367 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -70,7 +70,7 @@ const Navbar = () => { > Open user menu diff --git a/frontend/src/components/dashboard/CardFour.tsx b/frontend/src/components/dashboard/CardFour.tsx index 82b2827c..8b2bf42e 100644 --- a/frontend/src/components/dashboard/CardFour.tsx +++ b/frontend/src/components/dashboard/CardFour.tsx @@ -3,7 +3,7 @@ import React from 'react'; const CardFour = () => { return (
-
+
{ return (
-
+
{ return (
-
+
{ return (
-
+
{
-
+
User - +
@@ -21,15 +21,15 @@ const ChatCard = () => { . 12 min

-
+
3
-
+
User - +
@@ -43,9 +43,9 @@ const ChatCard = () => {
-
+
User - +
@@ -59,9 +59,9 @@ const ChatCard = () => {
-
+
User - +
@@ -72,15 +72,15 @@ const ChatCard = () => { . Sun

-
+
2
-
+
User - +
@@ -94,9 +94,9 @@ const ChatCard = () => {
-
+
User - +
diff --git a/frontend/src/components/dashboard/CheckboxFive.tsx b/frontend/src/components/dashboard/CheckboxFive.tsx index 7707eb31..9fe9466c 100644 --- a/frontend/src/components/dashboard/CheckboxFive.tsx +++ b/frontend/src/components/dashboard/CheckboxFive.tsx @@ -16,11 +16,11 @@ const CheckboxFive = () => { }} />
- +
Checkbox Text diff --git a/frontend/src/components/dashboard/CheckboxFour.tsx b/frontend/src/components/dashboard/CheckboxFour.tsx index 9cf09b3c..e8265cd7 100644 --- a/frontend/src/components/dashboard/CheckboxFour.tsx +++ b/frontend/src/components/dashboard/CheckboxFour.tsx @@ -16,11 +16,11 @@ const CheckboxFour = () => { }} />
- +
Checkbox Text diff --git a/frontend/src/components/dashboard/CheckboxOne.tsx b/frontend/src/components/dashboard/CheckboxOne.tsx index 57b0f766..0a42f529 100644 --- a/frontend/src/components/dashboard/CheckboxOne.tsx +++ b/frontend/src/components/dashboard/CheckboxOne.tsx @@ -16,11 +16,11 @@ const CheckboxOne = () => { }} />
- +
Checkbox Text diff --git a/frontend/src/components/dashboard/CheckboxThree.tsx b/frontend/src/components/dashboard/CheckboxThree.tsx index 10367343..6ad18a1c 100644 --- a/frontend/src/components/dashboard/CheckboxThree.tsx +++ b/frontend/src/components/dashboard/CheckboxThree.tsx @@ -16,13 +16,13 @@ const CheckboxThree = () => { }} />
{ }} />
diff --git a/frontend/src/components/dashboard/DarkModeSwitcher.tsx b/frontend/src/components/dashboard/DarkModeSwitcher.tsx index 2e39b71c..8bd9938f 100644 --- a/frontend/src/components/dashboard/DarkModeSwitcher.tsx +++ b/frontend/src/components/dashboard/DarkModeSwitcher.tsx @@ -13,10 +13,10 @@ const DarkModeSwitcher = () => { setColorMode(colorMode === 'light' ? 'dark' : 'light')} - className="dur absolute top-0 z-50 m-0 h-full w-full cursor-pointer opacity-0" + className="dur absolute top-0 z-50 m-0 size-full cursor-pointer opacity-0" /> diff --git a/frontend/src/components/dashboard/Header.tsx b/frontend/src/components/dashboard/Header.tsx index 80135da3..220b049a 100644 --- a/frontend/src/components/dashboard/Header.tsx +++ b/frontend/src/components/dashboard/Header.tsx @@ -24,8 +24,8 @@ const Header = (properties: any) => { }} className="z-99999 block rounded-sm border border-stroke bg-white p-1.5 shadow-sm dark:border-strokedark dark:bg-boxdark lg:hidden" > - - + + { }`} > - + { />
diff --git a/frontend/src/components/dashboard/SwitcherOne.tsx b/frontend/src/components/dashboard/SwitcherOne.tsx index 32a8dcc5..da533357 100644 --- a/frontend/src/components/dashboard/SwitcherOne.tsx +++ b/frontend/src/components/dashboard/SwitcherOne.tsx @@ -17,7 +17,7 @@ const SwitcherOne = () => { />
diff --git a/frontend/src/components/dashboard/SwitcherThree.tsx b/frontend/src/components/dashboard/SwitcherThree.tsx index 9e80ff6b..0da68a62 100644 --- a/frontend/src/components/dashboard/SwitcherThree.tsx +++ b/frontend/src/components/dashboard/SwitcherThree.tsx @@ -17,7 +17,7 @@ const SwitcherThree = () => { />
@@ -40,7 +40,7 @@ const SwitcherThree = () => { { />
diff --git a/frontend/src/pages.disabled/dashboard/index.tsx b/frontend/src/pages.disabled/dashboard/index.tsx index 76b49d2c..67291c99 100644 --- a/frontend/src/pages.disabled/dashboard/index.tsx +++ b/frontend/src/pages.disabled/dashboard/index.tsx @@ -41,7 +41,7 @@ const RootDashboard = () => { id="preloader" className="fixed left-0 top-0 z-999999 flex h-screen w-screen items-center justify-center bg-white dark:bg-gray-900" > -
+
) : ( diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx index 37ff32ea..904276aa 100644 --- a/frontend/src/pages/index.tsx +++ b/frontend/src/pages/index.tsx @@ -40,7 +40,7 @@ const Index = () => { Get started