forked from doubaniux/boofilsic
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b01c85
commit 431d5dc
Showing
12 changed files
with
26 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,8 @@ | |
<meta property="og:site_name" content="{{ site_name }}"> | ||
<title>{{ site_name }} - {% trans '发现' %}</title> | ||
{% include "common_libs.html" %} | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/shikwasa.min.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style.min.css" | ||
<script src="{{ cdn_url }}/npm/[email protected]/dist/shikwasa.min.js"></script> | ||
<link href="{{ cdn_url }}/npm/[email protected]/dist/style.min.css" | ||
rel="stylesheet"></link> | ||
<script src="{% static 'js/podcast.js' %}"></script> | ||
</head> | ||
|
@@ -101,7 +101,7 @@ <h5>{{ gallery.title }}</h5> | |
<input type="hidden" name="name" value="discover"> | ||
<input type="hidden" name="layout"> | ||
</form> | ||
<script src="https://cdn.staticfile.org/html5sortable/0.13.3/html5sortable.min.js" | ||
<script src="{{ cdn_url }}/npm/html5sortable@0.13.3/dist/html5sortable.min.js" | ||
crossorigin="anonymous"></script> | ||
<script src="{% static 'js/sort_layout.js' %}"></script> | ||
{{ layout|json_script:"layout-data" }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ | |
{% load strip_scheme %} | ||
{% load thumb %} | ||
{% block head %} | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/shikwasa.min.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style.min.css" | ||
<script src="{{ cdn_url }}/npm/[email protected]/dist/shikwasa.min.js"></script> | ||
<link href="{{ cdn_url }}/npm/[email protected]/dist/style.min.css" | ||
rel="stylesheet"></link> | ||
<style> | ||
.shk-player { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,8 @@ | |
{% load strip_scheme %} | ||
{% load thumb %} | ||
{% block head %} | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/shikwasa.min.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style.min.css" | ||
<script src="{{ cdn_url }}/npm/[email protected]/dist/shikwasa.min.js"></script> | ||
<link href="{{ cdn_url }}/npm/[email protected]/dist/style.min.css" | ||
rel="stylesheet"></link> | ||
<script src="{% static 'js/podcast.js' %}"></script> | ||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
{% if request.user.is_authenticated %} | ||
{% tz_detect %} | ||
{% endif %} | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cash.min.js"></script> | ||
<script src="{{ cdn_url }}/npm/[email protected]/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; | ||
|
@@ -17,14 +17,14 @@ | |
return this; | ||
}; | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].10/dist/htmx.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="{{ cdn_url }}/npm/[email protected].11/dist/htmx.min.js"></script> | ||
<script src="{{ cdn_url }}/npm/[email protected]"></script> | ||
<link rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css" /> | ||
href="{{ cdn_url }}/npm/@picocss/pico@2/css/pico.min.css" /> | ||
<link href="{% sass_src 'scss/neodb.scss' %}" | ||
rel="stylesheet" | ||
type="text/css" /> | ||
<link href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected].1/css/all.min.css" | ||
<link href="{{ cdn_url }}/npm/@fortawesome/[email protected].2/css/all.min.css" | ||
rel="stylesheet" | ||
type="text/css"> | ||
<link rel="search" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,7 @@ | |
<html lang="en"> | ||
<head> | ||
<link rel="stylesheet" | ||
href="https://unpkg.com/[email protected]/swagger-ui.css" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer" /> | ||
href="{{ cdn_url }}/npm/[email protected]/swagger-ui.min.css"> | ||
<title>{{ api.title }} Developer Console</title> | ||
{% include "common_libs.html" %} | ||
<style type="text/css"> | ||
|
@@ -92,9 +90,7 @@ <h3> | |
more endpoints can be found in API Documentation below. | ||
</details> | ||
<div id="swagger-ui" data-theme="light"></div> | ||
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" | ||
crossorigin="anonymous" | ||
referrerpolicy="no-referrer"></script> | ||
<script src="{{ cdn_url }}/npm/[email protected]/swagger-ui-bundle.min.js"></script> | ||
<script> | ||
const ui = SwaggerUIBundle({ | ||
url: '{{ openapi_json_url }}', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,7 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{{ site_name }} - 编辑收藏单 - {{ title }}</title> | ||
{% include "common_libs.html" %} | ||
<script src="https://cdn.staticfile.org/html5sortable/0.13.3/html5sortable.min.js" | ||
crossorigin="anonymous"></script> | ||
<script src="{{ cdn_url }}/npm/[email protected]/dist/html5sortable.min.js"></script> | ||
<style type="text/css"> | ||
#id_collaborative li, #id_visibility li {display: inline-block !important;} | ||
.grid__main details { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,8 +223,7 @@ <h5> | |
<input type="hidden" name="name" value="profile"> | ||
<input type="hidden" name="layout"> | ||
</form> | ||
<script src="https://cdn.staticfile.org/html5sortable/0.13.3/html5sortable.min.js" | ||
crossorigin="anonymous"></script> | ||
<script src="{{ cdn_url }}/npm/[email protected]/dist/html5sortable.min.js"></script> | ||
<script src="{% static 'js/sort_layout.js' %}"></script> | ||
{% endif %} | ||
{{ layout|json_script:"layout-data" }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,9 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{{ site_name }} - {{ identity.display_name }} - {{ year }} 年度统计</title> | ||
{% include "common_libs.html" %} | ||
{% comment %} <script src="https://unpkg.com/[email protected]"></script> {% endcomment %} | ||
{% comment %} <script src="{{ cdn_url }}/npm/[email protected]/dist/roughviz.umd.min.js"></script> {% endcomment %} | ||
<script src="{% static 'js/roughviz.umd.js' %}"></script> | ||
{% comment %} <script src="{% static 'js/saveSvgAsPng.js' %}"></script> {% endcomment %} | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/saveSvgAsPng.min.js"></script> | ||
<script src="{{ cdn_url }}/npm/[email protected]/lib/saveSvgAsPng.min.js"></script> | ||
<style> | ||
.yAxisviz0, .rough-yAxisviz0 { | ||
display: none; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>{{ site_name }} - {% trans '动态' %}</title> | ||
{% include "common_libs.html" %} | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/shikwasa.min.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style.min.css" | ||
<script src="{{ cdn_url }}/npm/[email protected]/dist/shikwasa.min.js"></script> | ||
<link href="{{ cdn_url }}/npm/[email protected]/dist/style.min.css" | ||
rel="stylesheet"></link> | ||
<script src="{% static 'js/podcast.js' %}"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,9 @@ | |
<meta property="og:image" content="{{ site_logo }}"> | ||
<meta property="og:site_name" content="{{ site_name }}"> | ||
<title>{{ site_name }} - {% trans '登录' %}</title> | ||
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected]/dist/autoComplete.min.js"></script> | ||
{% include "common_libs.html" %} | ||
<script src="https://cdn.staticfile.org/js-cookie/3.0.1/js.cookie.min.js"></script> | ||
<script src="{{ cdn_url }}/npm/@tarekraafat/[email protected]/dist/autoComplete.min.js"></script> | ||
<script src="{{ cdn_url }}/npm/[email protected]/dist/js.cookie.min.js"></script> | ||
<script> | ||
$(document).ready(function () { | ||
if (!window.htmx || !window._hyperscript) return; // disable login if cash, htmx or hyperscript not loaded | ||
|