auto formatting using 'npm run format'

This commit is contained in:
proddy
2022-09-24 18:52:19 +02:00
parent eeeb889ba7
commit a7930d8403
10 changed files with 23 additions and 23 deletions

View File

@@ -38,4 +38,3 @@ export function updateLogSettings(logSettings: LogSettings): AxiosPromise<LogSet
export function readLogEntries(): AxiosPromise<LogEntries> {
return AXIOS_BIN.get('/fetchLog');
}

View File

@@ -13,7 +13,7 @@ import { useI18nContext } from '../../i18n/i18n-react';
const NetworkTime: FC = () => {
const { LL } = useI18nContext();
useLayoutTitle("NTP");
useLayoutTitle('NTP');
const authenticatedContext = useContext(AuthenticatedContext);
const { routerTab } = useRouterTab();

View File

@@ -46,18 +46,14 @@ const SecuritySettingsForm: FC = () => {
<ValidatedPasswordField
fieldErrors={fieldErrors}
name="jwt_secret"
label={"su " + LL.PASSWORD()}
label={'su ' + LL.PASSWORD()}
fullWidth
variant="outlined"
value={data.jwt_secret}
onChange={updateFormValue}
margin="normal"
/>
<MessageBox
level="info"
message={LL.SU_TEXT()}
mt={1}
/>
<MessageBox level="info" message={LL.SU_TEXT()} mt={1} />
<ButtonRow>
<Button
startIcon={<SaveIcon />}
@@ -75,7 +71,7 @@ const SecuritySettingsForm: FC = () => {
};
return (
<SectionContent title={LL.SECURITY() + " " + LL.SETTINGS()} titleGutter>
<SectionContent title={LL.SECURITY() + ' ' + LL.SETTINGS()} titleGutter>
{content()}
</SectionContent>
);

View File

@@ -15,7 +15,6 @@ import SystemLog from './SystemLog';
import { useI18nContext } from '../../i18n/i18n-react';
const System: FC = () => {
const { LL } = useI18nContext();
useLayoutTitle(LL.SYSTEM());
@@ -30,7 +29,7 @@ const System: FC = () => {
<Tab value="status" label={LL.SYSTEM() + ' ' + LL.STATUS()} />
<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} />}
</RouterTabs>
<Routes>

View File

@@ -143,7 +143,8 @@ const SystemStatusForm: FC = () => {
{latestDevVersion && (
<Box mt={2} mb={2}>
{LL.THE_LATEST()}&nbsp;<u>development</u>&nbsp;{LL.VERSION_IS()}&nbsp;<b>{latestDevVersion.version}</b>&nbsp;(
{LL.THE_LATEST()}&nbsp;<u>development</u>&nbsp;{LL.VERSION_IS()}&nbsp;<b>{latestDevVersion.version}</b>
&nbsp;(
<Link target="_blank" href={latestDevVersion.changelog} color="primary">
{'release notes'}
</Link>

View File

@@ -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_2: 'For live community chat join our Discord server',
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:
"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',
UPLOAD: 'Upload',
DOWNLOAD: 'Download',

View File

@@ -18,7 +18,7 @@ const Help: FC = () => {
return (
<>
<RouterTabs value={routerTab}>
<Tab value="information" label={"EMS-ESP " + LL.HELP()} />
<Tab value="information" label={'EMS-ESP ' + LL.HELP()} />
</RouterTabs>
<Routes>
<Route path="information" element={<HelpInformation />} />

View File

@@ -347,8 +347,12 @@ const SettingsApplication: FC = () => {
<MenuItem value="de">Deutsch (DE)</MenuItem>
<MenuItem value="nl">Nederlands (NL)</MenuItem>
<MenuItem value="se">Svenska (SE)</MenuItem>
<MenuItem disabled value="pl">Polski (PL)</MenuItem>
<MenuItem disabled value="no">Norsk (NO)</MenuItem>
<MenuItem disabled value="pl">
Polski (PL)
</MenuItem>
<MenuItem disabled value="no">
Norsk (NO)
</MenuItem>
</ValidatedTextField>
</Box>
{data.led_gpio !== 0 && (

View File

@@ -2,9 +2,9 @@ import Schema from 'async-validator';
export const SIGN_IN_REQUEST_VALIDATOR = new Schema({
username: {
required: true,
required: true
},
password: {
required: true,
required: true
}
});