feat: bulk actions API

This commit is contained in:
Markos Gogoulos
2025-08-07 13:21:12 +03:00
committed by GitHub
parent de99d84c18
commit e790795bfd
69 changed files with 3879 additions and 2689 deletions

View File

@@ -129,7 +129,7 @@
{% endblock innercontent %}
{% block bottomimports %}
<script src="{% static "js/add-media.js" %}"></script>
<script src="{% static "js/add-media.js" %}?v={{ VERSION }}"></script>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
function getCSRFToken() {

View File

@@ -41,5 +41,5 @@
{% block content %}<div id="page-categories"></div>{% endblock %}
{% block bottomimports %}
<script src="{% static "js/categories.js" %}"></script>
<script src="{% static "js/categories.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -9,5 +9,5 @@
{% block content %}<div id="page-embed"></div>{% endblock content %}
{% block bottomimports %}
<script src="{% static "js/embed.js" %}"></script>
<script src="{% static "js/embed.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -43,5 +43,5 @@
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/featured.js" %}"></script>
<script src="{% static "js/featured.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -13,5 +13,5 @@
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/history.js" %}"></script>
<script src="{% static "js/history.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -48,5 +48,5 @@
{% block content %}<div id="page-home"></div>{% endblock %}
{% block bottomimports %}
<script src="{% static "js/index.js" %}"></script>
<script src="{% static "js/index.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -43,5 +43,5 @@
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/latest.js" %}"></script>
<script src="{% static "js/latest.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -13,5 +13,5 @@
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/liked.js" %}"></script>
<script src="{% static "js/liked.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -14,5 +14,5 @@
{% block content %}<div id="page-manage-comments"></div>{% endblock %}
{% block bottomimports %}
<script src="{% static "js/manage-comments.js" %}"></script>
<script src="{% static "js/manage-comments.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -19,6 +19,6 @@ window.CATEGORIES = {{ categories|safe }};
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/manage-media.js" %}"></script>
<script src="{% static "js/manage-media.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -14,5 +14,5 @@
{% block content %}<div id="page-manage-users"></div>{% endblock %}
{% block bottomimports %}
<script src="{% static "js/manage-users.js" %}"></script>
<script src="{% static "js/manage-users.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -129,5 +129,5 @@
{% block content %}<div id="page-media"></div>{% endblock content %}
{% block bottomimports %}
<script src="{% static "js/media.js" %}"></script>
<script src="{% static "js/media.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -41,5 +41,5 @@
{% block content %}<div id="page-members"></div>{% endblock %}
{% block bottomimports %}
<script src="{% static "js/members.js" %}"></script>
<script src="{% static "js/members.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -13,5 +13,5 @@
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/playlist.js" %}"></script>
<script src="{% static "js/playlist.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -43,5 +43,5 @@
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/recommended.js" %}"></script>
<script src="{% static "js/recommended.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -6,5 +6,5 @@
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/search.js" %}"></script>
<script src="{% static "js/search.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -41,5 +41,5 @@
{% block content %}<div id="page-tags"></div>{% endblock %}
{% block bottomimports %}
<script src="{% static "js/tags.js" %}"></script>
<script src="{% static "js/tags.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -29,5 +29,5 @@ No such user
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/profile-media.js" %}"></script>
<script src="{% static "js/profile-media.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -29,5 +29,5 @@ No such user
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/profile-about.js" %}"></script>
<script src="{% static "js/profile-about.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -29,5 +29,5 @@ No such user
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/profile-playlists.js" %}"></script>
<script src="{% static "js/profile-playlists.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -0,0 +1,37 @@
{% extends "base.html" %}
{% load static %}
{% block headtitle %}{% if user.name %}{{user.name}} - {% endif %}{{PORTAL_NAME}}{% endblock headtitle %}
{% block headermeta %}
<meta property="og:title" content="{% if user.name %}{{user.name}} - {% endif %}{{PORTAL_NAME}}">
<meta property="og:type" content="website">
<meta property="og:description" content="">
<meta name="twitter:card" content="summary">
{% endblock headermeta %}
{% block topimports %}
{% load static %}
<link href="{% static "css/profile-media.css" %}?v={{ VERSION }}" rel="preload" as="style">
<link href="{% static "css/profile-media.css" %}?v={{ VERSION }}" rel="stylesheet">
{%endblock topimports %}
{% block innercontent %}
{% if user %}{% else %}
No such user
{% endif %}
{% endblock %}
{% block content %}
{% if user %}
<div id="page-profile-media"></div>
{% endif %}
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/profile-media.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}

View File

@@ -0,0 +1,34 @@
{% extends "base.html" %}
{% load static %}
{% block headtitle %}{% if user.name %}{{user.name}} - {% endif %}{{PORTAL_NAME}}{% endblock headtitle %}
{% block headermeta %}
<meta property="og:title" content="{% if user.name %}{{user.name}} - {% endif %}{{PORTAL_NAME}}">
<meta property="og:type" content="website">
<meta property="og:description" content="">
<meta name="twitter:card" content="summary">
{% endblock headermeta %}
{% block topimports %}
{% load static %}
<link href="{% static "css/profile-media.css" %}?v={{ VERSION }}" rel="preload" as="style">
<link href="{% static "css/profile-media.css" %}?v={{ VERSION }}" rel="stylesheet">
{%endblock topimports %}
{% block innercontent %}
{% if user %}{% else %}
No such user
{% endif %}
{% endblock %}
{% block content %}
{% if user %}<div id="page-profile-media"></div>{% endif %}
{% endblock %}
{% block bottomimports %}
<script src="{% static "js/profile-media.js" %}?v={{ VERSION }}"></script>
{% endblock bottomimports %}