debuggers

This commit is contained in:
Jon Lambson 2017-10-20 15:02:03 -06:00
parent 232bc70764
commit 65d1c582af
3 changed files with 72 additions and 67 deletions

View File

@ -228,7 +228,12 @@ app.controller('websiteCtrl', [
, strip: opts.stripZip , strip: opts.stripZip
, path: opts.uploadPath , path: opts.uploadPath
}).then(function (result) { }).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; opts.progress.uploadTotal = 0;
vm.buildNotification(result, msg); vm.buildNotification(result, msg);
// window.alert(JSON.stringify(result)); // window.alert(JSON.stringify(result));
@ -341,6 +346,9 @@ 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) {
r.newFile = vm.newFile;
}
analyzeFile(r.newFile, r); analyzeFile(r.newFile, r);
console.log(r); console.log(r);
}; };
@ -533,7 +541,6 @@ app.controller('websiteCtrl', [
vm.breadcrumbsPath = vm.strictPath.split('/'); vm.breadcrumbsPath = vm.strictPath.split('/');
vm.breadcrumbsPath.pop(); vm.breadcrumbsPath.pop();
vm.breadcrumbsPath.push(vm.folderName); vm.breadcrumbsPath.push(vm.folderName);
debugger;
} else { } else {
r.folderName = vm.breadcrumbsPath + vm.folderName; r.folderName = vm.breadcrumbsPath + vm.folderName;
} }
@ -550,7 +557,7 @@ app.controller('websiteCtrl', [
var pkg = Auth.oauth3.pkg('www@daplie.com'); var pkg = Auth.oauth3.pkg('www@daplie.com');
//analyzeFile(r.newFile, r); //analyzeFile(r.newFile, r);
if (r.folderName !== '' && r.folderName !== undefined) { if (r.folderName !== '' && r.folderName !== undefined) {
r.uploadPath = r.folderName + '/'; r.uploadPath = r.folderName;
debugger; debugger;
} else { } else {
if (!Array.isArray(vm.breadcrumbsPath)) { if (!Array.isArray(vm.breadcrumbsPath)) {

View File

@ -1,64 +1,62 @@
<div class="side-menu"> <div class="side-menu">
<div class="button-container" ui-sref-active="active"> <!-- <div class="button-container" ui-sref-active="active">
<a ui-sref=".home"> <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> <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> <p class="button-title">Home</p>
</a> </a>
</div> </div>
<div class="button-container" ui-sref-active="active"> <div class="button-container" ui-sref-active="active">
<a ui-sref=".bolt"> <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> <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> <p class="button-title">Bolt</p>
</a> </a>
</div> </div>
<div class="button-container" ui-sref-active="active"> <div class="button-container" ui-sref-active="active">
<a ui-sref=".contacts"> <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> <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> <p class="button-title">Contacts</p>
</a> </a>
</div> </div>
<div class="button-container" ui-sref-active="active"> <div class="button-container" ui-sref-active="active">
<a ui-sref=".files"> <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> <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> <p class="button-title">Files</p>
</a> </a>
</div> </div>
<div class="button-container" ui-sref-active="active"> <div class="button-container" ui-sref-active="active">
<a ui-sref=".music"> <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> <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> <p class="button-title">Music</p>
</a> </a>
</div> </div>
<div class="button-container" ui-sref-active="active"> <div class="button-container" ui-sref-active="active">
<a ui-sref=".email"> <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> <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> <p class="button-title">Email</p>
</a> </a>
</div> </div> -->
<div class="button-container" ui-sref-active="active"> <div class="button-container" ui-sref-active="active">
<a ui-sref=".website"> <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> <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> <p class="button-title">Shares</p>
</a> </a>
</div> </div>
<div class="button-container" ui-sref-active="active"> <!-- <div class="button-container" ui-sref-active="active">
<a ui-sref=".dns"> <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> <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> <p class="button-title">DNS</p>
</a> </a>
</div> </div>
<!-- <div class="button-container" ui-sref-active="active">
<div class="button-container" ui-sref-active="active"> <a ui-sref=".sync">
<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>
<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>
<p class="button-title">Sync</p> </a>
</a> </div>
</div> <div class="button-container" ui-sref-active="active">
<div class="button-container" ui-sref-active="active"> <a ui-sref=".photo">
<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>
<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>
<p class="button-title">Photo</p> </a>
</a> </div> -->
</div>
-->
</div> </div>

View File

@ -1,7 +1,7 @@
<div class="container"> <div class="container">
<div class="row"> <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"> <button class="btn btn-primary btn-lg" title="..." data-toggle="modal" data-target=".create-website-modal">
Create Website Create Website
</button> </button>
@ -115,7 +115,7 @@
<li class="cards__item" ng-repeat="r in vm.sites"> <li class="cards__item" ng-repeat="r in vm.sites">
<div class="card"> <div class="card">
<div class="card__image card__image--fence avoid-clicks"> <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>
<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>