xnor
ecc3ff3ca4
WebUI: fix escaping of HTML special characters
...
JS code for torrent general properties, files, peers, trackers inconsistently
escaped HTML special characters, then the dynamicTable inconsistently escaped
again and then the value was set to HTML element text or html properties.
To fix this mess, don't escape any property values in the prop-*.js files.
Instead, make dynamicTable set HTML element text instead of html property by
default. This behavior can be overridden by setting a custom updateTd
function on the respective column, if needed. This is where the HTML escaping
should be done.
Also reordered existing updateTd functions to match column order, changed
custom updateTd functions from setting html to text property wherever possible,
removed custom updateTd functions that turned out to be redundant.
5 years ago
Thomas Piccirello
9804a2e06a
Fix typo
5 years ago
Thomas Piccirello
1439bcc864
Move JavaScript code into explicit namespaces
...
This cleans up the global namespace by explicitly exporting shared values. All html and JavaScript files have been converted to use explicit exports except for client.js and mocha-init.js
5 years ago
Chocobo1
60994df8d0
Conditionally disable port input field
...
Disable port input when "Use different port on each startup" option is selected.
This follows the behavior in GUI.
5 years ago
Clément Pera
f42b10f3b6
Remove max character limit of location path
...
I removed the maxlength attribute because we couldn't modify the location path when it has more than 100 characters.
5 years ago
Chocobo1
8d0d8e4dcb
Improve embedded tracker
...
Now it conforms to BEPs more closely.
5 years ago
Chocobo1
fba72f5fb7
Simplify code
5 years ago
Thomas Piccirello
7047974132
Extract WebUI localStorage access into class
5 years ago
Chocobo1
f907328bdc
Add const to class function
5 years ago
Chocobo1
230949ee3b
Cache and reuse detected MIME type
5 years ago
Chocobo1
b34d90df0b
Fix translation issues
...
By using disambiguation field instead of comment field to differentiate
translations.
5 years ago
Vladimir Golovnev (Glassez)
e649559650
Allow to refresh RSS item(s) via WebAPI
5 years ago
Tom Piccirello
bed143cafa
Don't save preferences until all options are processed
5 years ago
Thomas Piccirello
085ae05f19
Move WebUI views into separate folder
5 years ago
Thomas Piccirello
f214dd233b
Rename WebUI content files
5 years ago
Thomas Piccirello
b3f9b9e9b2
Rename WebUI toolbar files
5 years ago
Thomas Piccirello
3f8f9a3962
Remove html tags from inline page
...
This page's content is inserted into the existing page, so the presence of an <html> tag is incorrect.
5 years ago
Thomas Piccirello
feb1570c48
Simplify function implementation
5 years ago
thalieht
1f6f1716ad
Enable Super Seeding mode once ratio/time limit is reached
5 years ago
airium
2ded6dc636
Sort torrent names case-insensitively in webui
5 years ago
Thomas Piccirello
6b1481d328
Increase WebUI window heights
...
Using a max height of 600px to avoid unnecessarily tall windows.
5 years ago
Thomas Piccirello
b829a0c687
Support exclusions in WebUI table filters
...
Closes #10241
5 years ago
Chocobo1
e90a2c00a5
Replace QList by QVector
5 years ago
Thomas Piccirello
0fa28f233f
Add ability to add and ban a peer from the Web UI
5 years ago
Chocobo1
f4e7b8c6bf
Replace QMap with QHash
5 years ago
Chocobo1
c004a84f84
Avoid redundant actions/conversions
...
QSet::contains(QSet &) isn't doing anything magical it still has the usual loop
inside, so lets just save all the container conversions and do the loop ourselves.
5 years ago
Chocobo1
a3ca277eaf
Avoid back and forth string conversions
5 years ago
Thomas Piccirello
60a1835813
Display files hierarchically in Web UI content tab
5 years ago
Chocobo1
2346bc8f7c
Replace obsoleted QDateTime::toTime_t()
5 years ago
Chocobo1
cfe83275d3
Avoid redundant data copy by using JSON objects directly
5 years ago
Chocobo1
f6ee96ed83
Replace QVariantMap by QVariantHash
5 years ago
Chocobo1
7f300b757f
Use C++11 uniform initialization
5 years ago
Chocobo1
bad588a749
Move data keys into anonymous namespace and sort them
5 years ago
Chocobo1
25a94ee60a
Avoid redundant data conversions and lookups
5 years ago
Thomas Piccirello
c17d653544
Fix WebUI removing parameters from magnet links
...
Closes #10939
5 years ago
Thomas Piccirello
65dfec9acf
Minor refactor on WebUI download page
5 years ago
Thomas Piccirello
6ea6e52d99
Add context menu to Web UI search table
...
Web UI implementation of #10852 .
5 years ago
Thomas Piccirello
35ebd9a095
Default WebUI search tab to enabled
...
Search plugins and categories are now retrieved when the Search tab is first switched to. This prevents possible unnecessary instantiation of the SearchPluginManager.
5 years ago
Thomas Piccirello
e0037b819a
Always send paths with '/' as file separator
5 years ago
Chocobo1
19b8a52e44
Add helper function to convert to fixed-point string
5 years ago
Chocobo1
60faba60ea
Add availability column
...
Closes #1632 .
5 years ago
Vasiliy Halimonchuk
7fb1e07b39
Remove unused variables
5 years ago
Vasiliy Halimonchuk
80d1c48f0d
Fix typos
5 years ago
Vasiliy Halimonchuk
fe0fb3a251
Refactor `var` to `let`/`const` or `this`
5 years ago
Vasiliy Halimonchuk
b530e19a44
Implement tag management for WebUI
5 years ago
Vladimir Golovnev (Glassez)
ad6a40d5f4
Extract PeerAddress class into separate file
5 years ago
Vladimir Golovnev (Glassez)
60ffa3030e
Don't use deprecated libtorrent features
5 years ago
Chocobo1
7a5e883cd2
Revise inline keyword usage
...
And let compiler decide whether to inline functions.
5 years ago
Thomas Piccirello
6af01cfcbe
Add WebUI support for triggering context menus on mobile
5 years ago
Thomas Piccirello
f441d561a2
Refactor duplicate code
5 years ago