2024-06-02 00:39:30 -04:00
|
|
|
<ul class="tree-view">
|
|
|
|
|
<li>
|
|
|
|
|
<details open>
|
|
|
|
|
<summary>Routes</summary>
|
|
|
|
|
<ul>
|
|
|
|
|
<% it.routes.map(route => { %>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="/workshop/<%= it.structure.id %>/route/<%= route.id %>">
|
2024-06-08 11:42:27 -04:00
|
|
|
<%= route.verb %> -
|
2024-06-08 18:29:31 -04:00
|
|
|
<% if (it.structure.route_prefix) { %><span class="text-gray-500"><%= it.structure.route_prefix %></span><% } %><span class="bold"><%= route.path %></span><% if (route.error) { %>⚠️<% } %>
|
2024-06-02 00:39:30 -04:00
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<% }) %>
|
|
|
|
|
<li hx-get="/workshop/<%= it.structure.id %>/new_route_modal" hx-target="#modal-zone" hx-swap="beforeend" class="cursor-pointer">
|
|
|
|
|
<strong style="color: purple">
|
|
|
|
|
+ add
|
|
|
|
|
</strong>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</details>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<details open>
|
|
|
|
|
<summary>Templates</summary>
|
|
|
|
|
<ul>
|
|
|
|
|
<% it.templates.map(template => { %>
|
|
|
|
|
<li>
|
2024-06-02 10:20:01 -04:00
|
|
|
<a href="/workshop/<%= it.structure.id %>/template/<%= template.id %>">
|
|
|
|
|
<%= template.name %>
|
|
|
|
|
</a>
|
2024-06-02 00:39:30 -04:00
|
|
|
</li>
|
|
|
|
|
<% }) %>
|
|
|
|
|
<li hx-get="/workshop/<%= it.structure.id %>/new_template_modal" hx-target="#modal-zone" hx-swap="beforeend" class="cursor-pointer">
|
|
|
|
|
<strong style="color: purple">
|
|
|
|
|
+ add
|
|
|
|
|
</strong>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</details>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<details open>
|
|
|
|
|
<summary>DBs</summary>
|
|
|
|
|
<ul>
|
|
|
|
|
<% it.dbs.map(db => { %>
|
|
|
|
|
<li class="<% if (it.db?.id == db.id) { %>font-bold text-green-800<% } %>">
|
2024-06-02 10:20:01 -04:00
|
|
|
<a href="/workshop/<%= it.structure.id %>/db/<%= db.id %>">
|
|
|
|
|
<%= db.alias %>
|
2024-06-08 11:42:27 -04:00
|
|
|
<% if (db.is_aliased) { %>(alias)<% } %>
|
2024-06-02 00:39:30 -04:00
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<% }) %>
|
|
|
|
|
<li hx-get="/workshop/<%= it.structure.id %>/new_db_modal" hx-target="#modal-zone" hx-swap="beforeend" class="cursor-pointer">
|
|
|
|
|
<strong style="color: purple">
|
|
|
|
|
+ add
|
|
|
|
|
</strong>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</details>
|
|
|
|
|
</li>
|
2024-06-03 20:19:26 -04:00
|
|
|
<li>
|
|
|
|
|
<a href="/workshop/<%= it.structure.id %>/files">Files</a>
|
|
|
|
|
</li>
|
2024-06-04 03:01:19 -04:00
|
|
|
<li>
|
|
|
|
|
<a href="/workshop/<%= it.structure.id %>/settings">Settings</a>
|
|
|
|
|
</li>
|
2024-06-02 00:39:30 -04:00
|
|
|
</ul>
|
|
|
|
|
<div id="modal-zone" style="z-index: 1000000;"></div>
|