Skip to content

Commit

Permalink
feat: add glyphicons support #161
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Feb 12, 2024
1 parent 652c100 commit 09b31d5
Show file tree
Hide file tree
Showing 8 changed files with 1,365 additions and 3 deletions.
Binary file not shown.
288 changes: 288 additions & 0 deletions assets/glyphicons/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1,070 changes: 1,070 additions & 0 deletions assets/glyphicons/glyphicons.css

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions components/UI/TeritorioIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ export default defineNuxtComponent({
</script>

<template>
<i
v-if="!Boolean(image) && picto.startsWith('teritorio')"
<!-- <i
v-if="!Boolean(image) && (picto.startsWith('teritorio') || picto.startsWith('glyphicon'))"
:class="[
picto,
!useNativeAlignment && 'tw-flex tw-items-center tw-justify-center',
]"
:style="{ color: colorText }"
/> -->
<i
v-if="!Boolean(image)"
class="glyphicon glyphicon-envelope"
/>
<FontAwesomeIcon
v-else-if="!Boolean(image)"

Check failure on line 47 in components/UI/TeritorioIcon.vue

View workflow job for this annotation

GitHub Actions / Lint code base (ubuntu-latest, 18)

This branch can never execute. Its condition is a duplicate or covered by previous conditions in the `v-if` / `v-else-if` chain
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineNuxtConfig({
],
},
components: false,
css: ['@fortawesome/fontawesome-svg-core/styles.css'],
css: ['@fortawesome/fontawesome-svg-core/styles.css', '@/assets/glyphicons/glyphicons.css'],
devtools: { enabled: true },
gtm: {
pageTracking: false,
Expand Down

0 comments on commit 09b31d5

Please sign in to comment.