mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-11-30 04:57:31 +00:00
Create a base react-admin application
yarn create react-app synapse-admin Change-Id: I2ea325e5825898aefd30e2cd15d4f2ef57949879
This commit is contained in:
parent
427e91d123
commit
ac9400d891
13 changed files with 11692 additions and 0 deletions
11
src/App.js
Normal file
11
src/App.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import React from "react";
|
||||
import { Admin, Resource } from "react-admin";
|
||||
import dataProvider from "./dataProvider";
|
||||
|
||||
const App = () => (
|
||||
<Admin dataProvider={dataProvider}>
|
||||
<Resource name="data" />
|
||||
</Admin>
|
||||
);
|
||||
|
||||
export default App;
|
||||
13
src/dataProvider.js
Normal file
13
src/dataProvider.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const dataProvider = {
|
||||
getList: (resource, params) => Promise,
|
||||
getOne: (resource, params) => Promise,
|
||||
getMany: (resource, params) => Promise,
|
||||
getManyReference: (resource, params) => Promise,
|
||||
create: (resource, params) => Promise,
|
||||
update: (resource, params) => Promise,
|
||||
updateMany: (resource, params) => Promise,
|
||||
delete: (resource, params) => Promise,
|
||||
deleteMany: (resource, params) => Promise,
|
||||
};
|
||||
|
||||
export default dataProvider;
|
||||
5
src/index.js
Normal file
5
src/index.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import App from "./App";
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById("root"));
|
||||
Loading…
Add table
Add a link
Reference in a new issue