admin: reconsidered menu order

Massimo Melina committed Mar 18, 2022 at 10:22 UTC 2ab3ab220805fc7487470e60eaeb46ff691f3d11
3 files changed +10 -4
admin/src/ConfigPage.ts
+3 -2
@@ -7,7 +7,7 @@ import { state, useSnapState } from './state'
7 import { Refresh } from '@mui/icons-material'
8 import { Dict, modifiedSx } from './misc'
9 import { subscribeKey } from 'valtio/utils'
10 -import { Form, BoolField, NumberField, StringField, SelectField, FieldProps, Field } from './Form';
10 +import { Form, BoolField, NumberField, SelectField, FieldProps, Field } from './Form';
11 import StringStringField from './StringStringField'
12 import { alertDialog, confirmDialog } from './dialog'
13
@@ -70,7 +70,8 @@ export default function ConfigPage() {
70 },
71 { k: 'accounts', label: "Accounts file" },
72 { k: 'open_browser_at_start', comp: BoolField },
73 - { k: 'allowed_referer', placeholder: "any", helperText: values.allowed_referer && "Leave empty to allow any", },
73 + { k: 'allowed_referer', placeholder: "any",
74 + helperText: values.allowed_referer ? "Leave empty to allow any" : "Use this to avoid direct links from other websites", },
75 { k: 'zip_calculate_size_for_seconds', comp: NumberField, sm: 6, label: "Calculate ZIP size for seconds",
76 helperText: "If time is not enough, the browser will not show download percentage" },
77 { k: 'mime', comp: StringStringField,
admin/src/MainMenu.ts
+2 -2
@@ -22,10 +22,10 @@ interface MenuEntry {
22
23 export const mainMenu: MenuEntry[] = [
24 { path: '', icon: Public, label: 'Home', title: "Admin interface", comp: HomePage },
25 - { path: 'monitor', icon: Monitor, comp: MonitorPage },
26 - { path: 'configuration', icon: Settings, comp: ConfigPage },
25 { path: 'fs', icon: AccountTree, label: "Shared files", comp: VfsPage },
26 { path: 'accounts', icon: ManageAccounts, comp: AccountsPage },
27 + { path: 'monitor', icon: Monitor, comp: MonitorPage },
28 + { path: 'configuration', icon: Settings, comp: ConfigPage },
29 { path: 'Logout', icon: Logout, comp: LogoutPage }
30 ]
31
todo.md
+5
@@ -3,6 +3,8 @@
3 - admin/config: hide advanced settings
4 - admin/fs: drag&drop to move items around
5 - admin/fs: support insert/delete key
6 +- admin/fs: button "copy url to clipboard"
7 +- admin/monitor: show some info on what folder is browsing
8 - if specified config is a folder, check for file config.yaml inside
9 - merge accounts in config
10 - frontend: ok button to inputDialogs
@@ -17,6 +19,8 @@
19 - plugin config: plugin must expose gui producing object or form configuration
20 - download-counter: expose results on admin
21 - frontend: make a "login" route, and link it in side the 404's suggest-login message
22 +- block to support masks and CIDR
23 +- whitelist di ip
24 - plugin to show country by ip in admin/monitor
25 - config.proxies:number (will enable koa.proxy:true + maxIpsCount, default 0)
26 - log filter option
@@ -43,3 +47,4 @@
47 - webdav?
48 - log: ip2name
49 - apis in separated log file with parameters?
50 +- search operators (size, type?)