mirror of https://github.com/docker/docs.git
Merge branch 'rc0.2.0' of github.com:kitematic/kitematic into rc0.2.0
This commit is contained in:
commit
b52105afa0
12
index.js
12
index.js
|
@ -127,7 +127,16 @@ app.on('ready', function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
mainWindow = new BrowserWindow({width: 800, height: 578, frame:false, resizable: false});
|
var windowOptions = {
|
||||||
|
width: 800,
|
||||||
|
height: 578,
|
||||||
|
frame: false,
|
||||||
|
resizable: false,
|
||||||
|
'web-preferences': {
|
||||||
|
'web-security': false
|
||||||
|
}
|
||||||
|
};
|
||||||
|
mainWindow = new BrowserWindow(windowOptions);
|
||||||
|
|
||||||
// and load the index.html of the app.
|
// and load the index.html of the app.
|
||||||
mainWindow.loadUrl(url);
|
mainWindow.loadUrl(url);
|
||||||
|
@ -135,4 +144,3 @@ app.on('ready', function() {
|
||||||
mainWindow.focus();
|
mainWindow.focus();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -101,8 +101,8 @@ AppUtil.restart = function (appId) {
|
||||||
|
|
||||||
AppUtil.remove = function (appId) {
|
AppUtil.remove = function (appId) {
|
||||||
var app = Apps.findOne(appId);
|
var app = Apps.findOne(appId);
|
||||||
|
Apps.remove({_id: appId});
|
||||||
if (app.docker) {
|
if (app.docker) {
|
||||||
Apps.remove({_id: appId});
|
|
||||||
Docker.removeContainer(app.docker.Id, function (err) {
|
Docker.removeContainer(app.docker.Id, function (err) {
|
||||||
if (err) { console.error(err); }
|
if (err) { console.error(err); }
|
||||||
var appPath = path.join(Util.KITE_PATH, app.name);
|
var appPath = path.join(Util.KITE_PATH, app.name);
|
||||||
|
|
|
@ -22,11 +22,7 @@
|
||||||
<small><a onclick="trackLink('app image detail')" href="/images/{{image._id}}">{{image.meta.name}}</a></small>
|
<small><a onclick="trackLink('app image detail')" href="/images/{{image._id}}">{{image.meta.name}}</a></small>
|
||||||
</h5>
|
</h5>
|
||||||
<div class="options">
|
<div class="options">
|
||||||
{{#if $eq status 'STOPPED'}}
|
|
||||||
<a href="#" onclick="trackLink('start app')" class="btn-icon btn-start" target="_blank" data-toggle="tooltip" data-placement="bottom" title="Start App"><span class="typcn typcn-media-play-outline"></span></a>
|
|
||||||
{{/if}}
|
|
||||||
{{#if $eq status 'READY'}}
|
{{#if $eq status 'READY'}}
|
||||||
<a href="#" onclick="trackLink('stop app')" class="btn-icon btn-stop" target="_blank" data-toggle="tooltip" data-placement="bottom" title="Stop App"><span class="typcn typcn-media-stop"></span></a>
|
|
||||||
{{#if url}}
|
{{#if url}}
|
||||||
<a href="{{url}}" onclick="trackLink('view app')" class="btn-icon btn-view" target="_blank" data-toggle="tooltip" data-placement="bottom" title="View App"><span class="typcn typcn-eye-outline"></span></a>
|
<a href="{{url}}" onclick="trackLink('view app')" class="btn-icon btn-view" target="_blank" data-toggle="tooltip" data-placement="bottom" title="View App"><span class="typcn typcn-eye-outline"></span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -14,7 +14,7 @@ Template.modal_create_app.events({
|
||||||
var validationResult = formValidate(formData, FormSchema.formCreateApp);
|
var validationResult = formValidate(formData, FormSchema.formCreateApp);
|
||||||
if (validationResult.errors) {
|
if (validationResult.errors) {
|
||||||
clearFormErrors($form);
|
clearFormErrors($form);
|
||||||
showFormErrors($form, validationResult.errors.details);
|
showFormErrors($form, validationResult.errors);
|
||||||
} else {
|
} else {
|
||||||
clearFormErrors($form);
|
clearFormErrors($form);
|
||||||
var cleaned = validationResult.cleaned;
|
var cleaned = validationResult.cleaned;
|
||||||
|
|
Loading…
Reference in New Issue