Merge branch 'jon/design2' into oauth3
This commit is contained in:
commit
aa82fbb01f
|
@ -229,6 +229,7 @@ app.controller('websiteCtrl', [
|
||||||
var msg = vm.newFileUploaded + " has been uploaded"
|
var msg = vm.newFileUploaded + " has been uploaded"
|
||||||
opts.progress.uploadTotal = 0;
|
opts.progress.uploadTotal = 0;
|
||||||
vm.buildNotification(result, msg);
|
vm.buildNotification(result, msg);
|
||||||
|
vm.cleanPath();
|
||||||
// window.alert(JSON.stringify(result));
|
// window.alert(JSON.stringify(result));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -338,16 +339,15 @@ app.controller('websiteCtrl', [
|
||||||
};
|
};
|
||||||
vm.Sites.setUpload = function (r) {
|
vm.Sites.setUpload = function (r) {
|
||||||
console.log("Hey! At least it can tell if there's a change!");
|
console.log("Hey! At least it can tell if there's a change!");
|
||||||
|
|
||||||
if (r.newFile === undefined) {
|
if (r.newFile === undefined) {
|
||||||
r.newFile = vm.newFile;
|
r.newFile = vm.newFile;
|
||||||
}
|
}
|
||||||
analyzeFile(r.newFile, r);
|
analyzeFile(r.newFile, r);
|
||||||
vm.showCompleteFileUploadBtn = true;
|
vm.showCompleteFileUploadBtn = true;
|
||||||
console.log(r);
|
console.log(r);
|
||||||
|
|
||||||
};
|
};
|
||||||
vm.Sites.upload = function (r) {
|
vm.Sites.upload = function (r) {
|
||||||
|
r.uploadPath = undefined;
|
||||||
if (r.uploadPath === undefined) {
|
if (r.uploadPath === undefined) {
|
||||||
r.uploadPath = vm.autoPopulateWebPath;
|
r.uploadPath = vm.autoPopulateWebPath;
|
||||||
}
|
}
|
||||||
|
@ -394,9 +394,7 @@ app.controller('websiteCtrl', [
|
||||||
|
|
||||||
vm.deleteFilesFrom = function (r, path, opts) {
|
vm.deleteFilesFrom = function (r, path, opts) {
|
||||||
var confirmMessage;
|
var confirmMessage;
|
||||||
// vm.autoPopulateWebPath;
|
|
||||||
opts = {};
|
opts = {};
|
||||||
|
|
||||||
if (path === undefined) {
|
if (path === undefined) {
|
||||||
confirmMessage = "Delete all files for this site?";
|
confirmMessage = "Delete all files for this site?";
|
||||||
opts.path = '/';
|
opts.path = '/';
|
||||||
|
@ -423,6 +421,7 @@ app.controller('websiteCtrl', [
|
||||||
if (!window.confirm(confirmMessage)) {
|
if (!window.confirm(confirmMessage)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
vm.Sites.remove(r, opts);
|
vm.Sites.remove(r, opts);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -496,6 +495,10 @@ app.controller('websiteCtrl', [
|
||||||
vm.cleanPath = function () {
|
vm.cleanPath = function () {
|
||||||
vm.savedPath = vm.autoPopulateWebPath;
|
vm.savedPath = vm.autoPopulateWebPath;
|
||||||
vm.autoPopulateWebPath = '';
|
vm.autoPopulateWebPath = '';
|
||||||
|
vm.hideFolderInput = '';
|
||||||
|
vm.showUploadFilesContainer = false;
|
||||||
|
vm.showCompleteFileUploadBtn = false;
|
||||||
|
vm.showUploadFolderContainer = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
vm.showUploadButton = true;
|
vm.showUploadButton = true;
|
||||||
|
@ -504,7 +507,6 @@ app.controller('websiteCtrl', [
|
||||||
if (vm.savedPath === undefined) {
|
if (vm.savedPath === undefined) {
|
||||||
vm.savedPath = '/';
|
vm.savedPath = '/';
|
||||||
}
|
}
|
||||||
// vm.savedPath;
|
|
||||||
vm.hideFolderInput = 'hidden';
|
vm.hideFolderInput = 'hidden';
|
||||||
vm.showFileUploadBtn = true;
|
vm.showFileUploadBtn = true;
|
||||||
r.uploadPath = vm.savedPath + vm.autoPopulateWebPath;
|
r.uploadPath = vm.savedPath + vm.autoPopulateWebPath;
|
||||||
|
@ -728,7 +730,7 @@ app.controller('websiteCtrl', [
|
||||||
vm.websiteTiles = true;
|
vm.websiteTiles = true;
|
||||||
vm.showBackBtn = true;
|
vm.showBackBtn = true;
|
||||||
vm.displayFileTree = true;
|
vm.displayFileTree = true;
|
||||||
if (vm.currentFolder === undefined) {
|
if (vm.currentFolder === undefined || vm.currentFolder === 'hidden' || vm.currentFolder === 'root') {
|
||||||
vm.currentFolder = 'All Folders/Files';
|
vm.currentFolder = 'All Folders/Files';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -119,6 +119,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="card__content">
|
<div class="card__content">
|
||||||
<div class="card__title text-center"><a ng-href="https://{{ r.domain }}" target="_blank" ng-bind="r.domain">example.com</a></div>
|
<div class="card__title text-center"><a ng-href="https://{{ r.domain }}" target="_blank" ng-bind="r.domain">example.com</a></div>
|
||||||
|
<div class="cards__title text-center"><span ng-if="r.pending" class="text-muted">(pending)</span></div>
|
||||||
<button class="btn btn--block card__btn" data-toggle="modal" data-target=".{{ r.challenge }}" ng-click="vm.closeAllOpenActions()">Edit</button>
|
<button class="btn btn--block card__btn" data-toggle="modal" data-target=".{{ r.challenge }}" ng-click="vm.closeAllOpenActions()">Edit</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -182,7 +183,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="square-service-block">
|
<div class="square-service-block">
|
||||||
<a ng-click="vm.Sites.remove(r)" class="cp">
|
<a ng-click="vm.deleteFilesFrom(r)" class="cp">
|
||||||
<div class="ssb-icon"><i class="fa fa-trash" aria-hidden="true"></i></div>
|
<div class="ssb-icon"><i class="fa fa-trash" aria-hidden="true"></i></div>
|
||||||
<h2 class="ssb-title">Delete</h2>
|
<h2 class="ssb-title">Delete</h2>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="text-left" ng-hide="vm.displayFileTree">
|
<div class="text-left" ng-hide="vm.displayFileTree">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<ul class="breadcrumb">
|
<ul class="breadcrumb">
|
||||||
<li ng-repeat="breadcrumb in vm.breadcrumbs track by $index" ng-click="vm.getDirectoriesFromBreadcrumbs(breadcrumb); vm.showUploadContainer = false; vm.showUploadFolderContainer = false; vm.showUploadFilesContainer = false;" data="{{ breadcrumb }}" class="cp breadcrumbs-list">
|
<li ng-repeat="breadcrumb in vm.breadcrumbs track by $index" ng-click="vm.getDirectoriesFromBreadcrumbs(breadcrumb); vm.cleanPath();" data="{{ breadcrumb }}" class="cp breadcrumbs-list">
|
||||||
{{ breadcrumb | capitalize }}
|
{{ breadcrumb | capitalize }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
<ul class="tree ls-none">
|
<ul class="tree ls-none">
|
||||||
<li class="directories-go-here" ng-repeat="directory in vm.siteDirectories track by $index">
|
<li class="directories-go-here" ng-repeat="directory in vm.siteDirectories track by $index">
|
||||||
<input type="checkbox" id="{{ r.challenge }}{{ $index }}" />
|
<input type="checkbox" id="{{ r.challenge }}{{ $index }}" />
|
||||||
<label class="tree_label" for="{{ r.challenge }}{{ $index }}" ng-click="vm.getDirectories(directory); vm.showUploadContainer = false; vm.showUploadFolderContainer = false; vm.showUploadFilesContainer = false;" data="{{ directory }}">{{ directory }}</label><span class="pull-right"><button type="button" class="btn btn-danger btn-xs" ng-click="vm.deleteFilesFrom(r, directory)" data="{{ directory }}" ><i class="fa fa-trash"></i></button></span>
|
<label class="tree_label" for="{{ r.challenge }}{{ $index }}" ng-click="vm.getDirectories(directory); vm.cleanPath();" data="{{ directory }}">{{ directory }}</label><span class="pull-right"><button type="button" class="btn btn-danger btn-xs" ng-click="vm.deleteFilesFrom(r, directory)" data="{{ directory }}" ><i class="fa fa-trash"></i></button></span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="tree files-only ls-none">
|
<ul class="tree files-only ls-none">
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
<button type="button" name="button" class="btn btn-block btn-primary" ng-click="vm.showAction('invite');">Share folder</button>
|
<button type="button" name="button" class="btn btn-block btn-primary" ng-click="vm.showAction('invite');">Share folder</button>
|
||||||
<ul class="ls-none folder-actions-list">
|
<ul class="ls-none folder-actions-list">
|
||||||
<li class="" ng-hide="vm.showFolderAction"><span><i class="fa fa-upload cp"></i> <a ng-click="vm.showUploadFilesContainer = true; vm.autoPopulateFolderName(); vm.showUploadFolderContainer = false;" class="cp">Upload files</a></span></li>
|
<li class="" ng-hide="vm.showFolderAction"><span><i class="fa fa-upload cp"></i> <a ng-click="vm.showUploadFilesContainer = true; vm.autoPopulateFolderName(); vm.showUploadFolderContainer = false;" class="cp">Upload files</a></span></li>
|
||||||
<li class=""><span><i class="fa fa-folder cp"></i> <a ng-click="vm.showUploadFolderContainer = true; vm.cleanPath(); vm.showUploadFilesContainer = false;" class="cp">New folder</a></span></li>
|
<li class=""><span><i class="fa fa-folder cp"></i> <a ng-click="vm.cleanPath(); vm.showUploadFolderContainer = true;" class="cp">New folder</a></span></li>
|
||||||
<li ng-hide="vm.showUploadButton"><span><i class="fa fa-trash cp"></i> <a ng-click="vm.triggerDeleteFolder(vm.currentFolder, r)" data="{{ vm.currentFolder }}" class="cp">Delete {{ vm.currentFolder | capitalize }} Folder</a></span></li>
|
<li ng-hide="vm.showUploadButton"><span><i class="fa fa-trash cp"></i> <a ng-click="vm.triggerDeleteFolder(vm.currentFolder, r)" data="{{ vm.currentFolder }}" class="cp">Delete {{ vm.currentFolder | capitalize }} Folder</a></span></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue