Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
ensembl-client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ensembl-web
ensembl-client
Commits
ce763e09
Unverified
Commit
ce763e09
authored
Sep 15, 2020
by
Andrey Azov
Committed by
GitHub
Sep 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lint errors (#346)
parent
a2ec5172
Pipeline
#97963
passed with stages
in 7 minutes and 17 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
37 deletions
+16
-37
src/ensembl/src/content/app/custom-download/state/attributes/attributesActions.ts
...app/custom-download/state/attributes/attributesActions.ts
+8
-5
src/ensembl/src/content/app/custom-download/state/customDownloadActions.ts
...ontent/app/custom-download/state/customDownloadActions.ts
+1
-1
src/ensembl/src/header/account/Account.tsx
src/ensembl/src/header/account/Account.tsx
+2
-6
src/ensembl/src/header/header-buttons/HeaderButtons.tsx
src/ensembl/src/header/header-buttons/HeaderButtons.tsx
+3
-11
src/ensembl/src/header/launchbar/LaunchbarContainer.tsx
src/ensembl/src/header/launchbar/LaunchbarContainer.tsx
+2
-6
src/ensembl/src/registerServiceWorker.ts
src/ensembl/src/registerServiceWorker.ts
+0
-8
No files found.
src/ensembl/src/content/app/custom-download/state/attributes/attributesActions.ts
View file @
ce763e09
...
...
@@ -20,15 +20,18 @@ import { ActionCreator, Action } from 'redux';
import
findIndex
from
'
lodash/findIndex
'
;
import
set
from
'
lodash/set
'
;
import
{
RootState
}
from
'
src/store
'
;
import
{
orthologueSpecies
as
sampleOrthologueSpecies
}
from
'
src/content/app/custom-download/sample-data/orthologue
'
;
import
attributes
from
'
src/content/app/custom-download/sample-data/attributes
'
;
import
{
AttributeWithOptions
}
from
'
src/content/app/custom-download/types/Attributes
'
;
import
{
updateActiveConfigurationForGenome
}
from
'
src/content/app/custom-download/state/customDownloadActions
'
;
import
{
Attributes
,
AttributeWithOptions
}
from
'
src/content/app/custom-download/types/Attributes
'
;
import
JSONValue
from
'
src/shared/types/JSON
'
;
import
{
CheckboxGridOption
}
from
'
src/content/app/custom-download/components/checkbox-grid/CheckboxGrid
'
;
import
Species
from
'
src/content/app/custom-download/types/Species
'
;
import
{
updateActiveConfigurationForGenome
}
from
'
src/content/app/custom-download/state/customDownloadActions
'
;
import
{
RootState
}
from
'
src/store
'
;
import
{
getCustomDownloadActiveGenomeId
,
...
...
@@ -39,7 +42,7 @@ export const setAttributes = createAsyncAction(
'
custom-download/set-attributes-request
'
,
'
custom-download/set-attributes-success
'
,
'
custom-download/set-attributes-failure
'
)
<
undefined
,
{}
,
Error
>
();
)
<
undefined
,
Attributes
,
Error
>
();
export
const
fetchAttributes
:
ActionCreator
<
ThunkAction
<
void
,
...
...
src/ensembl/src/content/app/custom-download/state/customDownloadActions.ts
View file @
ce763e09
...
...
@@ -129,7 +129,7 @@ export const setPreviewResult = createAsyncAction(
'
custom-download/preview-results-request
'
,
'
custom-download/preview-results-success
'
,
'
custom-download/preview-results-failure
'
)
<
{
endpointURL
:
string
;
headers
:
{}
}
,
JSONValue
,
Error
>
();
)
<
undefined
,
JSONValue
,
Error
>
();
export
const
fetchPreviewResult
:
ActionCreator
<
ThunkAction
<
void
,
...
...
src/ensembl/src/header/account/Account.tsx
View file @
ce763e09
...
...
@@ -22,14 +22,10 @@ import { getAccountExpanded } from '../headerSelectors';
import
styles
from
'
./Account.scss
'
;
type
State
Props
=
{
type
Account
Props
=
{
accountExpanded
:
boolean
;
};
type
OwnProps
=
{};
type
AccountProps
=
StateProps
&
OwnProps
;
export
const
Account
=
(
props
:
AccountProps
)
=>
{
return
props
.
accountExpanded
?
(
<
div
className
=
{
styles
.
account
}
>
...
...
@@ -38,7 +34,7 @@ export const Account = (props: AccountProps) => {
)
:
null
;
};
const
mapStateToProps
=
(
state
:
RootState
)
:
StateProps
=>
({
const
mapStateToProps
=
(
state
:
RootState
)
=>
({
accountExpanded
:
getAccountExpanded
(
state
)
});
...
...
src/ensembl/src/header/header-buttons/HeaderButtons.tsx
View file @
ce763e09
...
...
@@ -28,17 +28,11 @@ import { Status } from 'src/shared/types/status';
import
styles
from
'
./HeaderButtons.scss
'
;
type
StateProps
=
{};
type
DispatchProps
=
{
type
HeaderButtonsProps
=
{
toggleLaunchbar
:
()
=>
void
;
toggleAccount
:
()
=>
void
;
};
type
OwnProps
=
{};
type
HeaderButtonsProps
=
StateProps
&
DispatchProps
&
OwnProps
;
export
const
HeaderButtons
:
FunctionComponent
<
HeaderButtonsProps
>
=
(
props
)
=>
(
<
div
>
<
ImageButton
...
...
@@ -59,11 +53,9 @@ export const HeaderButtons: FunctionComponent<HeaderButtonsProps> = (props) => (
</
div
>
);
const
mapStateToProps
=
():
StateProps
=>
({});
const
mapDispatchToProps
:
DispatchProps
=
{
const
mapDispatchToProps
=
{
toggleAccount
,
toggleLaunchbar
};
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
HeaderButtons
);
export
default
connect
(
null
,
mapDispatchToProps
)(
HeaderButtons
);
src/ensembl/src/header/launchbar/LaunchbarContainer.tsx
View file @
ce763e09
...
...
@@ -26,21 +26,17 @@ import { getLaunchbarExpanded } from '../headerSelectors';
import
{
RootState
}
from
'
src/store
'
;
import
{
CommittedItem
}
from
'
src/content/app/species-selector/types/species-search
'
;
type
State
Props
=
{
type
LaunchbarContainer
Props
=
{
launchbarExpanded
:
boolean
;
committedSpecies
:
CommittedItem
[];
};
type
OwnProps
=
{};
type
LaunchbarContainerProps
=
StateProps
&
OwnProps
;
export
const
LaunchbarContainer
=
memo
(
(
props
:
LaunchbarContainerProps
)
=>
<
Launchbar
{
...
props
}
/>,
isEqual
);
const
mapStateToProps
=
(
state
:
RootState
)
:
StateProps
=>
({
const
mapStateToProps
=
(
state
:
RootState
)
=>
({
launchbarExpanded
:
getLaunchbarExpanded
(
state
),
committedSpecies
:
getEnabledCommittedSpecies
(
state
)
});
...
...
src/ensembl/src/registerServiceWorker.ts
View file @
ce763e09
...
...
@@ -14,15 +14,7 @@
* limitations under the License.
*/
declare
global
{
interface
Window
{
nodeEnv
:
string
|
undefined
;
}
}
export
function
registerSW
()
{
window
.
nodeEnv
=
process
.
env
.
NODE_ENV
;
if
(
'
serviceWorker
'
in
navigator
)
{
window
.
addEventListener
(
'
load
'
,
()
=>
{
navigator
.
serviceWorker
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment