-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Paterson
committed
Jan 23, 2020
1 parent
0e08d17
commit afc3d46
Showing
6 changed files
with
38 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Component from '@ember/component'; | ||
import layout from '../../../templates/components/svg-repo/icons/icon-tag'; | ||
|
||
export default Component.extend({ | ||
layout, | ||
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,5 +1,2 @@ | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37.75 34.23" class="{{class}} single-colour icon-alert" data-test-id="svg-icon-alert"> | ||
<path class="background" d="M6.17,34.23c-5.5,0-7.75-3.9-5-8.66l12.7-22c2.75-4.76,7.25-4.76,10,0l12.7,22c2.75,4.76.5,8.66-5,8.66Z" /> | ||
<circle class="foreground-graphic" cx="19.03" cy="11.08" r="2.79" /> | ||
<polygon class="foreground-graphic" points="21.63 27.16 21.63 16.16 18.03 16.16 15.03 16.16 15.03 19.16 16.05 19.16 16.05 27.16 15.03 27.16 15.03 29.16 18.03 29.16 20.03 29.16 22.74 29.16 22.74 27.16 21.63 27.16" /> | ||
</svg> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37.8 34.2" class="{{class}} single-colour icon-alert" data-test-id="svg-icon-alert"><path class="st0" d="M36.57,25.57l-12.7-22c-2.75-4.76-7.25-4.76-10,0l-12.7,22c-2.75,4.76-0.5,8.66,5,8.66h25.4 C37.07,34.23,39.32,30.33,36.57,25.57z M19.04,7.82c1.8,0,3.26,1.46,3.26,3.26c0,1.8-1.46,3.26-3.26,3.26 c-1.8,0-3.26-1.46-3.26-3.26C15.77,9.28,17.23,7.82,19.04,7.82z M22.74, 30.16h-2.71h-2h-3v-2h1.02v-8h-1.02v-3h3h3.6v11h1.11V30.16z | ||
"/></svg> |
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 +1 @@ | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 252 252" class="{{class}} icon-plus"><rect x="118" width="16" height="252"/><rect x="118" transform="matrix(4.479268e-11 -1 1 4.479268e-11 -5.285543e-9 252)" width="16" height="252" class="{{class}} single-colour icon-plus" /></svg> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 252 252" class="{{class}} single-colour icon-plus"><rect x="118" width="16" height="252"/><rect x="118" transform="matrix(4.479268e-11 -1 1 4.479268e-11 -5.285543e-9 252)" width="16" height="252" /></svg> |
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 @@ | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 55.8 55.8" class="{{class}}"><path d="M0 5.2c0-1.4 0.5-2.7 1.5-3.7S3.8 0 5.2 0h22.2c1.5 0 2.7 0.5 3.7 1.5l23.1 23.1c1 1 1.5 2.3 1.5 3.7s-0.5 2.7-1.5 3.7L32 54.2c-1 1-2.2 1.5-3.7 1.5s-2.7-0.5-3.7-1.5L1.5 31.1C0.5 30.1 0 28.9 0 27.4V5.2zM8.5 8.5c-1 1-1.5 2.3-1.5 3.7s0.5 2.7 1.5 3.7 2.3 1.5 3.7 1.5 2.7-0.5 3.7-1.5 1.5-2.2 1.5-3.7 -0.5-2.7-1.5-3.7 -2.2-1.5-3.7-1.5S9.5 7.5 8.5 8.5z"/></svg> |
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 'svg-repo/components/svg-repo/icons/icon-tag'; |
26 changes: 26 additions & 0 deletions
26
tests/integration/components/svg-repo/icons/icon-tag-test.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { module, test } from 'qunit'; | ||
import { setupRenderingTest } from 'ember-qunit'; | ||
import { render } from '@ember/test-helpers'; | ||
import hbs from 'htmlbars-inline-precompile'; | ||
|
||
module('Integration | Component | svg-repo/icons/icon-tag', function(hooks) { | ||
setupRenderingTest(hooks); | ||
|
||
test('it renders', async function(assert) { | ||
// Set any properties with this.set('myProperty', 'value'); | ||
// Handle any actions with this.set('myAction', function(val) { ... }); | ||
|
||
await render(hbs`{{svg-repo/icons/icon-tag}}`); | ||
|
||
assert.equal(this.element.textContent.trim(), ''); | ||
|
||
// Template block usage: | ||
await render(hbs` | ||
{{#svg-repo/icons/icon-tag}} | ||
template block text | ||
{{/svg-repo/icons/icon-tag}} | ||
`); | ||
|
||
assert.equal(this.element.textContent.trim(), 'template block text'); | ||
}); | ||
}); |