fix link
This commit is contained in:
parent
a3b6a1d362
commit
ad97f00fd5
@ -2,8 +2,6 @@
|
||||
<html lang="en">
|
||||
<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">
|
||||
<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 property="og:url" content="https://manga.syui.ai">
|
||||
<meta property="og:title" content="yui">
|
||||
|
14
src/App.vue
14
src/App.vue
@ -1,5 +1,7 @@
|
||||
<template>
|
||||
<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">
|
||||
<slide v-for="(n,index) of products" :key="n">
|
||||
<div v-if="loading" class="loading">
|
||||
@ -65,7 +67,8 @@
|
||||
<div class="bsky_comment" v-else>
|
||||
<span v-for="i in api_json.data" class="comment">
|
||||
<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>
|
||||
</p>
|
||||
</span>
|
||||
@ -112,6 +115,7 @@ import {
|
||||
import 'hooper/dist/hooper.css';
|
||||
import axios from 'axios'
|
||||
import moment from "moment";
|
||||
import fs from 'fs';
|
||||
|
||||
var page = 21;
|
||||
var loc = window.location.pathname.split('/').slice(-1)[0];
|
||||
@ -138,6 +142,8 @@ export default {
|
||||
comment_open: false,
|
||||
comment_first: null,
|
||||
loading: true,
|
||||
f: null,
|
||||
url_check: true,
|
||||
url: "/",
|
||||
s_a: 0,
|
||||
s_b: 2,
|
||||
@ -162,6 +168,12 @@ export default {
|
||||
},
|
||||
load() {
|
||||
this.loading = false;
|
||||
},
|
||||
axios_check(url) {
|
||||
axios.get(url)
|
||||
.catch(error => {
|
||||
this.url_check = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
Loading…
Reference in New Issue
Block a user