admin: configuration page renamed to "options"

Massimo Melina committed Mar 1, 2023 at 14:47 UTC 344dccafc4324a88d71d046812e2b81091b13a97
5 files changed +10 -10
admin/src/HomePage.ts
+3 -3
@@ -8,7 +8,7 @@ import { CheckCircle, Error, Info, Launch, Warning } from '@mui/icons-material'
8 import md from './md'
9 import { useSnapState } from './state'
10 import { confirmDialog } from './dialog'
11 -import { isCertError, isKeyError, makeCertAndSave } from './ConfigPage'
11 +import { isCertError, isKeyError, makeCertAndSave } from './OptionsPage'
12 import { VfsNode } from './VfsPage'
13 import { Account } from './AccountsPage'
14
@@ -88,8 +88,8 @@ function fsLink(text=`File System page`) {
88 return h(InLink, { to:'fs' }, text)
89 }
90
91 -function cfgLink(text=`Configuration page`) {
92 - return h(InLink, { to:'configuration' }, text)
91 +function cfgLink(text=`Options page`) {
92 + return h(InLink, { to: 'options' }, text)
93 }
94
95 export function proxyWarning(cfg: any, status: any) {
admin/src/InstalledPlugins.ts
+3 -3
@@ -73,12 +73,12 @@ export default function InstalledPlugins({ updates }: { updates?: true }) {
73 }),
74 h(IconBtn, {
75 icon: Settings,
76 - title: "Configuration",
77 - disabled: !config && "No configuration available for this plugin",
76 + title: "Options",
77 + disabled: !config && "No options available for this plugin",
78 async onClick() {
79 const pl = await apiCall('get_plugin', { id })
80 const values = await formDialog({
81 - title: `${id} configuration`,
81 + title: `${id} options`,
82 fields: [
83 h(Box, {}, row.description),
84 ...makeFields(config)
admin/src/LogsPage.ts
+1 -1
@@ -5,7 +5,7 @@ import { Tab, Tabs } from '@mui/material'
5 import { useApiList } from './api'
6 import { DataGrid } from '@mui/x-data-grid'
7 import { formatBytes } from '@hfs/shared'
8 -import { logLabels } from './ConfigPage'
8 +import { logLabels } from './OptionsPage'
9 import { typedKeys } from './misc';
10
11 export default function LogsPage() {
admin/src/MainMenu.ts
+2 -2
@@ -17,7 +17,7 @@ import {
17 import _ from 'lodash'
18 import { NavLink } from 'react-router-dom'
19 import MonitorPage from './MonitorPage'
20 -import ConfigPage from './ConfigPage';
20 +import OptionsPage from './OptionsPage';
21 import VfsPage from './VfsPage';
22 import AccountsPage from './AccountsPage';
23 import HomePage from './HomePage'
@@ -39,7 +39,7 @@ export const mainMenu: MenuEntry[] = [
39 { path: '', icon: Public, label: "Home", title: "Admin panel", comp: HomePage },
40 { path: 'fs', icon: AccountTree, label: "Shared files", comp: VfsPage },
41 { path: 'accounts', icon: ManageAccounts, comp: AccountsPage },
42 - { path: 'configuration', icon: Settings, comp: ConfigPage },
42 + { path: 'options', icon: Settings, comp: OptionsPage },
43 { path: 'monitoring', icon: Monitor, comp: MonitorPage },
44 { path: 'logs', icon: History, comp: LogsPage },
45 { path: 'language', icon: Translate, comp: LangPage },
admin/src/OptionsPage.ts renamed
+1 -1
@@ -36,7 +36,7 @@ export const logLabels = {
36 error_log: "Access error log file"
37 }
38
39 -export default function ConfigPage() {
39 +export default function OptionsPage() {
40 const { data, reload: reloadConfig, element } = useApiEx('get_config', { omit: ['vfs'] })
41 let snap = useSnapState()
42 const { changes } = useSnapshot(pageState)