Skip to content

Commit

Permalink
Merge branch 'master' into chore/go-123
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Aug 11, 2024
2 parents e8162cf + 061beab commit 85c5adf
Show file tree
Hide file tree
Showing 211 changed files with 7,196 additions and 3,025 deletions.
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ make ui build

evcc already includes many translations for the UI. We're using [Weblate](https://hosted.weblate.org/projects/evcc/evcc/) to maintain translations. Feel free to add more languages or verify and edit existing translations. Weblate will automatically push all modifications to the evcc repository where they get reviewed and merged.

If you find a text that is not yet translatable in [Weblate](https://hosted.weblate.org/projects/evcc/evcc/), you can help us by making it translatable. To do this, you can simply find the missing translation text in the code and apply similar changes as in these two Pull Requests:

- [UI: Add missing translation for Error during startup](https://github.com/evcc-io/evcc/pull/14695)
- [Translation: kein Plan, keine Grenze](https://github.com/evcc-io/evcc/pull/7461/)

Note: To ensure the build succeeds after creating new translations, make sure to include your new translations in both the [de.toml](i18n/de.toml) and [en.toml](i18n/en.toml) files.

[![Languages](https://hosted.weblate.org/widgets/evcc/-/evcc/multi-auto.svg)](https://hosted.weblate.org/engage/evcc/)

[1]: https://go.dev
Expand Down
1 change: 1 addition & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ type Circuit interface {
SetTitle(string)
GetParent() Circuit
RegisterChild(child Circuit)
Wrap(parent Circuit) error
HasMeter() bool
GetMaxPower() float64
GetMaxCurrent() float64
Expand Down
14 changes: 14 additions & 0 deletions api/mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/rates.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (r Rates) Sort() {
// Current returns the rates current rate or error
func (r Rates) Current(now time.Time) (Rate, error) {
for _, rr := range r {
if (rr.Start.Before(now) || rr.Start.Equal(now)) && rr.End.After(now) {
if !rr.Start.After(now) && rr.End.After(now) {
return rr, nil
}
}
Expand Down
11 changes: 11 additions & 0 deletions assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ a:hover {
--bs-btn-border-width: 2px;
}

.btn-reset {
border: none;
background: none;
padding: 0;
color: inherit;
}

.btn-primary,
.btn-primary:focus {
background-color: var(--bs-primary);
Expand Down Expand Up @@ -250,6 +257,10 @@ a:hover {
--bs-btn-hover-border-color: var(--bs-gray-medium);
}

.btn-link:hover {
color: var(--bs-primary);
}

.dark .btn-outline-secondary {
--bs-btn-color: var(--bs-gray-bright);
--bs-btn-border-color: var(--bs-gray-bright);
Expand Down
Loading

0 comments on commit 85c5adf

Please sign in to comment.