forked from pavol-brunclik-m2ms/fragalysis-frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update package.json - updated version number to 0.9.69 * - prelim changes * #557 Bug? Snapshot doesn't restore precise RHS tab * #571 [L] toggle not restored from snapshot for things on Selected Compounds tab * - implemented first phase of discourse integration * Squashed commit of the following: commit 431c372 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Mar 24 15:56:39 2021 +0100 - implemented first phase of discourse integration commit 103da7e Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Mar 11 10:50:30 2021 +0100 - prelim changes * - updated version number to 0.10.1 * Squashed commit of the following: commit 5761def Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Wed Feb 3 14:23:02 2021 +0100 Fixed layout and imports commit d9b5895 Merge: 717ad54 083cc6d Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Wed Feb 3 13:55:03 2021 +0100 Merge branch 'allfunctionality' into #487 commit 717ad54 Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Wed Feb 3 13:54:33 2021 +0100 Removed unnecessary parts commit 6c23110 Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Wed Feb 3 13:36:29 2021 +0100 Fixed undo commit 19f839c Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Mon Feb 1 15:31:13 2021 +0100 Fixed button history tracking commit bf7b8a8 Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Mon Feb 1 14:15:34 2021 +0100 Replaced throttle with debounce for nglView tracking commit 57b71e0 Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Mon Feb 1 12:58:06 2021 +0100 Clear history on project change commit 419c268 Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Mon Feb 1 12:10:50 2021 +0100 Separate orientation actions commit 272c265 Merge: f844087 bef6400 Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Mon Feb 1 10:34:26 2021 +0100 Merge branch 'allfunctionality' into #487 commit f844087 Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Thu Jan 21 13:52:19 2021 +0100 Ctreated temporary buttons commit 9b8a2ac Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Thu Jan 21 11:54:52 2021 +0100 Tidying up commit cb6c477 Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Thu Jan 21 11:25:23 2021 +0100 Change ngl view on undo/redo commit edfb571 Author: ag-m2ms <anton.gasperak@m2ms.sk> Date: Wed Jan 20 16:37:42 2021 +0100 Initial implementation * - implemented modal window for discourse errors * - updated version number to 0.10.2 * - slightly updated error description * - loading discourse links in synchronous manner to avoid net::ERR_INSUFFICIENT_RESOURCES * - updated version number to 0.10.3 * - implemented "lazy" handling of the Discourse * Squashed commit of the following: commit b9205dd Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Mar 29 15:13:32 2021 +0200 - implemented "lazy" handling of the Discourse * - updated version number to 0.10.4 * - hide link to project icon if no project is loaded * - updated version number to 0.10.5 * - updated error message * - used icon button instead of link in the target list because it behaved differently in test env from behavior in local env * - updated version number to 0.10.6 * - fixed issue when creating project from the preview and the first post for the first snapshot was not created * - updated version number to 0.10.7 * - visual improvements * - updated version number to 0.10.8 * - visual improvements * - updated version number to 0.10.9 * - fix (maybe) for that sometimes a discourse post was attempted before the project and/or snapshot were created * - updated version number to 0.10.10 * - fixed problem where snapshot post was attempted before project post was completed which caused that the snapshot post was never created * - updated version number to 0.10.11 * - fixed saving of the session actions * - updated version number to 0.10.12 * - checkpoint * - updated version number to 0.10.13 * #602 Snapshot tree and discourse posts * #602 Snapshot tree and discourse posts * - create discourse topic and post are disabled when creation process is ongoing - if discourse user doesn't exists the notice is displayed * - changed version number to 0.10.14 * - open discourse link in the new tab * - updated version number to 0.10.15 * - minor fixes * - updated version number to 0.10.16 * - fixed #609 * - updated version number to 0.10.17 Co-authored-by: Adriána Kohanová <adriana.kohanova@m2ms.sk> Co-authored-by: Adriána Kurillová <adriana.kurillova@m2ms.sk>
- Loading branch information
1 parent
56c0372
commit 8740211
Showing
42 changed files
with
2,903 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { Typography, Link, Grid } from '@material-ui/core'; | ||
import { getDiscourseURL } from '../../utils/discourse'; | ||
|
||
export const RegisterNotice = () => { | ||
return ( | ||
<Grid container direction="row" spacing={1}> | ||
<Grid item> | ||
<Typography variant="body1">Your Discourse account doesn't exist. You can register </Typography> | ||
</Grid> | ||
<Grid item> | ||
<Link href={`${getDiscourseURL()}`} target="_blank"> | ||
{' '} | ||
here | ||
</Link> | ||
</Grid> | ||
</Grid> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React, { memo } from 'react'; | ||
import Modal from '../common/Modal'; | ||
import { Grid, Typography, Button } from '@material-ui/core'; | ||
import { useDispatch } from 'react-redux'; | ||
import { setOpenDiscourseErrorModal } from '../../reducers/api/actions'; | ||
|
||
export const DiscourseErrorModal = memo(({ openModal }) => { | ||
const dispatch = useDispatch(); | ||
|
||
const closeModal = () => { | ||
dispatch(setOpenDiscourseErrorModal(false)); | ||
}; | ||
|
||
return ( | ||
<Modal | ||
open={openModal} | ||
onClose={() => { | ||
closeModal(); | ||
}} | ||
> | ||
<Grid container direction="column"> | ||
<Grid item> | ||
<Typography variant="h3">DISCOURSE ERROR!</Typography> | ||
</Grid> | ||
<Grid item> | ||
<Typography variant="body1"> | ||
Most likely there already is topic with same name as is this project name or your discourse user name | ||
doesn't match your fragalysis user name. Also please check if descriptions you provided are not just random | ||
letters because they also tend to dismissed by the Discourse server. | ||
</Typography> | ||
</Grid> | ||
</Grid> | ||
<Grid container justify="flex-end"> | ||
{' '} | ||
<Button | ||
color="primary" | ||
onClick={() => { | ||
closeModal(); | ||
}} | ||
> | ||
Close | ||
</Button> | ||
</Grid> | ||
</Modal> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.