From 31866c16111bc330a889c04ecdc86ce891604dc4 Mon Sep 17 00:00:00 2001 From: Theo Sanderson Date: Wed, 22 Feb 2023 23:19:44 +0000 Subject: [PATCH] update --- .pre-commit-config.yaml | 19 + README.md | 2 - postcss.config.js | 4 +- public/index.html | 53 +- public/sequence.gb | 5 +- public/sequence2.gb | 5 +- src/App.css | 21 +- src/App.js | 1438 ++++++++-------------------------- src/App.test.js | 6 +- src/components/SingleRow.jsx | 683 ++++++++++++++++ src/components/Tooltip.jsx | 47 ++ src/hooks.js | 50 ++ src/index.css | 6 +- src/index.js | 12 +- src/logo.svg | 2 +- src/reportWebVitals.js | 4 +- src/setupTests.js | 2 +- src/utils.js | 31 + tailwind.config.js | 2 +- 19 files changed, 1216 insertions(+), 1176 deletions(-) create mode 100644 .pre-commit-config.yaml create mode 100644 src/components/SingleRow.jsx create mode 100644 src/components/Tooltip.jsx create mode 100644 src/hooks.js create mode 100644 src/utils.js diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..0bda5d7 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + - repo: https://github.com/pre-commit/mirrors-prettier + rev: "v2.7.1" # Use the sha / tag you want to point at + hooks: + - id: prettier + - repo: https://github.com/pre-commit/mirrors-yapf + rev: v0.32.0 + hooks: + - id: yapf + additional_dependencies: [toml] diff --git a/README.md b/README.md index d10524d..231e4e5 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,8 @@ A simple genome browser for smallish genomes (e.g. viruses and bacteria) ![image](https://user-images.githubusercontent.com/19732295/219011538-43b9b66b-0227-4171-87c6-08b496a7bf2e.png) - ## https://gensplore.theo.io/ - ### Adding custom genomes For viewing a custom genome every now and then, just use the "Choose file" option. If you are doing this all the time you might want an easier method. Bacterial genomes load too slowly from NCBI for us to load them directly, but you can upload your own to a website that allows CORS access, then go to `http://gensplore.theo.io/?gb=http://mywebsite.com/myfile.gb`. If you have trouble with this feel free to raise an Issue and we may be able to add your genome. diff --git a/postcss.config.js b/postcss.config.js index e2dc478..12a703d 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -2,5 +2,5 @@ module.exports = { plugins: { tailwindcss: {}, autoprefixer: {}, - } -} \ No newline at end of file + }, +}; diff --git a/public/index.html b/public/index.html index 4a486ab..f219a12 100644 --- a/public/index.html +++ b/public/index.html @@ -5,31 +5,38 @@ - + + Gensplore + + + + + + + + + - /> - - Gensplore - - - - - - - - + + + + + + + - - - - - - - - - +