Commit Graph

1457 Commits

Author SHA1 Message Date
absidue 73ed185cea
Fixes opening an external player on the watch page passes user playlist (#5263)
* Fixes opening an external player on the watch page passes user playlist

* Make `inUserPlaylist` a required prop
2024-06-17 06:16:53 +08:00
absidue 74d01f88ca
Optimize saving watch progress and last viewed playlist in the history (#5266) 2024-06-15 12:01:26 +00:00
PikachuEXE efa580ce22
Improve create & edit playlist UX (#5226)
* * Make it impossible to create playlists with spaces wrapped name & show duplicate playlist message sooner

* * Update default new playlist name to include channel name when copying a remote playlist

* * Show duplicate playlist message sooner for blank playlist name

* Update per code review

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* * Only show blank playlist name message when spaces input

* ! Fix create button not disabled when input name blank (not empty)

* !* Fix message shown in edit mode, update edit mode to show error message for empty/blank/duplicate input playlist name

* $ Fix indentation warning from lint

* ! Fix able to create playlist with invalid playlist names

---------

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2024-06-13 20:00:56 +02:00
ChunkyProgrammer af6e1ce6c0
Bug fix: fix resetting search type when features are set (#5197)
* Feature search bug fix

* unset features not allowed in movies
2024-06-13 01:52:04 +00:00
ChunkyProgrammer d56731e2a3
check for 204 error (#5259) 2024-06-12 23:45:13 +02:00
PikachuEXE c3a99b6c40
! Fix error when fetching deleted comment replies in local API (#5255) 2024-06-12 22:16:29 +02:00
Markus Gaugg fae3dcd953
Optical enhancement - Improved spacing on the about page #5210 (#5257)
* Update About.css

Optical enhancement - Improved spacing on the about page #5210

* Update About.css

fixed lint error
2024-06-12 22:16:02 +02:00
PikachuEXE 7688f81a92
Update playlist page to add remove duplicate videos button for user playlists (#5191)
* $ Remove duplicate line in a method setting a property to the same value

* * Update playlist page to add remove duplicate videos button for user playlists

* * Make remove watched videos button visible when any video watched

* * Use different icon

* * Show no. of items to be deleted on prompts
2024-06-12 18:53:04 +02:00
Jason f7f6143847
Respect playlist sort order in `watch-video-playlist` (#5013)
* Implement playlist sorting

* Hide sort menu for remote playlists

* Remove 'Custom (descending)' sort order

I don't see the need for this particular sort order.

* Adjust sort order & align dropdown with 'More Options' button

* Make 'Latest added first' default option instead of custom

* Remove unlikely-to-be-implemented 'Date published' sorting options

Context from absidue: 'I don't think we should even attempt to support it, due to all of the situations where it wouldn't be possible.'

* Update to use sortOrder as main variable throughout

* Hide sort menu for playlists of length <2

* Send sorted user playlist to watch-video-playlist

* Implement minor reversing optimization / cleanup

* Update src/renderer/helpers/playlists.js

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* Change Playlist.js logic to cache user playlists, and pass the sorted user playlist

---------

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2024-06-12 18:49:52 +02:00
absidue d12abb82b5
Local API: Extract releases on auto-generated artist topic channels (#5241) 2024-06-11 12:49:18 +00:00
absidue eddee49a1e
Local API: Extract playlists on the auto-generated "Music" channel (#5250) 2024-06-11 12:19:53 +00:00
Mehul Sweeti Agrawal 27d2687579
Add confirmation popup before unsubscribing (#4896)
* Add confirmation popup before unsubscribing

* Added translation to confirmation popup

* Add accidental popup setting

* Remove extra parameter from handleSubscription function

* Resolve unsubscription problem in case of mutiple profiles
2024-06-11 12:01:29 +00:00
absidue b9146b1fe1
Fix mouse backward and forward buttons not updating the in-app buttons (#5242) 2024-06-11 13:26:08 +08:00
dependabot[bot] bb65ccd6a0
Bump youtubei.js from 9.4.0 to 10.0.0 (#5248)
* Bump youtubei.js from 9.4.0 to 10.0.0

Bumps [youtubei.js](https://github.com/LuanRT/YouTube.js) from 9.4.0 to 10.0.0.
- [Release notes](https://github.com/LuanRT/YouTube.js/releases)
- [Changelog](https://github.com/LuanRT/YouTube.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/LuanRT/YouTube.js/compare/v9.4.0...v10.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Disable undesired `enable_session_cache` setting

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2024-06-10 17:48:46 +00:00
Jason bf3304dfef
Use auto scrollbar size for all scrollbars except the side nav (#5172)
* Use auto scrollbar size for all except the side nav

* Have scrollbar increase in size on hover
2024-06-09 18:33:08 +02:00
Jason 51666b54b3
Play next/prev video after removing current video from the playlist (#5158)
* Remove un-utilized allowPlayingVideoRemoval disabled option

* Have currently deleted video entry become the prior entry in the playlist

* Fix issue where first video is skipped when current video after removal is zeroth & loop is enabled

* Handle first video in playlist being removed

* Fix shuffle prevVideo issue

* Fix wrong variable for reversal bug

* Implement suggested optimization
2024-06-07 06:09:56 +08:00
absidue 30851b2764
Limit which URLs FreeTube will open externally (#5213)
* Limit which URLs FreeTube will open externally

* Show toast when the URL was blocked
2024-06-06 14:26:13 +00:00
PikachuEXE f13f788cfe
Make adding duplicate disabled by default (#5044)
* * Make adding duplicate disabled by default

* * Make additional text work for multi video adding

* * Put controls toward the end

* * Add new label text to translation file

* * Use set instead of array for performance

* * Add aria-disabled to disabled playlist selector

* * Move toggles to the left
2024-06-04 23:04:02 +02:00
absidue aaea23b943
Switch settings sections and form elements to created lifecycle hook (#5224) 2024-06-04 09:00:10 +00:00
absidue d65f06a3f6
Add missing IPC channel constants (#5216) 2024-06-03 07:53:16 +00:00
absidue 048dab050b
Cleanup unused channel hiding code in ft-list-video-numbered (#5208) 2024-06-01 23:37:27 +00:00
absidue 94ab40c699
Hide recommendations from the Watch component, instead of hiding itself (#5203) 2024-06-01 14:14:21 +00:00
absidue a8a0106f2c
Consolidate clear subscriptions cache into one mutation (#5202) 2024-06-01 14:03:22 +00:00
absidue e884874a39
Store comment reply tokens separately to avoid reactivity (#5190) 2024-05-30 09:58:44 -04:00
Phil's Git repository f3ac478c1f
Display Subtitles/CC and 4k tag - #917 (#5119)
* #917 - Display Subtitles/CC and 4k tag

* Display Subtitles/CC and 4k tag - Implement themes

* Review comment changes - 4k and subtitle implementation

* Changes for review comments

* Implementation of "Live" label

* Back out duplication of "Live" label

* Changes based on code review
2024-05-30 08:31:44 +08:00
Jason 32a08d1741
Set a max length for many inputs (#5156)
* Set a max length of 100 for most inputs

Excluded are playlist descriptions, which presumably deserve to have some leeway, and the password input, to prevent the edge case of a user being locked out if they had a longer one set (and also why not for this one).

* Remove maxlength where it constrains valid inputs

* Update proxy port and playlist description maxlength

* Implement suggested changes

* Update with suggested changes to make null maxlength the default

* Implement suggested changes
2024-05-29 23:34:11 +00:00
dependabot[bot] e982e1eab6
Bump stylelint from 16.5.0 to 16.6.0 in the stylelint group (#5180)
* Bump stylelint from 16.5.0 to 16.6.0 in the stylelint group

Bumps the stylelint group with 1 update: [stylelint](https://github.com/stylelint/stylelint).


Updates `stylelint` from 16.5.0 to 16.6.0
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/16.5.0...16.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* Disable no-descending-specificity in ft-icon-button.scss

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2024-05-28 21:07:48 -04:00
Jason c5a8e5c6eb
Fix user playlist z-index issue (#5177)
* Fix z-index issue

* Update src/renderer/views/Playlist/Playlist.scss
2024-05-27 18:01:21 +02:00
ChunkyProgrammer 73be336bc3
Allow filtering searches by features (#5125)
* Allow filtering searches by features

* use include instead of some

* use created instead of mounted for ft-radio-button and ft-checkbox-list

Co-Authored-By: absidue <48293849+absidue@users.noreply.github.com>

* update css and classes used in ft-checkbox-list

* small bug fixes

* Remove unused prop

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

---------

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2024-05-27 09:15:31 +08:00
absidue 58cfbe3dcb
Convert unnecessary SCSS files to CSS (#5173)
* Convert unnecessary SCSS files to CSS

* Fix typo
2024-05-26 14:52:11 +00:00
absidue f37d08ff85
Access reactive video id once outside of the quick bookmark check (#5170)
* Access reactive video id once outside of the quick bookmark check

* Add comments
2024-05-26 10:03:06 -04:00
Jason decce537b2
Fix channel sort values to show the values they are (#5162) 2024-05-25 23:13:52 +02:00
Jason 81a75f134a
Quick bookmark button RTL & hover fixes (#5157)
* Fix checkmark icon being wrongly flipped for RTL languages

* Fix quick bookmark color disappearing on hover

* Remove vestigial code
2024-05-25 10:48:11 +00:00
absidue 2e43b09bf0
Use addVideo instead of addVideos for quick bookmark button (#5168) 2024-05-25 10:30:42 +00:00
absidue 60343163ce
Cache quick bookmark playlist to reduce the amount of lookups (#5169) 2024-05-25 10:25:13 +00:00
absidue ad981b3c3c
Fix hide/show channel in ft-list-video (#5149)
* Fix hide/show channel in ft-list-video

* Fix fetching the channel thumbnail
2024-05-23 14:38:42 +08:00
Jason 85b01dea38
Update playlist name with title (#5150) 2024-05-22 18:06:27 -04:00
Jason 8a82abe1cf
User playlists as grid (#4949)
* Implement user playlist grid view

* Update to use listType setting for user playlist display type

* Implement styling fixes & adjustments

* Update ft-refresh-widget to use fixed-top-bar mixin

* Fix mixin

* Disable quick bookmark button on Quick Bookmark playlist

* Fix isLoading artifact

* Implement missing Edit Mode properties for grid view

* Make playlist title fixed height

* Standardize gap between top bar and bottom section using CSS variables & calc()

* Make effectiveListType computed property

* Force list view on playlists for mobile devices

* Update to adjust height properly when playlist only has one item, not just zero

* Move is-side-nav-open and fixed-top-bar mixins to new partial file

* Add height threshold for forcing list view on playlist route

* Make user playlist grid top section sticky, not fixed
2024-05-22 16:43:35 +08:00
absidue eefe7e19f1
Fix gap next to banner when Hide Side Bar Labels is enabled (#5120) 2024-05-21 12:06:27 +00:00
absidue 9b2d7852cf
Fix getters in the store accessing the wrong state (#5130) 2024-05-20 13:58:53 +00:00
Jason 5d145da71c
Fix color of Sponsor Block category icons (#5132) 2024-05-20 10:21:10 +00:00
Jason f2d98887f0
Always have quick bookmark set (#5058)
* Update disabled ft-icon-button styling to show title on hover and use aria-disabled

* Update Quick Bookmark button logic

* Import regular fontawesome icons for showing the bookmark

The original plan: use the Quick Bookmark icons here for enabled/disabled sates. Problem: colors would be off if we used the same background color for the ft-list-item. Button would barely appear visible. Thereore, we should probably use the existing 'secondary' theme. Problem: the 'checked' icon then looks unrecognizable and instead generic. Solution: use 'unfilled'/regular icon version for disabled state and 'filled'/solid icon version for enabled state, specifically on the ft-playlist-info page.

* Implement Quick Bookmark establishment on startup, playlist addition, and playlist deletion

* Update translation text

Co-authored-by: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* Prevent quick bookmark playlist target from being deleted

* Co-authored code with @PikachuEXE allowing quick bookmark to be set on ft-list-playlist item

* Update logic to use empty or latest played playlist as fallback target

Also removes now unneeded on-removal logic.

* Update to add toast messages on disabled icon buttons

* Update disabled bookmark icon styling

* Update to use @disabled-click event instead of showToast-specific behavior

The prior implementation was also leading into module loading errors.

* Update label to be more clear, and add periods to convey more seriousness

* Update casing for label

* Remove outdated piece of code

---------

Co-authored-by: PikachuEXE <git@pikachuexe.net>
Co-authored-by: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com>
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2024-05-20 11:53:05 +02:00
absidue 8c37abaea6
Skip superfluous conversion to Date in ft-list-video (#5123) 2024-05-19 21:41:53 +00:00
efb4f5ff-1298-471a-8973-3d47447115dc b9d5778a4d
Sorted and grouped themes and colors (#5114)
* Sorted and grouped themes and colors

* Sort themes properly in dropdown

* Add code comment about grouping

* Fix lint

* fix lint again

* lint should be fixed now

* trim whitespace again...

* Add comment for consistency
2024-05-16 18:43:51 +02:00
Jason 530d6c88d1
Constrain release notes width (#5111)
* Add 'readable width' theme for making release notes more easily readable

* Update spacing to be even

* Update width to 50em

* Update mobile changelog styling
2024-05-15 21:59:39 +02:00
absidue 2fcd5c985e
Fix hide sharing actions also hiding hide/show channel (#5110) 2024-05-14 09:17:48 +00:00
absidue a9c9f10059
Format links and show title in the in-app changelog (#5045) 2024-05-14 08:41:27 +08:00
Emma d47b1fb7c8
Remove check for `role` === `button` in `ft-prompt (#5096) 2024-05-12 08:26:57 +08:00
absidue 7685d75e79
Move local API player cache internals into the main process (#5068) 2024-05-11 18:43:57 +00:00
absidue 7bdf45cc26
Move observe-visibility directive registration to main.js (#5088) 2024-05-09 08:34:57 +08:00