-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Got carried away and created simple http interface.
- Loading branch information
1 parent
bb33624
commit c3d6255
Showing
28 changed files
with
5,492 additions
and
21 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,16 @@ | ||
var foundationRoutes = [ | ||
{ | ||
"name": "settings", | ||
"url":"/settings", | ||
"animationIn": "fadeIn", | ||
"animationOut": "fadeOut", | ||
"path":"templates/settings.html" | ||
}, | ||
{ | ||
"name": "home", | ||
"url": "/", | ||
"animationIn": "fadeIn", | ||
"animationOut": "fadeOut", | ||
"path":"templates/home.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,4 @@ | ||
<div class="accordion-item" ng-class="{'is-active': active}"> | ||
<div class="accordion-title" ng-click="activate()">{{ title }}</div> | ||
<div class="accordion-content" ng-transclude></div> | ||
</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,2 @@ | ||
<div class="accordion" ng-transclude> | ||
</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,7 @@ | ||
<div> | ||
<a href="#" | ||
class="button" | ||
ng-click="toggle()" | ||
ng-if="title.length > 0">{{ title }}</a> | ||
<div ng-transclude></div> | ||
</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,5 @@ | ||
<div | ||
class="action-sheet {{ position }}" | ||
ng-class="{'is-active': active}" | ||
ng-transclude> | ||
</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,2 @@ | ||
<div class="action-sheet-container" ng-transclude> | ||
</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,9 @@ | ||
<div | ||
ng-class="{'modal-overlay': overlay}" | ||
ng-click="hide()"> | ||
<aside | ||
class="modal" | ||
ng-click="$event.stopPropagation();" | ||
ng-transclude> | ||
</aside> | ||
</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,7 @@ | ||
<zf-notification ng-repeat="notification in notifications" | ||
title="notification.title" | ||
img="notification.image" | ||
notif-id = "notification.id" | ||
color="notification.color" | ||
position="notification.position">{{ notification.content }}</zf-notification> | ||
|
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,12 @@ | ||
<div class="notification {{ position }} {{ color }}"> | ||
<a href="#" | ||
class="close-button" | ||
ng-click="remove(); $event.preventDefault(); $event.stopPropagation()">×</a> | ||
<div class="notification-icon" ng-if="image"> | ||
<img src="{{ image }}" /> | ||
</div> | ||
<div class="notification-content"> | ||
<h1>{{ title }}</h1> | ||
<p ng-transclude></p> | ||
</div> | ||
</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,5 @@ | ||
<div | ||
class="off-canvas {{ position }}" | ||
ng-class="{'is-active': active}" | ||
ng-transclude> | ||
</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,4 @@ | ||
<div | ||
class="panel {{ 'panel-' + position }}" | ||
ng-transclude> | ||
</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,2 @@ | ||
<div class="popup" ng-class="{'is-active': active }" ng-transclude> | ||
</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,8 @@ | ||
<div class="tab-contents"> | ||
<div zf-tab-individual | ||
class="tab-content" | ||
ng-class="{'is-active': tab.active}" | ||
ng-repeat="tab in tabs" | ||
tab="tab"> | ||
</div> | ||
</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,3 @@ | ||
<div class="tab-item" | ||
ng-class="{'is-active': active}" | ||
ng-click="makeActive()">{{ title }}</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,8 @@ | ||
<div> | ||
<div class="tabs" ng-transclude> | ||
</div> | ||
<div zf-tab-content | ||
target="{{ id }}" | ||
ng-if="showTabContent"> | ||
</div> | ||
</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,56 @@ | ||
<div zf-panel position="left" id="sub-nav" class="fast bounceInOut medium-2 medium-grid-block vertical"> | ||
<div class="grid-content"> | ||
<ul class="icon-left vertical menu-bar"> | ||
<li><a href="#"><img zf-iconic="" data-src="/assets/img/iconic/ban.svg"> Songs</a></li> | ||
<li><a href="#"><img zf-iconic="" data-src="/assets/img/iconic/ban.svg"> Albums</a></li> | ||
<li><a href="#"><img zf-iconic="" data-src="/assets/img/iconic/ban.svg"> Artists</a></li> | ||
</ul> | ||
</div> | ||
<div class="grid-content shrink now-playing" ng-controller="NowPlayingCtrl"> | ||
<h5>Now Playing</h5> | ||
<img src="http://placehold.it/350x350&text=Album"> | ||
<p>Shake it off by Taylor Swift</p> | ||
</div> | ||
</div> | ||
|
||
<div class="small-12 medium-7 messages grid-content"> | ||
|
||
<div ng-controller="SearchCtrl"> | ||
<br /> | ||
<input type="search" id="search" autocomplete="off" placeholder="keywords..." ng-model="searchQuery" ng-keyup="search()" /> | ||
|
||
<div class="grid-block small-up-2 medium-up-2 large-up-4"> | ||
<div ng-repeat="result in results" class=""> | ||
<div class="card"> | ||
<img ng-src="{{ result.album.images[1].url }}" /> | ||
<div class="card-divider"> | ||
{{ result.name }} | ||
</div> | ||
<div class="card-section"> | ||
<p> | ||
{{ result.album.name }}<br /> | ||
{{ result.artists[0].name }} | ||
|
||
<a class="success button" ng-click="queue(result)">Add to Queue</a> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div zf-panel id="feed" position="right" class="fast bounceInOut medium-3 medium-grid-content"> | ||
<section class="block-list" ng-controller="QueueCtrl"> | ||
<header>Queue</header> | ||
<ul> | ||
<li ng-repeat="track in queue"> | ||
<div class="grid-content"> | ||
<img ng-src="{{ track.album.images[0].url }}" /> | ||
{{ track.name }}<br /> | ||
{{ track.artists[0].name }} | ||
</div> | ||
</li> | ||
</ul> | ||
</section> | ||
</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,38 @@ | ||
|
||
<div class="grid-block align-center"> | ||
<div class="grid-content medium-6"> | ||
<h4><a ui-sref="home">❮ Back</a></h4> | ||
|
||
<hr /> | ||
|
||
<section class="block-list"> | ||
<header>Account Info</header> | ||
<ul> | ||
<li><input type="text" value="[email protected]"></li> | ||
<li><input type="password" value="password1234"></li> | ||
</ul> | ||
</section> | ||
|
||
<section class="block-list"> | ||
<header>Filtering</header> | ||
<ul> | ||
<li> | ||
<span>Filter Spam</span> | ||
<div class="switch"><input type="checkbox" id="setting1"><label for="setting1"></label></div> | ||
</li> | ||
<li> | ||
<span>Delete Facebook Emails</span> | ||
<div class="switch"><input type="checkbox" id="setting2"><label for="setting2"></label></div> | ||
</li> | ||
<li> | ||
<span>Bake Pizza</span> | ||
<div class="switch"><input type="checkbox" id="setting3"><label for="setting3"></label></div> | ||
</li> | ||
<li> | ||
<span>Consider Corgis</span> | ||
<div class="switch"><input type="checkbox" id="setting4"><label for="setting4"></label></div> | ||
</li> | ||
</ul> | ||
</section> | ||
</div> | ||
</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
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,11 @@ | ||
var queue = []; | ||
|
||
exports.get = function (err) { | ||
return queue; | ||
}; | ||
|
||
exports.add = function (track) { | ||
queue.push(track); | ||
|
||
return queue; | ||
}; |
Oops, something went wrong.