-
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.
Browse files
Browse the repository at this point in the history
…ion drawing on the spectrogram modified: app/models/audio_event.rb modified: app/models/audio_event_tag.rb modified: app/controllers/audio_events_controller.rb -- tried to get bug #57 fixed, no luck -- removed a infinite loop accepts_nested_attributes_for bug modified: app/assets/javascripts/app.js -- added an 'exports' notion so baw-debug-info could still access rootScopes's Print method even in an isolate scope new file: app/assets/stylesheets/_annotation_viewer.css.scss renamed: app/assets/stylesheets/audio_events.css.scss -> app/assets/stylesheets/_audio_events.css.scss renamed: app/assets/stylesheets/audio_recordings.css.scss -> app/assets/stylesheets/_audio_recordings.css.scss renamed: app/assets/stylesheets/base.css.scss -> app/assets/stylesheets/_base.css.scss renamed: app/assets/stylesheets/bookmarks.css.scss -> app/assets/stylesheets/_bookmarks.css.scss new file: app/assets/stylesheets/_dynamic.css.scss.erb renamed: app/assets/stylesheets/home.css.scss -> app/assets/stylesheets/_home.css.scss renamed: app/assets/stylesheets/layout.css.scss -> app/assets/stylesheets/_layout.css.scss renamed: app/assets/stylesheets/permissions.css.scss -> app/assets/stylesheets/_permissions.css.scss renamed: app/assets/stylesheets/photos.css.scss -> app/assets/stylesheets/_photos.css.scss renamed: app/assets/stylesheets/progresses.css.scss -> app/assets/stylesheets/_progresses.css.scss renamed: app/assets/stylesheets/projects.css.scss -> app/assets/stylesheets/_projects.css.scss renamed: app/assets/stylesheets/record_information.css.scss -> app/assets/stylesheets/_record_information.css.scss renamed: app/assets/stylesheets/saved_searches.css.scss -> app/assets/stylesheets/_saved_searches.css.scss renamed: app/assets/stylesheets/scaffolds.css.scss -> app/assets/stylesheets/_scaffolds.css.scss renamed: app/assets/stylesheets/sites.css.scss -> app/assets/stylesheets/_sites.css.scss renamed: app/assets/stylesheets/tags.css.scss -> app/assets/stylesheets/_tags.css.scss renamed: app/assets/stylesheets/users.css.scss -> app/assets/stylesheets/_users.css.scss renamed: app/assets/stylesheets/application.css -> app/assets/stylesheets/application.css.scss -- attempted to get optimal sass layout and precompile. ideally would ignore sprokets... unfortunately I couldn't get it working right. This needs more work. See bug #58 modified: app/controllers/application_controller.rb -- temporarily enabled devise user hack so records would be inserted properly modified: app/assets/javascripts/angular/services/services.js -- added in tag service for showing tags in auto complete new file: app/assets/stylesheets/_listen.css.scss new file: app/assets/templates/annotation_viewer.html modified: app/assets/templates/listen.html modified: app/assets/javascripts/angular/controllers/listen.js modified: app/assets/javascripts/angular/directives/directives.js new file: app/assets/javascripts/angular/controllers/annotation_viewer.js new file: lib/assets/javascripts/jquery.drawabox.js new file: lib/assets/javascripts/knockout.drawabox.js -- this is the baw-annotation-viewer control. modified: app/assets/javascripts/application.js renamed: app/assets/javascripts/functions.js -> lib/assets/javascripts/functions.js new file: lib/assets/javascripts/lib.js new file: vendor/assets/javascripts/select2-release-3.2/index.js -- messing with assets pipeline new file: vendor/assets/javascripts/modernizr/modernizr-latest.js -- added modernizer js lib
- Loading branch information
Showing
38 changed files
with
2,226 additions
and
33 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
app/assets/javascripts/angular/controllers/annotation_viewer.js
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,15 @@ | ||
"use strict"; | ||
|
||
/** | ||
* The listen controller. Show a spectrogram, listen to audio, annotate the spectrogram. | ||
* @param $scope | ||
* @param $routeParams | ||
* @constructor | ||
*/ | ||
function AnnotationViewerCtrl($scope, $element, $attrs, $transclude) { | ||
|
||
|
||
|
||
} | ||
|
||
AnnotationViewerCtrl.$inject = ['$scope', '$element', '$attrs', '$transclude']; |
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
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,87 @@ | ||
@import "base"; | ||
@import "_dynamic.css.scss.erb"; | ||
|
||
baw-annotation-viewer { | ||
|
||
& .tag-preview { | ||
|
||
} | ||
|
||
|
||
& #scroller{ | ||
overflow-x: scroll; | ||
overflow-y: hidden; | ||
} | ||
|
||
& .annotation-viewer { | ||
|
||
display: inline-block; | ||
position: relative; | ||
line-height: 0; | ||
padding: 0; | ||
margin: 0; | ||
|
||
|
||
& img { | ||
|
||
} | ||
|
||
// overlay | ||
& img + div { | ||
width: 100%; | ||
height : 100%; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
|
||
// debug | ||
@if $DEBUG { background-color: rgba(255,0,0,0.15) ;} | ||
|
||
} | ||
} | ||
|
||
& .controls { | ||
|
||
} | ||
|
||
// general | ||
|
||
& .tagItem { | ||
|
||
border-style: $border-style; | ||
border-width: $border-width; | ||
border-color: nth($master-highlight, 2); | ||
position: absolute; | ||
|
||
&[data-selected="true"] { | ||
border-color: nth($master-complementary, 2); | ||
@include glow(nth($master-background, 2)); | ||
|
||
& .close-icon{ | ||
visibility: visible; | ||
} | ||
} | ||
|
||
&:hover .close-icon { | ||
visibility: visible; | ||
} | ||
} | ||
|
||
& .close-icon { | ||
position: relative; | ||
left: 3px; | ||
top: 6px; | ||
color: black; | ||
font-weight: bold; | ||
font-size: 12px; | ||
font-family: sans-serif; | ||
vertical-align: top; | ||
cursor: pointer; | ||
|
||
&:before{ | ||
content: "x"; | ||
} | ||
|
||
visibility: hidden; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 @@ | ||
$DEBUG:'<%= Rails.env.development? %>'; | ||
|
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
app/assets/stylesheets/layout.css.scss → app/assets/stylesheets/_layout.css.scss
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
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,16 @@ | ||
<div ng-controller="AnnotationViewerCtrl"> | ||
<div class="tag-preview"> | ||
|
||
</div> | ||
|
||
<div id="scroller"> | ||
<div class="annotation-viewer" id="annotation-viewer_{{id}}" > | ||
<img ng-src="{{model.url}}"> | ||
<div id="spectrogramAnnotations_{{id}}"></div> | ||
</div> | ||
</div> | ||
|
||
<div id="controls"> | ||
<baw-debug-info></baw-debug-info> | ||
</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
Oops, something went wrong.