better english: consistent name for admin-panel

Massimo Melina committed Jan 15, 2023 at 10:48 UTC 9030060cdfe640a339152689f8891aece42de415
5 files changed +9 -9
README.md
+1 -1
@@ -215,7 +215,7 @@ For each account entries, this is the list of properties you can have:
215
216 - `ignore_limits` to ignore speed limits. Default is `false`.
217 - `redirect` provide a URL if you want the user to be redirected upon login. Default is none.
218 -- `admin` set `true` if you want to let this account log in to the Admin interface. Default is `false`.
218 +- `admin` set `true` if you want to let this account log in to the Admin-panel. Default is `false`.
219 - `belongs` an array of usernames of other accounts from which to inherit their permissions. Default is none.
220
221 ## License
admin/src/AccountForm.ts
+1 -1
@@ -42,7 +42,7 @@ export default function AccountForm({ account, done, groups, close }: FormProps)
42 getError: (x, { values }) => (x||'') !== (values.password||'') && "Enter same password" },
43 { k: 'ignore_limits', comp: BoolField, xl: 6,
44 helperText: values.ignore_limits ? "Speed limits don't apply to this account" : "Speed limits apply to this account" },
45 - { k: 'admin', comp: BoolField, xl: 6, fromField: (v:boolean) => v||null, label: "Permission to access Admin interface",
45 + { k: 'admin', comp: BoolField, xl: 6, fromField: (v:boolean) => v||null, label: "Permission to access Admin-panel",
46 helperText: "To access THIS interface you are using right now",
47 ...account.adminActualAccess && { value: true, disabled: true, helperText: "This permission is inherited" },
48 },
admin/src/HomePage.ts
+4 -4
@@ -43,15 +43,15 @@ export default function HomePage() {
43 : entry('success', "Server is working"),
44 !vfs ? h(LinearProgress)
45 : !vfs.root?.children?.length && !vfs.root?.source ? entry('warning', "You have no files shared", SOLUTION_SEP, fsLink("add some"))
46 - : entry('', md("Here you manage your server. There is a _separated_ interface to access your shared files: "),
47 - h(Link, { target:'frontend', href: '/' }, "Frontend interface", h(Launch, { sx: { verticalAlign: 'sub', ml: '.2em' } }))),
46 + : entry('', md("This is Admin-panel, where you manage your server. Access your files on "),
47 + h(Link, { target:'frontend', href: '/' }, "Frontend", h(Launch, { sx: { verticalAlign: 'sub', ml: '.2em' } }))),
48 !href && entry('warning', "Frontend unreachable: ",
49 ['http','https'].map(k => k + " " + (errorMap[k] ? "is in error" : "is off")).join(', '),
50 !errors.length && [ SOLUTION_SEP, cfgLink("switch http or https on") ]
51 ),
52 plugins.find(x => x.badApi) && entry('warning', "Some plugins may be incompatible"),
53 - !account?.adminActualAccess && entry('', md("You are accessing on _localhost_ where permission is not required"),
54 - SOLUTION_SEP, h(InLink, { to:'accounts' }, "give admin access to an account to be able to access from other computers") ),
53 + !account?.adminActualAccess && entry('', md("On _localhost_ you don't need to login"),
54 + SOLUTION_SEP, h(InLink, { to:'accounts' }, "to access from another computer create an account with /admin/ permission") ),
55 proxyWarning(cfg, status) && entry('warning', "A proxy was detected but none is configured",
56 SOLUTION_SEP, cfgLink("set the number of proxies"),
57 SOLUTION_SEP, "unless you are sure you can ", h(Button, {
dev.md
+2 -2
@@ -44,8 +44,8 @@ Alternatively you can run a development server, just be sure to load config from
44
45 # Project design
46
47 -- At the moment the admin interface was designed to be completely separated from the "user" frontend
47 +- At the moment the admin-panel was designed to be completely separated from the "user" frontend
48 to keep the latter smaller and to allow alternative frontends creation without having to deal with
49 - the complexity of the admin interface.
49 + the complexity of the admin-panel.
50
51 Of course this comes with a price to pay on the programmer's side, more work to do.
frontend/src/options.ts
+1 -1
@@ -16,7 +16,7 @@ export function showOptions (){
16 return h(FlexV, {},
17 snap.adminUrl && h(MenuLink, {
18 icon: 'admin',
19 - label: "Admin interface",
19 + label: "Admin-panel",
20 href: snap.adminUrl,
21 target: 'admin',
22 }),