diff --git a/app.vue b/app.vue
index a4ceee2..3a09116 100644
--- a/app.vue
+++ b/app.vue
@@ -16,10 +16,14 @@ guard(useRoute().fullPath);
function guard(route: string)
{
- if(route.startsWith('/dashboard') && getToken() == null)
+ if(route.startsWith('/account') && getToken() == null)
{
useRouter().push('/');
}
+ if(route === '/' && getToken() != null)
+ {
+ useRouter().push('/account/inspect/nodes/_all');
+ }
}
useHead({
diff --git a/assets/base-style.css b/assets/base-style.css
index 91676b9..944ee9b 100644
--- a/assets/base-style.css
+++ b/assets/base-style.css
@@ -236,4 +236,9 @@
.base-shape {
height: 2.5rem;
padding: 0.5rem;
+}
+
+
+.width-6rem {
+ width: 6rem;
}
\ No newline at end of file
diff --git a/assets/style.css b/assets/style.css
index e34e259..e22836e 100644
--- a/assets/style.css
+++ b/assets/style.css
@@ -11,8 +11,10 @@
html {
--primary-color: rgb(87, 75, 255);
- --tile-color: rgb(255, 255, 255);
- background-color: rgb(240, 240, 240);
+ --tile-color: #ebf1ff;
+ background-color: rgb(255, 255, 255);
+ --shade-light: #f3f3f3;
+ --shade-dark: rgb(233, 233, 233);
}
html * {
@@ -28,26 +30,36 @@ html, body, #__nuxt {
display: grid;
grid-template-columns: auto auto auto 1fr auto auto;
align-content: start;
- background-color: rgb(247, 247, 247);
+ background-color: rgb(255, 255, 255);
}
.resource, .header {
display: contents;
}
.header > * {
padding: 0.75rem;
- background-color: rgb(12, 12, 12);
- color: white;
+ background-color: var(--tile-color);
+ color: rgb(0, 0, 0);
font-weight: bold;
position: sticky;
top: 0;
+ margin-bottom: 1rem;
+}
+.header *:first-of-type {
+ border-top-left-radius: 0rem;
+ border-bottom-left-radius: 0rem;
+}
+.header *:last-of-type {
+ border-top-right-radius: 0rem;
+ border-bottom-right-radius: 0rem;
}
.resource > .grid-element {
padding: 0.25rem 0.75rem;
display: flex;
align-items: center;
+ background-color: #f3f3f3;
}
.resource:hover > .grid-element {
- background-color: #c2c2c2;
+ background-color: #dbdbdb;
}
.resource p {
font-weight: 600;
@@ -55,4 +67,4 @@ html, body, #__nuxt {
}
.even > .grid-element {
background-color: rgb(233, 233, 233);
-}
\ No newline at end of file
+}
diff --git a/classes/Ingress.ts b/classes/Ingress.ts
index 6b1cec7..1f48150 100644
--- a/classes/Ingress.ts
+++ b/classes/Ingress.ts
@@ -2,5 +2,63 @@ import type { Metadata } from "./Metadata";
export class Ingress
{
- metadata?: Metadata;
+ constructor (
+ public metadata: Metadata,
+ public spec: IngressSpec
+ ) { }
+}
+
+export class IngressSpec
+{
+ constructor (
+ public ingressClassName: string,
+ public rules: IngressRule[],
+ public tls: IngressTLS[]
+ ) { }
+}
+
+export class IngressRule
+{
+ constructor (
+ public host: string,
+ public http: IngressRuleHttp
+ ) { }
+}
+
+export class IngressRuleHttp
+{
+ constructor (
+ public paths: IngressRulePath[]
+ ) { }
+}
+
+export class IngressRulePath
+{
+ constructor (
+ public path: string,
+ public pathType: string,
+ public backend: IngressRuleBackend
+ ) { }
+}
+
+export class IngressRuleBackend
+{
+ constructor (
+ public service: IngressRuleBackendService
+ ) { }
+}
+
+export class IngressRuleBackendService
+{
+ constructor (
+ public name: string
+ ) { }
+}
+
+export class IngressTLS
+{
+ constructor (
+ public hosts: string[],
+ public secretName: string
+ ) {}
}
\ No newline at end of file
diff --git a/classes/Metadata.ts b/classes/Metadata.ts
index 8dd76dc..a9cc69d 100644
--- a/classes/Metadata.ts
+++ b/classes/Metadata.ts
@@ -1,7 +1,10 @@
export class Metadata
{
- name?: string;
- namespace?: string;
creationTimestamp?: string;
uid?: string;
+
+ constructor (
+ public namespace: string,
+ public name: string
+ ) { }
}
\ No newline at end of file
diff --git a/classes/Secret.ts b/classes/Secret.ts
new file mode 100644
index 0000000..8b7b371
--- /dev/null
+++ b/classes/Secret.ts
@@ -0,0 +1,8 @@
+import type { Metadata } from "./Metadata";
+
+export class Secret
+{
+ constructor (
+ public metadata: Metadata
+ ) { }
+}
\ No newline at end of file
diff --git a/components/IngressComponent.vue b/components/IngressComponent.vue
deleted file mode 100644
index d46fcee..0000000
--- a/components/IngressComponent.vue
+++ /dev/null
@@ -1,14 +0,0 @@
-
- {{ ingress.metadata.name }} {{ ingress.metadata.namespace }}
{{ ingress.metadata.name }}
+{{ ingress.metadata.namespace }}
+{{ ingress.spec.ingressClassName }}
+{{ ingress.spec.rules.length }}
+ +{{ ingress.spec.ingressClassName }}
+Secret Name: {{ tls.secretName }}
+[{{ path.pathType }}] {{ path.path }}
+Name
Namespace
+Ingress Class Name
+Rules
+Actions
Name
+Namespace
+Alter
+Aktionen
+{{ pod.metadata.name }}
{{ pod.metadata.namespace }}
{{ calcAge(pod.metadata.creationTimestamp) }}
@@ -13,6 +13,7 @@