Commit Graph

3790 Commits

Author SHA1 Message Date
absidue 9a789337ce
Switch workflows from npm to yarn (#2750) 2022-10-20 18:33:00 +08:00
absidue 76d7ecd163
More space for the title in watch-video-info (#2751) 2022-10-20 06:06:04 +00:00
absidue f33ad2e5f0
Fix double focus on the sidebar channels (#2749) 2022-10-20 06:04:49 +00:00
ChunkyProgrammer 2c5c654b66
move `toLocalePublicationString` to`utils/helper` (#2748)
* move toLocalePublicationString to helper

* remove unnecessary assignments

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

* Update src/renderer/components/ft-list-video/ft-list-video.js

Co-authored-by: PikachuEXE <pikachuexe@gmail.com>

* fix linter issue

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
2022-10-20 06:03:31 +00:00
ChunkyProgrammer 7819dcd99f
change `this.showToast` to `showToast` (#2746) 2022-10-19 07:50:09 +00:00
Emma 41b3af033b
Implenting `showSaveDialog` in web (#2741)
* Implementing the web callback for `showSaveDialog`

Using the native filesystem API when it is available

* Adding the `writeFileFromDialog` function

It normalizes the behavior of writing to a file handle
given by a file picker between web and electron

* Refactoring `exportFreeTubeSubscriptions`

Now, it should use the profile data stored in memory
rather than reading it from the file system (which may not
be present in web browsers), and it should also work in web
builds

* Refactoring exportYouTubeSubscriptions

Using the `writeFileFromDialog` function instead of `fs`

* Refactoring the rest of the subscription exports

Using the `writeFileFromDialog` function instead of `fs`

* Refactoring exportHistory

- Using the historyCache stored in memory instead of
reading from `fs` to get the history data
- Using `writeFileFromDialog` instead of `fs.writeFile`

* Refactoring exportPlaylists

Using `writeFileFromDialog` instead of `fs`

* Removing no longer needed `fs` import

* Removing something I was using to debug

* Fixing issue with mime types non populating in save picker

* Adding back an unintentionally removed line
2022-10-19 07:50:21 +02:00
absidue d39512db0a
Minor performance improvement in the general-settings component (#2723) 2022-10-19 09:25:13 +08:00
absidue d8f7d073ce
Remove unused ft-grid component and __static variable (#2744)
* Remove unused ft-grid component

* Remove unused __static variable
2022-10-19 09:09:49 +08:00
Grzegorz Wójcicki cffce405a4
Translated using Weblate (Polish)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/pl/
2022-10-19 03:00:01 +02:00
Emma a6b86fac9c
Adding filePaths to the web file picker response (#2739)
`filePaths` is now used to decide which `subscription.db`
type to parse, so this is needed here
2022-10-18 17:50:59 +02:00
Emma c26445a09d
Expanding the settings which are iterated in `grabUserSettings` (#2737)
Previously, only settings which have a user defined value would
be iterated on in this loop. Now, all settings that have a user defined
value or that have side effects will be iterated. This is important because
`currentLocale`'s side effect handler contains a call to `getRegionData`,
and if this side effect handler is never called, the `Region for Trending`
option in settings will never populate.
2022-10-18 17:50:40 +02:00
ChunkyProgrammer 2bf8691352
FontAwesome upgrade (#2742)
* Bump @fortawesome/fontawesome-svg-core from 1.3.0 to 6.2.0

Bumps [@fortawesome/fontawesome-svg-core](https://github.com/FortAwesome/Font-Awesome) from 1.3.0 to 6.2.0.
- [Release notes](https://github.com/FortAwesome/Font-Awesome/releases)
- [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/6.x/CHANGELOG.md)
- [Commits](https://github.com/FortAwesome/Font-Awesome/commits/6.2.0)

---
updated-dependencies:
- dependency-name: "@fortawesome/fontawesome-svg-core"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* upgrade other font-awesome packages

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 17:50:11 +02:00
Emma b453b01b81
Adding web support to dev-runner (#2729)
* Adding ytpl and ytsr as externals in web.config

This should get rid of those two warnings that were
showing up on web builds

* Reducing discrepancies between dev and prod in web builds

* Removing  a line which would prevent hot reloading

`this.locales` is retained between hot reloads, so it shouldn't
be set to `null`.

* Adding a new flag to the dev runner

Adding a new command: `run dev:web`

* Running `loadLocale` in development web builds

* Adding a line back which was removed

* Removing a line which was added
2022-10-18 08:50:32 -04:00
Yaron Shahrabani b2f3a855b0
Translated using Weblate (Hebrew)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/he/
2022-10-18 13:10:36 +02:00
Егор Ермаков 5e617bb9de
Translated using Weblate (Russian)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ru/
2022-10-18 13:10:36 +02:00
absidue f970936d1e
Make copyToClipboard and openExternalLink helpers (#2722) 2022-10-18 08:15:28 +00:00
J. Lavoie 26e40c51e7
Translated using Weblate (English (United Kingdom))
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/en_GB/
2022-10-18 01:57:10 +02:00
J. Lavoie bd6a2718e1
Translated using Weblate (Finnish)
Currently translated at 99.6% (628 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/fi/
2022-10-18 01:57:09 +02:00
Ihor Hordiichuk ff67bc4d9b
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/uk/
2022-10-17 22:54:25 +02:00
Kyotaro Iijima e41d37c218
Translated using Weblate (Japanese)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ja/
2022-10-17 22:54:24 +02:00
dependabot[bot] 6de87d1d5c
Bump webpack-dev-server from 4.10.1 to 4.11.1 (#2736)
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.10.1 to 4.11.1.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.10.1...v4.11.1)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 15:17:16 -04:00
absidue 294df19f1b
Replace rss-parser with fetch and the native DomParser (#2726) 2022-10-17 16:09:06 +00:00
Emma b5c486bf1f
Fixing some leftover `showToast(obj)` (#2735) 2022-10-17 12:33:20 +00:00
dependabot[bot] 198c3fa5d2
Bump http-proxy-agent from 4.0.1 to 5.0.0 (#2733)
Bumps [http-proxy-agent](https://github.com/TooTallNate/node-http-proxy-agent) from 4.0.1 to 5.0.0.
- [Release notes](https://github.com/TooTallNate/node-http-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-http-proxy-agent/compare/4.0.1...5.0.0)

---
updated-dependencies:
- dependency-name: http-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-17 13:50:52 +02:00
Gediminas Murauskas 4ef6369908
Translated using Weblate (Lithuanian)
Currently translated at 95.8% (604 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/lt/
2022-10-17 12:56:34 +02:00
Massimo Pissarello 4440044986
Translated using Weblate (Italian)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/it/
2022-10-17 10:53:49 +02:00
Oğuz Ersen 8209e7e422
Translated using Weblate (Turkish)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/tr/
2022-10-17 07:52:23 +02:00
Jeff Huang 3326224079
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/zh_Hant/
2022-10-17 07:52:23 +02:00
Eric 546a276641
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/zh_Hans/
2022-10-17 07:52:22 +02:00
Rex_sa 1b68e56456
Translated using Weblate (Arabic)
Currently translated at 99.2% (625 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ar/
2022-10-17 02:54:09 +02:00
Hosted Weblate 77a18e83e2
Merge branch 'origin/development' into Weblate. 2022-10-17 02:00:23 +02:00
Gediminas Murauskas eefcd36363
Translated using Weblate (Lithuanian)
Currently translated at 86.0% (542 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/lt/
2022-10-17 02:00:23 +02:00
Grzegorz Wójcicki 94fb11f893
Translated using Weblate (Polish)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/pl/
2022-10-17 02:00:20 +02:00
J. Lavoie 37b3b6db74
Translated using Weblate (French)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/fr/
2022-10-17 02:00:18 +02:00
J. Lavoie 097c06a28c
Translated using Weblate (German)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/de/
2022-10-17 02:00:17 +02:00
absidue 62c70fbdd6
Fix fetching the comments from invidious (#2721) 2022-10-15 04:01:58 +00:00
absidue 077fde70f1
Fix CTRL+clicking on the channel name on the watch page (#2713) 2022-10-14 06:00:41 +00:00
absidue ad01d2b37d
Make the safe as and open file dialogs blocking (#2712) 2022-10-14 06:00:23 +00:00
absidue 3aa080d707
Make showToast a helper (#2695) 2022-10-14 05:59:49 +00:00
Emma f94d8a9df2
Filtering out invidious instances that don't support the API (#2714)
* Adding two additional checks to the instance filter

- Checking if the instance supports the api at all
- Checking if the instance supports cors in web environments

* Removing instances without API from instances json

* Modifying the hardcoded fallbacks
2022-10-13 22:09:15 +00:00
PikachuEXE 21a31cf6f5
Upgrade electron from 20 > 21 (#2717)
* ^ Update electron 20.x

* ^ Update electron 21.x

* * Update .babelrc about target
2022-10-13 22:09:02 +00:00
absidue c0f98eeafe
Use named parameters instead of $ and % in localised strings (#2685)
* Use named parameters instead of $ and % in localised strings

* Fix URL warning again

* Update placeholders in most locales

* Let the translators fix the problematic RTL strings

* Fix the missing quotes in some of the YAML files
2022-10-13 11:51:15 +00:00
absidue 81426ed9bf
Don't lint while rebasing (#2711) 2022-10-13 08:34:04 +08:00
Aiz 1695605ab5
Remove deprecated @keypress + some accessability improvements (#2697)
* remove deprecated @keypress from top-nav

* remove deprecated @keypress from side-nav

* add role and tabindex to new window button

it could previously not be selected by tabbing over the buttons
2022-10-12 19:02:39 +02:00
Sveinn í Felli b35d7ea5e7
Translated using Weblate (Icelandic)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/is/
2022-10-12 15:24:35 +02:00
Hosted Weblate 6b4727c8d1
Merge branch 'origin/development' into Weblate. 2022-10-12 08:52:55 +02:00
Fjuro 2a601295c9
Translated using Weblate (Czech)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/cs/
2022-10-12 08:50:11 +02:00
ovari 5199114125
Translated using Weblate (Hungarian)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/hu/
2022-10-12 08:50:08 +02:00
Yaron Shahrabani 11b3c1973b
Translated using Weblate (Hebrew)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/he/
2022-10-12 08:50:05 +02:00
Егор Ермаков bd210ab0ff
Translated using Weblate (Russian)
Currently translated at 100.0% (630 of 630 strings)

Translation: FreeTube/Translations
Translate-URL: https://hosted.weblate.org/projects/free-tube/translations/ru/
2022-10-12 08:50:04 +02:00