зеркало из https://github.com/mozilla/betachannel.git
Couple improvements towards issue#37
This commit is contained in:
Родитель
ba0af63bd0
Коммит
2fc8d05749
|
@ -1,3 +1,7 @@
|
|||
# Mozilla dev is
|
||||
|
||||
ssh ozten@ec2-54-198-98-151.compute-1.amazonaws.com
|
||||
|
||||
# AWS - Easy Deployment of BetaFox
|
||||
|
||||
1) Launch medium ec2 instance with Ubuntu 14.10 and not it's Public DNS
|
||||
|
|
|
@ -21,6 +21,7 @@ module.exports = function(config) {
|
|||
console.log(err.stack || err);
|
||||
return res.send('DB Error', 500);
|
||||
}
|
||||
console.log(req.files);
|
||||
if (!req.files || !req.files.app_package || !req.files.app_package.path) {
|
||||
return res.send(400, 'Bad upload');
|
||||
}
|
||||
|
|
|
@ -1 +1,7 @@
|
|||
{% extends "layout.html" %} {% block title %}BetaFox - Dashboard{% endblock %} {% block template_name %}dashboard.html{% endblock %} {% block content %} {% include "includes/_upload_app_form.html" %} {% endblock %}
|
||||
{% extends "layout.html" %}
|
||||
{% block title %}BetaFox - Dashboard{% endblock %}
|
||||
{% block template_name %}dashboard.html{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Upload A Packaged App</h3>
|
||||
{% include "includes/_upload_app_form.html" %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<!-- TODO form should be able to POST to either /apps or /app/:appId -->
|
||||
<form action="/apps" method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" id="csrf_token" name="_csrf" value="{{ csrf }}" />
|
||||
<label for="app_package">Upload packaged app zip</label>
|
||||
<input type="file" id="app_package" name="app_package" />
|
||||
<input type="submit" name="submit" value="Upload" />
|
||||
<label for="app_package">Choose zip file</label>
|
||||
<input type="file" id="app_package" name="app_package"/>
|
||||
</form>
|
||||
|
|
|
@ -26,17 +26,21 @@ img {
|
|||
|
||||
#main-content {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: rows;
|
||||
flex: 12;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
#container {
|
||||
padding-top: 25px;
|
||||
padding-bottom: 25px;
|
||||
flex: 5;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
flex: 2;
|
||||
padding-top: 25px;
|
||||
padding-bottom: 25px;
|
||||
border-left: solid 1px grey;
|
||||
padding-left: 2.5%;
|
||||
padding-right: 2.5%;
|
||||
|
|
|
@ -2,4 +2,11 @@
|
|||
$('.logo h1').fitText(0.43, {
|
||||
minFontSize: '20px', maxFontSize: '48px'
|
||||
});
|
||||
|
||||
$(this).attr('disabled', null);
|
||||
$('#app_package').bind('change', function(e) {
|
||||
$('label[for="app_package"]').text('Uploading');
|
||||
$(this).parent().submit();
|
||||
$(this).attr('disabled', true);
|
||||
});
|
||||
})();
|
||||
|
|
Загрузка…
Ссылка в новой задаче