feat(modals): persistent modal slot + router script stub in base.html
Adds <dialog id="modal-container"> with #modal-content slot at body scope. Script stub created so the include doesn't 404; logic follows. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
60e79683fc
commit
8df130a607
2 changed files with 10 additions and 0 deletions
6
l4d2web/l4d2web/static/js/modal-router.js
Normal file
6
l4d2web/l4d2web/static/js/modal-router.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// URL-addressable modal router (see docs/superpowers/specs/2026-05-17-url-addressable-modals-design.md).
|
||||
// Implementation lands in subsequent tasks; this stub keeps base.html's
|
||||
// script include from 404'ing during the staged rollout.
|
||||
(function () {
|
||||
"use strict";
|
||||
})();
|
||||
|
|
@ -37,10 +37,14 @@
|
|||
<main class="container">
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
<dialog id="modal-container" class="modal modal-wide" aria-labelledby="modal-content-title">
|
||||
<div id="modal-content"></div>
|
||||
</dialog>
|
||||
<script src="{{ url_for('static', filename='vendor/htmx.min.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/csrf.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/sse.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/modal-router.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/file-tree.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/password-reveal.js') }}"></script>
|
||||
<script defer src="{{ url_for('static', filename='js/console-history.js') }}"></script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue