尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Tables, lists and grids of Ash resources in Phoenix LiveView, with filtering, sorting, search and pagination.
[!NOTE] Cinder 1.0 is being built on
main, so this branch may not match the released version. For the released docs, see cinder.hexdocs.pm, and for 0.18 fixes, the0.18-stablebranch.
<Cinder.collection resource={MyApp.User} actor={@current_user}>
<:col :let={user} field="name" filter sort>{user.name}</:col>
<:col :let={user} field="email" filter>{user.email}</:col>
<:col :let={user} field="department.name" filter sort>{user.department.name}</:col>
<:col :let={user} field="settings__country" filter>{user.settings.country}</:col>
</Cinder.collection>
Cinder reads your Ash resource to pick each filter's type (enums become selects, dates become date pickers, and so on), and loads what each column shows, including relationships, calculations and aggregates.
department.name, settings__countryWith Igniter:
mix igniter.install cinder
This adds the dependency, sets up Tailwind and the daisy_ui theme, and registers Cinder's
LiveView hook. To install by hand, see
Getting Started.
<Cinder.collection resource={MyApp.User} actor={@current_user}>
<:col :let={user} field="name" filter sort>{user.name}</:col>
<:col :let={user} field="email" filter>{user.email}</:col>
<:col :let={user} field="role" filter>{user.role}</:col>
</Cinder.collection>
For a list or grid, describe each item with an <:item> slot. The <:col> slots then only
configure filtering and sorting:
<Cinder.collection resource={MyApp.Product} actor={@current_user} layout={:grid} grid_columns={3}>
<:col field="name" filter sort />
<:item :let={product}>
<div class="p-4 border rounded">{product.name}</div>
</:item>
</Cinder.collection>
dev/ holds a Phoenix app for trying out Cinder's features by hand: each layout, every filter type, pagination, selection and bulk actions, and the custom slots, with a switcher for the built-in themes. It uses Cinder from this repo, so changes to lib/ reload in the browser without a restart.
cd dev
mix setup
iex -S mix phx.server
Then visit localhost:4000. mix check, run from the repo root, also runs the dev app's tests.
MIT License - see LICENSE file for details.