mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-05-21 05:25:45 +08:00
🚸 添加AIGC相关注释
This commit is contained in:
15
src/types/BBS/Post.d.ts
vendored
15
src/types/BBS/Post.d.ts
vendored
@@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* 帖子类型定义文件
|
* 帖子类型定义文件
|
||||||
* @since Beta v0.8.4
|
* @since Beta v0.8.6
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare namespace TGApp.BBS.Post {
|
declare namespace TGApp.BBS.Post {
|
||||||
@@ -348,11 +348,13 @@ declare namespace TGApp.BBS.Post {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 帖子额外信息
|
* 帖子额外信息
|
||||||
* @since Beta v0.8.4
|
* @since Beta v0.8.6
|
||||||
*/
|
*/
|
||||||
type PostExtra = {
|
type PostExtra = {
|
||||||
/** UGC 主帖子额外信息 */
|
/** UGC 主帖子额外信息 */
|
||||||
ugc_master_post_extra: PostExtraUgc;
|
ugc_master_post_extra: PostExtraUgc;
|
||||||
|
/** AIGC 额外信息 */
|
||||||
|
minos_aigc_info: PostExtraAigc | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -366,6 +368,15 @@ declare namespace TGApp.BBS.Post {
|
|||||||
game_region: string;
|
game_region: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AIGC 额外信息
|
||||||
|
* @since Beta v0.8.6
|
||||||
|
*/
|
||||||
|
type PostExtraAigc = {
|
||||||
|
/** 是否包含 AI 生成内容 */
|
||||||
|
is_aigc: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AI 生成内容元数据
|
* AI 生成内容元数据
|
||||||
* @since Beta v0.8.4
|
* @since Beta v0.8.4
|
||||||
|
|||||||
@@ -108,6 +108,10 @@
|
|||||||
<v-icon size="16">mdi-copyright</v-icon>
|
<v-icon size="16">mdi-copyright</v-icon>
|
||||||
<span>{{ getRepublishAuthorization(postData.post.republish_authorization) }}</span>
|
<span>{{ getRepublishAuthorization(postData.post.republish_authorization) }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
<span v-if="postData.post.post_extra?.minos_aigc_info?.is_aigc" class="tp-post-aigc">
|
||||||
|
<v-icon size="16">mdi-robot</v-icon>
|
||||||
|
<span>疑似含AI生成内容,请谨慎甄别</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<TpParser v-model:data="renderPost" />
|
<TpParser v-model:data="renderPost" />
|
||||||
</div>
|
</div>
|
||||||
@@ -490,7 +494,8 @@ function handleUser(user: TGApp.BBS.Post.User): void {
|
|||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tp-post-copyright {
|
.tp-post-copyright,
|
||||||
|
.tp-post-aigc {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user