* refactor: move server api to api package * feat: add app widget * refactor: add element size for widget components on board * feat: add resize listener for widget width * feat: add widget app input * refactor: add better responsibe layout, add missing translations * fix: ci issues * fix: deepsource issues * chore: address pull request feedback
19 lines
523 B
TypeScript
19 lines
523 B
TypeScript
import { api } from "@homarr/api/server";
|
|
import { getScopedI18n } from "@homarr/translation/server";
|
|
|
|
import { UserListComponent } from "./_components/user-list.component";
|
|
|
|
export async function generateMetadata() {
|
|
const t = await getScopedI18n("management.page.user.list");
|
|
const metaTitle = `${t("metaTitle")} • Homarr`;
|
|
|
|
return {
|
|
title: metaTitle,
|
|
};
|
|
}
|
|
|
|
export default async function UsersPage() {
|
|
const userList = await api.user.getAll();
|
|
return <UserListComponent initialUserList={userList} />;
|
|
}
|