Skip to content

Commit

Permalink
**Release 0.22.0.2**
Browse files Browse the repository at this point in the history
  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.2
  • Loading branch information
MarmadileManteater committed Oct 30, 2024
2 parents 16d6ccc + 0ed04f1 commit efc9d8e
Show file tree
Hide file tree
Showing 346 changed files with 21,057 additions and 15,417 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
]
],
"plugins": [
"@babel/proposal-class-properties"
"@babel/plugin-transform-class-properties"
]
}
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

128 changes: 0 additions & 128 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ updates:
patterns:
- "eslint"
- "eslint-*"
- "@eslint/*"
- "yaml-eslint-parser"
- "vue-eslint-parser"
stylelint:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/buildCordova.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
cache: "yarn"
- name: 🧶 Yarn install
run: yarn ci

- name: Is vtt-thumbnails installed correctly?
run: |
ls ./node_modules/videojs-vtt-thumbnails-freetube
- name: Set environment icon & splash for android app
run: |
# to make it easier to tell which is which when multiple are installed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/calibreapp-image-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
compressOnly: true
- name: Create New Pull Request If Needed
if: steps.calibre.outputs.markdown != ''
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
title: Compressed Images Nightly
branch-suffix: timestamp
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,22 @@ jobs:
date +"%Y-%m-%d" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Update x64 File Location in yml File
uses: mikefarah/[email protected].2
uses: mikefarah/[email protected].3
with:
# The Command which should be run
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
- name: Update x64 Hash in yml File
uses: mikefarah/[email protected].2
uses: mikefarah/[email protected].3
with:
# The Command which should be run
cmd: yq -i '.modules[0].sources[0].sha256 = "${{ env.HASH_X64 }}"' io.freetubeapp.FreeTube.yml
- name: Update ARM File Location in yml File
uses: mikefarah/[email protected].2
uses: mikefarah/[email protected].3
with:
# The Command which should be run
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
- name: Update ARM Hash in yml File
uses: mikefarah/[email protected].2
uses: mikefarah/[email protected].3
with:
# The Command which should be run
cmd: yq -i '.modules[0].sources[1].sha256 = "${{ env.HASH_ARM64 }}"' io.freetubeapp.FreeTube.yml
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/releaseCordova.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
cache: "yarn"
- name: 🧶 Yarn install
run: yarn ci
Expand All @@ -36,7 +36,11 @@ jobs:
with:
result-encoding: string
script: |
return '${{ steps.pkg.outputs.version }}.${{ github.run_number }}'
// TODO✏ automate this
var run_number = ${{ github.run_number }} - 121
var version = '${{ steps.pkg.outputs.version }}'
var version_number = version + '.' + run_number
return version_number
- name: Set App ID Variable
id: appId
uses: actions/github-script@v6
Expand Down
70 changes: 0 additions & 70 deletions .github/workflows/report.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["deep"]
"ignorePseudoClasses": ["deep", "global"]
}
],
"a11y/no-outline-none": true,
Expand Down
25 changes: 7 additions & 18 deletions _scripts/ProcessLocalesPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ class ProcessLocalesPlugin {
/** @type {(updatedLocales: [string, string][]) => void|null} */
this.notifyLocaleChange = null

if (this.hotReload) {
this.hotReloadScript = readFileSync(`${__dirname}/_hotReloadLocalesScript.js`, 'utf-8')
}

this.loadLocales()
}

/** @param {import('webpack').Compiler} compiler */
apply(compiler) {
const { CachedSource, RawSource } = compiler.webpack.sources;
const { Compilation } = compiler.webpack
const { Compilation, DefinePlugin } = compiler.webpack

new DefinePlugin({
'process.env.HOT_RELOAD_LOCALES': this.hotReload
}).apply(compiler)

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

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

compiler.hooks.afterCompile.tap(PLUGIN_NAME, (compilation) => {
// eslint-disable-next-line no-extra-boolean-cast
if (!!compiler.watching) {
// watch locale files for changes
compilation.fileDependencies.addAll(this.filePaths)
}
})

compiler.hooks.emit.tap(PLUGIN_NAME, (compilation) => {
if (this.hotReload) {
// Find generated JavaScript output file (e.g. renderer.js or web.js)
// and inject the code snippet that listens for locale updates and replaces vue-i18n's locales

/** @type {string} */
const filename = [...[...compilation.chunks][0].files]
.find(file => file.endsWith('.js'))

compilation.assets[filename]._source._children.push(`\n${this.hotReloadScript}`)
}
})
}

loadLocales() {
Expand Down
5 changes: 0 additions & 5 deletions _scripts/_domParser.js

This file was deleted.

18 changes: 0 additions & 18 deletions _scripts/_hotReloadLocalesScript.js

This file was deleted.

Loading

0 comments on commit efc9d8e

Please sign in to comment.