Skip to content

Commit

Permalink
chore: use some icons from @mdi/js
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Jan 27, 2025
1 parent 621cd99 commit a44de44
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
33 changes: 24 additions & 9 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"@koumoul/vjsf": "2.22.1",
"@koumoul/vue-multianalytics": "^1.11.4",
"@mdi/font": "^7.0.96",
"@mdi/js": "^7.4.47",
"@nuxtjs/google-fonts": "^1.3.0",
"@nuxtjs/vuetify": "^1.12.3",
"clean-modules": "^2.0.4",
Expand Down
9 changes: 8 additions & 1 deletion public/components/layout/layout-personal-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
aria-label="symbole de connexion"
aria-hidden="false"
>
mdi-account-circle
{{ mdiAccountCircle }}
</v-icon>
</v-btn>
<v-btn
Expand Down Expand Up @@ -92,9 +92,16 @@

<script>
import { mapState, mapGetters, mapActions } from 'vuex'
// better to load svg for semantic icons important for accessbility
import { mdiAccountCircle } from '@mdi/js'
export default {
props: ['loginHref', 'backgroundDark'],
data () {
return {
mdiAccountCircle
}
},
computed: {
...mapState(['config', 'textDark', 'userPartners']),
...mapState('session', ['user']),
Expand Down
7 changes: 5 additions & 2 deletions public/components/notifications-queue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
aria-label="symbole de notification"
aria-hidden="false"
>
mdi-bell
{{ mdiBell }}
</v-icon>
</v-badge>
</v-btn>
Expand Down Expand Up @@ -86,6 +86,8 @@
<script>
import { mapState } from 'vuex'
import eventBus from '~/event-bus'
import { mdiBelll } from '@mdi/js'
/* let sound
if (!process.server) {
sound = new Audio(require('@/assets/sounds/Information_Block.ogg'))
Expand All @@ -98,7 +100,8 @@ export default {
countNew: null,
notifications: null,
loading: false,
size: 10
size: 10,
mdiBelll
}),
computed: {
...mapState(['textDark', 'config']),
Expand Down

0 comments on commit a44de44

Please sign in to comment.