-
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.
- Loading branch information
Showing
40 changed files
with
1,540 additions
and
1,064 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
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
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
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
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,16 +1,17 @@ | ||
<template> | ||
<a :href="getLoginUrl(route.query.destination || '/corpus')"> | ||
<ActionButton variant="primary"> | ||
<icon :icon="['fas', 'right-to-bracket']" /> | ||
{{ $t("login") }} | ||
</ActionButton> | ||
</a> | ||
<UrlButton | ||
class="button-primary" | ||
:href="getLoginUrl(route.query.destination || '/corpus')" | ||
> | ||
<icon :icon="['fas', 'right-to-bracket']" /> | ||
{{ $t("login") }} | ||
</UrlButton> | ||
</template> | ||
|
||
<script setup> | ||
import { useRoute } from "vue-router"; | ||
import { getLoginUrl } from "./auth"; | ||
import ActionButton from "@/components/ActionButton.vue"; | ||
import UrlButton from "@/components/UrlButton.vue"; | ||
const route = useRoute(); | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,9 @@ | ||
<template> | ||
<div | ||
class="inline-block mink-button" | ||
:class="{ [variantClass]: true, disabled }" | ||
> | ||
<button class="inline-block mink-button" :disabled="disabled"> | ||
<slot /> | ||
</div> | ||
</button> | ||
</template> | ||
|
||
<script setup> | ||
import { useVariant, variantProps } from "@/variant.composable"; | ||
const props = defineProps({ ...variantProps, disabled: Boolean }); | ||
const { variantClass } = useVariant(() => props.variant); | ||
defineProps({ disabled: Boolean }); | ||
</script> | ||
|
||
<style scoped> | ||
.mute { | ||
@apply text-inherit border-0 shadow-none; | ||
} | ||
.mute:not(:hover) { | ||
@apply bg-transparent text-inherit; | ||
} | ||
.slim { | ||
@apply p-0 px-1; | ||
} | ||
</style> |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script setup> | ||
import ActionButton from "./ActionButton.vue"; | ||
defineProps({ | ||
to: { type: [String, Object], required: true }, | ||
disabled: Boolean, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<router-link v-slot="{ navigate }" :to="to" custom> | ||
<ActionButton :disabled="disabled" v-bind="$attrs" @click="navigate"> | ||
<slot /> | ||
</ActionButton> | ||
</router-link> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script setup> | ||
defineProps({ | ||
href: { type: String, required: true }, | ||
target: { type: String, default: undefined }, | ||
disabled: Boolean, | ||
}); | ||
</script> | ||
|
||
<template> | ||
<a | ||
:href="disabled ? undefined : href" | ||
:target="target" | ||
class="inline-block mink-button" | ||
:class="{ disabled }" | ||
> | ||
<slot /> | ||
</a> | ||
</template> |
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
Oops, something went wrong.