summaryrefslogtreecommitdiffhomepage
path: root/themes/base/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-06-11 13:29:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-06-11 13:29:05 +0000
commit7043c30e0e55bbbfacdddf97619b6bae96d20ddb (patch)
treeece3254350b3ba01ba3135caed2364cc7ca7804c /themes/base/htdocs
parentbbb44cf245c11bc0c1d59e836007c9e8c3bfa209 (diff)
build: introduce luci-base
Merges libs/core, libs/ipkg, libs/web, libs/sys, libs/sgi-cgi, libs/sgi-uhttpd, modules/admin-core, themes/base and protcols/core into modules/base and renames luci-lib-core to luci-base.
Diffstat (limited to 'themes/base/htdocs')
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/bridge.pngbin838 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/bridge_disabled.pngbin517 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/encryption.pngbin1224 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/encryption_disabled.pngbin1197 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/ethernet.pngbin814 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/ethernet_disabled.pngbin508 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/loading.gifbin1787 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/port_down.pngbin982 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/port_up.pngbin1401 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/signal-0-25.pngbin495 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/signal-0.pngbin478 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/signal-25-50.pngbin501 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/signal-50-75.pngbin500 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/signal-75-100.pngbin485 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/signal-none.pngbin681 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/switch.pngbin794 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/switch_disabled.pngbin505 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/tunnel.pngbin533 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/tunnel_disabled.pngbin546 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/vlan.pngbin794 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/vlan_disabled.pngbin505 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/wifi.pngbin1037 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/wifi_big.pngbin2865 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/wifi_big_disabled.pngbin2853 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/icons/wifi_disabled.pngbin980 -> 0 bytes
-rw-r--r--themes/base/htdocs/luci-static/resources/xhr.js241
26 files changed, 0 insertions, 241 deletions
diff --git a/themes/base/htdocs/luci-static/resources/icons/bridge.png b/themes/base/htdocs/luci-static/resources/icons/bridge.png
deleted file mode 100644
index 4c163bf69..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/bridge.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/bridge_disabled.png b/themes/base/htdocs/luci-static/resources/icons/bridge_disabled.png
deleted file mode 100644
index 0f367c536..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/bridge_disabled.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/encryption.png b/themes/base/htdocs/luci-static/resources/icons/encryption.png
deleted file mode 100644
index 41d2ba9ac..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/encryption.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/encryption_disabled.png b/themes/base/htdocs/luci-static/resources/icons/encryption_disabled.png
deleted file mode 100644
index f2e05a425..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/encryption_disabled.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/ethernet.png b/themes/base/htdocs/luci-static/resources/icons/ethernet.png
deleted file mode 100644
index a02538124..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/ethernet.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/ethernet_disabled.png b/themes/base/htdocs/luci-static/resources/icons/ethernet_disabled.png
deleted file mode 100644
index 2bb02e455..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/ethernet_disabled.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/loading.gif b/themes/base/htdocs/luci-static/resources/icons/loading.gif
deleted file mode 100644
index 5bb90fd6a..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/loading.gif
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/port_down.png b/themes/base/htdocs/luci-static/resources/icons/port_down.png
deleted file mode 100644
index 25ea17232..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/port_down.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/port_up.png b/themes/base/htdocs/luci-static/resources/icons/port_up.png
deleted file mode 100644
index e06303791..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/port_up.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/signal-0-25.png b/themes/base/htdocs/luci-static/resources/icons/signal-0-25.png
deleted file mode 100644
index 2e5dff466..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/signal-0-25.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/signal-0.png b/themes/base/htdocs/luci-static/resources/icons/signal-0.png
deleted file mode 100644
index 114583a67..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/signal-0.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/signal-25-50.png b/themes/base/htdocs/luci-static/resources/icons/signal-25-50.png
deleted file mode 100644
index ee8cc4f1c..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/signal-25-50.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/signal-50-75.png b/themes/base/htdocs/luci-static/resources/icons/signal-50-75.png
deleted file mode 100644
index 26bcbf715..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/signal-50-75.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/signal-75-100.png b/themes/base/htdocs/luci-static/resources/icons/signal-75-100.png
deleted file mode 100644
index 5cffaa1b8..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/signal-75-100.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/signal-none.png b/themes/base/htdocs/luci-static/resources/icons/signal-none.png
deleted file mode 100644
index b77585c0f..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/signal-none.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/switch.png b/themes/base/htdocs/luci-static/resources/icons/switch.png
deleted file mode 100644
index 5c99ba568..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/switch.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/switch_disabled.png b/themes/base/htdocs/luci-static/resources/icons/switch_disabled.png
deleted file mode 100644
index b8c84c8dc..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/switch_disabled.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/tunnel.png b/themes/base/htdocs/luci-static/resources/icons/tunnel.png
deleted file mode 100644
index c5a09dd68..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/tunnel.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/tunnel_disabled.png b/themes/base/htdocs/luci-static/resources/icons/tunnel_disabled.png
deleted file mode 100644
index ad9856cfe..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/tunnel_disabled.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/vlan.png b/themes/base/htdocs/luci-static/resources/icons/vlan.png
deleted file mode 100644
index 5c99ba568..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/vlan.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/vlan_disabled.png b/themes/base/htdocs/luci-static/resources/icons/vlan_disabled.png
deleted file mode 100644
index b8c84c8dc..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/vlan_disabled.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/wifi.png b/themes/base/htdocs/luci-static/resources/icons/wifi.png
deleted file mode 100644
index 528ce2b4e..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/wifi.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/wifi_big.png b/themes/base/htdocs/luci-static/resources/icons/wifi_big.png
deleted file mode 100644
index d73a5e740..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/wifi_big.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/wifi_big_disabled.png b/themes/base/htdocs/luci-static/resources/icons/wifi_big_disabled.png
deleted file mode 100644
index af93b37b7..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/wifi_big_disabled.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/icons/wifi_disabled.png b/themes/base/htdocs/luci-static/resources/icons/wifi_disabled.png
deleted file mode 100644
index 338a34f78..000000000
--- a/themes/base/htdocs/luci-static/resources/icons/wifi_disabled.png
+++ /dev/null
Binary files differ
diff --git a/themes/base/htdocs/luci-static/resources/xhr.js b/themes/base/htdocs/luci-static/resources/xhr.js
deleted file mode 100644
index 701c12ac1..000000000
--- a/themes/base/htdocs/luci-static/resources/xhr.js
+++ /dev/null
@@ -1,241 +0,0 @@
-/*
- * xhr.js - XMLHttpRequest helper class
- * (c) 2008-2010 Jo-Philipp Wich
- */
-
-XHR = function()
-{
- this.reinit = function()
- {
- if (window.XMLHttpRequest) {
- this._xmlHttp = new XMLHttpRequest();
- }
- else if (window.ActiveXObject) {
- this._xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- else {
- alert("xhr.js: XMLHttpRequest is not supported by this browser!");
- }
- }
-
- this.busy = function() {
- if (!this._xmlHttp)
- return false;
-
- switch (this._xmlHttp.readyState)
- {
- case 1:
- case 2:
- case 3:
- return true;
-
- default:
- return false;
- }
- }
-
- this.abort = function() {
- if (this.busy())
- this._xmlHttp.abort();
- }
-
- this.get = function(url,data,callback)
- {
- this.reinit();
-
- var xhr = this._xmlHttp;
- var code = this._encode(data);
-
- url = location.protocol + '//' + location.host + url;
-
- if (code)
- if (url.substr(url.length-1,1) == '&')
- url += code;
- else
- url += '?' + code;
-
- xhr.open('GET', url, true);
-
- xhr.onreadystatechange = function()
- {
- if (xhr.readyState == 4) {
- var json = null;
- if (xhr.getResponseHeader("Content-Type") == "application/json") {
- try {
- json = eval('(' + xhr.responseText + ')');
- }
- catch(e) {
- json = null;
- }
- }
-
- callback(xhr, json);
- }
- }
-
- xhr.send(null);
- }
-
- this.post = function(url,data,callback)
- {
- this.reinit();
-
- var xhr = this._xmlHttp;
- var code = this._encode(data);
-
- xhr.onreadystatechange = function()
- {
- if (xhr.readyState == 4)
- callback(xhr);
- }
-
- xhr.open('POST', url, true);
- xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
- xhr.setRequestHeader('Content-length', code.length);
- xhr.setRequestHeader('Connection', 'close');
- xhr.send(code);
- }
-
- this.cancel = function()
- {
- this._xmlHttp.onreadystatechange = function(){};
- this._xmlHttp.abort();
- }
-
- this.send_form = function(form,callback,extra_values)
- {
- var code = '';
-
- for (var i = 0; i < form.elements.length; i++)
- {
- var e = form.elements[i];
-
- if (e.options)
- {
- code += (code ? '&' : '') +
- form.elements[i].name + '=' + encodeURIComponent(
- e.options[e.selectedIndex].value
- );
- }
- else if (e.length)
- {
- for (var j = 0; j < e.length; j++)
- if (e[j].name) {
- code += (code ? '&' : '') +
- e[j].name + '=' + encodeURIComponent(e[j].value);
- }
- }
- else
- {
- code += (code ? '&' : '') +
- e.name + '=' + encodeURIComponent(e.value);
- }
- }
-
- if (typeof extra_values == 'object')
- for (var key in extra_values)
- code += (code ? '&' : '') +
- key + '=' + encodeURIComponent(extra_values[key]);
-
- return(
- (form.method == 'get')
- ? this.get(form.getAttribute('action'), code, callback)
- : this.post(form.getAttribute('action'), code, callback)
- );
- }
-
- this._encode = function(obj)
- {
- obj = obj ? obj : { };
- obj['_'] = Math.random();
-
- if (typeof obj == 'object')
- {
- var code = '';
- var self = this;
-
- for (var k in obj)
- code += (code ? '&' : '') +
- k + '=' + encodeURIComponent(obj[k]);
-
- return code;
- }
-
- return obj;
- }
-}
-
-XHR.get = function(url, data, callback)
-{
- (new XHR()).get(url, data, callback);
-}
-
-XHR.poll = function(interval, url, data, callback)
-{
- if (isNaN(interval) || interval < 1)
- interval = 5;
-
- if (!XHR._q)
- {
- XHR._t = 0;
- XHR._q = [ ];
- XHR._r = function() {
- for (var i = 0, e = XHR._q[0]; i < XHR._q.length; e = XHR._q[++i])
- {
- if (!(XHR._t % e.interval) && !e.xhr.busy())
- e.xhr.get(e.url, e.data, e.callback);
- }
-
- XHR._t++;
- };
- }
-
- XHR._q.push({
- interval: interval,
- callback: callback,
- url: url,
- data: data,
- xhr: new XHR()
- });
-
- XHR.run();
-}
-
-XHR.halt = function()
-{
- if (XHR._i)
- {
- /* show & set poll indicator */
- try {
- document.getElementById('xhr_poll_status').style.display = '';
- document.getElementById('xhr_poll_status_on').style.display = 'none';
- document.getElementById('xhr_poll_status_off').style.display = '';
- } catch(e) { }
-
- window.clearInterval(XHR._i);
- XHR._i = null;
- }
-}
-
-XHR.run = function()
-{
- if (XHR._r && !XHR._i)
- {
- /* show & set poll indicator */
- try {
- document.getElementById('xhr_poll_status').style.display = '';
- document.getElementById('xhr_poll_status_on').style.display = '';
- document.getElementById('xhr_poll_status_off').style.display = 'none';
- } catch(e) { }
-
- /* kick first round manually to prevent one second lag when setting up
- * the poll interval */
- XHR._r();
- XHR._i = window.setInterval(XHR._r, 1000);
- }
-}
-
-XHR.running = function()
-{
- return !!(XHR._r && XHR._i);
-}