This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
757 B
40 lines
757 B
'use strict'; |
|
|
|
/** |
|
* Lazily-required module dependencies (makes the application |
|
* faster) |
|
*/ |
|
|
|
var utils = require('lazy-cache')(require); |
|
|
|
/** |
|
* Temporarily re-assign `require` to trick browserify and |
|
* webpack into reconizing lazy dependencies. |
|
* |
|
* This tiny bit of ugliness has the huge dual advantage of |
|
* only loading modules that are actually called at some |
|
* point in the lifecycle of the application, whilst also |
|
* allowing browserify and webpack to find modules that |
|
* are depended on but never actually called. |
|
*/ |
|
|
|
var fn = require; |
|
require = utils; |
|
|
|
/** |
|
* Lazily required module dependencies |
|
*/ |
|
|
|
require('align-text', 'align'); |
|
|
|
/** |
|
* Restore `require` |
|
*/ |
|
|
|
require = fn; |
|
|
|
/** |
|
* Expose `utils` modules |
|
*/ |
|
|
|
module.exports = utils;
|
|
|