Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base Cordova build off of upstream web build #84

Merged
merged 381 commits into from
Jan 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
381 commits
Select commit Hold shift + click to select a range
a09a94a
! Fix incorrect selector (meant to be multiple targets not nested) (#…
PikachuEXE Dec 19, 2022
b2cd70d
Translated using Weblate (German)
Dec 19, 2022
614f3ed
Translated using Weblate (Finnish)
Dec 19, 2022
f38f2b7
Translated using Weblate (French)
Dec 19, 2022
6c8bc0a
Translated using Weblate (Italian)
Dec 19, 2022
b53cee6
Translated using Weblate (English (United Kingdom))
Dec 19, 2022
6f7adaa
Fix docs link in the data settings section (#2981)
absidue Dec 20, 2022
37da66b
Cleanup and simplify the settings password code (#2982)
absidue Dec 20, 2022
d8c60e5
Translated using Weblate (Portuguese)
laralem Dec 20, 2022
7e8e65a
Translated using Weblate (Hindi)
ShareASmile Dec 20, 2022
f694290
Update stale.yml (#2985)
efb4f5ff-1298-471a-8973-3d47447115dc Dec 21, 2022
4711c75
Translated using Weblate (Croatian)
milotype Dec 21, 2022
7ea690b
Set width so that overflow css rules are applied. (#2988)
elshimone Dec 22, 2022
c79674d
Support extra youtube embed playlist links (#2972)
petaded Dec 22, 2022
869e45c
Option to skip through the video by scrolling (#2418)
ai25 Dec 22, 2022
b0ab6f6
Translated using Weblate (Spanish)
gallegonovato Dec 22, 2022
6dcd431
Translated using Weblate (Polish)
Zakret Dec 22, 2022
640e618
Translated using Weblate (Turkish)
oersen Dec 22, 2022
241b2a3
Translated using Weblate (Galician)
gallegonovato Dec 22, 2022
532d9ae
Translated using Weblate (Ukrainian)
IhorHordiichuk Dec 22, 2022
b19f788
Translated using Weblate (Chinese (Simplified))
Dec 22, 2022
46f50df
Translated using Weblate (Chinese (Traditional))
s8321414 Dec 23, 2022
c8444bc
Translated using Weblate (Italian)
mapi68 Dec 23, 2022
677dc86
Translated using Weblate (Czech)
Dec 23, 2022
42ef2a3
Improve accessibility of Watch View (#2986)
ChunkyProgrammer Dec 23, 2022
0fe2f41
Translated using Weblate (Portuguese (Portugal))
Dec 23, 2022
a89c27e
Translated using Weblate (Japanese)
kyotaro Dec 23, 2022
6085334
Translated using Weblate (Portuguese)
Dec 23, 2022
788fc4c
Merge branch 'origin/development' into Weblate.
weblate Dec 23, 2022
1f6fcf0
Translated using Weblate (Polish)
Zakret Dec 23, 2022
49cf16b
Translated using Weblate (Arabic)
rex07 Dec 23, 2022
863abba
Translated using Weblate (Spanish)
gallegonovato Dec 23, 2022
7f7dbaa
Translated using Weblate (Portuguese)
Dec 23, 2022
84bf1b4
Translated using Weblate (Turkish)
oersen Dec 23, 2022
fa778a0
Translated using Weblate (Czech)
Dec 23, 2022
ba96048
Translated using Weblate (Ukrainian)
IhorHordiichuk Dec 23, 2022
d38827d
Translated using Weblate (Chinese (Simplified))
Dec 24, 2022
d4380d1
Translated using Weblate (Italian)
mapi68 Dec 24, 2022
e625a1a
Translated using Weblate (Hungarian)
ovari Dec 24, 2022
19dd23c
Translated using Weblate (Hebrew)
yarons Dec 24, 2022
c989550
Translated using Weblate (Galician)
gallegonovato Dec 24, 2022
2d636cb
Translated using Weblate (Galician)
gallegonovato Dec 24, 2022
67be22e
Translated using Weblate (German)
Atalanttore Dec 24, 2022
32af228
Translated using Weblate (Norwegian Bokmål)
comradekingu Dec 24, 2022
c8363e0
Translated using Weblate (Chinese (Simplified))
sith-on-mars Dec 25, 2022
344d7d1
Fixing Stale bot (#2992)
efb4f5ff-1298-471a-8973-3d47447115dc Dec 25, 2022
90ac5e6
Fix insecure coookie error (#2990)
absidue Dec 25, 2022
1a0786f
! Fix possible to do both actions in video player by scrolling (#2989)
PikachuEXE Dec 25, 2022
8816d76
Translated using Weblate (Russian)
Dec 25, 2022
3863d56
Translated using Weblate (Norwegian Bokmål)
comradekingu Dec 25, 2022
18e7532
Translated using Weblate (Chinese (Traditional))
s8321414 Dec 26, 2022
d490e58
Bump videojs-contrib-quality-levels from 2.2.1 to 3.0.0 (#2996)
dependabot[bot] Dec 26, 2022
529b216
Bump marked from 4.2.4 to 4.2.5 (#2998)
dependabot[bot] Dec 26, 2022
e7a68ee
Bump sass from 1.57.0 to 1.57.1 (#2995)
dependabot[bot] Dec 26, 2022
b77455e
Lazy load playlist components to improve performance (#2993)
absidue Dec 26, 2022
72a839f
Update app menu to add items for side nav items (#2965)
PikachuEXE Dec 26, 2022
e80d265
Translated using Weblate (Russian)
Dec 26, 2022
7163ddf
Escape special characters in channel names in ompl export (#3004)
absidue Dec 27, 2022
bef610f
Import the product name instead of using a define for it (#3003)
absidue Dec 27, 2022
cdc1b71
Use path.sep instead of working out the directory separator ourselves…
absidue Dec 27, 2022
cb0349d
Bump @babel/core from 7.20.5 to 7.20.7 (#2997)
dependabot[bot] Dec 27, 2022
a3a20a6
Only show prompt close button when it is needed (#3001)
absidue Dec 27, 2022
76159e1
Translated using Weblate (German)
Dec 27, 2022
4a62e8f
Translated using Weblate (Finnish)
Dec 27, 2022
cf645bc
Translated using Weblate (French)
Dec 27, 2022
7504677
Translated using Weblate (English (United Kingdom))
Dec 27, 2022
b208e49
Migrate the trending page to YouTube.js (#3005)
absidue Dec 27, 2022
46ce42d
Translated using Weblate (Russian)
Dec 27, 2022
bb179ae
Translated using Weblate (Japanese)
kyotaro Dec 28, 2022
f50c77e
Translated using Weblate (Russian)
Dec 28, 2022
1d1e6ea
Switch from sync fs APIs to fs/promises (#2991)
absidue Dec 29, 2022
dc77042
Translated using Weblate (Portuguese (Portugal))
Dec 29, 2022
0890c57
Translated using Weblate (Croatian)
milotype Dec 29, 2022
38ef4a3
Translated using Weblate (Bulgarian)
rddim Dec 29, 2022
e29a35b
Translated using Weblate (Bulgarian)
rddim Dec 29, 2022
8b0711f
Translated using Weblate (Norwegian Nynorsk)
Dec 29, 2022
e2c4cf4
Update conflicts.yml (#3009)
efb4f5ff-1298-471a-8973-3d47447115dc Dec 30, 2022
7e75710
Improve responsiveness of `Hide Videos From Channels` (#2994)
MarmadileManteater Dec 30, 2022
c5f22ed
Translated using Weblate (Russian)
Dec 30, 2022
a72b381
Translated using Weblate (Russian)
Dec 30, 2022
e749a2f
Translated using Weblate (Italian)
mapi68 Dec 30, 2022
8a30e32
Translated using Weblate (Czech)
Dec 30, 2022
5d1f465
Fix styling of the comment author text (#3012)
absidue Dec 31, 2022
2f01dd4
Parse channel handles in video descriptions (#3011)
absidue Dec 31, 2022
652b16b
Use a function for menu navigations (#3010)
absidue Dec 31, 2022
f91395d
Update copyleft year to 2023 (#3017)
PikachuEXE Dec 31, 2022
eaeb472
Remove unused meta.icon properties from the router config (#3000)
absidue Dec 31, 2022
b96c6b5
Fix clear button covered by new input wrapper (#3016)
PikachuEXE Dec 31, 2022
492ad19
Make getVideoParamsFromUrl and showExternalPlayerUnsupportedActionToa…
absidue Jan 1, 2023
7d50996
Translated using Weblate (Czech)
Jan 1, 2023
36e34fb
Add option to display distraction free titles (#2987)
elshimone Jan 1, 2023
e4302dc
Translated using Weblate (Japanese)
kyotaro Jan 1, 2023
3d23881
Translated using Weblate (Bulgarian)
rddim Jan 1, 2023
68a8a03
Translated using Weblate (Hungarian)
ovari Jan 1, 2023
069ffd0
Translated using Weblate (Czech)
Jan 1, 2023
05e45d4
Translated using Weblate (Ukrainian)
IhorHordiichuk Jan 1, 2023
47613d8
Fix no sources error on the watch page (#3019)
absidue Jan 2, 2023
eaaaf10
Translated using Weblate (Chinese (Simplified))
Jan 2, 2023
550fe6a
Translated using Weblate (Chinese (Simplified))
Jan 2, 2023
fe8752d
Translated using Weblate (Italian)
mapi68 Jan 2, 2023
fc6ae0e
Translated using Weblate (Turkish)
oersen Jan 2, 2023
44f5cff
Translated using Weblate (Greek)
giwrgosmant Jan 2, 2023
e7b9b32
Translated using Weblate (Hebrew)
yarons Jan 2, 2023
a6e21fc
Translated using Weblate (Icelandic)
sveinki Jan 2, 2023
6d7aa79
Bump actions/stale from 6 to 7 (#2999)
dependabot[bot] Jan 2, 2023
9dacdd4
Translated using Weblate (Portuguese (Portugal))
Jan 2, 2023
360a246
Translated using Weblate (Spanish)
gallegonovato Jan 2, 2023
1a6b5f0
Translated using Weblate (Portuguese)
Jan 2, 2023
5f8be73
Translated using Weblate (Galician)
gallegonovato Jan 2, 2023
d7d2045
Translated using Weblate (Russian)
Jan 2, 2023
0a1ee84
Fix workflow warnings (#3024)
ChunkyProgrammer Jan 3, 2023
8c18141
Use the new retrieve_player option in YouTube.js (#3022)
absidue Jan 3, 2023
bc44e27
Translated using Weblate (Chinese (Traditional))
s8321414 Jan 3, 2023
43a25f8
update linters & add stylelint (#3023)
ChunkyProgrammer Jan 3, 2023
0d0d64d
! Fix Ctrl/Cmd + C unable to copy text when viewing video (#3027)
PikachuEXE Jan 3, 2023
fed2719
Add support for lefthook local config for setting up option `rc` (#2961)
PikachuEXE Jan 3, 2023
68d4915
Translated using Weblate (French)
Jan 3, 2023
1d8a43e
Translated using Weblate (Portuguese (Brazil))
Jan 3, 2023
28ca027
Bump json5 from 1.0.1 to 1.0.2 (#3029)
dependabot[bot] Jan 3, 2023
4e2da8e
Translated using Weblate (Croatian)
milotype Jan 3, 2023
57ca0fc
Fix CSS variables (#3030)
absidue Jan 4, 2023
6dce9b8
Translated using Weblate (Arabic)
rex07 Jan 4, 2023
b157495
Add more electron guards (#3031)
absidue Jan 5, 2023
156176a
Migrate search to YouTube.js (#3028)
absidue Jan 5, 2023
bff8dc4
Improve accessibility of Channel View (#2984)
ChunkyProgrammer Jan 5, 2023
5ca547e
Translated using Weblate (Russian)
Jan 5, 2023
fd87d2a
Translated using Weblate (Italian)
mapi68 Jan 5, 2023
ca712c0
Translated using Weblate (Greek)
giwrgosmant Jan 5, 2023
4a2b2dd
Translated using Weblate (Turkish)
oersen Jan 5, 2023
7c4565d
Translated using Weblate (Hebrew)
yarons Jan 5, 2023
3d64690
Translated using Weblate (Chinese (Simplified))
Jan 5, 2023
e0c7fde
Translated using Weblate (Arabic)
rex07 Jan 5, 2023
ce355e7
Translated using Weblate (Icelandic)
sveinki Jan 5, 2023
3771dfd
Translated using Weblate (French)
dragibusnoir Jan 5, 2023
94c2326
Translated using Weblate (Polish)
strebski Jan 5, 2023
cfeb2e6
Translated using Weblate (Croatian)
milotype Jan 5, 2023
75c2796
Translated using Weblate (Spanish)
gallegonovato Jan 5, 2023
60b6079
Translated using Weblate (Czech)
Jan 5, 2023
f8814d7
Translated using Weblate (Galician)
gallegonovato Jan 5, 2023
13e9db2
Translated using Weblate (Bulgarian)
rddim Jan 5, 2023
5f12205
Translated using Weblate (Ukrainian)
IhorHordiichuk Jan 5, 2023
1ee3206
Translated using Weblate (Portuguese (Portugal))
Jan 6, 2023
4b55e49
Translated using Weblate (Portuguese)
Jan 6, 2023
15b1502
Migrate the watch page to YouTube.js (#3035)
absidue Jan 7, 2023
be8508e
Translated using Weblate (Chinese (Traditional))
s8321414 Jan 7, 2023
55b3781
Translated using Weblate (Hungarian)
ovari Jan 7, 2023
dd40493
Translated using Weblate (German)
Atalanttore Jan 7, 2023
fe85a17
Use webpack externals to exclude dependencies (#3036)
absidue Jan 7, 2023
75bf037
Hide the proxy settings in the web build (#3037)
absidue Jan 8, 2023
17ad3da
Update mastodon link to `@[email protected]` (#3038)
MarmadileManteater Jan 8, 2023
abd4708
Bump prettier from 2.8.1 to 2.8.2 (#3044)
dependabot[bot] Jan 9, 2023
23a6ea0
Bump @babel/core from 7.20.7 to 7.20.12 (#3043)
dependabot[bot] Jan 9, 2023
d0240fb
Bump babel-loader from 9.1.0 to 9.1.2 (#3042)
dependabot[bot] Jan 9, 2023
842901f
Bump eslint-plugin-jsonc from 2.5.0 to 2.6.0 (#3040)
dependabot[bot] Jan 9, 2023
4d4f1c0
Bump postcss from 8.4.20 to 8.4.21 (#3041)
dependabot[bot] Jan 9, 2023
597cf8a
Translated using Weblate (Portuguese)
DanielAbrante Jan 11, 2023
0c69fc2
Generate local API sessions locally (#3052)
absidue Jan 12, 2023
03f73c5
Move invidious out of stores (#3045)
ChunkyProgrammer Jan 12, 2023
afb9e51
small accessibility improvements (#3033)
ChunkyProgrammer Jan 12, 2023
c1462dc
Translated using Weblate (English (United Kingdom))
ChunkyProgrammer Jan 12, 2023
7becd36
Add an IS_ELECTRON_MAIN define instead of runtime detection (#3056)
absidue Jan 13, 2023
ae50ec7
Migrate live chat to YouTube.js (#3054)
absidue Jan 13, 2023
97cb339
Decipher format URLs with the local API (#3053)
absidue Jan 14, 2023
67b9a74
! Fix code for getting event.key lowercase value (#3061)
PikachuEXE Jan 14, 2023
3e80e96
Use ES6 classes for video.js components instead of videojs.extend (#3…
absidue Jan 14, 2023
5f522d5
! Fix searching in channel view broken (#3062)
PikachuEXE Jan 14, 2023
d8e6c3e
Translated using Weblate (Norwegian Nynorsk)
Sandyran Jan 14, 2023
a953142
Import store modules with ES6 imports instead of dynamically (#3064)
absidue Jan 15, 2023
3d6d379
Translated using Weblate (Norwegian Bokmål)
Sandyran Jan 15, 2023
7be8c12
Translated using Weblate (Norwegian Nynorsk)
Sandyran Jan 15, 2023
523235f
Add a formatNumber helper and other i18n cleanup (#3055)
absidue Jan 15, 2023
8db8ca2
Translated using Weblate (Portuguese (Brazil))
Jan 15, 2023
458dd62
Translated using Weblate (Norwegian Nynorsk)
Sandyran Jan 16, 2023
27e926b
Translated using Weblate (Spanish (Mexico))
Greycier Jan 16, 2023
5b701dd
Translated using Weblate (Norwegian Nynorsk)
Sandyran Jan 16, 2023
005b473
Bump prettier from 2.8.2 to 2.8.3 (#3085)
dependabot[bot] Jan 17, 2023
f69cc47
Bump marked from 4.2.5 to 4.2.12 (#3076)
dependabot[bot] Jan 17, 2023
0a66a0f
Bump eslint-plugin-vue from 9.8.0 to 9.9.0 (#3077)
dependabot[bot] Jan 17, 2023
b584446
Bump eslint-plugin-import from 2.26.0 to 2.27.4 (#3081)
dependabot[bot] Jan 17, 2023
59788a8
Bump lefthook from 1.2.6 to 1.2.7 (#3078)
dependabot[bot] Jan 17, 2023
200bb88
Bump rimraf from 3.0.2 to 4.1.0 (#3088)
dependabot[bot] Jan 17, 2023
fb1a62b
Bump eslint-plugin-n from 15.6.0 to 15.6.1 (#3080)
dependabot[bot] Jan 17, 2023
faf019e
Bump eslint-plugin-vuejs-accessibility from 2.0.0 to 2.1.0 (#3082)
dependabot[bot] Jan 17, 2023
860cf5a
Bump electron from 22.0.0 to 22.0.2 (#3084)
dependabot[bot] Jan 17, 2023
6473432
Bump eslint from 8.31.0 to 8.32.0 (#3083)
dependabot[bot] Jan 17, 2023
1e94d01
Translated using Weblate (Polish)
Zakret Jan 17, 2023
2cd8f0f
Switch from Vue.extend to defineComponent (#3066)
absidue Jan 18, 2023
41687aa
Don't react when selecting the current trending tab (#3070)
absidue Jan 18, 2023
64d6d9b
Correct argument on `invidiousGetPlaylistInfo` (#3089)
MarmadileManteater Jan 19, 2023
a89c200
! Fix search view not loading result starting 2nd page via local API …
PikachuEXE Jan 19, 2023
ca42dcd
Translated using Weblate (Norwegian Bokmål)
Sandyran Jan 19, 2023
9484fd3
Translated using Weblate (Norwegian Nynorsk)
Sandyran Jan 19, 2023
0f4bf0e
Map `videos` property on Invidious API response (#3090)
MarmadileManteater Jan 19, 2023
12e9565
Bind directive to function instead of function call (#3091)
MarmadileManteater Jan 19, 2023
28ee117
Translated using Weblate (Russian)
Jan 19, 2023
590f3a6
! Fix searching (2nd time onward) in channel view broken (#3073)
PikachuEXE Jan 20, 2023
c3c6365
Use a single import for the brand icons (#3094)
absidue Jan 20, 2023
2d0fc8e
Translated using Weblate (Russian)
Jan 20, 2023
e59955a
Merge branch 'development' into new-cordova-build
MarmadileManteater Jan 20, 2023
2222ef8
Change `color: white` to `color: inherit`
MarmadileManteater Jan 21, 2023
9916037
Add logic for setting proper android version codes
MarmadileManteater Jan 21, 2023
f9522b8
Reduce the space between the top of the screen and the routerView
MarmadileManteater Jan 21, 2023
bc896f4
Make the splash screen look better in dark mode
MarmadileManteater Jan 21, 2023
ec36a5e
Set the splashscreen icon
MarmadileManteater Jan 21, 2023
a6b23ca
Add check for un-updated invidious version
MarmadileManteater Jan 21, 2023
9f607cd
Add `Cordova Settings` section
MarmadileManteater Jan 21, 2023
72fb544
Switch from exact wait time to `splashscreen.show()`
MarmadileManteater Jan 21, 2023
00b252f
Merge remote-tracking branch 'origin' into bring-in-cordova-changes
MarmadileManteater Jan 21, 2023
ec4caa7
Float the share links to the middle on small 📱displays
MarmadileManteater Jan 21, 2023
03f0acd
Remove no longer necessary `if`s
MarmadileManteater Jan 21, 2023
351fb92
Add `fs-extra` to the dev-dependencies
MarmadileManteater Jan 21, 2023
e7b91f7
Update reference to `move` from `fs-extra`
MarmadileManteater Jan 21, 2023
3cefd6f
Add a `shortcut icon` to `index.ejs`
MarmadileManteater Jan 21, 2023
54b3c09
Move icon into `static`
MarmadileManteater Jan 21, 2023
0a7e5d3
Explicitly set node-version
MarmadileManteater Jan 21, 2023
eca1ae7
Update gh actions
MarmadileManteater Jan 21, 2023
9200d20
Attempt to extract the package JSON data manually
MarmadileManteater Jan 21, 2023
18e98a5
Add step to echo back json
MarmadileManteater Jan 21, 2023
4df5978
🤷‍♀️
MarmadileManteater Jan 21, 2023
0ebf055
Attempt json parse inside gh script
MarmadileManteater Jan 21, 2023
d2fe886
Remove part of the read_package step
MarmadileManteater Jan 21, 2023
af0f2d6
🤷‍♀️
MarmadileManteater Jan 21, 2023
d7de287
Replace percent signs with space
MarmadileManteater Jan 21, 2023
2aec24e
Trying a multi-line string
MarmadileManteater Jan 21, 2023
6c2bfa4
Try `GITHUB_ENV`
MarmadileManteater Jan 21, 2023
ca51479
Try a new gh action
MarmadileManteater Jan 21, 2023
ada87cd
Rename step
MarmadileManteater Jan 21, 2023
c1fc053
Fix naming
MarmadileManteater Jan 21, 2023
ec571f8
Differentiate development build name
MarmadileManteater Jan 21, 2023
c39f103
Change `name` to `productName`
MarmadileManteater Jan 21, 2023
38702b8
Forgot the `Name` in `productName`
MarmadileManteater Jan 21, 2023
1800c67
Remove hyphen from app name
MarmadileManteater Jan 21, 2023
f981b83
Testing out modified release pipeline
MarmadileManteater Jan 21, 2023
3b04b60
Fix indenting
MarmadileManteater Jan 21, 2023
2b67b5b
Correct the environment
MarmadileManteater Jan 21, 2023
86a1a59
Merge branch 'new-cordova-build' of https://github.com/MarmadileMante…
MarmadileManteater Jan 21, 2023
d28494d
Switch release to environment named release
MarmadileManteater Jan 21, 2023
960e790
Fix `asset_path` in upload
MarmadileManteater Jan 21, 2023
4a6cd00
remove development suffix from releaseCordova
MarmadileManteater Jan 21, 2023
23c0c87
Adjust release `asset_path`
MarmadileManteater Jan 21, 2023
81d3c70
Adjust `yarn build:cordova` arguments to allow --release
MarmadileManteater Jan 22, 2023
a1adcd7
Add log to tell if `release` is being set
MarmadileManteater Jan 22, 2023
11b74e0
Add `--stacktrace` argument
MarmadileManteater Jan 22, 2023
9c6e4f4
Troubleshoot signing
MarmadileManteater Jan 22, 2023
8fe0ed4
🤔 unsure why building the `--release` flag causes signing to fail
MarmadileManteater Jan 22, 2023
8953b00
🔨Troubleshoot signing issues
MarmadileManteater Jan 22, 2023
7ace2cc
Remove `--release` flag from release for now
MarmadileManteater Jan 22, 2023
fd97825
Modify update checking logic slightly
MarmadileManteater Jan 22, 2023
83602f9
Switch the development and nightly labels;
MarmadileManteater Jan 22, 2023
5ec9390
Set `buildCordova.yml` to point back to `development`
MarmadileManteater Jan 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 35 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,39 @@ module.exports = {
// https://eslint.org/docs/user-guide/configuring#specifying-parser
parser: 'vue-eslint-parser',

// https://vuejs.github.io/eslint-plugin-vue/user-guide/#faq
// https://eslint.vuejs.org/user-guide/#faq
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2018,
sourceType: 'module'
parser: '@babel/eslint-parser',
ecmaVersion: 2022,
sourceType: 'module',
requireConfigFile: false
},

overrides: [
{
files: ['*.json'],
parser: 'jsonc-eslint-parser',
rules: {
'no-tabs': 'off',
'comma-spacing': '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'
'standard',
'plugin:jsonc/recommended-with-json',
// 'plugin:vuejs-accessibility/recommended' // uncomment once issues are fixed
],

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

rules: {
'space-before-function-paren': 'off',
Expand All @@ -38,8 +52,22 @@ module.exports = {
'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'
'vue/multi-word-component-names': 'off',
'vuejs-accessibility/no-onchange': 'off',
'vuejs-accessibility/label-has-for': ['error', {
required: {
some: ['nesting', 'id']
}
}],
'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'
}
}
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ updates:
labels:
- "PR: waiting for review"
- "PR: dependencies"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/autoMerge.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Auto Merge PR
on:
pull_request_target:
types: [opened, synchronize, reopened, auto_merge_disabled]
types: [opened, synchronize, reopened, auto_merge_disabled, ready_for_review]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Auto Merge PR
if: contains(${{ github.event.pull_request.base.ref }}, 'development') || contains(${{ github.event.pull_request.base.ref }}, 'RC')
if: github.event.pull_request.draft == false && (contains(${{ github.event.pull_request.base.ref }}, 'development') || contains(${{ github.event.pull_request.base.ref }}, 'RC'))
run: |
echo ${{ secrets.PUSH_TOKEN }} >> auth.txt
gh auth login --with-token < auth.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- run: yarn run ci
- run: yarn run lint
- name: Get Version Number
uses: nyaayaya/package-version@v1
uses: jozsefsallai/node-package-version@v1.0.4
with:
path: 'package.json'
follow-symlinks: false
Expand All @@ -84,7 +84,7 @@ jobs:
# 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

- name: Update package.json version
uses: jossef/action-set-json-field@v2
uses: jossef/action-set-json-field@v2.1
with:
file: package.json
field: version
Expand Down
106 changes: 53 additions & 53 deletions .github/workflows/buildCordova.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,91 +9,91 @@ on:

jobs:
build:
strategy:
matrix:
node-version: [16.x]
runtime: [ linux-x64 ]
include:
- runtime: linux-x64
os: ubuntu-18.04

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
environment: development

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 16.x
cache: "yarn"
- run: npm run ci
- name: 🧶 Yarn install
run: yarn ci

- name: Lint code
run: npm run lint
- name: 🔍Lint code
run: yarn lint

- name: Get Version Number
uses: nyaayaya/package-version@v1
with:
path: 'package.json'
follow-symlinks: false
- name: 📚Read package.json
id: pkg
uses: jaywcjlove/[email protected]

- name: Set Version Number Variable
id: versionNumber
uses: actions/github-script@v6
env:
VERSION_NUMBER_DEVELOPMENT: ${{ env.PACKAGE_VERSION }}-development-${{ github.run_number }}
with:
result-encoding: string
script: |
return "${{ env.VERSION_NUMBER_DEVELOPMENT }}"
return '${{ steps.pkg.outputs.version }}-nightly-${{ github.run_number }}'
- name: Set App ID Variable
id: appId
uses: actions/github-script@v6
with:
result-encoding: string
script: |
return '${{ steps.pkg.outputs.name }}.nightly'

- name: Update package.json version
uses: jossef/action-set-json-field@v2
- name: Update package.json version
uses: jossef/action-set-json-field@v2.1
with:
file: package.json
field: version
value: ${{ steps.versionNumber.outputs.result }}

- name: ⬆ Update package.json app environment
uses: jossef/[email protected]
with:
file: package.json
field: name
value: ${{ steps.appId.outputs.result }}


- name: ⬆ Update package.json product name
uses: jossef/[email protected]
with:
file: package.json
field: productName
value: ${{ steps.pkg.outputs.productName }} Nightly

- name: Install libarchive-tools
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
run: sudo apt -y install libarchive-tools; echo "Version Number ${{ toJson(job) }} ${{ toJson(needs) }}"
- name: 📦 Pack for 🕸web with Node.js
run: yarn pack:web

- name: Pack with Node.js ${{ matrix.node-version}}
if: contains(matrix.runtime, 'x64')
run: npm run pack:browser
- name: 📡 Upload PWA Artifact
uses: actions/upload-artifact@v3
with:
name: freetube-${{ steps.versionNumber.outputs.result }}-PWA
path: dist/web

- name: Setup Android SDK Tools
if: contains(matrix.runtime, 'x64')
- name: 🚧 Setup Android SDK Tools
uses: android-actions/[email protected]

- name: Fetch keystore from secrets
- name: 📦 Pack for 📱Android with Node.js & Cordova
run: yarn pack:cordova

- name: 🦴 Fetch keystore from secrets
run: |
while read -r line;
do
echo "${line}" >> freetube.keystore.asc
done <<< '${{ secrets.KEYSTORE }}'
gpg -d --passphrase '${{ secrets.KEYSTORE_PASSWORD }}' --batch freetube.keystore.asc >> freetube.keystore

- name: Build APK with Cordova with Node.js ${{ matrix.node-version}}
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
run: npm run build:cordova freetube-${{ steps.versionNumber.outputs.result }}.apk cordova ./freetube.keystore ${{ secrets.KEYSTORE_PASSWORD }}

- name: Upload Cordova APK Artifact
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
with:
name: freetube-${{ steps.versionNumber.outputs.result }}.apk
path: build/freetube-${{ steps.versionNumber.outputs.result }}.apk

- name: Build HTML5 with Node.js ${{ matrix.node-version}}
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
run: npm run build:cordova freetube browser
- name: 👷‍♀️ Build APK with Cordova with Node.js
run: yarn build:cordova freetube-${{ steps.versionNumber.outputs.result }}.apk ./freetube.keystore ${{ secrets.KEYSTORE_PASSWORD }}

- name: Upload Cordova HTML5 Artifact
- name: 📡 Upload Cordova APK Artifact
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
with:
name: freetube-${{ steps.versionNumber.outputs.result }}-HTML5
path: build/freetube
name: freetube-${{ steps.versionNumber.outputs.result }}-Android.apk
path: dist/freetube-${{ steps.versionNumber.outputs.result }}.apk
4 changes: 1 addition & 3 deletions .github/workflows/conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
# In `pull_request` we wouldn't be able to change labels of fork PRs
pull_request_target:
types: [synchronize]
workflow_run:
workflows: ['Dummy workflow for conflicts']
types: [requested]

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

9 changes: 0 additions & 9 deletions .github/workflows/dummy-conflicts.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- run: yarn run lint

- name: Get Version Number
uses: nyaayaya/package-version@v1
uses: jozsefsallai/node-package-version@v1.0.4
with:
path: 'package.json'
follow-symlinks: false
Expand Down
Loading