transmission/web
Yat Ho 22687c5480
fix: WebUI render html entity in torrent ratio (#6491) (#6500)
(cherry picked from commit 3b017dbd86)
2024-01-07 11:22:33 -06:00
..
assets fix: web ui start/pause button icon size (#5771) 2023-08-21 13:32:23 -05:00
public_html chore: update webapp (#6347) 2023-12-06 15:22:31 -06:00
src fix: WebUI render html entity in torrent ratio (#6491) (#6500) 2024-01-07 11:22:33 -06:00
.eslintrc.js Refresh web interface across desktop and mobile (#3985) 2022-10-21 12:22:59 -05:00
.gitattributes feat: web client style (#2609) 2022-02-11 18:32:20 -06:00
.nvmrc [Web] Magnet link, Main window toolbar accessibility, ARM build fix, Dependencies update (#2586) 2022-02-09 10:28:48 -06:00
CMakeLists.txt ci: add option to disable installation of web assets (#4906) 2023-02-22 06:25:50 -06:00
README.md docs: add web/README.md with instructions on building without Node.js 2023-12-04 10:39:34 -06:00
babel.config.js feat: web client refresh (#1476) 2020-10-23 20:04:25 -05:00
package-lock.json deps: bump webpack from 5.75.0 to 5.76.0 in /web (#5228) 2023-03-15 10:05:57 -05:00
package.json deps: bump webpack from 5.75.0 to 5.76.0 in /web (#5228) 2023-03-15 10:05:57 -05:00
prettier.config.js feat: web client refresh (#1476) 2020-10-23 20:04:25 -05:00
stylelint.config.js chore: revert 5b14df51c (#4663) 2023-01-25 15:00:23 -06:00
webpack.config.js build: downgrade web deps (#4644) 2023-01-23 14:50:21 -06:00

README.md

Transmission Web Client

A web interface is built into all Transmission flavors, enabling them to be controlled remotely.

Notes for Packagers

Building Without Node

Transmission includes a prebuilt webapp bundle in its releases. This is done because it's not easy to install the bundling tools on all of the platforms that Transmission supports. Debian can't use this prebuilt bundle due to its (understandable) policies that require building from source. Unfortunately, building with node run build is also problematic because of some of package.json's devDependencies aren't available as Debian packages.

Follow these steps to build the webapp from source on Debian without Node:

$ sudo apt install rsass perl esbuild
$ cd transmission/web/
$ rsass assets/css/transmission-app.scss > assets/css/transmission-app.css
$ perl -p -i -e 's/transmission-app.scss/transmission-app.css/' src/main.js
$ esbuild \
  --allow-overwrite \
  --bundle \
  --legal-comments=external \
  --loader:.png=binary \
  --loader:.svg=binary \
  --minify \
  --outfile=public_html/transmission-app.js \
  src/main.js

Notes for Developers

$ npm install
$ npm run dev

Navigate to localhost:9000 to run the app.

When you use npm run dev, the bundler will stay running in the background and will rebuild transmission-app.js whenever you change and save a source file. When it's done, you can reload the page in your browser to see your changes in action.

Notes for Testers

Use this bookmarklet to anonymize your torrent names before submitting a screenshot:

javascript:void%20function(){const%20a=document.getElementsByClassName(%22torrent-name%22);for(const%20b%20of%20a)console.log(b),b.textContent=%22Lorem%20ipsum%20dolor%20sit%20amet.iso%22}();

Youll typically have about 3 seconds before the next batch of RPC updates overwrite the text content of any currently-downloading files.