diff --git a/.fallowrc.json b/.fallowrc.json index 0568a68..63959e1 100644 --- a/.fallowrc.json +++ b/.fallowrc.json @@ -1,6 +1,8 @@ { "$schema": "https://raw.githubusercontent.com/fallow-rs/fallow/main/schema.json", "entry": ["test/features/*.test.js", "test/unit/*.test.js"], + "ignorePatterns": ["static/**"], + "ignoreUnresolvedImports": ["/**/static/**"], "ignoreDependencies": ["pino"], "ignoreExports": [{ "file": "static/auth-client.js", "exports": ["*"] }] } diff --git a/eslint.config.js b/eslint.config.js index 7cb2650..42c485b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,6 +3,9 @@ import globals from "globals"; import { defineConfig } from "eslint/config"; export default defineConfig([ + { + ignores: ["static/**"], + }, { files: ["**/*.{js,mjs,cjs}"], plugins: { js }, diff --git a/src/app/components/admin.js b/src/app/components/admin.js index 84c7207..88b3164 100644 --- a/src/app/components/admin.js +++ b/src/app/components/admin.js @@ -1,59 +1,72 @@ import { html } from "hono/html"; import { formatISO } from "date-fns"; -// Admin users list component export const UsersList = ({ users, total }) => html` -
| Name | -Verified | -Role | -Created | -|
|---|---|---|---|---|
| ${user.name} | -${user.email} | -${user.emailVerified ? "✅" : "❌"} | -- + | ++ ${formatISO(new Date(user.createdAt), { + representation: "date", + })} + | +
No users found.
`} + : html`No users found.
+Name: ${user.name}
-Email: ${user.email}
-ID: ${user.id}
-Email Verified: ${user.emailVerified ? "Yes" : "No"}
-- Created: ${format( - new Date(user.createdAt), - "yyyy-MM-dd HH:mm:ss", - )} -
+