From c18e34d2ebf55a977b77574df2e63f1229fde8ca Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sun, 3 Sep 2023 18:26:50 +0300 Subject: [PATCH] Major UI improvement and colors refactoring --- rsconcept/frontend/postcss.config.js | 2 + rsconcept/frontend/src/App.tsx | 4 +- .../frontend/src/components/BackendError.tsx | 2 +- .../frontend/src/components/Common/Card.tsx | 2 +- .../Common/{Loader.tsx => ConceptLoader.tsx} | 10 +- .../src/components/Common/ConceptSelect.tsx | 2 +- .../src/components/Common/ConceptTab.tsx | 2 +- .../src/components/Common/Divider.tsx | 4 +- .../src/components/Common/Dropdown.tsx | 2 +- .../components/Common/DropdownCheckbox.tsx | 4 +- .../src/components/Common/EmbedYoutube.tsx | 2 +- .../frontend/src/components/Common/Label.tsx | 2 +- .../frontend/src/components/Common/Modal.tsx | 8 +- .../src/components/Common/TextArea.tsx | 2 +- .../src/components/Common/TextInput.tsx | 2 +- .../{ToasterThemed.tsx => ConceptToaster.tsx} | 0 .../frontend/src/components/ErrorFallback.tsx | 4 +- rsconcept/frontend/src/components/Footer.tsx | 2 +- .../src/components/Help/HelpConstituenta.tsx | 2 +- .../src/components/Help/HelpLibrary.tsx | 2 +- .../frontend/src/components/Help/HelpMain.tsx | 20 +- rsconcept/frontend/src/components/Icons.tsx | 17 + .../src/components/Navigation/Navigation.tsx | 45 +-- .../Navigation/NavigationButton.tsx | 2 +- .../src/components/Navigation/UserMenu.tsx | 27 +- .../src/components/RSInput/bracketMatching.ts | 4 +- .../frontend/src/components/RSInput/index.tsx | 17 +- .../src/components/RSInput/rslang/index.ts | 2 +- .../src/components/RSInput/tooltip.ts | 6 +- .../frontend/src/components/RequireAuth.tsx | 4 +- rsconcept/frontend/src/hooks/useWindowSize.ts | 6 +- rsconcept/frontend/src/index.css | 325 +++++++++++++----- .../frontend/src/pages/CreateRSFormPage.tsx | 2 +- .../src/pages/LibraryPage/PickerStrategy.tsx | 2 +- .../src/pages/LibraryPage/ViewLibrary.tsx | 24 +- .../frontend/src/pages/LibraryPage/index.tsx | 4 +- rsconcept/frontend/src/pages/LoginPage.tsx | 97 +++--- .../src/pages/ManualsPage/TopicsList.tsx | 6 +- .../src/pages/RSFormPage/DlgCreateCst.tsx | 1 - .../pages/RSFormPage/EditorConstituenta.tsx | 9 +- .../src/pages/RSFormPage/EditorItems.tsx | 16 +- .../pages/RSFormPage/EditorRSExpression.tsx | 8 +- .../src/pages/RSFormPage/EditorRSForm.tsx | 6 +- .../src/pages/RSFormPage/EditorTermGraph.tsx | 10 +- .../frontend/src/pages/RSFormPage/RSTabs.tsx | 18 +- .../src/pages/RSFormPage/RSTabsMenu.tsx | 10 +- .../RSFormPage/elements/ParsingResult.tsx | 2 +- .../RSFormPage/elements/RSTokenButton.tsx | 2 +- .../elements/ViewSideConstituents.tsx | 12 +- rsconcept/frontend/src/pages/RegisterPage.tsx | 4 +- .../pages/UserProfilePage/EditorPassword.tsx | 8 +- .../pages/UserProfilePage/EditorProfile.tsx | 6 +- .../src/pages/UserProfilePage/UserTabs.tsx | 4 +- .../UserProfilePage/ViewSubscriptions.tsx | 2 +- rsconcept/frontend/src/utils/color.ts | 129 ++++--- .../frontend/src/utils/print-lezer-tree.ts | 8 +- 56 files changed, 569 insertions(+), 356 deletions(-) rename rsconcept/frontend/src/components/Common/{Loader.tsx => ConceptLoader.tsx} (52%) rename rsconcept/frontend/src/components/{ToasterThemed.tsx => ConceptToaster.tsx} (100%) diff --git a/rsconcept/frontend/postcss.config.js b/rsconcept/frontend/postcss.config.js index 2e7af2b7..0fa420c0 100644 --- a/rsconcept/frontend/postcss.config.js +++ b/rsconcept/frontend/postcss.config.js @@ -1,5 +1,7 @@ export default { plugins: { + 'postcss-import': {}, + 'tailwindcss/nesting': {}, tailwindcss: {}, autoprefixer: {}, }, diff --git a/rsconcept/frontend/src/App.tsx b/rsconcept/frontend/src/App.tsx index 14913b38..86cd5156 100644 --- a/rsconcept/frontend/src/App.tsx +++ b/rsconcept/frontend/src/App.tsx @@ -1,8 +1,8 @@ import { createBrowserRouter, Outlet, RouterProvider } from 'react-router-dom'; +import ConceptToaster from './components/ConceptToaster'; import Footer from './components/Footer'; import Navigation from './components/Navigation/Navigation'; -import ToasterThemed from './components/ToasterThemed'; import { useConceptTheme } from './context/ThemeContext'; import CreateRSFormPage from './pages/CreateRSFormPage'; import HomePage from './pages/HomePage'; @@ -20,7 +20,7 @@ function Root() { return (