Skip to content

Commit d959a45

Browse files
committed
Merge branch 'development'
2 parents 0bcf2d1 + 180a89d commit d959a45

File tree

99 files changed

+5521
-1429
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+5521
-1429
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,24 +75,25 @@ body:
7575
required: true
7676
- type: dropdown
7777
attributes:
78-
label: 'Installation Method (If applicable)'
78+
label: Installation Method
7979
options:
80+
- .apk
8081
- .AppImage
82+
- AUR
83+
- Chocolatey
8184
- .deb
8285
- .dmg
8386
- .exe
8487
- Flathub
88+
- .pacman
8589
- Portable
90+
- PortableApps
8691
- .rpm
92+
- winget
8793
- .zip
8894
- other
8995
validations:
90-
required: false
91-
- type: input
92-
attributes:
93-
label: 'Last Known Working FreeTube Version (If Any)'
94-
description: What is the last version of FreeTube this worked in, if applicable?
95-
placeholder: v0.14.0
96+
required: true
9697
- type: dropdown
9798
attributes:
9899
label: Primary API used
@@ -102,7 +103,12 @@ body:
102103
- Local API
103104
- Invidious API
104105
validations:
105-
required: false
106+
required: true
107+
- type: input
108+
attributes:
109+
label: 'Last Known Working FreeTube Version (If Any)'
110+
description: What is the last version of FreeTube this worked in, if applicable?
111+
placeholder: v0.14.0
106112
- type: textarea
107113
attributes:
108114
label: Additional Information

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ We may remove your pull request if you do not use this provided PR template corr
99
Please select what type of pull request this is:
1010
- [ ] Bugfix
1111
- [ ] Feature Implementation
12+
- [ ] Documentation
13+
- [ ] Other
1214

1315
**Related issue**
1416
Please link the issue your pull request is referring to. If this pull request fully resolves the relevant issue, put "closes" before the issue number. Example: "closes #123456".

.github/workflows/autoLabelIssue.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ jobs:
1010
- uses: Naturalclar/[email protected]
1111
with:
1212
body: "both"
13-
parameters: '[ {"keywords": ["visual bug"], "labels": ["B: visual"]}, {"keywords": ["keyboard control not working"], "labels": ["B: keyboard control"]}, {"keywords": ["text/string issue"], "labels": ["B: text/string"]}, {"keywords": ["content not loading"], "labels": ["B: content not loading"]}, {"keywords": ["accessibility issue"], "labels": ["B: accessibility"]}, {"keywords": ["usability issue"], "labels": ["B: usability"]}, {"keywords": ["causes crash"], "labels": ["B: crash"]}, {"keywords": ["feature stopped working"], "labels": ["B: feature stopped working"]}, {"keywords": ["inconsistent behavior"], "labels": ["B: inconsistent behavior"]}, {"keywords": ["data loss"], "labels": ["B: data loss"]}, {"keywords": ["race condition"], "labels": ["B: race condition"]}, {"keywords": ["API issue"], "labels": ["B: API issue"]}, {"keywords": ["only happens in developer mode"], "labels": ["B: developer mode"]}, {"keywords": ["improvement to existing feature"], "labels": ["E: improvement existing feature"]}, {"keywords": ["new optional setting"], "labels": ["E: new optional setting"]}, {"keywords": ["visual improvement"], "labels": ["E: visual improvement"]}, {"keywords": ["display more information to user"], "labels": ["E: display more information"]}, {"keywords": ["ease of use improvement"], "labels": ["E: ease of use improvement"]}, {"keywords": ["support for external software"], "labels": ["E: support external software"]}, {"keywords": ["new feature"], "labels": ["E: new feature"]}, {"keywords": ["new keyboard shortcut"], "labels": ["E: keyboard shortcut"]}]'
13+
parameters: '[ {"keywords": ["visual bug"], "labels": ["B: visual"]}, {"keywords": ["AUR", "Chocolatey", "PortableApps", "winget"], "labels": ["B: Unofficial Download"]}, {"keywords": ["keyboard control not working"], "labels": ["B: keyboard control"]}, {"keywords": ["text/string issue"], "labels": ["B: text/string"]}, {"keywords": ["content not loading"], "labels": ["B: content not loading"]}, {"keywords": ["accessibility issue"], "labels": ["B: accessibility"]}, {"keywords": ["usability issue"], "labels": ["B: usability"]}, {"keywords": ["causes crash"], "labels": ["B: crash"]}, {"keywords": ["feature stopped working"], "labels": ["B: feature stopped working"]}, {"keywords": ["inconsistent behavior"], "labels": ["B: inconsistent behavior"]}, {"keywords": ["data loss"], "labels": ["B: data loss"]}, {"keywords": ["race condition"], "labels": ["B: race condition"]}, {"keywords": ["API issue"], "labels": ["B: API issue"]}, {"keywords": ["only happens in developer mode"], "labels": ["B: developer mode"]}, {"keywords": ["improvement to existing feature"], "labels": ["E: improvement existing feature"]}, {"keywords": ["new optional setting"], "labels": ["E: new optional setting"]}, {"keywords": ["visual improvement"], "labels": ["E: visual improvement"]}, {"keywords": ["display more information to user"], "labels": ["E: display more information"]}, {"keywords": ["ease of use improvement"], "labels": ["E: ease of use improvement"]}, {"keywords": ["support for external software"], "labels": ["E: support external software"]}, {"keywords": ["new feature"], "labels": ["E: new feature"]}, {"keywords": ["new keyboard shortcut"], "labels": ["E: keyboard shortcut"]}]'
1414
github-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runtime: [ linux-x64, linux-arm64, win-x64, osx-x64 ]
1616
include:
1717
- runtime: linux-x64
18-
os: ubuntu-18.04
18+
os: ubuntu-latest
1919

2020
- runtime: linux-arm64
2121
os: ubuntu-latest

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# This workflow contains a single job called "build"
1414
lint:
1515
# The type of runner that the job will run on
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-latest
1717

1818
# Steps represent a sequence of tasks that will be executed as part of the job
1919
steps:

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ addressed.
1414

1515
### Browser Extension
1616

17-
FreeTube is supported by the [Privacy Redirect](https://github.com/SimonBrazell/privacy-redirect) extension, which will allow you to open YouTube links into FreeTube. You must enable the option within the advanced settings for it to work.
17+
FreeTube is supported by the [Privacy Redirect](https://github.com/SimonBrazell/privacy-redirect) and [LibRedirect](https://github.com/libredirect/libredirect) extension, which will allow you to open YouTube links into FreeTube. You must enable the option within the advanced settings for it to work.
1818

1919
Download Privacy Redirect for [Firefox](https://addons.mozilla.org/en-US/firefox/addon/privacy-redirect/) or [Google Chrome](https://chrome.google.com/webstore/detail/privacy-redirect/pmcmeagblkinmogikoikkdjiligflglb).
2020

21+
Download LibRedirect for [Firefox](https://addons.mozilla.org/firefox/addon/libredirect/) or [Google Chrome](https://github.com/libredirect/libredirect/blob/master/chromium.md).
22+
2123
Disclaimer: Learn more about why a browser extension is bad for your [privacy](https://www.privacyguides.org/browsers/#extensions).
2224

2325
If you have issues with the extension working with FreeTube, please create an issue in this repository instead of the extension repository.
@@ -62,7 +64,7 @@ Arch User Repository (AUR): [Download](https://aur.archlinux.org/packages/freetu
6264

6365
Chocolatey: [Download](https://chocolatey.org/packages/freetube/)
6466

65-
Windows Portable: [Download](https://github.com/rddim/FreeTubePortable/releases) [Source](https://github.com/rddim/FreeTubePortable)
67+
PortableApps (Windows Only): [Download](https://github.com/rddim/FreeTubePortable/releases) [Source](https://github.com/rddim/FreeTubePortable)
6668

6769
Windows Package Manager (winget): [Usage](https://docs.microsoft.com/en-us/windows/package-manager/winget/)
6870

3.46 KB
Loading
4.57 KB
Loading
5.52 KB
Loading
9.03 KB
Loading

_scripts/build.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,28 @@ const config = {
5353
]
5454
}
5555
],
56-
files: ['_icons/iconColor.*', 'icon.svg', './dist/**/*', '!./dist/web/**/*'],
56+
files: [
57+
'_icons/iconColor.*',
58+
'icon.svg',
59+
'./dist/**/*',
60+
'!dist/web/*',
61+
'!**/node_modules/**/.*',
62+
'!**/node_modules/**/index.html',
63+
'!**/{.github,Jenkinsfile}',
64+
'!**/{CHANGES.md,CODE_OF_CONDUCT.md,CONTRIBUTING.md,CONTRIBUTION.md,DEVELOPMENT.md,docs,docs.md,docs.mli,examples,History.md,HISTORY.md,README.md,TODO.md,UPGRADE_GUIDE.md,UPGRADING.md}',
65+
'!**/{commitlint.config.js,.editorconfig,.eslintignore,.eslintrc.{js,yml},.gitmodules,.huskyrc,.lintstagedrc,.nvmrc,.nycrc{,.json},.prettierrc{,.yaml},tslint.json}',
66+
'!**/{.babelrc,bower.json,Gruntfile.js,Makefile,.npmrc.proregistry,rollup.config.js,.tm_properties,.tool-versions,tsconfig.json,webpack.config.js}',
67+
'!**/*.{{,c,m}js,min,ts}.map',
68+
'!**/*.d.ts',
69+
70+
// only exclude the src directory for specific packages
71+
// as some of them have their dist code in there and we don't want to exclude those
72+
'!**/node_modules/{@fortawesome/vue-fontawesome,agent-base,jquery,localforage,m3u8-parser,marked,mpd-parser,performance-now,video.js,vue,vue-i18n,vue-router}/src/*',
73+
'!**/node_modules/**/{bin,man,scripts}/*',
74+
'!**/node_modules/jquery/dist/jquery.slim*.js',
75+
'!**/node_modules/video.js/dist/{alt/*,video.js}',
76+
'!**/node_modules/@videojs/*/src'
77+
],
5778
dmg: {
5879
contents: [
5980
{
@@ -125,6 +146,7 @@ builder
125146
.build({
126147
targets,
127148
config,
149+
publish: 'never'
128150
})
129151
.then(m => {
130152
console.log(m)

_scripts/webpack.main.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const config = {
2323
module: {
2424
rules: [
2525
{
26-
test: /\.(j|t)s$/,
26+
test: /\.js$/,
2727
use: 'babel-loader',
2828
exclude: /node_modules/,
2929
},
@@ -76,21 +76,24 @@ if (isDevMode) {
7676
from: path.join(__dirname, '../static'),
7777
to: path.join(__dirname, '../dist/web/static'),
7878
globOptions: {
79-
ignore: ['.*', 'pwabuilder-sw.js'],
79+
dot: true,
80+
ignore: ['**/.*', '**/pwabuilder-sw.js', '**/dashFiles/**', '**/storyboards/**'],
8081
},
8182
},
8283
{
8384
from: path.join(__dirname, '../_icons'),
8485
to: path.join(__dirname, '../dist/_icons'),
8586
globOptions: {
86-
ignore: ['.*'],
87+
dot: true,
88+
ignore: ['**/.*'],
8789
},
8890
},
8991
{
9092
from: path.join(__dirname, '../src/renderer/assets/img'),
9193
to: path.join(__dirname, '../dist/images'),
9294
globOptions: {
93-
ignore: ['.*'],
95+
dot: true,
96+
ignore: ['**/.*'],
9497
},
9598
},
9699
]

_scripts/webpack.renderer.config.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const config = {
3737
module: {
3838
rules: [
3939
{
40-
test: /\.(j|t)s$/,
40+
test: /\.js$/,
4141
use: 'babel-loader',
4242
exclude: /node_modules/,
4343
},
@@ -165,28 +165,32 @@ if (isDevMode) {
165165
from: path.join(__dirname, '../static'),
166166
to: path.join(__dirname, '../dist/web/static'),
167167
globOptions: {
168-
ignore: ['.*', 'pwabuilder-sw.js'],
168+
dot: true,
169+
ignore: ['**/.*', '**/pwabuilder-sw.js', '**/dashFiles/**', '**/storyboards/**'],
169170
},
170171
},
171172
{
172173
from: path.join(__dirname, '../static'),
173174
to: path.join(__dirname, '../dist/static'),
174175
globOptions: {
175-
ignore: ['.*', 'pwabuilder-sw.js'],
176+
dot: true,
177+
ignore: ['**/.*', '**/pwabuilder-sw.js', '**/dashFiles/**', '**/storyboards/**'],
176178
},
177179
},
178180
{
179181
from: path.join(__dirname, '../_icons'),
180182
to: path.join(__dirname, '../dist/web/_icons'),
181183
globOptions: {
182-
ignore: ['.*'],
184+
dot: true,
185+
ignore: ['**/.*'],
183186
},
184187
},
185188
{
186189
from: path.join(__dirname, '../src/renderer/assets/img'),
187190
to: path.join(__dirname, '../dist/web/images'),
188191
globOptions: {
189-
ignore: ['.*'],
192+
dot: true,
193+
ignore: ['**/.*'],
190194
},
191195
},
192196
]

_scripts/webpack.web.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const config = {
2323
module: {
2424
rules: [
2525
{
26-
test: /\.(j|t)s$/,
26+
test: /\.js$/,
2727
use: 'babel-loader',
2828
exclude: /node_modules/,
2929
},
@@ -163,21 +163,24 @@ if (isDevMode) {
163163
from: path.join(__dirname, '../static'),
164164
to: path.join(__dirname, '../dist/web/static'),
165165
globOptions: {
166-
ignore: ['.*', 'pwabuilder-sw.js'],
166+
dot: true,
167+
ignore: ['**/.*', '**/pwabuilder-sw.js', '**/dashFiles/**', '**/storyboards/**'],
167168
},
168169
},
169170
{
170171
from: path.join(__dirname, '../_icons'),
171172
to: path.join(__dirname, '../dist/web/_icons'),
172173
globOptions: {
173-
ignore: ['.*'],
174+
dot: true,
175+
ignore: ['**/.*'],
174176
},
175177
},
176178
{
177179
from: path.join(__dirname, '../src/renderer/assets/img'),
178180
to: path.join(__dirname, '../dist/web/images'),
179181
globOptions: {
180-
ignore: ['.*'],
182+
dot: true,
183+
ignore: ['**/.*'],
181184
},
182185
},
183186
]

_scripts/webpack.workers.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const config = {
2626
module: {
2727
rules: [
2828
{
29-
test: /\.(j|t)s$/,
29+
test: /\.js$/,
3030
use: 'babel-loader',
3131
exclude: /node_modules/,
3232
},

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "freetube",
33
"productName": "FreeTube",
44
"description": "A private YouTube client",
5-
"version": "0.17.0",
5+
"version": "0.17.1",
66
"license": "AGPL-3.0-or-later",
77
"main": "./dist/main.js",
88
"private": true,
@@ -25,7 +25,7 @@
2525
"build-release": "node _scripts/build.js",
2626
"build-release:arm64": "node _scripts/build.js arm64",
2727
"build-release:arm32": "node _scripts/build.js arm32",
28-
"clean": "rimraf build/ dashFiles/ dist/ storyboards/",
28+
"clean": "rimraf build/ static/dashFiles/ dist/ static/storyboards/",
2929
"debug": "run-s rebuild:electron debug-runner",
3030
"debug-runner": "node _scripts/dev-runner.js --remote-debug",
3131
"dev": "run-s rebuild:electron dev-runner",
@@ -60,7 +60,7 @@
6060
"js-yaml": "^4.1.0",
6161
"lodash.debounce": "^4.0.8",
6262
"lodash.isequal": "^4.5.0",
63-
"marked": "^4.0.15",
63+
"marked": "^4.0.17",
6464
"nedb-promises": "^5.0.1",
6565
"opml-to-json": "^1.0.1",
6666
"rss-parser": "^3.12.0",
@@ -79,7 +79,7 @@
7979
"yt-channel-info": "^3.0.4",
8080
"yt-dash-manifest-generator": "1.1.0",
8181
"yt-trending-scraper": "^2.0.1",
82-
"ytdl-core": "^4.11.0",
82+
"ytdl-core": "git+https://github.com/absidue/node-ytdl-core#temp-fix-11-08-2022",
8383
"ytpl": "^2.3.0",
8484
"ytsr": "^3.8.0"
8585
},
@@ -92,7 +92,7 @@
9292
"copy-webpack-plugin": "^9.0.1",
9393
"css-loader": "5.2.6",
9494
"electron": "^16.2.7",
95-
"electron-builder": "^22.11.7",
95+
"electron-builder": "^23.0.3",
9696
"electron-builder-squirrel-windows": "^22.13.1",
9797
"electron-debug": "^3.2.0",
9898
"eslint": "^7.32.0",
@@ -104,11 +104,9 @@
104104
"eslint-plugin-promise": "^5.1.0",
105105
"eslint-plugin-standard": "^5.0.0",
106106
"eslint-plugin-vue": "^7.17.0",
107-
"fast-glob": "^3.2.7",
108107
"file-loader": "^6.2.0",
109108
"html-webpack-plugin": "^5.3.2",
110109
"mini-css-extract-plugin": "^2.2.2",
111-
"node-abi": "^2.30.1",
112110
"node-loader": "^2.0.0",
113111
"npm-run-all": "^4.1.5",
114112
"prettier": "^2.3.2",

src/main/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ function runApp() {
185185
return '#000000'
186186
case 'dracula':
187187
return '#282a36'
188+
case 'catppuccin-mocha':
189+
return '#1e1e2e'
188190
case 'system':
189191
default:
190192
return nativeTheme.shouldUseDarkColors ? '#212121' : '#f1f1f1'
@@ -816,8 +818,12 @@ function runApp() {
816818
{ role: 'toggledevtools' },
817819
{ type: 'separator' },
818820
{ role: 'resetzoom' },
819-
{ role: 'zoomin' },
821+
{ role: 'resetzoom', accelerator: 'CmdOrCtrl+num0', visible: false },
822+
{ role: 'zoomin', accelerator: 'CmdOrCtrl+Plus' },
823+
{ role: 'zoomin', accelerator: 'CmdOrCtrl+=', visible: false },
824+
{ role: 'zoomin', accelerator: 'CmdOrCtrl+numadd', visible: false },
820825
{ role: 'zoomout' },
826+
{ role: 'zoomout', accelerator: 'CmdOrCtrl+numsub', visible: false },
821827
{ type: 'separator' },
822828
{ role: 'togglefullscreen' }
823829
]

src/renderer/components/distraction-settings/distraction-settings.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ export default Vue.extend({
4545
},
4646
hideActiveSubscriptions: function () {
4747
return this.$store.getters.getHideActiveSubscriptions
48+
},
49+
hideVideoDescription: function () {
50+
return this.$store.getters.getHideVideoDescription
51+
},
52+
hideComments: function () {
53+
return this.$store.getters.getHideComments
54+
},
55+
hideLiveStreams: function() {
56+
return this.$store.getters.getHideLiveStreams
57+
},
58+
hideSharingActions: function() {
59+
return this.$store.getters.getHideSharingActions
4860
}
4961
},
5062
methods: {
@@ -68,7 +80,11 @@ export default Vue.extend({
6880
'updateHideLiveChat',
6981
'updateHideActiveSubscriptions',
7082
'updatePlayNextVideo',
71-
'updateDefaultTheatreMode'
83+
'updateDefaultTheatreMode',
84+
'updateHideVideoDescription',
85+
'updateHideComments',
86+
'updateHideLiveStreams',
87+
'updateHideSharingActions'
7288
])
7389
}
7490
})

0 commit comments

Comments
 (0)