Drop narration, history and restated-code comments across the repo, keep short ones for security boundaries, upstream quirks and ordering constraints, and record the convention in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
54 lines
1.4 KiB
Vue
54 lines
1.4 KiB
Vue
<script setup>
|
|
/** Top bar: an UP button to the parent path (hidden at the root) and a marquee. */
|
|
import Headline from "@/components/text/Headline.vue";
|
|
import { computed } from "vue";
|
|
import { useRoute } from "vue-router";
|
|
|
|
const route = useRoute();
|
|
|
|
const parentPath = computed(() => {
|
|
const segments = route.path.split("/").filter(Boolean);
|
|
if (segments.length == 1) {
|
|
return "/";
|
|
} else {
|
|
segments.pop();
|
|
return segments.length ? "/" + segments.join("/") : null;
|
|
}
|
|
});
|
|
|
|
const faces = [
|
|
"^_^",
|
|
"¯\\_(ツ)_/¯",
|
|
"(◕‿◕✿)",
|
|
"ಠ_ಠ",
|
|
"ʘ‿ʘ",
|
|
"^̮^",
|
|
">_>",
|
|
"¬_¬",
|
|
"˙ ͜ʟ˙",
|
|
"( ͡° ͜ʖ ͡°)",
|
|
"[̲̅$̲̅(̲̅5̲̅)̲̅$̲̅]",
|
|
"(ง'̀-'́)ง",
|
|
"\ (•◡•) /",
|
|
"( ͡ᵔ ͜ʖ ͡ᵔ )",
|
|
"ᕙ(⇀‸↼‶)ᕗ",
|
|
"⚆ _ ⚆",
|
|
"(。◕‿◕。)",
|
|
"(╯°□°)╯︵ ʞooqǝɔɐɟ",
|
|
"̿ ̿ ̿'̿'\̵͇̿̿\з=(•_•)=ε/̵͇̿̿/'̿'̿ ̿",
|
|
"(☞゚ヮ゚)☞ ☜(゚ヮ゚☜)",
|
|
];
|
|
const faces_string = faces.join(" ");
|
|
</script>
|
|
|
|
<template>
|
|
<nav class="flex flex-row w-full h-fit border border-primary bg-surface">
|
|
<!-- <RouterLink class="bdr-2 bg-surface" v-if="parentPath" :to="parentPath"> -->
|
|
<!-- <span>UP</span> -->
|
|
<!-- </RouterLink> -->
|
|
<Headline class="border flex-1 max-w-full">
|
|
<code class="whitespace-pre">{{ faces_string }}</code>
|
|
</Headline>
|
|
</nav>
|
|
</template>
|