1
0
This commit is contained in:
syui 2024-04-25 21:21:58 +09:00
parent 1e55c44dd2
commit bb3379771e
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
4 changed files with 4 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View File

@ -1,16 +1,10 @@
<template>
<div id="app">
<div class="bsky_comment" v-if="cid_root">
<span v-for="i in api_json.data" class="comment">
<span v-for="i in api_json_record" class="comment">
<p class="comment-body" v-if="i.cid_root == cid_root">
<span v-if="i.did.replace('did:plc:', '') != ''">
{{ axios_check('/icon/' + i.did.replace('did:plc:', '') + '.jpg') }}
</span>
<span v-if="url_check == true && i.did.replace('did:plc:', '') != ''">
<img :src="'/icon/' + i.did.replace('did:plc:', '') + '.jpg'" class="comment"/>
</span>
<span v-else-if="i.avatar">
<img :src="i.avatar" class="comment"/>
<img :src="'https://git.syui.ai/ai/comment/raw/branch/main/public/icon/' + i.did.replace('did:plc:', '') + '.jpg'" class="comment"/>
</span>
<span class="comment-time" v-if="i.updated_at"><a :href="i.bsky_url" v-if="i.bsky_url">{{ moment(i.updated_at) }}</a></span> <span class="comment-handle" v-if="i.handle"><a :href="'https://' + i.bsky_url.split('/').slice(2,5).join('/')" v-if="i.bsky_url">@{{ i.handle.replace('.bsky.social', '') }}</a></span>
<span class="comment-text" v-if="i.text">{{ i.text }}</span>
@ -56,6 +50,7 @@ export default {
bsky_json: null,
api_url: null,
api_json: null,
api_json_record: null,
cid_root: null,
uri_root: null,
comment_open: false,
@ -107,6 +102,7 @@ export default {
response => {this.api_json = response
this.cid_root = this.api_json.data.find((v) => v.blog_url == loc).cid;
this.uri_root = this.api_json.data.find((v) => v.blog_url == loc).uri;
this.api_json_record = this.api_json.data.filter((v) => v.cid_root == this.cid_root);
}
);
}