zland-core

zland core provides core functionality for zland.

Usage no npm install needed!

<script type="module">
  import zlandCore from 'https://cdn.skypack.dev/zland-core';
</script>

README

zland core

zland core provides core functionality for zland.

Directories

actions

A few actions for things used throughout other zland projects

components

Core components.

datastructures

All objects used in zland that represent data are described in these structure files.

filetemplates

Files in this folder are used in the zland build process to dynamically create objects, append children or construct routes.

google

Google files wrapped into own objects. Originally used for unit testing.

gulp

sass

services

Contains zland services shared in various sub projects.

Files

ChangeEventEmitter.js

zland change event emitter used in flux stores (and where an event emitter is needed)

Config.js

Config object to make config parameters available within the zland.

Example:


// get top level param
Config.get('debug');
// get nested params
Config.get('test.test');

Constants.js

Constants for use with stores

Defer.js

defer object for compatibility reasons. use the newer new Promise constructor of bluebird

Dispatcher.js

A static instance of flux Dispatcher

GarbageCollector.js

The garbage collector considers if a DOM Element is garbage and can be deleted

MouseEvent.js

determines the name of the event using device.platform from cordova

gulpfile.js

mapCalculate.js

calculates map height, width and offset

math.js

math functions used within the whole project are wrapped into this object

modulegulpfile.js

webpack.config.js