-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Content-Type parsing to work with options Added some directives to make things a bit cleaners - Bootstrap Panels - Loading Panel Navigation Controller for active nav UI is still completely unusable at this point.
- Loading branch information
Showing
11 changed files
with
241 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
* Bulk Insert/Update | ||
* Documentation | ||
* Hostnames and reverse | ||
* API | ||
- Bulk Insert/Update | ||
- Hostnames and reverse | ||
- API Tokens for role accounts | ||
- Setup support for migrations before first preview release | ||
- Pagination | ||
- PATCH support | ||
- Default Site for User | ||
|
||
* Web UI | ||
- Form Validation | ||
- Subnav Bar | ||
- Pages | ||
* Sites (Update/Delete) | ||
* Networks (Create/List/Show/Update/Delete) | ||
* Network Attributes (Create/List/Show/Update/Delete) | ||
* Permissions (Update) | ||
* Changelog | ||
|
||
* Python Client Library | ||
* API Tokens for role accounts | ||
* Setup support for migrations before first preview release | ||
* Pagination | ||
- Everything | ||
|
||
* Documentation (Ongoing) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
(function() { | ||
|
||
var app = angular.module("nsotApp"); | ||
|
||
app.directive("panel", function(){ | ||
return { | ||
restrict: "E", | ||
transclude: true, | ||
replace: true, | ||
template: "<div class='panel panel-default'>" + | ||
"<ng-transclude></ng-transclude>" + | ||
"</div>" | ||
}; | ||
}); | ||
|
||
app.directive("panelHeading", function(){ | ||
return { | ||
restrict: "E", | ||
transclude: true, | ||
replace: true, | ||
template: "<div class='panel-heading'><strong>" + | ||
"<ng-transclude></ng-transclude>" + | ||
"</strong></div>" | ||
}; | ||
}); | ||
|
||
app.directive("panelBody", function(){ | ||
return { | ||
restrict: "E", | ||
transclude: true, | ||
replace: true, | ||
template: "<div class='panel-body'>" + | ||
"<ng-transclude></ng-transclude>" + | ||
"</div>" | ||
}; | ||
}); | ||
|
||
app.directive("panelFooter", function(){ | ||
return { | ||
restrict: "E", | ||
transclude: true, | ||
replace: true, | ||
template: "<div class='panel-footer'>" + | ||
"<ng-transclude></ng-transclude>" + | ||
"</div>" | ||
}; | ||
}); | ||
|
||
|
||
app.directive("loadingPanel", function(){ | ||
return { | ||
restrict: "E", | ||
templateUrl: "/static/templates/directives/loading-panel.html" | ||
}; | ||
}); | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="col-sm-6 col-sm-offset-3"> | ||
<panel class="notification-box"> | ||
<panel-heading>Loading...</panel-heading> | ||
<panel-body class="text-center"> | ||
<i class="fa fa-spinner fa-spin fa-2x"></i> | ||
</panel-body> | ||
</panel> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1 @@ | ||
<div ng-if="loading"> | ||
<div class="col-sm-6 col-sm-offset-3"> | ||
<div class="panel panel-default panel-nsot notification-box"> | ||
<div class="panel-heading"><strong> | ||
Loading... | ||
</strong></div> | ||
<div class="panel-body text-center"> | ||
<i class="fa fa-spinner fa-spin fa-2x"></i> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div ng-if="!loading"> | ||
<div ng-if="!sites.length" class="col-sm-6 col-sm-offset-3"> | ||
<div class="panel panel-default panel-nsot notification-box"> | ||
<div class="panel-heading"><strong> | ||
Welcome | ||
</strong></div> | ||
<div class="panel-body"> | ||
Welcome to the Network Source of Truth. It looks like you're new | ||
here. Lets start by creating a <em>site</em> which will be a namespace | ||
for all of your data. | ||
<hr> | ||
<form novalidate class="nsot-form"> | ||
<div class="form-group"> | ||
<input type="text" | ||
class="form-control"i | ||
placeholder="Name" | ||
ng-model="site.name" | ||
required | ||
> | ||
</div> | ||
<div class="form-group"> | ||
<textarea style="resize: vertical;" | ||
class="form-control" | ||
rows="5" | ||
placeholder="Description" | ||
ng-model="site.description" | ||
> | ||
</textarea> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="panel-footer text-right"> | ||
<button type="submit" | ||
ng-click="createSite(site)" | ||
class="btn btn-primary" | ||
>Create</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div ng-if="sites.length" ng-repeat="site in sites" class="col-sm-6 col-sm-offset-3">[[site.name]] | ||
</div> | ||
</div> | ||
<loading-panel></loading-panel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<loading-panel ng-if="loading"></loading-panel> | ||
<div ng-if="!loading"> | ||
[[site.id]] - [[site.name]] - [[site.description]] | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<loading-panel ng-if="loading"></loading-panel> | ||
<div ng-if="!loading"> | ||
<div ng-if="!sites.length" class="col-sm-6 col-sm-offset-3"> | ||
<panel class="notification-box"> | ||
<panel-heading>Welcome</panel-heading> | ||
<panel-body> | ||
Welcome to the Network Source of Truth. It looks like you're new | ||
here. Lets start by creating a <em>site</em> which will be a namespace | ||
for all of your data. | ||
<hr> | ||
<form novalidate class="nsot-form"> | ||
<div class="form-group"> | ||
<input type="text" | ||
class="form-control"i | ||
placeholder="Name" | ||
ng-model="site.name" | ||
required | ||
> | ||
</div> | ||
<div class="form-group"> | ||
<textarea style="resize: vertical;" | ||
class="form-control" | ||
rows="5" | ||
placeholder="Description" | ||
ng-model="site.description" | ||
> | ||
</textarea> | ||
</div> | ||
</form> | ||
</panel-body> | ||
<panel-footer class="text-right"> | ||
<button type="submit" | ||
ng-click="createSite(site)" | ||
class="btn btn-primary" | ||
>Create</button> | ||
</panel-footer> | ||
</panel> | ||
</div> | ||
<div ng-if="sites.length" | ||
ng-repeat="site in sites" | ||
class="col-sm-6 col-sm-offset-3"> | ||
<a ng-href="/sites/[[site.id]]">[[site.name]]</a> | ||
</div> | ||
</div> |
Oops, something went wrong.