Commit Graph

48 Commits

Author SHA1 Message Date
JakobLichterfeld
2a922e321c feat: update to Phoenix HTML 4.1, bump dependencies (#4277)
* feat: update to Phenix HTML 4.1

* fix: updating to the new Gettext.Backend approach

* chore: update pot files ro locale version 45.0.0

* fix: downgrade cloack back to 1.1.2

* revert: merge of mix.lock

* fix: new syntax for field name generation for phx-feedback-for

* Revert "fix: new syntax for field name generation for phx-feedback-for"

This reverts commit 4d95e4f1c9367d2d5c606ced2190ab23edcb971b.

* fix: downgrade floki back to 0.35.2

* Revert "fix: downgrade floki back to 0.35.2"

This reverts commit a4f0b6bf4b32099d89003c3d20f72333d510e109.

* fix: ensure floki nil is handled

* style: linter findings

* Revert "fix: ensure floki nil is handled"

* fix: new syntax for field name generation for phx-feedback-for

* debug: floki paramter error

* Revert "debug: floki paramter error"

This reverts commit 61920267edf5186b593920bde7d87e8b30af55aa.

* fix: Remove unnecessary code in settings_test.exs which breaks floki 0.36+
2024-10-27 08:17:49 +01:00
b1c1l1
97cfb79493 feat: Add URL_PATH environment variable for reverse proxy deployments (#3771)
* Add URL_PATH environment variable for reverse proxy deployments

For example, this can be used to run TeslaMate behind a reverse proxy, using a
URL path such as "/teslamate".

* gettext: update pot and po files

Generated using:
  mix gettext.extract --merge

* web: run mix format

* gettext: update pot and po files

Re-generating gettext files after running mix format.

Generated using:
  mix gettext.extract --merge
2024-03-25 09:21:34 +01:00
marvelm
da819054f6 feat: Upgrade web development framework to Phoenix 1.7 (#3615)
* Upgrade to phoenix 1.7.0
The minimal changes necessary to compile the application

* Import Phoenix.Component instead of LiveView

* Fix compilation warnings

* mix format

* Update tests to trim newline characters

* mix gettext.extract --merge

* style: correct linting

* rebuild gettext

* fix: correct spacing before unit for energy added

* fix: use unicode character for whitespace

* fix: spacing with witespace

* fix: use numeric value for charge_energy_added in charging test

* fix: avoid warning about unsued function, which is actually used in plug

* fix: use whitespace in test before charge_energy_added

---------

Co-authored-by: JakobLichterfeld <jakob-lichterfeld@gmx.de>
2024-02-07 19:23:53 +01:00
libotony
c520af5732 ui: sync meta theme-color with header background color (#2840) 2023-11-16 08:49:22 +01:00
Adrian Kumpf
9df62aee54 Update repo URL 2023-11-12 19:30:36 +01:00
Adrian Kumpf
b545eaf8f4 Remove donation links 2023-11-12 19:26:52 +01:00
Matthias Wirtz
ed70976770 Endpoints Query Param, Docker 60s delay fixed, Typo fixed, Update several Dependencies (#3398)
* Endpoints Query Param, Docker 60s delay fixed, Typo fixed

* Update dependencies
2023-11-12 17:51:14 +01:00
Adrian Kumpf
bbdc2d25ae Move encryption key warning into .container 2022-02-18 17:21:16 +01:00
Adrian Kumpf
0d6e288c70 Encrypt API tokens (#2360)
Store API tokens encrypted in the database.

During the database migration a randomly generated key will be used encrypt the tokens if no ENCRYPTION_KEY environment variable was provided.

If the application is started without the presence of an ENCRYPTION_KEY (or if the key failed to decrypt the existing tokens), the UI will display a warning with further instructions.
2022-02-18 17:03:13 +01:00
herbit
b1b53654e5 Added Apple mobile web app capable meta tag (#2128)
Enable to run the website in full screen mode on iPhones. This is useful in combination when starting TeslaMate with an app icon from the home screen.
2021-11-05 17:08:43 +01:00
Adrian Kumpf
70468ea762 Migrate from webpack to esbuild 2021-09-22 22:07:14 +02:00
Adrian Kumpf
7c0dc3b870 Upgrade phoenix to 1.6 2021-09-22 20:38:02 +02:00
Adrian Kumpf
537452effe Migrate to HEEx templates 2021-09-22 17:10:48 +02:00
Adrian Kumpf
5262fae880 Fix error when changing the language to Chinese
Fixes #1659
2021-06-02 11:24:51 +02:00
dependabot[bot]
3e22623e2a Bump ex_cldr from 2.20.0 to 2.21.0 (#1627)
* Bump ex_cldr from 2.20.0 to 2.21.0

Bumps [ex_cldr](https://github.com/elixir-cldr/cldr) from 2.20.0 to 2.21.0.
- [Release notes](https://github.com/elixir-cldr/cldr/releases)
- [Changelog](https://github.com/elixir-cldr/cldr/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elixir-cldr/cldr/compare/v2.20.0...v2.21.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Use new Cldr.Plug.SetSession

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>
2021-05-18 23:32:36 +02:00
Adrian
0a0d17836f Gpx export (#993)
* Add first draft of gpx export

* Add test for gpx export

* Sort drive positions by date for gpx export
2020-12-22 19:29:33 +01:00
Adrian Kumpf
9c3f4cb47d Open Statistics dashboard with browser time zone 2020-10-13 18:02:23 +02:00
Adrian Kumpf
3037a2438a Don't open dashboards in kiosk mode 2020-10-04 13:08:39 +02:00
Adrian Kumpf
155a135d51 Upgrade to phoenix 1.5 2020-04-23 12:51:15 +02:00
MaxG88
07930eea36 Send credentials with manifest request (#555) 2020-04-06 12:04:53 +02:00
Adrian Kumpf
fdd11dcf8e Inform if an update is available 2020-04-02 16:36:28 +02:00
Adrian Kumpf
c5b170f96a Add icons to navbar items 2020-04-02 16:36:28 +02:00
Adrian Kumpf
2011b2d97e Bump phoenix_live_view from 0.9.0 to 0.10.0 2020-03-19 18:17:52 +01:00
Adrian Kumpf
b76b2d2cfa Add option to calculate charging costs retroactively
Closes #442
2020-03-11 15:11:13 +01:00
Adrian Kumpf
9fabded3ea Use kiosk mode by default 2020-02-23 12:23:57 +01:00
Adrian Kumpf
d013eb0858 List dashboards as external resources 2020-02-07 13:21:05 +01:00
Adrian Kumpf
f61315cb10 Implement TeslaFi import
Closes #316
2020-02-07 13:21:05 +01:00
Adrian Kumpf
38486d69a3 Bump phoenix_live_view to 0.6.0 2020-01-24 14:08:47 +01:00
Adrian Kumpf
bf3c028b93 Fix overflowing tooltips on iOS 2020-01-21 14:27:11 +01:00
Adrian Kumpf
c31ff47156 Render dropdown with dashboard links 2020-01-21 14:27:11 +01:00
Adrian Kumpf
0004c703f9 Defer script tag 2020-01-21 14:27:10 +01:00
Adrian Kumpf
3904a18e24 Fix tooltips in Safari (iOS) 2020-01-14 19:29:19 +01:00
Adrian Kumpf
30d10d29a0 Display link to Grafana dashboards
... if a URL was entered on the Settings page.

Resolves #235
2019-11-17 16:56:03 +01:00
Adrian Kumpf
4ca0567c61 Trim patch version if possible 2019-10-22 20:05:37 +02:00
Adrian Kumpf
f428581eef Tweak mobile and desktop views 2019-10-09 17:40:57 +02:00
Adrian Kumpf
0120e3dffe Improve landscape mode on devices with a notch 2019-10-01 23:20:32 +02:00
Adrian Kumpf
7f7d034cec Remove background change on hover 2019-08-18 20:32:23 +02:00
Adrian Kumpf
9fc8eb7aa4 Add favicon 2019-08-18 20:32:23 +02:00
Adrian Kumpf
cb31f80a16 Test CarController 2019-08-12 23:48:16 +02:00
Adrian Kumpf
99c5e7a229 Display version as tag 2019-08-12 23:48:16 +02:00
Adrian Kumpf
6a8bc532e0 Add geo-fence views 2019-08-12 23:48:16 +02:00
Adrian Kumpf
3780bbc3ed Test SettingsLive 2019-08-05 12:54:14 +02:00
Adrian Kumpf
54a3537a73 Fix warnings 2019-07-31 21:55:13 +02:00
Adrian Kumpf
3fee27058e Create settings view 2019-07-31 21:45:55 +02:00
Adrian Kumpf
7e5d62cbd8 Add sign in view 2019-07-31 17:40:15 +02:00
Adrian Kumpf
e440fac97d Show version on web UI
Resolves #65
2019-07-30 12:07:26 +02:00
Adrian Kumpf
9f6b25d4a9 Render LiveView summary of all vehicles 2019-04-13 19:24:30 +02:00
Adrian Kumpf
76208a456c Rename otp app 2019-04-07 13:42:51 +02:00