Commit Graph

142 Commits

Author SHA1 Message Date
Svallinn 5a2c1f401f
Store/Settings: Refactor `grabUserSettings` action
This function made use of a switch statement that was hundred of
lines in height and a majority of cases had similar logic.

This commit generalizes the logic of the majority of the cases into
a condensed for loop, which additionally handles the few existing
oddball cases in an easy-to-understand manner.
2021-06-07 15:22:50 +01:00
Svallinn e4d7790d6d
Store/Settings: Remove unnecessary `updateInvidiousInstance` call
The 'grabUserSettings' action calls the 'updateInvidiousInstance'
action whenever the database returns an empty value for this setting.

However, that scenario should never happen in the first place.
In addition, a default value is already provided directly in the state.
2021-06-07 15:22:49 +01:00
Svallinn 58bd0d1f36
Store/Settings: Rename `webframe` -> `webFrame` and respective import
This fixes an issue in which the user's preferred UI scaling was
being ignored on startup.
2021-06-07 15:22:49 +01:00
Svallinn 49c4c7ac5e
Store: Refactor the settings module
The settings' store module has had a lot of duplicated logic for
the majority of its getters, mutations and actions.

This commit serves to remedy that duplication substantially
by auto generating all getters, mutations and the majority
of actions, using a predictable pattern.
2021-06-07 15:22:01 +01:00
PikachuEXE a3cf210fca
Update Youtube URL handling to recongnize playlist ID in URL (#1260)
* * Update Youtube URL handling to recongnize playlist ID in URL

Only for format of `https://www.youtube.com/watch?v=vid&list=lid`

* ! Fix vue component prop declaration

A prop where the value can be undefined cannot be declared "required"
2021-05-31 13:23:35 +02:00
Preston 5f54a26e8b Merge branch 'v0.13.1-hotfix' 2021-05-29 17:52:23 -04:00
Luca Hohmann 5f1818ee91
Setting to enable and disable display of video play button (#1370)
* Added setting to toggle play button in video player

* Fixed wrong way around boolean check

* Fixed setting not loading on startup
2021-05-29 20:35:28 +02:00
Alex Stewart f9f5223f23
Allow changing volume by scrolling over any part of video player (#1254)
* Added toggle component to settings

* Setting to toggle this feature is now functional. Video volume can now be changed by scrolling anywhere on the video, or just on the slider, depending on this setting

* Added translation lines for en_US and en_GB

* Changed setting line from 'Scroll Volume Over Video' to 'Scroll Volume Over Video Player'

* Changed 'mousewheel' to 'wheel' event, as 'mousewheel' is deprecated

* Ran lint check in settings.js

Co-authored-by: Alex Stewart <albinexotech@gmail.com>
2021-05-26 17:55:11 +02:00
Svallinn af0353ea32
Refactor: Erase `@electron/remote` references and other dangerous calls
The `remote` module is deprecated and `@electron/remote` is unnecessary,
since the `ipcMain` and `ipcRenderer` can replace their functionality,
providing better performance and better security.

All other dangerous calls (mainly pulling main process constructs into
the renderer process) have also been removed.
2021-05-22 00:49:48 +01:00
Svallinn 56f4c37735
Search: Fix up a few duration and upload time related options 2021-05-20 17:21:26 +01:00
Filip Czaplicki 440b04bbf0
SponsorBlock (#1130)
* SponsorBlock: enable/url settings

* SponsorBlock: fetch and display skipped fragments

* SponsorBlock: skip sponsor blocks

* npm add node-forge

* SponsorBlock: use hash prefix API

* SponsorBlock: configurable toast on skipped segment

* SponsorBlock: add /api/ to url, remove trailing slash
2021-05-16 16:01:24 -04:00
Svallinn bd60d3c838
Top-Nav: Fix undefined/misplaced references 2021-05-11 16:28:26 +01:00
PikachuEXE 82aeaac734
* Update top nav search input to direct to channel panel when channel URL provided (#1221)
* $ Extract function which extract details from a Youtube URL

* * Update top nav handling to use extract function to handle input text if it's Youtube URL

* - Remove no longer used function
2021-04-28 19:21:16 +02:00
Svallinn 5f4ea74c16
Prevent deleted history and profile data from being exported
Closes: #934, #937

This assures that the profiles and history datastores are properly
compacted before their respective exports
2021-04-21 05:09:06 +01:00
Svallinn 52e600dc13
Bugfix: load of subscriptions at startup (#1216) 2021-04-20 18:07:47 +00:00
Luca Hohmann c5fac9fcd7
Video meta file removal option (#1154)
* Implemented video meta file removal option

* Lint fix
2021-04-01 15:54:45 +02:00
Luca a27fc9215c Unnecessary print removed 2021-03-27 19:03:57 +01:00
Luca dcef4261a7 Final adjustments 2021-03-27 19:02:53 +01:00
Luca 3cca33eac3 More cleanup 2021-03-27 19:01:05 +01:00
Luca 4e11233f3e Verify check 2021-03-26 19:30:44 +01:00
Luca 24d12a4357 Started investigating default profile loading inconsistency 2021-03-19 12:05:25 +01:00
Luca d2ee285e45 Added fix for wrongly applied publishedText template 2021-03-17 23:15:36 +01:00
Svallinn 7eda649293
Support for the 't' parameter in links (#1090)
This allows users to specify the timestamp of a video (in seconds)
- by inputting a link into the search bar
- by making use of the protocol link (freetube://), p.e in a browser
2021-03-06 14:03:40 -05:00
Sai Deepesh 3b75a97859
added playlist next video interval (#1006) 2021-03-06 11:25:50 -05:00
Sai Deepesh 8c88571f6f
feat: added ability to hide Playlists (#972) 2021-03-06 11:21:22 -05:00
Preston a3fe91bef5 Update to Webpack 5 and Electron 12 2021-03-02 22:51:01 -05:00
Preston ce115d2737 Tweak aspect ratio logic and fix proxy logic 2021-01-17 11:09:51 -05:00
Preston aeeb911f0f Fix network leak when using certain modules with the proxy enabled 2021-01-15 22:08:50 -05:00
Preston 890d5b4a09 Allow pasting Playlist URLs in search to navigate straight to playlist page 2021-01-15 11:34:44 -05:00
Preston 9a75e6a53a Fix toast string and add support for embed URLs when parsing links 2021-01-14 22:37:52 -05:00
Preston 659415edc3 Initial Playlist implementation. Functions like basic favorites list 2021-01-14 18:03:23 -05:00
Preston 6d7d874bc0 Add Proxy configuration to settings. Fix ft-video-list height when using list display 2021-01-14 13:51:33 -05:00
pablodekota f65377127d
Hide active subscriptions (#918)
* Update distraction-settings.js

* Update side-nav.js

* added hiding subscription activity

* Update distraction-settings.js

* Update distraction-settings.js

* Update side-nav.js

* Update side-nav.vue

* Update distraction-settings.vue

* Update settings.js

* Update side-nav.vue

* Update distraction-settings.js

* Update en-US.yaml

* Update en_GB.yaml

* Update distraction-settings.js

* Update settings.js

* Update side-nav.vue

* Update side-nav.vue

* Update side-nav.vue

Co-authored-by: Pablo <8d1d1de7-176f-4d40-b5f0-5a552aabd433@4wrd.cc>
2021-01-09 22:11:42 -05:00
Violet Rose 35345855c6
Adding playlist database logic (#802)
* Added playlist database logic.

* Added grab.

* Added removeOnWatched.
2021-01-01 13:15:24 -05:00
Preston 9eb3b1fc20 Fix playback rates and search pagination 2020-12-17 11:22:05 -05:00
Preston 2b31078e05 Prepare search code for pagination 2020-12-14 14:52:22 -05:00
Preston 1a9cdacd75 Update search filters to work with updated search module 2020-12-14 14:15:29 -05:00
Preston 7eb0a400c5 Allow local API video extractor to return error messages in the user's preffered locale 2020-12-06 20:15:31 -05:00
Preston de3cff57c5 Fix Invidious Fallback logic 2020-10-31 11:23:26 -04:00
Preston 46c271aa22 Fix linter issues 2020-10-27 13:47:40 -04:00
Preston f75df62c90 Move logic to utils store and load country data on boot 2020-10-22 14:56:49 -04:00
Preston 351a6a3992 Add error handling for search filters 2020-10-21 11:23:40 -04:00
Preston 4240bf9e35 Update Premiere Logic 2020-10-08 21:53:34 -04:00
Preston d6e4a1e9cc Add Setting to disable smooth scrolling 2020-10-07 09:57:22 -04:00
Preston 7219aa3bd6 Grab all playlists instead of 100 2020-10-06 17:38:38 -04:00
Preston 15c73ee0b3 Allow UI Scaling and Have side bar open by default 2020-10-06 11:53:54 -04:00
Preston 382405cdfe Disable settings depending on others and move default profile logic 2020-10-06 09:38:35 -04:00
tayloraviets d5970f58c6
PR ready distraction free feature (#596)
* PR ready distraction free feature

Signed-off-by: Taylor <tayloraviets@gmail.com>

* presumably fixed linter issues

Signed-off-by: Taylor <tayloraviets@gmail.com>

* addressed PR issues and hopefully made the linter happy

Signed-off-by: Taylor <tayloraviets@gmail.com>

* fixed more linter issues

Signed-off-by: Taylor <tayloraviets@gmail.com>

* fixed more linter issues again

Signed-off-by: Taylor <tayloraviets@gmail.com>

* fixed more linter issues again.

Signed-off-by: Taylor <tayloraviets@gmail.com>

* moved bad quote

Signed-off-by: Taylor <tayloraviets@gmail.com>
2020-10-05 22:27:32 -04:00
Preston cbb1b853b5 Fix more linter issues 2020-10-04 14:42:46 -04:00
Preston 88117cb360 Update -, build.yml, and 3 more files... 2020-09-30 20:49:43 -04:00
Preston b0d1ddf1ac Add notifications for new blog posts and app updates 2020-09-20 14:22:39 -04:00
Preston 648b2884e4 Enable more locales and replace https://invidio.us defaults with https://invidious.snopyta.org 2020-09-16 09:51:26 -04:00
Preston 3b061c0bec Update dependencies 2020-09-12 20:36:02 -04:00
Preston f895703446 Fix subscription order for live or streamed videos 2020-09-02 21:00:24 -04:00
Luca 4dcfc28f17 Fix of the ft-video-list display since release from streams 2020-09-02 22:59:16 +02:00
Preston 8f35f95a5b Finish Core Subscriptions logic and add more locales to profiles page 2020-09-01 23:21:32 -04:00
Preston 1e035105d1 Finish Profile Logic and working subscriptions 2020-09-01 23:21:32 -04:00
Preston 0a612ae0e7 Create Profile Edit Page 2020-09-01 23:21:32 -04:00
Preston b291cbf37b Start progress on adding profiles 2020-09-01 23:21:32 -04:00
Preston 160eae91c5 Fix playlist user links, fix mini playlist card in watch page. Update dependencies. 2020-08-27 17:40:01 -04:00
Preston 34a77c3051
Merge pull request #77 from Deedone/master
Adding caches
2020-08-24 17:14:13 -04:00
Preston 602a140361 Fix Locale issues and add Privacy Settings card to settings page 2020-08-22 16:51:04 -04:00
Mykyta Poturai 69dada2df4 Add caching for trending videos 2020-08-22 23:37:09 +03:00
Preston 2133a10efa Implement History and jump to last watched time progress 2020-08-19 22:39:44 -04:00
Luca d4a3d35734 Local API Publication Strings, Localization Files 2, Live and Upcoming
videos
Added:
1) Local API Publication Strings - When using the local API, the
correctly translated strings stating how much time since publication has
passed are displayed
2) Localization Files 2 - Added additional strings for upcoming videos
as well as the missing strings to the third translation marked as
missing

Fixed:
Live and Upcoming videos - Livestreams were not handled before but are
now correctly implemented. Upcoming videos have a dummy string until the
relevant data is provided by the scraper
2020-08-18 21:37:43 +02:00
Luca 91bcf52dab Video publication string, Localization files
Added:
1) video publication string - The code now creates a correctly
translated string for the info on how far back the publication was
2) Localization files - Added the required template string as well as
the unit for second and seconds to the yaml files to be able to utilize
them in 1)
2020-08-18 20:32:01 +02:00
Mykyta Poturai 5bc2e70e88 Refactor popular page 2020-08-18 18:51:56 +03:00
Preston f041910172 Finish implementation of local storyboards logic 2020-08-16 18:11:44 -04:00
Mykyta Poturai 739dddf74c Add caching for popular videos
Also add the button to refresh the cache
2020-08-13 17:26:20 +03:00
Preston 998f5c2688 Add a few toast messages 2020-08-04 23:44:34 -04:00
kylejwatson 0b988e72b9 Change syntax to a utils action 2020-07-04 16:44:35 +01:00
Cadence Ember 6615b5a964
Lint 2020-06-21 01:05:36 +12:00
Cadence Ember cb2359f8b5
Better support for go to url 2020-06-21 00:52:32 +12:00
Preston 6fbccbce4c Fix linting issues 2020-06-19 16:20:06 -04:00
Preston 6e5a1a1085 Add toggle for search suggestions 2020-06-19 15:46:01 -04:00
Preston 28e436db72 Update Dependencies 2020-06-03 21:00:36 -04:00
Preston c8da6fec3d Add Search Suggestions and Custom Invidious Instance 2020-06-01 22:42:29 -04:00
Preston 2b476f4dc6 Add ability to paste YouTube links into the search bar to go directly to them 2020-05-31 23:13:03 -04:00
Preston 6c3539943b Show icons in build and remove unused items. 2020-05-27 22:48:41 -04:00
Preston 009174b89b Add Support for Live Videos and Live Video Chat 2020-05-23 17:29:42 -04:00
Preston 8980dc74d2 Add full playlist functionality (Shuffle, loop, autoplay) 2020-05-17 16:12:58 -04:00
Preston 1faa075a7b Add Theatre Mode Toggle Setting and adjust video player side 2020-04-21 22:59:09 -04:00
Preston e1dd7e6db8 Fix web build script and fix errors when running web version 2020-04-17 23:17:45 -04:00
Preston 81a1899dcf Fix changing the top bar to match the color theme. 2020-03-26 22:50:02 -04:00
Preston 2533161667 Start on Mobile view and add Web Build option 2020-03-24 09:22:29 -04:00
Preston 4728d38df0 Re-add Rootstate to Vuex Action and adjust position of video duration 2020-03-01 14:44:19 -05:00
Preston 77e7168c73 Full Theme Support and More Settings are Functional 2020-02-29 22:37:02 -05:00
Preston 1d3915b3d2 Progress on Settings and Database setup 2020-02-26 22:10:56 -05:00
Preston 9e1b1cbdd8 Add Keyboard Shortcuts to ft-video-player component 2020-02-20 15:58:21 -05:00
Preston 06f3839515 Allow Switching between Dash and Legacy formats 2020-02-18 22:31:10 -05:00
Preston 4dc8eab9b8 Work on video player to support dash and other features
Theatre Mode
Captions
Storyboards
2020-02-18 15:59:01 -05:00
Preston ded6534d16 Push Latest Code to Repository 2020-02-16 13:30:00 -05:00