Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OMICRON_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
51b6b160c4913ee77685ab95dbfc50047d5503fe
9b666e73dec06f2a645a714cdfbb21d63a2f3504
59 changes: 0 additions & 59 deletions app/forms/vpc-router-create.tsx

This file was deleted.

53 changes: 0 additions & 53 deletions app/forms/vpc-router-edit.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions app/pages/project/networking/VpcPage/VpcPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ import { getVpcSelector, useVpcSelector } from 'app/hooks'
import { VpcFirewallRulesTab } from './tabs/VpcFirewallRulesTab'
import { VpcSubnetsTab } from './tabs/VpcSubnetsTab'

// import { VpcRoutersTab } from './tabs/VpcRoutersTab'
// import { VpcSystemRoutesTab } from './tabs/VpcSystemRoutesTab'

VpcPage.loader = async ({ params }: LoaderFunctionArgs) => {
const { project, vpc } = getVpcSelector(params)
await apiQueryClient.prefetchQuery('vpcView', { path: { vpc }, query: { project } })
Expand Down Expand Up @@ -56,19 +53,11 @@ export function VpcPage() {
<QueryParamTabs id="tabs-vpc-sections" className="full-width" defaultValue="subnets">
<Tabs.List>
<Tabs.Trigger value="subnets">Subnets</Tabs.Trigger>
{/* <Tabs.Trigger value="system-routes">System Routes</Tabs.Trigger>
<Tabs.Trigger value="routers">Routers</Tabs.Trigger> */}
<Tabs.Trigger value="firewall-rules">Firewall Rules</Tabs.Trigger>
</Tabs.List>
<Tabs.Content value="subnets">
<VpcSubnetsTab />
</Tabs.Content>
{/* <Tabs.Content value="system-routes">
<VpcSystemRoutesTab />
</Tabs.Content>
<Tabs.Content value="routers">
<VpcRoutersTab />
</Tabs.Content> */}
<Tabs.Content value="firewall-rules">
<VpcFirewallRulesTab />
</Tabs.Content>
Expand Down
60 changes: 0 additions & 60 deletions app/pages/project/networking/VpcPage/tabs/VpcRoutersTab.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions app/pages/project/networking/VpcPage/tabs/VpcSystemRoutesTab.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions libs/api-mocks/msw/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,30 +100,6 @@ export const lookup = {

return vpc
},
vpcRouter({ router: id, ...vpcSelector }: PP.VpcRouter): Json<Api.VpcRouter> {
if (!id) throw notFoundErr

if (isUuid(id)) return lookupById(db.vpcRouters, id)

const vpc = lookup.vpc(vpcSelector)
const router = db.vpcRouters.find((s) => s.vpc_id === vpc.id && s.name === id)
if (!router) throw notFoundErr

return router
},
vpcRouterRoute({ route: id, ...routerSelector }: PP.RouterRoute): Json<Api.RouterRoute> {
if (!id) throw notFoundErr

if (isUuid(id)) return lookupById(db.vpcRouterRoutes, id)

const router = lookup.vpcRouter(routerSelector)
const route = db.vpcRouterRoutes.find(
(s) => s.vpc_router_id === router.id && s.name === id
)
if (!route) throw notFoundErr

return route
},
vpcSubnet({ subnet: id, ...vpcSelector }: PP.VpcSubnet): Json<Api.VpcSubnet> {
if (!id) throw notFoundErr

Expand Down Expand Up @@ -224,8 +200,6 @@ const initDb = {
sshKeys: [...mock.sshKeys],
users: [...mock.users],
vpcFirewallRules: [...mock.defaultFirewallRules],
vpcRouterRoutes: [mock.vpcRouterRoute],
vpcRouters: [mock.vpcRouter],
vpcs: [mock.vpc],
vpcSubnets: [mock.vpcSubnet],
}
Expand Down
Loading