Skip to content

Commit

Permalink
view refactor and session storage to maintain state (#158)
Browse files Browse the repository at this point in the history
* view refactor

* new file

* push some wip

* more refactoring

* updates and fixes

* bumpt webpack in docker

* fix error handling

* fix eslint

* multi page apps work but state is not saved

* readme wording

* undo

* dropdown localstorage

* some cleanup

* package updates

* remove prints

* whoops

* updates

* use sessionstorage put routes into flask

* updates

* making most components persist to sessionStorage

* eslint

* also reset view uuid

* reset view uuid in pytest fixture

* cleanup link
  • Loading branch information
jwkvam committed Nov 14, 2017
1 parent bdc061d commit 2b734b5
Show file tree
Hide file tree
Showing 35 changed files with 631 additions and 316 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ install:
- curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
- source ~/.nvm/nvm.sh
- nvm install node
- npm install -g webpack@3.5.5 yarn
- npm install -g webpack@3.8.1 yarn
- npm install -g eslint babel-eslint eslint-plugin-react
- make eslint
- sudo apt-get update
Expand All @@ -51,7 +51,7 @@ install:
- source activate test-environment
- pip install -r requirements.txt
- make checkdocs
- wget https://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip
- wget https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- chmod +x chromedriver
- sudo mv -f chromedriver /usr/local/bin
Expand Down
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8.4
FROM node:8.9

LABEL maintainer="jwkvam@gmail.com"

Expand All @@ -11,15 +11,18 @@ RUN apt-get update --fix-missing && \
# miniconda archive
# https://repo.continuum.io/miniconda/
RUN echo "export PATH=/opt/conda/bin:$PATH" > /etc/profile.d/conda.sh && \
curl -L https://repo.continuum.io/miniconda/Miniconda3-4.3.21-Linux-x86_64.sh -o ~/miniconda.sh && \
curl -L https://repo.continuum.io/miniconda/Miniconda3-4.3.30-Linux-x86_64.sh -o ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh

ENV PATH /opt/conda/bin:$PATH

RUN npm install -g webpack@3.5.5 yarn
RUN pip install bowtie
RUN npm install -g webpack@3.8.1 yarn
RUN pip install flit

WORKDIR /bowtie
COPY . /bowtie
RUN flit install
WORKDIR /work

ENTRYPOINT [ "sleep", "infinity" ]
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ npm install -g webpack yarn
## Contributing

You can help Bowtie in many ways including:
- Trying it [out](http://bowtie-py.readthedocs.io/en/latest/quickstart.html) and reporting bugs or simply what was difficult to use or get working.
- Helping improve the [documentation](https://github.com/jwkvam/bowtie/tree/master/doc).
- Writing new [widgets](http://bowtie-py.readthedocs.io/en/latest/newcomponents.html).
- Try it [out](http://bowtie-py.readthedocs.io/en/latest/quickstart.html) and report bugs or what was difficult.
- Help improve the [documentation](https://github.com/jwkvam/bowtie/tree/master/doc).
- Write new [widgets](http://bowtie-py.readthedocs.io/en/latest/newcomponents.html).
- Provide hosting for apps in the gallery.
- Say [thanks](https://saythanks.io/to/jwkvam)!
4 changes: 2 additions & 2 deletions bowtie/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Interactive dashboard toolkit."""

__version__ = '0.4.2'
__version__ = '0.5.0-dev'

from bowtie._layout import Layout
from bowtie._app import App, View
from bowtie._command import command
from bowtie.pager import Pager

0 comments on commit 2b734b5

Please sign in to comment.