@samitouri / QOSami-HFS / commits / 6c2eba38

admin/options: better layout

Massimo Melina committed Jul 3, 2026 at 15:29 UTC 6c2eba380c2c717fb6085d8ee3a03d7c5c0c8c3d
1 file changed +10 -10
admin/src/OptionsPage.ts
+10 -10
@@ -212,7 +212,7 @@ export default function OptionsPage() {
212 { k: 'title_with_path', comp: BoolField, xs: 6, md: 3 },
213 { k: 'favicon', comp: FileField, placeholder: "None", fileMask: '*.ico|' + IMAGE_FILEMASK, xs: 12, sm: 6,
214 helperText: "The icon associated to your website" },
215 - { k: CFG.show_uploader, comp: WhoField, xs: true },
215 + { k: CFG.show_uploader, label: "Show uploader to", comp: WhoField, xs: true },
216 { k: 'page_size', comp: NumberField, xs: true, min: 1, required: true, helperText: "Entries per page" },
217
218 h(Section, { title: "Uploads" }),
@@ -226,19 +226,19 @@ export default function OptionsPage() {
226 label: "Min. available disk space", helperText: "Reject uploads that don't comply" },
227
228 h(Section, { title: "Others" }),
229 + { k: 'show_hidden_files', comp: BoolField, sm: 3 },
230 + { k: 'descript_ion_encoding', sm: 3, label: "Encoding of file DESCRIPT.ION", comp: SelectField, disabled: !values.descript_ion,
231 + options: ['utf8',720,775,819,850,852,862,869,874,808, ..._.range(1250,1257),10029,20866,21866] },
232 + { k: CFG.comments_storage, comp: SelectField, xs: 12, sm: 6, options: {
233 + "in file DESCRIPT.ION": '',
234 + "in file attributes": 'attr',
235 + "in file attributes + load DESCRIPT.ION": 'attr+ion',
236 + } },
237 +
238 { k: 'keep_session_alive', comp: BoolField, sm: 6, md: 6, helperText: "Keeps you logged in while the page is left open and the computer is on" },
239 { k: 'session_duration', comp: NumberField, sm: 3, md: 3, min: 5, unit: "seconds", required: true },
240 { k: CFG.size_1024, label: "KB size", comp: SelectField, sm: 3, options: { 1000: false, 1024: true } },
241
233 - { k: 'show_hidden_files', comp: BoolField, sm: 3 },
234 - { k: CFG.comments_storage, comp: SelectField, xs: 12, sm: 6, md: 5, options: {
235 - "in file DESCRIPT.ION": '',
236 - "in file attributes": 'attr',
237 - "in file attributes + load DESCRIPT.ION": 'attr+ion',
238 - } },
239 - { k: 'descript_ion_encoding', xs: 8, sm: 3, md: 4, label: "Encoding of file DESCRIPT.ION", comp: SelectField, disabled: !values.descript_ion,
240 - options: ['utf8',720,775,819,850,852,862,869,874,808, ..._.range(1250,1257),10029,20866,21866] },
241 -
242 { k: 'open_browser_at_start', comp: BoolField, label: "Open Admin-panel at start", xs: 12, sm: 6, md: 3,
243 helperText: "Browser is automatically launched with HFS"
244 },