-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial Machinery interface for Phoenix Apps #14
Conversation
lib/web/static/js/app.js
Outdated
|
||
$("#menu-toggle").click(function(e) { | ||
e.preventDefault(); | ||
$("#wrapper").toggleClass("toggled"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings must use singlequote.
lib/web/static/js/app.js
Outdated
|
||
$("#menu-toggle").click(function(e) { | ||
e.preventDefault(); | ||
$("#wrapper").toggleClass("toggled"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings must use singlequote.
lib/web/static/js/app.js
Outdated
|
||
$("#menu-toggle").click(function(e) { | ||
e.preventDefault(); | ||
$("#wrapper").toggleClass("toggled"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible undefined variable: '$' is not defined.
If this is intended to be a global variable, you can supress this warning by adding a /*global [VARIABLE NAME] */
comment on this file or set it under the globals
section of your .eslintrc
configuration.
lib/web/static/js/app.js
Outdated
// If you no longer want to use a dependency, remember | ||
// to also remove its path from "config.paths.watched". | ||
|
||
$("#menu-toggle").click(function(e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings must use singlequote.
lib/web/static/js/app.js
Outdated
// If you no longer want to use a dependency, remember | ||
// to also remove its path from "config.paths.watched". | ||
|
||
$("#menu-toggle").click(function(e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible undefined variable: '$' is not defined.
If this is intended to be a global variable, you can supress this warning by adding a /*global [VARIABLE NAME] */
comment on this file or set it under the globals
section of your .eslintrc
configuration.
lib/web/static/css/app.css
Outdated
} | ||
} | ||
|
||
.topbar h1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heading (h1) should not be qualified.
lib/web/static/css/app.css
Outdated
margin: 0px 10px; | ||
} | ||
|
||
nav.topbar { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rule doesn't have all its properties in alphabetical ordered.
lib/web/static/css/app.css
Outdated
padding: 15px 15px; | ||
background-color: rgb(241, 239, 239); | ||
border-radius: .3rem; | ||
margin: 0px 10px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Values of 0 shouldn't have units specified.
lib/web/static/css/app.css
Outdated
color: #666; | ||
} | ||
|
||
div.filled { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Element (div.filled) is overqualified, just use .filled without element name.
lib/web/static/css/app.css
Outdated
color: #666; | ||
} | ||
|
||
div.filled { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rule doesn't have all its properties in alphabetical ordered.
56a7e3e
to
b1db36b
Compare
b1db36b
to
8ab94f0
Compare
8ab94f0
to
db28422
Compare
db28422
to
c1d682b
Compare
c1d682b
to
bbf63ce
Compare
bbf63ce
to
b169047
Compare
226a730
to
5d3cb7c
Compare
e719eae
to
7ab2340
Compare
7ab2340
to
e34e4fa
Compare
lib/web/static/js/app.js
Outdated
resourcesLists.insertAdjacentHTML('beforeend', template); | ||
}) | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
lib/web/static/js/app.js
Outdated
</div> | ||
` | ||
resourcesLists.insertAdjacentHTML('beforeend', template); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
lib/web/static/js/app.js
Outdated
</div> | ||
</div> | ||
` | ||
resourcesLists.insertAdjacentHTML('beforeend', template); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible undefined variable: 'template' is not defined.
If this is intended to be a global variable, you can supress this warning by adding a /*global [VARIABLE NAME] */
comment on this file or set it under the globals
section of your .eslintrc
configuration.
lib/web/static/js/app.js
Outdated
</div> | ||
</div> | ||
</div> | ||
` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
lib/web/static/js/app.js
Outdated
<table class="table table-striped"> | ||
<tbody> | ||
${ | ||
"lol" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings must use singlequote.
lib/web/static/js/app.js
Outdated
list.parentNode.querySelector('.info').innerHTML = error_alert_markup | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
lib/web/static/js/app.js
Outdated
if (xhr.status === OK) { | ||
callback(JSON.parse(xhr.response)) | ||
} else { | ||
list.parentNode.querySelector('.info').innerHTML = error_alert_markup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
lib/web/static/js/app.js
Outdated
if (xhr.status === OK) { | ||
callback(JSON.parse(xhr.response)) | ||
} else { | ||
list.parentNode.querySelector('.info').innerHTML = error_alert_markup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identifier 'error_alert_markup' is not in camel case.
Enforce the usage of camel case to have a consistent codebase.
lib/web/static/js/app.js
Outdated
|
||
if (xhr.readyState === DONE) { | ||
if (xhr.status === OK) { | ||
callback(JSON.parse(xhr.response)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
lib/web/static/js/app.js
Outdated
|
||
getResourcesForState(list, callback) { | ||
let xhr = new XMLHttpRequest(); | ||
let state = list.dataset.state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
a8ca7d9
to
5db5740
Compare
Related to: #4
This is a major feature for Machinery before 1.0.
The idea is to provide a GUI that represents the states and the resources at each state.
This will provide a helpful and good way for developers to debug or even as an internal (admin like) tool.
Merging this will add a bunch of new dependencies to Machinery, because of that I've been considering spinning it off as its own project, but not sure about it yet.
This is how it looks so far:
