remove legacy code

This commit is contained in:
Your Name 2024-01-07 17:24:34 -05:00 committed by Henri Dickson
parent 2e8d12b5b1
commit 7089e6024c
41 changed files with 43 additions and 46 deletions

View file

@ -16,7 +16,7 @@
{% trans '添加条目' %}
{% endif %}
</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<style>
aside details {
margin-bottom: 1rem;

View file

@ -10,7 +10,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - 编辑历史 {{ item.title }}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<style>
aside details {
margin-bottom: 1rem;

View file

@ -19,7 +19,7 @@
<meta property="og:image" content="{{ site_logo }}">
<meta property="og:site_name" content="{{ site_name }}">
<title>{{ site_name }} - {% trans '发现' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<script src="https://cdn.jsdelivr.net/npm/shikwasa@2.2.1/dist/shikwasa.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/shikwasa@2.2.1/dist/style.min.css"
rel="stylesheet"></link>

View file

@ -14,7 +14,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '搜索结果' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include '_header.html' %}

View file

@ -24,7 +24,7 @@
<meta property="og:description" content="{{ item.brief }}">
{% if item.is_deleted or item.merged_to_item %}<meta name="robots" content="noindex">{% endif %}
<title>{{ site_name }} - {% trans item.category.label %} | {{ item.display_title }}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
{% block head %}{% endblock %}
</head>
<body>

View file

@ -14,7 +14,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {{ item.title }}{% trans '的标记' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include '_header.html' %}

View file

@ -14,7 +14,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {{ item.title }}{% trans '的评论' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include '_header.html' %}

View file

@ -15,7 +15,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '搜索' %} {{ request.GET.q }}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include '_header.html' %}

View file

@ -12,7 +12,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '无效请求' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -12,7 +12,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '权限不符' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -12,7 +12,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '未找到' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -12,7 +12,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '系统错误' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -12,7 +12,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '错误' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
{% if url %}<meta http-equiv="refresh" content="3;url={{ url }}">{% endif %}
</head>
<body>

View file

@ -12,7 +12,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -4,11 +4,7 @@
{% if request.user.is_authenticated %}
{% tz_detect %}
{% endif %}
{% if jquery %}
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.4/dist/jquery.min.js"></script>
{% else %}
<script src="https://cdn.jsdelivr.net/npm/cash-dom@8.1.5/dist/cash.min.js"></script>
{% endif %}
<script src="https://cdn.jsdelivr.net/npm/cash-dom@8.1.5/dist/cash.min.js"></script>
<script type="text/javascript">
if (!$.fn.is_visible) $.fn.is_visible = function () {
return this.filter((_, elt) => (elt.offsetWidth || elt.offsetHeight || elt.getClientRects().length)).length > 0;
@ -21,10 +17,10 @@
return this;
};
</script>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@1.9.6/dist/htmx.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@1.9.10/dist/htmx.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hyperscript.org@0.9.12"></script>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2.0.0-alpha1/css/pico.min.css" />
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2.0.0-rc2/css/pico.min.css" />
<link href="{% sass_src 'scss/neodb.scss' %}"
rel="stylesheet"
type="text/css" />

View file

@ -7,7 +7,7 @@
crossorigin="anonymous"
referrerpolicy="no-referrer" />
<title>{{ api.title }} Developer Console</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<style type="text/css">
.information-container, #operations-tag-default {
display: none;

View file

@ -6,7 +6,7 @@
{% block title %}
{% endblock title %}
<title>{{ site_name }}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<style>
.controls input {
width: unset;

View file

@ -23,7 +23,7 @@
<meta property="og:url" content="{{ request.build_absolute_uri }}">
<meta property="og:image" content="{{ collection.cover|thumb:'normal' }}">
<title>{{ site_name }} {% trans '收藏单' %} - {{ collection.title }}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -10,7 +10,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - 编辑收藏单 - {{ title }}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<script src="https://cdn.staticfile.org/html5sortable/0.13.3/html5sortable.min.js"
crossorigin="anonymous"></script>
<style type="text/css">

View file

@ -10,7 +10,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '确认删除' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -25,7 +25,7 @@
type="application/rss+xml"
title="{{ site_name }} - {{ identity.handler }}的评论"
href="{{ request.build_absolute_uri }}feed/reviews/">
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<script src="{% static 'js/calendar_yearview_blocks.js' %}" defer></script>
<link href="{% static 'css/calendar_yearview_blocks.css' %}"
media="all"

View file

@ -23,7 +23,7 @@
<meta property="og:site_name" content="{{ site_name }}">
{% if not identity.anonymous_viewable %}<meta name="robots" content="noindex">{% endif %}
<title>{{ site_name }}{% trans '评论' %} - {{ review.title }}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -11,7 +11,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {{ item.title }} - {% trans '评论' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<style type="text/css">#id_visibility, #id_visibility li {padding-left:0; margin-bottom:0; display: inline-block !important;}</style>
</head>
<body>

View file

@ -16,7 +16,7 @@
<title>{{ site_name }} - {{ identity.display_name }} -
{% if liked %}喜欢的{% endif %}
收藏单</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -12,7 +12,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% block title %}<title>{{ site_name }} - {{ identity.display_name }}</title>{% endblock %}
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -14,7 +14,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {{ identity.display_name }} 的标签</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create/Update Announcement</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
<div class="container">

View file

@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Delete Announcement</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
<style>

View file

@ -5,7 +5,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<title>{{ site_name }} - {{ object.title }}</title>
</head>
<body>

View file

@ -5,7 +5,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<title>{{ site_name }} - {% trans '公告栏' %}</title>
</head>
<body>

View file

@ -29,6 +29,7 @@ filetype
gunicorn
httpx
igdb-api-v4
langdetect
libsass
listparser
loguru

View file

@ -12,7 +12,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '动态' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<script src="https://cdn.jsdelivr.net/npm/shikwasa@2.2.1/dist/shikwasa.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/shikwasa@2.2.1/dist/style.min.css"
rel="stylesheet"></link>

View file

@ -11,7 +11,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - 账号信息</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" with current="data" %}

View file

@ -11,7 +11,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - 数据管理</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" with current="data" %}

View file

@ -14,7 +14,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '查询用户' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include '_header.html' %}

View file

@ -15,7 +15,7 @@
<meta property="og:site_name" content="{{ site_name }}">
<title>{{ site_name }} - {% trans '登录' %}</title>
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.7/dist/autoComplete.min.js"></script>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
<script src="https://cdn.staticfile.org/js-cookie/3.0.1/js.cookie.min.js"></script>
<script>
$(document).ready(function () {

View file

@ -10,7 +10,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '管理投诉' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -12,7 +12,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - 设置</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" with current="data" %}

View file

@ -6,7 +6,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '注册信息' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
<div class="container">

View file

@ -10,7 +10,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '投诉用户' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
{% include "_header.html" %}

View file

@ -6,7 +6,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ site_name }} - {% trans '验证电子邮件' %}</title>
{% include "common_libs.html" with jquery=0 v2=1 %}
{% include "common_libs.html" %}
</head>
<body>
<div class="container">