1
0
This commit is contained in:
syui 2024-04-06 03:52:05 +09:00
parent bdf845ba6f
commit e67df62a38
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -59,25 +59,29 @@
<div class="comment" v-if="loc === ''"> <div class="comment" v-if="loc === ''">
<div class="bsky_comment" v-if="comment_open == false"> <div class="bsky_comment" v-if="comment_open == false">
<span class="comment"> <span class="comment">
<p class="comment-body" v-if="comment_first"> <p class="comment-body" v-if="comment_first">
<img :src="'https://git.syui.ai/ai/manga/raw/branch/main/public/icon/' + comment_first.did.replace('did:plc:', '') + '.jpg'" v-if="comment_first.avatar" class="comment"/> <span class="comment-time" v-if="comment_first.updated_at"><a :href="comment_first.bsky_url" v-if="comment_first.bsky_url">{{ moment(comment_first.updated_at) }}</a></span> <span class="comment-handle" v-if="comment_first.handle"><a :href="'https://' + comment_first.bsky_url.split('/').slice(2,5).join('/')" v-if="comment_first.bsky_url">@{{ comment_first.handle }}</a></span> <img :src="'/icon/' + comment_first.did.replace('did:plc:', '') + '.jpg'" v-if="comment_first.avatar" class="comment"/> <span class="comment-time" v-if="comment_first.updated_at"><a :href="comment_first.bsky_url" v-if="comment_first.bsky_url">{{ moment(comment_first.updated_at) }}</a></span> <span class="comment-handle" v-if="comment_first.handle"><a :href="'https://' + comment_first.bsky_url.split('/').slice(2,5).join('/')" v-if="comment_first.bsky_url">@{{ comment_first.handle }}</a></span>
<span class="comment-text" v-if="comment_first.text">{{ comment_first.text }}</span> <span class="comment-text" v-if="comment_first.text">{{ comment_first.text }}</span>
</p> </p>
</span> </span>
<div class="comment_open">
<div class="comment_open" v-if="comment_first">
<p> <p>
<a :href="comment_first.bsky_url" target="_blank">post</a> <a :href="comment_first.bsky_url" target="_blank" v-if="comment_first.bsky_url">post</a>
</p> </p>
<p> <p>
<button class="comment_open" v-on:click="comment_open = !comment_open"><i class="fa-solid fa-chevron-down"></i></button> <button class="comment_open" v-on:click="comment_open = !comment_open"><i class="fa-solid fa-chevron-down"></i></button>
</p> </p>
</div> </div>
</div> </div>
<div class="bsky_comment" v-else>
<div class="bsky_comment" v-else-if="api_json">
<span v-for="i in api_json.data" class="comment"> <span v-for="i in api_json.data" class="comment">
<p class="comment-body" v-if="i"> <p class="comment-body" v-if="i">
{{ axios_check('https://git.syui.ai/ai/manga/raw/branch/main/public/icon/' + i.did.replace('did:plc:', '') + '.jpg') }} {{ axios_check('/icon/' + i.did.replace('did:plc:', '') + '.jpg') }}
<img :src="'/icon/' + i.did.replace('did:plc:', '') + '.jpg'" v-if="url_check" class="comment"/><img :src="i.avatar" v-else-if="i.avatar" class="comment"/> <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> <img :src="'/icon/' + i.did.replace('did:plc:', '') + '.jpg'" v-if="url_check" class="comment"/><img :src="i.avatar" v-else-if="i.avatar" class="comment"/> <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> <span class="comment-text" v-if="i.text">{{ i.text }}</span>
</p> </p>
@ -140,7 +144,6 @@ export default {
bsky_cursor: null, bsky_cursor: null,
bsky_cid: "", bsky_cid: "",
bsky_json: null, bsky_json: null,
bsky_url: null,
api_url: null, api_url: null,
api_json: null, api_json: null,
comment_open: false, comment_open: false,