use double-quotes for human strings
Massimo Melina committed
Mar 10, 2022 at 10:20 UTC
01b33cffce4b67690b225a327e3fe73f7b8fd657
1 file changed
+16
-16
admin/src/ConfigPage.ts
+16
-16
@@ -53,36 +53,36 @@ export default function ConfigPage() {
53
return { md: 6, xl: 4 }
54
},
55
fields: [
56
- { k: 'port', comp: ServerPort, label:'HTTP port', status: status?.http||true, suggestedPort: 80 },
57
- { k: 'https_port', comp: ServerPort, label: 'HTTPS port', status: status?.https||true, suggestedPort: 443 },
58
- config.https_port >= 0 && { k: 'cert', comp: StringField, label: 'HTTPS certificate file' },
59
- config.https_port >= 0 && { k: 'private_key', comp: StringField, label: 'HTTPS private key file' },
60
- { k: 'admin_port', comp: ServerPort, label: 'Admin port' },
61
- { k: 'admin_network', comp: SelectField, label: 'Admin access',
56
+ { k: 'port', comp: ServerPort, label:"HTTP port", status: status?.http||true, suggestedPort: 80 },
57
+ { k: 'https_port', comp: ServerPort, label: "HTTPS port", status: status?.https||true, suggestedPort: 443 },
58
+ config.https_port >= 0 && { k: 'cert', comp: StringField, label: "HTTPS certificate file" },
59
+ config.https_port >= 0 && { k: 'private_key', comp: StringField, label: "HTTPS private key file" },
60
+ { k: 'admin_port', comp: ServerPort, label: "Admin port" },
61
+ { k: 'admin_network', comp: SelectField, label: "Admin access",
62
options:[
63
- { value: '127.0.0.1', label: 'localhost only' },
64
- { value: '0.0.0.0', label: 'any network' }
63
+ { value: '127.0.0.1', label: "localhost only" },
64
+ { value: '0.0.0.0', label: "any network" }
65
]
66
},
67
- { k: 'admin_login', comp: BoolField, label: 'Admin requires login',
67
+ { k: 'admin_login', comp: BoolField, label: "Admin requires login",
68
disabled: !status?.any_admin_account,
69
helperText: (config.admin_network === '127.0.0.1' ? '' : "You should enable this because access is not restricted to localhost.")
70
+ (status?.any_admin_account ? '' : " Before this, you must go to Accounts and give Admin access to some account.")
71
},
72
{ k: 'max_kbps', comp: NumberField, label: 'Max KB/s', helperText: "Limit output bandwidth" },
73
- { k: 'max_kbps_per_ip', comp: NumberField, label: 'Max KB/s per-ip' },
74
- { k: 'log', xl: 4, comp: StringField, label: 'Main log file' },
75
- { k: 'error_log', xl: 4, comp: StringField, label: 'Error log file' },
73
+ { k: 'max_kbps_per_ip', comp: NumberField, label: "Max KB/s per-ip" },
74
+ { k: 'log', xl: 4, comp: StringField, label: "Main log file" },
75
+ { k: 'error_log', xl: 4, comp: StringField, label: "Error log file" },
76
{ k: 'log_rotation', xl: 4, comp: SelectField, options: [{ value:'', label:"disabled" }, 'daily', 'weekly', 'monthly' ],
77
helperText: "To avoid an endlessly-growing single log file, you can opt for rotation"
78
},
79
- { k: 'accounts', comp: StringField, label: 'Accounts file' },
79
+ { k: 'accounts', comp: StringField, label: "Accounts file" },
80
{ k: 'open_browser_at_start', comp: BoolField },
81
- { k: 'zip_calculate_size_for_seconds', comp: NumberField, md: 6, xl:4, label: 'Calculate ZIP size for seconds',
81
+ { k: 'zip_calculate_size_for_seconds', comp: NumberField, md: 6, xl:4, label: "Calculate ZIP size for seconds",
82
helperText: "If time is not enough, the browser will not show download percentage" },
83
{ k: 'mime', comp: StringStringField,
84
- keyLabel: 'Files', keyWidth: 7,
85
- valueLabel: 'Mime type', valueWidth: 4
84
+ keyLabel: "Files", keyWidth: 7,
85
+ valueLabel: "Mime type", valueWidth: 4
86
},
87
]
88
})