handle most dependencies using requirejs
This commit is contained in:
parent
ca8992b07a
commit
5651c605de
9 changed files with 30 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
define(function () {
|
||||
define(["moment", "tablesort", "tablesort.numeric"], function (moment, Tablesort) {
|
||||
return function(config, el, router, d) {
|
||||
var h2 = document.createElement("h2")
|
||||
h2.textContent = d.nodeinfo.hostname
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define(function () {
|
||||
define(["tablesort", "tablesort.numeric"], function (Tablesort) {
|
||||
return function(linkScale, router) {
|
||||
var self = this
|
||||
var el
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require(["config", "router", "map", "sidebar", "tabs", "container", "meshstats", "linklist", "nodelist", "simplenodelist", "infobox/main"],
|
||||
function (Config, Router, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist, SimpleNodelist, Infobox) {
|
||||
require(["config", "moment", "chroma-js", "router", "map", "sidebar", "tabs", "container", "meshstats", "linklist", "nodelist", "simplenodelist", "infobox/main"],
|
||||
function (Config, moment, chroma, Router, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist, SimpleNodelist, Infobox) {
|
||||
main(Config)
|
||||
|
||||
function main(config) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define(function () {
|
||||
define(["leaflet", "moment", "leaflet.label"], function (L, moment) {
|
||||
var options = { worldCopyJump: true,
|
||||
zoomControl: false
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define(function () {
|
||||
define(["moment"], function (moment) {
|
||||
return function () {
|
||||
var self = this
|
||||
var p
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define(function () {
|
||||
define(["tablesort", "tablesort.numeric"], function (Tablesort) {
|
||||
return function(router) {
|
||||
var self = this
|
||||
var el
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define(function () {
|
||||
define(["moment"], function (moment) {
|
||||
return function(config, field, router, title) {
|
||||
var self = this
|
||||
var el
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue