migrate to vue3; autocomplete still needs work

This commit is contained in:
bkfox
2022-03-11 18:37:57 +01:00
parent ab8858154b
commit 5b788ca28f
34 changed files with 457 additions and 17868 deletions

View File

@ -63,9 +63,8 @@ class SoundSerializer(serializers.ModelSerializer):
def get_field_names(self, *args):
names = super().get_field_names(*args)
if 'request' in self.context and self.context['request'].user.is_staff and \
self.instance.is_public:
names.push('path')
if 'request' in self.context and self.context['request'].user.is_staff:
names.append('path')
return names
class PodcastSerializer(serializers.ModelSerializer):

View File

@ -0,0 +1 @@
export default __webpack_public_path__ + "fonts/fa-regular-400.woff2";

View File

@ -0,0 +1 @@
export default __webpack_public_path__ + "fonts/fa-regular-400.ttf";

View File

@ -0,0 +1 @@
export default __webpack_public_path__ + "fonts/fa-v4compatibility.woff2";

View File

@ -0,0 +1 @@
export default __webpack_public_path__ + "fonts/fa-brands-400.ttf";

View File

@ -0,0 +1 @@
export default __webpack_public_path__ + "fonts/fa-solid-900.ttf";

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
export default __webpack_public_path__ + "fonts/fa-solid-900.woff2";

View File

@ -0,0 +1 @@
export default __webpack_public_path__ + "fonts/fa-brands-400.woff2";

View File

@ -0,0 +1 @@
export default __webpack_public_path__ + "fonts/fa-v4compatibility.ttf";

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -4,16 +4,17 @@
<head>
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% static "aircox/vendor.css" %}">
<!-- <link rel="stylesheet" type="text/css" href="{% static "aircox/vendor.css" %}"> -->
<link rel="stylesheet" type="text/css" href="{% static "admin/css/base.css" %}">
<script src="{% static "aircox/main.js" %}"></script>
<script src="{% static "aircox/vendor.js" %}"></script>
<script src="{% static "aircox/admin.js" %}"></script>
<script src="{% static "aircox/public.js" %}"></script>
{% block extrastyle %}{% endblock %}
<link rel="stylesheet" type="text/css" href="{% static "aircox/main.css" %}">
<link rel="stylesheet" type="text/css" href="{% static "aircox/vendor.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "aircox/main.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "aircox/admin.css" %}">
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}">{% endif %}
@ -30,6 +31,13 @@
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"
data-admin-utc-offset="{% now "Z" %}">
<script id="init-script">
window.addEventListener('load', function() {
{% block init-scripts %}
aircox.init({}, {config: window.AdminApp})
{% endblock %}
})
</script>
<!-- Container -->
<div>
@ -173,7 +181,9 @@
</div>
<!-- END Container -->
{% block outside_bottom %}{% endblock %}
{% block player %}
<div id="player">{% include "aircox/widgets/player.html" %}</div>
{% endblock %}
</body>
</html>

View File

@ -39,6 +39,14 @@ Usefull context:
{% block head_extra %}{% endblock %}
</head>
<body>
<script id="init-script">
window.addEventListener('load', function() {
{% block init-scripts %}
aircox.init()
aircox.app.enableHotReload(window)
{% endblock %}
})
</script>
<div id="app">
<nav class="navbar has-shadow" role="navigation" aria-label="main navigation">
<div class="container">

View File

@ -0,0 +1,18 @@
{% extends "aircox/page_list.html" %}
{% load i18n %}
{% block filters %}
{{ block.super }}
<div class="field is-horizontal">
<div class="field-label">
<label class="label">{% trans "Podcasts" %}</label>
</div>
<div class="field-body">
<div class="checkbox">
<input type="checkbox" class="checkbox" name="podcast" value="True"
{% if filterset_data.podcast %}checked{% endif %} />
</div>
</div>
</div>
{% endblock %}