monitor-dashboard
Advanced tools
Comparing version 0.6.1 to 0.6.2
// grunt.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For all details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
@@ -6,0 +6,0 @@ var exec = require('child_process').exec; |
@@ -0,1 +1,10 @@ | ||
0.6.2 / 2013-11-23 | ||
================== | ||
* New home page | ||
* Updated monitor dependencies | ||
* Removed home page templates | ||
* Moved home and 404 page to core-monitor | ||
* Added a better default scrollbar for webkit browsers | ||
0.6.1 / 2013-11-07 | ||
@@ -2,0 +11,0 @@ ================== |
// index.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
// AppTemplate.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,2 +9,3 @@ | ||
var Monitor = root.Monitor || require('monitor'), | ||
logger = Monitor.getLogger('AppTemplate'), | ||
UI = Monitor.UI, | ||
@@ -15,4 +16,10 @@ Backbone = Monitor.Backbone, | ||
Path = require('path'), | ||
appName = process.argv[3]; | ||
Template = UI.Template, | ||
appPath = process.argv[3], | ||
appName = Path.basename(appPath), | ||
shortAppName = Path.basename(appPath, '-monitor'); | ||
// Log [INFO] to the console for this process | ||
Monitor.Log.on('info.*', Monitor.Log.console); | ||
/** | ||
@@ -24,20 +31,22 @@ * This module builds an application template on load. It is *not* asynchronous | ||
// Splash | ||
console.log('[INFO] Creating monitor-dashboard application: ' + appName); | ||
logger.info('Splash', 'Creating monitor-dashboard application: ' + appName); | ||
// Warn if the application doesn't end in -monitor | ||
if (appName.substr(-8) !== '-monitor') { | ||
console.warn('[WARN] By convention, monitor apps should be named {appName}-monitor'); | ||
console.warn('[WARN] where appName is the thing being monitored.'); | ||
if (appName === shortAppName) { | ||
logger.warn('Convention', 'By convention, monitor apps should be named {appName}-monitor'); | ||
logger.warn('Convention', 'where appName is the thing being monitored.'); | ||
} | ||
// Try creating the appName directory | ||
// Try creating the application directory | ||
try { | ||
FS.mkdirSync(appName); | ||
FS.mkdirSync(appPath); | ||
} catch(e) { | ||
if (e.code === 'EEXIST') { | ||
console.error('[ERROR] The application directory "' + appName + '" already exists. Not overwriting.'); | ||
logger.fatal('Mkdir', 'The application directory "' + appName + '" already exists. Not overwriting.'); | ||
} | ||
if (e.code === 'ENOENT') { | ||
logger.fatal('Mkdir', 'Cannot create app directory "' + appName + '". Reason: directory "' + Path.dirname(appPath) + '" not found'); | ||
} | ||
else { | ||
console.error('[ERROR] Cannot create the directory "' + appName + '" for the application. Reason:'); | ||
console.error('[ERROR] ' + e.toString()); | ||
logger.fatal('Mkdir', 'Cannot create the directory "' + appName + '" for the application. Reason:' + e.toString()); | ||
} | ||
@@ -47,10 +56,61 @@ process.exit(1); | ||
// Build the template parameters | ||
var templateParams = { | ||
appName: appName, | ||
appDescription: shortAppName.substr(0,1).toUpperCase() + shortAppName.substr(1) + ' Monitor', | ||
shortAppName: shortAppName | ||
}; | ||
// Output the specified file from the template directory | ||
var outputFile = function(dirpath, file) { | ||
var templateFile = Path.join(__dirname, '../template/app', dirpath, file), | ||
outputFile = Path.join(appPath, dirpath, file); | ||
try { | ||
var template = new Template({text: FS.readFileSync(templateFile).toString(), watchFile:false}); | ||
FS.writeFileSync(outputFile, template.apply(templateParams)); | ||
} catch(e) { | ||
logger.fatal('Template', 'Cannot process template file: ' + templateFile + '. reason: ', e.toString()); | ||
process.exit(1); | ||
} | ||
} | ||
// Traverse the app template directory, outputting all files | ||
var outputDir = function(dirpath) { | ||
try { | ||
// Make the directory under the app | ||
if (dirpath !== '/') { | ||
FS.mkdirSync(Path.join('.', appPath, dirpath)); | ||
} | ||
// Read the template directory | ||
var templateDir = Path.join(__dirname, '../template/app', dirpath); | ||
var files = FS.readdirSync(templateDir); | ||
files.forEach(function(file) { | ||
var fullFile = Path.join(templateDir, file); | ||
var stat = FS.statSync(fullFile); | ||
if (stat.isDirectory()) { | ||
// Go into it | ||
outputDir(Path.join(dirpath, file)); | ||
} | ||
else { | ||
outputFile(dirpath, file); | ||
} | ||
}); | ||
} catch(e) { | ||
logger.fatal('Template', 'Cannot process template directory: ' + dirpath + '. reason: ', e.toString()); | ||
process.exit(1); | ||
} | ||
} | ||
outputDir('/'); | ||
// Success | ||
console.log('[INFO] Created the monitor-dashboard app in directory: ./' + appName); | ||
console.log('[INFO] To run the application:'); | ||
console.log('[INFO] $ cd ' + appName); | ||
console.log('[INFO] $ npm install'); | ||
console.log('[INFO] $ node monitor'); | ||
logger.info('Success', 'Created the monitor-dashboard app in directory: ' + appPath); | ||
logger.info('Success', 'To run the application:'); | ||
logger.info('Success', '$ cd ' + appPath); | ||
logger.info('Success', '$ npm install'); | ||
logger.info('Success', '$ node monitor'); | ||
process.exit(0); | ||
}(this)); |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
// IconChooser.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
// NetworkMap.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
// Page.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
// PagesProbe.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -142,5 +142,2 @@ | ||
var url = Path.normalize(request.url); | ||
if (url === '' || url === '/') { | ||
url = request.url = '/index'; | ||
} | ||
if (url === '/favicon.ico') { | ||
@@ -151,8 +148,2 @@ var faviconUrl = t.site.get('favicon'); | ||
// Redirect without the trailing slash | ||
if (url.substr(-1) === '/') { | ||
response.writeHead(302, {Location: url.substr(0, url.length - 1)}); | ||
return response.end(); | ||
} | ||
// Remove the leading slash for page manipulation | ||
@@ -265,4 +256,10 @@ url = url.substr(1); | ||
var t = this, | ||
originalUrl = url, | ||
page = null; | ||
// Change urls that end in / to /index | ||
if (url.substr(-1) === '/') { | ||
url = url + 'index'; | ||
} | ||
// Return if it's in cache | ||
@@ -276,8 +273,20 @@ page = pageCache.get(url); | ||
page = new Page({id: url}); | ||
page.fetch({liveSync: true}, function(error) { | ||
page.fetch({liveSync: true, silenceErrors: true}, function(error) { | ||
// Process a 404. This returns a transient page copied from | ||
// the default 404 page, with the id replaced by the specified url. | ||
if (error && error.code === 'NOTFOUND' && url !== '404') { | ||
t._getPage('404', function(error, page404) { | ||
if (error && error.code === 'NOTFOUND' && url !== '/app/core/404') { | ||
// Default the home page if notfound | ||
if (originalUrl === '/') { | ||
return t._getPage('/app/core/index', callback); | ||
} | ||
// Default the 404 page if notfound | ||
if (originalUrl === '/404') { | ||
return t._getPage('/app/core/404', callback); | ||
} | ||
// Otherwise it's a new page. Create it. | ||
t._getPage('/404', function(error, page404) { | ||
if (error) { | ||
@@ -372,7 +381,9 @@ console.error("Error loading the 404 page", error); | ||
t.site = new Site(); | ||
t.site.fetch({liveSync: true}, function(error) { | ||
t.site.fetch({liveSync: true, silenceErrors:true}, function(error) { | ||
// Initialize the site if it's not found | ||
if (error && error.code === 'NOTFOUND') { | ||
return t._initializeSite(onSiteLoad); | ||
t.site = new Site(); | ||
t.site.id = null; // This causes a create vs. update on save | ||
return t.site.save({}, {liveSync: true}, onSiteLoad); | ||
} else if (error) { | ||
@@ -418,57 +429,2 @@ return onSiteLoad(error); | ||
/** | ||
* Initialize the node_monitor web site | ||
* | ||
* This is called when the Site object isn't found. It creates the Site | ||
* object, and all baseline site pages. | ||
* | ||
* | ||
* @protected | ||
* @method _initializeSite | ||
* @param callback {Function(error)} - Called when initialized (or error) | ||
*/ | ||
_initializeSite: function(callback) { | ||
// Create and persist a default Site object | ||
var t = this; | ||
t.site = new Site(); | ||
t.site.id = null; // This causes a create vs. update on save | ||
t.site.save({}, {liveSync: true}, function(error) { | ||
if (error) { | ||
return callback(error); | ||
} | ||
// Create the common site pages from templates | ||
var isMonitorApp = PACKAGE_JSON.dependencies && _.find(_.keys(PACKAGE_JSON.dependencies), function(keyword){ return keyword === 'monitor-dashboard'; }), | ||
indexTemplate = isMonitorApp ? 'index-app' : 'index', | ||
pages = [indexTemplate, '404'], | ||
numLeft = pages.length, | ||
errors = []; | ||
// Called when each page is done | ||
function whenDone(error) { | ||
if (error) { | ||
errors.push(error); | ||
} | ||
if (--numLeft === 0) { | ||
callback(errors.length ? errors : null); | ||
} | ||
} | ||
// Load each internal page | ||
pages.forEach(function(page) { | ||
var tmpl = new Template({path: __dirname + '/../template/' + page + '.json'}), | ||
parsed; | ||
try { | ||
parsed = JSON.parse(tmpl.get('text')); | ||
} catch (e) { | ||
console.error('JSON error reading page template: ' + page + '.json'); | ||
process.exit(1); | ||
} | ||
var model = new Page(parsed); | ||
model.save(whenDone); | ||
}); | ||
}); | ||
}, | ||
/** | ||
* Discover and load all node_monitor application modules | ||
@@ -475,0 +431,0 @@ * |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
// Sidebar.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
// Site.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
// Template.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
// Tour.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
// ToursProbe.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
// Tree.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
// TreeProbe.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
@@ -6,3 +6,3 @@ /*global window document $ localStorage alert*/ | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -9,0 +9,0 @@ |
// Bootstrap for standalone development | ||
require('monitor'); | ||
require('monitor-dashboard'); |
@@ -36,5 +36,5 @@ {{appName}} | ||
npm install -g monitor-dashboard | ||
npm install monitor-dashboard | ||
npm start monitor-dashboard | ||
See [monitor-dashboard](http://lorenwest.github.io/monitor-dashboard) for more information about the node monitor dashboard. | ||
See [monitor-dashboard](http://github.com/lorenwest/monitor-dashboard) for more information about the node monitor dashboard. |
{ | ||
"id": "/index", | ||
"title": "Home - Node Monitor", | ||
"description": "Remote Monitoring and Control Panels for Node.js", | ||
"title": "Home - {{appDescription}}", | ||
"description": "{{appDescription}}", | ||
"components": [ | ||
{ | ||
"id": "c0", | ||
"viewClass": "core.Html", | ||
"viewOptions": { | ||
"title": "", | ||
"background": false, | ||
"htmlValue": "<div class=\" wysiwyg-text-align-center\">\n<a href=\"http://lorenwest.github.com/monitor-dashboard\" target=\"_blank\">\nCopyright ©2010-2013</a>\n | \nMay be used and distributed under the \n<a href=\"https://github.com/lorenwest/monitor-dashboard/blob/master/LICENSE\">\nMIT license</a>\n | \n<a href=\"https://github.com/lorenwest/monitor-dashboard/wiki/FAQ\" target=\"_blank\">\nQuestions</a>\n | \n<a href=\"https://twitter.com/intent/tweet?source=webclient&text=Hey%20%23nodemonitor%20community%2C%20\" target=\"_blank\">\nComments</a>\n | \n<a href=\"javascript:Monitor.UI.pageView.showAbout()\">\nAbout & Credits</a>\n</div>" | ||
}, | ||
"css": { | ||
".nm-cv": "top:620px; left:0px; z-index:3;", | ||
".nm-cv-viewport": "height:20px; width:750px;" | ||
}, | ||
"monitor": {} | ||
} | ||
] | ||
} |
{ | ||
"id": "default", | ||
"name": "Node Monitor", | ||
"name": "App Site", | ||
"logo": "/static/css/default/images/monitor.jpg", | ||
@@ -5,0 +5,0 @@ "favicon": "/static/css/default/images/favicon.ico", |
@@ -12,10 +12,53 @@ { | ||
"background": false, | ||
"htmlValue": "<div class=\" wysiwyg-text-align-center\">\n<a href=\"http://lorenwest.github.com/monitor-dashboard\" target=\"_blank\">\nCopyright ©2010-2013</a>\n | \nMay be used and distributed under the \n<a href=\"https://github.com/lorenwest/monitor-dashboard/blob/master/LICENSE\">\nMIT license</a>\n | \n<a href=\"https://github.com/lorenwest/monitor-dashboard/wiki/FAQ\" target=\"_blank\">\nQuestions</a>\n | \n<a href=\"https://twitter.com/intent/tweet?source=webclient&text=Hey%20%23nodemonitor%20community%2C%20\" target=\"_blank\">\nComments</a>\n | \n<a href=\"javascript:Monitor.UI.pageView.showAbout()\">\nAbout & Credits</a>\n</div>" | ||
"htmlValue": "<div class=\" wysiwyg-text-align-center\">\n<a href=\"https://github.com/lorenwest/monitor-dashboard\" target=\"_blank\" title=\"Review the source code on GitHub\" data-placement=\"top\">\nCopyright ©2010-2013</a> | May be freely used and distributed under the \n<a href=\"https://github.com/lorenwest/monitor-dashboard/blob/master/LICENSE\" title=\"View the license\" data-placement=\"top\">\nMIT license</a> | <i class=\"icon-question-sign\"></i> <a href=\"https://github.com/lorenwest/monitor-dashboard/issues\" target=\"_blank\" title=\"View or add issues on GitHub\" data-placement=\"top\">Questions</a> | <i class=\"icon-bullhorn\"></i> <a href=\"https://twitter.com/intent/tweet?source=webclient&text=%23NodeMonitor%20%23NodeJS\" target=\"_blank\" title=\"Tweet to #NodeMonitor\" data-placement=\"top\">Comments</a> <i class=\"icon-twitter\"></i> | <a href=\"javascript:Monitor.UI.pageView.showAbout()\" title=\"About Node Monitor\" data-placement=\"top\">About & Credits</a>\n</div>" | ||
}, | ||
"css": { | ||
".nm-cv": "top:620px; left:0px; z-index:3;", | ||
".nm-cv-viewport": "height:20px; width:750px;" | ||
} | ||
".nm-cv": "top:670px; left:0px; z-index:3;", | ||
".nm-cv-viewport": "height:20px; width:890px;" | ||
}, | ||
"monitor": {} | ||
}, | ||
{ | ||
"id": "c2", | ||
"viewClass": "core.Html", | ||
"viewOptions": { | ||
"htmlValue": "<img style=\"height:100%; width=100%;\" src=\"/static/css/default/images/dashboard.jpg\">", | ||
"background": true, | ||
"title": "" | ||
}, | ||
"css": { | ||
".nm-cv": "top:200px; z-index:4; left:510px;", | ||
".nm-cv-viewport": "height:400px; width:350px;" | ||
}, | ||
"monitor": {} | ||
}, | ||
{ | ||
"id": "c3", | ||
"viewClass": "core.Html", | ||
"viewOptions": { | ||
"htmlValue": "<div style=\"background: #010101; border-radius:6px; height:100%; box-sizing:border-box; padding:15px; font-size:52px; font-weight:300; text-align:center;line-height:1.15em\">Welcome to the<br>Node Monitor Dashboard</div>", | ||
"background": true, | ||
"title": "" | ||
}, | ||
"css": { | ||
".nm-cv": "top:10px; z-index:5; left:10px;", | ||
".nm-cv-viewport": "height:150px; width:850px;" | ||
}, | ||
"monitor": {} | ||
}, | ||
{ | ||
"id": "c4", | ||
"viewClass": "core.Html", | ||
"viewOptions": { | ||
"htmlValue": "<style type=\"text/css\">\n#text p {\n font-weight:300;\n margin: 0 0 40px 10px;\n font-size: 16px;\n}\n#text h3 {\n font-size:32px;\n font-weight:300;\n margin: 10px 0 10px 0\n}\n</style>\n<div id=\"text\">\n<h3>Dashboards</h3>\n<p>Here's something about dashboards\n</p>\n<h3>Tours</h3>\n<p>\nSomething about tours\n</p>\n<h3>Apps</h3>\n<p>\nSomething about apps\n</p>\n</div>", | ||
"background": false, | ||
"title": "" | ||
}, | ||
"css": { | ||
".nm-cv": "top:200px; z-index:6; left:10px;", | ||
".nm-cv-viewport": "height:407px; width:480px;" | ||
}, | ||
"monitor": {} | ||
} | ||
] | ||
} |
// monitor.js (c) 2010-2013 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "monitor-dashboard", | ||
"description": "Dashboard UI for node monitor", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"main": "monitor.js", | ||
@@ -12,3 +12,3 @@ "keywords": ["monitor", "dashboard", "node-monitor", "remote control", "monitoring", "control", "realtime", "control panel"], | ||
}, | ||
"homepage": "http://lorenwest.github.com/monitor-dashboard/", | ||
"homepage": "http://github.com/lorenwest/monitor-dashboard/", | ||
"repository": { | ||
@@ -31,3 +31,3 @@ "type": "git", | ||
"backbone-callbacks": ">=0.1.5 <0.2.0", | ||
"monitor": ">=0.6.1 <0.7.0", | ||
"monitor": ">=0.6.3 <0.7.0", | ||
"core-monitor": ">=0.6.1 <0.7.0" | ||
@@ -34,0 +34,0 @@ }, |
// ContainedModelTest.js (c) 2012 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
// TemplateTest.js (c) 2012 Loren West and other contributors | ||
// May be freely distributed under the MIT license. | ||
// For further details and documentation: | ||
// http://lorenwest.github.com/monitor-dashboard | ||
// http://github.com/lorenwest/monitor-dashboard | ||
(function(root){ | ||
@@ -6,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1669957
1
119
18911
- Removedmonitor-dashboard@0.6.7(transitive)
Updatedmonitor@>=0.6.3 <0.7.0