Skip to content

Commit

Permalink
Ports Alert component into jck-library-extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Jun 19, 2014
1 parent 25c7e2b commit 9c425bb
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 77 deletions.
2 changes: 1 addition & 1 deletion bin/app.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Stylie",
"version": "0.4.14",
"version": "0.4.15",
"homepage": "https://github.com/jeremyckahn/stylie",
"authors": [
"Jeremy Kahn <[email protected]>"
Expand All @@ -20,7 +20,7 @@
"jquery-cubelet": "~0.0.1",
"bezierizer": "~0.0.4",
"mustache": "~0.7.2",
"jck-library-extensions": "~0.0.4"
"jck-library-extensions": "~0.0.5"
},
"resolutions": {
"jquery": "~2.0.2",
Expand Down
3 changes: 1 addition & 2 deletions dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
<h1><a href="https://github.com/jeremyckahn/stylie"><img src="img/ui/stylie_logo.png" alt="Stylie"></a></h1>
<h2>A fun CSS animation tool, powered by <a href="http://rekapi.com" target="_blank">Rekapi</a></h2>
<a id="help-trigger" href="#">?</a>
<div id="top-level-alert">
<p>&nbsp;</p>
<div id="top-level-alert" class="alert">
</div>
</header>
<div id="scaffolding-area">
Expand Down
2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Stylie",
"version": "0.4.14",
"version": "0.4.15",
"homepage": "https://github.com/jeremyckahn/stylie",
"author": "Jeremy Kahn <[email protected]>",
"description": "A CSS3 keyframe generator",
Expand Down
9 changes: 6 additions & 3 deletions src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ require([
// Extensions
,'bower_components/jck-library-extensions/src/backbone/tabs/tabs'
,'bower_components/jck-library-extensions/src/backbone/pane/pane'
,'bower_components/jck-library-extensions/src/backbone/alert/alert'

// Misc
,'src/app'
Expand All @@ -78,7 +79,6 @@ require([
,'src/ui/modal'
,'src/ui/hotkey-handler'
,'src/ui/rekapi-controls'
,'src/ui/alert'
,'src/ui/save'
,'src/ui/load'
,'src/ui/orientation-controls'
Expand Down Expand Up @@ -106,6 +106,7 @@ require([

,TabsView
,PaneView
,AlertView

,app
,constant
Expand All @@ -122,7 +123,6 @@ require([
,ModalView
,HotkeyHandlerView
,RekapiControlsView
,AlertView
,SaveView
,LoadView
,OrientationControlsView
Expand Down Expand Up @@ -313,8 +313,11 @@ require([
});

app.view.topLevelAlertView = new AlertView({
'$el': $('#top-level-alert')
'el': document.getElementById('top-level-alert')
});
var topLevelAlertView = app.view.topLevelAlertView;
Backbone.on(constant.ALERT_ERROR,
_.bind(topLevelAlertView.show, topLevelAlertView));

var animationModel = new AnimationModel();

Expand Down
47 changes: 0 additions & 47 deletions src/ui/alert.js

This file was deleted.

2 changes: 1 addition & 1 deletion styles/css/main.css

Large diffs are not rendered by default.

20 changes: 1 addition & 19 deletions styles/sass/main.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../../bower_components/jck-library-extensions/src/backbone/tabs/tabs';
@import '../../bower_components/jck-library-extensions/src/backbone/pane/pane';
@import '../../bower_components/jck-library-extensions/src/backbone/alert/alert';
@import 'bezierizer';

$IMAGE_DIR: '../../img';
Expand Down Expand Up @@ -785,25 +786,6 @@ canvas {
padding-bottom: 12px;
}

#top-level-alert {
background: #a8a8a8;
border-radius: 4px;
display: none;
height: 46px;
padding: 4px;
position: absolute;
right: 6px;
top: 6px;
width: 345px;
}

#top-level-alert p {
color: #fff;
line-height: 1.2em;
margin: 0;
text-shadow: #555 0 0 1px;
}

#custom-ease {

}
Expand Down

0 comments on commit 9c425bb

Please sign in to comment.