better english
Massimo Melina committed
Mar 12, 2022 at 17:45 UTC
8fcc3a92ef6fb71974df0fd630d86cc330e7770f
2 files changed
+8
-8
admin/src/ConfigPage.ts
+7
-7
@@ -25,7 +25,7 @@ export default function ConfigPage() {
25
const { changes } = snap
26
const config = (loaded !== res) ? (state.config = loaded = res) : snap.config
27
return h(Form, {
28
- sx: { maxWidth:'90em' },
28
+ sx: { maxWidth: '90em' },
29
values: config,
30
set(v, { k }) {
31
if (v || config[k])
@@ -42,7 +42,7 @@ export default function ConfigPage() {
42
reloadStatus()
43
},
44
startIcon: h(Refresh),
45
- }, 'Reload')],
45
+ }, "Reload")],
46
defaults({ comp }) {
47
if (comp === ServerPort)
48
return { md: 6, xl: 4 }
@@ -102,15 +102,15 @@ function ServerPort({ label, value, onChange, status, suggestedPort=1 }: FieldPr
102
const selectValue = Number(value! > 0 ? lastCustom.current : value) || 0
103
const error = status?.error
104
return h(Box, {},
105
- h(Box, { display:'flex' },
105
+ h(Box, { display: 'flex' },
106
h(SelectField as Field<number>, {
107
sx: { flexGrow: 1 },
108
label,
109
value: selectValue,
110
options: [
111
- { label: 'off', value: -1 },
112
- { label: 'automatic port', value: 0 },
113
- { label: 'choose port number', value: lastCustom.current },
111
+ { label: "off", value: -1 },
112
+ { label: "automatic port", value: 0 },
113
+ { label: "choose a port", value: lastCustom.current },
114
],
115
onChange,
116
}),
@@ -118,6 +118,6 @@ function ServerPort({ label, value, onChange, status, suggestedPort=1 }: FieldPr
118
),
119
status && h(FormHelperText, { error: Boolean(error) },
120
status === true ? '...'
121
- : error ?? (status?.listening && 'working on port '+ status.port) )
121
+ : error ?? (status?.listening && "Correctly working on port "+ status.port) )
122
)
123
}
admin/src/HomePage.ts
+1
-1
@@ -38,7 +38,7 @@ export default function HomePage() {
38
)
39
),
40
h(Box, { color:'text.secondary' },
41
- `Inside frontend your users can see the files and folders you decide in the File System.`)
41
+ `Inside the frontend your users can see files and folders you share in the File System.`)
42
) : h(Alert, { severity: 'warning' }, "Frontend unreachable: ",
43
!cfg ? '...'
44
: errors.length === 2 ? "both http and https are in error"