mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
formatting
This commit is contained in:
@@ -159,7 +159,7 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
value="clean_session"
|
value="clean_session"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label="Clean Session"
|
label="Set Clean Session"
|
||||||
/>
|
/>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={
|
control={
|
||||||
@@ -169,7 +169,7 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
value="mqtt_retain"
|
value="mqtt_retain"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label="Retain Flag"
|
label="Use Retain Flag"
|
||||||
/>
|
/>
|
||||||
<br></br>
|
<br></br>
|
||||||
<Typography variant="h6" color="primary">
|
<Typography variant="h6" color="primary">
|
||||||
@@ -184,8 +184,8 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
onChange={handleValueChange('nested_format')}
|
onChange={handleValueChange('nested_format')}
|
||||||
margin="normal"
|
margin="normal"
|
||||||
>
|
>
|
||||||
<MenuItem value={1}>nested on a single topic</MenuItem>
|
<MenuItem value={1}>Nested on a single topic</MenuItem>
|
||||||
<MenuItem value={2}>as individual topics</MenuItem>
|
<MenuItem value={2}>As individual topics</MenuItem>
|
||||||
</SelectValidator>
|
</SelectValidator>
|
||||||
<SelectValidator
|
<SelectValidator
|
||||||
name="subscribe_format"
|
name="subscribe_format"
|
||||||
@@ -196,9 +196,9 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
onChange={handleValueChange('subscribe_format')}
|
onChange={handleValueChange('subscribe_format')}
|
||||||
margin="normal"
|
margin="normal"
|
||||||
>
|
>
|
||||||
<MenuItem value={0}>general device topic</MenuItem>
|
<MenuItem value={0}>General device topic</MenuItem>
|
||||||
<MenuItem value={1}>individual topics, main heating circuit</MenuItem>
|
<MenuItem value={1}>Individual topics, main heating circuit</MenuItem>
|
||||||
<MenuItem value={2}>individual topics, all heating circuits</MenuItem>
|
<MenuItem value={2}>Individual topics, all heating circuits</MenuItem>
|
||||||
</SelectValidator>
|
</SelectValidator>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={
|
control={
|
||||||
@@ -220,9 +220,9 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
onChange={handleValueChange('ha_climate_format')}
|
onChange={handleValueChange('ha_climate_format')}
|
||||||
margin="normal"
|
margin="normal"
|
||||||
>
|
>
|
||||||
<MenuItem value={1}>use Current temperature (default)</MenuItem>
|
<MenuItem value={1}>Use Current temperature (default)</MenuItem>
|
||||||
<MenuItem value={2}>use Setpoint temperature</MenuItem>
|
<MenuItem value={2}>Use Setpoint temperature</MenuItem>
|
||||||
<MenuItem value={3}>Fix to 0</MenuItem>
|
<MenuItem value={3}>Always set to 0</MenuItem>
|
||||||
</SelectValidator>
|
</SelectValidator>
|
||||||
)}
|
)}
|
||||||
<br></br>
|
<br></br>
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ class NetworkSettingsForm extends React.Component<NetworkStatusFormProps> {
|
|||||||
onChange={handleValueChange('enableIPv6')}
|
onChange={handleValueChange('enableIPv6')}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label="Enable IPv6"
|
label="Enable IPv6 support"
|
||||||
/>
|
/>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={
|
control={
|
||||||
@@ -184,7 +184,7 @@ class NetworkSettingsForm extends React.Component<NetworkStatusFormProps> {
|
|||||||
onChange={handleValueChange('bandwidth20')}
|
onChange={handleValueChange('bandwidth20')}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label="WiFi Low Bandwidth"
|
label="Use Lower WiFi Bandwidth"
|
||||||
/>
|
/>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={
|
control={
|
||||||
@@ -194,7 +194,7 @@ class NetworkSettingsForm extends React.Component<NetworkStatusFormProps> {
|
|||||||
onChange={handleValueChange('nosleep')}
|
onChange={handleValueChange('nosleep')}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label="Disable Wifi Sleepmode"
|
label="Disable WiFi Sleep Mode"
|
||||||
/>
|
/>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={
|
control={
|
||||||
@@ -204,7 +204,7 @@ class NetworkSettingsForm extends React.Component<NetworkStatusFormProps> {
|
|||||||
onChange={handleValueChange('static_ip_config')}
|
onChange={handleValueChange('static_ip_config')}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label="Static IP Config"
|
label="Use Static IPs"
|
||||||
/>
|
/>
|
||||||
{data.static_ip_config && (
|
{data.static_ip_config && (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
|
|||||||
|
|
||||||
<br></br>
|
<br></br>
|
||||||
<Typography variant="h6" color="primary">
|
<Typography variant="h6" color="primary">
|
||||||
Options
|
General Options
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
{data.led_gpio !== 0 && (
|
{data.led_gpio !== 0 && (
|
||||||
@@ -390,7 +390,7 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
|
|||||||
value="dallas_parasite"
|
value="dallas_parasite"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label="Enable Dallas parasite mode"
|
label="Use Dallas Sensor parasite power"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@@ -412,7 +412,17 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
|
|||||||
value="low_clock"
|
value="low_clock"
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
label="Low Clockrate (160MHz, changed on next reboot)"
|
label="Use lower CPU clock speed (only applied after restart)"
|
||||||
|
/>
|
||||||
|
<BlockFormControlLabel
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
checked={data.notoken_api}
|
||||||
|
onChange={handleValueChange('notoken_api')}
|
||||||
|
value="notoken_api"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
label="Bypass Access Token authorization on API calls"
|
||||||
/>
|
/>
|
||||||
<Grid
|
<Grid
|
||||||
container
|
container
|
||||||
@@ -445,19 +455,9 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
|
|||||||
|
|
||||||
<br></br>
|
<br></br>
|
||||||
<Typography variant="h6" color="primary">
|
<Typography variant="h6" color="primary">
|
||||||
API and MQTT Options
|
Formatting Options
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<BlockFormControlLabel
|
|
||||||
control={
|
|
||||||
<Checkbox
|
|
||||||
checked={data.notoken_api}
|
|
||||||
onChange={handleValueChange('notoken_api')}
|
|
||||||
value="notoken_api"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
label="Bypass Access Token authorization on API calls"
|
|
||||||
/>
|
|
||||||
<Grid
|
<Grid
|
||||||
container
|
container
|
||||||
spacing={1}
|
spacing={1}
|
||||||
@@ -498,14 +498,14 @@ class EMSESPSettingsForm extends Component<EMSESPSettingsFormProps> {
|
|||||||
<Grid item xs={4}>
|
<Grid item xs={4}>
|
||||||
<SelectValidator
|
<SelectValidator
|
||||||
name="dallas_format"
|
name="dallas_format"
|
||||||
label="Sensor Publishing"
|
label="Dallas Sensor Format"
|
||||||
value={data.dallas_format}
|
value={data.dallas_format}
|
||||||
fullWidth
|
fullWidth
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
onChange={handleValueChange('dallas_format')}
|
onChange={handleValueChange('dallas_format')}
|
||||||
margin="normal"
|
margin="normal"
|
||||||
>
|
>
|
||||||
<MenuItem value={1}>by Sensor ID</MenuItem>
|
<MenuItem value={1}>by ID</MenuItem>
|
||||||
<MenuItem value={2}>by Number</MenuItem>
|
<MenuItem value={2}>by Number</MenuItem>
|
||||||
<MenuItem value={3}>by Name</MenuItem>
|
<MenuItem value={3}>by Name</MenuItem>
|
||||||
</SelectValidator>
|
</SelectValidator>
|
||||||
|
|||||||
Reference in New Issue
Block a user