Skip to content

Commit

Permalink
Merge pull request #1743 from proddy/dev
Browse files Browse the repository at this point in the history
move esp status from settings page
  • Loading branch information
proddy committed May 5, 2024
2 parents d829850 + 837d70e commit 9f4aef6
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 26 deletions.
5 changes: 1 addition & 4 deletions interface/src/AuthenticatedRouting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ const AuthenticatedRouting: FC = () => {
<Route path="/settings/ntp/*" element={<NetworkTime />} />
<Route path="/settings/mqtt/*" element={<Mqtt />} />
<Route path="/settings/security/*" element={<Security />} />
<Route
path="/settings/espsystemstatus/*"
element={<ESPSystemStatus />}
/>
<Route path="/system/espsystemstatus/*" element={<ESPSystemStatus />} />
<Route path="/settings/upload/*" element={<UploadDownload />} />
</>
)}
Expand Down
10 changes: 1 addition & 9 deletions interface/src/framework/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Settings: FC = () => {
<ListMenuItem
icon={TuneIcon}
bgcolor="#134ba2"
label={LL.APPLICATION_SETTINGS()}
label={LL.APPLICATION()}
text={LL.APPLICATION_SETTINGS_1()}
to="ems-esp"
/>
Expand Down Expand Up @@ -125,14 +125,6 @@ const Settings: FC = () => {

<Divider />

<ListMenuItem
icon={MemoryIcon}
bgcolor="#b1395f"
label={LL.STATUS_OF('ESP32')}
text="ESP32 Information"
to="espsystemstatus"
/>

<ListMenuItem
icon={ImportExportIcon}
bgcolor="#5d89f7"
Expand Down
2 changes: 1 addition & 1 deletion interface/src/framework/system/SystemStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ const SystemStatus: FC = () => {
bgcolor="#68374d"
label={LL.SYSTEM_MEMORY()}
text={formatNumber(data.free_heap) + ' KB'}
to="/settings/espsystemstatus"
to="/system/espsystemstatus"
/>
<Divider variant="inset" component="li" />

Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/de/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const de: Translation = {
NUM_SECONDS: '{num} Sekunde{{n}}',
NUM_HOURS: '{num} Stunde{{n}}',
NUM_MINUTES: '{num} Minute{{n}}',
APPLICATION_SETTINGS: 'Anwendungseinstellungen',
APPLICATION: 'Anwendungseinstellungen',
CUSTOMIZATIONS: 'Anpassungen',
APPLICATION_RESTARTING: 'EMS-ESP startet neu',
INTERFACE_BOARD_PROFILE: 'Interface Platinenprofil',
Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const en: Translation = {
NUM_SECONDS: '{num} second{{s}}',
NUM_HOURS: '{num} hour{{s}}',
NUM_MINUTES: '{num} minute{{s}}',
APPLICATION_SETTINGS: 'Application Settings',
APPLICATION: 'Application',
CUSTOMIZATIONS: 'Customizations',
APPLICATION_RESTARTING: 'EMS-ESP is restarting',
INTERFACE_BOARD_PROFILE: 'Interface Board Profile',
Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/fr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const fr: Translation = {
NUM_SECONDS: '{num} seconde{{s}}',
NUM_HOURS: '{num} heure{{s}}',
NUM_MINUTES: '{num} minute{{s}}',
APPLICATION_SETTINGS: "Paramètres de l'application",
APPLICATION: "l'application",
CUSTOMIZATIONS: 'Personnalisation',
APPLICATION_RESTARTING: 'EMS-ESP redémarre',
INTERFACE_BOARD_PROFILE: "Profile de carte d'interface",
Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/it/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const it: Translation = {
NUM_SECONDS: '{num} secondi {{s}}',
NUM_HOURS: '{num} ore {{s}}',
NUM_MINUTES: '{num} minuti {{s}}',
APPLICATION_SETTINGS: 'Impostazione Applicazione',
APPLICATION: 'Applicazione',
CUSTOMIZATIONS: 'Personalizzazione',
APPLICATION_RESTARTING: 'EMS-ESP sta riavviando',
INTERFACE_BOARD_PROFILE: 'Profilo scheda di interfaccia',
Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/nl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const nl: Translation = {
NUM_SECONDS: '{num} second{{en}}',
NUM_HOURS: '{num} {{uur|uren}}',
NUM_MINUTES: '{num} {{minuut|minuten}}',
APPLICATION_SETTINGS: 'Applicatieinstellingen',
APPLICATION: 'Applicatie',
CUSTOMIZATIONS: 'Aanpassingen van entiteiten',
APPLICATION_RESTARTING: 'EMS-ESP herstarten',
INTERFACE_BOARD_PROFILE: 'Interface Apparaatprofiel',
Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/no/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const no: Translation = {
NUM_SECONDS: '{num} Sekund{{er}}',
NUM_HOURS: '{num} Time{{r}}',
NUM_MINUTES: '{num} Minutt{{er}}',
APPLICATION_SETTINGS: 'Innstillinger',
APPLICATION: 'Søknad',
CUSTOMIZATIONS: 'Tilpasninger',
APPLICATION_RESTARTING: 'EMS-ESP restarter',
INTERFACE_BOARD_PROFILE: 'Interface Prosessor Profil',
Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/pl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const pl: BaseTranslation = {
NUM_SECONDS: '{num} sekun{{d|da|dy|dy|d}}',
NUM_HOURS: '{num} godzi{{n|na|ny|ny|n}}',
NUM_MINUTES: '{num} minu{{t|ta|ty|ty|t}}',
APPLICATION_SETTINGS: 'Ustawienia aplikacji',
APPLICATION: 'Aplikacji',
CUSTOMIZATIONS: 'Personalizacja',
APPLICATION_RESTARTING: 'Trwa ponowne uruchamianie',
INTERFACE_BOARD_PROFILE: 'Profil płytki interfejsu',
Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/sk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const sk: Translation = {
NUM_SECONDS: '{num} sek{{únd|unda|undy|undy|únd|únd}}',
NUM_HOURS: '{num} hod{{ín|ina|iny|iny|ín|ín}}',
NUM_MINUTES: '{num} minú{{t|ta|ty|ty|t|t}}',
APPLICATION_SETTINGS: 'Nastavenia aplikácie',
APPLICATION: 'Aplikácie',
CUSTOMIZATIONS: 'Prispôsobenia',
APPLICATION_RESTARTING: 'EMS-ESP sa reštartuje',
INTERFACE_BOARD_PROFILE: 'Profil dosky rozhrania',
Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/sv/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const sv: Translation = {
NUM_SECONDS: '{num} sekund{{er}}',
NUM_HOURS: '{num} timmar',
NUM_MINUTES: '{num} minut{{er}}',
APPLICATION_SETTINGS: 'Inställningar',
APPLICATION: 'Apliká',
CUSTOMIZATIONS: 'Anpassningr',
APPLICATION_RESTARTING: 'EMS-ESP startar om',
INTERFACE_BOARD_PROFILE: 'Interface Hårdvaruprofil',
Expand Down
2 changes: 1 addition & 1 deletion interface/src/i18n/tr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const tr: Translation = {
NUM_SECONDS: '{num} saniye{{ler}}',
NUM_HOURS: '{num} saat{{ler}}',
NUM_MINUTES: '{num} dakika{{lar}}',
APPLICATION_SETTINGS: 'Uygulama Ayarları',
APPLICATION: 'Uygulama',
CUSTOMIZATIONS: 'Özelleştirme',
APPLICATION_RESTARTING: 'EMS-ESP yeniden başlatılıyor',
INTERFACE_BOARD_PROFILE: 'Arabirim Kart Profili',
Expand Down
2 changes: 1 addition & 1 deletion interface/src/project/ApplicationSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const ApplicationSettings: FC = () => {
});
};

useLayoutTitle(LL.APPLICATION_SETTINGS());
useLayoutTitle(LL.APPLICATION());

const content = () => {
if (!data) {
Expand Down
3 changes: 2 additions & 1 deletion pio_local.ini_example
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ default_envs = esp32_4M
[env]
; upload settings
upload_protocol = custom
custom_emsesp_ip = 10.10.10.173
custom_emsesp_ip = ems-esp.local
custom_username = admin
custom_password = admin
upload_port = /dev/ttyUSB*
; upload_port = COM5

[env:esp32_4M]
extra_scripts =
Expand Down

0 comments on commit 9f4aef6

Please sign in to comment.