Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refresh button added

  • Loading branch information...
commit d38b199233aaf6f717e7f19cc6b39e18f0e79348 1 parent 08f0b61
@klarna-test klarna-test authored
View
2  app.js
@@ -110,6 +110,6 @@ app.get("/collectionsNames",
getRoute(monitor, "collectionNames", "modules/monitor/collectionsNames"));
-app.listen(3000);
+app.listen(settings.server.port);
console.log("Express server listening on port %d in %s mode",
app.address().port, app.settings.env);
View
28 public/js/methods.js
@@ -36,6 +36,11 @@ vAlignment.prototype.calculateColumns = function() {
return this;
}
+/**
+ * sidebar links jQuery bindings.
+ *
+ */
+
$(function(){
[ { navLinkID: "#pingLink",
bodyElementID: "#pingServer",
@@ -63,18 +68,19 @@ $(function(){
return;
}
- $.ajax({
- url: item.requestAddress,
- dataType: "html",
- success: function(err, result) {
- var vAlign = new vAlignment();
- var element = "#" + vAlign.calculateColumns().getKey().result.key;
- $(element).prepend( err || result );
- }
- });
+ bindAddress(item.requestAddress);
});
});
});
-
-
+function bindAddress(address) {
+ $.ajax({
+ url: address,
+ dataType: "html",
+ success: function(err, result) {
+ var vAlign = new vAlignment();
+ var element = "#" + vAlign.calculateColumns().getKey().result.key;
+ $(element).prepend( err || result );
+ }
+ });
+}
View
10 public/style/main.css
@@ -21,10 +21,10 @@ body {
.close {
opacity: 1;
color: #c00;
- font-size: 30px;
- margin: 0;
+ font-size: 24px;
+ margin: 0 0 0 3px;
border: 1px solid #c00;
- padding: 4px 2px;
+ padding: 5px;
border-radius: 3px;
}
@@ -79,10 +79,6 @@ footer {
width: 150px;
}
-.not-overflow {
- overflow: scroll;
-}
-
.info-table {
table-layout: fixed;
}
View
4 settings.js
@@ -1,3 +1,7 @@
exports.theme = {
columnMode: true
+}
+
+exports.server = {
+ port: 3000
}
View
4 views/master/sidebar.jade
@@ -5,9 +5,9 @@
li
a(href="#", id="settingsLink") Current Server
li
- a(href="#", id="collectionsInfoLink") Server Collections Information
+ a(href="#", id="collectionsInfoLink") Collections Information
li
- a(href="#", id="collectionsNamesLink") Server Collections
+ a(href="#", id="collectionsNamesLink") Collection Names
h5 Administration
ul
li
View
5 views/modules/admin/getInformation.jade
@@ -2,8 +2,9 @@
- if (settings.theme.columnMode)
- classes.push("span6");
-div#getInformation(class=classes)
- a.close(href="#", onclick="$('#getInformation').remove()") ×
+#getInformation(class=classes)
+ a.close(href="#", onclick="$('#getInformation').remove();") ×
+ a.close(href="#", onclick="bindAddress('/getInformation'); $('#getInformation').remove();")
h4 Server information
- var tableClasses = ["bordered-table", "zebra-striped", "condensed-table", "info-table"];
table(class=tableClasses)
View
3  views/modules/admin/pingServer.jade
@@ -2,8 +2,9 @@
- if (settings.theme.columnMode)
- classes.push("span6");
-div#pingServer(class=classes)
+#pingServer(class=classes)
a.close(href="#", onclick="$('#pingServer').remove()") ×
+ a.close(href="#", onclick="$('#pingServer').remove(); bindAddress('/pingServer');")
h4 Ping result
- if (result.is_error())
p Error
View
3  views/modules/admin/profilingLevel.jade
@@ -2,8 +2,9 @@
- if (settings.theme.columnMode)
- classes.push("span6");
-div#profilingLevel(class=classes)
+#profilingLevel(class=classes)
a.close(href="#", onclick="$('#profilingLevel').remove()") ×
+ a.close(href="#", onclick="$('#profilingLevel').remove(); bindAddress('/profilingLevel');")
h4 Profiling level
p(style="text-transform: uppercase;")=result
.alert-actions
View
3  views/modules/monitor/collectionsInfo.jade
@@ -2,8 +2,9 @@
- if (settings.theme.columnMode)
- classes.push("span6");
-div#collectionsInfo(class=classes)
+#collectionsInfo(class=classes)
a.close(href="#", onclick="$('#collectionsInfo').remove()") ×
+ a.close(href="#", onclick="$('#collectionsInfo').remove(); bindAddress('/collectionsInfo');")
h4 Collections information
- var tableClasses = ["bordered-table", "zebra-striped", "condensed-table", "info-table"];
table(class=tableClasses)
View
1  views/modules/monitor/collectionsNames.jade
@@ -4,6 +4,7 @@
div#collectionsNames(class=classes)
a.close(href="#", onclick="$('#collectionsNames').remove()") ×
+ a.close(href="#", onclick="$('#collectionsNames').remove(); bindAddress('/collectionsNames');")
h4 Collections
- var tableClasses = ["bordered-table", "zebra-striped", "condensed-table", "info-table"];
table(class=tableClasses)
View
1  views/modules/monitor/getServer.jade
@@ -4,6 +4,7 @@
div#getServer(class=classes)
a.close(href="#", onclick="$('#getServer').remove()") ×
+ a.close(href="#", onclick="$('#getServer').remove(); bindAddress('/getServer');")
h4 Server settings
- var tableClasses = ["bordered-table", "zebra-striped", "condensed-table", "info-table"];
table(class=tableClasses)
Please sign in to comment.
Something went wrong with that request. Please try again.