Commit Graph
1161 Commits
Author SHA1 Message Date
wooferzfg 123f93fac5 Update mobile layout auto resizing 2024-04-27 18:06:55 -04:00
wooferzfg bfc28e479a Disallow resizing in layout editor on mobile
This was causing the layout settings to not be interactable, since the resizing element was blocking them.
2024-04-27 17:32:52 -04:00
wooferzfg de4ec35e4f Don't allow buttons to exceed 300px 2024-04-27 17:20:40 -04:00
wooferzfg 453c94c928 Remove unused exports 2024-04-27 17:20:32 -04:00
wooferzfg 3dcfc1559c Remove unused variables 2024-04-27 17:19:41 -04:00
Christopher Serr 3e249de680 Switch to Canvas Rendering
This switches the rendering of the layout from using HTML and CSS to
using a canvas (technically it's two). This not only should improve the
performance but also brings the rendering in line with our native
renderers, enabling new features such as vertical resizing and
horizontal layouts. This also removes a lot of code specific to the HTML
rendering and thus greatly simplifies the codebase. There is one slight
regression in that the layout editor doesn't allow clicking and dragging
the individual components directly on the layout anymore. This is
however something we can explore directly in `livesplit-core` in the
future, so other frontends can benefit from it as well.
2024-04-27 21:45:41 +02:00
wooferzfg 78a668f9e5 Remove tslint matcher step from CI (#856)
* Delete .github/workflows/tslint.json

* Remove tslint matcher step in CI
2024-04-17 02:00:07 +00:00
wooferzfg f1a61eaa5e Remove Twemoji (#855)
Twemoji is no longer working since the CDN is down.
2024-04-17 01:50:10 +00:00
wooferzfg 371c9d3419 Merge pull request #832 from LiveSplit/dependabot/npm_and_yarn/idb-8.0.0
Bump idb from 7.1.1 to 8.0.0
2024-04-16 20:34:21 -04:00
wooferzfg 5800f90a11 Merge pull request #841 from LiveSplit/dependabot/npm_and_yarn/source-map-loader-5.0.0
Bump source-map-loader from 4.0.1 to 5.0.0
2024-04-16 20:33:50 -04:00
wooferzfg 0cfae74f6a Merge pull request #845 from LiveSplit/dependabot/npm_and_yarn/sass-loader-14.1.1
Bump sass-loader from 13.3.3 to 14.1.1
2024-04-16 20:33:37 -04:00
wooferzfg f00f0c795f Merge pull request #853 from LiveSplit/dependabot/npm_and_yarn/typescript-5.4.5
Bump typescript from 5.3.3 to 5.4.5
2024-04-16 20:32:40 -04:00
dependabot[bot] 295293483c Bump typescript from 5.3.3 to 5.4.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.3 to 5.4.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.3.3...v5.4.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-04-17 00:28:22 +00:00
wooferzfg 578e8512b6 Merge pull request #833 from LiveSplit/dependabot/npm_and_yarn/html-webpack-plugin-5.6.0
Bump html-webpack-plugin from 5.5.3 to 5.6.0
2024-04-16 20:27:55 -04:00
wooferzfg 83beca1a16 Merge pull request #847 from LiveSplit/dependabot/npm_and_yarn/types/react-color-3.0.12
Bump @types/react-color from 3.0.11 to 3.0.12
2024-04-16 20:27:23 -04:00
wooferzfg 01210ffd37 Merge pull request #848 from LiveSplit/dependabot/npm_and_yarn/follow-redirects-1.15.6
Bump follow-redirects from 1.15.5 to 1.15.6
2024-04-16 20:27:17 -04:00
wooferzfg 280d8fec16 Merge pull request #849 from LiveSplit/dependabot/npm_and_yarn/webpack-dev-middleware-5.3.4
Bump webpack-dev-middleware from 5.3.3 to 5.3.4
2024-04-16 20:27:08 -04:00
wooferzfg 6339e2c0a0 Merge pull request #850 from LiveSplit/dependabot/npm_and_yarn/express-4.19.2
Bump express from 4.18.2 to 4.19.2
2024-04-16 20:27:01 -04:00
wooferzfg d477368560 Merge pull request #831 from LiveSplit/dependabot/npm_and_yarn/moment-2.30.1
Bump moment from 2.29.4 to 2.30.1
2024-04-16 20:26:52 -04:00
wooferzfg d3086cbb58 Merge pull request #852 from LiveSplit/switch-to-eslint
Switch to eslint
2024-04-16 20:26:06 -04:00
wooferzfg 409d4bf123 Fix some linter errors 2024-04-16 20:22:41 -04:00
wooferzfg da21ee0e8e Switch to eslint 2024-04-16 20:14:28 -04:00
Christopher Serr 267a3e9571 Switch to an SVG variant of the LiveSplit icon (#851)
This makes it scale better to HiDPI displays and is also smaller in
terms of file size.
2024-04-08 00:33:46 +02:00
dependabot[bot] 8459a4cba5 Bump express from 4.18.2 to 4.19.2
Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-03-28 19:42:30 +00:00
dependabot[bot] b192cfc68d Bump webpack-dev-middleware from 5.3.3 to 5.3.4
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-03-23 09:46:49 +00:00
dependabot[bot] a5f3fd13cf Bump follow-redirects from 1.15.5 to 1.15.6
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.5...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-03-17 00:44:34 +00:00
dependabot[bot] 5ae3ca1ae4 Bump @types/react-color from 3.0.11 to 3.0.12
Bumps [@types/react-color](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-color) from 3.0.11 to 3.0.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-color)

---
updated-dependencies:
- dependency-name: "@types/react-color"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-03-01 08:11:17 +00:00
dependabot[bot] 3d5b71122f Bump sass-loader from 13.3.3 to 14.1.1
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 13.3.3 to 14.1.1.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v13.3.3...v14.1.1)

---
updated-dependencies:
- dependency-name: sass-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-02-24 12:24:00 +00:00
dependabot[bot] a70647e968 Bump source-map-loader from 4.0.1 to 5.0.0
Bumps [source-map-loader](https://github.com/webpack-contrib/source-map-loader) from 4.0.1 to 5.0.0.
- [Release notes](https://github.com/webpack-contrib/source-map-loader/releases)
- [Changelog](https://github.com/webpack-contrib/source-map-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/source-map-loader/compare/v4.0.1...v5.0.0)

---
updated-dependencies:
- dependency-name: source-map-loader
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-02-24 12:23:53 +00:00
Christopher Serr c54123f150 Implement Layout Background Images (#844)
This adds support for layout background images. This also includes a
bunch of smaller fixes.
2024-02-24 13:22:56 +01:00
dependabot[bot] dbb7c50f60 Bump html-webpack-plugin from 5.5.3 to 5.6.0
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) from 5.5.3 to 5.6.0.
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases)
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v5.5.3...v5.6.0)

---
updated-dependencies:
- dependency-name: html-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-01-01 08:33:53 +00:00
dependabot[bot] 02c34a3edd Bump idb from 7.1.1 to 8.0.0
Bumps [idb](https://github.com/jakearchibald/idb) from 7.1.1 to 8.0.0.
- [Changelog](https://github.com/jakearchibald/idb/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jakearchibald/idb/compare/v7.1.1...v8.0.0)

---
updated-dependencies:
- dependency-name: idb
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-01-01 08:33:43 +00:00
dependabot[bot] 0a3f8a6e32 Bump moment from 2.29.4 to 2.30.1
Bumps [moment](https://github.com/moment/moment) from 2.29.4 to 2.30.1.
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.4...2.30.1)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2024-01-01 08:33:19 +00:00
Christopher Serr 23a63575e7 Update dependencies (#827) 2023-11-30 17:50:51 +01:00
Christopher Serr 9c71a7c8c9 Allow stepping through the Rust code (#826)
This allows stepping through the Rust code. `wasm-bindgen` 0.2.89 just
got released and it finally properly allows keeping the debug symbols
that Rust creates around fully. Thankfully `webpack` does not pose a
problem here and the debug symbols now properly work in Chrome, allowing
us to step through the Rust code in the developer tools.
2023-11-30 17:33:17 +01:00
Christopher Serr 6139d064eb Update dependencies (#799) 2023-08-14 22:28:39 +02:00
Christopher Serr b2f61313ac Implement Screen Wake Lock Support (#781)
This attempts to use the Screen Wake Lock API to prevent the screen from
turning off. This is available in iOS 16.4 now, however at least when
adding the app to the home screen as a PWA, the functionality seems to
be broken. Regardless, that's not something we can fix. We can instead
simply always try to activate it and hopefully Apple fixes the bug soon.

https://bugs.webkit.org/show_bug.cgi?id=254545
2023-03-29 00:04:00 +02:00
Christopher Serr 92ff28d9ef Activate WebAssembly SIMD by default (#779)
With Safari / iOS 16.4 having released, WebAssembly SIMD is now
available on all browsers. This should help with parsing performance.

While the update released just today, we do tell people to update iOS if
they haven't already, so I believe it's fine to already publish this.

https://webkit.org/blog/13966/webkit-features-in-safari-16-4/
2023-03-28 00:46:39 +02:00
Christopher Serr 9c4e22a4d5 Download a prebuilt version of binaryen (#777)
This downloads a prebuilt version of `binaryen` instead of manually
building it from scratch, which takes a very long time.
2023-03-12 22:16:20 +01:00
Christopher Serr 612de270f6 Fix livesplit-core bindings (#776)
Turns out that `wasm-bindgen` `v0.2.84` really requires us to import the
main module as that's where they now dynamically set the wasm file.
Additionally this improves our CI a little, by downloading a prebuilt
version of `wasm-bindgen-cli`.
2023-03-12 21:54:04 +01:00
Christopher Serr e7b893edce Implement more Detailed Timer Settings (#765)
This implements the following settings / features for the Detailed
Timer:
1. The ability to set / override the colors of the timer, segment timer,
   segment name, comparison names and comparison times.
2. The ability to turn off the gradient of the timer and segment timer.
3. The ability to set the accuracy of the comparison times.

This also updates all the npm packages to their latest versions.
2023-01-24 20:26:02 +01:00
Christopher Serr 3d8f36cb00 Resolve Key Codes with livesplit-core (#748)
This updates `livesplit-core` such that we can resolve the key codes
with its built-in resolving code. Also since `livesplit-core` introduced
a `max-opt` profile, we make use of that now and on top of that also
introduce `virtual-function-elimination` for the nightly / CI builds.
This is an additional LLVM pass that tries to eliminate as many function
pointers as possible by analyzing the whole program. Locally this
reduced the size of the function pointer table from around 500 to around
400 entries. There's also a flag for using WebAssembly SIMD
instructions, as that works perfectly fine on all browsers except
Safari. Of course we won't use it for deploying until Safari supports
those instructions, but it may be useful for some local testing.

Also with this `livesplit-core` update `SpeedRunIGT` splits can now be
parsed.
2022-11-08 18:42:55 +01:00
Christopher Serr f1515265a2 Build Rust's std with immediate abort (#746)
We generally want the wasm file to be as compact as possible. However
because there's so many paths in Rust code that could panic, but don't
ever in practice as they are meant to signal bugs, the wasm file has to
keep around all those panic paths, and even worse, all the code for
formatting the panic messages for all those different types that could
be involved in a panic. This bloats the binary a lot. There's a nightly
feature to build the standard library as part of your compilation and
with that you can pass various features to the standard library, just
like with any other crate. And one of those features is to remove all
the formatting machinery from the panics and just immediately abort,
resulting in smaller binaries. On top of that by building the standard
library ourselves we also get to build it with all our target features,
meaning that its code will make use of all the additional WebAssembly
instructions that have been added since the MVP. So this essentially is
a big win. However this forces us to use the nightly compiler, but it
usually is actually quite stable. We won't be using any nightly features
of the language itself and only optionally use the compiler in our CI,
so the stable compiler continues to work just fine for local
development.
2022-11-08 01:18:32 +01:00
Christopher Serr 4a74d42012 Implement Hotkey Modifiers (#740)
This adds support for hotkey modifiers, such as Ctrl, Alt, Shift and the
Meta key. On top of that I ran `npm update` to truly update all the
packages to their latest semver compatible versions, which `dependabot`
doesn't seem to do for us. This also includes other updates in
`livesplit-core` that were done since the last update, such as the
precise formatting and parsing of the time stamps.
2022-10-12 17:50:09 +02:00
Christopher Serr 7706863a41 Update the favicons-webpack-plugin (#739)
While this technically updates us to an alpha version, this resolves all
of the remaining security issues.
2022-10-05 01:01:37 +02:00
Christopher Serr 2c371bf9f7 Update most remaining dependencies (#737)
This updates all the remaining dependencies that I was able to update.
React is still at version 16 because some of the components I use
apparently haven't been updated to support more recent versions of
React.
2022-10-01 16:09:51 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 5ede560acd Bump react-refresh-typescript from 2.0.2 to 2.0.7 (#713)
Bumps [react-refresh-typescript](https://github.com/Jack-Works/react-refresh-transformer) from 2.0.2 to 2.0.7.
- [Release notes](https://github.com/Jack-Works/react-refresh-transformer/releases)
- [Commits](https://github.com/Jack-Works/react-refresh-transformer/commits)

---
updated-dependencies:
- dependency-name: react-refresh-typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-01 01:57:36 +02:00
Christopher Serr 30c38779ce Update some dependencies (#730)
This should hopefully allow dependabot to progress further.
2022-10-01 01:50:46 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 4653ad072c Bump json-schema, jsprim and workbox-webpack-plugin (#729)
Bumps [json-schema](https://github.com/kriszyp/json-schema) to 0.4.0 and updates ancestor dependencies [json-schema](https://github.com/kriszyp/json-schema), [jsprim](https://github.com/joyent/node-jsprim) and [workbox-webpack-plugin](https://github.com/googlechrome/workbox). These dependencies need to be updated together.


Updates `json-schema` from 0.2.3 to 0.4.0
- [Release notes](https://github.com/kriszyp/json-schema/releases)
- [Commits](https://github.com/kriszyp/json-schema/compare/v0.2.3...v0.4.0)

Updates `jsprim` from 1.4.1 to 1.4.2
- [Release notes](https://github.com/joyent/node-jsprim/releases)
- [Changelog](https://github.com/TritonDataCenter/node-jsprim/blob/v1.4.2/CHANGES.md)
- [Commits](https://github.com/joyent/node-jsprim/compare/v1.4.1...v1.4.2)

Updates `workbox-webpack-plugin` from 6.4.1 to 6.5.4
- [Release notes](https://github.com/googlechrome/workbox/releases)
- [Commits](https://github.com/googlechrome/workbox/compare/v6.4.1...v6.5.4)

---
updated-dependencies:
- dependency-name: json-schema
  dependency-type: indirect
- dependency-name: jsprim
  dependency-type: indirect
- dependency-name: workbox-webpack-plugin
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-29 02:03:11 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> c0c846155a Bump node-forge and webpack-dev-server (#728)
Bumps [node-forge](https://github.com/digitalbazaar/forge) to 1.3.1 and updates ancestor dependency [webpack-dev-server](https://github.com/webpack/webpack-dev-server). These dependencies need to be updated together.


Updates `node-forge` from 0.10.0 to 1.3.1
- [Release notes](https://github.com/digitalbazaar/forge/releases)
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/0.10.0...v1.3.1)

Updates `webpack-dev-server` from 4.7.2 to 4.11.1
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.2...v4.11.1)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-type: indirect
- dependency-name: webpack-dev-server
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-29 01:54:35 +02:00