Initialize Fonrey Django multi-tenant project skeleton
Set up the required directory layout, app scaffolding, core settings, templates, static assets, and Docker/Tailwind tooling to establish a standardized development baseline.
This commit is contained in:
4
templates/components/empty-state.html
Normal file
4
templates/components/empty-state.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="text-center py-12" hx-get="/client/" hx-trigger="load" hx-target="#empty-action" hx-swap="innerHTML">
|
||||
<p class="text-neutral-500">暂无数据</p>
|
||||
<div id="empty-action"></div>
|
||||
</div>
|
||||
5
templates/components/modal.html
Normal file
5
templates/components/modal.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="fixed inset-0 z-60 hidden items-center justify-center bg-black/40" id="modal-root" hx-get="/org/" hx-trigger="revealed" hx-target="#modal-body" hx-swap="innerHTML">
|
||||
<div class="w-full max-w-lg bg-white rounded-lg shadow p-4">
|
||||
<div id="modal-body">加载中...</div>
|
||||
</div>
|
||||
</div>
|
||||
4
templates/components/pagination.html
Normal file
4
templates/components/pagination.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="flex items-center justify-between" hx-get="?page=2" hx-trigger="click from:#next-page" hx-target="#table-wrap" hx-swap="outerHTML">
|
||||
<p class="text-sm text-neutral-600">第 1 页,共 1 页</p>
|
||||
<button id="next-page" type="button" class="px-3 py-1.5 rounded border border-neutral-300">下一页</button>
|
||||
</div>
|
||||
7
templates/components/sidebar.html
Normal file
7
templates/components/sidebar.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<nav class="px-2" hx-get="/permission/" hx-trigger="load" hx-target="#sidebar-async" hx-swap="innerHTML">
|
||||
<ul class="space-y-1">
|
||||
<li><a href="#" class="block px-3 py-2 rounded hover:bg-neutral-100">总览</a></li>
|
||||
<li><a href="#" class="block px-3 py-2 rounded hover:bg-neutral-100">我的任务</a></li>
|
||||
</ul>
|
||||
<div id="sidebar-async"></div>
|
||||
</nav>
|
||||
3
templates/components/toast.html
Normal file
3
templates/components/toast.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="rounded-lg bg-white border border-neutral-200 shadow-xs px-4 py-3 text-sm" role="status">
|
||||
<p>{{ message|default:"操作完成" }}</p>
|
||||
</div>
|
||||
4
templates/components/topbar.html
Normal file
4
templates/components/topbar.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="mb-4 flex items-center justify-between" hx-get="/setting/" hx-trigger="revealed" hx-target="#topbar-extra" hx-swap="innerHTML">
|
||||
<h1 class="text-xl font-semibold">工作台</h1>
|
||||
<div id="topbar-extra"></div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user