From ed89591af94927e74d072c060c507a73ff91f577 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Thu, 13 Mar 2025 14:40:56 +0300 Subject: [PATCH] R: Simplify inline styles pt3 --- .../frontend/src/app/application-layout.tsx | 2 +- .../src/components/dropdown/dropdown.tsx | 2 +- .../src/components/input/select-tree.tsx | 2 +- .../features/help/items/ui/help-rseditor.tsx | 7 +++--- .../help/items/ui/help-rsgraph-term.tsx | 3 +-- .../help/items/ui/help-type-graph.tsx | 8 +++---- .../pages/library-page/view-side-location.tsx | 18 +++++--------- .../dlg-edit-operation/tab-synthesis.tsx | 8 +------ .../editor-oss-graph/graph/node-core.tsx | 13 +++++----- .../rsform/components/badge-grammeme.tsx | 7 ++---- .../dialogs/dlg-show-ast/graph/ast-node.tsx | 24 +++++++------------ .../dlg-show-type-graph/graph/mgraph-node.tsx | 10 ++------ .../editor-rsexpression/rs-edit-controls.tsx | 1 + .../editor-term-graph/graph/tg-node.tsx | 6 ++--- .../editor-term-graph/view-hidden.tsx | 1 + rsconcept/frontend/src/styling/components.css | 24 +++++++++++++++---- rsconcept/frontend/src/styling/setup.css | 4 ---- 17 files changed, 60 insertions(+), 80 deletions(-) diff --git a/rsconcept/frontend/src/app/application-layout.tsx b/rsconcept/frontend/src/app/application-layout.tsx index 338a8302..a239b358 100644 --- a/rsconcept/frontend/src/app/application-layout.tsx +++ b/rsconcept/frontend/src/app/application-layout.tsx @@ -27,7 +27,7 @@ export function ApplicationLayout() {
({
отображение наследованных
  • - текущая конституента + текущая конституента
  • - + текущей
  • - + текущей
  • diff --git a/rsconcept/frontend/src/features/help/items/ui/help-rsgraph-term.tsx b/rsconcept/frontend/src/features/help/items/ui/help-rsgraph-term.tsx index 55b40870..c76bf200 100644 --- a/rsconcept/frontend/src/features/help/items/ui/help-rsgraph-term.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/help-rsgraph-term.tsx @@ -19,7 +19,6 @@ import { IconText, IconTypeGraph } from '@/components/icons'; -import { APP_COLORS } from '@/styling/colors'; import { LinkTopic } from '../../components/link-topic'; import { HelpTopic } from '../../models/help-topic'; @@ -49,7 +48,7 @@ export function HelpRSGraphTerm() {

    Изменение узлов

  • Клик на узел – выделение
  • - Левый клик – выбор фокус-конституенты + Левый клик – выбор фокус-конституенты
  • Esc – сбросить выделение diff --git a/rsconcept/frontend/src/features/help/items/ui/help-type-graph.tsx b/rsconcept/frontend/src/features/help/items/ui/help-type-graph.tsx index 2b441b05..96548637 100644 --- a/rsconcept/frontend/src/features/help/items/ui/help-type-graph.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/help-type-graph.tsx @@ -1,5 +1,3 @@ -import { APP_COLORS } from '@/styling/colors'; - import { LinkTopic } from '../../components/link-topic'; import { HelpTopic } from '../../models/help-topic'; @@ -21,13 +19,13 @@ export function HelpTypeGraph() {

    Виды узлов

  • - ступень-основание + ступень-основание
  • - ступень-булеан + ступень-булеан
  • - ступень декартова произведения + ступень декартова произведения
  • ); diff --git a/rsconcept/frontend/src/features/library/pages/library-page/view-side-location.tsx b/rsconcept/frontend/src/features/library/pages/library-page/view-side-location.tsx index 4b5be6a1..fed4d14d 100644 --- a/rsconcept/frontend/src/features/library/pages/library-page/view-side-location.tsx +++ b/rsconcept/frontend/src/features/library/pages/library-page/view-side-location.tsx @@ -1,4 +1,5 @@ import { toast } from 'react-toastify'; +import clsx from 'clsx'; import { useAuthSuspense } from '@/features/auth'; import { HelpTopic } from '@/features/help'; @@ -6,9 +7,8 @@ import { BadgeHelp } from '@/features/help/components'; import { MiniButton } from '@/components/control'; import { IconFolderEdit, IconFolderTree } from '@/components/icons'; -import { useWindowSize } from '@/hooks/use-window-size'; import { useFitHeight } from '@/stores/app-layout'; -import { PARAMETER, prefixes } from '@/utils/constants'; +import { prefixes } from '@/utils/constants'; import { infoMsg } from '@/utils/labels'; import { useLibrary } from '../../backend/use-library'; @@ -25,7 +25,6 @@ interface ViewSideLocationProps { export function ViewSideLocation({ isVisible, onRenameLocation }: ViewSideLocationProps) { const { user, isAnonymous } = useAuthSuspense(); const { items } = useLibrary(); - const { isSmall } = useWindowSize(); const location = useLibrarySearchStore(state => state.location); const setLocation = useLibrarySearchStore(state => state.setLocation); @@ -62,15 +61,10 @@ export function ViewSideLocation({ isVisible, onRenameLocation }: ViewSideLocati return (
    diff --git a/rsconcept/frontend/src/features/oss/dialogs/dlg-edit-operation/tab-synthesis.tsx b/rsconcept/frontend/src/features/oss/dialogs/dlg-edit-operation/tab-synthesis.tsx index 8710d6d6..bef0c84b 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/dlg-edit-operation/tab-synthesis.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/dlg-edit-operation/tab-synthesis.tsx @@ -7,7 +7,6 @@ import { PickSubstitutions } from '@/features/rsform/components'; import { TextArea } from '@/components/input'; import { useDialogsStore } from '@/stores/dialogs'; -import { APP_COLORS } from '@/styling/colors'; import { type IOperationUpdateDTO } from '../../backend/types'; import { SubstitutionValidator } from '../../models/oss-api'; @@ -45,12 +44,7 @@ export function TabSynthesis() { )} /> -