Can upload files

This commit is contained in:
2025-04-09 21:12:47 +02:00
parent 84e1c57dc9
commit 61a4ea62c6
24 changed files with 342 additions and 61 deletions

View File

@ -12,7 +12,7 @@ export interface Token {
right_account: boolean;
right_movement: boolean;
right_inbox: boolean;
right_attachment: boolean;
right_file: boolean;
right_auth: boolean;
}
@ -28,7 +28,7 @@ export interface NewToken {
right_account: boolean;
right_movement: boolean;
right_inbox: boolean;
right_attachment: boolean;
right_file: boolean;
right_auth: boolean;
}

View File

@ -32,7 +32,7 @@ export function CreateTokenDialog(p: {
max_inactivity: 3600 * 24 * 90,
read_only: false,
right_account: false,
right_attachment: false,
right_file: false,
right_auth: false,
right_inbox: false,
right_movement: false,
@ -74,7 +74,7 @@ export function CreateTokenDialog(p: {
read_only: false,
right_account: false,
right_movement: false,
right_attachment: true,
right_file: true,
right_auth: true,
right_inbox: true,
});
@ -181,12 +181,12 @@ export function CreateTokenDialog(p: {
<br />
<CheckboxInput
editable
label="Right: attachment routes"
checked={newToken.right_attachment}
label="Right: file routes"
checked={newToken.right_file}
onValueChange={(v) => {
setNewToken({
...newToken,
right_attachment: v,
right_file: v,
});
}}
/>

View File

@ -180,8 +180,8 @@ function TokensRouteInner(p: {
type: "boolean",
},
{
field: "right_attachment",
headerName: "Attachment",
field: "right_file",
headerName: "File",
flex: 2,
type: "boolean",
},