Compare commits
13 commits
b0ec90060a
...
0fd4e9d32a
Author | SHA1 | Date | |
---|---|---|---|
0fd4e9d32a | |||
b5fb319fc4 | |||
3d11d03a01 | |||
a5919c8b9a | |||
7b2d835916 | |||
246a96ab7e | |||
00297a761a | |||
e857e58938 | |||
a890cc4a87 | |||
8a9da6ff0c | |||
dcf9e7b4e2 | |||
d2833f6e25 | |||
b42a28d511 |
3 changed files with 82 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -4,6 +4,10 @@
|
|||
/neodb.env
|
||||
/typings
|
||||
/upgrade
|
||||
<<<<<<< HEAD
|
||||
.compose.override.yml
|
||||
=======
|
||||
>>>>>>> b0ec90060ab08edd9f9fc48cd8125e82dedbafd3
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
|
|
@ -93,6 +93,10 @@ x-shared:
|
|||
- ${NEODB_DATA:-../data}/takahe-cache:/www/cache
|
||||
- ${NEODB_DATA:-../data}/www-root:/www/root
|
||||
- ./custom/edition.custom.html:/neodb/catalog/templates/edition.html
|
||||
<<<<<<< HEAD
|
||||
- ./custom/common_libs.custom.html:/neodb/common/templates/common_libs.html
|
||||
=======
|
||||
>>>>>>> b0ec90060ab08edd9f9fc48cd8125e82dedbafd3
|
||||
depends_on:
|
||||
- redis
|
||||
- neodb-db
|
||||
|
|
74
custom/common_libs.custom.html
Normal file
74
custom/common_libs.custom.html
Normal file
|
@ -0,0 +1,74 @@
|
|||
{% load static %}
|
||||
{% load sass_tags %}
|
||||
{% load tz_detect %}
|
||||
{% if request.user.is_authenticated %}
|
||||
{% tz_detect %}
|
||||
{% endif %}
|
||||
<script src="{{ cdn_url }}/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;
|
||||
};
|
||||
if (!$.fn.submit) $.fn.submit = function () {
|
||||
this.each(function () {
|
||||
$(this).trigger('submit');
|
||||
this.submit();
|
||||
});
|
||||
return this;
|
||||
};
|
||||
</script>
|
||||
<script src="{{ cdn_url }}/npm/htmx.org@2.0.4/dist/htmx.min.js"></script>
|
||||
<script src="{{ cdn_url }}/npm/hyperscript.org@0.9.13"></script>
|
||||
<!-- link rel="stylesheet"
|
||||
href="{{ cdn_url }}/npm/@yohns/picocss@2.2.1/css/pico.{{site_color}}.min.css" /-->
|
||||
{% if site_color == 'azure' %}
|
||||
<link rel="stylesheet"
|
||||
href="{{ cdn_url }}/npm/@picocss/pico@2/css/pico.min.css" />
|
||||
{% else %}
|
||||
<link rel="stylesheet"
|
||||
href="{{ cdn_url }}/npm/@picocss/pico@2/css/pico.{{ site_color }}.min.css" />
|
||||
{% endif %}
|
||||
<style>
|
||||
* { border-radius: 0!important; }
|
||||
:where(nav li)::before {
|
||||
float: none;
|
||||
content: " ";
|
||||
}
|
||||
</style>
|
||||
<link href="{% sass_src 'scss/neodb.scss' %}"
|
||||
rel="stylesheet"
|
||||
type="text/css" />
|
||||
<link href="{{ cdn_url }}/npm/@fortawesome/fontawesome-free@6.7.2/css/all.min.css"
|
||||
rel="stylesheet"
|
||||
type="text/css">
|
||||
<link rel="search"
|
||||
type="application/opensearchdescription+xml"
|
||||
title="{{ site_name }}"
|
||||
href="{% static 'opensearch.xml' %}">
|
||||
<script defer>
|
||||
(function(){
|
||||
const s = localStorage.getItem("user_style");
|
||||
if (s) {
|
||||
const style = document.createElement("style");
|
||||
style.innerHTML = s;
|
||||
document.head.appendChild(style);
|
||||
}
|
||||
const solo = localStorage.getItem("solo_mode")=="1";
|
||||
if (solo) {
|
||||
const style = document.createElement("style");
|
||||
style.innerHTML = ".solo-hidden {display: none;}";
|
||||
document.head.appendChild(style);
|
||||
}
|
||||
$('html').attr('data-theme', localStorage.getItem("theme_color")||null)
|
||||
})();
|
||||
</script>
|
||||
<link rel="icon" href="{{ site_icon }}">
|
||||
<link rel="apple-touch-icon" href="{{ site_icon }}">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="{{ site_name }}">
|
||||
{% if request.META.HTTP_HOST == site_domain %}
|
||||
<style type="text/css">.hide_unless_alter_domain{display:none;}</style>
|
||||
{% else %}
|
||||
<meta name="robots" content="noindex">
|
||||
{% endif %}
|
||||
{{ site_head|safe }}
|
Loading…
Add table
Reference in a new issue