Skip to content
Merged
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
9 changes: 5 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,13 @@ jobs:
# the live index.html. So, a browser could get a partially uploaded asset and, since our hashed
# assets are cached for good (see public/.htaccess), keep using it. So, we ask lftp to upload each
# file to a temporary file (named .in.<file name>), which it then renames to its final name.
ftp-mirror-options: --exclude-glob=index.html --exclude-glob=assets/version.json
ftp-post-sync-commands: put -O /home/www/opencor.ws/app ./src/renderer/dist/index.html; put -O /home/www/opencor.ws/app/assets ./src/renderer/dist/assets/version.json
ftp-mirror-options: --exclude-glob=index.html --exclude-glob=sw.js --exclude-glob=assets/version.json
ftp-post-sync-commands: put -O /home/www/opencor.ws/app ./src/renderer/dist/index.html; put -O /home/www/opencor.ws/app ./src/renderer/dist/sw.js; put -O /home/www/opencor.ws/app/assets ./src/renderer/dist/assets/version.json
# Note: our assets have a hash in their file names, so we upload index.html (which references them) once they
# have all been uploaded, so that it never references assets that are not available yet. Then, we upload
# version.json last so that OpenCOR's Web app only reports a new version once all the other files have
# been uploaded.
# sw.js, which precaches index.html and our assets (see src/renderer/src/sw.ts), so that it never
# precaches files that are not available yet. Finally, we upload version.json last so that OpenCOR's Web
# app only reports a new version once all the other files have been uploaded.
- name: Release OpenCOR's Web app
if: ${{ !cancelled() && steps.archive.outcome == 'success' }}
uses: softprops/action-gh-release@v3
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/cddev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ jobs:
# the live index.html. So, a browser could get a partially uploaded asset and, since our hashed
# assets are cached for good (see public/.htaccess), keep using it. So, we ask lftp to upload each
# file to a temporary file (named .in.<file name>), which it then renames to its final name.
ftp-mirror-options: --exclude-glob=index.html --exclude-glob=assets/version.json
ftp-post-sync-commands: put -O /home/www/opencor.ws/appdev ./src/renderer/dist/index.html; put -O /home/www/opencor.ws/appdev/assets ./src/renderer/dist/assets/version.json
ftp-mirror-options: --exclude-glob=index.html --exclude-glob=sw.js --exclude-glob=assets/version.json
ftp-post-sync-commands: put -O /home/www/opencor.ws/appdev ./src/renderer/dist/index.html; put -O /home/www/opencor.ws/appdev ./src/renderer/dist/sw.js; put -O /home/www/opencor.ws/appdev/assets ./src/renderer/dist/assets/version.json
# Note: our assets have a hash in their file names, so we upload index.html (which references them) once they
# have all been uploaded, so that it never references assets that are not available yet. Then, we upload
# version.json last so that OpenCOR's Web app only reports a new version once all the other files have
# been uploaded.
# sw.js, which precaches index.html and our assets (see src/renderer/src/sw.ts), so that it never
# precaches files that are not available yet. Finally, we upload version.json last so that OpenCOR's Web
# app only reports a new version once all the other files have been uploaded.
- name: Prune old assets from https://opencor.ws/appdev/
env:
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
Expand Down
46 changes: 26 additions & 20 deletions bun.lock

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export default electronVite.defineConfig({
__CELLDL_RUNTIME_PATH__: JSON.stringify(''),
__LIBOPENCOR_VERSION__: JSON.stringify(libopencorVersion),
__OPENCOR_PLOT_VERSION__: JSON.stringify(opencorPlotPackageJson.version),

// Note: OpenCOR doesn't need a service worker, unlike OpenCOR's Web app (see src/renderer/scripts/sw.plugin.ts).

__OPENCOR_SERVICE_WORKER__: JSON.stringify(false),
__OPENCOR_VERSION__: JSON.stringify(opencorVersion),
__UPLOT_VERSION__: JSON.stringify(opencorPlotPackageJson.dependencies.uplot)
},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"url": "git+https://github.com/opencor/webapp.git"
},
"type": "module",
"version": "1.20261127.1",
"version": "1.20261130.0",
"engines": {
"bun": ">=1.2.0"
},
Expand Down Expand Up @@ -72,7 +72,7 @@
"@vue/tsconfig": "^0.9.1",
"@vueuse/core": "^15.1.0",
"@wasm-fmt/clang-format": "^23.1.1",
"autoprefixer": "^10.7.0",
"autoprefixer": "^10.7.1",
"cmake-js": "^8.0.0",
"electron": "^45.5.0",
"electron-builder": "^26.18.0",
Expand All @@ -82,15 +82,15 @@
"libcellml.js": "^0.7.2",
"node-addon-api": "^8.9.2",
"oxigraph": "^0.5.13",
"postcss": "^8.5.33",
"postcss": "^8.5.34",
"primeicons": "7.0.0",
"primevue": "4.5.5",
"rollup-plugin-visualizer": "^7.3.0",
"stylelint": "^18.1.0",
"stylelint-config-standard": "^41.1.0",
"tailwindcss": "^4.3.5",
"tailwindcss-primeui": "^0.6.1",
"tar": "^7.5.24",
"tar": "^8.0.2",
"typescript": "^7.0.2",
"typescript-6": "npm:typescript@^6.0.3",
"unplugin-vue-components": "^32.1.0",
Expand Down
36 changes: 14 additions & 22 deletions src/renderer/bun.lock

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

Loading
Loading