Skip to content

Commit

Permalink
feat: 网页指纹识别开关配置
Browse files Browse the repository at this point in the history
  • Loading branch information
rowthan committed Aug 15, 2024
1 parent 223b573 commit cab656c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
11 changes: 5 additions & 6 deletions apps/web/components/form/UrlRuleForm.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React, {type ReactNode, useEffect, useState} from 'react';
import {Form, FormControl, FormField, FormItem, FormLabel, FormMessage} from "../../@/components/ui/form";
import {Input} from "../../@/components/ui/input";
import {DialogFooter} from "../../@/components/ui/dialog";
import {Button} from "../../@/components/ui/button";
import React, {type ReactNode, useState} from 'react';
import {Form, FormControl, FormField, FormItem, FormLabel, FormMessage} from "@/components/ui/form";
import {Input} from "@/components/ui/input";
import {DialogFooter} from "@/components/ui/dialog";
import {Button} from "@/components/ui/button";
import {useForm} from "react-hook-form";
import * as z from "zod";
import {zodResolver} from "@hookform/resolvers/zod";
import CloudStat from "../cloud/CloudStat";

interface Props {
children?: ReactNode;
Expand Down
10 changes: 9 additions & 1 deletion apps/web/components/setting/Advance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ export default function Advance() {
/>
<BasicSettingLine
label={'网页指纹(Beta)'}
subLabel={'对网页生成指纹,不同URL指向同一网页的依据'}
subLabel={
<span>
对网页生成指纹,不同URL
<a href={'https://pagenote.cn/docs/web-signature'}
className={'a'}
target={'_blank'}>
指向同一网页的依据</a>
</span>
}
right={
<Switch checked={enabled} onCheckedChange={(checked)=>{
update({
Expand Down
5 changes: 2 additions & 3 deletions apps/web/components/setting/LinkedRule.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {type ReactNode} from 'react';
import useSettingConfig from "../../hooks/table/useSettingConfig";
import {Button} from "../../@/components/ui/button";
import useSettingConfig from "hooks/table/useSettingConfig";
import {Button} from "@/components/ui/button";
import BasicSettingLine from "./BasicSettingLine";
import {
Dialog,
Expand All @@ -11,7 +11,6 @@ import {
DialogTitle,
DialogTrigger
} from '@/components/ui/dialog';
import {Label} from "../../@/components/ui/label";
import UrlRuleForm from "../form/UrlRuleForm";

interface Props {
Expand Down

0 comments on commit cab656c

Please sign in to comment.