2015-03-29 03:35:10 +02:00
|
|
|
require.config({
|
|
|
|
baseUrl: "lib",
|
|
|
|
paths: {
|
2019-01-20 18:15:14 +01:00
|
|
|
"leaflet": "../node_modules/leaflet/dist/leaflet",
|
|
|
|
"leaflet.label": "../node_modules/leaflet-label/dist/leaflet.label",
|
|
|
|
"leaflet.providers": "../node_modules/leaflet-providers/leaflet-providers",
|
|
|
|
"chroma-js": "../node_modules/chroma-js/chroma.min",
|
|
|
|
"moment": "../node_modules/moment/min/moment-with-locales.min",
|
|
|
|
"tablesort": "../node_modules/tablesort/tablesort.min",
|
|
|
|
"tablesort.numeric": "../node_modules/tablesort/src/sorts/tablesort.numeric",
|
|
|
|
"d3": "../node_modules/d3/d3.min",
|
|
|
|
"numeral": "../node_modules/numeraljs/min/numeral.min",
|
|
|
|
"numeral-intl": "../node_modules/numeraljs/min/languages.min",
|
|
|
|
"virtual-dom": "../node_modules/virtual-dom/dist/virtual-dom",
|
|
|
|
"rbush": "../node_modules/rbush/rbush",
|
2015-06-01 22:36:10 +02:00
|
|
|
"helper": "../helper",
|
2019-01-20 18:15:14 +01:00
|
|
|
"jshashes": "../node_modules/jshashes/hashes"
|
2015-03-29 03:35:10 +02:00
|
|
|
},
|
|
|
|
shim: {
|
|
|
|
"leaflet.label": ["leaflet"],
|
2015-04-09 19:45:00 +02:00
|
|
|
"leaflet.providers": ["leaflet"],
|
2015-03-29 03:35:10 +02:00
|
|
|
"tablesort": {
|
|
|
|
exports: "Tablesort"
|
|
|
|
},
|
2015-04-02 22:07:00 +02:00
|
|
|
"numeral-intl": {
|
|
|
|
deps: ["numeral"],
|
|
|
|
exports: "numeral"
|
|
|
|
},
|
2015-03-29 04:26:23 +02:00
|
|
|
"tablesort.numeric": ["tablesort"],
|
2015-04-02 02:33:17 +02:00
|
|
|
"helper": ["numeral-intl"]
|
2015-03-29 03:35:10 +02:00
|
|
|
}
|
|
|
|
})
|
2015-03-29 04:35:20 +02:00
|
|
|
|
|
|
|
require(["main", "helper"], function (main) {
|
2015-07-19 19:45:25 +02:00
|
|
|
getJSON("config.json").then(main)
|
2015-03-29 04:35:20 +02:00
|
|
|
})
|