Skip to content

Commit

Permalink
feat: add a help page (#28)
Browse files Browse the repository at this point in the history
* feat: add icon and background image

* feat: delete the unused image

* feat: help page

* feat: add header comment and renumber the variant ids in help page

* feat: point troubleshooting to the corresponding wiki page

* feat: add period to the sentence
  • Loading branch information
Meng-20 authored Sep 10, 2024
1 parent 643f744 commit a8e0758
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions webui/src/components/Help/Help.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<!-- Copyright (c) 2024 Seagate Technology LLC and/or its Affiliates -->
<template>
<v-container>
<h2>CFM Help Center</h2>
<br />
<v-row>
<v-col v-for="(variant, i) in variants" :key="i" cols="6" md="3">
<v-card
class="mx-auto custom-size"
max-width="344"
:href="variant.url"
target="_blank"
rel="noopener"
variant="tonal"
>
<v-card-title>
<v-icon left>{{ variant.icon }}</v-icon>
{{ variant.title }}
</v-card-title>
<v-card-text>{{ variant.content }}</v-card-text>
<template v-slot:append>
<v-icon icon="mdi-open-in-new"></v-icon>
</template>
</v-card>
</v-col>
</v-row>
<br />

<h3>Contact Support</h3>
<p>
If you need further assistance, please contact your local Seagate
representative or our support team.
</p>
<v-icon color="#6ebe4a">mdi-email-outline</v-icon>
Email:
<a href="mailto:[email protected]">[email protected]</a>
</v-container>
</template>

<style scoped>
.custom-size {
height: 150px;
}
</style>

<script>
export default {
data() {
return {
variants: [
{
id: 0,
title: "WebUI User Guide",
content:
"For instructions on our product, please refer to the CFM User Guide.",
url: "https://github.com/Seagate/cfm/wiki/WebUI-User-Guide",
icon: "mdi-book-open-page-variant",
},
{
id: 1,
title: "CFM GitHub Repository",
content: "For more details, please visit our GitHub repository.",
url: "https://github.com/Seagate/cfm",
icon: "mdi-github",
},
{
id: 2,
title: "Troubleshooting",
content:
"For solutions to common issues, please see our troubleshooting.",
url: "https://github.com/Seagate/cfm/wiki/Troubleshooting",
icon: "mdi-tools",
},
],
};
},
};
</script>
6 changes: 6 additions & 0 deletions webui/src/components/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
title="CXL-Hosts"
value="CXL-Hosts"
></v-list-item>
<v-list-item
prepend-avatar="@/assets/icons/Icons-Questions--Web-Green.png"
to="/help"
title="Help"
value="Help"
></v-list-item>
<!--
<v-list-item
prepend-avatar="@/assets/icons/Icons-Lightbulb-Web-Green.png"
Expand Down
5 changes: 5 additions & 0 deletions webui/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ const routes = [
// name: 'Alerts',
// component: () => import(/* webpackChunkName: "blades" */ '@/views/Alerts.vue'),
// },
{
path: '/help',
name: 'Help',
component: () => import(/* webpackChunkName: "blades" */ '@/views/Help.vue'),
},
{
path: '/:pathMatch(.*)*',
name: 'NotFoundPage',
Expand Down
8 changes: 8 additions & 0 deletions webui/src/views/Help.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- Copyright (c) 2024 Seagate Technology LLC and/or its Affiliates -->
<template>
<Help />
</template>

<script lang="ts" setup>
import Help from '@/components/Help/Help.vue'
</script>

0 comments on commit a8e0758

Please sign in to comment.