Compare commits

...

13 commits

Author SHA1 Message Date
0fd4e9d32a
update
Some checks are pending
code check / lint (3.12) (push) Waiting to run
code check / type-checker (3.12) (push) Waiting to run
Mirror to Codeberg / to_codeberg (push) Waiting to run
unit test / django (3.12) (push) Waiting to run
2025-03-10 15:36:59 +01:00
b5fb319fc4
get rid of stupid rounded corners 2025-03-10 15:34:46 +01:00
3d11d03a01
Merge branch 'main' of https://github.com/neodb-social/neodb 2025-03-10 10:33:38 +01:00
a5919c8b9a
disable filter
Some checks are pending
code check / doc (3.12) (push) Waiting to run
code check / lint (3.12) (push) Waiting to run
code check / type-checker (3.12) (push) Waiting to run
Mirror to Codeberg / to_codeberg (push) Waiting to run
unit test / django (3.12) (push) Waiting to run
2025-03-08 20:40:23 +01:00
7b2d835916
typo 2025-03-08 20:40:23 +01:00
246a96ab7e
fix typo 2025-03-08 20:40:22 +01:00
00297a761a
add libgen+li source to shadow libraries 2025-03-08 20:40:22 +01:00
e857e58938
only let registered user see dufs.itmens link 2025-03-08 20:40:22 +01:00
a890cc4a87
fix stupid typos 2025-03-08 20:40:21 +01:00
8a9da6ff0c
revert mathjax script 2025-03-08 20:40:21 +01:00
dcf9e7b4e2
use compose.override.yml instead of the original one 2025-03-08 20:40:21 +01:00
d2833f6e25
let compose.yml use the custom template 2025-03-08 20:40:20 +01:00
b42a28d511
custom template for books that add shadow library links 2025-03-08 20:40:20 +01:00
3 changed files with 82 additions and 0 deletions

4
.gitignore vendored
View file

@ -4,6 +4,10 @@
/neodb.env
/typings
/upgrade
<<<<<<< HEAD
.compose.override.yml
=======
>>>>>>> b0ec90060ab08edd9f9fc48cd8125e82dedbafd3
# Byte-compiled / optimized / DLL files
__pycache__/

View file

@ -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

View 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 }}