Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loicmahieu/react-admin-git-provider
Gitlab data provider for React Admin
https://github.com/loicmahieu/react-admin-git-provider
Last synced: 27 days ago
JSON representation
Gitlab data provider for React Admin
- Host: GitHub
- URL: https://github.com/loicmahieu/react-admin-git-provider
- Owner: LoicMahieu
- Created: 2019-02-03T18:31:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-14T00:35:43.000Z (almost 2 years ago)
- Last Synced: 2024-04-11T13:05:55.596Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.58 MB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-admin-git-provider
Gitlab data provider for [React Admin](https://marmelab.com/react-admin/).
## Features
* List/edit/remove JSON files
* List pipelines
* List branches
* List commits## Installation
```sh
npm install react-admin-git-provider#or
yarn add react-admin-git-provider
```## Example: `GitlabProviderFileList`
```js
import {
createDataProvider,
gitlabAuth,
GitlabProviderFileList,
} from "@react-admin-git-provider/gitlab";const authProvider = gitlabAuth.createAuthProvider({
baseUrl: process.env.GITLAB_OAUTH_BASE_URL,
clientId: process.env.GITLAB_OAUTH_CLIENT_ID,
});const dataProvider = createDataProvider(({ resource }) =>
new GitlabProviderFileList({
...baseProviderOptions,
basePath: `data/${resource}`,
})
)
```