Skip to content

Commit

Permalink
Removed unused icons
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamindavid committed Apr 1, 2019
1 parent 29d29db commit de14474
Show file tree
Hide file tree
Showing 16 changed files with 1,297 additions and 8,096 deletions.
4 changes: 2 additions & 2 deletions dist/craftui.cjs.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/craftui.es.js

Large diffs are not rendered by default.

2,248 changes: 1,124 additions & 1,124 deletions dist/craftui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/craftui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/craftui.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/src/notes/Icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ https://github.com/pixelandtonic/craftui/blob/master/src/components/Icon.vue
## Usage

```html
<icon icon="glass-martini-alt" />
<icon icon="glass-martini" />
```

## Attributes
Expand Down
2 changes: 1 addition & 1 deletion docs/src/stories/btn.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ storiesOf('Components|Btn', module)
},
icon: {
type: String,
default: select('icon', ['', 'plus', 'glass-martini-alt'], '')
default: select('icon', ['', 'plus', 'glass-martini'], '')
},
disabled: {
type: Boolean,
Expand Down
4 changes: 2 additions & 2 deletions docs/src/stories/icon.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import { storiesOf } from '@storybook/vue'
import IconNotesMD from '../notes/Icon.md'
import {select} from '@storybook/addon-knobs'
import icons from '../../../src/sprites/regular'
import icons from '../../../src/sprites/icons'

storiesOf('Components|Icon', module)
.add('Default', () => ({
template: `<icon :icon="icon" :size="size"></icon>`,
props: {
icon: {
type: String,
default: select('icon', icons, 'glass-martini-alt')
default: select('icon', icons, 'glass-martini')
},
size: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/plugins/icons.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import regularSvg from '../sprites/solid.svg'
import iconsSvg from '../sprites/icons.svg'

export default {
install () {
if(typeof document !== 'undefined'){
const iconsWrapper = document.createElement('div')
iconsWrapper.style.display = 'none'
iconsWrapper.innerHTML = regularSvg
iconsWrapper.innerHTML = iconsSvg
document.body.insertBefore(iconsWrapper, document.body.firstChild)
}
},
Expand Down
1,663 changes: 0 additions & 1,663 deletions src/sprites/brands.svg

This file was deleted.

33 changes: 33 additions & 0 deletions src/sprites/icons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
export default [
'angle-double-left',
'angle-double-right',
'angle-left',
'angle-right',
'bars',
'book',
'check',
'check-circle',
'copy',
'exclamation-circle',
'exclamation-triangle',
'glass-martini',
'handshake',
'image',
'info-circle',
'key',
'line-check-circle',
'line-exclamation-circle',
'line-exclamation-triangle',
'line-info-circle',
'link',
'pencil',
'plug',
'plus',
'search',
'shopping-cart',
'sort-amount-down',
'sort-amount-up',
'th',
'times',
'user',
]
127 changes: 127 additions & 0 deletions src/sprites/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit de14474

Please sign in to comment.