Skip to content

Commit

Permalink
Web UI navigation bar (#3637)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorriborri authored Nov 22, 2024
1 parent b0992bd commit 847255d
Show file tree
Hide file tree
Showing 10 changed files with 551 additions and 93 deletions.
2 changes: 1 addition & 1 deletion sechub-web-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Welcome to Vuetify 3</title>
<title>SecHub</title>
</head>

<body>
Expand Down
Binary file removed sechub-web-ui/src/assets/logo.png
Binary file not shown.
6 changes: 0 additions & 6 deletions sechub-web-ui/src/assets/logo.svg

This file was deleted.

494 changes: 494 additions & 0 deletions sechub-web-ui/src/assets/sechub-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sechub-web-ui/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export {}
/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
AppFooter: typeof import('./components/AppFooter.vue')['default']
AppHeader: typeof import('./components/AppHeader.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
SecHubDefault: typeof import('./components/SecHubDefault.vue')['default']
Expand Down
80 changes: 0 additions & 80 deletions sechub-web-ui/src/components/AppFooter.vue

This file was deleted.

52 changes: 52 additions & 0 deletions sechub-web-ui/src/components/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!-- SPDX-License-Identifier: MIT -->
<template>
<v-app-bar>

<img
class="ma-2 pa-1"
src="@/assets/sechub-logo.svg"
contain
height="100%"
></img>

<v-container fill-height fluid>
<v-row align:center
justify="center">
<v-col class="pa-0">
<div>Welcome</div>
</v-col>
</v-row>
<v-row align:center
justify="center">
<v-col class="pa-0">
<v-app-bar-title> {{ username }}</v-app-bar-title>
</v-col>
</v-row>
</v-container>

<!-- Search Bar
<v-spacer></v-spacer>

<v-responsive
class="mx-auto">
<v-text-field hide-details solo single-line class="ml-5"
rounded
light variant="outlined"
label="search"
prepend-inner-icon="mdi-magnify" />
</v-responsive>
-->

<template v-slot:append>
<v-btn icon="mdi-account"></v-btn>

<v-btn icon="mdi-logout-variant"></v-btn>

<v-btn icon="mdi-forum-outline"></v-btn>
</template>
</v-app-bar>
</template>

<script setup lang="ts">
const username="Erika Mustermann"
</script>
3 changes: 1 addition & 2 deletions sechub-web-ui/src/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<!-- SPDX-License-Identifier: MIT -->
<template>
<v-app>
<AppHeader />
<v-main>
<router-view />
</v-main>

<AppFooter />
</v-app>
</template>

Expand Down
3 changes: 1 addition & 2 deletions sechub-web-ui/src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
</template>

<script lang="ts" setup>
//
import SecHubDefault from "@/components/SecHubDefault.vue";
import SecHubDefault from "@/components/SecHubDefault.vue";
</script>
2 changes: 1 addition & 1 deletion sechub-web-ui/src/plugins/vuetify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ import { createVuetify } from 'vuetify'
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
export default createVuetify({
theme: {
defaultTheme: 'dark',
defaultTheme: 'light',
},
})

0 comments on commit 847255d

Please sign in to comment.