feat: add reactions, bookmarks, polls modules with session remember config

Add three new feature modules (reactions, bookmarks, polls) with corresponding database tables, indexes, and router registrations. Introduce `SESSION_MAX_AGE_REMEMBER` config for extended session duration, add `get_unread_messages` template global, and include operational defaults for rate limiting and session settings in `site_settings`.
This commit is contained in:
2026-06-06 14:31:42 +00:00
parent b4e09f4b37
commit 921e382cbc
79 changed files with 2431 additions and 185 deletions
+19 -3
View File
@@ -147,6 +147,22 @@
<div class="profile-content">
<a href="/feed" class="back-link">&larr; Back</a>
<div class="profile-heatmap-card">
<div class="heatmap-header">
<h3 class="heatmap-title">Contributions</h3>
<span class="streak-info"><span class="icon">&#x1F525;</span> {{ streak.current }} day streak &middot; Longest {{ streak.longest }}</span>
</div>
<div class="heatmap-grid">
{% for week in heatmap %}
<div class="heatmap-week">
{% for day in week %}
<span class="heatmap-cell level-{{ day.level }}" title="{{ day.count }} on {{ day.date }}"></span>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
<div class="profile-tabs">
<a href="/profile/{{ profile_user['username'] }}?tab=posts" class="profile-tab {% if current_tab == 'posts' %}active{% endif %}"><span class="icon">&#x1F4DD;</span> Posts</a>
<a href="/profile/{{ profile_user['username'] }}?tab=projects" class="profile-tab {% if current_tab == 'projects' %}active{% endif %}"><span class="icon">&#x1F680;</span> Projects</a>
@@ -164,7 +180,7 @@
{% endfor %}
{% elif current_tab == 'projects' %}
{% for p in projects %}
<a href="/projects/{{ p['slug'] or p['uid'] }}" class="project-card fade-in">
<a href="/projects/{{ p['slug'] or p['uid'] }}" class="project-card">
<div class="project-card-header">
<h3 class="project-card-title">{{ p['title'] }}</h3>
</div>
@@ -189,7 +205,7 @@
{% elif current_tab == 'gists' %}
{% for entry in gists %}
{% set g = entry.gist %}
<a href="/gists/{{ g['slug'] or g['uid'] }}" class="gist-card fade-in">
<a href="/gists/{{ g['slug'] or g['uid'] }}" class="gist-card">
<div class="gist-card-header">
<h3 class="gist-card-title">{{ g['title'] }}</h3>
<span class="gist-card-star">&#x2606; {{ g.get('stars', 0) }}</span>
@@ -209,7 +225,7 @@
{% endfor %}
{% else %}
{% for act in activities %}
<div class="post-card fade-in activity-card">
<div class="post-card activity-card">
<div class="activity-row">
<span class="activity-icon">
{% if act['type'] == 'post' %}&#x1F4DD;{% else %}&#x1F4AC;{% endif %}