0.1.29 • Published 2 years ago

cra-template-insulo v0.1.29

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

cra-template-insulo

This is the official base template for InsuloJS components.

InsuloJS components are a collection of components designed to rapidly build React-based applications. InsuloJS components are based on the material-ui library. They use React hooks, in terms of state management.

More information can be found on the InsuloJS project website. Basic examples can also be found on the website of the insulo-route package or on the website of the insulo-menu package.

The insulo template is limited to the basic functionality, but you can enable individual functionalites by removing the appropriate comments. Some code parts are commented out with comments like #Theming(start) / #Theming(stop). In order to use the selected functionality, you will have to delete the comments in between.

The insulo-full template contains full functionality of the Insulo library.

Demo

Installation

npx create-react-app test-app --template insulo
cd test-app
yarn start

Usage

The application created with this template includes functionality limited to the basic menu functions. In order to use the other options of InsuloJS components, you need to uncomment the appropriate code fragments. To extend the functionality with the following options: authorization, templates or localization, delete appropriately marked comments. In order to use authorization, remove the comments from the lines delimited by the comments #Authentication (start) and #Authentication (stop) in all files. Similarly, in order to use templates, you should remove comments placed between #Theming (start) and #Theming (stop) in all files. To use localization you must remove comments between #Localization (start) and #Localization (stop) in all files.

In addition to removing comments, you need to adjust the configuration of the components to your needs. Each of the components: RouteConfigProvider, LocaleConfigProvider, ThemeConfigProvider, AuthConfigProvider, MenuProvider has an initValue configuration parameter. Configuration is relatively intuitive and at the moment it is best described by example configuration files in the config directory.

To see how the application files should look like after removing all comments and with full functionality unlocked, clone the InsuloJS project from the GitHub website, go to the cra-demo directory and run the sample application, that is:

git clone https://github.com/bbakunowicz/insulo.git
cd insulo/cra-demo
yarn install && yarn start
0.1.29

2 years ago

0.1.28

3 years ago

0.1.27

3 years ago

0.1.26

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.15

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.8

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago