Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
e9be668
Added a WeatherProvider for Open-Meteo (#2964)
angeldeejay Dec 26, 2022
0ebedd0
Prepare Release 2.22.0
MichMich Jan 1, 2023
cd739b6
Merge branch 'master' into develop
MichMich Jan 1, 2023
0300ce0
Release 2.22.0 (#2983)
MichMich Jan 1, 2023
c99f660
Prepare 2.23.0 develop branch.
MichMich Jan 1, 2023
4fc38bd
Update dependabot action (#2985)
rejas Jan 2, 2023
a975b44
Fix wrong day labels in envcanada forecast (#2992)
rejas Jan 7, 2023
2908c15
Cleanup md files (#2994)
rejas Jan 7, 2023
fc30314
Remove darksky weather provider (#2993)
rejas Jan 7, 2023
2eaf9df
Fix badge status (#2991)
andrewhong04 Jan 7, 2023
7bc91a7
Fix badge status (#2991)
khassel Jan 7, 2023
6e80e5a
Add option to show hourly forecast in increments (#2998)
rejas Jan 10, 2023
877f8ad
Refactor mock-data for weather-tests generation (#3000)
rejas Jan 11, 2023
29e3ec0
added possibility to ignore MagicMirror repo in updatenotification (#…
khassel Jan 12, 2023
d2327d3
removed unneeded (and unwanted) '.' in calendar (#3003)
khassel Jan 14, 2023
8d9f132
add Pirate Weather as new weather provider (#3006)
khassel Jan 15, 2023
c714399
Fix weathergov provider hourly weather forecast (#3011)
rejas Jan 16, 2023
4244c05
Fix calendar.js missing default symbol prefix (#3007)
DaveChild Jan 16, 2023
ee86956
Fix typo into french translation (#3017)
grenagit Jan 21, 2023
cd4ba42
[Alert Module] Fix HTML message (#3018)
grenagit Jan 21, 2023
2e2962d
Fix yr weather direction (#3020)
MagMar94 Jan 21, 2023
67e4dba
Point wind arrow in the direction the wind is flowing (#3022)
MagMar94 Jan 22, 2023
157e74c
added error message if `<modulename>.js` file is missing … (#3015)
khassel Jan 26, 2023
f6dcfb5
Refresh the Calendar DOM every minute (#3016)
psieg Jan 26, 2023
7198ae5
Add (in Alert module) templateName parameter (#3009)
rajniszp Jan 26, 2023
58b9ddc
updatenotification: only notify mm-repo for master if tag present (#3…
khassel Jan 26, 2023
a8dc563
Update weather tests (#3008)
rejas Jan 26, 2023
ed90f05
Fix async node_helper stopping electron start (#3021)
rejas Jan 26, 2023
42d42ef
Prevent electron flashing white screen on startup (#3001)
khassel Jan 26, 2023
bf279d9
Tidy up precipitation (#3023)
MagMar94 Feb 4, 2023
1dc0a0d
Update some tests (#3024)
rejas Feb 6, 2023
f14e956
Create Thai Language file (#3028)
tomzt Feb 7, 2023
4b478a5
Create Thai Language file (#3028)
tomzt Feb 7, 2023
a65ee86
Introduce envsubst for config.js, update deps (#3032)
khassel Feb 12, 2023
e24dfa6
Calendar Module QOL Features and Adjustments (#3033)
CarJem Feb 15, 2023
88c7e42
Enforce PRs to be based against develop branch (#3031)
rejas Feb 16, 2023
65aa1b0
Update coverage and jest settings (#3038)
rejas Feb 16, 2023
81244d9
Update config sample and collab doc (#3039)
rejas Feb 17, 2023
fb22a76
Fix precipitation styles (#3041)
rejas Feb 18, 2023
bf28e63
Move th.json to translations folder (#3043)
KristjanESPERANTO Feb 19, 2023
b08a473
Update stylelint (#3042)
KristjanESPERANTO Feb 19, 2023
390e5d6
Update thai language (#3044)
rejas Feb 20, 2023
6d86ffa
Fix rounding in precipitation percentage (#3045)
rejas Feb 20, 2023
a237691
Show events of a configurable amount of past days (#3046)
Tom-Hirschberger Feb 21, 2023
2b792cd
Convert translator callbacks to async/await (#3048)
rejas Feb 21, 2023
fe0b915
Convert app-start/-stop callbacks to async/await (#3035)
rejas Feb 22, 2023
498b440
Convert module-start to async (#3049)
rejas Feb 22, 2023
b5b6124
Convert load callbacks to async/await (#3050)
rejas Feb 22, 2023
1b2785c
Cleanup more callback things (#3051)
rejas Feb 26, 2023
23ee155
Fixed wind speed units for Open-Meteo Weather Provider (#3054)
angeldeejay Mar 1, 2023
c6db225
set all calendar colums to vertical align top (#3055)
khassel Mar 6, 2023
beea754
Fix empty news feed stopping the feed from ever updating again (#3062)
buxxi Mar 11, 2023
6d77923
fix e2e tests (failed after async changes) (#3063)
khassel Mar 12, 2023
8f8945d
Issue#3064 html alert title message (#3065)
nfogal Mar 19, 2023
d276a7d
Use template literals instead of string concatenation (#3066)
KristjanESPERANTO Mar 19, 2023
ab0876f
Update Eslint config, add new rule and handle issue (#3068)
KristjanESPERANTO Mar 20, 2023
d5395ee
update dependencies and main.css to match new stylelint rules (#3067)
khassel Mar 20, 2023
5f38c53
Revise require imports (#3071)
KristjanESPERANTO Mar 22, 2023
4ef030a
Fix import order in serveronly (#3072)
KristjanESPERANTO Mar 25, 2023
b5a22bc
Add sendNotifications option to clock module (#3059)
rejas Apr 1, 2023
6223584
Add sendNotifications option to clock module (#3059)
rejas Apr 1, 2023
fa40a3e
Prepare release 2.23.0
MichMich Apr 4, 2023
c5a8b85
Merge branch 'master' into develop
MichMich Apr 4, 2023
abe5c08
Release 2.23.0 (#3078)
MichMich Apr 4, 2023
cc11b77
Prepare v2.24.0-develop
MichMich Apr 4, 2023
9703226
Update electron to v24, remove th.json from root dir (#3079)
khassel Apr 5, 2023
b7eb21e
removed unneeded (and unwanted) '.' (#3084)
khassel Apr 7, 2023
0d3ad98
Drop node v14 support (#3085)
KristjanESPERANTO Apr 7, 2023
2c7beea
added test for serveronly (#3086)
khassel Apr 7, 2023
32192d1
Refactor formatTime into util class (#3073)
rejas Apr 7, 2023
09f117c
set Timezone `Europe/Berlin` in unit tests (#3087)
khassel Apr 8, 2023
dee3cd3
Fixed clock module sunrise/sunset timezone bug (#3070)
JakeBinney Apr 9, 2023
77f9c86
Refactor calendar methods into util class (#3088)
rejas Apr 9, 2023
4e33690
Fix envcanada hourly forecast time (#3090)
rejas Apr 9, 2023
979f4ec
fix electron not running under windows (after async changes) (#3091)
khassel Apr 12, 2023
7e58b38
Add no-param-reassign from eslint (#3089)
rejas Apr 16, 2023
b80485b
use node v20 in github workflow (replacing v19) (#3093)
khassel Apr 22, 2023
a41aa48
add .gitattributes and fix prettier/js warnings (#3094)
khassel Apr 22, 2023
d832d79
Add openmeteo precipitation probability (#3099)
OWL4C May 13, 2023
e09d60d
Use single config backup file when config.template is used (#3104)
oscarb May 15, 2023
83315f1
fix: don't filter out ongoing full day events in Calendar module (#30…
ismarslomic May 15, 2023
432d900
Add tests for some weather utils (#3103)
rejas May 15, 2023
babd22b
Bug fix: adding date to the analog clock if showDate is true (#3101)
jorgenwahlberg May 19, 2023
0573d6e
Fix envcanada today pop (#3106)
eddiehung May 21, 2023
eceec82
Adding experimental UV Index support for weather module (#3108)
OWL4C May 22, 2023
c7405b7
Split install and run commands in github actions (#3112)
rejas May 27, 2023
a56b929
update deps incl. electron to v25, fix stylelint segmentation dump (#…
khassel Jun 6, 2023
b737153
update deps and remove stylelint fix (#3120)
khassel Jun 8, 2023
e985e99
Updates notification (#3119)
bugsounet Jun 8, 2023
c1850f2
Remote force check update (#3127)
bugsounet Jun 18, 2023
675e4d4
Update dependencies and fix dependabot issues (#3134)
rejas Jun 25, 2023
3c35d34
fix updatenotification where no branch is checked out ... (#3136)
khassel Jun 27, 2023
0e00e64
update dependencies (#3140)
khassel Jun 29, 2023
ea818bf
Fix fetchInterval for sample calendar (#3139)
rejas Jun 30, 2023
2b6720e
Prepare 2.24.0 release.
MichMich Jul 1, 2023
46bca1b
Merge branch 'master' into develop
MichMich Jul 1, 2023
e87f50e
Release 2.24.0 (#3141)
MichMich Jul 1, 2023
e9f1bd9
Merge branch 'master' into develop
MichMich Jul 1, 2023
4b0e0aa
Prepare 2.25.0-develop branch.
MichMich Jul 1, 2023
62eb23b
Add openweathermap UV index support (#3145)
Knapoc Jul 2, 2023
f802c85
Fix undefined error for showSunTime / showMoonTime in clock module (#…
rejas Jul 2, 2023
0b97639
update roboto fonts to v5 (#3121)
khassel Jul 2, 2023
948910d
add section for foreign modules in issue template (#3149)
khassel Jul 5, 2023
1bd146f
fix clientOnly not starting up after async startup added in 2.23 (#3154)
sdetweil Jul 16, 2023
49c72d8
Update dependencies (#3155)
rejas Jul 16, 2023
58cdfa3
update dependencies (except prettier v3) (#3160)
khassel Aug 12, 2023
156db32
fix electron width/heigth when using xrandr under bullseye (#3161)
khassel Aug 12, 2023
59e9d76
update to electron v26 (#3168)
khassel Aug 15, 2023
7dcea98
Handle pretty-quick issue (#3169)
KristjanESPERANTO Aug 16, 2023
7c64d8f
Minimum node version v18 (#3170)
KristjanESPERANTO Aug 20, 2023
7ba96ae
Add Npmrc (#3135)
bugsounet Aug 20, 2023
200db18
Update typescript definition (#3173)
rejas Aug 22, 2023
2ad463b
fix calendar not showing events with the same name and start date bu…
Paranoid93 Aug 26, 2023
c0a5f35
Cleanup nunjuck templates (#3109)
rejas Sep 2, 2023
ef20fe2
Update dependencies and actions (#3179)
rejas Sep 5, 2023
9d49196
Fix ipWhiteList test (#3181)
KristjanESPERANTO Sep 6, 2023
5cbdd28
Added Override Notification Option to Weather Module (#3178)
NolanKingdon Sep 8, 2023
a92b3d3
Add AnimateCSS (#3113)
bugsounet Sep 8, 2023
79e99e1
Cross UTC time fix (#3175)
kenzal Sep 8, 2023
ffdf321
Mistake on Changelog (#3186)
bugsounet Sep 9, 2023
f2957f9
use internal fetch as replacement for node-fetch (#3184)
khassel Sep 9, 2023
7a1591b
added automatic client page reload (#3188)
khassel Sep 13, 2023
91fd931
Convert HTML entities, codes and tag (#3191)
bugsounet Sep 13, 2023
fa7c7fc
respect width/height (no fullscreen) if set in electronOptions... (#3…
khassel Sep 13, 2023
7127979
electron: add missing fullscreen option (#3192)
khassel Sep 14, 2023
e5adbea
Update french translation (#3194)
Ybbet Sep 14, 2023
af0fe37
Fix: Uncaught SyntaxError: Identifier 'getCorsUrl' has already been d…
bugsounet Sep 19, 2023
4eccce3
Fix: AnimateCSS merge hide() and show() animated css class when we do…
bugsounet Sep 19, 2023
8b1c279
Update yr provider to new api (#3197)
martingron Sep 20, 2023
a67a0b6
Add eventClass for customEvents in calendar (#3193)
Ybbet Sep 20, 2023
95ec309
avoid overriding `config.js` when running tests (#3205)
khassel Sep 22, 2023
ad665a7
AnimateCSS integration in tests suite (#3206)
bugsounet Sep 25, 2023
a3c2e7b
Fixed probability of precipitation in weathergov.js (#3195)
dgoth Sep 25, 2023
e530c78
Update Electron based on a severity vulnerability (develop) (#3207)
bugsounet Sep 26, 2023
6b204cd
calendar: add url to broadcast logging (#3211)
khassel Sep 27, 2023
9566d6c
Add npm dependabot (#3210)
bugsounet Sep 27, 2023
290b350
Update last Dependencies before release and add dependabot to vendor/…
bugsounet Sep 30, 2023
6ea94e4
Release v2.25.0
MichMich Oct 1, 2023
343e7de
Release v2.25.0 (#3214)
MichMich Oct 1, 2023
66b29ec
Prepare v2.26.0-develop
MichMich Oct 1, 2023
b067711
Event class bugfix (#3218)
Ybbet Oct 3, 2023
5d2ddbd
removed Codecov workflow (not working anymore, other workflow require…
khassel Oct 13, 2023
a0b444d
Fix API version in yr weather provider call (#3223)
rejas Oct 15, 2023
0e2da63
fix cloneObject() function to respect RegExp (#3240)
khassel Oct 19, 2023
764ca3a
update electron to v27 (#3241)
khassel Oct 19, 2023
f46b226
fix newsfeed module for feeds using "a10:updated" tag (#3242)
khassel Oct 20, 2023
bbc27f5
Avoid fade out/in on updateDom when many calendars are used (#3220)
bugsounet Oct 21, 2023
6815dfa
fix ISSUE_TEMPLATE (#3243)
khassel Oct 21, 2023
f80889d
Update github test action (#3247)
rejas Oct 23, 2023
04f0df2
Fix yr weather provider api version (#3248)
rejas Oct 23, 2023
a8d06ae
hotfix for failing unit test (#3258)
khassel Oct 31, 2023
3a01acd
fix for failing unit test, use UTC as timezone (#3254) (#3259)
khassel Oct 31, 2023
2a6e2aa
Calendar translate (#3249)
kaennchenstruggle Oct 31, 2023
fe882bf
Fix issue #3250: Respect deleted (excluded) calendar events (#3251)
jkriegshauser Nov 1, 2023
296df06
Bump eslint-plugin-jest from 27.4.3 to 27.6.0 (#3260)
dependabot[bot] Nov 1, 2023
b300191
fix crash on rrule.between returned bad dates #3256 (#3257)
sdetweil Nov 7, 2023
3fe5ad4
remove failing unit test (#3265)
khassel Nov 9, 2023
203e864
3rd party modules updater for updatenotification (#3150)
bugsounet Nov 10, 2023
70ddd80
Use `html-to-text` instead of regex for transform description (#3264)
bugsounet Nov 11, 2023
247115d
fix electron start loadurl on windows when address="0.0.0.0" (#3268)
sdetweil Nov 15, 2023
679a413
Review eslint config (#3269)
KristjanESPERANTO Nov 20, 2023
7098f1e
Enable and apply ESLint Jest rules (#3270)
KristjanESPERANTO Nov 20, 2023
6ffdc7b
enable eslint jest/expect-expect and jest/no-done-callback (#3272)
khassel Nov 22, 2023
e77f10b
Update dependencies (#3280)
rejas Dec 1, 2023
7485438
Fix updatenotification (#3281)
bugsounet Dec 4, 2023
9d97724
Fix missing typeof in calendar module (#3286)
KristjanESPERANTO Dec 7, 2023
55cd035
Show moon phase in clock module (#3284)
bnitkin Dec 13, 2023
d5406f4
update deps and fix style issue in js/class.js (#3289)
khassel Dec 13, 2023
319a921
start electron with --disable-gpu flag (#3290)
khassel Dec 13, 2023
a7af76b
fix calendar test exdate check (#3293)
khassel Dec 17, 2023
d397568
fix calendar config (#3299)
khassel Dec 21, 2023
786ea86
Cleanup calendar module (#3300)
rejas Dec 22, 2023
4e7b68a
Remove some unused variables (#3301)
KristjanESPERANTO Dec 23, 2023
0b70274
Replace prettier by stylistic to lint JavaScript (#3303)
KristjanESPERANTO Dec 25, 2023
ee1960c
change rule exceptions in .eslintrc (#3305)
khassel Dec 25, 2023
aad3eef
update node-ical to v0.17.1 (and other deps) (#3309)
khassel Dec 28, 2023
a927eb2
fix variable problems (#3304)
khassel Dec 28, 2023
b8e0e2a
Release 2.26.0
MichMich Jan 1, 2024
d20d9a7
Merge branch 'master' into develop
Jan 1, 2024
8c0e7db
Release 2.26.0 (#3319)
MichMich Jan 1, 2024
118e212
Merge branch 'develop' of https://github.com/MichMich/MagicMirror
MichMich Jan 1, 2024
5e346e7
Start of 2.27.0 develop branch.
MichMich Jan 1, 2024
367d02f
Update URLs to MagicMirrorOrg (#3321)
KristjanESPERANTO Jan 1, 2024
ae1f9d0
Bump moment-timezone from 0.5.43 to 0.5.44 in /vendor (#3317)
dependabot[bot] Jan 1, 2024
bcab8eb
skip changelog requirement when running tests for dependency updates …
khassel Jan 1, 2024
5f7b56e
Bump eslint-plugin-jsdoc from 46.9.1 to 47.0.2 (#3315)
dependabot[bot] Jan 1, 2024
6097547
Add systeminfo (#3331)
KristjanESPERANTO Jan 4, 2024
407072d
Update system information (#3337)
KristjanESPERANTO Jan 7, 2024
4bbd35f
Use node prefix for build-in modules (#3340)
KristjanESPERANTO Jan 8, 2024
b47600e
Remove lodash (#3339)
KristjanESPERANTO Jan 8, 2024
dadc7ba
[newsfeed] Suppress unsightly animation edge cases when there are 0 o…
crazyscot Jan 14, 2024
f890f14
ignore strange errors from systeminformation under aarch64 (#3349)
khassel Jan 14, 2024
58bc14e
Request only required information instead of all (#3338)
KristjanESPERANTO Jan 14, 2024
098757f
update dependencies including electron to v28 (#3357)
khassel Jan 16, 2024
6dbacbb
Rework logging colors (#3350)
KristjanESPERANTO Jan 16, 2024
35e4dfb
Ignore all custom css files (#3359)
KristjanESPERANTO Jan 16, 2024
b005a8f
[newsfeed] Fix bug where the newsfeed sometimes stops (#3361)
crazyscot Jan 18, 2024
c09338a
changed `log.debug` to `log.log` in `app.js` (#3362)
khassel Jan 18, 2024
995b61b
Bump follow-redirects from 1.15.3 to 1.15.5 (#3356)
dependabot[bot] Jan 20, 2024
c96ced9
updatenotification: update_helper.js recode with pm2 library (v2.27.x…
bugsounet Jan 20, 2024
c75b7d4
pm2 update ;) (#3364)
bugsounet Jan 20, 2024
339aaf4
Bump actions/dependency-review-action from 3 to 4 (#3366)
dependabot[bot] Jan 22, 2024
f88b92f
Bump follow-redirects from 1.15.3 to 1.15.5 (#3367)
dependabot[bot] Jan 22, 2024
b0161fe
Lint package.json files (#3368)
KristjanESPERANTO Jan 24, 2024
27f3c86
remove all useless header comments (#3363)
khassel Jan 24, 2024
7f0b8e4
Better fixes for #3291 and the underlying exdate issues (#3342)
jkriegshauser Jan 27, 2024
fb5fab8
Cleanups (#3369)
rejas Jan 27, 2024
3bf8480
Correct apibase of weathergov weatherprovider to match documentation …
rejas Jan 27, 2024
431bf22
Update husky and let lint-staged fix ESLint issues (#3370)
KristjanESPERANTO Jan 28, 2024
57de389
[cosmetic] Weather module humidity positioning (#3330)
crazyscot Jan 29, 2024
5fb5ef6
Improved, fixed and added translations for estonian (#3371)
illimarkangur Feb 1, 2024
db65cd6
Bundle all Dependabot updates (#3378)
rejas Feb 1, 2024
88a96fb
Bump husky from 9.0.7 to 9.0.10 (#3379)
dependabot[bot] Feb 1, 2024
08f8a51
add error message if config.js appears empty after loading w require(…
sdetweil Feb 13, 2024
73140cd
update electron to v29 and other deps (#3386)
khassel Feb 24, 2024
313531d
Bump @stylistic/eslint-plugin from 1.6.2 to 1.6.3 (#3391)
dependabot[bot] Mar 1, 2024
2f2d84b
Bump electron from 29.0.1 to 29.1.0 (#3390)
dependabot[bot] Mar 1, 2024
c7d94a0
Bump express from 4.18.2 to 4.18.3 (#3389)
dependabot[bot] Mar 1, 2024
e5678f0
Bump playwright from 1.41.2 to 1.42.0 (#3388)
dependabot[bot] Mar 1, 2024
90ff340
Bump node-ical from 0.17.2 to 0.18.0 (#3387)
dependabot[bot] Mar 1, 2024
1a745cf
Fix issue 3393 (#3395)
jkriegshauser Mar 13, 2024
16af809
Update .npmrc (#3399)
bugsounet Mar 16, 2024
c5f9050
[calendar] deny fetch interval < 60000 and set 60000 in this case (pr…
bugsounet Mar 21, 2024
d970214
Fix for #3345 - precipitation probability not displayed when it is 0%…
vppencilsharpener Mar 21, 2024
6de578e
move suncalc dependency out of dev, as it is used by the clock module…
sdetweil Mar 22, 2024
52cfbac
Changes the layout of the current weather module, targetting indoor v…
Paranoid93 Mar 23, 2024
57549fa
Fix compliments module bringing mirror to a halt (#3402)
rejas Mar 23, 2024
be63e36
Add electron-rebuild to suite test (#3392)
bugsounet Mar 27, 2024
fd44445
update deps and package.json's (eslint) (#3406)
khassel Mar 27, 2024
d9926fa
MM² Icon (#3407)
bugsounet Mar 28, 2024
e004b33
Change multiday fullDay Event behaviour (#3396)
Paranoid93 Mar 28, 2024
72ef823
update Collaboration.md (added infos from discord) (#3408)
khassel Mar 30, 2024
b262bf6
Release 2.27.0
Apr 1, 2024
53420f5
Fix check for mastermerge label (#3415)
rejas Apr 1, 2024
2a883c3
Remove codecov yaml (#3416)
rejas Apr 1, 2024
5ea8a34
Release 2.27.0 (#3410)
rejas Apr 1, 2024
1981601
Merge branch 'mm_master' into mm_develop
Apr 1, 2024
8aaad8e
Prepare v2.28.0-develop
Apr 1, 2024
1fa1788
Bump ansis from 2.3.0 to 3.0.1 (#3417)
dependabot[bot] Apr 1, 2024
3b00357
Update deps (#3439)
khassel May 1, 2024
d1c17e7
weather module: Fixed precipitationProbability in forecast … (#3448)
khassel May 13, 2024
cd0bc5b
fixed type=daily for provider openmeteo having no data … (#3451)
khassel May 20, 2024
4bd66cb
fixed type=daily for provider openmeteo showing nightly icons (#3459)
khassel Jun 8, 2024
6332445
update dependencies (#3460)
khassel Jun 11, 2024
bc27c46
MM² Main core use node >= v20 // delete node v18 from test suite (#3463)
bugsounet Jun 19, 2024
9cbd30f
update dependencies incl. electron v31 (#3473)
khassel Jun 19, 2024
4c748a4
update `config.js.sample` to use openmeteo as weather provider (#3476)
khassel Jun 22, 2024
3d5c56d
Merge remote-tracking branch 'ext/calendar_showEndsOnlyWithDuration' …
khassel Jun 22, 2024
fb4c1c5
Revert "show time on the left side"
khassel Jun 22, 2024
9625a60
revert wrong merges
khassel Jun 22, 2024
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
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
modules/default/calendar/vendor/*
modules/*
!modules/default/
76 changes: 69 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:jsdoc/recommended"],
"plugins": ["prettier", "jsdoc", "jest"],
"extends": ["eslint:recommended", "plugin:@stylistic/all-extends", "plugin:import/recommended", "plugin:jest/recommended", "plugin:jsdoc/recommended"],
"plugins": ["unicorn"],
"env": {
"browser": true,
"es6": true,
"es2024": true,
"jest/globals": true,
"node": true
},
Expand All @@ -16,16 +16,78 @@
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"ecmaVersion": "latest",
"ecmaFeatures": {
"globalReturn": true
}
},
"rules": {
"prettier/prettier": "error",
"eqeqeq": "error",
"import/order": "error",
"import/extensions": "error",
"import/newline-after-import": "error",
"jest/consistent-test-it": "warn",
"jest/expect-expect": "warn",
"jest/no-done-callback": "warn",
"jest/prefer-expect-resolves": "warn",
"jest/prefer-mock-promise-shorthand": "warn",
"jest/prefer-to-be": "warn",
"jest/prefer-to-have-length": "warn",
"no-param-reassign": "error",
"no-prototype-builtins": "off",
"no-throw-literal": "error",
"no-unused-vars": "off",
"no-useless-return": "error"
}
"no-useless-return": "error",
"object-shorthand": ["error", "methods"],
"prefer-template": "error",
"@stylistic/array-element-newline": ["error", "consistent"],
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/brace-style": "off",
"@stylistic/comma-dangle": ["error", "never"],
"@stylistic/dot-location": ["error", "property"],
"@stylistic/function-call-argument-newline": ["error", "consistent"],
"@stylistic/function-paren-newline": ["error", "consistent"],
"@stylistic/implicit-arrow-linebreak": ["error", "beside"],
"@stylistic/max-statements-per-line": ["error", { "max": 2 }],
"@stylistic/multiline-ternary": ["error", "always-multiline"],
"@stylistic/newline-per-chained-call": ["error", { "ignoreChainWithDepth": 4 }],
"@stylistic/no-extra-parens": "off",
"@stylistic/no-tabs": "off",
"@stylistic/object-curly-spacing": ["error", "always"],
"@stylistic/object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"@stylistic/operator-linebreak": ["error", "before"],
"@stylistic/padded-blocks": "off",
"@stylistic/quote-props": ["error", "as-needed"],
"@stylistic/quotes": ["error", "double"],
"@stylistic/indent": ["error", "tab"],
"@stylistic/semi": ["error", "always"],
"@stylistic/space-before-function-paren": ["error", "always"],
"@stylistic/spaced-comment": "off",
"unicorn/prefer-node-protocol": "error"
},
"overrides": [
{
"files": ["config/config.js*"],
"rules": {
"@stylistic/comma-dangle": "off",
"@stylistic/indent": "off",
"@stylistic/no-multi-spaces": "off"
}
},
{
"files": ["tests/configs/modules/weather/*.js"],
"rules": {
"@stylistic/quotes": "off"
}
},
{
"extends": ["plugin:package-json/recommended"],
"files": ["package.json"],
"parser": "jsonc-eslint-parser",
"plugins": ["package-json"],
"rules": {
"package-json/sort-collections": ["error", ["devDependencies", "dependencies", "peerDependencies", "config"]]
}
}
]
}
56 changes: 56 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# .gitattributes snippet to force users to use same line endings for project.
#
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto

#
# The above will handle all files NOT found below
# https://help.github.com/articles/dealing-with-line-endings/
# https://github.com/Danimoth/gitattributes/blob/master/Web.gitattributes



# These files are text and should be normalized (Convert crlf => lf)
*.php text
*.css text
*.scss text
*.js text
*.json text
*.htm text
*.html text
*.xml text
*.txt text
*.ini text
*.inc text
*.pl text
*.rb text
*.py text
*.scm text
*.sql text
.htaccess text
*.sh text
Dockerfile* text
*.yml text
*.yaml text
*.md text
*.markdown text

# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.flv binary
*.fla binary
*.swf binary
*.gz binary
*.zip binary
*.7z binary
*.ttf binary
*.pyc binary
9 changes: 5 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ We hold our code to standard, and these standards are documented below.

## Linters

If you wish to run our linters, use `npm run lint` without any arguments.
We use prettier for automatic linting of all our files: `npm run lint:prettier`.

### JavaScript: Run ESLint

Expand All @@ -18,7 +18,7 @@ To run ESLint, use `npm run lint:js`.

### CSS: Run StyleLint

We use [StyleLint](https://stylelint.io) to lint our CSS. Our configuration is in our .stylelintrc file.
We use [StyleLint](https://stylelint.io) to lint our CSS. Our configuration is in our `.stylelintrc` file.

To run StyleLint, use `npm run lint:css`.

Expand All @@ -28,7 +28,8 @@ We use [Jest](https://jestjs.io) for JavaScript testing.

To run all tests, use `npm run test`.

The specific test commands are defined in `package.json`. So you can also run the specific tests with other commands, e.g. `npm run test:unit` or `npx jest tests/e2e/env_spec.js`.
The specific test commands are defined in `package.json`.
So you can also run the specific tests with other commands, e.g. `npm run test:unit` or `npx jest tests/e2e/env_spec.js`.

## Submitting Issues

Expand All @@ -42,7 +43,7 @@ When submitting a new issue, please supply the following information:

**Platform**: Place your platform here... give us your web browser/Electron version _and_ your hardware (Raspberry Pi 2/3/4, Windows, Mac, Linux, System V UNIX).

**Node Version**: Make sure it's version 14 or later (recommended is 16).
**Node Version**: Make sure it's version 18 or later (recommended is 20).

**MagicMirror² Version**: Please let us know which version of MagicMirror² you are running. It can be found in the `package.json` file.

Expand Down
8 changes: 6 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Hello and thank you for opening an issue.

**Please make sure that you have read the following lines before submitting your Issue:**
**⚠️ Please make sure that you have read the following lines before submitting your Issue:**

## I'm not sure if this is a bug

Expand All @@ -22,6 +22,10 @@ If you are facing an issue or found a bug while trying to install MagicMirror²
If you are facing an issue or found a bug while running MagicMirror² inside a Docker container please create an issue in the corresponding repository:
[https://gitlab.com/khassel/magicmirror](https://gitlab.com/khassel/magicmirror)

## I'm having troubles installing or configuring foreign modules

Please open an issue in the module repository or ask for help in the [forum](https://forum.magicmirror.builders/)

---

## I found a bug in MagicMirror
Expand All @@ -31,7 +35,7 @@ When submitting a new issue, please supply the following information:

**Platform**: Place your platform here... give us your web browser/Electron version _and_ your hardware (Raspberry Pi 2/3/4, Windows, Mac, Linux, System V UNIX).

**Node Version**: Make sure it's version 14 or later (recommended is 16).
**Node Version**: Make sure it's version 18 or later (recommended is 20).

**MagicMirror² Version**: Please let us know which version of MagicMirror² you are running. It can be found in the `package.json` file.

Expand Down
2 changes: 0 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Hello and thank you for wanting to contribute to the MagicMirror² project
**Please make sure that you have followed these 4 rules before submitting your Pull Request:**

> 1. Base your pull requests against the `develop` branch.
>
> 2. Include these infos in the description:
>
> - Does the pull request solve a **related** issue?
Expand All @@ -13,7 +12,6 @@ Hello and thank you for wanting to contribute to the MagicMirror² project
>
> 3. Please run `npm run lint:prettier` before submitting so that
> style issues are fixed.
>
> 4. Don't forget to add an entry about your changes to
> the CHANGELOG.md file.

Expand Down
6 changes: 0 additions & 6 deletions .github/codecov.yaml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,37 @@ updates:
directory: "/"
schedule:
interval: "weekly"
target-branch: "develop"
labels:
- "Skip Changelog"
- "dependencies"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
target-branch: "develop"
labels:
- "Skip Changelog"
- "dependencies"
- "javascript"

- package-ecosystem: "npm"
directory: "/vendor"
schedule:
interval: "monthly"
target-branch: "develop"
labels:
- "Skip Changelog"
- "dependencies"
- "javascript"

- package-ecosystem: "npm"
directory: "/fonts"
schedule:
interval: "monthly"
target-branch: "develop"
labels:
- "Skip Changelog"
- "dependencies"
- "javascript"
16 changes: 9 additions & 7 deletions .github/workflows/automated-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,22 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [20.x, 22.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Use Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies and run tests
- name: "Install dependencies"
run: |
npm run install-mm:dev
- name: "Run tests"
run: |
Xvfb :99 -screen 0 1024x768x16 &
export DISPLAY=:99
npm run install-mm:dev
touch css/custom.css
npm run test:prettier
npm run test:js
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/codecov-test-suites.yaml

This file was deleted.

12 changes: 8 additions & 4 deletions .github/workflows/depsreview.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: "Dependency Review"
# This workflow scans your pull requests for dependency changes, and will raise an error if any vulnerabilities or invalid licenses are being introduced.
# For more information see: https://github.com/actions/dependency-review-action

name: "Review Dependencies"

on: [pull_request]

permissions:
Expand All @@ -8,7 +12,7 @@ jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Dependency Review"
uses: actions/dependency-review-action@v2
uses: actions/dependency-review-action@v4
28 changes: 28 additions & 0 deletions .github/workflows/electronRebuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Electron Rebuild Testing"

on: [pull_request]

jobs:
rebuild:
name: Run electron-rebuild
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: "Use Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Install MagicMirror
run: npm run install-mm
- name: Install @electron/rebuild
run: npm install @electron/rebuild
- name: Install some test library to be rebuilded
run: npm install onoff node-pty drivelist
- name: Run electron-rebuild
run: npx electron-rebuild
continue-on-error: false
Loading