mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
auto formatting using 'npm run format'
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"adapter": "react",
|
"adapter": "react",
|
||||||
"baseLocale": "en",
|
"baseLocale": "en",
|
||||||
"$schema": "https://unpkg.com/typesafe-i18n@5.13.0/schema/typesafe-i18n.json"
|
"$schema": "https://unpkg.com/typesafe-i18n@5.13.0/schema/typesafe-i18n.json"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,3 @@ export function updateLogSettings(logSettings: LogSettings): AxiosPromise<LogSet
|
|||||||
export function readLogEntries(): AxiosPromise<LogEntries> {
|
export function readLogEntries(): AxiosPromise<LogEntries> {
|
||||||
return AXIOS_BIN.get('/fetchLog');
|
return AXIOS_BIN.get('/fetchLog');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import { useI18nContext } from '../../i18n/i18n-react';
|
|||||||
|
|
||||||
const NetworkTime: FC = () => {
|
const NetworkTime: FC = () => {
|
||||||
const { LL } = useI18nContext();
|
const { LL } = useI18nContext();
|
||||||
useLayoutTitle("NTP");
|
useLayoutTitle('NTP');
|
||||||
|
|
||||||
const authenticatedContext = useContext(AuthenticatedContext);
|
const authenticatedContext = useContext(AuthenticatedContext);
|
||||||
const { routerTab } = useRouterTab();
|
const { routerTab } = useRouterTab();
|
||||||
|
|||||||
@@ -46,18 +46,14 @@ const SecuritySettingsForm: FC = () => {
|
|||||||
<ValidatedPasswordField
|
<ValidatedPasswordField
|
||||||
fieldErrors={fieldErrors}
|
fieldErrors={fieldErrors}
|
||||||
name="jwt_secret"
|
name="jwt_secret"
|
||||||
label={"su " + LL.PASSWORD()}
|
label={'su ' + LL.PASSWORD()}
|
||||||
fullWidth
|
fullWidth
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
value={data.jwt_secret}
|
value={data.jwt_secret}
|
||||||
onChange={updateFormValue}
|
onChange={updateFormValue}
|
||||||
margin="normal"
|
margin="normal"
|
||||||
/>
|
/>
|
||||||
<MessageBox
|
<MessageBox level="info" message={LL.SU_TEXT()} mt={1} />
|
||||||
level="info"
|
|
||||||
message={LL.SU_TEXT()}
|
|
||||||
mt={1}
|
|
||||||
/>
|
|
||||||
<ButtonRow>
|
<ButtonRow>
|
||||||
<Button
|
<Button
|
||||||
startIcon={<SaveIcon />}
|
startIcon={<SaveIcon />}
|
||||||
@@ -75,7 +71,7 @@ const SecuritySettingsForm: FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SectionContent title={LL.SECURITY() + " " + LL.SETTINGS()} titleGutter>
|
<SectionContent title={LL.SECURITY() + ' ' + LL.SETTINGS()} titleGutter>
|
||||||
{content()}
|
{content()}
|
||||||
</SectionContent>
|
</SectionContent>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import SystemLog from './SystemLog';
|
|||||||
import { useI18nContext } from '../../i18n/i18n-react';
|
import { useI18nContext } from '../../i18n/i18n-react';
|
||||||
|
|
||||||
const System: FC = () => {
|
const System: FC = () => {
|
||||||
|
|
||||||
const { LL } = useI18nContext();
|
const { LL } = useI18nContext();
|
||||||
|
|
||||||
useLayoutTitle(LL.SYSTEM());
|
useLayoutTitle(LL.SYSTEM());
|
||||||
@@ -30,7 +29,7 @@ const System: FC = () => {
|
|||||||
<Tab value="status" label={LL.SYSTEM() + ' ' + LL.STATUS()} />
|
<Tab value="status" label={LL.SYSTEM() + ' ' + LL.STATUS()} />
|
||||||
<Tab value="log" label={LL.SYSTEM() + ' ' + LL.LOG()} />
|
<Tab value="log" label={LL.SYSTEM() + ' ' + LL.LOG()} />
|
||||||
|
|
||||||
{features.ota && <Tab value="ota" label={"OTA " + LL.SETTINGS()} disabled={!me.admin} />}
|
{features.ota && <Tab value="ota" label={'OTA ' + LL.SETTINGS()} disabled={!me.admin} />}
|
||||||
{features.upload_firmware && <Tab value="upload" label={LL.UPLOAD_DOWNLOAD()} disabled={!me.admin} />}
|
{features.upload_firmware && <Tab value="upload" label={LL.UPLOAD_DOWNLOAD()} disabled={!me.admin} />}
|
||||||
</RouterTabs>
|
</RouterTabs>
|
||||||
<Routes>
|
<Routes>
|
||||||
|
|||||||
@@ -143,7 +143,8 @@ const SystemStatusForm: FC = () => {
|
|||||||
|
|
||||||
{latestDevVersion && (
|
{latestDevVersion && (
|
||||||
<Box mt={2} mb={2}>
|
<Box mt={2} mb={2}>
|
||||||
{LL.THE_LATEST()} <u>development</u> {LL.VERSION_IS()} <b>{latestDevVersion.version}</b> (
|
{LL.THE_LATEST()} <u>development</u> {LL.VERSION_IS()} <b>{latestDevVersion.version}</b>
|
||||||
|
(
|
||||||
<Link target="_blank" href={latestDevVersion.changelog} color="primary">
|
<Link target="_blank" href={latestDevVersion.changelog} color="primary">
|
||||||
{'release notes'}
|
{'release notes'}
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -153,9 +153,10 @@ const en: BaseTranslation = {
|
|||||||
HELP_INFORMATION_1: 'Visit the online wiki to get instructions on how to configure EMS-ESP',
|
HELP_INFORMATION_1: 'Visit the online wiki to get instructions on how to configure EMS-ESP',
|
||||||
HELP_INFORMATION_2: 'For live community chat join our Discord server',
|
HELP_INFORMATION_2: 'For live community chat join our Discord server',
|
||||||
HELP_INFORMATION_3: 'To request a feature or report a bug',
|
HELP_INFORMATION_3: 'To request a feature or report a bug',
|
||||||
HELP_INFORMATION_4: 'remember to download and attach your system information for a faster response when reporting an issue',
|
HELP_INFORMATION_4:
|
||||||
|
'remember to download and attach your system information for a faster response when reporting an issue',
|
||||||
HELP_INFORMATION_5:
|
HELP_INFORMATION_5:
|
||||||
"EMS-ESP is a free and open-source project. Please support its future development by giving it a star on Github!",
|
'EMS-ESP is a free and open-source project. Please support its future development by giving it a star on Github!',
|
||||||
SUPPORT_INFO: 'Support Info',
|
SUPPORT_INFO: 'Support Info',
|
||||||
UPLOAD: 'Upload',
|
UPLOAD: 'Upload',
|
||||||
DOWNLOAD: 'Download',
|
DOWNLOAD: 'Download',
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const Help: FC = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<RouterTabs value={routerTab}>
|
<RouterTabs value={routerTab}>
|
||||||
<Tab value="information" label={"EMS-ESP " + LL.HELP()} />
|
<Tab value="information" label={'EMS-ESP ' + LL.HELP()} />
|
||||||
</RouterTabs>
|
</RouterTabs>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="information" element={<HelpInformation />} />
|
<Route path="information" element={<HelpInformation />} />
|
||||||
|
|||||||
@@ -347,8 +347,12 @@ const SettingsApplication: FC = () => {
|
|||||||
<MenuItem value="de">Deutsch (DE)</MenuItem>
|
<MenuItem value="de">Deutsch (DE)</MenuItem>
|
||||||
<MenuItem value="nl">Nederlands (NL)</MenuItem>
|
<MenuItem value="nl">Nederlands (NL)</MenuItem>
|
||||||
<MenuItem value="se">Svenska (SE)</MenuItem>
|
<MenuItem value="se">Svenska (SE)</MenuItem>
|
||||||
<MenuItem disabled value="pl">Polski (PL)</MenuItem>
|
<MenuItem disabled value="pl">
|
||||||
<MenuItem disabled value="no">Norsk (NO)</MenuItem>
|
Polski (PL)
|
||||||
|
</MenuItem>
|
||||||
|
<MenuItem disabled value="no">
|
||||||
|
Norsk (NO)
|
||||||
|
</MenuItem>
|
||||||
</ValidatedTextField>
|
</ValidatedTextField>
|
||||||
</Box>
|
</Box>
|
||||||
{data.led_gpio !== 0 && (
|
{data.led_gpio !== 0 && (
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import Schema from 'async-validator';
|
|||||||
|
|
||||||
export const SIGN_IN_REQUEST_VALIDATOR = new Schema({
|
export const SIGN_IN_REQUEST_VALIDATOR = new Schema({
|
||||||
username: {
|
username: {
|
||||||
required: true,
|
required: true
|
||||||
},
|
},
|
||||||
password: {
|
password: {
|
||||||
required: true,
|
required: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user