Commit graph

51 commits

Author SHA1 Message Date
mastihios 0947c26612
Fix URL-encoding in href strings (#2460)
* hrefs: replace HTML.escape w/ URI.encode_www_form

* Fix search_query_encoded
2021-10-11 05:18:20 -07:00
Samantaz Fox 56ebef4352
Multiple front-end fixes (#2247)
Fixes:
* Sanitize user-provided content in HTML (Fixes #2193)
* Fix encoding of search query in prev/next pages (Fixes #2229)
* Fix some issues introduced with #2196:
   - Fix alignment of all <h3> elements (Move the inline style from the parent to the <h3> element)
   - Add missing comma on 'dir' HTML attribute (Typo introduced by PR #2196)

Code cleaning:
* Remove unnecessary 'each_sclice' + 'each' double loop in ECR files
* Clean the player's <source> list generation code (in player.ecr)
2021-07-15 23:01:36 +02:00
Samantaz Fox 9e4fd193c6 Limit descriptions width to ease mixed LTR/RTL text reading
This will prevent, on large pages, the LTR and RTL text to be
far away, on each side of the page. This could happen on channel
and playlists descriptions, when the page is displayed on a large
screen.
2021-06-24 17:35:44 +04:30
Mostafa Ahangarha d16a748f37 set alignment for feed link 2021-06-24 17:08:40 +04:30
syeopite 10804927bb
Add channel redirect 2021-06-19 04:16:18 -07:00
saltycrys 5f03a583d1 Update code for Crystal 0.36.0
Rename `HTTPClient@socket` to `HTTPClient@io`, see
https://github.com/crystal-lang/crystal/pull/9543.

Rename `URI#full_path` to `URI#request_target`, see
https://github.com/crystal-lang/crystal/pull/10099.
2021-02-02 20:01:02 +01:00
Triplesalt ec4a22687f
Update get_about_info for polymer (iv-org/invidious#1423) (#1429)
Update get_about_info for polymer (iv-org/invidious#1423)
2020-10-23 01:40:07 +00:00
Omar Roth f92027c44b
Escape 'sort_by' 2020-03-10 11:25:32 -04:00
Omar Roth b1fc80b79a
Update sub_count extractor 2019-09-12 21:09:23 -04:00
Omar Roth 4c9975a7d9
Use accurate sub count when available 2019-08-21 18:35:54 -05:00
Omar Roth 4f120e19fd
Fix overflow for channel description 2019-08-04 09:46:26 -05:00
Omar Roth f71d5c429d
Add description to channel pages 2019-07-31 19:29:16 -05:00
Omar Roth bcd239ac2b
Add community page 2019-07-09 09:31:04 -05:00
Omar Roth 196ee1aa8b
Add '/api/v1/channels/comments' 2019-07-02 18:53:19 -05:00
Omar Roth 48ad744ebf
Add support for default channel banners 2019-06-30 12:59:38 -05:00
Omar Roth 556d5b0ca5
Resize channel thumbnails 2019-06-30 12:39:51 -05:00
Omar Roth 0d0d3edeae
Add thumbnail and banners to channel page 2019-06-28 20:48:24 -05:00
Omar Roth d1635cf24e
Set max preference size 2019-06-08 16:04:55 -05:00
Omar Roth 0099a9822e
Refactor subscribe_widget 2019-05-05 08:38:55 -05:00
Omar Roth 1a9360ca75
Minor formatting changes 2019-05-01 20:03:39 -05:00
Omar Roth d20a4a8bfc Fix grid size for smaller devices 2019-04-14 17:04:52 -05:00
Omar Roth 0c6cede287 Format files and trim trailing whitespace 2019-03-23 14:05:13 -05:00
Omar Roth 9b8703cf49 Fix tab name for auto-generated channels 2019-03-08 22:01:59 -06:00
Omar Roth 10abcd519f Add RSS alternate to channel and subscription pages 2019-03-07 13:34:33 -06:00
Omar Roth 2c9b148627 Add 'playlists' tab to channel page 2019-03-03 10:56:04 -06:00
Omar Roth 6b12449be4 Show playlists for auto-generated channels 2019-02-24 16:39:44 -06:00
Omar Roth 6218078c51 Pull subscribe widget into separate file 2019-01-27 21:06:28 -06:00
Omar Roth a160c645c9 Add support for translations 2018-12-20 15:32:09 -06:00
Omar Roth 6b12f11e10 Add ability to mark videos as watched in subscription feed 2018-11-19 22:06:59 -06:00
Omar Roth c7e8d623c0 Support overflow grid 2018-11-19 18:43:06 -06:00
Omar Roth 6ca7a71db9 Fix channel sort on mobile 2018-11-15 17:05:29 -06:00
Omar Roth 44e9b4ac2a Add channel sort options 2018-11-13 19:04:25 -06:00
Omar Roth c92f6e44e7 Update keywords and view_count 2018-11-02 08:09:28 -05:00
Omar Roth 94d116974b Add break between text and sub count 2018-10-19 16:20:35 -05:00
Omar Roth 5c87cf1547 Update subscribe buttons 2018-10-19 11:14:26 -05:00
Omar Roth 245d0b571f Add next page for channels with geo-blocked videos 2018-10-14 09:06:04 -05:00
Omar Roth 1a39faee75 Add subCountText and add XHR alternative for subscribing to channels 2018-10-12 21:17:37 -05:00
Omar Roth 62380933b2 Add support for playlists and channels in search 2018-09-20 09:36:09 -05:00
Omar Roth b17d3d1e51 Bump number of videos in channel resources to 60 2018-09-06 08:43:22 -05:00
Omar Roth 044a57ef34 Fix video count for channels 2018-09-04 23:01:46 -05:00
Omar Roth 5632e58636 Add support for genre channels 2018-09-04 21:04:40 -05:00
Omar Roth 9a15438c71 Minor formatting changes 2018-08-17 11:04:38 -05:00
Omar Roth 9e68df965b Add 'view channel on Youtube' link 2018-08-17 10:57:08 -05:00
Omar Roth 3ba2a7d921 Fix referers 2018-08-17 10:19:20 -05:00
Omar Roth 2cedac8c58 Don't show 'next page' or 'previous page' where not applicable 2018-08-14 19:15:33 -05:00
Omar Roth b9315bc534 Major cleanup 2018-08-04 23:14:57 -05:00
Omar Roth b49456da97 Switch from using fontawesome to ionicons 2018-07-30 18:38:55 -05:00
Omar Roth 6221496f66 Add proper padding for channel elements 2018-07-29 09:47:32 -05:00
Omar Roth ac5dbadfc1 Add channel RSS 2018-07-28 08:24:53 -05:00
Omar Roth 96c520b02b Add user preferences 2018-07-16 11:24:24 -05:00