1
0
This commit is contained in:
syui 2024-04-03 07:31:52 +09:00
parent a3b6a1d362
commit ad97f00fd5
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 13 additions and 3 deletions

View File

@ -2,8 +2,6 @@
<html lang="en"> <html lang="en">
<head> <head>
<title>yui | manga</title><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="app.css" rel="preload" as="style"><link href="app.js" rel="preload" as="script"><link href="chunk-vendors.js" rel="preload" as="script"><link href="app.css" rel="stylesheet"> <title>yui | manga</title><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="app.css" rel="preload" as="style"><link href="app.js" rel="preload" as="script"><link href="chunk-vendors.js" rel="preload" as="script"><link href="app.css" rel="stylesheet">
<link rel="stylesheet" href="https://yui.syui.ai/bower_components/icomoon/css/icomoon.css" />
<link rel="stylesheet" href="https://yui.syui.ai/bower_components/font-awesome/css/all.min.css" />
<meta name="twitter:card" content="summary"> <meta name="twitter:card" content="summary">
<meta property="og:url" content="https://manga.syui.ai"> <meta property="og:url" content="https://manga.syui.ai">
<meta property="og:title" content="yui"> <meta property="og:title" content="yui">

View File

@ -1,5 +1,7 @@
<template> <template>
<div id="app"> <div id="app">
<link rel="stylesheet" href="https://yui.syui.ai/bower_components/icomoon/css/icomoon.css" />
<link rel="stylesheet" href="https://yui.syui.ai/bower_components/font-awesome/css/all.min.css" />
<hooper :settings="hooperSettings"> <hooper :settings="hooperSettings">
<slide v-for="(n,index) of products" :key="n"> <slide v-for="(n,index) of products" :key="n">
<div v-if="loading" class="loading"> <div v-if="loading" class="loading">
@ -65,7 +67,8 @@
<div class="bsky_comment" v-else> <div class="bsky_comment" v-else>
<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.text"> <p class="comment-body" v-if="i.text">
<img :src="'/icon/' + i.did.replace('did:plc:', '') + '.jpg'" v-if="i.avatar" class="comment"/> <span class="comment-time" v-if="i.handle">{{ moment(i.updated_at) }}</span> <span class="comment-handle" v-if="i.handle"><a :href="i.bsky_url">@{{ i.handle }}</a></span> {{ 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.handle">{{ moment(i.updated_at) }}</span> <span class="comment-handle" v-if="i.handle"><a :href="i.bsky_url">@{{ i.handle }}</a></span>
<span class="comment-text">{{ i.text }}</span> <span class="comment-text">{{ i.text }}</span>
</p> </p>
</span> </span>
@ -112,6 +115,7 @@ import {
import 'hooper/dist/hooper.css'; import 'hooper/dist/hooper.css';
import axios from 'axios' import axios from 'axios'
import moment from "moment"; import moment from "moment";
import fs from 'fs';
var page = 21; var page = 21;
var loc = window.location.pathname.split('/').slice(-1)[0]; var loc = window.location.pathname.split('/').slice(-1)[0];
@ -138,6 +142,8 @@ export default {
comment_open: false, comment_open: false,
comment_first: null, comment_first: null,
loading: true, loading: true,
f: null,
url_check: true,
url: "/", url: "/",
s_a: 0, s_a: 0,
s_b: 2, s_b: 2,
@ -162,6 +168,12 @@ export default {
}, },
load() { load() {
this.loading = false; this.loading = false;
},
axios_check(url) {
axios.get(url)
.catch(error => {
this.url_check = false;
});
} }
}, },
mounted() { mounted() {