Skip to content
Terralego front-end components
Branch: master
Clone or download
hadrienl Bulmp new version
- [Map/Map] Fitbounds options
- [Visualizer/LayersTree] Move from client project
- [Map/InteractiveMap] Fix check constraints on interactions
Latest commit 69efaa9 May 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.storybook Theme switcher addon May 9, 2019
public Initial commit from Create React App Nov 5, 2018
scripts Bump new version Apr 24, 2019
src Update tests May 13, 2019
.babelrc fix babel intersection error with Math.max in storybook Mar 18, 2019
.babelrc-build
.eslintrc.js Warnings are now ERRORS ! Dec 14, 2018
.gitignore Deploy on netlify Nov 28, 2018
.gitlab-ci.yml Separate lint and test tasks Apr 29, 2019
README.md Add some doc Nov 28, 2018
package-lock.json Bulmp new version May 13, 2019
package.json Bulmp new version May 13, 2019
yarn.lock Configure storybook Nov 5, 2018

README.md

Terra-front

Install

$ npm i

Usage

$ npm start

Debug

You can see many logs in your console by activating debug. Just type in your browser console :

localStorage.debug = 'terralego:*';

and reload your app. You can focus on any TerraFront module by replacing * by any module name like terralego:Visualizer.

Storybook

$ npm run storybook

Tests

$ npm test

Build

$ npm run build

Publish

$ ./scripts/publish.sh

Modules

Api

An API service to fetch data from backend

Auth

A user provider with a login form. Wrap your app with AuthProvider to get access to all auth data and actions. Then, you will be able to get connected user and call login and signout action.

Visualizer

A fully configurable visualizer displaying a layers tree, a map and able to make user interactions on it.

Customization

Every component should be configurable by passing replacement props from TerraFrontProvider.

You can’t perform that action at this time.