mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
Merge branch 'develop' into broadcast-custom-symbols
This commit is contained in:
commit
bf83341fb9
14
.github/CONTRIBUTING.md
vendored
14
.github/CONTRIBUTING.md
vendored
@ -4,13 +4,15 @@ Thanks for contributing to MagicMirror²!
|
|||||||
|
|
||||||
We hold our code to standard, and these standards are documented below.
|
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.
|
If you wish to run our linters, use `npm run lint` without any arguments.
|
||||||
|
|
||||||
### JavaScript: Run ESLint
|
### JavaScript: Run ESLint
|
||||||
|
|
||||||
We use [ESLint](https://eslint.org) on our JavaScript files.
|
We use [ESLint](https://eslint.org) on our JavaScript files.
|
||||||
|
|
||||||
Our ESLint configuration is in our .eslintrc.json and .eslintignore files.
|
Our ESLint configuration is in our `.eslintrc.json` and `.eslintignore` files.
|
||||||
|
|
||||||
To run ESLint, use `npm run lint:js`.
|
To run ESLint, use `npm run lint:js`.
|
||||||
|
|
||||||
@ -20,7 +22,15 @@ We use [StyleLint](https://stylelint.io) to lint our CSS. Our configuration is i
|
|||||||
|
|
||||||
To run StyleLint, use `npm run lint:css`.
|
To run StyleLint, use `npm run lint:css`.
|
||||||
|
|
||||||
### Submitting Issues
|
## Testing
|
||||||
|
|
||||||
|
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`.
|
||||||
|
|
||||||
|
## Submitting Issues
|
||||||
|
|
||||||
Please only submit reproducible issues.
|
Please only submit reproducible issues.
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ _This release is scheduled to be released on 2022-01-01._
|
|||||||
- Fixed electron tests with retry.
|
- Fixed electron tests with retry.
|
||||||
- Fixed Calendar recurring cross timezone error (add/subtract a day, not just offset hours) (#2632)
|
- Fixed Calendar recurring cross timezone error (add/subtract a day, not just offset hours) (#2632)
|
||||||
- Fixed Calendar showEnd and Full Date overlay (#2629)
|
- Fixed Calendar showEnd and Full Date overlay (#2629)
|
||||||
|
- Fixed regression on #2632, #2752
|
||||||
- Broadcast custom symbols in CALENDAR_EVENTS
|
- Broadcast custom symbols in CALENDAR_EVENTS
|
||||||
|
|
||||||
## [2.17.1] - 2021-10-01
|
## [2.17.1] - 2021-10-01
|
||||||
|
@ -53,7 +53,7 @@ function createWindow() {
|
|||||||
// If config.address is not defined or is an empty string (listening on all interfaces), connect to localhost
|
// If config.address is not defined or is an empty string (listening on all interfaces), connect to localhost
|
||||||
|
|
||||||
let prefix;
|
let prefix;
|
||||||
if (config["tls"] !== null && config["tls"]) {
|
if ((config["tls"] !== null && config["tls"]) || config.useHttps) {
|
||||||
prefix = "https://";
|
prefix = "https://";
|
||||||
} else {
|
} else {
|
||||||
prefix = "http://";
|
prefix = "http://";
|
||||||
@ -140,6 +140,13 @@ app.on("before-quit", (event) => {
|
|||||||
process.exit(0);
|
process.exit(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* handle errors from self signed certificates */
|
||||||
|
|
||||||
|
app.on("certificate-error", (event, webContents, url, error, certificate, callback) => {
|
||||||
|
event.preventDefault();
|
||||||
|
callback(true);
|
||||||
|
});
|
||||||
|
|
||||||
// Start the core application if server is run on localhost
|
// Start the core application if server is run on localhost
|
||||||
// This starts all node helpers and starts the webserver.
|
// This starts all node helpers and starts the webserver.
|
||||||
if (["localhost", "127.0.0.1", "::1", "::ffff:127.0.0.1", undefined].includes(config.address)) {
|
if (["localhost", "127.0.0.1", "::1", "::ffff:127.0.0.1", undefined].includes(config.address)) {
|
||||||
|
@ -332,15 +332,15 @@ const CalendarUtils = {
|
|||||||
Log.debug("Fullday");
|
Log.debug("Fullday");
|
||||||
// If the offset is negative (east of GMT), where the problem is
|
// If the offset is negative (east of GMT), where the problem is
|
||||||
if (dateoffset < 0) {
|
if (dateoffset < 0) {
|
||||||
//if (dh <= Math.abs(dateoffset / 60)) {
|
if (dh < Math.abs(dateoffset / 60)) {
|
||||||
// reduce the time by the offset
|
// reduce the time by the offset
|
||||||
// Apply the correction to the date/time to get it UTC relative
|
// Apply the correction to the date/time to get it UTC relative
|
||||||
date = new Date(date.getTime() - Math.abs(24 * 60) * 60000);
|
date = new Date(date.getTime() - Math.abs(24 * 60) * 60000);
|
||||||
// the duration was calculated way back at the top before we could correct the start time..
|
// the duration was calculated way back at the top before we could correct the start time..
|
||||||
// fix it for this event entry
|
// fix it for this event entry
|
||||||
//duration = 24 * 60 * 60 * 1000;
|
//duration = 24 * 60 * 60 * 1000;
|
||||||
Log.debug("new recurring date1 is " + date);
|
Log.debug("new recurring date1 fulldate is " + date);
|
||||||
//}
|
}
|
||||||
} else {
|
} else {
|
||||||
// if the timezones are the same, correct date if needed
|
// if the timezones are the same, correct date if needed
|
||||||
//if (event.start.tz === moment.tz.guess()) {
|
//if (event.start.tz === moment.tz.guess()) {
|
||||||
@ -351,7 +351,7 @@ const CalendarUtils = {
|
|||||||
// the duration was calculated way back at the top before we could correct the start time..
|
// the duration was calculated way back at the top before we could correct the start time..
|
||||||
// fix it for this event entry
|
// fix it for this event entry
|
||||||
//duration = 24 * 60 * 60 * 1000;
|
//duration = 24 * 60 * 60 * 1000;
|
||||||
Log.debug("new recurring date2 is " + date);
|
Log.debug("new recurring date2 fulldate is " + date);
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user