Skip to content

Commit

Permalink
Switched to Rollup; Used deftype definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Litzenburger committed Sep 11, 2021
1 parent 352061f commit 3453468
Show file tree
Hide file tree
Showing 13 changed files with 958 additions and 2,610 deletions.
6 changes: 0 additions & 6 deletions .prettierrc.js

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"jsxBracketSameLine": true,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"endOfLine": "auto",
"printWidth": 120
}
78 changes: 0 additions & 78 deletions @types/Module/index.d.ts

This file was deleted.

54 changes: 27 additions & 27 deletions MMM-RAIN-MAP.css
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
.rain-map-time-wrapper {
--color-history: #003AFF;
--color-now: #000;
--color-forecast: #ff0074;
position: absolute;
display: block;
background: #ccc;
padding: 0 10px 0 10px;
z-index: 999;
opacity: 0.75;
color: #000;
font-size: 1.2rem;
--color-history: #003aff;
--color-now: #000;
--color-forecast: #ff0074;
position: absolute;
display: block;
background: #ccc;
padding: 0 10px 0 10px;
z-index: 999;
opacity: 0.75;
color: #000;
font-size: 1.2rem;
}
.rain-map-time-wrapper i {
margin-right: 6px;
margin-right: 6px;
}

.rain-map-timeslider {
width: 0;
height: 0;
margin-top: -8px;
margin-left: -2px;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 10px solid #000;
position: relative;
display: block;
width: 0;
height: 0;
margin-top: -8px;
margin-left: -2px;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 10px solid #000;
position: relative;
display: block;
}

.rain-map-timeline {
display: block;
height: 4px;
margin-bottom: 5px;
display: block;
height: 4px;
margin-bottom: 5px;
}

.rain-map-time.rain-map-history {
color: var(--color-history);
color: var(--color-history);
}

.rain-map-time.rain-map-now {
color: var(--color-now);
color: var(--color-now);
}

.rain-map-time.rain-map-forecast {
color: var(--color-forecast);
color: var(--color-forecast);
}
29 changes: 28 additions & 1 deletion MMM-RAIN-MAP.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ https://user-images.githubusercontent.com/25933231/130909536-e096d342-19d5-4139-

## Installing the Module

1. Navigate to the MagicMirror subfolder "modules" and execute the following command
1. Navigate to the MagicMirror's subfolder "modules" and execute the following command

```sh
git clone https://github.com/jalibu/MMM-RAIN-MAP.git
Expand Down Expand Up @@ -109,6 +109,14 @@ https://user-images.githubusercontent.com/25933231/130909536-e096d342-19d5-4139-
| `zoom` | Either set a zoom level or defaultZoomLevel is used.<br><br>**Range:** `0 (whole world) - 20 (small building)`<br>**Type:** `number` |
| `loops` | Number of loops/iterations until the map moves to the next position. If no number is set, a value of `1` is used.<br><br>**Type:** `number` |


## Contribution and Development
This module is written in TypeScript and compiled with Rollup.
The source files are located in the `/src` folder.
Compile target files with `npm run build`.

Contribution for this module is welcome!

## Thanks to

- Thanks to all supporters who gave a small [donation](https://www.buymeacoffee.com/jalibu) out of gratitude for my work.
Expand Down
Loading

0 comments on commit 3453468

Please sign in to comment.