forked from DSACMS/index-generator-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
316 lines (298 loc) · 18 KB
/
index.html
File metadata and controls
316 lines (298 loc) · 18 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Index Generator | Centers for Medicare & Medicaid Services</title>
<link rel="icon" type="image/x-icon" href="assets/images/dsacms.svg">
<meta name="description" content="Generate your agency's code.json index file for SHARE IT Act compliance.">
<link rel="stylesheet" href="assets/css/styles.css">
<script src="assets/js/main.js" defer></script>
<!-- Add USWDS assets for federal banner and USA identifier -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uswds/3.6.1/css/uswds.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/uswds/3.6.1/js/uswds.min.js" defer></script>
</head>
<body>
<!-- USA Banner
<section class="usa-banner" aria-label="Official government website">
<div class="usa-accordion">
<header class="usa-banner__header">
<div class="usa-banner__inner">
<div class="grid-col-auto">
<img class="usa-banner__header-flag"
src="https://cdnjs.cloudflare.com/ajax/libs/uswds/3.6.1/img/us_flag_small.png"
alt="U.S. flag">
</div>
<div class="grid-col-fill tablet:grid-col-auto">
<p class="usa-banner__header-text">An official website of the United States government</p>
<p class="usa-banner__header-action" aria-hidden="true">Here's how you know</p>
</div>
<button class="usa-accordion__button usa-banner__button" aria-expanded="false"
aria-controls="gov-banner">
<span class="usa-banner__button-text">Here's how you know</span>
</button>
</div>
</header>
<div class="usa-banner__content usa-accordion__content" id="gov-banner">
<div class="grid-row grid-gap-lg">
<div class="usa-banner__guidance tablet:grid-col-6">
<img class="usa-banner__icon usa-media-block__img"
src="https://cdnjs.cloudflare.com/ajax/libs/uswds/3.6.1/img/icon-dot-gov.svg" alt="Dot gov">
<div class="usa-media-block__body">
<p>
<strong>Official websites use .gov</strong>
<br>
A <strong>.gov</strong> website belongs to an official government organization in the
United States.
</p>
</div>
</div>
<div class="usa-banner__guidance tablet:grid-col-6">
<img class="usa-banner__icon usa-media-block__img"
src="https://cdnjs.cloudflare.com/ajax/libs/uswds/3.6.1/img/icon-https.svg" alt="Https">
<div class="usa-media-block__body">
<p>
<strong>Secure .gov websites use HTTPS</strong>
<br>
A <strong>lock</strong> ( <span class="icon-lock"><svg
xmlns="http://www.w3.org/2000/svg" width="52" height="64" viewBox="0 0 52 64"
class="usa-banner__lock-image" role="img"
aria-labelledby="banner-lock-title banner-lock-description">
<title id="banner-lock-title">Lock</title>
<desc id="banner-lock-description">A locked padlock</desc>
<path fill="#000000" fill-rule="evenodd"
d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z" />
</svg></span> ) or <strong>https://</strong> means you've safely connected to the
.gov website. Share sensitive information only on official, secure websites.
</p>
</div>
</div>
</div>
</div>
</div>
</section> -->
<!-- CMS Header -->
<header role="banner" class="cms-header">
<div class="container">
<div class="header-content">
<a href="index.html" class="project-logo" aria-label="Index Generator Home">
<img src="assets/images/dsacms.svg" alt="DSACMS Logo" />
Index Generator
</a>
<nav role="navigation" aria-label="Main navigation">
<button class="menu-toggle" aria-expanded="false" aria-controls="main-menu"
aria-label="Toggle menu">
<span class="sr-only">Menu</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<ul id="main-menu">
<li><a href="https://github.com/DSACMS/codejson-index-generator" target="_blank"
rel="noopener noreferrer">CLI Tool<span class="sr-only"> (opens in a new tab)</span></a>
</li>
<li><a href="https://github.com/DSACMS/index-generator-website" target="_blank"
rel="noopener noreferrer">GitHub<span class="sr-only"> (opens in a new tab)</span></a>
</li>
<li><a href="https://github.com/DSACMS/index-generator-website/issues" target="_blank"
rel="noopener noreferrer">Contact Us<span class="sr-only"> (opens in a new
tab)</span></a></li>
</ul>
</nav>
</div>
</div>
</header>
<main>
<!-- Documentation Section -->
<section class="documentation" id="documentation" aria-labelledby="documentation-heading">
<div class="container">
<div class="section-title">
<h2 id="documentation-heading">Generate your agency's code.json index</h2>
<p>This tool helps federal agencies compile and maintain their code.json files for SHARE IT Act
compliance. It automatically scans specified GitHub organizations, finds repositories
containing code.json files, and combines them into a single index file.</p>
</div>
</div>
</section>
<!-- Generate Index Form Section -->
<section class="index-section" id="generate-index">
<div class="container">
<div class="section-content">
<div class="content-container">
<h2 class="section-heading">Generate Index</h2>
<form id="index-generator-form">
<div class="form-group">
<label for="agency-name">Agency Name <span class="tooltip"
data-text="The name of the agency that you are reporting to --- e.g. HHS / FAS / DHS "><strong>ⓘ</strong></span>
</label>
<input type="text" id="agency-name" name="agency-name">
</div>
<div class="form-group">
<label for="github-orgs-input">GitHub Organizations <span class="tooltip"
data-text="List of all GitHub organizations that you would like to go through --- e.g. DSACMS, CMSgov, CMS-Enterprise"><strong>ⓘ</strong></span></label>
<div class="chips-input">
<div class="inner">
<input type="text" id="github-orgs-input" placeholder="Type and press Enter">
<input type="hidden" id="github-orgs" name="github-orgs">
</div>
</div>
</div>
<div class="form-group">
<label for="version">Version <span class="tooltip" data-text="Version number of your index file"><strong>ⓘ</strong></span></label>
<select id="version" name="version" class="version-select">
<option value=""></option>
<option value="1.0.0">1.0.0</option>
<option value="1.0.1">1.0.1</option>
<option value="2.0.0">2.0.0</option>
<option value="2.0.1">2.0.1</option>
</select>
</div>
<div class="form-group">
<label for="github-token">GitHub Token <span class="tooltip"
data-text="GitHub token that allows the application to search through many repositories and is highly recommended"><strong>ⓘ</strong></span>
</label>
<div class="token-input-container">
<input type="password" id="github-token" name="github-token"
placeholder="(Optional but recommended to avoid rate limiting)">
<button type="button" id="show-token" class="token-toggle">Show</button>
</div>
</div>
<div class="form-actions">
<div class="btn" id="generate-btn">
<div class="btn-content">
<div class="spinner"></div>
<span>Generate Index</span>
</div>
</div>
<div class="progress-container">
<span id="progress-count">0/0</span>
<div id="progress-bar">
<div id="progress-indicator"></div>
</div>
</div>
</div>
</form>
<!-- Results Section -->
<div id="results-section">
<h2 class="section-heading">Results</h2>
<div class="results-content">
<div class="success-message">
<p class="success-count"><span id="success-count">0</span> out of <span id="total-count">0</span> repositories have been successfully added and your index file has automatically been downloaded!</p>
<p class="failed-count"><span id="failed-count">0</span> repositories were scanned but have issues with them and couldn't be added. You will find more information about these repositories below.</p>
</div>
<div class="repos-contents">
<div class="success-repos">
<h3 class="repo-section-title">Successful Repositories</h3>
<!-- Success repositories will appear here -->
</div>
<div class="failed-repos">
<h3 class="repo-section-title">Failed Repositories</h3>
<!-- Failed repositories will appear here -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- How It Works Section -->
<section class="index-section" id="how-it-works">
<div class="container">
<div class="section-content">
<div class="content-container">
<h2 class="section-heading">How It Works</h2>
<ol class="steps-list">
<li>Connects to GitHub using the provided token (if any)</li>
<li>Scans each specified GitHub organization for repositories</li>
<li>Checks each repository for a code.json file</li>
<li>Combines all found code.json files into a single indexed file</li>
<li>Provides the combined file for download</li>
</ol>
</div>
</div>
</div>
</section>
</main>
<!-- CMS Footer -->
<footer class="usa-footer site-footer" role="contentinfo">
<div class="footer-section-bottom bg-base-darker">
<div class="grid-container">
<div class="grid-row">
<div class="footer-simple-content">
<p class="footer-text">This site is maintained by <a
href="https://www.cms.gov/digital-service/open-source-program-office"
class="footer-link">the CMS Open Source Program Office</a>.</p>
<p class="footer-text">Read our <a
href="https://github.com/DSACMS/ospo-guide/blob/main/LINKING_POLICY.md"
class="footer-link">linking policy</a>.</p>
<p class="footer-text">Have questions or want to contact us? Email us at <a
href="mailto:opensource@cms.hhs.gov" class="footer-link">opensource@cms.hhs.gov</a>.</p>
</div>
</div>
</div>
</div>
</footer>
<div class="usa-identifier">
<section class="usa-identifier__section usa-identifier__section--masthead" aria-label="Agency identifier">
<div class="usa-identifier__container">
<div class="cms-identifier">
<div class="cms-logos">
<a href="https://hhs.gov" class="cms-logo-link">
<img src="assets/images/hhs-white.svg" class="cms-logo-img" alt="HHS logo">
</a>
<a href="https://cms.gov" class="cms-logo-link">
<img src="assets/images/cms-white.svg" class="cms-logo-img" alt="CMS logo">
</a>
</div>
<div class="cms-identity">
<p class="cms-domain">cms.gov</p>
<p class="cms-disclaimer">
An official website of the <a href="https://hhs.gov">Department of Health and Human
Services</a> and the
<a href="https://cms.gov">Centers for Medicare and Medicaid Services</a>
</p>
</div>
</div>
</div>
</section>
<nav class="usa-identifier__section usa-identifier__section--required-links" aria-label="Important links,,,">
<div class="usa-identifier__container">
<div class="footer-links-wrapper">
<div class="footer-links-group">
<a href="https://www.cms.gov/about-cms/about-cms"
class="usa-identifier__required-link usa-link">About CMS</a>
<a href="https://www.cms.gov/about-cms/agency-information/aboutwebsite/cmsnondiscriminationnotice"
class="usa-identifier__required-link usa-link">Accessibility statement</a>
</div>
<div class="footer-links-group">
<a href="https://www.cms.gov/freedom-information-act-foia-service-center"
class="usa-identifier__required-link usa-link">FOIA requests</a>
<a href="https://www.cms.gov/about-cms/agency-information/aboutwebsite/nofearact"
class="usa-identifier__required-link usa-link">No FEAR Act data</a>
</div>
<div class="footer-links-group">
<a href="https://www.oig.hhs.gov/" class="usa-identifier__required-link usa-link">Office of the
Inspector General</a>
<a href="https://www.cms.gov/About-CMS/Agency-Information/PerformanceBudget"
class="usa-identifier__required-link usa-link">Performance reports</a>
</div>
<div class="footer-links-group">
<a href="https://www.cms.gov/privacy" class="usa-identifier__required-link usa-link">Privacy
policy</a>
</div>
</div>
</div>
</nav>
<section class="usa-identifier__section usa-identifier__section--usagov"
aria-label="U.S. government information and services">
<div class="usa-identifier__container">
<div class="usagov-container">
<div class="usagov-text">Looking for U.S. government information and services?</div>
<a href="https://www.usa.gov/" class="usagov-link">Visit USA.gov</a>
</div>
</div>
</section>
</div>
</body>
</html>