-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #509 from ember-learn/svg-jar
stop using svg-jar
- Loading branch information
Showing
32 changed files
with
271 additions
and
1,011 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
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 @@ | ||
{{!-- template-lint-disable no-triple-curlies --}} | ||
{{{this.icon}}} |
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,23 @@ | ||
import Component from '@glimmer/component'; | ||
import { assert } from '@ember/debug'; | ||
|
||
import icons from '../constants/icons'; | ||
|
||
export default class EsIconComponent extends Component { | ||
get icon() { | ||
if (!(this.args.icon in icons)) { | ||
assert( | ||
`${ | ||
this.args.icon | ||
} isn't a supported icon. We no longer support dynamid svg lookup and can only support the following icons: ${Object.keys( | ||
icons | ||
).join(', ')}` | ||
); | ||
} | ||
|
||
return icons[this.args.icon].replace( | ||
'<svg ', | ||
`<svg class="${this.args.class}"` | ||
); | ||
} | ||
} |
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,15 +1,15 @@ | ||
<div class="pagination-wrapper"> | ||
{{#if (and (has-block "previous") @showPrevious)}} | ||
<div class="previous-wrapper"> | ||
<img alt="left arrow" src="/images/icons/arrow-icon.svg" /> | ||
<img alt="left arrow" src="/images/arrow-icon.svg" /> | ||
<div>{{yield to='previous'}}</div> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if (and (has-block "next") @showNext)}} | ||
<div class="next-wrapper"> | ||
<div>{{yield to='next'}}</div> | ||
<img alt="right arrow" src="/images/icons/arrow-icon.svg" /> | ||
<img alt="right arrow" src="/images/arrow-icon.svg" /> | ||
</div> | ||
{{/if}} | ||
</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
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
export { default } from 'ember-styleguide/components/es-icon'; |
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.