-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1278 Indigo-service. Remove Mithril library dependency from UI module (
- Loading branch information
Showing
66 changed files
with
23,144 additions
and
2,724 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SKIP_PREFLIGHT_CHECK=true | ||
REACT_APP_API_PATH=/v2 | ||
PUBLIC_URL=./ | ||
GENERATE_SOURCEMAP = false | ||
REACT_APP_API_POSTGRES=http://18.206.56.62:8080/v2 | ||
REACT_APP_API_ELASTIC=http://18.206.56.62:8080/v3 | ||
REACT_APP_LIBS_PASSWORD=12345 |
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 @@ | ||
* text=auto eol=lf |
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 |
---|---|---|
@@ -1,4 +1,30 @@ | ||
/dist | ||
/extra | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/*.zip | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# IntelliJ IDEA | ||
.idea/* | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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,4 @@ | ||
{ | ||
"*.{js,jsx,ts,tsx,json}": ["prettier --write"], | ||
"*.{css,less}": ["stylelint --formatter verbose --fix --allow-empty-input"] | ||
} |
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,3 @@ | ||
module.exports = { | ||
...require('prettier-config-standard') | ||
} |
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,4 @@ | ||
build | ||
dist | ||
docs | ||
style |
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,6 @@ | ||
{ | ||
"extends": ["stylelint-config-standard", "stylelint-config-prettier"], | ||
"rules": { | ||
"at-rule-no-unknown": null | ||
} | ||
} |
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 |
---|---|---|
@@ -1,27 +1,34 @@ | ||
# EPAM Indigo projects # | ||
# General Info | ||
|
||
Copyright (c) 2009-2022 EPAM Systems | ||
The frontend is a React app, which was reworked from the legacy Mithrill library. It features two primary | ||
paths: `/search` and `/libs`. | ||
|
||
## Introduction ## | ||
## /search | ||
|
||
This repository includes web UI for Indigo service | ||
The `/search` path includes a Ketcher window and various tools for searching molecules from libraries. As a user, you | ||
can: | ||
|
||
## Source code organization ## | ||
- Search using Bingo-Elastic | ||
- Search using Postgres | ||
- Search by different match types (exact match, similarity match, submatch) | ||
- Draw the desired molecule using the Ketcher window | ||
|
||
## Build instructions ## | ||
## /libs | ||
|
||
``` | ||
npm install && gulp | ||
``` | ||
The `/libs` path requires a password for user access. The password is stored in the `REACT_APP_LIBS_PASSWORD` | ||
environment variable. In the libs tab, users can: | ||
|
||
### Use docker | ||
- Add new libraries | ||
- Remove a library | ||
- Upload .sdf files to a library | ||
|
||
``` | ||
docker-compose up | ||
``` | ||
By exploring the `/search` and `/libs` paths, users can access the essential features of the Indigo toolkit through the | ||
Indigo Service. | ||
|
||
## How to build | ||
|
||
## Run server with proxy path ## | ||
To build react app use next command: | ||
|
||
``` | ||
npm install && gulp && gulp serve --api-proxy="http://indigoweb.epm-lsop.projects.epam.com" | ||
yarn run build | ||
``` |
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,38 @@ | ||
const { | ||
override, | ||
addBundleVisualizer, | ||
addWebpackModuleRule, | ||
addWebpackPlugin | ||
} = require('customize-cra') | ||
const webpack = require('webpack') | ||
const HtmlReplaceWebpackPlugin = require('html-replace-webpack-plugin') | ||
const GitRevisionPlugin = require('git-revision-webpack-plugin') | ||
|
||
const gitRevisionPlugin = new GitRevisionPlugin() | ||
const applicationVersion = gitRevisionPlugin.version().split('-')[0] | ||
|
||
module.exports = override( | ||
addBundleVisualizer({}, true), | ||
addWebpackModuleRule({ | ||
test: /\.js$/, | ||
enforce: 'pre', | ||
loader: 'source-map-loader', | ||
exclude: /node_modules/ | ||
}), | ||
addWebpackPlugin( | ||
new webpack.EnvironmentPlugin({ | ||
MODE: process.env.MODE, | ||
API_PATH: process.env.REACT_APP_API_PATH, | ||
ENABLE_POLYMER_EDITOR: !!process.env.ENABLE_POLYMER_EDITOR, | ||
KETCHER_ENABLE_REDUX_LOGGER: JSON.stringify(false) | ||
}) | ||
), | ||
addWebpackPlugin( | ||
new HtmlReplaceWebpackPlugin([ | ||
{ | ||
pattern: '@@version', | ||
replacement: applicationVersion | ||
} | ||
]) | ||
) | ||
) |
Oops, something went wrong.