Skip to content

Commit a8658a7

Browse files
committed
Merge branch 'development'
2 parents 45f80b5 + 8c6bfaa commit a8658a7

File tree

443 files changed

+24659
-28634
lines changed

Some content is hidden

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

443 files changed

+24659
-28634
lines changed

.eslintrc.js

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,72 @@ module.exports = {
1111
// https://eslint.org/docs/user-guide/configuring#specifying-parser
1212
parser: 'vue-eslint-parser',
1313

14-
// https://vuejs.github.io/eslint-plugin-vue/user-guide/#faq
14+
// https://eslint.vuejs.org/user-guide/#faq
1515
parserOptions: {
16-
parser: 'babel-eslint',
17-
ecmaVersion: 2018,
16+
parser: '@babel/eslint-parser',
17+
ecmaVersion: 2022,
1818
sourceType: 'module'
1919
},
2020

21+
overrides: [
22+
{
23+
files: ['*.json'],
24+
parser: 'jsonc-eslint-parser',
25+
extends: ['plugin:jsonc/base'],
26+
rules: {
27+
'no-tabs': 'off',
28+
'comma-spacing': 'off'
29+
}
30+
},
31+
{
32+
files: ['*.yaml', '*.yml'],
33+
parser: 'yaml-eslint-parser',
34+
extends: ['plugin:yml/recommended'],
35+
rules: {
36+
'yml/no-irregular-whitespace': 'off'
37+
}
38+
}
39+
],
40+
2141
// https://eslint.org/docs/user-guide/configuring#extending-configuration-files
2242
// order matters: from least important to most important in terms of overriding
2343
// Prettier + Vue: https://medium.com/@gogl.alex/how-to-properly-set-up-eslint-with-prettier-for-vue-or-nuxt-in-vscode-e42532099a9c
2444
extends: [
2545
'prettier',
2646
'eslint:recommended',
2747
'plugin:vue/recommended',
28-
'standard'
48+
'standard',
49+
'plugin:jsonc/recommended-with-json',
50+
'plugin:vuejs-accessibility/recommended'
2951
],
3052

3153
// https://eslint.org/docs/user-guide/configuring#configuring-plugins
32-
plugins: ['vue'],
54+
plugins: ['vue', 'vuejs-accessibility', 'n', 'unicorn'],
3355

3456
rules: {
3557
'space-before-function-paren': 'off',
36-
'comma-dangle': ['error', 'never'],
58+
'comma-dangle': ['error', 'only-multiline'],
3759
'vue/no-v-html': 'off',
3860
'no-console': ['error', { allow: ['warn', 'error'] }],
3961
'no-unused-vars': 'warn',
4062
'no-undef': 'warn',
63+
'object-shorthand': 'off',
4164
'vue/no-template-key': 'warn',
4265
'vue/no-useless-template-attributes': 'off',
43-
'vue/multi-word-component-names': 'off'
66+
'vue/multi-word-component-names': 'off',
67+
'vuejs-accessibility/no-onchange': 'off',
68+
'vuejs-accessibility/label-has-for': ['error', {
69+
required: {
70+
some: ['nesting', 'id']
71+
}
72+
}],
73+
'vuejs-accessibility/no-static-element-interactions': 'off',
74+
'n/no-callback-literal': 'warn',
75+
'n/no-path-concat': 'warn',
76+
'unicorn/better-regex': 'error',
77+
'unicorn/no-array-push-push': 'error',
78+
'unicorn/prefer-keyboard-event-key': 'error',
79+
'unicorn/prefer-regexp-test': 'error',
80+
'unicorn/prefer-string-replace-all': 'error'
4481
}
4582
}

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug Report
22
description: Report an issue or unexpected behavior that occurs within the application
33
title: "[Bug]: "
4-
labels: "bug"
4+
labels: ["bug"]
55
body:
66
- type: markdown
77
attributes:
@@ -14,11 +14,15 @@ body:
1414
description: Please ensure you've completed all of the following.
1515
options:
1616
- label: I have encountered this bug in the [latest release of FreeTube](https://github.com/FreeTubeApp/FreeTube/releases).
17-
required: true
18-
- label: I have searched the [issue tracker](https://github.com/FreeTubeApp/FreeTube/issues) for open and closed issues that are similar to the bug report I want to file, without success.
17+
required: true
18+
- label: I have encountered this bug in the [official downloads of FreeTube](https://github.com/FreeTubeApp/FreeTube#official-downloads).
19+
required: true
20+
- label: I have searched the issue tracker for [open](https://github.com/FreeTubeApp/FreeTube/issues?q=is%3Aopen+is%3Aissue) and [closed](https://github.com/FreeTubeApp/FreeTube/issues?q=is%3Aissue+is%3Aclosed) issues that are similar to the bug report I want to file, without success.
1921
required: true
2022
- label: I have searched the [documentation](https://docs.freetubeapp.io/) for information that matches the description of the bug I want to file, without success.
2123
required: true
24+
- label: This issue contains only one bug.
25+
required: true
2226
- type: textarea
2327
attributes:
2428
label: Describe the bug
@@ -29,7 +33,7 @@ body:
2933
3. Scroll down to '....'
3034
4. See error
3135
validations:
32-
required: true
36+
required: true
3337
- type: textarea
3438
attributes:
3539
label: Expected Behavior
@@ -77,7 +81,8 @@ body:
7781
attributes:
7882
label: Installation Method
7983
options:
80-
- .apk
84+
- .apk (Alpine Linux Package)
85+
- .apk (Android, FreeTubeCordova)
8186
- .AppImage
8287
- AUR
8388
- Chocolatey
@@ -86,18 +91,20 @@ body:
8691
- .exe
8792
- Flathub
8893
- MPR
94+
- Nix
8995
- .pacman
9096
- Portable
9197
- PortableApps
9298
- .rpm
9399
- Scoop
100+
- Snapcraft
94101
- winget
95102
- .zip
96103
- other
97104
validations:
98105
required: true
99106
- type: dropdown
100-
attributes:
107+
attributes:
101108
label: Primary API used
102109
description: What is the primary API being used?
103110
multiple: false

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ body:
1313
label: Guidelines
1414
description: Please ensure you've completed all of the following.
1515
options:
16-
- label: I have searched the [issue tracker](https://github.com/FreeTubeApp/FreeTube/issues) for open and closed issues that are similar to the feature request I want to file, without success.
16+
- label: I have searched the issue tracker for [open](https://github.com/FreeTubeApp/FreeTube/issues?q=is%3Aopen+is%3Aissue) and [closed](https://github.com/FreeTubeApp/FreeTube/issues?q=is%3Aissue+is%3Aclosed) issues that are similar to the feature request I want to file, without success.
1717
required: true
1818
- label: I have searched the [documentation](https://docs.freetubeapp.io/) for information that matches the description of the feature request I want to file, without success.
1919
required: true
20+
- label: This issue contains only one feature request.
21+
required: true
2022
- type: textarea
2123
attributes:
2224
label: Problem Description

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ updates:
77
labels:
88
- "PR: waiting for review"
99
- "PR: dependencies"
10+
open-pull-requests-limit: 15
1011
- package-ecosystem: "github-actions"
1112
directory: "/"
1213
schedule:

.github/workflows/autoLabelDuplicate.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ jobs:
77
test:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: Amwam/[email protected]
10+
- name: Check Comment Author
11+
if: github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER'
12+
uses: Amwam/[email protected]
1113
with:
12-
keywords: '["duplicate of"]'
14+
keywords: '["duplicate of #", "duplicate of https://github.com/FreeTubeApp/FreeTube/issues/", "duplicate of https://github.com/FreeTubeApp/FreeTube/pulls/"]'
1315
labels: '["U: duplicate"]'
1416
github-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/autoLabelIssue.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
steps:
1010
- uses: Naturalclar/[email protected]
1111
with:
12-
body: "both"
12+
title-or-body: "body"
1313
parameters: >-
1414
[
1515
{
1616
"keywords": ["visual bug"],
1717
"labels": ["B: visual"]
1818
},
1919
{
20-
"keywords": ["AUR", "Chocolatey", "PortableApps", "winget", "Scoop", "MPR"],
20+
"keywords": ["AUR", "Chocolatey", "FreeTubeCordova", "PortableApps", "winget", "Scoop", "Snapcraft", "MPR", "Nix"],
2121
"labels": ["B: Unofficial Download"]
2222
},
2323
{

.github/workflows/autoMerge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Auto Merge PR
22
on:
33
pull_request_target:
4-
types: [opened, synchronize, reopened, auto_merge_disabled]
4+
types: [opened, synchronize, reopened, auto_merge_disabled, ready_for_review]
55

66
jobs:
77
build:
88
runs-on: ubuntu-latest
99

1010
steps:
1111
- name: Auto Merge PR
12-
if: contains(${{ github.event.pull_request.base.ref }}, 'development') || contains(${{ github.event.pull_request.base.ref }}, 'RC')
12+
if: ${{ !github.event.pull_request.draft && (contains(github.event.pull_request.base.ref, 'development') || contains(github.event.pull_request.base.ref, 'RC')) }}
1313
run: |
1414
echo ${{ secrets.PUSH_TOKEN }} >> auth.txt
1515
gh auth login --with-token < auth.txt

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
node-version: [16.x]
15+
node-version: [18.x]
1616
runtime:
1717
- linux-x64
1818
- linux-armv7l
@@ -57,7 +57,7 @@ jobs:
5757
- run: yarn run ci
5858
- run: yarn run lint
5959
- name: Get Version Number
60-
uses: nyaayaya/package-version@v1
60+
uses: jozsefsallai/node-package-version@v1.0.4
6161
with:
6262
path: 'package.json'
6363
follow-symlinks: false
@@ -84,7 +84,7 @@ jobs:
8484
# script: if ${{ env.IS_DEV }} then echo "::set-output name=VERSION_NUMBER::${{ env.VERSION_NUMBER_NIGHTLY }}" else echo "::set-output name=VERSION_NUMBER::${{ env.VERSION_NUMBER }}" fi
8585

8686
- name: Update package.json version
87-
uses: jossef/action-set-json-field@v2
87+
uses: jossef/action-set-json-field@v2.1
8888
with:
8989
file: package.json
9090
field: version

.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@v4
23+
uses: peter-evans/create-pull-request@v5
2424
with:
2525
title: Compressed Images Nightly
2626
branch-suffix: timestamp

.github/workflows/conflicts.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
# In `pull_request` we wouldn't be able to change labels of fork PRs
88
pull_request_target:
99
types: [synchronize]
10-
workflow_run:
11-
workflows: ['Dummy workflow for conflicts']
12-
types: [requested]
1310

1411
jobs:
1512
main:
@@ -23,3 +20,4 @@ jobs:
2320
repoToken: "${{ secrets.GITHUB_TOKEN }}"
2421
commentOnDirty: "This pull request has conflicts, please resolve those before we can evaluate the pull request."
2522
commentOnClean: "Conflicts have been resolved. A maintainer will review the pull request shortly."
23+

.github/workflows/dummy-conflicts.yml

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

.github/workflows/flatpak.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,25 @@ jobs:
7777
date +"%Y-%m-%d" >> $GITHUB_ENV
7878
echo 'EOF' >> $GITHUB_ENV
7979
- name: Update x64 File Location in yml File
80-
run: yq w -i io.freetubeapp.FreeTube.yml 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'
80+
uses: mikefarah/[email protected]
81+
with:
82+
# The Command which should be run
83+
cmd: yq w -i io.freetubeapp.FreeTube.yml 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'
8184
- name: Update x64 Hash in yml File
82-
run: yq w -i io.freetubeapp.FreeTube.yml modules[0].sources[0].sha256 ${{ env.HASH_X64 }}
85+
uses: mikefarah/[email protected]
86+
with:
87+
# The Command which should be run
88+
cmd: yq w -i io.freetubeapp.FreeTube.yml modules[0].sources[0].sha256 ${{ env.HASH_X64 }}
8389
- name: Update ARM File Location in yml File
84-
run: yq w -i io.freetubeapp.FreeTube.yml 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'
90+
uses: mikefarah/[email protected]
91+
with:
92+
# The Command which should be run
93+
cmd: yq w -i io.freetubeapp.FreeTube.yml 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'
8594
- name: Update ARM Hash in yml File
86-
run: yq w -i io.freetubeapp.FreeTube.yml modules[0].sources[1].sha256 ${{ env.HASH_ARM64 }}
95+
uses: mikefarah/[email protected]
96+
with:
97+
# The Command which should be run
98+
cmd: yq w -i io.freetubeapp.FreeTube.yml modules[0].sources[1].sha256 ${{ env.HASH_ARM64 }}
8799
- name: Add Patch Notes to XML File
88100
run: xmlstarlet ed -L -i /application/releases/release[1] -t elem -n releaseTMP -v "" -i //releaseTMP -t attr -n version -v "${{ steps.sub.outputs.result }} Beta" -i //releaseTMP -t attr -n date -v "${{ env.CURRENT_DATE }}" -s //releaseTMP -t elem -n url -v "" -s //releaseTMP/url -t text -n "" -v "https://github.com/FreeTubeApp/FreeTube/releases/tag/v${{ steps.sub.outputs.result }}-beta" -r //releaseTMP -v "release" io.freetubeapp.FreeTube.metainfo.xml
89101
- name: Remove Release Files

.github/workflows/label-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: "Pull Request Labeler"
22
on:
33
pull_request_target:
4-
types: [opened, reopened]
4+
types: [opened, reopened, ready_for_review]
55

66
jobs:
77
triage:
88
permissions:
99
contents: read
1010
pull-requests: write
1111
runs-on: ubuntu-latest
12+
if: ${{ !github.event.pull_request.draft }}
1213
steps:
1314
- uses: actions/labeler@v4
1415
with:

.github/workflows/linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
# Steps represent a sequence of tasks that will be executed as part of the job
1919
steps:
2020
- uses: actions/checkout@v3
21-
- name: Use Node.js 16.x
21+
- name: Use Node.js 18.x
2222
uses: actions/setup-node@v3
2323
with:
24-
node-version: 16.x
24+
node-version: 18.x
2525
cache: "yarn"
2626
- run: yarn run ci
2727
- run: yarn run lint

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
node-version: [16.x]
15+
node-version: [18.x]
1616
runtime:
1717
- linux-x64
1818
- linux-armv7l
@@ -58,7 +58,7 @@ jobs:
5858
- run: yarn run lint
5959

6060
- name: Get Version Number
61-
uses: nyaayaya/package-version@v1
61+
uses: jozsefsallai/node-package-version@v1.0.4
6262
with:
6363
path: 'package.json'
6464
follow-symlinks: false

0 commit comments

Comments
 (0)