diff --git a/src/components/universal/Icons/index.tsx b/src/components/universal/Icons/index.tsx index f43c8792a..b12bb5a94 100644 --- a/src/components/universal/Icons/index.tsx +++ b/src/components/universal/Icons/index.tsx @@ -39,8 +39,8 @@ export function MusicIcon(props: SVGProps) { return ( - - + + ) @@ -52,7 +52,7 @@ export function PauseIcon(props: SVGProps) { + /> ) } @@ -63,7 +63,7 @@ export function PhUser(props: SVGProps) { + /> ) } @@ -74,7 +74,7 @@ export function MdiFountainPenTip(props: SVGProps) { + /> ) } @@ -83,8 +83,8 @@ export function SiGlyphGlobal(props: SVGProps) { return ( - - + + ) @@ -98,7 +98,7 @@ export function RadixIconsAvatar(props: SVGProps) { fillRule="evenodd" d="M.877 7.5a6.623 6.623 0 1 1 13.246 0a6.623 6.623 0 0 1-13.246 0ZM7.5 1.827a5.673 5.673 0 0 0-4.193 9.494A4.971 4.971 0 0 1 7.5 9.025a4.97 4.97 0 0 1 4.193 2.296A5.673 5.673 0 0 0 7.5 1.827Zm3.482 10.152A4.023 4.023 0 0 0 7.5 9.975a4.023 4.023 0 0 0-3.482 2.004A5.648 5.648 0 0 0 7.5 13.173c1.312 0 2.52-.446 3.482-1.194ZM5.15 6.505a2.35 2.35 0 1 1 4.7 0a2.35 2.35 0 0 1-4.7 0Zm2.35-1.4a1.4 1.4 0 1 0 0 2.8a1.4 1.4 0 0 0 0-2.8Z" clipRule="evenodd" - > + /> ) } @@ -109,7 +109,7 @@ export function MdiEmailFastOutline(props: SVGProps) { + /> ) } @@ -120,7 +120,7 @@ export function PhBookOpen(props: SVGProps) { + /> ) } @@ -131,7 +131,7 @@ export function JamTags(props: SVGProps) { + /> ) } @@ -142,7 +142,7 @@ export function IonSearch(props: SVGProps) { + /> ) } @@ -153,7 +153,7 @@ export function SolidBookmark(props: SVGProps) { + /> ) } @@ -164,7 +164,7 @@ export function RegularBookmark(props: SVGProps) { + /> ) } @@ -175,7 +175,7 @@ export function IcBaselineMenuOpen(props: SVGProps) { + /> ) } @@ -186,7 +186,7 @@ export function MdiTagHeartOutline(props: SVGProps) { + /> ) } @@ -197,18 +197,24 @@ export function BxBxPaperPlane(props: SVGProps) { + /> ) } - -export function MdiLanguageMarkdown(props: SVGProps) { +export function GridiconsNoticeOutline(props: SVGProps) { return ( - + + d="M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8s-8-3.589-8-8s3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10s10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z" + /> ) } @@ -219,7 +225,7 @@ export function EntypoCreativeCommons(props: SVGProps) { + /> ) } @@ -228,13 +234,13 @@ export function GgCoffee(props: SVGProps) { return ( - + - + /> + ) @@ -246,7 +252,7 @@ export function IonThumbsup(props: SVGProps) { + /> ) } @@ -258,7 +264,7 @@ export function FeHash(props: SVGProps) { fill="currentColor" fillRule="evenodd" d="M10 15h4V9h-4v6Zm0 2v3a1 1 0 0 1-2 0v-3H5a1 1 0 0 1 0-2h3V9H5a1 1 0 1 1 0-2h3V4a1 1 0 1 1 2 0v3h4V4a1 1 0 0 1 2 0v3h3a1 1 0 0 1 0 2h-3v6h3a1 1 0 0 1 0 2h-3v3a1 1 0 0 1-2 0v-3h-4Z" - > + /> ) } @@ -269,7 +275,7 @@ export function MdiCalendar(props: SVGProps) { + /> ) } @@ -280,7 +286,7 @@ export function JamTrash(props: SVGProps) { + /> ) } @@ -293,7 +299,7 @@ export function CodiconGithubInverted(props: SVGProps) { fillRule="evenodd" d="M7.976 0A7.977 7.977 0 0 0 0 7.976c0 3.522 2.3 6.507 5.431 7.584c.392.049.538-.196.538-.392v-1.37c-2.201.49-2.69-1.076-2.69-1.076c-.343-.93-.881-1.175-.881-1.175c-.734-.489.048-.489.048-.489c.783.049 1.224.832 1.224.832c.734 1.223 1.859.88 2.3.685c.048-.538.293-.88.489-1.076c-1.762-.196-3.621-.881-3.621-3.964c0-.88.293-1.566.832-2.153c-.05-.147-.343-.978.098-2.055c0 0 .685-.196 2.201.832c.636-.196 1.322-.245 2.007-.245s1.37.098 2.006.245c1.517-1.027 2.202-.832 2.202-.832c.44 1.077.146 1.908.097 2.104a3.16 3.16 0 0 1 .832 2.153c0 3.083-1.86 3.719-3.62 3.915c.293.244.538.733.538 1.467v2.202c0 .196.146.44.538.392A7.984 7.984 0 0 0 16 7.976C15.951 3.572 12.38 0 7.976 0z" clipRule="evenodd" - > + /> ) } @@ -304,8 +310,8 @@ export function CarbonPassword(props: SVGProps) { - + /> + ) } @@ -316,7 +322,7 @@ export function RiSunCloudyFill(props: SVGProps) { + /> ) } @@ -327,7 +333,7 @@ export function MdiCloud(props: SVGProps) { + /> ) } @@ -338,7 +344,7 @@ export function MdiSnowflake(props: SVGProps) { + /> ) } @@ -349,7 +355,7 @@ export function BiCloudRainFill(props: SVGProps) { + /> ) } @@ -360,7 +366,7 @@ export function BiCloudLightningRainFill(props: SVGProps) { + /> ) } @@ -371,7 +377,7 @@ export function MdiClockTimeThreeOutline(props: SVGProps) { + /> ) } @@ -382,7 +388,7 @@ export function MdiShare(props: SVGProps) { + /> ) } @@ -393,7 +399,7 @@ export function RiNeteaseCloudMusicFill(props: SVGProps) { + /> ) } @@ -404,7 +410,7 @@ export function MdiClockOutline(props: SVGProps) { + /> ) } @@ -416,15 +422,15 @@ export function FluentEyeHide20Regular(props: SVGProps) { + /> + /> + /> ) @@ -442,7 +448,7 @@ export function PhPushPin(props: SVGProps) { + /> ) } @@ -459,7 +465,7 @@ export function PhPushPinFill(props: SVGProps) { + /> ) } @@ -476,7 +482,7 @@ export function PhLinkFill(props: SVGProps) { + /> ) } @@ -495,7 +501,7 @@ export function MaterialSymbolsArrowCircleRightOutlineRounded( + /> ) } @@ -514,7 +520,25 @@ export function BiListNested(props: SVGProps) { fill="currentColor" fillRule="evenodd" d="M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z" - > + /> + + ) +} + +export function LaUserSecret(props: SVGProps) { + return ( + + ) } diff --git a/src/components/widgets/Comment/box.tsx b/src/components/widgets/Comment/box.tsx index 914d7ed96..2c97b279a 100644 --- a/src/components/widgets/Comment/box.tsx +++ b/src/components/widgets/Comment/box.tsx @@ -20,8 +20,8 @@ import isUrl from 'validator/lib/isURL' import { ImpressionView } from '~/components/biz/ImpressionView' import { FloatPopover } from '~/components/universal/FloatPopover' import { + GridiconsNoticeOutline, MdiEmailFastOutline, - MdiLanguageMarkdown, PhUser, SiGlyphGlobal, } from '~/components/universal/Icons' @@ -285,13 +285,17 @@ export const CommentBox: FC<{ triggerComponent={() => ( )} > - 评论支持部分 Markdown 语法 +
+

评论支持部分 Markdown 语法

+

评论可能被移入垃圾箱

+

评论可能需要审核,审核通过后才会显示

+
@@ -332,9 +336,10 @@ const CommentBoxOption = observer<{ commentId?: string; refId: string }>( const { syncToRecently, isWhispers, setConfig } = useContext( CommentSendingContext, ) + const isReply = !!props.commentId return ( <> - {isLogged && !props.commentId && ( + {isLogged && !isReply && (
(
)} - {!isLogged && ( + {!isLogged && !isReply && (
{location && 来自:{location}} + {whispers && }
{content}
    diff --git a/src/components/widgets/Comment/comments.tsx b/src/components/widgets/Comment/comments.tsx index b7218ffd8..bb77ecb91 100644 --- a/src/components/widgets/Comment/comments.tsx +++ b/src/components/widgets/Comment/comments.tsx @@ -192,6 +192,7 @@ const SingleComment: FC<{ id: string }> = observer(({ id, children }) => { }, [comment, comments]) return (