-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work-in-progress: Backoffice file ingestion custom page
- Loading branch information
Showing
7 changed files
with
148 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { ThemeProvider } from 'styled-components'; | ||
import { | ||
theme, | ||
Box, | ||
Header, | ||
} from '@adminjs/design-system'; | ||
import { ActionHeader, BreadcrumbLink, Breadcrumbs } from 'adminjs'; | ||
|
||
function FileIngestion() { | ||
return ( | ||
<ThemeProvider theme={theme}> | ||
<Box variant="grey"> | ||
<Header.H2>File Ingestion</Header.H2> | ||
</Box> | ||
</ThemeProvider> | ||
); | ||
} | ||
|
||
export default FileIngestion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
backoffice/resources/data-ingestion/data-ingestion.resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { ApiEventsEntity } from "@api/modules/api-events/api-events.entity.js"; | ||
import { ResourceWithOptions } from "adminjs"; | ||
|
||
export const DataIngestionResource: ResourceWithOptions = { | ||
resource: ApiEventsEntity, | ||
options: { | ||
id: "EventsLog", | ||
navigation: { | ||
name: "Data Management", | ||
icon: "Database", | ||
}, | ||
actions: { | ||
new: { | ||
isAccessible: false, | ||
}, | ||
edit: { | ||
isAccessible: false, | ||
}, | ||
delete: { | ||
isAccessible: false, | ||
}, | ||
list: { isAccessible: true }, | ||
show: { isAccessible: true }, | ||
}, | ||
properties: { | ||
'*': {isDisabled: true}, | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.