Skip to content

Commit 1d78511

Browse files
committed
refactor: remove unused clean function and simplify header button styles
1 parent c57dcaa commit 1d78511

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

website/components/SourceCodeEditor.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ async function beautify() {
9595
return
9696
applyText(codePrettier(parser.parse(code.value)), 'Beautify')
9797
}
98-
99-
function clean() {
100-
applyText('', 'Clean')
101-
}
10298
</script>
10399

104100
<template>
@@ -150,14 +146,6 @@ function clean() {
150146
<span>上传</span>
151147
</label>
152148
<input id="fileInput" type="file" class="hidden" @change="handleFileChange">
153-
<button
154-
class="inline-flex items-center gap-2 rounded-md border border-transparent bg-zinc-900 px-3 py-1.5 text-xs font-medium text-white shadow-sm transition hover:bg-zinc-800 dark:bg-amber-500 dark:hover:bg-amber-400"
155-
title="Clean source code"
156-
@click="clean"
157-
>
158-
<div class="i-ri:delete-bin-line" />
159-
<span>清空</span>
160-
</button>
161149
</div>
162150
</div>
163151
<div class="mt-3 flex min-h-0 flex-1 rounded-lg border border-zinc-200/70 bg-white/90 shadow-sm dark:(border-zinc-800/80 bg-zinc-950/60)">

website/components/TheHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<div class="i-ri:sun-line text-base dark:i-ri:moon-line" />
2424
</button>
2525
<a
26-
class="inline-flex items-center gap-2 rounded-lg bg-gradient-to-r from-amber-400 to-orange-600 px-3 py-1.5 text-xs font-semibold text-white shadow-md transition hover:from-amber-500 hover:to-orange-600"
26+
class="inline-flex items-center gap-2 rounded-lg bg-gradient-to-r from-zinc-900 via-zinc-800 to-black px-3 py-1.5 text-xs font-semibold text-white shadow-md transition hover:from-black hover:via-zinc-900 hover:to-zinc-800"
2727
href="https://github.com/kuizuo/js-deobfuscator"
2828
target="_blank"
2929
>

0 commit comments

Comments
 (0)