Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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}`,
})
)

```