Skip to content

Commit

Permalink
fix(icon): set default title in html
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Oct 15, 2022
1 parent 9d925ff commit 3aa09a4
Show file tree
Hide file tree
Showing 57 changed files with 191 additions and 399 deletions.
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconAddressBook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="address-book"
role="img"
viewBox="0 0 512 512"
:title="title"
:title="title || t('title')"
>
<path
fill="currentColor"
Expand All @@ -17,14 +17,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconArchive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="title"
:title="title || t('title')"
>
<path
stroke-linecap="round"
Expand All @@ -16,14 +16,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconArrowLeft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
:title="title"
:title="title || t('title')"
>
<path
stroke-linecap="round"
Expand All @@ -16,14 +16,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconArrowRight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
:title="title"
:title="title || t('title')"
>
<path
stroke-linecap="round"
Expand All @@ -16,14 +16,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconArrowRotateLeft.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="arrow-rotate-left"
role="img"
viewBox="0 0 512 512"
:title="title"
:title="title || t('title')"
>
<path
fill="currentColor"
Expand All @@ -17,14 +17,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconArrowRotateRight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="arrow-rotate-right"
role="img"
viewBox="0 0 512 512"
:title="title"
:title="title || t('title')"
>
<path
fill="currentColor"
Expand All @@ -17,14 +17,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconBold.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="bold"
role="img"
viewBox="0 0 384 512"
:title="title"
:title="title || t('title')"
>
<path
fill="currentColor"
Expand All @@ -17,14 +17,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconBug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data-icon="bug"
role="img"
viewBox="0 0 512 512"
:title="title"
:title="title || t('title')"
>
<path
fill="currentColor"
Expand All @@ -17,14 +17,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="title"
:title="title || t('title')"
>
<path
stroke-linecap="round"
Expand All @@ -16,14 +16,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
14 changes: 7 additions & 7 deletions nuxt/components/icon/IconCheckCircle.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<template>
<IconContainer viewBox="0 0 20 20" fill="currentColor" :title="title">
<IconContainer
viewBox="0 0 20 20"
fill="currentColor"
:title="title || t('title')"
>
<path
fill-rule="evenodd"
d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
Expand All @@ -10,14 +14,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconChevronDoubleDown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
:title="title"
:title="title || t('title')"
>
<path
stroke-linecap="round"
Expand All @@ -16,14 +16,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="title"
:title="title || t('title')"
>
<path
stroke-linecap="round"
Expand All @@ -16,14 +16,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconCog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="title"
:title="title || t('title')"
>
<path
stroke-linecap="round"
Expand All @@ -22,14 +22,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconDotsVertical.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
:title="title"
:title="title || t('title')"
>
<path
stroke-linecap="round"
Expand All @@ -16,14 +16,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
10 changes: 3 additions & 7 deletions nuxt/components/icon/IconDownload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
:title="title"
:title="title || t('title')"
>
<path
stroke-linecap="round"
Expand All @@ -16,14 +16,10 @@

<script setup lang="ts">
export interface Props {
title?: string
title?: string // eslint-disable-line vue/require-default-prop
}
withDefaults(defineProps<Props>(), {
title: t('title'), // eslint-disable-line no-use-before-define
})
</script>
withDefaults(defineProps<Props>(), {})
<script lang="ts">
const { t } = useI18n()
</script>

Expand Down
Loading

0 comments on commit 3aa09a4

Please sign in to comment.