feat: support simple obfuscation (#13)

This commit is contained in:
ReaJason
2025-03-30 15:33:31 +08:00
parent e228065aa0
commit ad05c8f2da
19 changed files with 78 additions and 34 deletions
+12
View File
@@ -287,6 +287,18 @@ export function MainConfigCard({
</FormItem>
)}
/>
<FormField
control={form.control}
name="obfuscate"
render={({ field }) => (
<FormItem className="flex items-center space-x-2 space-y-0">
<FormControl>
<Switch id="obfuscate" checked={field.value} onCheckedChange={field.onChange} />
</FormControl>
<Label htmlFor="obfuscate">{t("mainConfig.obfuscate")}</Label>
</FormItem>
)}
/>
</div>
</CardContent>
</Card>