@jbrowse/plugin-data-management 1.7.11 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AddConnectionWidget/components/AddConnectionWidget.js +115 -162
- package/dist/AddConnectionWidget/components/AddConnectionWidget.js.map +1 -0
- package/dist/AddConnectionWidget/components/ConfigureConnection.js +33 -32
- package/dist/AddConnectionWidget/components/ConfigureConnection.js.map +1 -0
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.js +48 -64
- package/dist/AddConnectionWidget/components/ConnectionTypeSelect.js.map +1 -0
- package/dist/AddConnectionWidget/index.js +10 -20
- package/dist/AddConnectionWidget/index.js.map +1 -0
- package/dist/AddConnectionWidget/model.js +7 -15
- package/dist/AddConnectionWidget/model.js.map +1 -0
- package/dist/AddTrackWidget/components/AddTrackWidget.js +206 -230
- package/dist/AddTrackWidget/components/AddTrackWidget.js.map +1 -0
- package/dist/AddTrackWidget/components/ConfirmTrack.js +268 -385
- package/dist/AddTrackWidget/components/ConfirmTrack.js.map +1 -0
- package/dist/AddTrackWidget/components/TrackSourceSelect.js +28 -55
- package/dist/AddTrackWidget/components/TrackSourceSelect.js.map +1 -0
- package/dist/AddTrackWidget/index.js +10 -20
- package/dist/AddTrackWidget/index.js.map +1 -0
- package/dist/AddTrackWidget/model.js +150 -174
- package/dist/AddTrackWidget/model.js.map +1 -0
- package/dist/AssemblyManager/AssemblyAddForm.js +162 -282
- package/dist/AssemblyManager/AssemblyAddForm.js.map +1 -0
- package/dist/AssemblyManager/AssemblyEditor.js +12 -23
- package/dist/AssemblyManager/AssemblyEditor.js.map +1 -0
- package/dist/AssemblyManager/AssemblyManager.js +102 -132
- package/dist/AssemblyManager/AssemblyManager.js.map +1 -0
- package/dist/AssemblyManager/AssemblyTable.d.ts +1 -1
- package/dist/AssemblyManager/AssemblyTable.js +60 -84
- package/dist/AssemblyManager/AssemblyTable.js.map +1 -0
- package/dist/AssemblyManager/index.js +8 -14
- package/dist/AssemblyManager/index.js.map +1 -0
- package/dist/HierarchicalTrackSelectorWidget/components/CloseConnectionDialog.js +49 -50
- package/dist/HierarchicalTrackSelectorWidget/components/CloseConnectionDialog.js.map +1 -0
- package/dist/HierarchicalTrackSelectorWidget/components/DeleteConnectionDialog.js +28 -44
- package/dist/HierarchicalTrackSelectorWidget/components/DeleteConnectionDialog.js.map +1 -0
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +1 -0
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +416 -639
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js.map +1 -0
- package/dist/HierarchicalTrackSelectorWidget/components/ManageConnectionsDialog.js +45 -74
- package/dist/HierarchicalTrackSelectorWidget/components/ManageConnectionsDialog.js.map +1 -0
- package/dist/HierarchicalTrackSelectorWidget/components/ToggleConnectionsDialog.js +57 -91
- package/dist/HierarchicalTrackSelectorWidget/components/ToggleConnectionsDialog.js.map +1 -0
- package/dist/HierarchicalTrackSelectorWidget/index.js +10 -20
- package/dist/HierarchicalTrackSelectorWidget/index.js.map +1 -0
- package/dist/HierarchicalTrackSelectorWidget/model.d.ts +3 -1
- package/dist/HierarchicalTrackSelectorWidget/model.js +247 -285
- package/dist/HierarchicalTrackSelectorWidget/model.js.map +1 -0
- package/dist/PluginStoreWidget/components/CustomPluginForm.js +140 -202
- package/dist/PluginStoreWidget/components/CustomPluginForm.js.map +1 -0
- package/dist/PluginStoreWidget/components/InstalledPlugin.js +112 -127
- package/dist/PluginStoreWidget/components/InstalledPlugin.js.map +1 -0
- package/dist/PluginStoreWidget/components/InstalledPluginsList.js +22 -45
- package/dist/PluginStoreWidget/components/InstalledPluginsList.js.map +1 -0
- package/dist/PluginStoreWidget/components/PluginCard.js +95 -110
- package/dist/PluginStoreWidget/components/PluginCard.js.map +1 -0
- package/dist/PluginStoreWidget/components/PluginStoreWidget.js +188 -227
- package/dist/PluginStoreWidget/components/PluginStoreWidget.js.map +1 -0
- package/dist/PluginStoreWidget/index.d.ts +0 -1
- package/dist/PluginStoreWidget/index.js +10 -28
- package/dist/PluginStoreWidget/index.js.map +1 -0
- package/dist/PluginStoreWidget/model.js +21 -26
- package/dist/PluginStoreWidget/model.js.map +1 -0
- package/dist/SetDefaultSession/SetDefaultSession.js +34 -58
- package/dist/SetDefaultSession/SetDefaultSession.js.map +1 -0
- package/dist/SetDefaultSession/index.js +8 -14
- package/dist/SetDefaultSession/index.js.map +1 -0
- package/dist/index.js +109 -147
- package/dist/index.js.map +1 -0
- package/dist/ucsc-trackhub/configSchema.js +18 -28
- package/dist/ucsc-trackhub/configSchema.js.map +1 -0
- package/dist/ucsc-trackhub/index.js +10 -22
- package/dist/ucsc-trackhub/index.js.map +1 -0
- package/dist/ucsc-trackhub/model.js +150 -128
- package/dist/ucsc-trackhub/model.js.map +1 -0
- package/dist/ucsc-trackhub/ucscAssemblies.js +3 -9
- package/dist/ucsc-trackhub/ucscAssemblies.js.map +1 -0
- package/dist/ucsc-trackhub/ucscTrackHub.js +458 -491
- package/dist/ucsc-trackhub/ucscTrackHub.js.map +1 -0
- package/esm/AddConnectionWidget/components/AddConnectionWidget.d.ts +9 -0
- package/esm/AddConnectionWidget/components/AddConnectionWidget.js +86 -0
- package/esm/AddConnectionWidget/components/AddConnectionWidget.js.map +1 -0
- package/esm/AddConnectionWidget/components/ConfigureConnection.d.ts +2 -0
- package/esm/AddConnectionWidget/components/ConfigureConnection.js +11 -0
- package/esm/AddConnectionWidget/components/ConfigureConnection.js.map +1 -0
- package/esm/AddConnectionWidget/components/ConnectionTypeSelect.d.ts +8 -0
- package/esm/AddConnectionWidget/components/ConnectionTypeSelect.js +24 -0
- package/esm/AddConnectionWidget/components/ConnectionTypeSelect.js.map +1 -0
- package/esm/AddConnectionWidget/index.d.ts +2 -0
- package/esm/AddConnectionWidget/index.js +4 -0
- package/esm/AddConnectionWidget/index.js.map +1 -0
- package/esm/AddConnectionWidget/model.d.ts +5 -0
- package/esm/AddConnectionWidget/model.js +7 -0
- package/esm/AddConnectionWidget/model.js.map +1 -0
- package/esm/AddTrackWidget/components/AddTrackWidget.d.ts +7 -0
- package/esm/AddTrackWidget/components/AddTrackWidget.js +139 -0
- package/esm/AddTrackWidget/components/AddTrackWidget.js.map +1 -0
- package/esm/AddTrackWidget/components/ConfirmTrack.d.ts +7 -0
- package/esm/AddTrackWidget/components/ConfirmTrack.js +247 -0
- package/esm/AddTrackWidget/components/ConfirmTrack.js.map +1 -0
- package/esm/AddTrackWidget/components/TrackSourceSelect.d.ts +7 -0
- package/esm/AddTrackWidget/components/TrackSourceSelect.js +27 -0
- package/esm/AddTrackWidget/components/TrackSourceSelect.js.map +1 -0
- package/esm/AddTrackWidget/index.d.ts +2 -0
- package/esm/AddTrackWidget/index.js +4 -0
- package/esm/AddTrackWidget/index.js.map +1 -0
- package/esm/AddTrackWidget/model.d.ts +51 -0
- package/esm/AddTrackWidget/model.js +154 -0
- package/esm/AddTrackWidget/model.js.map +1 -0
- package/esm/AssemblyManager/AssemblyAddForm.d.ts +6 -0
- package/esm/AssemblyManager/AssemblyAddForm.js +132 -0
- package/esm/AssemblyManager/AssemblyAddForm.js.map +1 -0
- package/esm/AssemblyManager/AssemblyEditor.d.ts +5 -0
- package/esm/AssemblyManager/AssemblyEditor.js +8 -0
- package/esm/AssemblyManager/AssemblyEditor.js.map +1 -0
- package/esm/AssemblyManager/AssemblyManager.d.ts +6 -0
- package/esm/AssemblyManager/AssemblyManager.js +69 -0
- package/esm/AssemblyManager/AssemblyManager.js.map +1 -0
- package/esm/AssemblyManager/AssemblyTable.d.ts +13 -0
- package/esm/AssemblyManager/AssemblyTable.js +62 -0
- package/esm/AssemblyManager/AssemblyTable.js.map +1 -0
- package/esm/AssemblyManager/index.d.ts +1 -0
- package/esm/AssemblyManager/index.js +2 -0
- package/esm/AssemblyManager/index.js.map +1 -0
- package/esm/HierarchicalTrackSelectorWidget/components/CloseConnectionDialog.d.ts +13 -0
- package/esm/HierarchicalTrackSelectorWidget/components/CloseConnectionDialog.js +26 -0
- package/esm/HierarchicalTrackSelectorWidget/components/CloseConnectionDialog.js.map +1 -0
- package/esm/HierarchicalTrackSelectorWidget/components/DeleteConnectionDialog.d.ts +13 -0
- package/esm/HierarchicalTrackSelectorWidget/components/DeleteConnectionDialog.js +24 -0
- package/esm/HierarchicalTrackSelectorWidget/components/DeleteConnectionDialog.js.map +1 -0
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.d.ts +11 -0
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js +326 -0
- package/esm/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.js.map +1 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ManageConnectionsDialog.d.ts +10 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ManageConnectionsDialog.js +45 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ManageConnectionsDialog.js.map +1 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ToggleConnectionsDialog.d.ts +11 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ToggleConnectionsDialog.js +57 -0
- package/esm/HierarchicalTrackSelectorWidget/components/ToggleConnectionsDialog.js.map +1 -0
- package/esm/HierarchicalTrackSelectorWidget/index.d.ts +2 -0
- package/esm/HierarchicalTrackSelectorWidget/index.js +4 -0
- package/esm/HierarchicalTrackSelectorWidget/index.js.map +1 -0
- package/esm/HierarchicalTrackSelectorWidget/model.d.ts +61 -0
- package/esm/HierarchicalTrackSelectorWidget/model.js +200 -0
- package/esm/HierarchicalTrackSelectorWidget/model.js.map +1 -0
- package/esm/PluginStoreWidget/components/CustomPluginForm.d.ts +9 -0
- package/esm/PluginStoreWidget/components/CustomPluginForm.js +109 -0
- package/esm/PluginStoreWidget/components/CustomPluginForm.js.map +1 -0
- package/esm/PluginStoreWidget/components/InstalledPlugin.d.ts +11 -0
- package/esm/PluginStoreWidget/components/InstalledPlugin.js +77 -0
- package/esm/PluginStoreWidget/components/InstalledPlugin.js.map +1 -0
- package/esm/PluginStoreWidget/components/InstalledPluginsList.d.ts +9 -0
- package/esm/PluginStoreWidget/components/InstalledPluginsList.js +16 -0
- package/esm/PluginStoreWidget/components/InstalledPluginsList.js.map +1 -0
- package/esm/PluginStoreWidget/components/PluginCard.d.ts +10 -0
- package/esm/PluginStoreWidget/components/PluginCard.js +61 -0
- package/esm/PluginStoreWidget/components/PluginCard.js.map +1 -0
- package/esm/PluginStoreWidget/components/PluginStoreWidget.d.ts +7 -0
- package/esm/PluginStoreWidget/components/PluginStoreWidget.js +106 -0
- package/esm/PluginStoreWidget/components/PluginStoreWidget.js.map +1 -0
- package/esm/PluginStoreWidget/index.d.ts +2 -0
- package/esm/PluginStoreWidget/index.js +4 -0
- package/esm/PluginStoreWidget/index.js.map +1 -0
- package/esm/PluginStoreWidget/model.d.ts +13 -0
- package/esm/PluginStoreWidget/model.js +20 -0
- package/esm/PluginStoreWidget/model.js.map +1 -0
- package/esm/SetDefaultSession/SetDefaultSession.d.ts +6 -0
- package/esm/SetDefaultSession/SetDefaultSession.js +34 -0
- package/esm/SetDefaultSession/SetDefaultSession.js.map +1 -0
- package/esm/SetDefaultSession/index.d.ts +1 -0
- package/esm/SetDefaultSession/index.js +2 -0
- package/esm/SetDefaultSession/index.js.map +1 -0
- package/esm/index.d.ts +27 -0
- package/esm/index.js +70 -0
- package/esm/index.js.map +1 -0
- package/esm/ucsc-trackhub/configSchema.d.ts +2 -0
- package/esm/ucsc-trackhub/configSchema.js +18 -0
- package/esm/ucsc-trackhub/configSchema.js.map +1 -0
- package/esm/ucsc-trackhub/index.d.ts +2 -0
- package/esm/ucsc-trackhub/index.js +3 -0
- package/esm/ucsc-trackhub/index.js.map +1 -0
- package/esm/ucsc-trackhub/model.d.ts +15 -0
- package/esm/ucsc-trackhub/model.js +82 -0
- package/esm/ucsc-trackhub/model.js.map +1 -0
- package/esm/ucsc-trackhub/ucscAssemblies.d.ts +2 -0
- package/esm/ucsc-trackhub/ucscAssemblies.js +201 -0
- package/esm/ucsc-trackhub/ucscAssemblies.js.map +1 -0
- package/esm/ucsc-trackhub/ucscTrackHub.d.ts +6 -0
- package/esm/ucsc-trackhub/ucscTrackHub.js +348 -0
- package/esm/ucsc-trackhub/ucscTrackHub.js.map +1 -0
- package/package.json +19 -11
- package/src/AddConnectionWidget/components/AddConnectionWidget.js +14 -10
- package/src/AddConnectionWidget/components/ConnectionTypeSelect.tsx +2 -4
- package/src/AddConnectionWidget/components/__snapshots__/AddConnectionWidget.test.js.snap +63 -67
- package/src/AddTrackWidget/components/AddTrackWidget.test.js +4 -4
- package/src/AddTrackWidget/components/AddTrackWidget.tsx +5 -5
- package/src/AddTrackWidget/components/ConfirmTrack.tsx +22 -22
- package/src/AddTrackWidget/components/TrackSourceSelect.tsx +9 -5
- package/src/AddTrackWidget/components/__snapshots__/AddTrackWidget.test.js.snap +76 -95
- package/src/AssemblyManager/AssemblyAddForm.tsx +5 -11
- package/src/AssemblyManager/AssemblyManager.tsx +8 -8
- package/src/AssemblyManager/AssemblyTable.tsx +10 -10
- package/src/HierarchicalTrackSelectorWidget/components/CloseConnectionDialog.tsx +1 -1
- package/src/HierarchicalTrackSelectorWidget/components/DeleteConnectionDialog.tsx +1 -1
- package/src/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.test.js +1 -1
- package/src/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.tsx +15 -13
- package/src/HierarchicalTrackSelectorWidget/components/ManageConnectionsDialog.tsx +6 -6
- package/src/HierarchicalTrackSelectorWidget/components/ToggleConnectionsDialog.tsx +7 -7
- package/src/HierarchicalTrackSelectorWidget/components/__snapshots__/HierarchicalTrackSelector.test.js.snap +122 -115
- package/src/PluginStoreWidget/components/CustomPluginForm.tsx +11 -14
- package/src/PluginStoreWidget/components/InstalledPlugin.tsx +9 -8
- package/src/PluginStoreWidget/components/InstalledPluginsList.tsx +1 -1
- package/src/PluginStoreWidget/components/PluginCard.tsx +10 -11
- package/src/PluginStoreWidget/components/PluginStoreWidget.tsx +9 -9
- package/src/PluginStoreWidget/components/__snapshots__/PluginStoreWidget.test.js.snap +267 -217
- package/src/PluginStoreWidget/index.js +0 -1
- package/src/SetDefaultSession/SetDefaultSession.tsx +1 -1
- package/dist/AddConnectionWidget/components/AddConnectionWidget.test.js +0 -279
- package/dist/AddTrackWidget/components/AddTrackWidget.test.js +0 -218
- package/dist/AddTrackWidget/index.test.js +0 -292
- package/dist/AssemblyManager/AssemblyManager.test.js +0 -113
- package/dist/HierarchicalTrackSelectorWidget/components/HierarchicalTrackSelector.test.js +0 -191
- package/dist/HierarchicalTrackSelectorWidget/model.test.js +0 -28
- package/dist/PluginStoreWidget/components/PluginStoreWidget.test.js +0 -201
- package/dist/PluginStoreWidget/model.test.js +0 -17
- package/dist/SetDefaultSession/SetDefaultSession.test.js +0 -75
- package/dist/index.test.js +0 -56
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import {
|
|
3
|
+
Button,
|
|
3
4
|
Dialog,
|
|
4
5
|
DialogTitle,
|
|
5
6
|
DialogContent,
|
|
6
7
|
DialogActions,
|
|
7
|
-
Button,
|
|
8
8
|
IconButton,
|
|
9
9
|
Tooltip,
|
|
10
10
|
Typography,
|
|
11
|
-
|
|
12
|
-
} from '
|
|
13
|
-
import CloseIcon from '@
|
|
11
|
+
} from '@mui/material'
|
|
12
|
+
import { makeStyles } from 'tss-react/mui'
|
|
13
|
+
import CloseIcon from '@mui/icons-material/Close'
|
|
14
14
|
import { observer } from 'mobx-react'
|
|
15
15
|
import {
|
|
16
16
|
AnyConfigurationModel,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from '@jbrowse/core/configuration'
|
|
19
19
|
import { AbstractSessionModel } from '@jbrowse/core/util'
|
|
20
20
|
|
|
21
|
-
const useStyles = makeStyles(theme => ({
|
|
21
|
+
const useStyles = makeStyles()(theme => ({
|
|
22
22
|
closeButton: {
|
|
23
23
|
position: 'absolute',
|
|
24
24
|
right: theme.spacing(1),
|
|
@@ -41,7 +41,7 @@ function ManageConnectionsDlg({
|
|
|
41
41
|
session: AbstractSessionModel
|
|
42
42
|
breakConnection: (conf: AnyConfigurationModel, arg: boolean) => void
|
|
43
43
|
}) {
|
|
44
|
-
const classes = useStyles()
|
|
44
|
+
const { classes } = useStyles()
|
|
45
45
|
const { adminMode, connections, sessionConnections } = session
|
|
46
46
|
return (
|
|
47
47
|
<Dialog open onClose={handleClose} maxWidth="lg">
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import {
|
|
3
|
+
Button,
|
|
4
|
+
Checkbox,
|
|
3
5
|
Dialog,
|
|
4
6
|
DialogTitle,
|
|
5
7
|
DialogContent,
|
|
6
8
|
DialogActions,
|
|
7
|
-
Button,
|
|
8
9
|
FormControlLabel,
|
|
9
|
-
Checkbox,
|
|
10
10
|
IconButton,
|
|
11
11
|
Typography,
|
|
12
|
-
|
|
13
|
-
} from '
|
|
14
|
-
import CloseIcon from '@
|
|
12
|
+
} from '@mui/material'
|
|
13
|
+
import { makeStyles } from 'tss-react/mui'
|
|
14
|
+
import CloseIcon from '@mui/icons-material/Close'
|
|
15
15
|
import { observer } from 'mobx-react'
|
|
16
16
|
import {
|
|
17
17
|
AnyConfigurationModel,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from '@jbrowse/core/configuration'
|
|
20
20
|
import { AbstractSessionModel } from '@jbrowse/core/util'
|
|
21
21
|
|
|
22
|
-
const useStyles = makeStyles(theme => ({
|
|
22
|
+
const useStyles = makeStyles()(theme => ({
|
|
23
23
|
closeButton: {
|
|
24
24
|
position: 'absolute',
|
|
25
25
|
right: theme.spacing(1),
|
|
@@ -44,7 +44,7 @@ function ToggleConnectionDialog({
|
|
|
44
44
|
assemblyName: string
|
|
45
45
|
breakConnection: (arg: AnyConfigurationModel) => void
|
|
46
46
|
}) {
|
|
47
|
-
const classes = useStyles()
|
|
47
|
+
const { classes } = useStyles()
|
|
48
48
|
const { connections, connectionInstances: instances = [] } = session
|
|
49
49
|
const assemblySpecificConnections = connections.filter(c => {
|
|
50
50
|
const configAssemblyNames = readConfObject(c, 'assemblyNames')
|
|
@@ -2,26 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`HierarchicalTrackSelector widget renders nothing with no assembly 1`] = `
|
|
4
4
|
<button
|
|
5
|
-
class="MuiButtonBase-root MuiFab-root
|
|
5
|
+
class="MuiButtonBase-root MuiFab-root MuiFab-circular MuiFab-sizeLarge MuiFab-secondary tss-jdumxy-fab css-kznubb-MuiButtonBase-root-MuiFab-root"
|
|
6
6
|
tabindex="0"
|
|
7
7
|
type="button"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
9
|
+
<svg
|
|
10
|
+
aria-hidden="true"
|
|
11
|
+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
|
12
|
+
data-testid="AddIcon"
|
|
13
|
+
focusable="false"
|
|
14
|
+
viewBox="0 0 24 24"
|
|
11
15
|
>
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
viewBox="0 0 24 24"
|
|
17
|
-
>
|
|
18
|
-
<path
|
|
19
|
-
d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
|
|
20
|
-
/>
|
|
21
|
-
</svg>
|
|
22
|
-
</span>
|
|
16
|
+
<path
|
|
17
|
+
d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
23
20
|
<span
|
|
24
|
-
class="MuiTouchRipple-root"
|
|
21
|
+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
25
22
|
/>
|
|
26
23
|
</button>
|
|
27
24
|
`;
|
|
@@ -34,96 +31,101 @@ exports[`HierarchicalTrackSelector widget renders with a couple of categorized t
|
|
|
34
31
|
style="display: flex;"
|
|
35
32
|
>
|
|
36
33
|
<button
|
|
37
|
-
class="MuiButtonBase-root MuiIconButton-root
|
|
34
|
+
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium tss-1imaff4-menuIcon css-78trlr-MuiButtonBase-root-MuiIconButton-root"
|
|
38
35
|
tabindex="0"
|
|
39
36
|
type="button"
|
|
40
37
|
>
|
|
41
|
-
<
|
|
42
|
-
|
|
38
|
+
<svg
|
|
39
|
+
aria-hidden="true"
|
|
40
|
+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
|
41
|
+
data-testid="MenuIcon"
|
|
42
|
+
focusable="false"
|
|
43
|
+
viewBox="0 0 24 24"
|
|
43
44
|
>
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
viewBox="0 0 24 24"
|
|
49
|
-
>
|
|
50
|
-
<path
|
|
51
|
-
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
52
|
-
/>
|
|
53
|
-
</svg>
|
|
54
|
-
</span>
|
|
45
|
+
<path
|
|
46
|
+
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
47
|
+
/>
|
|
48
|
+
</svg>
|
|
55
49
|
<span
|
|
56
|
-
class="MuiTouchRipple-root"
|
|
50
|
+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
57
51
|
/>
|
|
58
52
|
</button>
|
|
59
53
|
<button
|
|
60
|
-
class="MuiButtonBase-root MuiIconButton-root
|
|
54
|
+
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium tss-1imaff4-menuIcon css-78trlr-MuiButtonBase-root-MuiIconButton-root"
|
|
61
55
|
tabindex="0"
|
|
62
56
|
type="button"
|
|
63
57
|
>
|
|
64
|
-
<
|
|
65
|
-
|
|
58
|
+
<svg
|
|
59
|
+
aria-hidden="true"
|
|
60
|
+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
|
61
|
+
focusable="false"
|
|
62
|
+
viewBox="0 0 24 24"
|
|
66
63
|
>
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
viewBox="0 0 24 24"
|
|
72
|
-
>
|
|
73
|
-
<path
|
|
74
|
-
d="M20 5V4c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1h-1v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4S5 4.79 5 7v7H4c-.55 0-1 .45-1 1v4h1v1c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-1h1v-4c0-.55-.45-1-1-1H7V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5h-1z"
|
|
75
|
-
/>
|
|
76
|
-
</svg>
|
|
77
|
-
</span>
|
|
64
|
+
<path
|
|
65
|
+
d="M20 5V4c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1h-1v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4S5 4.79 5 7v7H4c-.55 0-1 .45-1 1v4h1v1c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-1h1v-4c0-.55-.45-1-1-1H7V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5h-1z"
|
|
66
|
+
/>
|
|
67
|
+
</svg>
|
|
78
68
|
<span
|
|
79
|
-
class="MuiTouchRipple-root"
|
|
69
|
+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
80
70
|
/>
|
|
81
71
|
</button>
|
|
82
72
|
<div
|
|
83
|
-
class="MuiFormControl-root MuiTextField-root
|
|
73
|
+
class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root tss-11q958z-searchBox css-wb57ya-MuiFormControl-root-MuiTextField-root"
|
|
84
74
|
>
|
|
85
75
|
<label
|
|
86
|
-
class="
|
|
76
|
+
class="MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-root MuiFormLabel-colorPrimary css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root"
|
|
87
77
|
data-shrink="false"
|
|
78
|
+
for="mui-5"
|
|
79
|
+
id="mui-5-label"
|
|
88
80
|
>
|
|
89
81
|
Filter tracks
|
|
90
82
|
</label>
|
|
91
83
|
<div
|
|
92
|
-
class="
|
|
84
|
+
class="MuiOutlinedInput-root MuiInputBase-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-adornedEnd css-154xyx0-MuiInputBase-root-MuiOutlinedInput-root"
|
|
93
85
|
>
|
|
94
86
|
<input
|
|
95
87
|
aria-invalid="false"
|
|
96
|
-
class="
|
|
88
|
+
class="MuiOutlinedInput-input MuiInputBase-input MuiInputBase-inputAdornedEnd css-nxo287-MuiInputBase-input-MuiOutlinedInput-input"
|
|
89
|
+
id="mui-5"
|
|
97
90
|
type="text"
|
|
98
91
|
value=""
|
|
99
92
|
/>
|
|
100
93
|
<div
|
|
101
|
-
class="MuiInputAdornment-root MuiInputAdornment-positionEnd"
|
|
94
|
+
class="MuiInputAdornment-root MuiInputAdornment-positionEnd MuiInputAdornment-outlined MuiInputAdornment-sizeMedium css-1laqsz7-MuiInputAdornment-root"
|
|
102
95
|
>
|
|
103
96
|
<button
|
|
104
|
-
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorSecondary"
|
|
97
|
+
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorSecondary MuiIconButton-sizeMedium css-1gws2xf-MuiButtonBase-root-MuiIconButton-root"
|
|
105
98
|
tabindex="0"
|
|
106
99
|
type="button"
|
|
107
100
|
>
|
|
108
|
-
<
|
|
109
|
-
|
|
101
|
+
<svg
|
|
102
|
+
aria-hidden="true"
|
|
103
|
+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
|
104
|
+
data-testid="ClearIcon"
|
|
105
|
+
focusable="false"
|
|
106
|
+
viewBox="0 0 24 24"
|
|
110
107
|
>
|
|
111
|
-
<
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
viewBox="0 0 24 24"
|
|
116
|
-
>
|
|
117
|
-
<path
|
|
118
|
-
d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
119
|
-
/>
|
|
120
|
-
</svg>
|
|
121
|
-
</span>
|
|
108
|
+
<path
|
|
109
|
+
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
110
|
+
/>
|
|
111
|
+
</svg>
|
|
122
112
|
<span
|
|
123
|
-
class="MuiTouchRipple-root"
|
|
113
|
+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
124
114
|
/>
|
|
125
115
|
</button>
|
|
126
116
|
</div>
|
|
117
|
+
<fieldset
|
|
118
|
+
aria-hidden="true"
|
|
119
|
+
class="MuiOutlinedInput-notchedOutline css-1d3z3hw-MuiOutlinedInput-notchedOutline"
|
|
120
|
+
>
|
|
121
|
+
<legend
|
|
122
|
+
class="css-1ftyaf0"
|
|
123
|
+
>
|
|
124
|
+
<span>
|
|
125
|
+
Filter tracks
|
|
126
|
+
</span>
|
|
127
|
+
</legend>
|
|
128
|
+
</fieldset>
|
|
127
129
|
</div>
|
|
128
130
|
</div>
|
|
129
131
|
</div>
|
|
@@ -138,96 +140,101 @@ exports[`HierarchicalTrackSelector widget renders with a couple of uncategorized
|
|
|
138
140
|
style="display: flex;"
|
|
139
141
|
>
|
|
140
142
|
<button
|
|
141
|
-
class="MuiButtonBase-root MuiIconButton-root
|
|
143
|
+
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium tss-1imaff4-menuIcon css-78trlr-MuiButtonBase-root-MuiIconButton-root"
|
|
142
144
|
tabindex="0"
|
|
143
145
|
type="button"
|
|
144
146
|
>
|
|
145
|
-
<
|
|
146
|
-
|
|
147
|
+
<svg
|
|
148
|
+
aria-hidden="true"
|
|
149
|
+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
|
150
|
+
data-testid="MenuIcon"
|
|
151
|
+
focusable="false"
|
|
152
|
+
viewBox="0 0 24 24"
|
|
147
153
|
>
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
viewBox="0 0 24 24"
|
|
153
|
-
>
|
|
154
|
-
<path
|
|
155
|
-
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
156
|
-
/>
|
|
157
|
-
</svg>
|
|
158
|
-
</span>
|
|
154
|
+
<path
|
|
155
|
+
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
|
156
|
+
/>
|
|
157
|
+
</svg>
|
|
159
158
|
<span
|
|
160
|
-
class="MuiTouchRipple-root"
|
|
159
|
+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
161
160
|
/>
|
|
162
161
|
</button>
|
|
163
162
|
<button
|
|
164
|
-
class="MuiButtonBase-root MuiIconButton-root
|
|
163
|
+
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium tss-1imaff4-menuIcon css-78trlr-MuiButtonBase-root-MuiIconButton-root"
|
|
165
164
|
tabindex="0"
|
|
166
165
|
type="button"
|
|
167
166
|
>
|
|
168
|
-
<
|
|
169
|
-
|
|
167
|
+
<svg
|
|
168
|
+
aria-hidden="true"
|
|
169
|
+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
|
170
|
+
focusable="false"
|
|
171
|
+
viewBox="0 0 24 24"
|
|
170
172
|
>
|
|
171
|
-
<
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
viewBox="0 0 24 24"
|
|
176
|
-
>
|
|
177
|
-
<path
|
|
178
|
-
d="M20 5V4c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1h-1v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4S5 4.79 5 7v7H4c-.55 0-1 .45-1 1v4h1v1c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-1h1v-4c0-.55-.45-1-1-1H7V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5h-1z"
|
|
179
|
-
/>
|
|
180
|
-
</svg>
|
|
181
|
-
</span>
|
|
173
|
+
<path
|
|
174
|
+
d="M20 5V4c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1h-1v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4S5 4.79 5 7v7H4c-.55 0-1 .45-1 1v4h1v1c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-1h1v-4c0-.55-.45-1-1-1H7V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5h-1z"
|
|
175
|
+
/>
|
|
176
|
+
</svg>
|
|
182
177
|
<span
|
|
183
|
-
class="MuiTouchRipple-root"
|
|
178
|
+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
184
179
|
/>
|
|
185
180
|
</button>
|
|
186
181
|
<div
|
|
187
|
-
class="MuiFormControl-root MuiTextField-root
|
|
182
|
+
class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root tss-11q958z-searchBox css-wb57ya-MuiFormControl-root-MuiTextField-root"
|
|
188
183
|
>
|
|
189
184
|
<label
|
|
190
|
-
class="
|
|
185
|
+
class="MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-root MuiFormLabel-colorPrimary css-14s5rfu-MuiFormLabel-root-MuiInputLabel-root"
|
|
191
186
|
data-shrink="false"
|
|
187
|
+
for="mui-1"
|
|
188
|
+
id="mui-1-label"
|
|
192
189
|
>
|
|
193
190
|
Filter tracks
|
|
194
191
|
</label>
|
|
195
192
|
<div
|
|
196
|
-
class="
|
|
193
|
+
class="MuiOutlinedInput-root MuiInputBase-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-adornedEnd css-154xyx0-MuiInputBase-root-MuiOutlinedInput-root"
|
|
197
194
|
>
|
|
198
195
|
<input
|
|
199
196
|
aria-invalid="false"
|
|
200
|
-
class="
|
|
197
|
+
class="MuiOutlinedInput-input MuiInputBase-input MuiInputBase-inputAdornedEnd css-nxo287-MuiInputBase-input-MuiOutlinedInput-input"
|
|
198
|
+
id="mui-1"
|
|
201
199
|
type="text"
|
|
202
200
|
value=""
|
|
203
201
|
/>
|
|
204
202
|
<div
|
|
205
|
-
class="MuiInputAdornment-root MuiInputAdornment-positionEnd"
|
|
203
|
+
class="MuiInputAdornment-root MuiInputAdornment-positionEnd MuiInputAdornment-outlined MuiInputAdornment-sizeMedium css-1laqsz7-MuiInputAdornment-root"
|
|
206
204
|
>
|
|
207
205
|
<button
|
|
208
|
-
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorSecondary"
|
|
206
|
+
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorSecondary MuiIconButton-sizeMedium css-1gws2xf-MuiButtonBase-root-MuiIconButton-root"
|
|
209
207
|
tabindex="0"
|
|
210
208
|
type="button"
|
|
211
209
|
>
|
|
212
|
-
<
|
|
213
|
-
|
|
210
|
+
<svg
|
|
211
|
+
aria-hidden="true"
|
|
212
|
+
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
|
213
|
+
data-testid="ClearIcon"
|
|
214
|
+
focusable="false"
|
|
215
|
+
viewBox="0 0 24 24"
|
|
214
216
|
>
|
|
215
|
-
<
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
viewBox="0 0 24 24"
|
|
220
|
-
>
|
|
221
|
-
<path
|
|
222
|
-
d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
223
|
-
/>
|
|
224
|
-
</svg>
|
|
225
|
-
</span>
|
|
217
|
+
<path
|
|
218
|
+
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
219
|
+
/>
|
|
220
|
+
</svg>
|
|
226
221
|
<span
|
|
227
|
-
class="MuiTouchRipple-root"
|
|
222
|
+
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
|
|
228
223
|
/>
|
|
229
224
|
</button>
|
|
230
225
|
</div>
|
|
226
|
+
<fieldset
|
|
227
|
+
aria-hidden="true"
|
|
228
|
+
class="MuiOutlinedInput-notchedOutline css-1d3z3hw-MuiOutlinedInput-notchedOutline"
|
|
229
|
+
>
|
|
230
|
+
<legend
|
|
231
|
+
class="css-1ftyaf0"
|
|
232
|
+
>
|
|
233
|
+
<span>
|
|
234
|
+
Filter tracks
|
|
235
|
+
</span>
|
|
236
|
+
</legend>
|
|
237
|
+
</fieldset>
|
|
231
238
|
</div>
|
|
232
239
|
</div>
|
|
233
240
|
</div>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
2
|
import { observer } from 'mobx-react'
|
|
3
3
|
import { getRoot } from 'mobx-state-tree'
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import { PluginDefinition } from '@jbrowse/core/PluginLoader'
|
|
6
5
|
import {
|
|
7
6
|
Button,
|
|
8
7
|
Collapse,
|
|
@@ -12,20 +11,18 @@ import {
|
|
|
12
11
|
DialogContent,
|
|
13
12
|
DialogContentText,
|
|
14
13
|
TextField,
|
|
15
|
-
|
|
16
|
-
} from '
|
|
14
|
+
} from '@mui/material'
|
|
15
|
+
import { makeStyles } from 'tss-react/mui'
|
|
17
16
|
|
|
18
17
|
// icons
|
|
19
|
-
import IconButton from '@material
|
|
20
|
-
import CloseIcon from '@
|
|
21
|
-
import ExpandMoreIcon from '@
|
|
22
|
-
|
|
23
|
-
import { PluginDefinition } from '@jbrowse/core/PluginLoader'
|
|
18
|
+
import IconButton from '@mui/material/IconButton'
|
|
19
|
+
import CloseIcon from '@mui/icons-material/Close'
|
|
20
|
+
import ExpandMoreIcon from '@mui/icons-material/ExpandMore'
|
|
24
21
|
|
|
25
22
|
// locals
|
|
26
23
|
import { PluginStoreModel } from '../model'
|
|
27
24
|
|
|
28
|
-
const useStyles = makeStyles(theme => ({
|
|
25
|
+
const useStyles = makeStyles()(theme => ({
|
|
29
26
|
closeButton: {
|
|
30
27
|
position: 'absolute',
|
|
31
28
|
right: theme.spacing(1),
|
|
@@ -56,7 +53,7 @@ function CustomPluginForm({
|
|
|
56
53
|
onClose(): void
|
|
57
54
|
model: PluginStoreModel
|
|
58
55
|
}) {
|
|
59
|
-
const classes = useStyles()
|
|
56
|
+
const { classes, cx } = useStyles()
|
|
60
57
|
const [umdPluginName, setUMDPluginName] = useState('')
|
|
61
58
|
const [umdPluginUrl, setUMDPluginUrl] = useState('')
|
|
62
59
|
const [esmPluginUrl, setESMPluginUrl] = useState('')
|
|
@@ -83,8 +80,8 @@ function CustomPluginForm({
|
|
|
83
80
|
setAdvancedOptionsOpen(!advancedOptionsOpen)
|
|
84
81
|
}
|
|
85
82
|
|
|
86
|
-
|
|
87
|
-
const { jbrowse } =
|
|
83
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
84
|
+
const { jbrowse } = getRoot<any>(model)
|
|
88
85
|
|
|
89
86
|
const ready = Boolean(
|
|
90
87
|
(umdPluginName && umdPluginUrl) || esmPluginUrl || cjsPluginUrl,
|
|
@@ -152,7 +149,7 @@ function CustomPluginForm({
|
|
|
152
149
|
/>
|
|
153
150
|
<DialogContentText onClick={handleOpenAdvancedOptions}>
|
|
154
151
|
<IconButton
|
|
155
|
-
className={
|
|
152
|
+
className={cx(classes.expand, {
|
|
156
153
|
[classes.expandOpen]: advancedOptionsOpen,
|
|
157
154
|
})}
|
|
158
155
|
aria-expanded={advancedOptionsOpen}
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
ListItem,
|
|
12
12
|
Tooltip,
|
|
13
13
|
Typography,
|
|
14
|
-
|
|
15
|
-
} from '
|
|
14
|
+
} from '@mui/material'
|
|
15
|
+
import { makeStyles } from 'tss-react/mui'
|
|
16
16
|
|
|
17
|
-
import CloseIcon from '@
|
|
18
|
-
import LockIcon from '@
|
|
17
|
+
import CloseIcon from '@mui/icons-material/Close'
|
|
18
|
+
import LockIcon from '@mui/icons-material/Lock'
|
|
19
19
|
|
|
20
20
|
import PluginManager from '@jbrowse/core/PluginManager'
|
|
21
21
|
import { getSession } from '@jbrowse/core/util'
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from '@jbrowse/core/util/types'
|
|
26
26
|
import { PluginStoreModel } from '../model'
|
|
27
27
|
|
|
28
|
-
const useStyles = makeStyles(() => ({
|
|
28
|
+
const useStyles = makeStyles()(() => ({
|
|
29
29
|
closeDialog: {
|
|
30
30
|
position: 'absolute',
|
|
31
31
|
right: 0,
|
|
@@ -40,7 +40,7 @@ const useStyles = makeStyles(() => ({
|
|
|
40
40
|
}))
|
|
41
41
|
|
|
42
42
|
function LockedPlugin() {
|
|
43
|
-
const classes = useStyles()
|
|
43
|
+
const { classes } = useStyles()
|
|
44
44
|
return (
|
|
45
45
|
<Tooltip
|
|
46
46
|
className={classes.lockedPluginTooltip}
|
|
@@ -58,7 +58,7 @@ function PluginDialog({
|
|
|
58
58
|
plugin: string
|
|
59
59
|
onClose: (s?: string) => void
|
|
60
60
|
}) {
|
|
61
|
-
const classes = useStyles()
|
|
61
|
+
const { classes } = useStyles()
|
|
62
62
|
return (
|
|
63
63
|
<Dialog open onClose={() => onClose()}>
|
|
64
64
|
<DialogTitle>
|
|
@@ -123,7 +123,8 @@ function InstalledPlugin({
|
|
|
123
123
|
p => pluginManager.pluginMetadata[plugin.name].url === p.url,
|
|
124
124
|
)
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
127
|
+
const rootModel = getParent<any>(model, 3)
|
|
127
128
|
const { jbrowse, adminMode } = rootModel
|
|
128
129
|
|
|
129
130
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { observer } from 'mobx-react'
|
|
3
|
-
import { List, Typography } from '@material
|
|
3
|
+
import { List, Typography } from '@mui/material'
|
|
4
4
|
import PluginManager from '@jbrowse/core/PluginManager'
|
|
5
5
|
import { PluginStoreModel } from '../model'
|
|
6
6
|
import InstalledPlugin from './InstalledPlugin'
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
Button,
|
|
15
15
|
Link,
|
|
16
16
|
Typography,
|
|
17
|
-
|
|
18
|
-
} from '
|
|
17
|
+
} from '@mui/material'
|
|
18
|
+
import { makeStyles } from 'tss-react/mui'
|
|
19
19
|
|
|
20
20
|
// icons
|
|
21
|
-
import PersonIcon from '@
|
|
22
|
-
import AddIcon from '@
|
|
23
|
-
import CheckIcon from '@
|
|
21
|
+
import PersonIcon from '@mui/icons-material/Person'
|
|
22
|
+
import AddIcon from '@mui/icons-material/Add'
|
|
23
|
+
import CheckIcon from '@mui/icons-material/Check'
|
|
24
24
|
import { PluginStoreModel } from '../model'
|
|
25
25
|
|
|
26
|
-
const useStyles = makeStyles(() => ({
|
|
26
|
+
const useStyles = makeStyles()(() => ({
|
|
27
27
|
card: {
|
|
28
28
|
margin: '1em',
|
|
29
29
|
},
|
|
@@ -50,18 +50,17 @@ function PluginCard({
|
|
|
50
50
|
model: PluginStoreModel
|
|
51
51
|
adminMode: boolean
|
|
52
52
|
}) {
|
|
53
|
-
const classes = useStyles()
|
|
53
|
+
const { classes } = useStyles()
|
|
54
54
|
const session = getSession(model)
|
|
55
55
|
const { pluginManager } = getEnv(model) as { pluginManager: PluginManager }
|
|
56
56
|
const isInstalled = Boolean(
|
|
57
|
-
pluginManager.runtimePluginDefinitions.find(
|
|
58
|
-
pluginDefinition => pluginDefinition.url === plugin.url,
|
|
59
|
-
),
|
|
57
|
+
pluginManager.runtimePluginDefinitions.find(def => def.url === plugin.url),
|
|
60
58
|
)
|
|
61
59
|
const [tempDisabled, setTempDisabled] = useState(false)
|
|
62
60
|
const disableButton = isInstalled || tempDisabled
|
|
63
61
|
|
|
64
|
-
|
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
63
|
+
const rootModel = getParent<any>(model, 3)
|
|
65
64
|
const { jbrowse } = rootModel
|
|
66
65
|
|
|
67
66
|
return (
|
|
@@ -5,21 +5,21 @@ import { getEnv } from 'mobx-state-tree'
|
|
|
5
5
|
import {
|
|
6
6
|
Accordion,
|
|
7
7
|
AccordionSummary,
|
|
8
|
-
TextField,
|
|
9
|
-
InputAdornment,
|
|
10
8
|
Button,
|
|
11
9
|
IconButton,
|
|
10
|
+
InputAdornment,
|
|
11
|
+
TextField,
|
|
12
12
|
Typography,
|
|
13
|
-
|
|
14
|
-
} from '
|
|
13
|
+
} from '@mui/material'
|
|
14
|
+
import { makeStyles } from 'tss-react/mui'
|
|
15
15
|
|
|
16
16
|
import { JBrowsePlugin } from '@jbrowse/core/util/types'
|
|
17
17
|
import { getSession, isElectron } from '@jbrowse/core/util'
|
|
18
18
|
|
|
19
19
|
// icons
|
|
20
|
-
import ExpandMoreIcon from '@
|
|
21
|
-
import ClearIcon from '@
|
|
22
|
-
import InfoOutlinedIcon from '@
|
|
20
|
+
import ExpandMoreIcon from '@mui/icons-material/ExpandMore'
|
|
21
|
+
import ClearIcon from '@mui/icons-material/Clear'
|
|
22
|
+
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'
|
|
23
23
|
|
|
24
24
|
// locals
|
|
25
25
|
import InstalledPluginsList from './InstalledPluginsList'
|
|
@@ -27,7 +27,7 @@ import PluginCard from './PluginCard'
|
|
|
27
27
|
import CustomPluginForm from './CustomPluginForm'
|
|
28
28
|
import { PluginStoreModel } from '../model'
|
|
29
29
|
|
|
30
|
-
const useStyles = makeStyles(theme => ({
|
|
30
|
+
const useStyles = makeStyles()(theme => ({
|
|
31
31
|
root: {
|
|
32
32
|
margin: theme.spacing(1),
|
|
33
33
|
},
|
|
@@ -51,7 +51,7 @@ const useStyles = makeStyles(theme => ({
|
|
|
51
51
|
}))
|
|
52
52
|
|
|
53
53
|
function PluginStoreWidget({ model }: { model: PluginStoreModel }) {
|
|
54
|
-
const classes = useStyles()
|
|
54
|
+
const { classes } = useStyles()
|
|
55
55
|
const [pluginArray, setPluginArray] = useState<JBrowsePlugin[]>()
|
|
56
56
|
const [error, setError] = useState<unknown>()
|
|
57
57
|
const [customPluginFormOpen, setCustomPluginFormOpen] = useState(false)
|