Skip to content

Commit

Permalink
feat: iconify
Browse files Browse the repository at this point in the history
  • Loading branch information
logustra committed Mar 11, 2021
1 parent 951295b commit 2fa0dcc
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 4 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = {
'no-prototype-builtins': 'off',
'no-unused-expressions': 'off',
'no-useless-escape': 'off',
'import/no-absolute-path': 'off',

// typescript
'@typescript-eslint/ban-types': 'off',
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"devDependencies": {
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"@iconify/json": "^1.1.314",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0",
"@vitejs/plugin-vue": "^1.1.5",
Expand Down Expand Up @@ -75,6 +76,7 @@
"tailwindcss": "^2.0.3",
"typescript": "^4.2.3",
"vite": "^2.0.5",
"vite-plugin-icons": "^0.3.2",
"vue": "^3.0.7",
"vue-eslint-parser": "^7.6.0",
"vue-router": "4",
Expand Down
29 changes: 29 additions & 0 deletions pnpm-lock.yaml

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

12 changes: 11 additions & 1 deletion src/modules/Home/views/home.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<div>Bismillah, Hello Vue</div>
<div>
Bismillah, Hello Vue
<IconAccessibility />
</div>
</template>

<script lang="ts">
Expand All @@ -11,8 +14,15 @@ import { useStore } from 'vuex'
import { SET_TITLE } from '@/stores/Common/commonTypes'
import IconAccessibility from '/@vite-icons/cil/globe-alt'
export default defineComponent({
name: 'Home',
components: {
IconAccessibility
},
setup () {
const store = useStore()
const common = store.getters.common
Expand Down
10 changes: 7 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import ViteIcons from 'vite-plugin-icons'

export default defineConfig({
plugins: [vue()],
plugins: [
Vue(),
ViteIcons(),
],

resolve: {
alias: [
Expand Down

0 comments on commit 2fa0dcc

Please sign in to comment.