diff --git a/BUILD.md b/BUILD.md index 44ae33c8..d4a86926 100644 --- a/BUILD.md +++ b/BUILD.md @@ -48,23 +48,24 @@ # Available Scripts -| Script | Description | -| --------------------- | --------------------------------------------------------------- | -| `archive:web` | Archive OpenCOR's Web app | -| `build` | Build OpenCOR | -| `build:web` | Build OpenCOR's Web app | -| `clean` | Clean OpenCOR's environment | -| `dependencies:update` | Update all dependencies to their latest versions | -| `dev` | (Build and) start OpenCOR and OpenCOR's Web app with hot reload | -| `dev:web` | (Build and) start OpenCOR's Web app with hot reload | -| `format` | Format the code | -| `format:check` | Check code formatting without making changes | -| `lint` | Lint and automatically fix issues | -| `release` | Release OpenCOR for the current platform | -| `release:local` | Release OpenCOR for the current platform without code signing | -| `start` | (Build and) start (the production version of) OpenCOR | -| `start:web` | (Build and) start (the production version of) OpenCOR's Web app | -| `version:new` | Update the version of OpenCOR | +| Script | Description | +| --------------------- | -------------------------------------------------------------------------- | +| `archive:web` | Archive OpenCOR's Web app | +| `build` | Build OpenCOR | +| `build:web` | Build OpenCOR's Web app | +| `clean` | Clean OpenCOR's environment | +| `dependencies:update` | Update all dependencies | +| `dev` | (Build and) start the development version of OpenCOR and OpenCOR's Web app | +| `dev:web` | (Build and) start the development version of OpenCOR's Web app | +| `format` | Format the code | +| `format:check` | Check code's formatting | +| `lint` | Lint and automatically fix issues | +| `release` | Release OpenCOR for the current platform | +| `release:local` | Release OpenCOR for the current platform without code signing | +| `start` | (Build and) start the production version of OpenCOR | +| `start:web` | (Build and) start the production version of OpenCOR's Web app | +| `typecheck` | Check the code for type errors | +| `version:new` | Update the version of OpenCOR | # Notes diff --git a/bun.lock b/bun.lock index 156c4d56..7ad246fd 100644 --- a/bun.lock +++ b/bun.lock @@ -500,7 +500,7 @@ "callsites": ["callsites@3.1.0", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="], - "caniuse-lite": ["caniuse-lite@1.0.30001791", "", {}, "sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ=="], + "caniuse-lite": ["caniuse-lite@1.0.30001792", "", {}, "sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw=="], "chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], @@ -1228,9 +1228,9 @@ "@tailwindcss/oxide-wasm32-wasi/tslib": ["tslib@2.8.1", "", { "bundled": true }, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], - "@vue/language-core/@vue/compiler-dom": ["@vue/compiler-dom@3.5.33", "", { "dependencies": { "@vue/compiler-core": "3.5.33", "@vue/shared": "3.5.33" } }, "sha512-PXq0yrfCLzzL07rbXO4awtXY1Z06LG2eu6Adg3RJFa/j3Cii217XxxLXG22N330gw7GmALCY0Z8RgXEviwgpjA=="], + "@vue/language-core/@vue/compiler-dom": ["@vue/compiler-dom@3.5.34", "", { "dependencies": { "@vue/compiler-core": "3.5.34", "@vue/shared": "3.5.34" } }, "sha512-EbF/T++k0e2MMZlJsBhzK8Sgwt0HcIPOhzn1CTB/lv6sQcyk+OWf8YeiLxZp3ro7MbbLcAfAJ6sEvjFWuNgUCw=="], - "@vue/language-core/@vue/shared": ["@vue/shared@3.5.33", "", {}, "sha512-5vR2QIlmaLG77Ygd4pMP6+SGQ5yox9VhtnbDWTy9DzMzdmeLxZ1QqxrywEZ9sa1AVubfIJyaCG3ytyWU81ufcQ=="], + "@vue/language-core/@vue/shared": ["@vue/shared@3.5.34", "", {}, "sha512-24uqU4OIiX29ryC3MeWid/Xf2fa2EFRUVLb77nRhk+UrTVrh/XiGtFAFmJBAtBRbjwNdsPRP+jj/OL27Eg1NDA=="], "ajv-keywords/ajv": ["ajv@6.15.0", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw=="], @@ -1334,7 +1334,7 @@ "@electron/universal/minimatch/brace-expansion": ["brace-expansion@2.1.0", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w=="], - "@vue/language-core/@vue/compiler-dom/@vue/compiler-core": ["@vue/compiler-core@3.5.33", "", { "dependencies": { "@babel/parser": "^7.29.2", "@vue/shared": "3.5.33", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-3PZLQwFw4Za3TC8t0FvTy3wI16Kt+pmwcgNZca4Pj9iWL2E72a/gZlpBtAJvEdDMdCxdG/qq0C7PN0bsJuv0Rw=="], + "@vue/language-core/@vue/compiler-dom/@vue/compiler-core": ["@vue/compiler-core@3.5.34", "", { "dependencies": { "@babel/parser": "^7.29.3", "@vue/shared": "3.5.34", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-s9cLyK5mLcvZ4Agva5QgRsQyLKvts9WbU9DB6NqiZkkGEdwmcEiylj5Jbwkp680drF/NNCV8OlAJSe+yMLxaJw=="], "ajv-keywords/ajv/json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="], diff --git a/package.json b/package.json index 6cb137c6..d14df9e1 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "url": "git+https://github.com/opencor/webapp.git" }, "type": "module", - "version": "0.20260506.0", + "version": "0.20260507.0", "engines": { "bun": ">=1.2.0" }, diff --git a/src/renderer/BUILD.md b/src/renderer/BUILD.md index 3504960a..5276b1aa 100644 --- a/src/renderer/BUILD.md +++ b/src/renderer/BUILD.md @@ -26,14 +26,16 @@ # Available Scripts -| Script | Description | -| -------------- | ----------------------------------------------------------------| -| `build` | Build OpenCOR's Web app | -| `build:lib` | Build OpenCOR's Web app as a library | -| `clean` | Clean OpenCOR's environment | -| `dev` | (Build and) start OpenCOR's Web app with hot reload | -| `format` | Format the code using | -| `format:check` | Check code formatting without making changes | -| `lint` | Lint and automatically fix issues | -| `start` | (Build and) start (the production version of) OpenCOR's Web app | -| `version:new` | Update the version of OpenCOR | +| Script | Description | +| --------------------- | -------------------------------------------------------------- | +| `build` | Build OpenCOR's Web app | +| `build:lib` | Build OpenCOR's Web app as a library | +| `clean` | Clean OpenCOR's environment | +| `dependencies:update` | Update the package's dependencies | +| `dev` | (Build and) start the development version of OpenCOR's Web app | +| `format` | Format the code | +| `format:check` | Check the code's formatting | +| `lint` | Lint and automatically fix issues | +| `start` | (Build and) start the production version of OpenCOR's Web app | +| `typecheck` | Check the code for type errors | +| `version:new` | Update the version of OpenCOR | diff --git a/src/renderer/README.md b/src/renderer/README.md index 033e212f..ef3a8a35 100644 --- a/src/renderer/README.md +++ b/src/renderer/README.md @@ -18,10 +18,10 @@ Some characteristics of this package are that: The component comes with the following props: -| Name | Type | Default | Description | -| ------- | ------------------------------------------ | ---------- | -------------------------------------------------------------------------------- | -| `omex` | String | `null` | The URL of the [OMEX file](https://combinearchive.org/) to use. | -| `theme` | String: `'light'`, `'dark'`, or `'system'` | `'system'` | The theme to use. Note that it is set once and for all, i.e. it is not reactive. | +| Name | Type | Default | Description | +| ------- | ----------------------------------- | ---------- | --------------------------------------------------------------------------------------- | +| `omex` | `string` \| `Uint8Array` | `null` | The [OMEX file](https://combinearchive.org/) to use, as a URL string or raw OMEX bytes. | +| `theme` | `'light'` \| `'dark'` \| `'system'` | `'system'` | The theme to use. Note that it is set once and for all, i.e. it is not reactive. | - **main.ts:** diff --git a/src/renderer/bun.lock b/src/renderer/bun.lock index 81b96094..ec2582a5 100644 --- a/src/renderer/bun.lock +++ b/src/renderer/bun.lock @@ -359,7 +359,7 @@ "callsites": ["callsites@3.1.0", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="], - "caniuse-lite": ["caniuse-lite@1.0.30001791", "", {}, "sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ=="], + "caniuse-lite": ["caniuse-lite@1.0.30001792", "", {}, "sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw=="], "chokidar": ["chokidar@5.0.0", "", { "dependencies": { "readdirp": "^5.0.0" } }, "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw=="], @@ -713,9 +713,9 @@ "@tailwindcss/oxide-wasm32-wasi/tslib": ["tslib@2.8.1", "", { "bundled": true }, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], - "@vue/language-core/@vue/compiler-dom": ["@vue/compiler-dom@3.5.33", "", { "dependencies": { "@vue/compiler-core": "3.5.33", "@vue/shared": "3.5.33" } }, "sha512-PXq0yrfCLzzL07rbXO4awtXY1Z06LG2eu6Adg3RJFa/j3Cii217XxxLXG22N330gw7GmALCY0Z8RgXEviwgpjA=="], + "@vue/language-core/@vue/compiler-dom": ["@vue/compiler-dom@3.5.34", "", { "dependencies": { "@vue/compiler-core": "3.5.34", "@vue/shared": "3.5.34" } }, "sha512-EbF/T++k0e2MMZlJsBhzK8Sgwt0HcIPOhzn1CTB/lv6sQcyk+OWf8YeiLxZp3ro7MbbLcAfAJ6sEvjFWuNgUCw=="], - "@vue/language-core/@vue/shared": ["@vue/shared@3.5.33", "", {}, "sha512-5vR2QIlmaLG77Ygd4pMP6+SGQ5yox9VhtnbDWTy9DzMzdmeLxZ1QqxrywEZ9sa1AVubfIJyaCG3ytyWU81ufcQ=="], + "@vue/language-core/@vue/shared": ["@vue/shared@3.5.34", "", {}, "sha512-24uqU4OIiX29ryC3MeWid/Xf2fa2EFRUVLb77nRhk+UrTVrh/XiGtFAFmJBAtBRbjwNdsPRP+jj/OL27Eg1NDA=="], "cliui/string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="], @@ -739,7 +739,7 @@ "yargs/string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="], - "@vue/language-core/@vue/compiler-dom/@vue/compiler-core": ["@vue/compiler-core@3.5.33", "", { "dependencies": { "@babel/parser": "^7.29.2", "@vue/shared": "3.5.33", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-3PZLQwFw4Za3TC8t0FvTy3wI16Kt+pmwcgNZca4Pj9iWL2E72a/gZlpBtAJvEdDMdCxdG/qq0C7PN0bsJuv0Rw=="], + "@vue/language-core/@vue/compiler-dom/@vue/compiler-core": ["@vue/compiler-core@3.5.34", "", { "dependencies": { "@babel/parser": "^7.29.3", "@vue/shared": "3.5.34", "entities": "^7.0.1", "estree-walker": "^2.0.2", "source-map-js": "^1.2.1" } }, "sha512-s9cLyK5mLcvZ4Agva5QgRsQyLKvts9WbU9DB6NqiZkkGEdwmcEiylj5Jbwkp680drF/NNCV8OlAJSe+yMLxaJw=="], "mlly/pkg-types/confbox": ["confbox@0.1.8", "", {}, "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w=="], diff --git a/src/renderer/package.json b/src/renderer/package.json index c699770f..45fbbb9f 100644 --- a/src/renderer/package.json +++ b/src/renderer/package.json @@ -42,7 +42,7 @@ }, "./style.css": "./dist/opencor.css" }, - "version": "0.20260506.0", + "version": "0.20260507.0", "scripts": { "build": "vite build && bun scripts/generate.version.js", "build:lib": "vite build --config vite.lib.config.ts && bunx --bun vue-tsc --project tsconfig.lib.types.json",