Skip to content

Commit 378720d

Browse files
**Release 0.22.0.1**
This release brings the app up to date with upstream release [0.22.0](https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.22.0-beta). ... **Full Changelog**: 0.21.3.122...0.22.0.1
2 parents 16d6ccc + 0ed04f1 commit 378720d

File tree

346 files changed

+21056
-15416
lines changed

Some content is hidden

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

346 files changed

+21056
-15416
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
]
1212
],
1313
"plugins": [
14-
"@babel/proposal-class-properties"
14+
"@babel/plugin-transform-class-properties"
1515
]
1616
}

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 128 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ updates:
1717
patterns:
1818
- "eslint"
1919
- "eslint-*"
20+
- "@eslint/*"
2021
- "yaml-eslint-parser"
2122
- "vue-eslint-parser"
2223
stylelint:

.github/workflows/buildCordova.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ jobs:
1717
- name: Use Node.js
1818
uses: actions/setup-node@v3
1919
with:
20-
node-version: 18.x
20+
node-version: 20.x
2121
cache: "yarn"
2222
- name: 🧶 Yarn install
2323
run: yarn ci
2424

25-
- name: Is vtt-thumbnails installed correctly?
26-
run: |
27-
ls ./node_modules/videojs-vtt-thumbnails-freetube
28-
2925
- name: Set environment icon & splash for android app
3026
run: |
3127
# to make it easier to tell which is which when multiple are installed

.github/workflows/calibreapp-image-actions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
compressOnly: true
2121
- name: Create New Pull Request If Needed
2222
if: steps.calibre.outputs.markdown != ''
23-
uses: peter-evans/create-pull-request@v6
23+
uses: peter-evans/create-pull-request@v7
2424
with:
2525
title: Compressed Images Nightly
2626
branch-suffix: timestamp

.github/workflows/flatpak.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,22 @@ jobs:
7777
date +"%Y-%m-%d" >> $GITHUB_ENV
7878
echo 'EOF' >> $GITHUB_ENV
7979
- name: Update x64 File Location in yml File
80-
uses: mikefarah/[email protected].2
80+
uses: mikefarah/[email protected].3
8181
with:
8282
# The Command which should be run
8383
cmd: yq -i '.modules[0].sources[0].url = "https://github.com/FreeTubeApp/FreeTube/releases/download/v${{ steps.sub.outputs.result }}-beta/freetube-${{ steps.sub.outputs.result }}-linux-portable-x64.zip"' io.freetubeapp.FreeTube.yml
8484
- name: Update x64 Hash in yml File
85-
uses: mikefarah/[email protected].2
85+
uses: mikefarah/[email protected].3
8686
with:
8787
# The Command which should be run
8888
cmd: yq -i '.modules[0].sources[0].sha256 = "${{ env.HASH_X64 }}"' io.freetubeapp.FreeTube.yml
8989
- name: Update ARM File Location in yml File
90-
uses: mikefarah/[email protected].2
90+
uses: mikefarah/[email protected].3
9191
with:
9292
# The Command which should be run
9393
cmd: yq -i '.modules[0].sources[1].url = "https://github.com/FreeTubeApp/FreeTube/releases/download/v${{ steps.sub.outputs.result }}-beta/freetube-${{ steps.sub.outputs.result }}-linux-portable-arm64.zip"' io.freetubeapp.FreeTube.yml
9494
- name: Update ARM Hash in yml File
95-
uses: mikefarah/[email protected].2
95+
uses: mikefarah/[email protected].3
9696
with:
9797
# The Command which should be run
9898
cmd: yq -i '.modules[0].sources[1].sha256 = "${{ env.HASH_ARM64 }}"' io.freetubeapp.FreeTube.yml

.github/workflows/releaseCordova.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ jobs:
3636
with:
3737
result-encoding: string
3838
script: |
39-
return '${{ steps.pkg.outputs.version }}.${{ github.run_number }}'
39+
// TODO✏ automate this
40+
var run_number = ${{ github.run_number }} - 121
41+
var version = '${{ steps.pkg.outputs.version }}'
42+
var version_number = version + '.' + run_number
43+
return version_number
4044
- name: Set App ID Variable
4145
id: appId
4246
uses: actions/github-script@v6

.github/workflows/report.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.stylelintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"selector-pseudo-class-no-unknown": [
2727
true,
2828
{
29-
"ignorePseudoClasses": ["deep"]
29+
"ignorePseudoClasses": ["deep", "global"]
3030
}
3131
],
3232
"a11y/no-outline-none": true,

_scripts/ProcessLocalesPlugin.js

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ class ProcessLocalesPlugin {
4040
/** @type {(updatedLocales: [string, string][]) => void|null} */
4141
this.notifyLocaleChange = null
4242

43-
if (this.hotReload) {
44-
this.hotReloadScript = readFileSync(`${__dirname}/_hotReloadLocalesScript.js`, 'utf-8')
45-
}
46-
4743
this.loadLocales()
4844
}
4945

5046
/** @param {import('webpack').Compiler} compiler */
5147
apply(compiler) {
5248
const { CachedSource, RawSource } = compiler.webpack.sources;
53-
const { Compilation } = compiler.webpack
49+
const { Compilation, DefinePlugin } = compiler.webpack
50+
51+
new DefinePlugin({
52+
'process.env.HOT_RELOAD_LOCALES': this.hotReload
53+
}).apply(compiler)
5454

5555
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
5656
const IS_DEV_SERVER = !!compiler.watching
@@ -72,6 +72,7 @@ class ProcessLocalesPlugin {
7272
}
7373

7474
for (let [locale, data] of this.locales) {
75+
// eslint-disable-next-line no-async-promise-executor
7576
promises.push(new Promise(async (resolve) => {
7677
if (IS_DEV_SERVER && compiler.fileTimestamps) {
7778
const filePath = join(this.inputDir, `${locale}.yaml`)
@@ -131,24 +132,12 @@ class ProcessLocalesPlugin {
131132
})
132133

133134
compiler.hooks.afterCompile.tap(PLUGIN_NAME, (compilation) => {
135+
// eslint-disable-next-line no-extra-boolean-cast
134136
if (!!compiler.watching) {
135137
// watch locale files for changes
136138
compilation.fileDependencies.addAll(this.filePaths)
137139
}
138140
})
139-
140-
compiler.hooks.emit.tap(PLUGIN_NAME, (compilation) => {
141-
if (this.hotReload) {
142-
// Find generated JavaScript output file (e.g. renderer.js or web.js)
143-
// and inject the code snippet that listens for locale updates and replaces vue-i18n's locales
144-
145-
/** @type {string} */
146-
const filename = [...[...compilation.chunks][0].files]
147-
.find(file => file.endsWith('.js'))
148-
149-
compilation.assets[filename]._source._children.push(`\n${this.hotReloadScript}`)
150-
}
151-
})
152141
}
153142

154143
loadLocales() {

_scripts/_domParser.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

_scripts/_hotReloadLocalesScript.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)