forked from ember-learn/builds
-
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.
- Tidies up some of the code - Moves to RFC 176 modules
- Loading branch information
Showing
37 changed files
with
212 additions
and
122 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,4 +1,4 @@ | ||
import Ember from 'ember'; | ||
import Component from '@ember/component'; | ||
|
||
export default Ember.Component.extend({ | ||
export default Component.extend({ | ||
}); |
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,5 @@ | ||
import Ember from 'ember'; | ||
import Component from '@ember/component'; | ||
|
||
export default Ember.Component.extend({ | ||
export default Component.extend({ | ||
tagName: '' | ||
}); |
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,4 +1,4 @@ | ||
import Ember from 'ember'; | ||
import Component from '@ember/component'; | ||
|
||
export default Ember.Component.extend({ | ||
export default Component.extend({ | ||
}); |
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,6 @@ | ||
import Ember from 'ember'; | ||
import Component from '@ember/component'; | ||
|
||
export default Ember.Component.extend({ | ||
export default Component.extend({ | ||
classNames: ['left'], | ||
classNameBindings: ['isCompleted::future-image'] | ||
}); |
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,4 +1,4 @@ | ||
import Ember from 'ember'; | ||
import Component from '@ember/component'; | ||
|
||
export default Ember.Component.extend({ | ||
export default Component.extend({ | ||
}); |
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,8 @@ | ||
import Ember from 'ember'; | ||
import $ from 'jquery'; | ||
import Component from '@ember/component'; | ||
|
||
export default Ember.Component.extend({ | ||
export default Component.extend({ | ||
didInsertElement() { | ||
Ember.$('.sk-cube-grid').hide(); | ||
$('.sk-cube-grid').hide(); | ||
} | ||
}); |
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,7 +1,7 @@ | ||
import Ember from 'ember'; | ||
import Controller from '@ember/controller'; | ||
import ProjectsMixin from '../mixins/projects'; | ||
|
||
export default Ember.Controller.extend(ProjectsMixin, { | ||
export default Controller.extend(ProjectsMixin, { | ||
channel: 'canary', | ||
channelDescription: 'Canary builds are generated from each commit to the master branch of Ember and Ember-Data. These builds are not suitable for use in production, and may contain unstable features disabled behind a flag.' | ||
}); |
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,20 +1,21 @@ | ||
import Ember from 'ember'; | ||
import { computed } from '@ember/object'; | ||
import Controller from '@ember/controller'; | ||
import ProjectsMixin from '../mixins/projects'; | ||
|
||
export default Ember.Controller.extend(ProjectsMixin, { | ||
export default Controller.extend(ProjectsMixin, { | ||
isIndexController: true, | ||
channel: 'beta', | ||
includeReleasesInFileList: true, | ||
channelDescription: 'Release builds are production-ready versions of Ember and Ember-Data that have been through a six-week beta cycle.', | ||
|
||
latestVersionOfDocs: Ember.computed('model.release.lastRelease', function() { | ||
latestVersionOfDocs: computed('model.release.lastRelease', function() { | ||
let release = this.get('model.release.lastRelease'); | ||
let [major, minor] = release.split('.'); | ||
|
||
return `${major}.${minor}.0`; | ||
}), | ||
|
||
emberBetaProject: Ember.computed('projects.@each.isEmberBeta', function() { | ||
emberBetaProject: computed('projects.@each.isEmberBeta', function() { | ||
return this.get('projects').find(p => p.isEmberBeta); | ||
}) | ||
}); |
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,6 @@ | ||
import Ember from 'ember'; | ||
import Controller from '@ember/controller'; | ||
import ProjectsMixin from '../mixins/projects'; | ||
|
||
export default Ember.Controller.extend(ProjectsMixin, { | ||
export default Controller.extend(ProjectsMixin, { | ||
channel: 'tagged' | ||
}); |
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,7 +1,7 @@ | ||
import Ember from 'ember'; | ||
import { helper } from '@ember/component/helper'; | ||
|
||
export function params(params/*, hash*/) { | ||
return params; | ||
} | ||
|
||
export default Ember.Helper.helper(params); | ||
export default helper(params); |
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,7 @@ | ||
import Ember from 'ember'; | ||
import { helper } from '@ember/component/helper'; | ||
|
||
export function printf([template, value]/*, hash*/) { | ||
return template.replace(/%s/g, value); | ||
} | ||
|
||
export default Ember.Helper.helper(printf); | ||
export default helper(printf); |
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,9 +1,11 @@ | ||
import { helper } from '@ember/component/helper'; | ||
import { htmlSafe } from '@ember/string'; | ||
import Ember from 'ember'; | ||
|
||
export function scriptTag([url]/*, hash*/) { | ||
let escapedURL = Ember.Handlebars.Utils.escapeExpression(url); | ||
|
||
return Ember.String.htmlSafe(`<script src="${escapedURL}"></script>`); | ||
return htmlSafe(`<script src="${escapedURL}"></script>`); | ||
} | ||
|
||
export default Ember.Helper.helper(scriptTag); | ||
export default helper(scriptTag); |
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,9 +1,9 @@ | ||
import Ember from 'ember'; | ||
import { helper } from '@ember/component/helper'; | ||
|
||
export function tagUrlPath([url]/*, hash*/) { | ||
let pathIndex = url.indexOf('tags'); | ||
|
||
return url.slice(pathIndex); | ||
} | ||
|
||
export default Ember.Helper.helper(tagUrlPath); | ||
export default helper(tagUrlPath); |
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,13 +1,15 @@ | ||
import { htmlSafe } from '@ember/string'; | ||
import EmberObject, { computed } from '@ember/object'; | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Object.extend({ | ||
scriptTag: Ember.computed('url', function() { | ||
export default EmberObject.extend({ | ||
scriptTag: computed('url', function() { | ||
let escapedURL = Ember.Handlebars.Utils.escapeExpression(this.get('url')); | ||
|
||
return new Ember.String.htmlSafe('<script src="' + escapedURL + '"></script>').toString(); | ||
return new htmlSafe('<script src="' + escapedURL + '"></script>').toString(); | ||
}), | ||
|
||
url: Ember.computed('baseUrl', 'relativePath', function() { | ||
url: computed('baseUrl', 'relativePath', function() { | ||
return this.get('baseUrl') + '/' + this.get('relativePath'); | ||
}) | ||
}); |
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.