|
1 | 1 | <template> |
2 | 2 | <div class="mt-1"> |
3 | | - <div> |
4 | | - <div role="alert" class="notification is-warning is-light"> |
5 | | - <div class="is-flex is-flex-direction-row is-align-content-flex-start"> |
6 | | - <div class="pr-2 pt-2"> |
7 | | - <p id="newSearchHelpText" class="is-hidden">info</p> |
8 | | - <font-awesome-icon style="font-size: 1.25em;" icon="info-circle" role="info" |
9 | | - aria-labelledby="newSearchHelpText" aria-hidden="false" /> |
10 | | - </div> |
11 | | - <div> |
12 | | - <button class="button is-text is-ghost cve-btn-container pt-0 pr-2 pb-0 pl-1" |
13 | | - @click="showSearchHelpText = !showSearchHelpText" |
14 | | - aria-controls="searchHelpText" |
15 | | - > |
16 | | - The Test website (test.cve.org) has a new drop-down menu below. |
17 | | - <span class="button is-ghost cve-inner-btn">Read {{ showSearchHelpText ? 'less...' : 'more...' }}</span> |
18 | | - </button> |
19 | | - <div v-if="showSearchHelpText" id="searchHelpText" class="cve-help-text" style="max-width: 810px"> |
20 | | - <ol> |
21 | | - <li> |
22 | | - <span class="has-text-weight-bold">Search Capability (Beta) Community testers</span> – To beta-test the new search feature, select |
23 | | - “<span class="has-text-weight-bold">Search CVE List (Beta)</span>” in the drop-down menu. The |
24 | | - <span class="has-text-weight-bold">production</span> data is used. |
25 | | - <router-link to="/ResourcesSupport/FAQs#pc_cve_list_basicssearch_cve" class="cve-dark-blue-text">Access Search Tips</router-link> |
26 | | - for more information on this new capability. <a href="https://forms.office.com/g/dFzysrHLpR" target="_blank"> |
| 3 | + <div role="alert" class="notification is-warning is-light"> |
| 4 | + <div class="is-flex is-align-items-flex-start mt-1" style="max-width: 820px; column-gap: 1rem;"> |
| 5 | + <div class="pl-3"> |
| 6 | + <p id="alertIconVariousFormts" class="is-hidden">alert</p> |
| 7 | + <font-awesome-icon size="1x" icon="exclamation-triangle" role="alert" |
| 8 | + aria-labelledby="alertIconVariousFormts" aria-hidden="false" /> |
| 9 | + </div> |
| 10 | + <div class="is-flex-grow-5"> |
| 11 | + <p class="mb-2">The <a href="https://test.cve.org">CVE Test website</a> has a new drop-down menu below.</p> |
| 12 | + <ol class="cve-help-text pl-4" v-if="showSearchHelpText"> |
| 13 | + <li class="mb-2"> |
| 14 | + <p> |
| 15 | + <span class="has-text-weight-bold">Search Capability (Beta) Community testers</span> – To beta-test the new search feature, select |
| 16 | + “<span class="has-text-weight-bold">Search CVE List (Beta)</span>” in the drop-down menu. The |
| 17 | + <span class="has-text-weight-bold">production</span> data is used and newly published data typically becomes searchable within less than |
| 18 | + 30 minutes. |
| 19 | + <router-link to="/ResourcesSupport/FAQs#pc_cve_list_basicssearch_cve" class="cve-dark-blue-text">Access Search Tips</router-link> |
| 20 | + for more information on this new capability. |
| 21 | + </p> |
| 22 | + <p> |
| 23 | + <a href="https://forms.office.com/g/qmmTaYnr5y" target="_blank"> |
27 | 24 | Provide feedback on the new search capability |
28 | 25 | <span class="icon cve-icon-xxs"> |
29 | 26 | <p id="externalSurveyLink" class="is-hidden"> |
30 | 27 | Survey opens in a new tab or window depending on browser settings |
31 | 28 | </p> |
32 | | - <font-awesome-icon icon="external-link-alt" aria-labelledby="extenalSurveyLink" aria-hidden="false"/> |
| 29 | + <font-awesome-icon icon="external-link-alt" aria-labelledby="extenalSurveyLink" aria-hidden="false" class="ml-1"/> |
33 | 30 | </span>. |
34 | 31 | </a>. |
35 | | - </li> |
36 | | - <li> |
37 | | - <span class="has-text-weight-bold">CNAs</span> – to view your <span class="has-text-weight-bold">test data</span> |
38 | | - (your draft records) select “<span class="has-text-weight-bold">Find a Test CVE Record/ID (Legacy)</span>” in the drop-down menu and |
39 | | - provide a CVE ID to find a specific CVE Record. |
40 | | - </li> |
41 | | - </ol> |
42 | | - </div> |
43 | | - </div> |
| 32 | + </p> |
| 33 | + </li> |
| 34 | + <li> |
| 35 | + <span class="has-text-weight-bold">CNAs</span> – to view your <span class="has-text-weight-bold">test data</span> |
| 36 | + (your draft records) select “<span class="has-text-weight-bold">Find a Test CVE Record/ID (Legacy)</span>” in the drop-down menu and |
| 37 | + provide a CVE ID to find a specific CVE Record. |
| 38 | + </li> |
| 39 | + </ol> |
44 | 40 | </div> |
| 41 | + <button class="cve-button-ghost cve-btn-container mt-1" @click="showSearchHelpText = !showSearchHelpText" style="float: right !important"> |
| 42 | + <font-awesome-icon size="1x" :icon="showSearchHelpText ? 'minus' : 'plus'" role="alert" |
| 43 | + aria-labelledby="alertIconVariousFormts" aria-hidden="false" /> |
| 44 | + </button> |
45 | 45 | </div> |
46 | 46 | </div> |
47 | | - <div class="field mt-1"> |
48 | | - <div class="field has-addons"> |
49 | | - <div class="control"> |
50 | | - <span v-if="websiteEnv !== 'prd'" class="select cve-search-selector"> |
51 | | - <select v-model="searchType"> |
52 | | - <option>Search CVE List (Beta)</option> |
53 | | - <option>Find a Test CVE Record/ID (Legacy)</option> |
54 | | - </select> |
55 | | - </span> |
56 | | - </div> |
57 | | - <div class="control is-expanded"> |
58 | | - <input v-if="searchTypeBoolean" v-model.trim="queryString" @keyup.enter="onKeyUpEnter" |
59 | | - @keyup="validateQueryString" type="text" class="input cve-id-input" |
60 | | - placeholder="Enter keywords (e.g.: CVE ID, sql injection, etc.)" /> |
61 | | - <input v-else v-model.trim="cveId" @keyup.enter="onKeyUpEnter" @keyup="validateQueryString" |
62 | | - type="text" class="input cve-id-input" placeholder="Enter CVE ID (CVE-YYYY-NNNN)" /> |
63 | | - </div> |
64 | | - <div class="control"> |
65 | | - <button @click="validate" class="button cve-button cve-button-accent-warm" |
66 | | - :class="{ 'is-loading': cveListSearchStore.isSearching, 'disabled': cveListSearchStore.isSeachButtonDisabled }" |
67 | | - :aria-disabled="cveListSearchStore.isSeachButtonDisabled"> |
68 | | - {{ searchTypeBoolean ? 'Search' : 'Find'}} |
69 | | - </button> |
70 | | - </div> |
71 | | - </div> |
72 | | - <div class="notification is-warning is-light" role="alert" v-if="errorMessage.length > 0"> |
73 | | - <div class="is-flex is-align-content-flex-start"> |
74 | | - <p id="alertIcon" class="is-hidden">alert</p> |
75 | | - <font-awesome-icon style="flex: 0 0 40px; margin-top:3px" size="lg" icon="exclamation-triangle" role="alert" |
76 | | - aria-labelledby="alertIcon" aria-hidden="false" /> |
77 | | - <p class="cve-help-text"> |
78 | | - {{ errorMessage }} |
79 | | - </p> |
80 | | - </div> |
| 47 | + <div class="field has-addons mt-1"> |
| 48 | + <p class="control"> |
| 49 | + <span v-if="websiteEnv !== 'prd'" class="select cve-search-selector"> |
| 50 | + <select v-model="searchType"> |
| 51 | + <option>Search CVE List (Beta)</option> |
| 52 | + <option>Find a Test CVE Record/ID (Legacy)</option> |
| 53 | + </select> |
| 54 | + </span> |
| 55 | + </p> |
| 56 | + <p class="control is-expanded"> |
| 57 | + <input v-if="searchTypeBoolean" v-model.trim="queryString" @keyup.enter="onKeyUpEnter" |
| 58 | + @keyup="validateQueryString" type="text" class="input cve-id-input is-expanded" |
| 59 | + placeholder="Enter keywords (e.g.: CVE ID, sql injection, etc.)" /> |
| 60 | + <input v-else v-model.trim="cveId" @keyup.enter="onKeyUpEnter" @keyup="validateQueryString" |
| 61 | + type="text" class="input cve-id-input" placeholder="Enter CVE ID (CVE-YYYY-NNNN)" /> |
| 62 | + </p> |
| 63 | + <p class="control"> |
| 64 | + <button @click="validate" class="button cve-button cve-button-accent-warm" |
| 65 | + :class="{ 'is-loading': cveListSearchStore.isSearching, 'disabled': cveListSearchStore.isSeachButtonDisabled }" |
| 66 | + :aria-disabled="cveListSearchStore.isSeachButtonDisabled"> |
| 67 | + {{ searchTypeBoolean ? 'Search' : 'Find'}} |
| 68 | + </button> |
| 69 | + </p> |
| 70 | + </div> |
| 71 | + <div class="notification is-warning is-light" role="alert" v-if="errorMessage.length > 0"> |
| 72 | + <div class="is-flex is-align-content-flex-start"> |
| 73 | + <p id="alertIcon" class="is-hidden">alert</p> |
| 74 | + <font-awesome-icon style="flex: 0 0 40px; margin-top:3px" size="lg" icon="exclamation-triangle" role="alert" |
| 75 | + aria-labelledby="alertIcon" aria-hidden="false" /> |
| 76 | + <p class="cve-help-text"> |
| 77 | + {{ errorMessage }} |
| 78 | + </p> |
81 | 79 | </div> |
82 | 80 | </div> |
83 | 81 | </div> |
|
0 commit comments