app/src/main/assets/topic_light.html

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>话题</title>
    <link type="text/css" rel="stylesheet" href="css/topic_light.css">
    <link type="text/css" rel="stylesheet" href="css/markdown_light.css">
</head>
<body>

<div id="page">
    <div v-if="topic.id">
        <div class="header">
            <img class="tab-good" src="img/tab_ic_good.png" v-if="topic.good">
            <h1 class="title text-primary">
                {{topic.title}}
            </h1>
            <div class="top-container">
                <table>
                    <tr>
                        <td class="left">
                            <img class="avatar" v-bind:src="topic.author.avatar_url | avatarCompat" v-on:click="openUser(topic.author.loginname)">
                        </td>
                        <td class="center">
                            <div class="line1">
                                <span v-bind:class="{'tag-accent': topic.top, 'tag-normal': !topic.top}">{{topic | tabName}}</span>
                                <span class="loginname text-primary">{{topic.author.loginname}}</span>
                            </div>
                            <div class="line2">
                                <span class="create-time text-secondary">{{topic.create_at | relativeTimeSpan}}创建</span>
                                <span class="dot text-secondary">•</span>
                                <span class="visit-count text-secondary">{{topic.visit_count}}次浏览</span>
                            </div>
                        </td>
                        <td class="right">
                            <img class="icon-button" v-bind:src="topic.is_collect ? 'img/ic_favorite_theme_24px.svg' : 'img/ic_favorite_outline_grey_24px.svg'" v-on:click="collectTopic(topic)">
                        </td>
                    </tr>
                </table>
            </div>
            <div class="markdown-container" v-on:click="openImageProxy($event)">
                {{{topic.content_html}}}
            </div>
        </div>
        <div class="item-gap"></div>
        <div class="list">
            <div v-if="topic.replies.length <= 0">
                <div class="no-reply text-secondary">
                    暂无回复
                </div>
            </div>
            <div v-if="topic.replies.length > 0">
                <div class="reply-count text-primary">
                    {{topic.replies.length}}条回复
                </div>
                <div class="deep-line"></div>
                <div class="cell" v-for="(position, reply) of topic.replies">
                    <div class="main">
                        <div class="top-container">
后面还有 47 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。