Skip to content

Commit

Permalink
#199: Optimize vue-feather-icon usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Sep 14, 2020
1 parent a1d57bd commit 3cfdc7b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion site/.vuepress/theme/components/ClientGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</template>

<script>
import {ArrowUpRightIcon} from 'vue-feather-icons';
import ArrowUpRightIcon from 'vue-feather-icons/icons/ArrowUpRightIcon';
export default {
name: 'ClientGrid',
Expand Down
3 changes: 1 addition & 2 deletions site/.vuepress/theme/components/ContentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@
</template>

<script>
import {TagIcon} from 'vue-feather-icons';
import PostSummary from '@theme/components/PostSummary.vue';
import WorkSummary from '@theme/components/WorkSummary.vue';
export default {
components: {PostSummary, TagIcon, WorkSummary},
components: {PostSummary, WorkSummary},
props: {
sortOrder: {
type: Array,
Expand Down
3 changes: 2 additions & 1 deletion site/.vuepress/theme/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@
</template>

<script>
import {MenuIcon, XIcon} from 'vue-feather-icons';
import MenuIcon from 'vue-feather-icons/icons/MenuIcon';
import XIcon from 'vue-feather-icons/icons/XIcon';
export default {
components: {MenuIcon, XIcon},
Expand Down
4 changes: 1 addition & 3 deletions site/.vuepress/theme/components/PostSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
class="post-meta post-tag"
itemprop="keywords"
>
<TagIcon />
<router-link
v-for="tag in resolveTags(page.frontmatter.tags)"
:key="tag"
Expand All @@ -74,13 +73,12 @@
</template>

<script>
import {TagIcon} from 'vue-feather-icons';
import PostMeta from '@theme/components/PostMeta.vue';
import utils from '@theme/utils.js';
export default {
name: 'PostSummary',
components: {PostMeta, TagIcon},
components: {PostMeta},
props: {
page: {
type: Object,
Expand Down

0 comments on commit 3cfdc7b

Please sign in to comment.