-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathApp.vue
76 lines (70 loc) · 1.85 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<template>
<div>
<div v-if="['NotFound'].indexOf($route.name) > -1">
<NotFound/>
</div>
<div v-else id="app">
<a href="#cve-main-page-content" id="cve-skip-link">Skip to main content</a>
<PrimaryNavigation :cvenavs="NavigationItems"/>
<NotificationBannerModule/>
<RouterView :cvenavs="NavigationItems"/>
<FoooterModule/>
</div>
</div>
</template>
<script>
import NavigationItems from './assets/data/navigation.json';
import PrimaryNavigation from './components/PrimaryNavigation.vue';
import NotificationBannerModule from './components/NotificationBannerModule.vue';
import FoooterModule from './components/FooterModule.vue';
import NotFound from './views/NotFound.vue';
import { usePartnerStore } from '@/stores/partners';
import { useSeoMeta } from '@unhead/vue';
export default {
components: {
NotFound,
PrimaryNavigation,
NotificationBannerModule,
FoooterModule
},
data() {
return {
NavigationItems
}
},
beforeMount() {
usePartnerStore().populatePartnerShortLongNameMap();
useSeoMeta({
title: 'CVE: Common Vulnerabilities and Exposures',
description: 'At cve.org, we provide the authoritative '
+ 'reference method for publicly known information-security '
+ 'vulnerabilities and exposures'
});
}
}
</script>
<style lang="scss">
#cve-skip-link {
background-color: white;
text-decoration: underline;
left: 0;
padding: .5rem 1rem;
position: absolute;
top: -3rem;
z-index: 50;
opacity: 0;
}
#cve-skip-link:focus {
opacity: 1;
top: 0;
outline: none;
transition: .2s ease-in-out;
box-shadow: unset;
border-bottom-width: 6px;
border-bottom-style: solid;
border-bottom-color: $theme-color-accent-warm;
border-right-width: 6px;
border-right-style: solid;
border-right-color: $theme-color-accent-warm;
}
</style>