chore: upgrade ui components

This commit is contained in:
ReaJason
2025-04-06 13:55:17 +08:00
parent 8d9f906dcc
commit 075053c38b
32 changed files with 863 additions and 744 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ export function AntSwordTabContent({
control={form.control}
name="antSwordPass"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.antSwordPass")}</FormLabel>
<Input {...field} placeholder={t("placeholders.input")} className="h-8" />
</FormItem>
@@ -38,7 +38,7 @@ export function AntSwordTabContent({
control={form.control}
name="headerName"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerName")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerName")} className="h-8" />
</FormItem>
@@ -48,7 +48,7 @@ export function AntSwordTabContent({
control={form.control}
name="headerValue"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerValue")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerValue")} className="h-8" />
</FormItem>
+3 -3
View File
@@ -27,7 +27,7 @@ export function BehinderTabContent({
control={form.control}
name="behinderPass"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.behinderPass")}</FormLabel>
<Input {...field} placeholder={t("placeholders.input")} className="h-8" />
</FormItem>
@@ -38,7 +38,7 @@ export function BehinderTabContent({
control={form.control}
name="headerName"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerName")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerName")} className="h-8" />
</FormItem>
@@ -48,7 +48,7 @@ export function BehinderTabContent({
control={form.control}
name="headerValue"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerValue")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerValue")} className="h-8" />
</FormItem>
+2 -2
View File
@@ -12,7 +12,7 @@ export function OptionalClassFormField({ form }: Readonly<{ form: UseFormReturn<
control={form.control}
name="shellClassName"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">
{t("mainConfig.shellClassName")} {t("optional")}
</FormLabel>
@@ -24,7 +24,7 @@ export function OptionalClassFormField({ form }: Readonly<{ form: UseFormReturn<
control={form.control}
name="injectorClassName"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">
{t("mainConfig.injectorClassName")} {t("optional")}
</FormLabel>
+1 -1
View File
@@ -27,7 +27,7 @@ export function CommandTabContent({
control={form.control}
name="commandParamName"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.paramName")}</FormLabel>
<FormControl>
<Input {...field} placeholder={t("shellToolConfig.paramName")} className="h-8" />
+2 -2
View File
@@ -32,7 +32,7 @@ export default function CustomTabContent({
control={form.control}
name="shellClassBase64"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.base64String")}</FormLabel>
<RadioGroup
value={isFile ? "file" : "base64"}
@@ -51,7 +51,7 @@ export default function CustomTabContent({
<Label htmlFor="option-two">File</Label>
</div>
</RadioGroup>
<FormControl className="pt-2 mt-2">
<FormControl className="mt-2">
{isFile ? (
<Input
onChange={(e) => {
+4 -4
View File
@@ -28,7 +28,7 @@ export function GodzillaTabContent({
control={form.control}
name="godzillaPass"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.pass")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.pass")} className="h-8" />
</FormItem>
@@ -38,7 +38,7 @@ export function GodzillaTabContent({
control={form.control}
name="godzillaKey"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.key")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.key")} className="h-8" />
</FormItem>
@@ -48,7 +48,7 @@ export function GodzillaTabContent({
control={form.control}
name="headerName"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerName")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerName")} className="h-8" />
</FormItem>
@@ -58,7 +58,7 @@ export function GodzillaTabContent({
control={form.control}
name="headerValue"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerValue")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerValue")} className="h-8" />
</FormItem>
+2 -2
View File
@@ -28,7 +28,7 @@ export function NeoRegTabContent({
control={form.control}
name="headerName"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerName")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerName")} className="h-8" />
</FormItem>
@@ -38,7 +38,7 @@ export function NeoRegTabContent({
control={form.control}
name="headerValue"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerValue")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerValue")} className="h-8" />
</FormItem>
+1 -1
View File
@@ -16,7 +16,7 @@ export function ShellTypeFormField({
control={form.control}
name="shellType"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center">{t("mainConfig.shellMountType")}</FormLabel>
<Select onValueChange={field.onChange} value={field.value}>
<FormControl>
+2 -2
View File
@@ -28,7 +28,7 @@ export function Suo5TabContent({
control={form.control}
name="headerName"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerName")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerName")} className="h-8" />
</FormItem>
@@ -38,7 +38,7 @@ export function Suo5TabContent({
control={form.control}
name="headerValue"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">{t("shellToolConfig.headerValue")}</FormLabel>
<Input {...field} placeholder={t("shellToolConfig.headerValue")} className="h-8" />
</FormItem>
@@ -13,7 +13,7 @@ export function UrlPatternFormField({ form }: Readonly<{ form: UseFormReturn<For
control={form.control}
name="urlPattern"
render={({ field }) => (
<FormItem className="space-y-1">
<FormItem className="gap-1">
<FormLabel className="h-6 flex items-center gap-1">
{t("mainConfig.urlPattern")} <UrlPatternTip />
</FormLabel>