Skip to content

Commit f5bff97

Browse files
authored
Merge pull request #147 from marksie1988/dev
v1.7.0
2 parents 6617a21 + 75b9dcf commit f5bff97

File tree

9 files changed

+51
-46
lines changed

9 files changed

+51
-46
lines changed

dist/atomic-calendar-revive.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/contribute/devcontainer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ The easiest way to contribute is to spin up a devcontainer with Visual Studio Co
1717

1818
# Fork the Repo
1919

20-
* Fork the Atomic Calendar Repo
21-
* Clone the repository to your computer
22-
* Open the repository in VS Code
20+
- Fork the Atomic Calendar Repo
21+
- Clone the repository to your computer
22+
- Open the repository in VS Code
2323

2424
When you open this repository with VS code you are asked to "Reopen in Container". This will start the build of the container.
2525

docs/contribute/devcycle.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ The below will provide a guide on how you should develop for this plugin to have
1111

1212
## Setup Repository
1313

14-
* Fork the repo in [GitHub](https://github.com/marksie1988/atomic-calendar-revive)
15-
* Clone the project from your fork
14+
- Fork the repo in [GitHub](https://github.com/marksie1988/atomic-calendar-revive)
15+
- Clone the project from your fork
1616
```shell
1717
git clone https://github.com/your-fork/atomic-calendar-revive.git
1818
```
1919

2020
## Create topic branch
21+
2122
You should be working on a topic branch (not master). Also, make sure that you have pulled the latest master into your repo.
2223

2324
Start on your master branch, grab the latest upstream master, and merge it in:
@@ -57,8 +58,8 @@ from within the clone repository run `npm install`
5758
2. Update the version number in package.json
5859
3. Run the command `npm run build`
5960
4. Rename the files:
60-
`dist/app-editor.js` to `dist/atomic-calendar-revive-editor.js`
61-
`dist/app.js` to `dist/atomic-calendar-revive.js`
61+
`dist/app-editor.js` to `dist/atomic-calendar-revive-editor.js`
62+
`dist/app.js` to `dist/atomic-calendar-revive.js`
6263
5. Amend the file `dist/atomic-calendar-revive.js` search for the text `app-editor.js` and change it to `atomic-calendar-revive-editor.js`
6364

6465
## Testing
@@ -70,6 +71,7 @@ You can either upload the files to a test HA Server as normal or if using devcon
7071
If using DevContainer you can test the files with `npm start`, the file will be accessible on http://127.0.0.1:5000/app.js
7172

7273
To add this to your Home assistant configuration add the following:
74+
7375
```yaml
7476
- url: "http://127.0.0.1:5000/app.js"
7577
type: module
@@ -86,23 +88,24 @@ git commit -v
8688

8789
### Commit style guide
8890

89-
* Use the present tense ("Add feature" not "Added feature")
90-
* Use the imperative mood ("Move the option..." not "Moves the option...")
91-
* Limit the first line to 72 characters or less
92-
* Reference issues and pull requests liberally after the first line
93-
* Consider starting the commit message with an applicable emoji:
94-
* :art: `:art:` when improving the format/structure of the code
95-
* :racehorse: `:racehorse:` when improving performance
96-
* :non-potable_water: `:non-potable_water:` when plugging memory leaks
97-
* :memo: `:memo:` when writing docs
98-
* :bug: `:bug:` when fixing a bug
99-
* :fire: `:fire:` when removing code or files
100-
* :green_heart: `:green_heart:` when fixing the CI build
101-
* :white_check_mark: `:white_check_mark:` when adding tests
102-
* :lock: `:lock:` when dealing with security
103-
* :arrow_up: `:arrow_up:` when upgrading dependencies
104-
* :arrow_down: `:arrow_down:` when downgrading dependencies
105-
* :shirt: `:shirt:` when removing linter warnings
91+
- Use the present tense ("Add feature" not "Added feature")
92+
- Use the imperative mood ("Move the option..." not "Moves the option...")
93+
- Limit the first line to 72 characters or less
94+
- Reference issues and pull requests liberally after the first line
95+
- Consider starting the commit message with an applicable emoji:
96+
- :star: `:star:` when adding a new feature
97+
- :art: `:art:` when improving the format/structure of the code
98+
- :racehorse: `:racehorse:` when improving performance
99+
- :non-potable_water: `:non-potable_water:` when plugging memory leaks
100+
- :memo: `:memo:` when writing docs
101+
- :bug: `:bug:` when fixing a bug
102+
- :fire: `:fire:` when removing code or files
103+
- :green_heart: `:green_heart:` when fixing the CI build
104+
- :white_check_mark: `:white_check_mark:` when adding tests
105+
- :lock: `:lock:` when dealing with security
106+
- :arrow_up: `:arrow_up:` when upgrading dependencies
107+
- :arrow_down: `:arrow_down:` when downgrading dependencies
108+
- :shirt: `:shirt:` when removing linter warnings
106109

107110
## Submit for review
108111

docs/contribute/documentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ Then you need to use:
5252

5353
# New pages
5454

55-
* Create a new .md file under the directory docs/ in a sub-directory if required that fits the purpose of the file.
56-
* At the top of all pages you should have this:
55+
- Create a new .md file under the directory docs/ in a sub-directory if required that fits the purpose of the file.
56+
- At the top of all pages you should have this:
5757

5858
```md
5959
---

docs/contribute/reporting-bugs.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ Before creating bug reports, please check [this list](#before-submitting-a-bug-r
1515
1616
## Before Submitting A Bug Report
1717

18-
* **Check the [QucikStart Guide](/atomic-calendar-revive/quickstart).** You may have miss-configured the plugin and this is resulting in the issue you see
19-
* **Check the [FAQs](/atomic-calendar-revive/faq)** for a list of common questions and problems.
20-
* **Perform a [cursory search](https://github.com/marksie1988/atomic-calendar-revive/issues?q=is%3Aissue)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one.
18+
- **Check the [QucikStart Guide](/atomic-calendar-revive/quickstart).** You may have miss-configured the plugin and this is resulting in the issue you see
19+
- **Check the [FAQs](/atomic-calendar-revive/faq)** for a list of common questions and problems.
20+
- **Perform a [cursory search](https://github.com/marksie1988/atomic-calendar-revive/issues?q=is%3Aissue)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one.
2121

2222
## How Do I Submit A (Good) Bug Report?
2323

2424
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). After you've determined this is not a configuration issue, create an issue on github and provide the following information by filling in [the template](https://github.com/marksie1988/atomic-calendar-revive/issues/new?assignees=&labels=bug&template=bug_report.md&title=%5BBUG%5D+).
2525

2626
Explain the problem and include additional details to help maintainers reproduce the problem:
2727

28-
* **Use a clear and descriptive title** for the issue to identify the problem.
29-
* **Describe the exact steps which reproduce the problem** in as many details as possible. For example, start by explaining how you installed the plugin. When listing steps, **don't just say what you did, but explain how you did it**. For example, did you use the Lovelace Editor or do the change in YAML directly.
30-
* **Provide specific examples to demonstrate the steps**. Include screenshots, or copy/pasteable configuration snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
31-
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
32-
* **Explain which behavior you expected to see instead and why.**
33-
* **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem.
34-
* **If Chrome's developer tools pane is showing errors**, include these in your report
35-
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
28+
- **Use a clear and descriptive title** for the issue to identify the problem.
29+
- **Describe the exact steps which reproduce the problem** in as many details as possible. For example, start by explaining how you installed the plugin. When listing steps, **don't just say what you did, but explain how you did it**. For example, did you use the Lovelace Editor or do the change in YAML directly.
30+
- **Provide specific examples to demonstrate the steps**. Include screenshots, or copy/pasteable configuration snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
31+
- **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
32+
- **Explain which behavior you expected to see instead and why.**
33+
- **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem.
34+
- **If Chrome's developer tools pane is showing errors**, include these in your report
35+
- **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
3636

3737
Provide more context by answering these questions:
3838

39-
* **Did the problem start happening recently** (e.g. after updating to a new version of HA / Atomic Calendar Revive) or was this always a problem?
40-
* If the problem started happening recently, **can you reproduce the problem in an older version of Atomic Calendar Revive?** What's the most recent version in which the problem doesn't happen? You can install older versions of Atomic Calendar Revive via HACS or from the releases page on github
41-
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
39+
- **Did the problem start happening recently** (e.g. after updating to a new version of HA / Atomic Calendar Revive) or was this always a problem?
40+
- If the problem started happening recently, **can you reproduce the problem in an older version of Atomic Calendar Revive?** What's the most recent version in which the problem doesn't happen? You can install older versions of Atomic Calendar Revive via HACS or from the releases page on github
41+
- **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.

docs/options/main-options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ nav_order: 1
2626
| disableLocationLink | boolean | optional | v0.10.0 | `false` disables links in event location. |
2727
| linkTarget | string | optional | v0.11.0 | `_blank` Allows custom target for links, default will open new tab. |
2828
| showCalNameInEvent | string | optional | ? | `false` Shows the event calendar name |
29+
| showFullDayProgress | string | optional | v1.7.0 | `false` Enables the progress bar for full day events |
2930

3031
[googlecalcomp]: https://www.home-assistant.io/components/calendar.google/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "atomic-calendar-revive",
3-
"version": "1.6.2",
3+
"version": "1.7.0",
44
"description": "Calendar Card for Home Assistant",
55
"main": "atomic-calendar-revive.js",
66
"scripts": {

src/app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ class AtomicCalendarRevive extends LitElement {
237237
eventCalNameSize: 90,
238238

239239
showProgressBar: true,
240+
showFullDayProgress: false,
240241
progressBarColor: 'var(--primary-color)',
241242

242243
enableModeChange: false,
@@ -712,7 +713,7 @@ class AtomicCalendarRevive extends LitElement {
712713

713714
//show current event progress bar
714715
var progressBar = ``
715-
if (di == 0 && this._config.showProgressBar && event.isEventRunning) {
716+
if (di == 0 && this._config.showProgressBar && event.isEventRunning && (this._config.showFullDayProgress && event.isFullDayEvent)) {
716717
let eventDuration = event.endTime.diff(event.startTime, 'minutes');
717718
let eventProgress = moment().diff(event.startTime, 'minutes');
718719
let eventPercentProgress = Math.floor((eventProgress * 100) / eventDuration);
@@ -1010,7 +1011,7 @@ class AtomicCalendarRevive extends LitElement {
10101011
return html`
10111012
<div class="calDateSelector">
10121013
<ha-icon-button class="ha-icon-button" icon="mdi:chevron-left" @click='${e => this.handleMonthChange(-1)}' title = "left" ></ha-icon-button>
1013-
<a href="https://calendar.google.com/calendar/r/month/${moment(this.selectedMonth).format('YYYY')}/${moment(this.selectedMonth).format('MM')}/1" style="text-decoration: none; color: ${this._config.calDateColor};position:relative; top:3px;" target="${this._config.linkTarget}">
1014+
<a href="https://calendar.google.com/calendar/r/month/${moment(this.selectedMonth).format('YYYY')}/${moment(this.selectedMonth).format('MM')}/1" style="text-decoration: none; color: ${this._config.calDateColor}; position: relative; top: 4px;" target="${this._config.linkTarget}">
10141015
${moment(this.selectedMonth).locale(this.language).format('MMMM')} ${moment(this.selectedMonth).format('YYYY')}
10151016
</a>
10161017
<ha-icon-button class="ha-icon-button" icon="mdi:chevron-right" @click='${e => this.handleMonthChange(1)}' title = "right" ></ha-icon-button>

tracker.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"atomic-calendar-revive": {
33
"updated_at": "2020-05-28",
4-
"version": "1.6.2",
4+
"version": "1.7.0",
55
"remote_location": "https://github.com/marksie1988/atomic-calendar-revive/releases/latest/dist/atomic-calendar-revive.js",
66
"visit_repo": "https://github.com/marksie1988/atomic-calendar-revive",
77
"changelog": "https://github.com/marksie1988/atomic-calendar-revive/releases/latest"

0 commit comments

Comments
 (0)