Skip to content

Commit e7e6e17

Browse files
committed
#3133 made survey link a global component, add survey to additional pages, remove survey link from navigation.json
1 parent 6cfb81b commit e7e6e17

30 files changed

+9
-86
lines changed

src/assets/data/navigation.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"id": "1.0",
1010
"label": "Overview",
1111
"path": "Overview",
12-
"surveyLink": "",
1312
"items": {
1413
"About the CVE Program": {
1514
"anchorId": "AbouttheCVEProgram",
@@ -21,7 +20,6 @@
2120
"id": "1.1",
2221
"label": "History",
2322
"path": "History",
24-
"surveyLink": "",
2523
"items": {
2624
"Overview": {
2725
"anchorId": "Overview",
@@ -37,7 +35,6 @@
3735
"id": "1.2",
3836
"label": "Process",
3937
"path": "Process",
40-
"surveyLink": "",
4138
"items": {
4239
"CVE Record Lifecycle": {
4340
"anchorId": "CVERecordLifecycle",
@@ -49,7 +46,6 @@
4946
"id": "1.3",
5047
"label": "Related Efforts",
5148
"path": "RelatedEfforts",
52-
"surveyLink": "",
5349
"items": {
5450
"National Vulnerability Database (NVD)": {
5551
"anchorId": "NVD",
@@ -81,7 +77,6 @@
8177
"id": "1.4",
8278
"label": "Metrics",
8379
"path": "Metrics",
84-
"surveyLink": "",
8580
"items": {
8681
"Published CVE Records": {
8782
"anchorId": "PublishedCVERecords",
@@ -117,7 +112,6 @@
117112
"id": "2.0",
118113
"label": "Partner",
119114
"path": "Partner",
120-
"surveyLink": "",
121115
"items": {
122116
"HowToBecomeAPartner": {
123117
"anchorId": "HowToBecomeAPartner",
@@ -159,14 +153,12 @@
159153
"id": "3.0",
160154
"label": "Structure",
161155
"path": "Structure",
162-
"surveyLink": "",
163156
"items": {}
164157
},
165158
"Program Relationship with Partners": {
166159
"id": "3.1",
167160
"label": "Program Relationship with Partners",
168161
"path": "ProgramRelationshipwithPartners",
169-
"surveyLink": "",
170162
"items": {
171163
"Internal Partners": {
172164
"anchorId": "InternalPartners",
@@ -186,7 +178,6 @@
186178
"id": "3.2",
187179
"label": "Board",
188180
"path": "Board",
189-
"surveyLink": "",
190181
"items": {
191182
"Resources": {
192183
"anchorId": "Resources",
@@ -202,7 +193,6 @@
202193
"id": "3.3",
203194
"label": "Working Groups",
204195
"path": "WorkingGroups",
205-
"surveyLink": "",
206196
"items": {
207197
"Automation Working Group (AWG)": {
208198
"anchorId": "AutomationWorkingGroupAWG",
@@ -242,7 +232,6 @@
242232
"id": "3.4",
243233
"label": "CVE Numbering Authorities (CNAs)",
244234
"path": "CNAs",
245-
"surveyLink": "",
246235
"primaryNavPath": "/ProgramOrganization/CNAs",
247236
"items": {
248237
"CNA Program Growth": {
@@ -255,7 +244,6 @@
255244
"id": "3.5",
256245
"label": "Authorized Data Publishers (ADPs)",
257246
"path": "ADPs",
258-
"surveyLink": "",
259247
"items": {
260248
"Active ADPs": {
261249
"anchorId": "ActiveAdps",
@@ -273,7 +261,6 @@
273261
"id": "4",
274262
"label": "CVE List Downloads",
275263
"path": "Downloads",
276-
"surveyLink": "",
277264
"primaryNavPath": "/Downloads",
278265
"submenu": {
279266
"Downloads": {
@@ -302,7 +289,6 @@
302289
"id": "5.0",
303290
"label": "Resources",
304291
"path": "Resources",
305-
"surveyLink": "",
306292
"items": {
307293
"CVE Program Idea Tracker": {
308294
"anchorId": "CVEProgramIdeaTracker",
@@ -352,7 +338,6 @@
352338
"id": "6",
353339
"label": "All News",
354340
"path": "AllNews",
355-
"surveyLink": "",
356341
"submenu": {
357342
"All": {
358343
"id": "6.0",
@@ -424,13 +409,11 @@
424409
"id": "7",
425410
"label": "All Resources",
426411
"path": "AllResources",
427-
"surveyLink": "",
428412
"submenu": {
429413
"Reserve IDs & Publish Records": {
430414
"id": "7.0",
431415
"label": "Reserve IDs & Publish Records (CNAs Only)",
432416
"path": "/AllResources/ReserveIDsPublishRecordsForCNAs",
433-
"surveyLink": "",
434417
"items": {
435418
"Self-Service Automation": {
436419
"anchorId": "SelfServiceAutomation",
@@ -447,7 +430,6 @@
447430
"label": "CVE Services",
448431
"path": "CveServices",
449432
"primaryNavPath": "/AllResources",
450-
"surveyLink": "",
451433
"submenu": {
452434
"Overview": {
453435
"id": "7.1.1",
@@ -543,7 +525,6 @@
543525
"alternatePageName": "Report/Request for Non-CNAs",
544526
"label": "Non-CNAs",
545527
"path": "ReportRequestForNonCNAs",
546-
"surveyLink": "",
547528
"items": {
548529
"Request a CVE ID": {
549530
"anchorId": "RequestCVEID",

src/components/HomeModule.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,7 @@
158158
</div>
159159
</div>
160160
</section>
161-
<div class="cve-feedback-link">
162-
<span class="icon-text">
163-
<a href="https://tinyurl.com/cve-home-page-survey" target="_blank">Provide feedback for this page
164-
<span class="icon is-size-7 cve-icon-xxs">
165-
<p id="extenalSurveyLink" class="is-hidden">external site</p>
166-
<font-awesome-icon icon="external-link-alt" aria-labelledby="extenalSurveyLink" aria-hidden="false"/>
167-
</span>
168-
</a>
169-
</span>
170-
</div>
161+
<SurveyLinkComponent/>
171162
<p class="cve-help-text is-centered has-text-centered mt-2">
172163
Some of the links will take you back to the
173164
<span>

src/components/NewsModule.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,13 @@
9292

9393
<script>
9494
import NavigationSidebar from '@/components/NavigationSidebar.vue';
95-
import SurveyLinkComponent from '@/components/SurveyLinkComponent.vue';
9695
import newsData from '@/assets/data/news.json';
9796
import newsMixins from '@/mixins/newsMixins';
9897
9998
export default {
10099
name: 'NewsModule',
101100
components: {
102101
NavigationSidebar,
103-
SurveyLinkComponent,
104102
},
105103
data() {
106104
return {

src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import LoadScript from 'vue-plugin-load-script';
66

77
import App from './App.vue';
88
import router from './router/index.js';
9-
import ExternalLinkMessage from './components/ExternalLinkMessage.vue';
9+
import ExternalLinkMessage from '@/components/ExternalLinkMessage.vue';
10+
import SurveyLinkComponent from '@/components/SurveyLinkComponent.vue';
1011
import { usePartnerStore } from '@/stores/partners';
1112

1213

@@ -44,4 +45,6 @@ app.use(router);
4445

4546
app.component('font-awesome-icon', FontAwesomeIcon);
4647
app.component('ExternalLinkMessage', ExternalLinkMessage);
48+
app.component('SurveyLinkComponent', SurveyLinkComponent);
49+
4750
app.mount('#app');

src/views/About/History.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
<li><a href="https://www.nsa.gov/" target="_blank">National Security Agency (NSA):</a> Tony Sager</li>
119119
<li><a href="https://www.af.mil/" target="_blank">U.S. Air Force:</a> Matt Mleziva</li>
120120
</ul>
121-
122121
<SurveyLinkComponent/>
123122
</div>
124123
</main>
@@ -130,14 +129,13 @@
130129
</div>
131130
</template>
132131

133-
<script>import NavigationSidebar from '@/components/NavigationSidebar.vue';
134-
import SurveyLinkComponent from '@/components/SurveyLinkComponent.vue';
132+
<script>
133+
import NavigationSidebar from '@/components/NavigationSidebar.vue';
135134
136135
export default {
137136
name: 'History',
138137
components: {
139138
NavigationSidebar,
140-
SurveyLinkComponent,
141139
},
142140
props: {
143141
cvenavs: {

src/views/About/Metrics.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,15 +527,13 @@
527527

528528
<script>
529529
import NavigationSidebar from '@/components/NavigationSidebar.vue';
530-
import SurveyLinkComponent from '@/components/SurveyLinkComponent.vue';
531530
import MetricsData from '@/assets/data/metrics.json';
532531
import { usePartnerStore } from '@/stores/partners';
533532
534533
export default {
535534
name: 'Metrics',
536535
components: {
537536
NavigationSidebar,
538-
SurveyLinkComponent,
539537
},
540538
props: {
541539
cvenavs: {

src/views/About/Overview.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,11 @@
140140
</template>
141141

142142
<script>import NavigationSidebar from '@/components/NavigationSidebar.vue';
143-
import SurveyLinkComponent from '@/components/SurveyLinkComponent.vue';
144143
145144
export default {
146145
name: 'Overview',
147146
components: {
148147
NavigationSidebar,
149-
SurveyLinkComponent,
150148
},
151149
props: {
152150
cvenavs: {

src/views/About/Process.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,11 @@
206206

207207
<script>
208208
import NavigationSidebar from '@/components/NavigationSidebar.vue';
209-
import SurveyLinkComponent from '@/components/SurveyLinkComponent.vue';
210209
211210
export default {
212211
name: 'Process',
213212
components: {
214213
NavigationSidebar,
215-
SurveyLinkComponent,
216214
},
217215
props: {
218216
cvenavs: {

src/views/About/RelatedEfforts.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,11 @@
125125
</template>
126126

127127
<script>import NavigationSidebar from '@/components/NavigationSidebar.vue';
128-
import SurveyLinkComponent from '@/components/SurveyLinkComponent.vue';
129128
130129
export default {
131130
name: 'RelatedEfforts',
132131
components: {
133132
NavigationSidebar,
134-
SurveyLinkComponent,
135133
},
136134
props: {
137135
cvenavs: {

src/views/Downloads.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,11 @@
106106

107107
<script>
108108
import OnPageSidebar from '@/components/OnPageSidebar.vue';
109-
import SurveyLinkComponent from '@/components/SurveyLinkComponent.vue';
110109
111110
export default {
112111
name: 'Downloads',
113112
components: {
114113
OnPageSidebar,
115-
SurveyLinkComponent,
116114
},
117115
props: {
118116
cvenavs: {

0 commit comments

Comments
 (0)