Skip to content

Commit 9965749

Browse files
committed
feat: label settings as Advanced, add GitHub source link footer
1 parent 1315ae5 commit 9965749

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,16 @@
263263
line-height: 1.7;
264264
}
265265

266+
.footer {
267+
text-align: center;
268+
margin-top: 1.5rem;
269+
padding-top: 1rem;
270+
border-top: 1px solid var(--border);
271+
font-size: 0.85rem;
272+
}
273+
274+
.footer a { color: var(--text); }
275+
266276
.hidden { display: none !important; }
267277
</style>
268278
</head>

src/main.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function renderStats(stats: { redactedEnvVars: number; redactedEmails: number; a
110110
function buildSettingsPanel(config: SanitizerConfig, onSave: (c: SanitizerConfig) => void): HTMLElement {
111111
const details = el('details', { className: 'settings' })
112112
const summary = el('summary')
113-
summary.textContent = 'Settings'
113+
summary.textContent = 'Advanced Settings'
114114
details.appendChild(summary)
115115

116116
const form = el('div', { className: 'settings-form' })
@@ -258,6 +258,17 @@ function init(): void {
258258
// Full disclaimer
259259
app.appendChild(createFullDisclaimer())
260260

261+
// Source code link
262+
const footer = el('div', { className: 'footer' })
263+
const sourceLink = el('a', {
264+
href: 'https://github.com/bakerboy448/compose-sanitizer',
265+
target: '_blank',
266+
rel: 'noopener noreferrer',
267+
})
268+
sourceLink.textContent = 'Source code on GitHub'
269+
footer.appendChild(sourceLink)
270+
app.appendChild(footer)
271+
261272
// Sanitize handler
262273
sanitizeBtn.addEventListener('click', () => {
263274
const raw = input.value

0 commit comments

Comments
 (0)