Regression fixed
This commit is contained in:
parent
e4986be2d2
commit
e36f8cf927
|
@ -34,7 +34,8 @@ const Users: Component<Props> = (props) => {
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<li>
|
<li>
|
||||||
<A href={user.id}>{user.doc.mail}</A>
|
<A href={user.id}>{user.id}</A> (
|
||||||
|
<a href={`mailto:${user.doc.mail}`}>{user.doc.mail}</a>)
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -13,7 +13,7 @@ export const adminDbExists = async () => {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await fetch(`${database}/_dyomedea_users`, {
|
const response = await fetch(`${database}/dyomedea_users`, {
|
||||||
method: 'HEAD',
|
method: 'HEAD',
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
headers,
|
headers,
|
||||||
|
|
|
@ -28,8 +28,8 @@ export function routeData() {
|
||||||
headers,
|
headers,
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
include_docs: true,
|
include_docs: true,
|
||||||
startkey: 'user:',
|
startkey: '@',
|
||||||
endkey: 'user:\ufff0',
|
endkey: '@\ufff0',
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -52,7 +52,6 @@ createEffect(() => {
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
const users = useRouteData<typeof routeData>();
|
const users = useRouteData<typeof routeData>();
|
||||||
// const users = routeData();
|
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<h1>Users</h1>
|
<h1>Users</h1>
|
||||||
|
|
Loading…
Reference in New Issue