mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-24 09:38:35 +02:00
feat: guess what, more changes
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
</label>
|
||||
|
||||
<div class="dropdown dropdown-top dropdown-end">
|
||||
<div tabindex="0" role="button" class="btn btn-secondary btn-sm">
|
||||
<div role="button" class="btn btn-secondary btn-sm" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="fa-solid fa-cog"></i>
|
||||
</div>
|
||||
<ul tabindex="0" class="dropdown-content menu bg-base-100 rounded-box z-1 w-52 p-2 shadow">
|
||||
<ul class="dropdown-menu menu">
|
||||
<li><a
|
||||
hx-get="{% url 'user_settings' %}"
|
||||
hx-target="#generic-offcanvas"
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
{% vite_hmr_client %}
|
||||
|
||||
{% vite_asset 'main.js' defer=True %}
|
||||
{% comment %} {% vite_asset 'sweetalert2.js' defer=True %}
|
||||
{% vite_asset 'select.js' defer=True %}
|
||||
{% vite_asset 'datepicker.js' %}
|
||||
{% vite_asset 'autosize.js' defer=True %} {% endcomment %}
|
||||
|
||||
{% include 'includes/scripts/hyperscript/init_tom_select.html' %}
|
||||
{% include 'includes/scripts/hyperscript/init_date_picker.html' %}
|
||||
@@ -15,11 +11,7 @@
|
||||
{% include 'includes/scripts/hyperscript/htmx_error_handler.html' %}
|
||||
{% include 'includes/scripts/hyperscript/sounds.html' %}
|
||||
{% include 'includes/scripts/hyperscript/swal.html' %}
|
||||
|
||||
{% comment %} {% vite_asset 'htmx.js' defer=True %}
|
||||
{% vite_asset 'charts.js' %}
|
||||
|
||||
{% vite_asset 'style.js' %} {% endcomment %}
|
||||
{% include 'includes/scripts/hyperscript/autosize.html' %}
|
||||
|
||||
<script>
|
||||
let tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||
|
||||
12
app/templates/includes/scripts/hyperscript/autosize.html
Normal file
12
app/templates/includes/scripts/hyperscript/autosize.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<script type="text/hyperscript">
|
||||
init
|
||||
for elem in <.textarea/>
|
||||
autosize(elem)
|
||||
end
|
||||
end
|
||||
on htmx:afterSettle
|
||||
for elem in <.textarea/>
|
||||
autosize(elem)
|
||||
end
|
||||
end
|
||||
</script>
|
||||
Reference in New Issue
Block a user