+
{children}
-
-
);
}
diff --git a/rsconcept/frontend/src/context/RSFormContext.tsx b/rsconcept/frontend/src/context/RSFormContext.tsx
index 825bc2ce..d86a9c00 100644
--- a/rsconcept/frontend/src/context/RSFormContext.tsx
+++ b/rsconcept/frontend/src/context/RSFormContext.tsx
@@ -87,7 +87,7 @@ export const RSFormState = ({ schemaID, children }: RSFormStateProps) => {
const toggleTracking = useCallback(
() => {
- toast('not implemented yet')
+ toast.info('Отслеживание в разработке...')
}, [])
const update = useCallback(
diff --git a/rsconcept/frontend/src/index.css b/rsconcept/frontend/src/index.css
index 26365095..3daa5ae5 100644
--- a/rsconcept/frontend/src/index.css
+++ b/rsconcept/frontend/src/index.css
@@ -51,6 +51,10 @@
@apply border-gray-400 dark:border-gray-300 bg-white dark:bg-gray-700
}
+ .clr-input {
+ @apply dark:bg-black bg-white disabled:bg-[#f0f2f7] dark:disabled:bg-gray-700
+ }
+
.clr-footer {
@apply text-gray-600 bg-white border-gray-400 dark:bg-gray-700 dark:border-gray-300 dark:text-gray-300
}
@@ -68,11 +72,11 @@
}
.clr-btn-primary {
- @apply text-white bg-blue-400 hover:bg-blue-600 dark:bg-orange-600 dark:hover:bg-orange-400 disabled:bg-gray-400 dark:disabled:bg-gray-400
+ @apply text-white bg-blue-400 hover:bg-blue-600 dark:bg-orange-600 dark:hover:bg-orange-400 disabled:bg-gray-400 dark:disabled:bg-gray-600
}
.clr-btn-default {
- @apply text-gray-500 dark:text-zinc-200 dark:disabled:text-zinc-400 disabled:text-gray-400 bg-gray-100 hover:bg-gray-300 dark:bg-gray-600 dark:hover:bg-gray-400
+ @apply text-gray-600 dark:text-zinc-200 dark:disabled:text-zinc-400 disabled:text-gray-400 bg-[#f0f2f7] hover:bg-gray-300 dark:bg-gray-600 dark:hover:bg-gray-400
}
/* Transparent button */
diff --git a/rsconcept/frontend/src/pages/HomePage.tsx b/rsconcept/frontend/src/pages/HomePage.tsx
index 4f69ffdb..9927e87f 100644
--- a/rsconcept/frontend/src/pages/HomePage.tsx
+++ b/rsconcept/frontend/src/pages/HomePage.tsx
@@ -1,3 +1,4 @@
+import { useLayoutEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { useAuth } from '../context/AuthContext';
@@ -5,11 +6,14 @@ import { useAuth } from '../context/AuthContext';
function HomePage() {
const navigate = useNavigate();
const { user } = useAuth();
- if (!user) {
- navigate('/library?filter=common');
- } else if(!user.is_staff) {
- navigate('/library?filter=personal');
- }
+
+ useLayoutEffect(() => {
+ if (!user) {
+ navigate('/library?filter=common');
+ } else if(!user.is_staff) {
+ navigate('/library?filter=personal');
+ }
+ }, [navigate, user])
return (
diff --git a/rsconcept/frontend/src/pages/RSFormPage/DlgShowAST.tsx b/rsconcept/frontend/src/pages/RSFormPage/DlgShowAST.tsx
index 6ecb332e..0823b73f 100644
--- a/rsconcept/frontend/src/pages/RSFormPage/DlgShowAST.tsx
+++ b/rsconcept/frontend/src/pages/RSFormPage/DlgShowAST.tsx
@@ -16,10 +16,6 @@ interface DlgShowASTProps {
function DlgShowAST({ hideWindow, syntaxTree, expression }: DlgShowASTProps) {
const { darkMode } = useConceptTheme();
- function handleSubmit() {
- // Do nothing
- }
-
const nodes: GraphNode[] = useMemo(
() => syntaxTree.map(node => {
return {
@@ -46,14 +42,12 @@ function DlgShowAST({ hideWindow, syntaxTree, expression }: DlgShowASTProps) {
return (
{expression}
-
+
@@ -166,7 +166,7 @@ function EditorConstituenta({ activeID, onShowAST, onCreateCst, onOpenEdit, onDe
- слева от ввода текста настраивается набор атрибутов конституенты
- справа от ввода текста настраивается список конституент, которые фильтруются
- текущая конституента выделена цветом строки
- - двойнок клин / Alt + клик - выбор редактируемой конституенты
+ - двойной клик / Alt + клик - выбор редактируемой конституенты
- при наведении на ID конституенты отображаются ее атрибуты
- столбец "Описание" содержит один из непустых текстовых атрибутов
diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorRSExpression.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorRSExpression.tsx
index 72b3b1c7..b36cc630 100644
--- a/rsconcept/frontend/src/pages/RSFormPage/EditorRSExpression.tsx
+++ b/rsconcept/frontend/src/pages/RSFormPage/EditorRSExpression.tsx
@@ -210,13 +210,22 @@ function EditorRSExpression({
return (
+
- {isActive && }
{isActive && EditButtons}
- {!isActive &&
}
{ (loading || parseData) &&
diff --git a/rsconcept/frontend/src/pages/RSFormPage/elements/MatchModePicker.tsx b/rsconcept/frontend/src/pages/RSFormPage/elements/MatchModePicker.tsx
index 4cbbd496..f9855488 100644
--- a/rsconcept/frontend/src/pages/RSFormPage/elements/MatchModePicker.tsx
+++ b/rsconcept/frontend/src/pages/RSFormPage/elements/MatchModePicker.tsx
@@ -35,7 +35,7 @@ function MatchModePicker({ value, onChange }: MatchModePickerProps) {
везде: искать во всех атрибутах
handleChange(CstMatchMode.EXPR)}>
- ФВ: искать в формальных выражениях
+ выраж: искать в формальных выражениях
handleChange(CstMatchMode.TERM)}>
термин: искать в терминах
diff --git a/rsconcept/frontend/src/pages/RSFormPage/elements/StatusBar.tsx b/rsconcept/frontend/src/pages/RSFormPage/elements/StatusBar.tsx
index 16764bd6..6769fc69 100644
--- a/rsconcept/frontend/src/pages/RSFormPage/elements/StatusBar.tsx
+++ b/rsconcept/frontend/src/pages/RSFormPage/elements/StatusBar.tsx
@@ -24,8 +24,8 @@ function StatusBar({ isModified, constituenta, parseData }: StatusBarProps) {
const data = mapStatusInfo.get(status)!;
return (
- {data.text}
+ className={`text-sm h-[1.6rem] w-[10rem] font-semibold inline-flex border items-center justify-center align-middle ${data.color}`}>
+ Статус: [ {data.text} ]
)
}
diff --git a/rsconcept/frontend/vite.config.ts b/rsconcept/frontend/vite.config.ts
index 540298b6..11d54e88 100644
--- a/rsconcept/frontend/vite.config.ts
+++ b/rsconcept/frontend/vite.config.ts
@@ -5,6 +5,10 @@ import { defineConfig } from 'vite'
export default defineConfig({
plugins: [react()],
server: {
- port: 3000
+ port: 3000,
+ // https: {
+ // key: fs.readFileSync('cert/portal-key.pem'),
+ // cert: fs.readFileSync('cert/portal-cert.pem'),
+ // }
}
})