forked from hoppscotch/hoppscotch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update vite-plugin-dts version which fixes build issue on docker…
…/alpine (hoppscotch#3179)
- Loading branch information
1 parent
6928eb7
commit 25177bd
Showing
4 changed files
with
223 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,55 @@ | ||
<template> | ||
<HoppSmartLink :to="to" :exact="exact" :blank="blank" class="inline-flex items-center justify-center focus:outline-none" | ||
<HoppSmartLink | ||
:to="to" | ||
:exact="exact" | ||
:blank="blank" | ||
class="inline-flex items-center justify-center focus:outline-none" | ||
:class="[ | ||
color | ||
? `text-${color}-500 hover:text-${color}-600 focus-visible:text-${color}-600` | ||
: 'hover:text-secondaryDark focus-visible:text-secondaryDark', | ||
{ 'opacity-75 cursor-not-allowed': disabled }, | ||
{ 'flex-row-reverse': reverse }, | ||
]" :disabled="disabled" tabindex="0"> | ||
<component :is="icon" v-if="icon" class="svg-icons" :class="label ? (reverse ? 'ml-2' : 'mr-2') : ''" /> | ||
]" | ||
:disabled="disabled" | ||
tabindex="0" | ||
> | ||
<component | ||
:is="icon" | ||
v-if="icon" | ||
class="svg-icons" | ||
:class="label ? (reverse ? 'ml-2' : 'mr-2') : ''" | ||
/> | ||
{{ label }} | ||
</HoppSmartLink> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import HoppSmartLink from "./Link.vue"; | ||
import { Component, defineComponent, PropType } from "vue" | ||
<script setup lang="ts"> | ||
import HoppSmartLink from "./Link.vue" | ||
import { Component } from "vue" | ||
export default defineComponent({ | ||
components: { | ||
HoppSmartLink | ||
}, | ||
props: { | ||
to: { | ||
type: String, | ||
default: "", | ||
}, | ||
exact: { | ||
type: Boolean, | ||
default: true, | ||
}, | ||
blank: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
label: { | ||
type: String, | ||
default: "", | ||
}, | ||
icon: { | ||
type: Object as PropType<Component | null>, | ||
default: null, | ||
}, | ||
svg: { | ||
type: Object as PropType<Component | null>, | ||
default: null, | ||
}, | ||
color: { | ||
type: String, | ||
default: "", | ||
}, | ||
disabled: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
reverse: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}, | ||
}) | ||
withDefaults( | ||
defineProps<{ | ||
to: string | ||
exact: boolean | ||
blank: boolean | ||
label: string | ||
icon: Component | null | ||
svg: Component | null | ||
color: string | ||
disabled: boolean | ||
reverse: boolean | ||
}>(), | ||
{ | ||
to: "", | ||
exact: true, | ||
blank: false, | ||
label: "", | ||
icon: null, | ||
svg: null, | ||
color: "", | ||
disabled: false, | ||
reverse: false, | ||
} | ||
) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.