mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Merge pull request #2577 from rejas/prettier
This commit is contained in:
commit
32df76bdff
@ -1,5 +1,8 @@
|
|||||||
package-lock.json
|
/config
|
||||||
/config/**/*
|
/coverage
|
||||||
/vendor/**/*
|
/vendor
|
||||||
!/vendor/vendor.js
|
!/vendor/vendor.js
|
||||||
.github/**/*
|
.github
|
||||||
|
.nyc_output
|
||||||
|
package-lock.json
|
||||||
|
*.ts
|
||||||
|
@ -48,6 +48,7 @@ Special thanks to the following contributors: @B1gG, @codac, @ezeholz, @khassel,
|
|||||||
- Fix module updatenotification which did not work for repos with many refs (#1907)
|
- Fix module updatenotification which did not work for repos with many refs (#1907)
|
||||||
- Fix config check failing when encountering let syntax ("Parsing error: Unexpected token config")
|
- Fix config check failing when encountering let syntax ("Parsing error: Unexpected token config")
|
||||||
- Fix calendar debug check
|
- Fix calendar debug check
|
||||||
|
- Really run prettier over all files
|
||||||
|
|
||||||
## [2.15.0] - 2021-04-01
|
## [2.15.0] - 2021-04-01
|
||||||
|
|
||||||
|
26
index.html
26
index.html
@ -1,25 +1,25 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>MagicMirror²</title>
|
<title>MagicMirror²</title>
|
||||||
<meta name="google" content="notranslate" />
|
<meta name="google" content="notranslate" />
|
||||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||||
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||||
<meta name="format-detection" content="telephone=no">
|
<meta name="format-detection" content="telephone=no" />
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes" />
|
||||||
|
|
||||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
<link rel="icon" href="data:;base64,iVBORw0KGgo=" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/main.css">
|
<link rel="stylesheet" type="text/css" href="css/main.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="fonts/roboto.css">
|
<link rel="stylesheet" type="text/css" href="fonts/roboto.css" />
|
||||||
<!-- custom.css is loaded by the loader.js to make sure it's loaded after the module css files. -->
|
<!-- custom.css is loaded by the loader.js to make sure it's loaded after the module css files. -->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var version = "#VERSION#";
|
var version = "#VERSION#";
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="region fullscreen below"><div class="container"></div></div>
|
<div class="region fullscreen below"><div class="container"></div></div>
|
||||||
<div class="region top bar">
|
<div class="region top bar">
|
||||||
<div class="container"></div>
|
<div class="container"></div>
|
||||||
@ -29,7 +29,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="region upper third"><div class="container"></div></div>
|
<div class="region upper third"><div class="container"></div></div>
|
||||||
<div class="region middle center"><div class="container"></div></div>
|
<div class="region middle center"><div class="container"></div></div>
|
||||||
<div class="region lower third"><div class="container"><br/></div></div>
|
<div class="region lower third">
|
||||||
|
<div class="container"><br /></div>
|
||||||
|
</div>
|
||||||
<div class="region bottom bar">
|
<div class="region bottom bar">
|
||||||
<div class="container"></div>
|
<div class="container"></div>
|
||||||
<div class="region bottom left"><div class="container"></div></div>
|
<div class="region bottom left"><div class="container"></div></div>
|
||||||
@ -51,5 +53,5 @@
|
|||||||
<script type="text/javascript" src="js/loader.js"></script>
|
<script type="text/javascript" src="js/loader.js"></script>
|
||||||
<script type="text/javascript" src="js/socketclient.js"></script>
|
<script type="text/javascript" src="js/socketclient.js"></script>
|
||||||
<script type="text/javascript" src="js/main.js"></script>
|
<script type="text/javascript" src="js/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -130,10 +130,10 @@ Module.register("weather", {
|
|||||||
|
|
||||||
// Add all the data to the template.
|
// Add all the data to the template.
|
||||||
getTemplateData: function () {
|
getTemplateData: function () {
|
||||||
const forecast = this.weatherProvider.weatherForecast()
|
const forecast = this.weatherProvider.weatherForecast();
|
||||||
|
|
||||||
if (this.config.ignoreToday) {
|
if (this.config.ignoreToday) {
|
||||||
forecast.splice(0, 1)
|
forecast.splice(0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -14,12 +14,12 @@
|
|||||||
"test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text mocha tests --recursive --timeout=3000",
|
"test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text mocha tests --recursive --timeout=3000",
|
||||||
"test:e2e": "NODE_ENV=test mocha tests/e2e --recursive",
|
"test:e2e": "NODE_ENV=test mocha tests/e2e --recursive",
|
||||||
"test:unit": "NODE_ENV=test mocha tests/unit --recursive",
|
"test:unit": "NODE_ENV=test mocha tests/unit --recursive",
|
||||||
"test:prettier": "prettier --check **/*.{js,css,json,md,yml}",
|
"test:prettier": "prettier . --check",
|
||||||
"test:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --quiet",
|
"test:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --quiet",
|
||||||
"test:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json",
|
"test:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json",
|
||||||
"test:calendar": "node ./modules/default/calendar/debug.js",
|
"test:calendar": "node ./modules/default/calendar/debug.js",
|
||||||
"config:check": "node js/check_config.js",
|
"config:check": "node js/check_config.js",
|
||||||
"lint:prettier": "prettier --write **/*.{js,css,json,md,yml}",
|
"lint:prettier": "prettier . --write",
|
||||||
"lint:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --fix",
|
"lint:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --fix",
|
||||||
"lint:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json --fix",
|
"lint:css": "stylelint css/main.css modules/default/**/*.css --config .stylelintrc.json --fix",
|
||||||
"lint:staged": "pretty-quick --staged",
|
"lint:staged": "pretty-quick --staged",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user