Fix Merge Conflicts.

This commit is contained in:
Michael Teeuw 2017-03-17 14:32:01 +01:00
parent 15b19925f2
commit 4aec39df7a
3 changed files with 5 additions and 2 deletions

View File

@ -50,8 +50,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Added console warning on startup when deprecated config options are used - Added console warning on startup when deprecated config options are used
- Add option to display temperature unit label to the current weather module - Add option to display temperature unit label to the current weather module
- Added ability to disable wrapping of news items - Added ability to disable wrapping of news items
- Added `DAYAFTERTOMORROW`, `UPDATE_NOTIFICATION`, `UPDATE_NOTIFICATION_MODULE`, `UPDATE_INFO` to Norwegian translations (`nn` and `nb`). - Updated Norwegian translation.
- Added hideLoading option for News Feed module - Added hideLoading option for News Feed module
- Added configurable dateFormat to clock module.
### Fixed ### Fixed
- Update .gitignore to not ignore default modules folder. - Update .gitignore to not ignore default modules folder.

View File

@ -30,6 +30,7 @@ The following properties can be configured:
| `showPeriodUpper` | Show the period (AM/PM) with 12 hour format as uppercase. <br><br> **Possible values:** `true` or `false` <br> **Default value:** `false` | `showPeriodUpper` | Show the period (AM/PM) with 12 hour format as uppercase. <br><br> **Possible values:** `true` or `false` <br> **Default value:** `false`
| `clockBold` | Remove the colon and bold the minutes to make a more modern look. <br><br> **Possible values:** `true` or `false` <br> **Default value:** `false` | `clockBold` | Remove the colon and bold the minutes to make a more modern look. <br><br> **Possible values:** `true` or `false` <br> **Default value:** `false`
| `showDate` | Turn off or on the Date section. <br><br> **Possible values:** `true` or `false` <br> **Default value:** `true` | `showDate` | Turn off or on the Date section. <br><br> **Possible values:** `true` or `false` <br> **Default value:** `true`
| `dateFormat` | Configure the date format as you like. <br><br> **Possible values:** [Docs](http://momentjs.com/docs/#/displaying/format/) <br> **Default value:** `"dddd, LL"`
| `displayType` | Display a digital clock, analog clock, or both together. <br><br> **Possible values:** `digital`, `analog`, or `both` <br> **Default value:** `digital` | `displayType` | Display a digital clock, analog clock, or both together. <br><br> **Possible values:** `digital`, `analog`, or `both` <br> **Default value:** `digital`
| `analogSize` | **Specific to the analog clock.** Defines how large the analog display is. <br><br> **Possible values:** A positive number of pixels` <br> **Default value:** `200px` | `analogSize` | **Specific to the analog clock.** Defines how large the analog display is. <br><br> **Possible values:** A positive number of pixels` <br> **Default value:** `200px`
| `analogFace` | **Specific to the analog clock.** Specifies which clock face to use. <br><br> **Possible values:** `simple` for a simple border, `none` for no face or border, or `face-###` (where ### is currently a value between 001 and 012, inclusive) <br> **Default value:** `simple` | `analogFace` | **Specific to the analog clock.** Specifies which clock face to use. <br><br> **Possible values:** `simple` for a simple border, `none` for no face or border, or `face-###` (where ### is currently a value between 001 and 012, inclusive) <br> **Default value:** `simple`

View File

@ -16,6 +16,7 @@ Module.register("clock",{
showPeriodUpper: false, showPeriodUpper: false,
clockBold: false, clockBold: false,
showDate: true, showDate: true,
dateFormat: "dddd, LL",
/* specific to the analog clock */ /* specific to the analog clock */
analogSize: "200px", analogSize: "200px",
@ -87,7 +88,7 @@ Module.register("clock",{
} }
if(this.config.showDate){ if(this.config.showDate){
dateWrapper.innerHTML = now.format("dddd, LL"); dateWrapper.innerHTML = now.format(this.config.dateFormat);
} }
timeWrapper.innerHTML = timeString; timeWrapper.innerHTML = timeString;
secondsWrapper.innerHTML = now.format("ss"); secondsWrapper.innerHTML = now.format("ss");