Commit Graph

153 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
Martin Hüser
8377f361ce fix gpx format (#2925)
some tools, e.g. Garmin Basecamp, expect a proper namespace
definition in the xml root element and are more sensitive to
xml schema violations.

Track point elevation is specified to be an element of type
xsd:decimal in the gpx schema. But Teslamate renders an
empty element <ele></ele> when no elevation data is present.
This fix does not render an <ele> element when no elevation
is present

Also the gpx schema requires a "creator" attribute on the
gpx root element.
2023-01-13 14:00:36 +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
Adrian Kumpf
b761b4f0c8 Fix disappearing map tiles 2020-04-20 15:01:00 +02:00
Adrian Kumpf
4804aeb767 Reduce the amount of data sent to the client when driving 2020-04-19 15:20:23 +02:00
Adrian Kumpf
706c9d6a75 Bump phoenix_live_view to 0.12.0 2020-04-19 12:32:05 +02:00
Adrian Kumpf
0dbc5600ef Add language switcher 2020-04-15 14:21:35 +02:00
Adrian Kumpf
45d94d52b3 Implement database efficiency improvements
Closes #573
2020-04-11 14:49:44 +02:00
jmiverson
9eb42ee8a7 Updated Labels to Title Case (#578)
Some labels were using title case and others weren't.  Attempted to make it consistent across the board.
2020-04-11 12:45:08 +02:00
Adrian Kumpf
4fdfc4d74e Upgrade bulma-tooltip 2020-04-10 13:02:08 +02:00
Adrian Kumpf
c6b265788c Migrate docs to docusaurus
Fixes #564
2020-04-07 19:32:18 +02:00
MaxG88
07930eea36 Send credentials with manifest request (#555) 2020-04-06 12:04:53 +02:00
Adrian Kumpf
6b8639c636 Use arrow to indicate direction of the vehicle 2020-04-04 13:43:42 +02:00
Adrian Kumpf
e6fc0609ff Show spinner before the map is initialized 2020-04-04 13:43:42 +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
2c706d339b Add 'About' section to settings page 2020-04-02 16:36:26 +02:00
Adrian Kumpf
a696e6db16 Hide sleep mode settings if streaming is enabled 2020-04-02 16:33:33 +02:00
Adrian Kumpf
f1e434e9c9 Remove outdated sleep mode requirements 2020-04-02 16:33:33 +02:00
Adrian Kumpf
a36fb8d66c Remove option to disable sleep mode 2020-04-02 16:33:33 +02:00
Adrian Kumpf
5c432c7add Fix flashing modal 2020-03-31 22:20:49 +02:00
Adrian Kumpf
2f8defff06 Add feature flag for the Streaming API 2020-03-28 15:48:37 +01:00
Tobias Lindberg
fb3ed02b1c Fix settings dropdown and Swedish translation (#525)
* adding swedish translation

* adding comments from endlish errors.po

* adding new translations for swedish

* fix #524 of adriankumpf/teslamate

* adding translation for geo-fence in swedish

* fixing translation of charge limit in swedish

* fixiing translation of mileage in swedish

* Fix typos

Co-authored-by: Adrian Kumpf <adrian.kumpf@posteo.de>
2020-03-22 13:51:39 +01: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
edc1aefe7b Always show mileage on summary page 2020-03-18 16:47:29 +01:00
Adrian Kumpf
267cef3388 Add odometer to the summary page
Closes #508
2020-03-17 14:34:24 +01:00
Adrian Kumpf
b76b2d2cfa Add option to calculate charging costs retroactively
Closes #442
2020-03-11 15:11:13 +01:00
Adrian Kumpf
14a5acf7cb Allow to enter total cost or cost per KWh used
Closes #457
2020-03-11 15:11:13 +01:00
Adrian Kumpf
85eb9307e2 Indicate if any of the doors are open 2020-03-11 14:38:47 +01:00
Adrian Kumpf
86a6bee239 Add support for session fees
Closes #455
2020-03-09 12:56:11 +01:00
Adrian Kumpf
9fabded3ea Use kiosk mode by default 2020-02-23 12:23:57 +01:00
Adrian Kumpf
6b60118070 Set autofocus attribute 2020-02-14 11:46:29 +01:00
Adrian Kumpf
803438206e Bump phoenix_live_view to 0.7.1 2020-02-14 10:43:48 +01:00