Browse Source

feat: show comment position and ip

master 1.8.0
OhYee 8 months ago
parent
commit
3ef17caf68
Signed by: OhYee
GPG Key ID: 5A9E1F63ED274FBB
  1. 2
      components/comment/index.tsx
  2. 2
      pages/admin/comments.tsx
  3. 2
      types/typings.d.ts

2
components/comment/index.tsx

@ -139,6 +139,7 @@ const Editor: React.FC<{ id: string; closeEditorCallback?: () => void }> = (prop @@ -139,6 +139,7 @@ const Editor: React.FC<{ id: string; closeEditorCallback?: () => void }> = (prop
</p>
<p>广</p>
<p> IP </p>
</Card>
}
>
@ -254,6 +255,7 @@ const Comment: React.FC<{ @@ -254,6 +255,7 @@ const Comment: React.FC<{
{time.fromNow()}
</span>
</Tooltip>
<span className={concat(textStyles.secondary, textStyles.em75)}>{comment.position}</span>
</Flex>
<div>
{comment.ad ? (

2
pages/admin/comments.tsx

@ -63,6 +63,8 @@ function Comment( @@ -63,6 +63,8 @@ function Comment(
</span>
</Tooltip>
<span className={concat(textStyles.secondary, textStyles.em75)}>{comment.id}</span>
<span className={concat(textStyles.secondary, textStyles.em75)}>{comment.ip}</span>
<span className={concat(textStyles.secondary, textStyles.em75)}>{comment.position}</span>
</Flex>
{!!comment.reply_comment && comment.reply_comment.id !== '000000000000000000000000' ? (
<div style={{ borderLeft: '#ccc 5px solid', paddingLeft: 10 }}>

2
types/typings.d.ts vendored

@ -104,6 +104,8 @@ declare namespace Blotter { @@ -104,6 +104,8 @@ declare namespace Blotter {
ad: boolean;
show: boolean;
recv: boolean;
ip?: string;
position: string;
}
interface FriendSimple {
link: string;

Loading…
Cancel
Save