Commit Graph

6381 Commits

Author SHA1 Message Date
absidue 27eecb9e0b
Simplify static file loading (#4971) 2024-04-18 01:09:29 +00:00
gallegonovato e633eaf1dd
Translated using Weblate (Spanish)
Currently translated at 100.0% (829 of 829 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/es/
2024-04-18 02:04:15 +02:00
Massimo Pissarello 972b9ce446
Translated using Weblate (Italian)
Currently translated at 100.0% (829 of 829 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/it/
2024-04-18 02:04:15 +02:00
Jose Delvani 5e08969280
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (829 of 829 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/pt_BR/
2024-04-18 02:04:14 +02:00
ChunkyProgrammer 009fb739b8
Add yarn run pack:web to linter (#4975) 2024-04-18 06:51:38 +08:00
absidue fa66e82a56
Bundle datastores as ES modules instead of commonjs (#4965) 2024-04-17 22:33:13 +00:00
Hosted Weblate a05b49f4f3
Merge branch 'origin/development' into Weblate. 2024-04-17 23:54:52 +02:00
Jose Delvani de66593fcb
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/pt_BR/
2024-04-17 23:54:52 +02:00
Jason ab3c1b9b29
Show when Subscriptions / Trending / Most Popular were last updated (#4380)
* Implement first draft of last subscription refresh timestamp

* Update styling to be a top bar

* Update styling to be banner-compatible, & increase banner X button size on mobile

* Update subscription refresh timestamp to be relative

* Implement refresh timestamps for Shorts, Live, and Community tabs

* Extract refresh widget to its own component

* Add Trending and Popular refresh widgets with timestamps

* Fix justifying when no timestamp exists

* Move timestamps to utils store

* Remove unneeded ref classes and currentLocale computed property

* Add page-specific titles for each feed type

* Implement showing least recent cache date per profile

* Update styling property placement & match top nav box shadow on ft-refresh-widget

* Implement showing timestamp for profile only if all channel subscriptions can be found in cache

* Disable refresh button instead of removing it or the widget from the DOM

* Increase top banner's top margin

* Update channel caching calls to provide timestamps

* Modify updateCacheByChannel functions to have default timestamp of new Date()

* Fix 30-day month relative date calculation scenarios through new optional parameter

* Rectify Case 3 (see https://github.com/FreeTubeApp/FreeTube/pull/3668)

* Add back missing line in Popular.js
2024-04-18 05:54:46 +08:00
ChunkyProgrammer 2bc44cd66b
Define emits before using them (#4973)
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2024-04-17 21:50:23 +00:00
Milo Ivir 8483c8e3f8
Translated using Weblate (Croatian)
Currently translated at 99.1% (820 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/hr/
2024-04-17 23:04:01 +02:00
Rex_sa a1067327e2
Translated using Weblate (Arabic)
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ar/
2024-04-17 23:04:00 +02:00
Jose Delvani babd82d09a
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/pt_BR/
2024-04-17 23:04:00 +02:00
Jason 23f1618fcb
Add back 3 Stylelint configs (#4350)
* Add back @double-great/stylelint-a11y Stylelint plugin

Notably, we choose to not use the 'a11y/no-outline-none' rule. The reason for this being that our focus ring suffices for almost every use case (https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-minimum), and using the same hover and focus styling can be considered bad design in many cases. YT goes the direction of foregoing the focus ring for many of its components and choosing a barely darker color than its :hover for :focus styling, which is controversial. Accessibility-wise, at the very least, using the same hover and focus styling can be confusing, especially for sighted users who use keyboard navigation.

* Add back stylelint-config-sass-guidelines

* Add back stylelint-config-standard

* Satisfy media-prefers-reduced-motion a11y rule

This is not recognized as a fix by the rule due to its limited detection logic, so this rule is not being imported directly.

* Remove duplicate code

* Implement linting fixes

* Implement _ft-list-item.scss linting fixes excluding no-descending-specificity

Properly implementing the no-descending-specificity rule in this file seems to utterly destroy the styling. This would be its own entire initiative to unravel.

* Restart from scratch modifications of _ft-list-item.scss

* Resolve styling discrepancies introduced with ft-list-channel and ft-tooltip
2024-04-17 19:49:37 +02:00
大王叫我来巡山 754f7640fc
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/zh_Hans/
2024-04-17 11:03:40 +02:00
Fjuro 902ef0e28b
Translated using Weblate (Czech)
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/cs/
2024-04-17 09:03:37 +02:00
summoner001 e6a9767372
Translated using Weblate (Hungarian)
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/hu/
2024-04-17 09:03:37 +02:00
Oğuz Ersen d0ac17ff77
Translated using Weblate (Turkish)
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/tr/
2024-04-17 09:03:36 +02:00
Massimo Pissarello 4de55d4f73
Translated using Weblate (Italian)
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/it/
2024-04-17 06:41:19 +02:00
Jose Delvani 25d721ac9b
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/pt_BR/
2024-04-17 06:41:18 +02:00
Jeff Huang b789c6ee4a
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (827 of 827 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/zh_Hant/
2024-04-17 06:41:17 +02:00
Jason 9815ed3da2
Sort videos within playlist (#4921)
* 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
2024-04-17 06:26:43 +08:00
NicolaeFericitu ea35a13614
Translated using Weblate (Romanian)
Currently translated at 92.6% (759 of 819 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ro/
2024-04-17 00:02:02 +02:00
Ulises Martínez 3bef45b894
Translated using Weblate (Spanish)
Currently translated at 99.7% (817 of 819 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/es/
2024-04-17 00:02:01 +02:00
Grzegorz Wójcicki 31f0674910
Translated using Weblate (Polish)
Currently translated at 100.0% (819 of 819 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/pl/
2024-04-17 00:02:00 +02:00
Hosted Weblate 3ded01b2d4
Merge branch 'origin/development' into Weblate. 2024-04-16 22:16:21 +02:00
NicolaeFericitu 4122883b39
Translated using Weblate (Romanian)
Currently translated at 90.9% (744 of 818 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ro/
2024-04-16 22:16:18 +02:00
PikachuEXE 2b7c96eb97
Update most paginated places to auto load next page (except comments) (#4565)
* * Update most paginated places to auto load next page (except comments)

* * Make comment section auto load next pages too

* $ Use new component to dedup auto load code

* * Implement auto load next page for single playlist page

* * Remove comment auto load setting

* * Update tooltip text
2024-04-16 22:16:08 +02:00
NicolaeFericitu 4229959852
Translated using Weblate (Romanian)
Currently translated at 90.7% (742 of 818 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ro/
2024-04-16 22:02:04 +02:00
Anonymous 6c314f1597
Translated using Weblate (Japanese)
Currently translated at 88.0% (720 of 818 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ja/
2024-04-16 19:02:01 +02:00
Jason 5359d8468e
Improve video playlist search UX (#4929)
* Enable playlist video search mode by default; add Ctrl+F binding

* Fix subject-verb agreement on two search labels

* Remove playlist video search bar when only one video is in the playlist

* Add check for search video mode allowed that is requisite for keybinding

* Remove unnecessary 'async function' in mounted

* Fix styling issue
2024-04-16 17:47:40 +02:00
Jason 981e8e4530
Fix user playlist reversal failing after user playlist information is updated (#4947) 2024-04-16 17:46:43 +02:00
efb4f5ff-1298-471a-8973-3d47447115dc 9e151b74bb
Fix type check failed for prop `searchQueryText` (#4962) 2024-04-16 17:46:26 +02:00
dependabot[bot] 856479fbce
Bump the eslint group with 5 updates (#4963)
Bumps the eslint group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [eslint-plugin-jsonc](https://github.com/ota-meshi/eslint-plugin-jsonc) | `2.14.1` | `2.15.1` |
| [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) | `16.6.2` | `17.2.1` |
| [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) | `51.0.1` | `52.0.0` |
| [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) | `9.24.0` | `9.25.0` |
| [eslint-plugin-yml](https://github.com/ota-meshi/eslint-plugin-yml) | `1.13.2` | `1.14.0` |


Updates `eslint-plugin-jsonc` from 2.14.1 to 2.15.1
- [Release notes](https://github.com/ota-meshi/eslint-plugin-jsonc/releases)
- [Changelog](https://github.com/ota-meshi/eslint-plugin-jsonc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ota-meshi/eslint-plugin-jsonc/compare/v2.14.1...v2.15.1)

Updates `eslint-plugin-n` from 16.6.2 to 17.2.1
- [Release notes](https://github.com/eslint-community/eslint-plugin-n/releases)
- [Changelog](https://github.com/eslint-community/eslint-plugin-n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint-community/eslint-plugin-n/compare/16.6.2...v17.2.1)

Updates `eslint-plugin-unicorn` from 51.0.1 to 52.0.0
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v51.0.1...v52.0.0)

Updates `eslint-plugin-vue` from 9.24.0 to 9.25.0
- [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases)
- [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v9.24.0...v9.25.0)

Updates `eslint-plugin-yml` from 1.13.2 to 1.14.0
- [Release notes](https://github.com/ota-meshi/eslint-plugin-yml/releases)
- [Changelog](https://github.com/ota-meshi/eslint-plugin-yml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ota-meshi/eslint-plugin-yml/compare/v1.13.2...v1.14.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsonc
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: eslint
- dependency-name: eslint-plugin-n
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: eslint
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: eslint
- dependency-name: eslint-plugin-vue
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: eslint
- dependency-name: eslint-plugin-yml
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: eslint
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-16 13:48:44 +00:00
dependabot[bot] b8a7906371
Bump sass from 1.74.1 to 1.75.0 (#4956)
Bumps [sass](https://github.com/sass/dart-sass) from 1.74.1 to 1.75.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.74.1...1.75.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 18:15:39 +08:00
dependabot[bot] 0918724181
Bump electron from 29.2.0 to 29.3.0 (#4952)
Bumps [electron](https://github.com/electron/electron) from 29.2.0 to 29.3.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v29.2.0...v29.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 09:43:32 +00:00
dependabot[bot] 5d896ec18f
Bump lefthook from 1.6.8 to 1.6.10 (#4953)
Bumps [lefthook](https://github.com/evilmartians/lefthook) from 1.6.8 to 1.6.10.
- [Release notes](https://github.com/evilmartians/lefthook/releases)
- [Changelog](https://github.com/evilmartians/lefthook/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evilmartians/lefthook/compare/v1.6.8...v1.6.10)

---
updated-dependencies:
- dependency-name: lefthook
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 11:39:32 +02:00
dependabot[bot] 1275fad4a5
Bump swiper from 11.1.0 to 11.1.1 (#4954)
Bumps [swiper](https://github.com/nolimits4web/Swiper) from 11.1.0 to 11.1.1.
- [Release notes](https://github.com/nolimits4web/Swiper/releases)
- [Changelog](https://github.com/nolimits4web/swiper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nolimits4web/Swiper/compare/v11.1.0...v11.1.1)

---
updated-dependencies:
- dependency-name: swiper
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 11:38:38 +02:00
dependabot[bot] 179b3e0fa3
Bump youtubei.js from 9.2.0 to 9.3.0 (#4957)
Bumps [youtubei.js](https://github.com/LuanRT/YouTube.js) from 9.2.0 to 9.3.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.2.0...v9.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 11:32:50 +02:00
dependabot[bot] bc16f67ef4
Bump sass-loader from 14.1.1 to 14.2.0 (#4958)
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader) from 14.1.1 to 14.2.0.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v14.1.1...v14.2.0)

---
updated-dependencies:
- dependency-name: sass-loader
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 11:31:39 +02:00
dependabot[bot] 2f96d664d0
Bump css-loader from 7.0.0 to 7.1.1 (#4959)
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 7.0.0 to 7.1.1.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v7.0.0...v7.1.1)

---
updated-dependencies:
- dependency-name: css-loader
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 11:30:49 +02:00
ynnsuis e087008707
Fix/ Improve accessibility of playlist icon buttons (#4943)
* Add aria-pressed attribute to playlist icon button

* Improve accessibility by adjusting stroke thickness of playlist icon

* Fix to keep the inactive hover state the same

* Update playlist icon active hover style

* Update playlist icon active hover color to --accent-color-hover
2024-04-14 11:15:23 -04:00
absidue dfdab0dd5d
Local API: Fix extracting the published date and view count in playlists (#4936) 2024-04-14 13:23:32 +00:00
absidue bb7d90be05
Fix imports of the "electron" module that are missing an Electron guard (#4935) 2024-04-14 13:16:55 +00:00
Milo Ivir 372bc1bdd1
Translated using Weblate (Croatian)
Currently translated at 100.0% (818 of 818 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/hr/
2024-04-13 22:02:03 +02:00
programutox cf78c9a3b0
Translated using Weblate (Esperanto)
Currently translated at 9.9% (81 of 818 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/eo/
2024-04-13 19:02:01 +02:00
Alexander Gabilondo 49fe14c2c1
Translated using Weblate (Basque)
Currently translated at 99.7% (816 of 818 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/eu/
2024-04-13 05:02:03 +02:00
Emma d49b3ba442
Set max height for storyboards depending on window width (#4933)
* Pick largest storyboard that is less than 90px tall

* Reduce storyboard size when window inner width is below 500

* Reduce code

* Only check the window inner width once

to avoid messing with the video player internals for storyboards

* Add back deleted line

* Add back trailing comma
2024-04-12 17:05:06 +00:00
github-actions[bot] e65946294e
Compressed Images (#4934)
Co-authored-by: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com>
2024-04-12 16:47:36 +00:00
Mehul Sweeti Agrawal ae8e0ce96d
Add more options to default playback rate menu (#4880)
* make slider precise as per playback speed

* Resolve type error in Default Playback

* Adjust the min value of playback slider in accordance to selected interval

* Fix min value of Default Playback
2024-04-12 17:29:09 +02:00