-
-

-
-
-

-
-
-
- Выберите подходящего врача
-
-
+ render() {
+ const {classes} = this.props;
+ const cards = [
+ {
+ title: "Разместите пост на форуме",
+ description: "Форум",
+ status: "Мгновенный отклик от врачей",
+ imgUrl: Forum,
+ url: "/records/view",
+ },
+ {
+ title: "Выберите подходящего врача",
+ description: "Поиск",
+ status: "Высококвалифицированные специалисты",
+ imgUrl: Doctor,
+ url: "/search",
+ },
+ {
+ title: "Получите отчет от искусственного интеллекта",
+ description: "DICOM Viewer",
+ status: "Нейросеть, обученная на большом объеме данных",
+ imgUrl: AI,
+ url: "http://localhost:3000/local",
+ },
+ ];
+ const styles = {
+ root: {
+ fontFamily: 'Unbounded, cursive',
+
+ },
+ };
-
-
-

-
-
-
- Получите отчет от искусственного интеллекта
-
-
+
-
+
+ return (
+
+ { this.divElement = divElement } }>
+
+ Консультации врачей онлайн: получите второе мнение, не покидая дома
+
+
+
+
+
+ {
+ cards.map((card, index) => {
+ return (
+
+ )
+ })
+ }
+
+
+
);
-
-
}
-
-
}
export default withStyles(useStyles)(newHome)
\ No newline at end of file
diff --git a/med-web-app-front/src/components/pipelines/pipeline-results.component.js b/med-web-app-front/src/components/pipelines/pipeline-results.component.js
index 9ccb0e35..47196818 100644
--- a/med-web-app-front/src/components/pipelines/pipeline-results.component.js
+++ b/med-web-app-front/src/components/pipelines/pipeline-results.component.js
@@ -11,8 +11,20 @@ import {
import Button from "@material-ui/core/Button";
import Grid from "@material-ui/core/Grid";
import {Link} from "react-router-dom";
+import ViewListIcon from '@material-ui/icons/ViewList';
+import ButtonDrawer from "../ButtonDrawer";
+import {Hidden} from "@material-ui/core"
+import CachedIcon from '@material-ui/icons/Cached';
+import clsx from "clsx"
const useStyles = theme => ({
+ results: {
+ display: 'inline-block',
+ wordWrap: 'break-word',
+ },
+ listIcon: {
+ marginTop: theme.spacing(3),
+ },
button: {
width: 200,
margin: theme.spacing(1),
@@ -29,7 +41,6 @@ const useStyles = theme => ({
},
mainGrid: {
display: 'flex',
- minWidth: 1000,
},
paper: {
marginTop: theme.spacing(3),
@@ -39,7 +50,7 @@ const useStyles = theme => ({
minHeight: 400,
},
paper2: {
- margin: theme.spacing(3),
+ marginTop: theme.spacing(3),
padding: theme.spacing(3),
color: "black",
},
@@ -51,6 +62,7 @@ const useStyles = theme => ({
},
title: {
padding: theme.spacing(3),
+
},
})
@@ -65,11 +77,21 @@ class PipelineResultsComponent extends Component {
this.handleClose = this.handleClose.bind(this)
const user = AuthService.getCurrentUser();
+ const links = ["/pipelines/create"];
+ const icons = [
]
+ const titles = [ 'Запустить анализ']
+ const positions = ['right']
+ const icon =
this.state = {
currentUser: user,
pipelineJobs: [],
message: "",
- open: false
+ open: false,
+ links: links,
+ icons: icons,
+ titles: titles,
+ positions: positions,
+ icon: icon,
};
}
@@ -145,13 +167,11 @@ class PipelineResultsComponent extends Component {
const {pipelineJobs} = this.state;
const {classes} = this.props
return (
-
-
-
-
+
+
-
+
Результаты:
@@ -180,31 +200,6 @@ class PipelineResultsComponent extends Component {
style={{marginLeft: 5}}>Скачать
- {/*
- this.handleClickOpen()}>
-
-
-
-
*/}
))}
@@ -214,19 +209,26 @@ class PipelineResultsComponent extends Component {
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
);
}
}
diff --git a/med-web-app-front/src/components/pipelines/pipelines.component.js b/med-web-app-front/src/components/pipelines/pipelines.component.js
index 121705df..32ac3ecd 100644
--- a/med-web-app-front/src/components/pipelines/pipelines.component.js
+++ b/med-web-app-front/src/components/pipelines/pipelines.component.js
@@ -6,32 +6,46 @@ import PipelineJobService from "../../services/pipelinejob.service"
import AttachmentService from "../../services/attachment.service"
import {Button, Divider, FormControl, Grid, Paper, Typography, withStyles} from "@material-ui/core";
import {Link} from "react-router-dom";
+import ViewListIcon from '@material-ui/icons/ViewList';
+import FolderIcon from '@mui/icons-material/Folder';
+import ButtonDrawer from "../ButtonDrawer";
+import FileDownloadIcon from '@mui/icons-material/FileDownload';
+import SaveAltIcon from '@material-ui/icons/SaveAlt';
+import DataUsageIcon from '@material-ui/icons/DataUsage';
+import {Hidden} from "@material-ui/core";
const useStyles = theme => ({
+ listIcon: {
+ marginTop: theme.spacing(3),
+ },
paper: {
marginTop: theme.spacing(3),
//padding: theme.spacing(1),
//display: 'flex',
flexGrow: 1,
- [theme.breakpoints.down("xs")]: {
- width: "250px",
- marginLeft: "5%",
- },
- "@media (min-width: 424px)": {
- width: "80%",
- marginLeft: theme.spacing(5)
- }
+
},
paper2: {
- margin: theme.spacing(3),
+ marginTop: theme.spacing(3),
padding: theme.spacing(3),
},
mainGrid: {
display: 'flex',
- minWidth: 1000,
-
-
+ height: "calc(100vh - 80px)",
+ [theme.breakpoints.only("xs")]: {
+ gap: 10
+ },
+ [theme.breakpoints.only("sm")]: {
+ gap: 10
+ },
+ [theme.breakpoints.only("md")]: {
+ gap: 3
+ },
+
+ "@media (min-width: 1280px)": {
+ gap: 50
+ },
},
button: {
marginTop: theme.spacing(3),
@@ -72,75 +86,32 @@ const useStyles = theme => ({
},
title: {
padding: theme.spacing(3),
+ textAlign: "center"
},
content: {
//margin: theme.spacing(1),
+ display: 'inline-block',
+ wordWrap: 'break-word',
padding: theme.spacing(1),
marginLeft: 7,
},
- CenterContainer: {
- spacing: theme.spacing(3),
- justifyContent: "center",
- // paddingLeft : theme.spacing(4),
- "@media (max-width: 768px)": {
- justifyContent: "flex-start"
+ select: {
+ margin: theme.spacing(1),
+ display: 'inline-block',
+ wordWrap: 'break-word',
+ },
+ viewList: {
+ [theme.breakpoints.down("xs")]: {
+ width: '28px', // изменяем ширину иконки
+ height: '28px'
+ },
+ [theme.breakpoints.up("sm")]:{
+ width: '35px', // изменяем ширину иконки
+ height: '35px'
},
-
}
})
-function rightSideRender(classes) {
- if (window.innerWidth >= 958) {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {/*For admin board:
-
-
-
-
- For admin board:
- {this.state.currentUser !== null && this.state.currentUser.username === "admin" &&
- (
-
- )
-
- }*/}
-
-
- );
- }
-}
class PipelinesComponent extends Component {
@@ -156,6 +127,11 @@ class PipelinesComponent extends Component {
this.onFileDropdownSelected = this.onFileDropdownSelected.bind(this);
this.submitPipeline = this.submitPipeline.bind(this);
+ const links = ["/files/view", "/files/upload", "/pipelines/results", "/pipelines/save"];
+ const icons = [
,
,
,
,]
+ const titles = [ 'Мои файлы', 'Загрузить файл', "Результаты" , "Сохранить конфигурацию"]
+ const positions = ['right']
+ const icon =
this.state = {
currentUser: user,
pipelines: [],
@@ -163,7 +139,12 @@ class PipelinesComponent extends Component {
message: [],
selectedFile: null,
selectedPipeline: null,
- submitted: false
+ submitted: false,
+ links: links,
+ icons: icons,
+ titles: titles,
+ positions: positions,
+ icon: icon,
};
}
@@ -245,118 +226,102 @@ class PipelinesComponent extends Component {
const {classes} = this.props;
return (
-
-
-
-
-
- Автоматический анализ снимка
-
-
-
-