- Added upstream objects

- Renamed host templates to nginx templates
- Generate upstream templates
- Better nginx error reporting when reloading
- Use tparse for golang test reporting
This commit is contained in:
Jamie Curnow
2023-01-04 15:36:56 +10:00
parent b3ae2f4dbb
commit 5e5f0de0e2
82 changed files with 2209 additions and 294 deletions

View File

@ -51,7 +51,16 @@ const navItems: NavItem[] = [
{
label: intl.formatMessage({ id: "hosts.title" }),
icon: <Icon as={FiMonitor} />,
to: "/hosts",
subItems: [
{
label: intl.formatMessage({ id: "hosts.title" }),
to: "/hosts",
},
{
label: intl.formatMessage({ id: "upstreams.title" }),
to: "/upstreams",
},
],
},
{
label: intl.formatMessage({ id: "access-lists.title" }),
@ -95,8 +104,8 @@ const navItems: NavItem[] = [
to: "/settings/general",
},
{
label: intl.formatMessage({ id: "host-templates.title" }),
to: "/settings/host-templates",
label: intl.formatMessage({ id: "nginx-templates.title" }),
to: "/settings/nginx-templates",
},
],
},

View File

@ -212,13 +212,13 @@ function PermissionSelector({
</Stack>
<Stack direction={{ base: "column", md: "row" }}>
<Flex flex={1}>
{intl.formatMessage({ id: "host-templates.title" })}
{intl.formatMessage({ id: "nginx-templates.title" })}
</Flex>
<Flex flex={1}>
<Select
defaultValue={getDefaultValue("host-templates")}
defaultValue={getDefaultValue("nginx-templates")}
onChange={onSelectChange}
name="host-templates"
name="nginx-templates"
size="sm"
variant="filled"
disabled={!selected}>