-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cards and ionic button styles Add concatCss and allowed Sass transpiling Remove dynamic text are plugin as it was breaking tests Removed dynamic textarea plugin Adds new styles to moment-view Fixes typo and several formatting issues Removes angular-elastic from bower.json This removes a third party angular plugin that allowed easy resize of a text area given the amount of text in it. It was removed because it was breaking the tests. We might be able to add it later when we're in the polishing stages. Restores $httpProvider.defaults.withCredentials = true;
- Loading branch information
1 parent
11540c1
commit 07c9ec7
Showing
17 changed files
with
107 additions
and
73 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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
(function() { | ||
|
||
'use strict'; | ||
|
||
angular.module('app.moment.items', []); | ||
})(); | ||
|
||
})(); |
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,13 +1,13 @@ | ||
<div> | ||
<div class="new-items"> | ||
<div class="new-item-placeholder"> | ||
<new-text ng-if="typeSelected === 'text'"></new-text> | ||
<new-text ng-if="typeSelected === 'text'"></new-text> | ||
<div> | ||
|
||
<button on-tap="selectType('text')" ng-if="newItemButtonWasTapped" class="new-text-button">Add Text</button> | ||
<button ng-if="newItemButtonWasTapped" class="new-image-button">Add Image</button> | ||
|
||
<button ng-disabled="newItemButtonWasTapped" class="new-item-button">+</button> | ||
<div class="row"> | ||
<button on-tap="selectType('text')" class="col-25 new-text-button button button-outline ion-compose button-calm"></button> | ||
<button class="col-25 new-image-button button button-outline ion-image button-calm"></button> | ||
<button class="col-25 new-video-button button button-outline ion-videocamera button-calm"></button> | ||
<button class="col-25 new-audio-button button button-outline ion-mic-a button-calm"></button> | ||
</div> | ||
|
||
<button ng-if="newItemButtonWasTapped" class="new-video">Add Video</button> | ||
<button ng-if="newItemButtonWasTapped" class="new-audio">Add Audio</button> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
<div class="new-text-container" style="display: block"> | ||
<h2>Write something memorable:</h2> | ||
<textarea type="text" ng-model="text" placeholder="Describe this awesome moment..."></textarea> | ||
<button class="save" on-tap="saveText(text)">Save</button> | ||
<button class="cancel" on-tap="cancel()">Cancel</button> | ||
<div> | ||
<div class="card list new-text-container"> | ||
|
||
<div class="item item-text-wrap header-area"> | ||
<h2>Write something memorable</h2> | ||
</div> | ||
|
||
<div class="item text-area" style="display: block"> | ||
<textarea type="text" ng-model="text" placeholder="Describe this awesome moment..."></textarea> | ||
</div> | ||
|
||
<div class="item action" style="display: block"> | ||
<button class="save button button-clear button-balanced ion-checkmark-round" on-tap="saveText(text)"></button> | ||
<button class="cancel button button-clear ion-close-round button-assertive" on-tap="cancel()"></button> | ||
</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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<div class="text-item-container"> | ||
<span class="text-item"> {{ item.url }} </span> | ||
</div> | ||
<div class="card text-item-container"> | ||
<div class="item item-text-wrap"> | ||
<span class="text-item"> {{ item.url }} </span> | ||
</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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
(function() { | ||
|
||
angular | ||
.module('app.moment.items') | ||
.directive('showText', showText); | ||
.module('app.moment.items') | ||
.directive('showText', showText); | ||
|
||
/* @ngInject */ | ||
function showText() { | ||
/* @ngInject */ | ||
function showText() { | ||
|
||
var directive = { | ||
restrict: 'EA', | ||
templateUrl: 'app/moment/items/showText.directive.html', | ||
replace: true | ||
}; | ||
var directive = { | ||
restrict: 'EA', | ||
templateUrl: 'app/moment/items/showText.directive.html', | ||
replace: true | ||
}; | ||
|
||
return directive; | ||
} | ||
return directive; | ||
} | ||
|
||
})(); |
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 |
---|---|---|
|
@@ -52,4 +52,4 @@ | |
|
||
} | ||
|
||
})(); | ||
})(); |
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 |
---|---|---|
|
@@ -26,4 +26,4 @@ | |
|
||
} | ||
|
||
})(); | ||
})(); |
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 @@ | ||
.new-items .buttons { | ||
display: block; | ||
margin: 0 auto; | ||
} | ||
|
||
.new-items .buttons button { | ||
display: inline-block; | ||
} | ||
.moment-title input[type='text'] { | ||
text-align: center; | ||
} |
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,10 @@ | ||
.new-items { | ||
.buttons { | ||
display: block; | ||
margin: 0 auto; | ||
|
||
button { | ||
display: inline-block; | ||
} | ||
} | ||
} |
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 @@ | ||
.moment-title { | ||
input[type='text'] { | ||
text-align: center; | ||
} | ||
} |
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