This repository has been archived by the owner on Nov 23, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- refactored stateStorage to EventEmitter - ignore compiled files - fixed state for clients arrangement - style panic-state on mainpage - fixed min and max-width on clients
- Loading branch information
Stefan Schult
committed
Jul 19, 2015
1 parent
378cae9
commit 7ce65e4
Showing
12 changed files
with
201 additions
and
258 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
var util = require('util'); | ||
var EventEmitter = require('events').EventEmitter; | ||
function StateStorage() { | ||
var showSettings = true; | ||
var arrangeClients = false; | ||
var editable = false; | ||
|
||
Object.defineProperties(this, { | ||
show: { | ||
enumerable: true, | ||
get: function () { | ||
return showSettings; | ||
}, | ||
set: function (val) { | ||
showSettings = val; | ||
if (showSettings == true) { | ||
this.arrangeClients = false; | ||
} | ||
|
||
this.emit('show', showSettings); | ||
} | ||
}, | ||
arrangeClients: { | ||
enumerable: true, | ||
get: function () { | ||
return arrangeClients; | ||
}, | ||
set: function (val) { | ||
arrangeClients = val; | ||
|
||
this.emit('change'); | ||
this.emit('arrangeClients', arrangeClients); | ||
|
||
} | ||
}, | ||
editable: { | ||
enumerable: true, | ||
get: function () { | ||
return !showSettings; | ||
} | ||
} | ||
}); | ||
} | ||
|
||
util.inherits(StateStorage, EventEmitter); | ||
|
||
var stateStorage = new StateStorage(); | ||
|
||
module.exports = stateStorage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
@import "../../../node_modules/bootstrap/less/bootstrap"; | ||
@import "vendor/bootstrap"; | ||
@import "../../../node_modules/bootstrap/less/theme"; | ||
@import "../../../node_modules/font-awesome/less/font-awesome"; | ||
|
||
@import "common"; | ||
@import "clients"; | ||
@import "client"; | ||
@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.3.0/fonts"; // for referencing Bootstrap CDN font files directly | ||
|
||
@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.3.0/fonts"; | ||
// for referencing Bootstrap CDN font files directly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/*! | ||
* Bootstrap v3.3.5 (http://getbootstrap.com) | ||
* Copyright 2011-2015 Twitter, Inc. | ||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | ||
*/ | ||
|
||
// Core variables and mixins | ||
@import "../../../../node_modules/bootstrap/less/variables.less"; | ||
@import "../../../../node_modules/bootstrap/less/mixins.less"; | ||
|
||
// Reset and dependencies | ||
@import "../../../../node_modules/bootstrap/less/normalize.less"; | ||
//@import "../../../../node_modules/bootstrap/less/print.less"; | ||
//@import "../../../../node_modules/bootstrap/less/glyphicons.less"; | ||
|
||
// Core CSS | ||
@import "../../../../node_modules/bootstrap/less/scaffolding.less"; | ||
@import "../../../../node_modules/bootstrap/less/type.less"; | ||
//@import "../../../../node_modules/bootstrap/less/code.less"; | ||
//@import "../../../../node_modules/bootstrap/less/grid.less"; | ||
//@import "../../../../node_modules/bootstrap/less/tables.less"; | ||
@import "../../../../node_modules/bootstrap/less/forms.less"; | ||
@import "../../../../node_modules/bootstrap/less/buttons.less"; | ||
|
||
// Components | ||
@import "../../../../node_modules/bootstrap/less/component-animations.less"; | ||
//@import "../../../../node_modules/bootstrap/less/dropdowns.less"; | ||
@import "../../../../node_modules/bootstrap/less/button-groups.less"; | ||
@import "../../../../node_modules/bootstrap/less/input-groups.less"; | ||
//@import "../../../../node_modules/bootstrap/less/navs.less"; | ||
//@import "../../../../node_modules/bootstrap/less/navbar.less"; | ||
//@import "../../../../node_modules/bootstrap/less/breadcrumbs.less"; | ||
//@import "../../../../node_modules/bootstrap/less/pagination.less"; | ||
//@import "../../../../node_modules/bootstrap/less/pager.less"; | ||
@import "../../../../node_modules/bootstrap/less/labels.less"; | ||
//@import "../../../../node_modules/bootstrap/less/badges.less"; | ||
//@import "../../../../node_modules/bootstrap/less/jumbotron.less"; | ||
//@import "../../../../node_modules/bootstrap/less/thumbnails.less"; | ||
//@import "../../../../node_modules/bootstrap/less/alerts.less"; | ||
//@import "../../../../node_modules/bootstrap/less/progress-bars.less"; | ||
//@import "../../../../node_modules/bootstrap/less/media.less"; | ||
//@import "../../../../node_modules/bootstrap/less/list-group.less"; | ||
@import "../../../../node_modules/bootstrap/less/panels.less"; | ||
@import "../../../../node_modules/bootstrap/less/responsive-embed.less"; | ||
@import "../../../../node_modules/bootstrap/less/wells.less"; | ||
@import "../../../../node_modules/bootstrap/less/close.less"; | ||
|
||
// Components w/ JavaScript | ||
//@import "../../../../node_modules/bootstrap/less/modals.less"; | ||
//@import "../../../../node_modules/bootstrap/less/tooltip.less"; | ||
//@import "../../../../node_modules/bootstrap/less/popovers.less"; | ||
//@import "../../../../node_modules/bootstrap/less/carousel.less"; | ||
|
||
// Utility classes | ||
@import "../../../../node_modules/bootstrap/less/utilities.less"; | ||
@import "../../../../node_modules/bootstrap/less/responsive-utilities.less"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<section class="clients-waiting active"><i class="fa fa-cog fa-spin fa-2x"></i> <span>Waiting for Clients…</span></section> | ||
<section class="clients-waiting active"> | ||
<div><i class="fa fa-cog fa-spin fa-2x"></i> <span>Waiting for Clients…</span></div></section> | ||
<section class="clients js-clients"> | ||
</section> |