forked from rc/aircox
migrate to vue3; autocomplete still needs work
This commit is contained in:
@ -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):
|
||||
|
1
aircox/static/aircox/149a6b9ab513cdae59f1.woff2
Normal file
1
aircox/static/aircox/149a6b9ab513cdae59f1.woff2
Normal file
@ -0,0 +1 @@
|
||||
export default __webpack_public_path__ + "fonts/fa-regular-400.woff2";
|
1
aircox/static/aircox/3f9b34bb47c232621b2b.ttf
Normal file
1
aircox/static/aircox/3f9b34bb47c232621b2b.ttf
Normal file
@ -0,0 +1 @@
|
||||
export default __webpack_public_path__ + "fonts/fa-regular-400.ttf";
|
1
aircox/static/aircox/480cdb587f2f4adc1e42.woff2
Normal file
1
aircox/static/aircox/480cdb587f2f4adc1e42.woff2
Normal file
@ -0,0 +1 @@
|
||||
export default __webpack_public_path__ + "fonts/fa-v4compatibility.woff2";
|
1
aircox/static/aircox/5b2688feed672622c768.ttf
Normal file
1
aircox/static/aircox/5b2688feed672622c768.ttf
Normal file
@ -0,0 +1 @@
|
||||
export default __webpack_public_path__ + "fonts/fa-brands-400.ttf";
|
1
aircox/static/aircox/a45ef01cd4a352f3ea26.ttf
Normal file
1
aircox/static/aircox/a45ef01cd4a352f3ea26.ttf
Normal 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
1
aircox/static/aircox/f6ed548623081f235c71.woff2
Normal file
1
aircox/static/aircox/f6ed548623081f235c71.woff2
Normal file
@ -0,0 +1 @@
|
||||
export default __webpack_public_path__ + "fonts/fa-solid-900.woff2";
|
1
aircox/static/aircox/f915aad9e9e202b0e601.woff2
Normal file
1
aircox/static/aircox/f915aad9e9e202b0e601.woff2
Normal file
@ -0,0 +1 @@
|
||||
export default __webpack_public_path__ + "fonts/fa-brands-400.woff2";
|
1
aircox/static/aircox/ffa45c576a4d482cc80b.ttf
Normal file
1
aircox/static/aircox/ffa45c576a4d482cc80b.ttf
Normal file
@ -0,0 +1 @@
|
||||
export default __webpack_public_path__ + "fonts/fa-v4compatibility.ttf";
|
BIN
aircox/static/aircox/fonts/fa-v4compatibility.ttf
Normal file
BIN
aircox/static/aircox/fonts/fa-v4compatibility.ttf
Normal file
Binary file not shown.
BIN
aircox/static/aircox/fonts/fa-v4compatibility.woff2
Normal file
BIN
aircox/static/aircox/fonts/fa-v4compatibility.woff2
Normal file
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
@ -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>
|
||||
|
@ -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">
|
||||
|
18
aircox/templates/aircox/episode_list.html
Normal file
18
aircox/templates/aircox/episode_list.html
Normal 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 %}
|
||||
|
Reference in New Issue
Block a user