mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-08 10:01:08 -06:00
[feature] Add HTTP header permission section to frontend (#2893)
* [feature] Add HTTP header filter section to frontend * tweak naming a bit
This commit is contained in:
parent
35b1c54bde
commit
6171dcbe51
27 changed files with 986 additions and 68 deletions
|
|
@ -53,7 +53,7 @@ export default function AccountsPending() {
|
|||
itemToEntry={itemToEntry}
|
||||
isError={searchRes.isError}
|
||||
error={searchRes.error}
|
||||
emptyMessage="No pending account sign-ups."
|
||||
emptyMessage={<b>No pending account sign-ups.</b>}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ export function AccountSearchForm() {
|
|||
itemToEntry={itemToEntry}
|
||||
isError={searchRes.isError}
|
||||
error={searchRes.error}
|
||||
emptyMessage="No accounts found that match your query"
|
||||
emptyMessage={<b>No accounts found that match your query.</b>}
|
||||
prevNextLinks={searchRes.data?.links}
|
||||
/>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -34,10 +34,11 @@ import MutationButton from "../../../components/form/mutation-button";
|
|||
|
||||
import { useDomainAllowsQuery, useDomainBlocksQuery } from "../../../lib/query/admin/domain-permissions/get";
|
||||
import { useAddDomainAllowMutation, useAddDomainBlockMutation, useRemoveDomainAllowMutation, useRemoveDomainBlockMutation } from "../../../lib/query/admin/domain-permissions/update";
|
||||
import { DomainPerm, PermType } from "../../../lib/types/domain-permission";
|
||||
import { DomainPerm } from "../../../lib/types/domain-permission";
|
||||
import { NoArg } from "../../../lib/types/query";
|
||||
import { Error } from "../../../components/error";
|
||||
import { useBaseUrl } from "../../../lib/navigation/util";
|
||||
import { PermType } from "../../../lib/types/perm";
|
||||
|
||||
export default function DomainPermDetail() {
|
||||
const baseUrl = useBaseUrl();
|
||||
|
|
|
|||
|
|
@ -26,8 +26,9 @@ import { useTextInput } from "../../../lib/form";
|
|||
import { TextInput } from "../../../components/form/inputs";
|
||||
import Loading from "../../../components/loading";
|
||||
import { useDomainAllowsQuery, useDomainBlocksQuery } from "../../../lib/query/admin/domain-permissions/get";
|
||||
import type { MappedDomainPerms, PermType } from "../../../lib/types/domain-permission";
|
||||
import type { MappedDomainPerms } from "../../../lib/types/domain-permission";
|
||||
import { NoArg } from "../../../lib/types/query";
|
||||
import { PermType } from "../../../lib/types/perm";
|
||||
|
||||
export default function DomainPermissionsOverview() {
|
||||
// Parse perm type from routing params.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue