Commit Graph

634 Commits

Author SHA1 Message Date
Charles Kerr 54a7cac25a
chore: run uncrustify in parallel; add package.json to web directory (#1454)
* refactor: add package.json for web client

* refactor: call uncrustify in parallel
2020-09-20 15:41:45 -05:00
Charles Kerr 017fa1cf1e fixup! chore: add precommit hook for testing code style (#1448) 2020-09-14 13:02:03 -05:00
Charles Kerr be219ddee0
chore: add precommit hook for testing code style (#1448)
* chore: add precommit hook for testing code style

* chore: use prettier + eslint for js code
2020-09-13 21:41:32 -05:00
Charles Kerr 09cc4c7a68
fix: broken HTML (#1446)
* chore: refresh css files with sass 1.26.10

* fix: css selector for toolbar-separator

* chore: fix duplicate html ids in mac client faq

* fix: duplicate ID 'pagetitle' tags in Mac help

* fix: duplicate ID 'taskbox' tags in Mac help

* chore: fix mismatched div
2020-09-12 21:44:47 -05:00
Charles Kerr 83cc7e04c8
Fix more coverity warnings (#1445)
cast intentionally-ignored function retval to null

remove superfluous JSON polyfill from web client.
2020-09-12 08:17:18 -05:00
Charles Kerr efaa66a920
fix: resolve some lgtm warnings (#1444)
* fix: warnings found by LGTM static analyzer
2020-09-11 16:07:45 -05:00
Pedro Scarapicchia Junior 0a897cb3aa
Remove unused html (#1313) 2020-06-14 16:04:26 -05:00
Charles Kerr 8739cb9c88
fixup! (trunk) update credits (#1205) 2020-05-02 11:42:18 -05:00
Mike Gelfand 3ba0b9df15 Fixup some formatting leftovers (JS) 2019-02-17 17:51:13 +03:00
Mike Gelfand c951848a5b Merge branch '2.9x' 2018-05-01 22:44:51 +03:00
Mike Gelfand 913d9d3f37 HTML-escape torrent name displayed in trackers inspector tab
This will prevent injection of arbitrary HTML when multiple torrents are
selected. Follow-up to the previous commit.
2018-04-17 13:25:49 +03:00
Mike Gelfand 523d8c1317 Tracker error XSS in inspector (web client)
Tracker error messages are inadequately output encoded when rendered by the
tracker information page inside the WebUI, allowing a malicious tracker to
inject an XSS payload into the page. Esploiting this issue allows an
attacker to supply arbitrary client-side code that will ultimately be
rendered and executed within the end user's web browser.

Found by Rory McNamara (Gotham Digital Science). CVE pending.
2018-04-17 13:25:49 +03:00
Mike Gelfand aa2730d47c Switch to HTTPS links, adjust wiki links where possible
Fixes #39
2018-01-16 01:12:59 +03:00
Robert Vehse a6ef87b92d Update all instances of the donation link. Fixes #26. 2018-01-15 23:57:46 +03:00
Mike Gelfand edf158b509
Merge pull request #364 from futekov/patch-2
Download/upload speed typography changes for web ui
2017-11-28 22:48:10 +03:00
Mike Gelfand 486f040be4 Fix torrent list styling issue in Chrome 59+ (patch by @kyleinprogress)
Fixes: #384
2017-08-27 09:52:02 +03:00
clyang f21c9109ee Disable browser to autocomplete on torrent url field
It disrupts the view and I can't come up a daily usage scenario that needs to utilize autocomplete function.
2017-08-11 00:52:40 +08:00
Alexander Futekov 660b44da70 DL/UL speed typography changes for web ui
The current icons are very hard to read at the current font size and it's not immediately visible which icon i which.

Additionally, spaces after icons are removed because upload icon is equally positioned between DL/UL speeds (like so `↓ 273 kB/s **↑** 0 kB/s`) which requires reading the whole line to make sense of which number the arrow applies to.

To further separate one type of information from another the hyphen is replaced by the slightly wider en dash.

Old vs New:
Downloading from 7 of 19 peers - ↓ 273 kB/s ↑ 167 kB/s
Downloading from 7 of 19 peers – ▼273 kB/s ▲167 kB/s
2017-08-07 06:34:00 +03:00
Sven Depondt 7ded47bb7c Revert indentation from commit d94f44b
`switch` and `case` are on the same level everywhere else.
2017-07-30 14:36:58 +02:00
Sven Depondt d94f44b777 Rework hotkeys for focused input fields and open dialogs
Also added 2 hotkeys:
    1. `i` Toggle inspector
    2. `l` Set location
2017-07-30 13:54:13 +02:00
Sven Depondt 0978dbf890 Use id when handling hotkeys for specific dialogs
Identifying a dialog by it's header title is kinda dirty and now we use
the dialogs id instead. We also check if the dialog is visible before executing
the hotkey action.
2017-07-28 22:32:18 +02:00
Sven Depondt a52ef89161 Add keyboard hotkeys for web interface 2017-07-28 18:56:50 +02:00
Mike Gelfand 54b786c9f3 Merge pull request #320 from gonstr/master
(web) show upload torrent file button on mobile devices
2017-07-16 21:01:09 +03:00
Mike Gelfand 7e6f1a8dc8 Set idle seed limit range to 1..40320 (4 weeks tops) in all clients
Fixes: #212
2017-07-05 21:07:16 +03:00
gonstr bb426c47c4 Removed freespace-info class from sass file 2017-07-01 19:44:38 +02:00
gonstr 2624c6b73b Unhide upload file button 2017-07-01 19:26:34 +02:00
Fish2 b0e3d4c37d lossless compression of images saved 72KB 2017-06-03 23:52:34 +01:00
Mike Gelfand 4df187885f Merge pull request #146 from tonsV2/master
ETA is now shown in compact view.
2017-05-21 07:24:59 +03:00
Mike Gelfand bcfe147e6a Fix web UI loading on mobile devices 2017-05-21 06:49:41 +03:00
Sebastian Jensen cad82b64d9 ETA is now shown in compact view. 2017-05-21 06:48:56 +03:00
lisenenkov b4068e39f0 Merge branch 'master' into master 2017-02-12 18:44:06 +03:00
lisenenkov 076535e3d3 Update inspector.js
https info not showed
2017-02-12 18:41:50 +03:00
Mike Gelfand a3654c65a5 Replace setInterval() with setTimeout() for web UI refresh (patch by WGH)
Fixes: TRAC-6031
2017-01-15 11:17:31 +03:00
Markus Amalthea Magnuson 727b9671f7 Update all website links to canonical HTTPS version. 2016-10-31 10:00:11 +01:00
Robert Vehse 13bae8179e Update all instances of the donation link. Fixes #26. 2016-09-23 04:36:41 +02:00
Mike Gelfand 66285a525b Web UI: main() refactoring (patch by skybon @ GH-9)
Less jQuery, more Web API. Moved main() away from common.
2016-04-12 19:03:01 +00:00
Mike Gelfand 5569efc3d4 #6089: Beautified JavaScript (patch by skybon) 2016-03-10 19:05:13 +00:00
Mike Gelfand 5e3c60f565 #5974: Torrents queued should be able to "Resume Now" (patch by JJTagy) 2016-01-03 20:57:42 +00:00
Mike Gelfand 8b4da8c22e #4518: Mark appropriate fields in prefs as html5 number fields (patch by e-moe) 2015-10-08 18:54:43 +00:00
Mike Gelfand 7177d43ba1 #5944: Unify indentation style and strip trailing whitespaces across JS code, no functional changes (patch by xzcvczx + a lot more) 2015-05-05 19:12:48 +00:00
Mike Gelfand 50364a7883 #4866: Replace existing menus with jQueryUI menu 2015-04-30 05:20:48 +00:00
Mike Gelfand 9674df5c4d Use jQuery UI's `ui-helper-hidden` CSS class instead of our own 2015-04-26 03:35:44 +00:00
Mike Gelfand cd8ed4ff10 #5894: Get rid of eval() in JS code (patch by Ancient; 2nd part) 2015-04-23 19:30:40 +00:00
Mike Gelfand fd8e1e25a4 #5894: Get rid of inline styles in HTML (patch by Ancient; 1st part, slightly modified per IRC discussion) 2015-04-23 19:02:38 +00:00
Mike Gelfand 06d73853b9 Even better (and unified) torrent origin logic for GTK+, Qt and web clients 2015-04-22 21:04:49 +00:00
Mike Gelfand ea368388ed Fix JS error on undefined creator during inspector update
Since torrents' info is fetched asynchronously, it may not yet be
available when inspector updates. Account for possibly undefined
creator.

Refine logic used to construct torrent origin phrase to prevent
results such as "Created by  on <date>" or "Created by <creator>
on ".
2015-04-22 20:36:28 +00:00
Mike Gelfand dc1eb80dca #5894: Fix autotools build ("trailing backslash on last line") 2015-04-21 21:23:15 +00:00
Mike Gelfand ff7638d901 #5894: Update jQuery to 1.11.2 (with Migrate plugin 1.2.1), jQuery UI to 1.11.4 2015-04-21 21:17:45 +00:00
Jordan Lee d11f016ae8 (trunk, libT) #5699 'Toggle Inspector's Origin: is incorrect' -- fixed, patch by enzotrew 2014-07-03 19:31:59 +00:00
Jordan Lee 157bbe73f6 (trunk, web) #5620 'Inspector - Clickable urls in Comment field' -- added with patch by e-moe, thanks also to cfpp2p for testing 2014-04-15 21:30:38 +00:00