forked from FreeTubeApp/FreeTube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit bfde267.
- Loading branch information
Showing
308 changed files
with
14,938 additions
and
20,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"@babel/env", | ||
{ | ||
"targets": { | ||
"chrome": "130", | ||
"chrome": "122", | ||
"node": "20.9.0" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
_scripts | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
const path = require('path') | ||
const { readFileSync } = require('fs') | ||
|
||
const activeLocales = JSON.parse(readFileSync(path.join(__dirname, './static/locales/activeLocales.json'))) | ||
|
||
module.exports = { | ||
// https://eslint.org/docs/user-guide/configuring#using-configuration-files-1 | ||
root: true, | ||
|
||
// https://eslint.org/docs/user-guide/configuring#specifying-environments | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
|
||
// https://eslint.org/docs/user-guide/configuring#specifying-parser | ||
parser: 'vue-eslint-parser', | ||
|
||
// https://eslint.vuejs.org/user-guide/#faq | ||
parserOptions: { | ||
parser: '@babel/eslint-parser', | ||
ecmaVersion: 2022, | ||
sourceType: 'module' | ||
}, | ||
|
||
overrides: [ | ||
{ | ||
files: ['*.json'], | ||
parser: 'jsonc-eslint-parser', | ||
extends: ['plugin:jsonc/base'], | ||
rules: { | ||
'no-tabs': 'off', | ||
'comma-spacing': 'off' | ||
} | ||
}, | ||
{ | ||
files: ['*.yaml', '*.yml'], | ||
parser: 'yaml-eslint-parser', | ||
extends: ['plugin:yml/recommended'], | ||
rules: { | ||
'yml/no-irregular-whitespace': 'off' | ||
} | ||
} | ||
], | ||
|
||
// https://eslint.org/docs/user-guide/configuring#extending-configuration-files | ||
// order matters: from least important to most important in terms of overriding | ||
// Prettier + Vue: https://medium.com/@gogl.alex/how-to-properly-set-up-eslint-with-prettier-for-vue-or-nuxt-in-vscode-e42532099a9c | ||
extends: [ | ||
'prettier', | ||
'eslint:recommended', | ||
'plugin:vue/recommended', | ||
'standard', | ||
'plugin:jsonc/recommended-with-json', | ||
'plugin:vuejs-accessibility/recommended', | ||
'plugin:@intlify/vue-i18n/recommended' | ||
], | ||
|
||
// https://eslint.org/docs/user-guide/configuring#configuring-plugins | ||
plugins: ['vue', 'vuejs-accessibility', 'n', 'unicorn', '@intlify/vue-i18n'], | ||
|
||
rules: { | ||
'space-before-function-paren': 'off', | ||
'comma-dangle': ['error', 'only-multiline'], | ||
'vue/no-v-html': 'off', | ||
'no-console': ['error', { allow: ['warn', 'error'] }], | ||
'no-unused-vars': 'warn', | ||
'no-undef': 'warn', | ||
'object-shorthand': 'off', | ||
'vue/no-template-key': 'warn', | ||
'vue/no-useless-template-attributes': 'off', | ||
'vue/multi-word-component-names': 'off', | ||
'vuejs-accessibility/no-onchange': 'off', | ||
'vuejs-accessibility/label-has-for': ['error', { | ||
required: { | ||
some: ['nesting', 'id'] | ||
} | ||
}], | ||
'vuejs-accessibility/no-static-element-interactions': 'off', | ||
'n/no-callback-literal': 'warn', | ||
'n/no-path-concat': 'warn', | ||
'unicorn/better-regex': 'error', | ||
'unicorn/no-array-push-push': 'error', | ||
'unicorn/prefer-keyboard-event-key': 'error', | ||
'unicorn/prefer-regexp-test': 'error', | ||
'unicorn/prefer-string-replace-all': 'error', | ||
'@intlify/vue-i18n/no-dynamic-keys': 'error', | ||
// TODO: enable at a later date. currently disabled to prevent massive conflicts for initial PR | ||
// '@intlify/vue-i18n/no-unused-keys': [ | ||
// 'error', | ||
// { | ||
// extensions: ['.js', '.vue', 'yaml'] | ||
// } | ||
// ], | ||
'@intlify/vue-i18n/no-duplicate-keys-in-locale': 'error', | ||
'@intlify/vue-i18n/no-raw-text': [ | ||
'error', | ||
{ | ||
attributes: { | ||
'/.+/': [ | ||
'title', | ||
'aria-label', | ||
'aria-placeholder', | ||
'aria-roledescription', | ||
'aria-valuetext', | ||
'tooltip', | ||
'message' | ||
], | ||
input: ['placeholder', 'value'], | ||
img: ['alt'] | ||
}, | ||
ignoreText: ['-', '•', '/', 'YouTube', 'Invidious', 'FreeTube'] | ||
} | ||
], | ||
// Only applicable when we upgrade to Vue 3 and vue-i18n 9+ | ||
'@intlify/vue-i18n/no-deprecated-tc': 'off', | ||
|
||
'vue/require-explicit-emits': 'error', | ||
'vue/no-unused-emit-declarations': 'error', | ||
}, | ||
settings: { | ||
'vue-i18n': { | ||
localeDir: `./static/locales/{${activeLocales.join(',')}}.yaml`, | ||
messageSyntaxVersion: '^8.0.0' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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].6 | ||
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].6 | ||
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].6 | ||
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].6 | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
name: No Response | ||
|
||
# Both `issue_comment` and `scheduled` event types are required for this Action | ||
# to work properly. | ||
on: | ||
issue_comment: | ||
types: [created] | ||
schedule: | ||
# Run daily at midnight. | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
noResponse: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: lee-dohm/[email protected] | ||
with: | ||
token: ${{ github.token }} | ||
closeComment: > | ||
This issue has been automatically closed because there has been no response to our request for more information from the original author. | ||
With only the information that is currently in the issue, we don't have enough information to take action. | ||
Please reach out if you have or find the answers we need so that we can investigate further. | ||
daysUntilClose: 7 | ||
responseRequiredLabel: "U: Waiting for Response from Author" | ||
name: No Response | ||
|
||
# Both `issue_comment` and `scheduled` event types are required for this Action | ||
# to work properly. | ||
on: | ||
issue_comment: | ||
types: [created] | ||
schedule: | ||
# Run daily at midnight. | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
noResponse: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: lee-dohm/[email protected] | ||
with: | ||
token: ${{ github.token }} | ||
closeComment: > | ||
This issue has been automatically closed because there has been no response to our request for more information from the original author. | ||
With only the information that is currently in the issue, we don't have enough information to take action. | ||
Please reach out if you have or find the answers we need so that we can investigate further. | ||
daysUntilClose: 14 | ||
responseRequiredLabel: "U: Waiting for Response from Author" |
Oops, something went wrong.