From 15dde408db57009e1e4e26d969b9b3e6c1e0c255 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 4 Mar 2016 19:10:04 +0100 Subject: nms: Remove redundant files speedometer probably doesn't work now anyway until it's heavily updated. --- .../speedometer/c3-master/htdocs/js/c3.js | 1 - .../speedometer/c3-master/htdocs/js/c3.min.js | 1 - .../speedometer/c3-master/htdocs/js/extensions | 1 - .../speedometer/c3-master/htdocs/js/require.js | 36 ---------- .../c3-master/htdocs/js/samples/plugin.js | 13 ---- .../c3-master/htdocs/js/samples/requirejs.js | 18 ----- .../c3-master/htdocs/js/samples/zoom_reduction.js | 81 ---------------------- 7 files changed, 151 deletions(-) delete mode 120000 web/nms.gathering.org/speedometer/c3-master/htdocs/js/c3.js delete mode 120000 web/nms.gathering.org/speedometer/c3-master/htdocs/js/c3.min.js delete mode 120000 web/nms.gathering.org/speedometer/c3-master/htdocs/js/extensions delete mode 100644 web/nms.gathering.org/speedometer/c3-master/htdocs/js/require.js delete mode 100644 web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/plugin.js delete mode 100644 web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/requirejs.js delete mode 100644 web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/zoom_reduction.js (limited to 'web/nms.gathering.org/speedometer/c3-master/htdocs/js') diff --git a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/c3.js b/web/nms.gathering.org/speedometer/c3-master/htdocs/js/c3.js deleted file mode 120000 index 644b352..0000000 --- a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/c3.js +++ /dev/null @@ -1 +0,0 @@ -../../c3.js \ No newline at end of file diff --git a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/c3.min.js b/web/nms.gathering.org/speedometer/c3-master/htdocs/js/c3.min.js deleted file mode 120000 index a221dd2..0000000 --- a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/c3.min.js +++ /dev/null @@ -1 +0,0 @@ -../../c3.min.js \ No newline at end of file diff --git a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/extensions b/web/nms.gathering.org/speedometer/c3-master/htdocs/js/extensions deleted file mode 120000 index 4761652..0000000 --- a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/extensions +++ /dev/null @@ -1 +0,0 @@ -../../extensions/js \ No newline at end of file diff --git a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/require.js b/web/nms.gathering.org/speedometer/c3-master/htdocs/js/require.js deleted file mode 100644 index e599a6a..0000000 --- a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/require.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - RequireJS 2.1.11 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. - Available via the MIT or new BSD license. - see: http://github.com/jrburke/requirejs for details -*/ -var requirejs,require,define; -(function(ca){function G(b){return"[object Function]"===M.call(b)}function H(b){return"[object Array]"===M.call(b)}function v(b,c){if(b){var d;for(d=0;dthis.depCount&&!this.defined){if(G(c)){if(this.events.error&&this.map.isDefine||h.onError!==da)try{f=i.execCb(b,c,e,f)}catch(d){a=d}else f=i.execCb(b,c,e,f);this.map.isDefine&&void 0===f&&((e=this.module)?f=e.exports:this.usingExports&& -(f=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",w(this.error=a)}else f=c;this.exports=f;if(this.map.isDefine&&!this.ignore&&(p[b]=f,h.onResourceLoad))h.onResourceLoad(i,this.map,this.depMaps);y(b);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a= -this.map,b=a.id,d=m(a.prefix);this.depMaps.push(d);r(d,"defined",t(this,function(f){var d,g;g=j(ba,this.map.id);var J=this.map.name,u=this.map.parentMap?this.map.parentMap.name:null,p=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(f.normalize&&(J=f.normalize(J,function(a){return c(a,u,!0)})||""),f=m(a.prefix+"!"+J,this.map.parentMap),r(f,"defined",t(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),g=j(k,f.id)){this.depMaps.push(f); -if(this.events.error)g.on("error",t(this,function(a){this.emit("error",a)}));g.enable()}}else g?(this.map.url=i.nameToUrl(g),this.load()):(d=t(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),d.error=t(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];B(k,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&y(a.map.id)});w(a)}),d.fromText=t(this,function(f,c){var g=a.name,J=m(g),k=O;c&&(f=c);k&&(O=!1);q(J);s(l.config,b)&&(l.config[g]=l.config[b]);try{h.exec(f)}catch(j){return w(C("fromtexteval", -"fromText eval for "+b+" failed: "+j,j,[b]))}k&&(O=!0);this.depMaps.push(J);i.completeLoad(g);p([g],d)}),f.load(a.name,p,d,l))}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){W[this.map.id]=this;this.enabling=this.enabled=!0;v(this.depMaps,t(this,function(a,b){var c,f;if("string"===typeof a){a=m(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=j(N,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;r(a,"defined",t(this,function(a){this.defineDep(b, -a);this.check()}));this.errback&&r(a,"error",t(this,this.errback))}c=a.id;f=k[c];!s(N,c)&&(f&&!f.enabled)&&i.enable(a,this)}));B(this.pluginMaps,t(this,function(a){var b=j(k,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){v(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:l,contextName:b,registry:k,defined:p,urlFetched:T,defQueue:A,Module:$,makeModuleMap:m, -nextTick:h.nextTick,onError:w,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=l.shim,c={paths:!0,bundles:!0,config:!0,map:!0};B(a,function(a,b){c[b]?(l[b]||(l[b]={}),V(l[b],a,!0,!0)):l[b]=a});a.bundles&&B(a.bundles,function(a,b){v(a,function(a){a!==b&&(ba[a]=b)})});a.shim&&(B(a.shim,function(a,c){H(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);b[c]=a}),l.shim=b);a.packages&&v(a.packages,function(a){var b, -a="string"===typeof a?{name:a}:a;b=a.name;a.location&&(l.paths[b]=a.location);l.pkgs[b]=a.name+"/"+(a.main||"main").replace(ja,"").replace(R,"")});B(k,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=m(b))});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(ca,arguments));return b||a.exports&&ea(a.exports)}},makeRequire:function(a,e){function g(f,c,d){var j,l;e.enableBuildCallback&&(c&&G(c))&&(c.__requireJsBuild= -!0);if("string"===typeof f){if(G(c))return w(C("requireargs","Invalid require call"),d);if(a&&s(N,f))return N[f](k[a.id]);if(h.get)return h.get(i,f,a,g);j=m(f,a,!1,!0);j=j.id;return!s(p,j)?w(C("notloaded",'Module name "'+j+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):p[j]}L();i.nextTick(function(){L();l=q(m(null,a));l.skipMap=e.skipMap;l.init(f,c,d,{enabled:!0});D()});return g}e=e||{};V(g,{isBrowser:z,toUrl:function(b){var e,d=b.lastIndexOf("."),g=b.split("/")[0];if(-1!== -d&&(!("."===g||".."===g)||1g.attachEvent.toString().indexOf("[native code"))&&!Z?(O=!0,g.attachEvent("onreadystatechange",b.onScriptLoad)): -(g.addEventListener("load",b.onScriptLoad,!1),g.addEventListener("error",b.onScriptError,!1)),g.src=d,L=g,D?y.insertBefore(g,D):y.appendChild(g),L=null,g;if(fa)try{importScripts(d),b.completeLoad(c)}catch(j){b.onError(C("importscripts","importScripts failed for "+c+" at "+d,j,[c]))}};z&&!r.skipDataMain&&U(document.getElementsByTagName("script"),function(b){y||(y=b.parentNode);if(K=b.getAttribute("data-main"))return q=K,r.baseUrl||(E=q.split("/"),q=E.pop(),Q=E.length?E.join("/")+"/":"./",r.baseUrl= -Q),q=q.replace(R,""),h.jsExtRegExp.test(q)&&(q=K),r.deps=r.deps?r.deps.concat(q):[q],!0});define=function(b,c,d){var g,h;"string"!==typeof b&&(d=c,c=b,b=null);H(c)||(d=c,c=null);!c&&G(d)&&(c=[],d.length&&(d.toString().replace(la,"").replace(ma,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(O){if(!(g=L))P&&"interactive"===P.readyState||U(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),g=P;g&&(b|| -(b=g.getAttribute("data-requiremodule")),h=F[g.getAttribute("data-requirecontext")])}(h?h.defQueue:S).push([b,c,d])};define.amd={jQuery:!0};h.exec=function(b){return eval(b)};h(r)}})(this); diff --git a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/plugin.js b/web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/plugin.js deleted file mode 100644 index e5a0718..0000000 --- a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/plugin.js +++ /dev/null @@ -1,13 +0,0 @@ -c3.chart.internal.fn.isTimeSeries = function () { - console.log('custom isTimeSeries'); - return false; -}; -c3.chart.internal.fn.additionalConfig.test1 = undefined; -c3.chart.internal.fn.additionalConfig.test2 = undefined; - -c3.chart.fn.hoge = function () { - console.log("hoge()", this.internal.isTimeSeries()); -}; -c3.chart.fn.test = function () { - console.log('test()', this.internal.config.test1); -}; diff --git a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/requirejs.js b/web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/requirejs.js deleted file mode 100644 index 95f5a7d..0000000 --- a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/requirejs.js +++ /dev/null @@ -1,18 +0,0 @@ -require.config({ - baseUrl: '/js', - paths: { - d3: "http://d3js.org/d3.v3.min" - } -}); - -require(["d3", "c3"], function(d3, c3) { - - window.chart = c3.generate({ - data: { - columns: [ - ['sample', 30, 200, 100, 400, 150, 250] - ] - } - }); - -}); diff --git a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/zoom_reduction.js b/web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/zoom_reduction.js deleted file mode 100644 index 0c12921..0000000 --- a/web/nms.gathering.org/speedometer/c3-master/htdocs/js/samples/zoom_reduction.js +++ /dev/null @@ -1,81 +0,0 @@ -var chart; -function refresh() { - if (suspendRefresh) - return; - chart.load({ - columns: [ - ["Value"].concat(zoom(column, currentZoom, "t=>Math.round(t.avg())".toLambda())), - ["xColumn"].concat(zoom(xColumn, currentZoom, "t=>t[0]".toLambda())), - ] - }); -} - -function getChart() { - return chart; -} -function main() { - var last = 0; - var max = 10000; - var column = Array.generate(max, function (i) { - return last += Math.randomInt(-10, 10); - }); - var xColumn = Array.generateNumbers(0, max); - var options = { - bindto: "#divChart", - data: { - columns: [ - ["Value"].concat(column), - ["x"].concat(xColumn), - ], - type: "line", - x: "x" - }, - zoom2: { - enabled: true, - } - }; - chart = c3ext.generate(options); - - window.setInterval(refreshStatus, 1000); - - function refreshStatus() { - var zoomInfo = chart.zoom2.getZoom(); - var info = { - reduced: chart.zoom2.maxItems(), - actual: (zoomInfo.currentZoom[1] - zoomInfo.currentZoom[0]), - range: zoomInfo.currentZoom[0] + "-" + zoomInfo.currentZoom[1], - total: zoomInfo.totalItems - }; - $("#status").text(JSON.stringify(info, null, " ")); - } - -}; - -if (typeof (Array.generate) == "undefined") { - Array.generate = function (length, generator) { - var list = new Array(length); - for (var i = 0; i < length; i++) { - list[i] = generator(i); - } - return list; - } -} -if (typeof (Math.randomInt) == "undefined") { - Math.randomInt = function (min, max) { - return Math.floor(Math.random() * (max - min + 1)) + min; - } -} -if (typeof (Array.generateNumbers) == "undefined") { - Array.generateNumbers = function (from, until) { - if (arguments.length == 1) { - until = from; - from = 0; - } - var length = until - from; - var list = new Array(length); - for (var i = 0; i < length; i++) { - list[i] = i + from; - } - return list; - } -} \ No newline at end of file -- cgit v1.2.3