Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

rm -r ../streambed/shelly/imagej/static/imagej/dist/*
cp -r dist/* ../streambed/shelly/imagej/static/imagej/dist/

# Make the dist directory in streambed container if it doesn't exist
docker exec -it streambed sh -c 'if [ ! -d /var/www/staticfiles/imagej ]; then mkdir /var/www/staticfiles/imagej; fi'
docker exec -it streambed sh -c 'if [ ! -d /var/www/staticfiles/imagej/dist ]; then mkdir /var/www/staticfiles/imagej/dist; fi'

# Remove the contents of dist directory if it does exist
docker exec -it streambed sh -c 'if [ -d /var/www/staticfiles/imagej/dist ]; then rm -r /var/www/staticfiles/imagej/dist/*; fi'

docker cp dist/. streambed:/var/www/staticfiles/imagej/dist
if [ $? -ne 0 ]; then
echo "Failed to copy dist directory to streambed"
exit 1
fi

echo "Static ImageJ.js files deployed to streambed"
Empty file modified get-imagej.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imagej.js",
"version": "0.5.8",
"version": "0.6.0",
"description": "ImageJ running in the browser",
"main": "lib/index.js",
"module": "src/index.js",
Expand Down Expand Up @@ -78,5 +78,8 @@
"workbox-webpack-plugin": "^5.1.3",
"write-file-webpack-plugin": "^4.5.1"
},
"gitHead": "9f00f654748b85702463b60a98751943c0107486"
"gitHead": "9f00f654748b85702463b60a98751943c0107486",
"volta": {
"node": "12.22.12"
}
}
Binary file modified src/assets/img/imagej-js-imjoy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/c.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/imagej_static/" />
<meta charset="utf-8" />
<script src="https://cjrtnc.leaningtech.com/20201217_2/cheerpOS.js"></script>
<script>
Expand All @@ -9,7 +10,7 @@
function registerServiceWorker() {
if ("serviceWorker" in navigator) {
window.addEventListener("load", function() {
navigator.serviceWorker.register("/service-worker.js").then(
navigator.serviceWorker.register("service-worker.js").then(
function(registration) {
// Registration was successful
console.log(
Expand Down
3 changes: 1 addition & 2 deletions src/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@
<h1 id="dialogTitle">Open File</h1>

<p id="dialogDescription">
You can either select a file from your local file system or cached
files in the browser.
You can select a file from your local file system or cached files in the browser.
</p>

<div class="dialog-button-group">
Expand Down
Loading