forked from adopted-ember-addons/ember-paper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: Add missing trailing EOL in paper-toolbar-test.js. Remove self-closing tags in dummy app sidenav. fix self closing tags Add missing trailing EOL in paper-toolbar.hbs. update toolbars (adopted-ember-addons#367) use double quotes contributing.md: Add comments to coding style. Update changelog.md. Fix npm 2.x build failures for angular-material-source dependency (adopted-ember-addons#364) Toolbar class bindings (adopted-ember-addons#362) md-button class bindings (adopted-ember-addons#365) progress-circular dummy app: Restore previous behavior inadvertently commented out. progress-circular & -linear dummy app: Start/stop progress when route is activated/deactivated. link directly to `ember-route-action` helper (adopted-ember-addons#363) Bump version to `1.0.0-alpha.0`. dummy app: Make version extremely apparent. contributing.md: Document building and deploying dummy app to github.io. Checkbox & switch examples layout (adopted-ember-addons#361) # Conflicts: # package.json
- Loading branch information
Showing
22 changed files
with
373 additions
and
88 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
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,6 @@ | ||
import Ember from 'ember'; | ||
const { Component } = Ember; | ||
|
||
export default Component.extend({ | ||
classNames: ['md-toolbar-tools'] | ||
}); |
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,7 +1,10 @@ | ||
import Ember from 'ember'; | ||
import ColorMixin from 'ember-paper/mixins/color-mixin'; | ||
const { Component } = Ember; | ||
|
||
export default Ember.Component.extend(ColorMixin, { | ||
export default Component.extend(ColorMixin, { | ||
tagName: 'md-toolbar', | ||
classNames: ['md-default-theme'] | ||
classNames: ['md-default-theme'], | ||
tall: false, | ||
classNameBindings: ['tall:md-tall'] | ||
}); |
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 @@ | ||
import PaperToolbarTools from 'ember-paper/components/paper-toolbar-tools'; | ||
|
||
export default PaperToolbarTools; |
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,8 @@ | ||
{{yield (hash | ||
title=(component 'paper-card-title') | ||
content=(component 'paper-card-content') | ||
actions=(component 'paper-card-actions') | ||
header=(component 'paper-card-header') | ||
image=(component 'paper-card-image') | ||
media=(component 'paper-card-media') | ||
title=(component "paper-card-title") | ||
content=(component "paper-card-content") | ||
actions=(component "paper-card-actions") | ||
header=(component "paper-card-header") | ||
image=(component "paper-card-image") | ||
media=(component "paper-card-media") | ||
)}} |
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 @@ | ||
{{yield (hash | ||
tools=(component "paper-toolbar-tools") | ||
)}} |
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,22 +1,28 @@ | ||
import Ember from 'ember'; | ||
const { Controller, run } = Ember; | ||
|
||
export default Ember.Controller.extend({ | ||
export default Controller.extend({ | ||
mode: 'query', | ||
determinateValue: 30, | ||
determinateValue: 0, | ||
timer: null, | ||
|
||
init() { | ||
start() { | ||
this.set('determinateValue', 30); | ||
this.setupTimer(); | ||
}, | ||
|
||
setupTimer() { | ||
Ember.run.later(this, function() { | ||
this.incrementProperty('determinateValue', 1); | ||
if (this.get('determinateValue') > 100) { | ||
this.set('timer', run.later(this, function() { | ||
let value = this.incrementProperty('determinateValue', 1); | ||
if (value > 100) { | ||
this.set('determinateValue', 30); | ||
} | ||
this.setupTimer(); | ||
}, 100)); | ||
}, | ||
|
||
Ember.run.later(this, this.setupTimer); | ||
|
||
}, 100); | ||
stop() { | ||
run.cancel(this.get('timer')); | ||
} | ||
|
||
}); |
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,35 +1,45 @@ | ||
import Ember from 'ember'; | ||
const { Controller, run } = Ember; | ||
|
||
export default Ember.Controller.extend({ | ||
export default Controller.extend({ | ||
|
||
mode: 'query', | ||
determinateValue: 30, | ||
determinateValue2: 30, | ||
|
||
init() { | ||
determinateValue: 0, | ||
determinateValue2: 0, | ||
timer: null, | ||
timer2: null, | ||
|
||
start() { | ||
this.set('determinateValue', 30); | ||
this.set('determinateValue2', 30); | ||
this.setupTimer(); | ||
this.setupTimer2(); | ||
}, | ||
|
||
setupTimer() { | ||
Ember.run.later(this, function() { | ||
this.incrementProperty('determinateValue', 1); | ||
this.set('timer', run.later(this, function() { | ||
let value = this.incrementProperty('determinateValue', 1); | ||
this.incrementProperty('determinateValue2', 1.5); | ||
if (this.get('determinateValue') > 100) { | ||
if (value > 100) { | ||
this.set('determinateValue', 30); | ||
this.set('determinateValue2', 30); | ||
} | ||
|
||
Ember.run.later(this, this.setupTimer); | ||
this.setupTimer(); | ||
|
||
}, 100); | ||
}, 100)); | ||
}, | ||
|
||
setupTimer2() { | ||
Ember.run.later(this, function() { | ||
this.set('timer2', run.later(this, function() { | ||
this.set('mode', this.get('mode') === 'query' ? 'determinate' : 'query'); | ||
Ember.run.later(this, this.setupTimer2); | ||
}, 7200); | ||
}, 7200)); | ||
}, | ||
|
||
stop() { | ||
run.cancel(this.get('timer')); | ||
run.cancel(this.get('timer2')); | ||
} | ||
|
||
}); |
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 @@ | ||
import Ember from 'ember'; | ||
|
||
const { Route, on } = Ember; | ||
|
||
export default Route.extend({ | ||
|
||
onActivate: on('activate', function() { | ||
this.controllerFor('progress-circular').start(); | ||
}), | ||
|
||
onDeactivate: on('deactivate', function() { | ||
this.controllerFor('progress-circular').stop(); | ||
}) | ||
|
||
}); |
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 @@ | ||
import Ember from 'ember'; | ||
|
||
const { Route, on } = Ember; | ||
|
||
export default Route.extend({ | ||
|
||
onActivate: on('activate', function() { | ||
this.controllerFor('progress-linear').start(); | ||
}), | ||
|
||
onDeactivate: on('deactivate', function() { | ||
this.controllerFor('progress-linear').stop(); | ||
}) | ||
|
||
}); |
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
Oops, something went wrong.