1.0.0 • Published 28 days ago

@knovator/pagecreator-admin v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
28 days ago

Contributors Forks Stargazers Issues

About The Project

@knovator/pagecreator-admin provides Widget and Page components to integrate in UI to builds view that manage widgets and page data.

Built With

Getting Started

@knovator/pagecreator-admin is designed to be used in ReactJS/NextJS project.

Prerequisites

Create one reactjs/nextjs application if you don't have one,

  • Project
    npx create-react-app my-app
    # or
    npx create-next-app@latest
  • API

Installation

  1. Add pagecreator package
    npm install @knovator/pagecreator-admin
    # or
    yarn add @knovator/pagecreator-admin

Usage

Provider

In order to support communication between components @knovator/pagecreator-admin uses Context API. So, Widget/Page components should be wrapped by Provider.

import { Provider } from '@knovator/pagecreator-admin';

<Provider
    ...
>
    ...
</Provider>

Props

  • token
    • JWT token to be sent along the requests
  • baseUrl
    • Base API url, without forward slash at end i.e. https://api.xyz.in
  • onError(callback_code, code, message) (optional)
    • callback to execute on error
  • onSuccess(callback_code, code, message) (optional)
    • callback to execute on success
  • onLogout (optional)
    • callback to execute on API request with unauthorized code in body
  • switchClass
    • class name to apply to Toggle component, default is khb_switch
  • widgetRoutesPrefix
    • Prefix to apply after baseUrl while calling widget API
  • itemsRoutesPrefix
    • Prefix to apply after baseUrl while calling items API
  • pageRoutesPrefix
    • Prefix to apply after baseUrl while calling page API

Widget

Page

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Knovator Technologies

Project Link: https://github.com/knovator/masters-admin

1.0.0

28 days ago

0.9.0

9 months ago

0.9.2

9 months ago

0.9.1

9 months ago

0.9.4

9 months ago

0.9.3

9 months ago

0.9.5

9 months ago

0.8.5

11 months ago

0.8.4

12 months ago

0.8.3

12 months ago

0.7.6

1 year ago

0.7.5

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.8.2

1 year ago

0.7.2

1 year ago

0.7.1

1 year ago

0.7.4

1 year ago

0.7.3

1 year ago

0.7.0

1 year ago

0.5.10

1 year ago

0.5.11

1 year ago

0.5.8

1 year ago

0.5.7

1 year ago

0.5.9

1 year ago

0.5.12

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.5.4

1 year ago

0.5.3

1 year ago

0.5.6

1 year ago

0.5.5

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.3.2

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.5.2

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.3.3

1 year ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago