Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Commit

Permalink
about route added, iphone style on-off buttons added
Browse files Browse the repository at this point in the history
  • Loading branch information
Erhan Gundogan committed Dec 25, 2011
1 parent d38b199 commit 74c97ec
Show file tree
Hide file tree
Showing 24 changed files with 512 additions and 6 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Dependencies
+ express >= 2.5.1
+ jade >= 0.19.0
+ mongodb = 0.9.7
+ async >= 0.1.15

You can clone github project or use npm to install.

Expand Down
20 changes: 20 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ function getRoute(base, command, template) {
app.get("/", function(req, res){
res.render("index");
});

app.get("/about", function(req, res){
res.render("about");
});

app.get("/getServer",
getRoute(monitor, "getServer", "modules/monitor/getServer"));

Expand All @@ -109,6 +114,21 @@ app.get("/collectionsInfo",
app.get("/collectionsNames",
getRoute(monitor, "collectionNames", "modules/monitor/collectionsNames"));

app.get("/collectionsNames",
getRoute(monitor, "collectionNames", "modules/monitor/collectionsNames"));

app.post("/profilingLevel", function(req, res, next) {
var result = req.body.set;
if (result) {
// set profiling on
} else {
// set profiling off
}
//res.header('Content-Type', 'application/json');
res.json({ success:true });
res.end();
});


app.listen(settings.server.port);
console.log("Express server listening on port %d in %s mode",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mon4mongo"
, "author": "Erhan Gundogan <erhan@trposta.net>"
, "version": "0.0.3"
, "version": "0.0.5"
, "private": false
, "dependencies": {
"express": ">= 2.5.1"
Expand Down
Binary file added public/images/ios-style-checkboxes/off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/ios-style-checkboxes/on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/ios-style-checkboxes/slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/ios-style-checkboxes/slider_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/ios-style-checkboxes/slider_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/ios-style-checkboxes/slider_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/iphone-style-checkboxes/off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/iphone-style-checkboxes/on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/iphone-style-checkboxes/slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
284 changes: 284 additions & 0 deletions public/js/jquery/iphone-style-checkboxes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions public/js/jquery/jquery.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/js/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ $(function(){
bindAddress(item.requestAddress);
});
});


});

function bindAddress(address) {
Expand Down
Loading

0 comments on commit 74c97ec

Please sign in to comment.