update
This commit is contained in:
parent
1e55c44dd2
commit
bb3379771e
Binary file not shown.
Before Width: | Height: | Size: 26 KiB |
BIN
public/icon/kszd56dmyv2phi7ai4apiu4a.jpg
Normal file
BIN
public/icon/kszd56dmyv2phi7ai4apiu4a.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
public/icon/sh44ussaiyxbjasnhorrt4n6.jpg
Normal file
BIN
public/icon/sh44ussaiyxbjasnhorrt4n6.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
12
src/App.vue
12
src/App.vue
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user