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:
2026-04-26 17:12:09 +08:00
commit 4aba6dfa77
170 changed files with 1220 additions and 0 deletions

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>