From 25895da9bd724351123f89d7164fb224b748645c Mon Sep 17 00:00:00 2001 From: Tdxdxoz Date: Sat, 15 Jan 2022 16:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BAemoji=EF=BC=8C=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81gif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 22 +- templates/list.html | 493 -------------------------------------------- 2 files changed, 18 insertions(+), 497 deletions(-) delete mode 100644 templates/list.html diff --git a/static/index.html b/static/index.html index 3ec9c81..ac4caa9 100644 --- a/static/index.html +++ b/static/index.html @@ -149,6 +149,10 @@ margin: 10px auto; } + .emoji { + width: 48px; + vertical-align: bottom; + } #statuses-list .invisible { font-size: 0; line-height: 0; @@ -161,7 +165,6 @@ #statuses-list .ellipsis::after { content: "..."; } - @@ -242,6 +245,17 @@ }); } + + function render_content(text, is_mask_bot, emojis) { + if (is_mask_bot) { + text = text.replace(/^

\[([^\]]*)\]:
/, '

').replace(/匿了<\/p><\/div>$/, '

'); + } + emojis.forEach((emoji) => { + text = text.replaceAll(`:${emoji.shortcode}:`, ``); + }); + return text; + } + function make_status_box_html(status) { return (`
@@ -254,8 +268,7 @@ ${status.reblog && (status = status.reblog) && ` 转发 @${status.account.acct}` || ''}
- ${status.account.acct === "mask_bot" ? - status.content.replace(/^

\[([^\]]*)\]:
/, '

') : status.content} + ${render_content(status.content, status.account.acct === "mask_bot", status.emojis)}

${status.media_attachments.map((media) => { switch (media.type) { @@ -263,6 +276,8 @@ return ``; case 'video': return ``; + case 'gifv': + return ``; default: return ''; } @@ -422,7 +437,6 @@ $('.grey_theme').click((e) => { $('body').toggleClass("grey"); }); - }); diff --git a/templates/list.html b/templates/list.html deleted file mode 100644 index 1c2ba99..0000000 --- a/templates/list.html +++ /dev/null @@ -1,493 +0,0 @@ - - - - - - - - - - - - - 华清大学特普通奖 报名页面 - - - - - -
-
- -
- - -
- {% if not verified %} -
-

提名阶段已经结束,不过完成简易验证后,你依然可以于此畅所欲言或加入评委群。

-
- {% for v in vs %} -
- -
- -
-
- {% endfor %} - -
- {% else %} - -
-
-
-

自荐提名

- -
- -
-
- -
- -
-
- -
-
- -
-
    -
  • 如需附上补充材料,请使用清华云盘。为了避免泄露姓名推荐使用safeShare。其他云盘是不被接受的。
  • -
  • 需要回答几个简单的问题以初步验证学生身份,入围后的线上答辩环节将于闭社平台进行(需清华邮箱注册)以正式验证身份。
  • -
  • 获得五个赞并留下联系方式(如微信号、手机号或邮箱)者被视为正式提名,会有工作人员与之联系并发放奖品。
  • -
  • 点击倒三角按钮展开评论,发布评论请前往闭社
  • -
  • 如需删除报名,请联系工作人员(微信:ordinary_thuer)。
  • -
-
- -
- -
-
-
-

成为评委

-
-

为了更好地选出十位普通人的代表,为了更好地展现大众的声音,我们希望招募更多的评委。

-

成为评委的条件:

-
    -
  • 是华清大学在读学生
  • -
  • 没有报名参选
  • -
  • 愿意对报名者进行评分
  • -
-

我们原则上不拒绝任何的评委报名。

-

目前在三个平台上建了三个评委群,分别是闭聊(Matrix),Telegram,微信。前两个消息自动同步,加入哪个都是等价的,微信群与另外两个群不连通。(注意Telegram墙内不可直接访问。闭聊由闭社提供,使用闭社帐号登陆,如使用其他服务器上的Matrix帐号加群需要验证华清身份。)

-

选择想加入的群,完成验证,进入评委群。如果不愿意加群,也可以私信主办方保持沟通和上传打分结果。

-
- -
-
- - -
-
- - -
-
- - -
-
- -
-
-
- {% endif %} -
- -
-
-

已有报名

- - {% if final_list %} - 全部 | 仅入围 - {% else %} - 全部 | 仅入围 - {% endif %} -
- {% if sort_by == 'likeNum' %} - 按时间 | 按赞数 - {% else %} - 按时间 | 按赞数 - {% endif %} -
-
- {% for c in pagination.items %} -
- No. {{c.id}} -
{{c.content}}
- {% if showPrivate %} -
-
{{c.private}}
-
- {% endif %} - {% if c.url %} -

补充材料

- {% endif %} - -
-
- 加载中... -
-
-
- {% endfor %} - - - -
- -
- - - - - - - - - - -