diff --git a/.win32.env b/.win32.env new file mode 100644 index 0000000000..5b1e3a0ec7 --- /dev/null +++ b/.win32.env @@ -0,0 +1,5 @@ +DOCKER_STOCHSS_IMAGE=stochss-lab + +DOCKER_BASE_IMAGE=jupyter/minimal-notebook:latest + +JUPYTER_CONFIG_DIR=/opt/stochss-config/.jupyter diff --git a/Dockerfile b/Dockerfile index f080b0892f..ce3e1fc364 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,20 +29,20 @@ COPY --chown=jovyan:users jupyter_notebook_config.py $JUPYTER_CONFIG_DIR/jupyter USER root -RUN wget -q https://julialang-s3.julialang.org/bin/linux/x64/1.4/julia-1.4.2-linux-x86_64.tar.gz -RUN tar -xvzf julia-1.4.2-linux-x86_64.tar.gz -RUN mv julia-1.4.2 /usr/local/ -RUN chown -R jovyan:users /usr/local/julia-1.4.2/ +#RUN wget -q https://julialang-s3.julialang.org/bin/linux/x64/1.4/julia-1.4.2-linux-x86_64.tar.gz +#RUN tar -xvzf julia-1.4.2-linux-x86_64.tar.gz +#RUN mv julia-1.4.2 /usr/local/ +#RUN chown -R jovyan:users /usr/local/julia-1.4.2/ USER jovyan -ENV PATH="/usr/local/julia-1.4.2/bin:${PATH}" +#ENV PATH="/usr/local/julia-1.4.2/bin:${PATH}" -RUN julia -e 'using Pkg; Pkg.add("IJulia")' -RUN julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/stochss/gillespy2lia", rev="main"))' +#RUN julia -e 'using Pkg; Pkg.add("IJulia")' +#RUN julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/stochss/gillespy2lia", rev="main"))' RUN pip install --no-cache-dir -e . RUN rm -r /home/jovyan/work -WORKDIR /home/jovyan +WORKDIR /home/jovyan \ No newline at end of file diff --git a/Makefile b/Makefile index ed4b61a4e7..bd9d1feb25 100644 --- a/Makefile +++ b/Makefile @@ -152,4 +152,4 @@ update: docker exec -it $(DOCKER_STOCHSS_IMAGE) python -m pip install -e /stochss -.PHONY: network volumes check-files pull notebook_image build +.PHONY: network volumes check-files pull notebook_image build \ No newline at end of file diff --git a/__version__.py b/__version__.py index 8b1219a50e..3e182b4ea2 100644 --- a/__version__.py +++ b/__version__.py @@ -5,7 +5,7 @@ # @website https://github.com/stochss/stochss # ============================================================================= -__version__ = '2.3.9' +__version__ = '2.3.11' __title__ = 'StochSS' __description__ = 'StochSS is an integrated development environment (IDE) \ for simulation of biochemical networks.' diff --git a/client/app.js b/client/app.js index f2ef090d74..7b83d8114d 100644 --- a/client/app.js +++ b/client/app.js @@ -212,29 +212,14 @@ documentSetup = () => { }); } -copyToClipboard = (text) => { - if (window.clipboardData && window.clipboardData.setData) { - // Internet Explorer-specific code path to prevent textarea being shown while dialog is visible. - return window.clipboardData.setData("Text", text); - - } - else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { - var textarea = document.createElement("textarea"); - textarea.textContent = text; - textarea.style.display = 'none'; // Prevent scrolling to bottom of page in Microsoft Edge. - document.body.appendChild(textarea); - textarea.select(); - try { - return document.execCommand("copy"); // Security exception may be thrown by some browsers. - } - catch (ex) { - console.warn("Copy to clipboard failed.", ex); - return false; - } - finally { - document.body.removeChild(textarea); - } - } +copyToClipboard = (text, success, error) => { + if (window.clipboardData && window.clipboardData.setData) { + // Internet Explorer-specific code path to prevent textarea being shown while dialog is visible. + return window.clipboardData.setData("Text", text); + } + else { + navigator.clipboard.writeText(text).then(success, error) + } } module.exports = { diff --git a/client/modals.js b/client/modals.js index dcc8da5eac..ac499bb04a 100644 --- a/client/modals.js +++ b/client/modals.js @@ -224,7 +224,7 @@ let templates = { ` }, - presentationLinks : (modalID, title, name, headers, links) => { + presentationLinks : (modalID, title, headers, links) => { return `