|
1 | 1 | <!DOCTYPE HTML> |
2 | 2 | <html xmlns:th="http://www.thymeleaf.org"> |
| 3 | + |
3 | 4 | <head> |
4 | 5 | <title>GLVD</title> |
5 | 6 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 7 | + <style> |
| 8 | + body { |
| 9 | + font-family: Arial, sans-serif; |
| 10 | + color: #222; |
| 11 | + } |
| 12 | + |
| 13 | + .container { |
| 14 | + max-width: 600px; |
| 15 | + margin: 60px auto; |
| 16 | + padding: 32px; |
| 17 | + border-radius: 12px; |
| 18 | + background: #f8fafc; |
| 19 | + box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07); |
| 20 | + } |
| 21 | + |
| 22 | + h1 { |
| 23 | + color: #1a73e8; |
| 24 | + margin-top: 0; |
| 25 | + } |
| 26 | + |
| 27 | + form { |
| 28 | + display: flex; |
| 29 | + gap: 8px; |
| 30 | + align-items: center; |
| 31 | + } |
| 32 | + |
| 33 | + form.cve { |
| 34 | + margin: 20px 0; |
| 35 | + } |
| 36 | + |
| 37 | + form.distribution { |
| 38 | + margin: 12px 0 24px 0; |
| 39 | + } |
| 40 | + |
| 41 | + form.triage { |
| 42 | + margin: 12px 0 24px 0; |
| 43 | + } |
| 44 | + |
| 45 | + label { |
| 46 | + font-weight: 600; |
| 47 | + } |
| 48 | + |
| 49 | + input[type="text"] { |
| 50 | + flex: 1; |
| 51 | + padding: 8px 10px; |
| 52 | + border: 1px solid #d1d5db; |
| 53 | + border-radius: 6px; |
| 54 | + } |
| 55 | + |
| 56 | + button { |
| 57 | + border: none; |
| 58 | + padding: 8px 12px; |
| 59 | + border-radius: 6px; |
| 60 | + cursor: pointer; |
| 61 | + color: #fff; |
| 62 | + } |
| 63 | + |
| 64 | + button.cve { |
| 65 | + background: #1a73e8; |
| 66 | + } |
| 67 | + |
| 68 | + button.distribution { |
| 69 | + background: #0f9d58; |
| 70 | + } |
| 71 | + |
| 72 | + button.triage { |
| 73 | + background: #ff7043; |
| 74 | + } |
| 75 | + |
| 76 | + a { |
| 77 | + color: #1a73e8; |
| 78 | + } |
| 79 | + </style> |
6 | 80 | </head> |
| 81 | + |
7 | 82 | <body> |
| 83 | + <script> |
| 84 | + function populateGardenlinuxVersions(selectId) { |
| 85 | + fetch("/v1/gardenlinuxVersions", { |
| 86 | + headers: { "Accept": "application/json" } |
| 87 | + }) |
| 88 | + .then(response => response.json()) |
| 89 | + .then(versions => { |
| 90 | + const select = document.getElementById(selectId); |
| 91 | + if (!select) return; |
| 92 | + select.innerHTML = ""; |
| 93 | + versions.reverse().forEach(version => { |
| 94 | + const option = document.createElement("option"); |
| 95 | + option.value = version; |
| 96 | + option.textContent = version; |
| 97 | + select.appendChild(option); |
| 98 | + }); |
| 99 | + }) |
| 100 | + .catch(() => { |
| 101 | + const select = document.getElementById(selectId); |
| 102 | + if (select) { |
| 103 | + select.innerHTML = "<option value=''>Error loading versions</option>"; |
| 104 | + } |
| 105 | + }); |
| 106 | + } |
| 107 | + |
| 108 | + document.addEventListener("DOMContentLoaded", function () { |
| 109 | + populateGardenlinuxVersions("gardenlinuxVersion"); |
| 110 | + populateGardenlinuxVersions("triageGardenlinuxVersion"); |
| 111 | + }); |
| 112 | + </script> |
| 113 | + |
8 | 114 |
|
9 | | -<div style="max-width: 600px; margin: 60px auto; padding: 32px; border-radius: 12px; background: #f8fafc; box-shadow: 0 2px 12px rgba(0,0,0,0.07); font-family: Arial, sans-serif; color: #222;"> |
10 | | - <h1 style="color: #1a73e8; margin-top: 0;">Welcome to GLVD</h1> |
11 | | - <p>GLVD (Garden Linux Vulnerability Database) is currently under active development.</p> |
12 | | - <p>We're working hard to bring you new features and improvements. Some parts of the application may not be fully functional yet.</p> |
13 | | - <ul> |
14 | | - <li>Stay tuned for updates and new releases.</li> |
15 | | - <li>If you have feedback or want to contribute, please visit our <a href="https://github.com/gardenlinux/glvd" target="_blank" style="color: #1a73e8;">GitHub repository</a>.</li> |
16 | | - </ul> |
17 | | - <p>Thank you for your interest in GLVD!</p> |
| 115 | + <div class="container"> |
| 116 | + <h1>Welcome to GLVD</h1> |
| 117 | + <p>GLVD (Garden Linux Vulnerability Database) is an application for tracking security issues in Garden Linux. |
| 118 | + </p> |
18 | 119 |
|
19 | | - <p> |
20 | | - Copyright 2025, <a href="https://www.sap.com/">SAP SE</a> and Garden Linux Contributors. <a href="https://www.sap.com/corporate/en/legal/privacy.html">Privacy Statement</a>, <a href="https://www.sap.com/corporate/en/legal/terms-of-use.html">Terms of Use</a> |
21 | | - </p> |
22 | | -</div> |
| 120 | + <form action="/getCveDetails" method="get" class="cve"> |
| 121 | + <label for="cveId" style="min-width: 320px;">Lookup CVE:</label> |
| 122 | + <input id="cveId" name="cveId" type="text" placeholder="CVE-2025-22872" required /> |
| 123 | + <button type="submit" class="cve">Go</button> |
| 124 | + </form> |
23 | 125 |
|
| 126 | + <form action="/getCveForDistribution" method="get" class="distribution"> |
| 127 | + <label for="gardenlinuxVersion" style="min-width: 320px;">Lookup Garden Linux version:</label> |
| 128 | + <select id="gardenlinuxVersion" name="gardenlinuxVersion" required> |
| 129 | + <option value="">Loading...</option> |
| 130 | + </select> |
| 131 | + <button type="submit" class="distribution">Go</button> |
| 132 | + </form> |
| 133 | + |
| 134 | + <form action="/getTriage" method="get" class="triage"> |
| 135 | + <label for="triageGardenlinuxVersion" style="min-width: 320px;">Lookup Triage for Garden Linux |
| 136 | + version:</label> |
| 137 | + <select id="triageGardenlinuxVersion" name="gardenlinuxVersion" required> |
| 138 | + <option value="">Loading...</option> |
| 139 | + </select> |
| 140 | + <button type="submit" class="triage">Go</button> |
| 141 | + </form> |
| 142 | + |
| 143 | + <p>If you have feedback or want to contribute, please visit our <a href="https://github.com/gardenlinux/glvd" |
| 144 | + target="_blank">GitHub |
| 145 | + repository</a>.</p> |
| 146 | + |
| 147 | + <p>Found a bug, or have questions on GLVD? <a href="https://github.com/gardenlinux/glvd/issues/new/choose" |
| 148 | + target="_blank">Open an issue</a>.</p> |
| 149 | + |
| 150 | + <p> |
| 151 | + Copyright 2025, <a href="https://www.sap.com/">SAP SE</a> and Garden Linux Contributors. <a |
| 152 | + href="https://www.sap.com/corporate/en/legal/privacy.html">Privacy Statement</a>, <a |
| 153 | + href="https://www.sap.com/corporate/en/legal/terms-of-use.html">Terms of Use</a> |
| 154 | + </p> |
| 155 | + </div> |
24 | 156 |
|
25 | 157 | </body> |
| 158 | + |
26 | 159 | </html> |
0 commit comments