debuggers
This commit is contained in:
parent
232bc70764
commit
65d1c582af
|
@ -228,7 +228,12 @@ app.controller('websiteCtrl', [
|
|||
, strip: opts.stripZip
|
||||
, path: opts.uploadPath
|
||||
}).then(function (result) {
|
||||
var msg = vm.newFileUploaded + " has been uploaded"
|
||||
debugger;
|
||||
if (result.data.error) {
|
||||
var msg = vm.newFileUploaded + " has encountered an error. " + result.data.error.message + '.';
|
||||
} else {
|
||||
var msg = vm.newFileUploaded + " has been uploaded";
|
||||
}
|
||||
opts.progress.uploadTotal = 0;
|
||||
vm.buildNotification(result, msg);
|
||||
// window.alert(JSON.stringify(result));
|
||||
|
@ -341,6 +346,9 @@ app.controller('websiteCtrl', [
|
|||
|
||||
vm.Sites.setUpload = function (r) {
|
||||
console.log("Hey! At least it can tell if there's a change!");
|
||||
if (r.newFile === undefined) {
|
||||
r.newFile = vm.newFile;
|
||||
}
|
||||
analyzeFile(r.newFile, r);
|
||||
console.log(r);
|
||||
};
|
||||
|
@ -533,7 +541,6 @@ app.controller('websiteCtrl', [
|
|||
vm.breadcrumbsPath = vm.strictPath.split('/');
|
||||
vm.breadcrumbsPath.pop();
|
||||
vm.breadcrumbsPath.push(vm.folderName);
|
||||
debugger;
|
||||
} else {
|
||||
r.folderName = vm.breadcrumbsPath + vm.folderName;
|
||||
}
|
||||
|
@ -550,7 +557,7 @@ app.controller('websiteCtrl', [
|
|||
var pkg = Auth.oauth3.pkg('www@daplie.com');
|
||||
//analyzeFile(r.newFile, r);
|
||||
if (r.folderName !== '' && r.folderName !== undefined) {
|
||||
r.uploadPath = r.folderName + '/';
|
||||
r.uploadPath = r.folderName;
|
||||
debugger;
|
||||
} else {
|
||||
if (!Array.isArray(vm.breadcrumbsPath)) {
|
||||
|
|
|
@ -1,64 +1,62 @@
|
|||
<div class="side-menu">
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".home">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-home fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Home</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".bolt">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-bolt fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Bolt</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".contacts">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-users fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Contacts</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".files">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-file-text-o fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Files</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".music">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-music fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Music</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".email">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-envelope-o fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Email</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".website">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-globe fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Website</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".dns">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-connectdevelop fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">DNS</p>
|
||||
</a>
|
||||
</div>
|
||||
<!--
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".sync">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-tablet fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Sync</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".photo">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-picture-o fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Photo</p>
|
||||
</a>
|
||||
</div>
|
||||
-->
|
||||
<!-- <div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".home">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-home fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Home</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".bolt">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-bolt fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Bolt</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".contacts">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-users fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Contacts</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".files">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-file-text-o fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Files</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".music">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-music fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Music</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".email">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-envelope-o fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Email</p>
|
||||
</a>
|
||||
</div> -->
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".website">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-globe fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Shares</p>
|
||||
</a>
|
||||
</div>
|
||||
<!-- <div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".dns">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-connectdevelop fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">DNS</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".sync">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-tablet fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Sync</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="button-container" ui-sref-active="active">
|
||||
<a ui-sref=".photo">
|
||||
<button type="button" name="button" class="btn btn-default side-menu-button"><i class="fa fa-picture-o fa-2x" aria-hidden="true"></i></button>
|
||||
<p class="button-title">Photo</p>
|
||||
</a>
|
||||
</div> -->
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<h1>Create a new Website</h1>
|
||||
<h1>Verify Website</h1>
|
||||
<button class="btn btn-primary btn-lg" title="..." data-toggle="modal" data-target=".create-website-modal">
|
||||
Create Website
|
||||
</button>
|
||||
|
@ -115,7 +115,7 @@
|
|||
<li class="cards__item" ng-repeat="r in vm.sites">
|
||||
<div class="card">
|
||||
<div class="card__image card__image--fence avoid-clicks">
|
||||
<iframe src="{{ r.urlSafeDomain }}" width="350" height="350"></iframe>
|
||||
<!-- <iframe src="{{ r.urlSafeDomain }}" width="350" height="350"></iframe> -->
|
||||
</div>
|
||||
<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>
|
||||
|
|
Loading…
Reference in New Issue