Deploy with Docker Compose / deploy (push) Successful in 1m29s
- Replace searxng and open-webui with a FastAPI `python/` service proxied at /py/ (Travelodge hotel search, rate-limited in nginx) - Add CheapHotels view and CreateToggle component - Move design tokens into Tailwind @theme in styles.css and migrate components/views to utility classes; CVLayout re-points tokens for light theme - Update README, CLAUDE.md, and .gitignore accordingly Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dphx7LL5JC8dAFYU7MMpoA
46 lines
894 B
Vue
46 lines
894 B
Vue
<script setup>
|
|
import { computed } from "vue";
|
|
|
|
const props = defineProps({
|
|
href: { type: String, default: "" },
|
|
to: { type: String, default: "" },
|
|
target: { type: String, default: undefined },
|
|
rel: { type: String, default: undefined },
|
|
});
|
|
|
|
const computedRel = computed(() => {
|
|
if (props.rel !== undefined) return props.rel;
|
|
if (props.target === "_blank") return "noopener noreferrer";
|
|
return undefined;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<RouterLink v-if="to" :to="to" class="inline-link">
|
|
<slot />
|
|
</RouterLink>
|
|
<a
|
|
v-else
|
|
:href="href"
|
|
:target="target"
|
|
:rel="computedRel"
|
|
class="inline-link"
|
|
>
|
|
<slot />
|
|
</a>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.inline-link {
|
|
color: var(--color-primary);
|
|
font-weight: bold;
|
|
font-style: italic;
|
|
text-decoration: none;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.inline-link:hover {
|
|
color: var(--color-tertiary);
|
|
}
|
|
</style>
|