Skip to content

Commit 5a4fbbf

Browse files
authored
Merge pull request #2672 from MichMich/develop
Release 2.17.0
2 parents 26a76f8 + f746567 commit 5a4fbbf

File tree

123 files changed

+3600
-3927
lines changed

Some content is hidden

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

123 files changed

+3600
-3927
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"prettier/prettier": "error",
2626
"eqeqeq": "error",
2727
"no-prototype-builtins": "off",
28-
"no-unused-vars": "off"
28+
"no-unused-vars": "off",
29+
"no-useless-return": "error"
2930
}
3031
}

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To run ESLint, use `npm run lint:js`.
1818

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

21-
To run StyleLint, use `npm run lint:style`.
21+
To run StyleLint, use `npm run lint:css`.
2222

2323
### Submitting Issues
2424

@@ -32,9 +32,9 @@ When submitting a new issue, please supply the following information:
3232

3333
**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).
3434

35-
**Node Version**: Make sure it's version 10 or later.
35+
**Node Version**: Make sure it's version 12 or later (recommended is 14).
3636

37-
**MagicMirror Version**: Now that the versions have split, tell us if you are using the PHP version (v1) or the newer JavaScript version (v2).
37+
**MagicMirror Version**: Please let us know which version of MagicMirror you are running. It can be found in the `package.json` file.
3838

3939
**Description**: Provide a detailed description about the issue and include specific details to help us understand the problem. Adding screenshots will help describing the problem.
4040

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
github: MichMich
2-
custom: ['https://magicmirror.builders/#donate']
2+
custom: ["https://magicmirror.builders/#donate"]

.github/ISSUE_TEMPLATE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ If you are facing an issue or found a bug while trying to install MagicMirror vi
1919

2020
## I found a bug in the MagicMirror Docker image
2121

22-
If you are facing an issue or found a bug while running MagicMirror inside a Docker container please create an issue in the GitHub repository of the MagicMirror Docker image:
23-
[https://github.com/bastilimbach/docker-MagicMirror](https://github.com/bastilimbach/docker-MagicMirror)
22+
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:
23+
24+
- karsten13/magicmirror: [https://gitlab.com/khassel/magicmirror](https://gitlab.com/khassel/magicmirror)
25+
- (deprecated) bastilimbach/docker-magicmirror: [https://github.com/bastilimbach/docker-MagicMirror](https://github.com/bastilimbach/docker-MagicMirror)
2426

2527
---
2628

@@ -31,9 +33,9 @@ When submitting a new issue, please supply the following information:
3133

3234
**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).
3335

34-
**Node Version**: Make sure it's version 10 or later.
36+
**Node Version**: Make sure it's version 12 or later (recommended is 14).
3537

36-
**MagicMirror Version**: Please let us now which version of MagicMirror you are running. It can be found in the `package.log` file.
38+
**MagicMirror Version**: Please let us know which version of MagicMirror you are running. It can be found in the `package.json` file.
3739

3840
**Description**: Provide a detailed description about the issue and include specific details to help us understand the problem. Adding screenshots will help describing the problem.
3941

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,20 @@ Hello and thank you for wanting to contribute to the MagicMirror project
22

33
**Please make sure that you have followed these 4 rules before submitting your Pull Request:**
44

5-
> 1) Base your pull requests against the `develop` branch.
5+
> 1. Base your pull requests against the `develop` branch.
66
>
7+
> 2. Include these infos in the description:
78
>
8-
> 2) Include these infos in the description:
9-
> * Does the pull request solve a **related** issue?
10-
> * If so, can you reference the issue like this `Fixes #<issue_number>`?
11-
> * What does the pull request accomplish? Use a list if needed.
12-
> * If it includes major visual changes please add screenshots.
9+
> - Does the pull request solve a **related** issue?
10+
> - If so, can you reference the issue like this `Fixes #<issue_number>`?
11+
> - What does the pull request accomplish? Use a list if needed.
12+
> - If it includes major visual changes please add screenshots.
1313
>
14+
> 3. Please run `npm run lint:prettier` before submitting so that
15+
> style issues are fixed.
1416
>
15-
> 3) Please run `npm run lint:prettier` before submitting so that
16-
> style issues are fixed.
17-
>
18-
>
19-
> 4) Don't forget to add an entry about your changes to
20-
> the CHANGELOG.md file.
21-
17+
> 4. Don't forget to add an entry about your changes to
18+
> the CHANGELOG.md file.
2219
2320
**Note**: Sometimes the development moves very fast. It is highly
2421
recommended that you update your branch of `develop` before creating a

.github/header.psd

-220 KB
Binary file not shown.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: "Run Automated Tests"
5+
6+
on:
7+
push:
8+
branches: [master, develop]
9+
pull_request:
10+
branches: [master, develop]
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 30
16+
strategy:
17+
matrix:
18+
node-version: [12.x, 14.x, 16.x]
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- name: Install dependencies and run tests
27+
run: |
28+
Xvfb :99 -screen 0 1024x768x16 &
29+
export DISPLAY=:99
30+
npm install
31+
touch css/custom.css
32+
npm run test:prettier
33+
npm run test:js
34+
npm run test:css
35+
npm run test:unit
36+
npm run test:e2e
37+
npm run test:electron

.github/workflows/codecov-test-suites.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,26 @@ name: "Run Codecov Tests"
44

55
on:
66
push:
7-
branches: [ master, develop ]
7+
branches: [master, develop]
88
pull_request:
9-
branches: [ master, develop ]
9+
branches: [master, develop]
1010

1111
jobs:
1212
run-and-upload-coverage-report:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 30
1515
steps:
16-
- uses: actions/checkout@v2
17-
- run: |
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
- name: Install dependencies and run coverage
19+
run: |
1820
Xvfb :99 -screen 0 1024x768x16 &
1921
export DISPLAY=:99
2022
npm ci
23+
touch css/custom.css
2124
npm run test:coverage
22-
- uses: codecov/codecov-action@v1
25+
- name: Upload coverage results to codecov
26+
uses: codecov/codecov-action@v1
2327
with:
2428
file: ./coverage/lcov.info
2529
fail_ci_if_error: true

.github/workflows/enforce-changelog.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ name: "Enforce Changelog"
44

55
on:
66
pull_request:
7-
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
7+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
88

99
jobs:
1010
check:
1111
runs-on: ubuntu-latest
1212
timeout-minutes: 10
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: dangoslen/[email protected]
16-
with:
17-
changeLogPath: 'CHANGELOG.md'
18-
skipLabels: 'Skip Changelog'
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Enforce changelog️
17+
uses: dangoslen/[email protected]
18+
with:
19+
changeLogPath: "CHANGELOG.md"
20+
skipLabels: "Skip Changelog"

.github/workflows/node-ci.js.yml

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

0 commit comments

Comments
 (0)