Compare commits

..

2 commits

Author SHA1 Message Date
778b23ecd4 add generated styles
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-23 23:54:50 +02:00
f594004760 add clipboard.js 2022-06-23 23:53:44 +02:00
7 changed files with 10449 additions and 6 deletions

3
.gitignore vendored
View file

@ -18,6 +18,3 @@ node_modules
/.env
/_run*
*.sqlite3
# Generated assets
/ucast/static/bulma/css

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

1
ucast/static/bulma/css/style.min.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -2,8 +2,8 @@ const confirmButtons = document.getElementsByClassName("dialog-confirm")
for(let btn of confirmButtons) {
btn.addEventListener("click", function(e) {
const result = window.confirm(btn.getAttribute("confirm-msg"));
if (!result) {
if(!result) {
e.preventDefault();
}
})
});
}

View file

@ -1,4 +1,5 @@
{% extends 'base.html' %}
{% load static %}
{% block title %}ucast - Channels{% endblock %}
@ -54,11 +55,12 @@
</div>
<div class="control is-flex-grow-1">
<input class="input" type="text"
id="feedurl-{{ channel.id }}"
value="{{ site_url }}/feed/{{ channel.slug }}?key={{ user.get_feed_key }}"
readonly>
</div>
<div class="control">
<button class="button is-primary">
<button class="button is-primary button-clip" data-clipboard-target="#feedurl-{{ channel.id }}">
<i class="fas fa-copy"></i>
</button>
</div>
@ -67,3 +69,8 @@
</div>
{% endfor %}
{% endblock content %}
{% block javascript %}
<script src="{% static 'ucast/js/clipboard.min.js' %}"></script>
<script>new ClipboardJS('.button-clip');</script>
{% endblock %}