-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update docs, tests, examples to use AngleBracket components
- Loading branch information
Showing
130 changed files
with
4,313 additions
and
3,990 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 |
---|---|---|
@@ -1,22 +1,33 @@ | ||
/bower_components | ||
# compiled output | ||
/dist/ | ||
/tmp/ | ||
|
||
# dependencies | ||
/bower_components/ | ||
|
||
# misc | ||
/.bowerrc | ||
/.editorconfig | ||
/.ember-cli | ||
/.env* | ||
/.eslintcache | ||
/.eslintignore | ||
/.eslintrc.js | ||
/.git/ | ||
/.gitignore | ||
/.template-lintrc.js | ||
/.travis.yml | ||
/.watchmanconfig | ||
/bower.json | ||
/config/ember-try.js | ||
/dist | ||
/tests | ||
/tmp | ||
**/.gitkeep | ||
.bowerrc | ||
.editorconfig | ||
.ember-cli | ||
.eslintrc.js | ||
.gitignore | ||
.watchmanconfig | ||
.travis.yml | ||
bower.json | ||
ember-cli-build.js | ||
testem.js | ||
yarn.lock | ||
/CONTRIBUTING.md | ||
/ember-cli-build.js | ||
/testem.js | ||
/tests/ | ||
/yarn.lock | ||
.gitkeep | ||
|
||
# ember-try | ||
.node_modules.ember-try/ | ||
bower.json.ember-try | ||
package.json.ember-try | ||
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/package.json.ember-try |
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,21 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
/vendor/ | ||
|
||
# compiled output | ||
/dist/ | ||
/tmp/ | ||
|
||
# dependencies | ||
/bower_components/ | ||
/node_modules/ | ||
|
||
# misc | ||
/coverage/ | ||
!.* | ||
.eslintcache | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/package.json.ember-try |
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 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
singleQuote: true, | ||
}; |
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 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
extends: 'octane' | ||
extends: 'octane', | ||
}; |
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,62 @@ | ||
--- | ||
language: node_js | ||
node_js: | ||
# we recommend testing addons with the same minimum supported node version as Ember CLI | ||
# so that your addon works for all apps | ||
- "10" | ||
|
||
dist: xenial | ||
|
||
addons: | ||
chrome: stable | ||
|
||
cache: | ||
yarn: true | ||
|
||
env: | ||
global: | ||
# See https://git.io/vdao3 for details. | ||
- JOBS=1 | ||
|
||
branches: | ||
only: | ||
- master | ||
# npm version tags | ||
- /^v\d+\.\d+\.\d+/ | ||
|
||
jobs: | ||
fast_finish: true | ||
allow_failures: | ||
- env: EMBER_TRY_SCENARIO=ember-canary | ||
|
||
include: | ||
# runs linting and tests with current locked deps | ||
- stage: "Tests" | ||
name: "Tests" | ||
script: | ||
- yarn lint | ||
- yarn test:ember | ||
|
||
- stage: "Additional Tests" | ||
name: "Floating Dependencies" | ||
install: | ||
- yarn install --no-lockfile --non-interactive | ||
script: | ||
- yarn test:ember | ||
|
||
# we recommend new addons test the current and previous LTS | ||
# as well as latest stable release (bonus points to beta/canary) | ||
- env: EMBER_TRY_SCENARIO=ember-lts-3.16 | ||
- env: EMBER_TRY_SCENARIO=ember-lts-3.20 | ||
- env: EMBER_TRY_SCENARIO=ember-release | ||
- env: EMBER_TRY_SCENARIO=ember-beta | ||
- env: EMBER_TRY_SCENARIO=ember-canary | ||
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery | ||
- env: EMBER_TRY_SCENARIO=ember-classic | ||
|
||
before_install: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash | ||
- export PATH=$HOME/.yarn/bin:$PATH | ||
|
||
script: | ||
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |
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,5 @@ | ||
<div class="FreestyleAnnotation {{if this.showNotes 'is-showing' 'is-hidden'}}"> | ||
{{#if this.showNotes}} | ||
{{yield}} | ||
{{/if}} | ||
</div> |
17 changes: 7 additions & 10 deletions
17
addon/components/freestyle-annotation.js → .../components/freestyle-annotation/index.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 |
---|---|---|
@@ -1,26 +1,23 @@ | ||
import { inject as service } from '@ember/service'; | ||
import Component from '@ember/component'; | ||
import { computed } from '@ember/object'; | ||
import layout from '../templates/components/freestyle-annotation'; | ||
|
||
let FreestyleAnnotation = Component.extend({ | ||
layout, | ||
classNames: ['FreestyleAnnotation'], | ||
classNameBindings: ['showNotes:is-showing:is-hidden'], | ||
tagName: '', | ||
|
||
emberFreestyle: service(), | ||
showNotes: computed('emberFreestyle.{showNotes,focus}', 'slug', function() { | ||
let slug = this.get('slug'); | ||
let focus = this.get('emberFreestyle.focus'); | ||
showNotes: computed('emberFreestyle.{showNotes,focus}', 'slug', function () { | ||
let slug = this.slug; | ||
let focus = this.emberFreestyle.focus; | ||
if (focus && slug) { | ||
return slug.match(focus); | ||
} | ||
return this.get('emberFreestyle.showNotes'); | ||
}) | ||
return this.emberFreestyle.showNotes; | ||
}), | ||
}); | ||
|
||
FreestyleAnnotation.reopenClass({ | ||
positionalParams: ['slug'] | ||
positionalParams: ['slug'], | ||
}); | ||
|
||
export default FreestyleAnnotation; |
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 @@ | ||
<div class="FreestyleCollection {{if @inline 'FreestyleCollection--inline'}}"> | ||
{{#if this.hasLabels}} | ||
<div class="FreestyleCollection-title"> | ||
{{@title}} | ||
</div> | ||
{{/if}} | ||
{{#if this.showVariantList}} | ||
<FreestyleVariantList @variants={{this.variants}} @activeKey={{this.activeKey}} @onClickVariant={{this.setKey}} /> | ||
{{/if}} | ||
{{yield | ||
(hash | ||
variant=(component "freestyle-variant" collection=this) | ||
) | ||
}} | ||
</div> |
Oops, something went wrong.