From e87a6278e110b521f8a301efda174db3dc4f25ba Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sun, 27 Aug 2023 15:39:49 +0300 Subject: [PATCH] Major UI improvements pass --- rsconcept/backend/apps/rsform/views.py | 2 +- rsconcept/frontend/src/App.tsx | 4 +- .../components/Common/ConceptDataTable.tsx | 43 +--- .../src/components/Common/ConceptTab.tsx | 10 +- .../frontend/src/components/Common/Modal.tsx | 2 +- .../src/components/Common/TextInput.tsx | 2 +- .../frontend/src/components/GraphThemes.ts | 98 ---------- .../frontend/src/components/Help/HelpMain.tsx | 6 +- .../src/components/Help/HelpRSFormMeta.tsx | 1 + .../src/components/Navigation/Logo.tsx | 2 +- .../src/components/Navigation/Navigation.tsx | 4 +- .../components/Navigation/UserDropdown.tsx | 3 +- .../src/components/RSInput/bracketMatching.ts | 28 +-- .../frontend/src/components/RSInput/index.tsx | 18 +- .../frontend/src/context/AuthContext.tsx | 5 +- .../frontend/src/context/LibraryContext.tsx | 18 +- .../frontend/src/context/RSFormContext.tsx | 23 ++- .../frontend/src/context/ThemeContext.tsx | 21 +- .../src/context/UserProfileContext.tsx | 53 ++--- .../frontend/src/context/UsersContext.tsx | 4 +- .../frontend/src/hooks/useCheckExpression.ts | 51 ++--- rsconcept/frontend/src/index.css | 6 +- rsconcept/frontend/src/main.tsx | 4 +- rsconcept/frontend/src/pages/HomePage.tsx | 2 +- .../src/pages/LibraryPage/PickerStrategy.tsx | 83 ++++++++ .../src/pages/LibraryPage/SearchPanel.tsx | 102 +++++----- .../src/pages/LibraryPage/ViewLibrary.tsx | 2 +- .../frontend/src/pages/LibraryPage/index.tsx | 4 +- rsconcept/frontend/src/pages/LoginPage.tsx | 11 +- .../src/pages/RSFormPage/DlgRenameCst.tsx | 4 +- .../pages/RSFormPage/EditorConstituenta.tsx | 4 +- .../src/pages/RSFormPage/EditorRSForm.tsx | 8 +- .../src/pages/RSFormPage/EditorTermGraph.tsx | 17 +- .../frontend/src/pages/RSFormPage/RSTabs.tsx | 34 ++-- .../elements/DependencyModePicker.tsx | 8 - .../pages/RSFormPage/elements/RSFormStats.tsx | 14 +- .../elements/ViewSideConstituents.tsx | 14 +- rsconcept/frontend/src/pages/RegisterPage.tsx | 10 +- .../pages/UserProfilePage/EditorProfile.tsx | 15 ++ rsconcept/frontend/src/utils/color.ts | 185 ++++++++++++++++++ rsconcept/frontend/src/utils/models.ts | 17 ++ 41 files changed, 591 insertions(+), 351 deletions(-) delete mode 100644 rsconcept/frontend/src/components/GraphThemes.ts create mode 100644 rsconcept/frontend/src/pages/LibraryPage/PickerStrategy.tsx diff --git a/rsconcept/backend/apps/rsform/views.py b/rsconcept/backend/apps/rsform/views.py index 7d45d86a..74ad2239 100644 --- a/rsconcept/backend/apps/rsform/views.py +++ b/rsconcept/backend/apps/rsform/views.py @@ -24,7 +24,7 @@ class LibraryActiveView(generics.ListAPIView): def get_queryset(self): user = self.request.user if not user.is_anonymous: - # pyling: disable=unsupported-binary-operation + # pylint: disable=unsupported-binary-operation return m.LibraryItem.objects.filter(Q(is_common=True) | Q(owner=user) | Q(subscription__user=user)) else: return m.LibraryItem.objects.filter(is_common=True) diff --git a/rsconcept/frontend/src/App.tsx b/rsconcept/frontend/src/App.tsx index d0969811..ffa2af93 100644 --- a/rsconcept/frontend/src/App.tsx +++ b/rsconcept/frontend/src/App.tsx @@ -16,7 +16,7 @@ import RSFormPage from './pages/RSFormPage'; import UserProfilePage from './pages/UserProfilePage'; function App () { - const { noNavigation, viewportHeight, mainHeight } = useConceptTheme(); + const { noNavigation, noFooter, viewportHeight, mainHeight } = useConceptTheme(); return (
Навигация по порталу осуществляется верхнюю панель или ссылки в "подвале" страницы. Их можно скрыть с помощью кнопки в правом верхнем углу
В меню пользователя (правый верхний угол) редактирование данных пользователя и изменение цветовой темы.
Основные разделы Портала
-Поддержка Портала
Портал разрабатывается
Для общедоступных схем владельцем может стать любой пользователь
Для библиотечных схем правом редактирования обладают только администраторы
Клонировать - создать копию схемы для дальнейшего редактирования
+Отслеживание - возможность видеть схему в Библиотеке и использовать фильтры
Загрузить/Выгрузить схему - взаимодействие с Экстеор через файлы формата TRS