35 lines
1.5 KiB
Vue
35 lines
1.5 KiB
Vue
<script setup lang="ts">
|
|
// A small set of line icons for the menu; an unknown name draws nothing.
|
|
defineProps<{ name?: string }>();
|
|
|
|
const paths: Record<string, string> = {
|
|
home: 'M3 11l9-8 9 8v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z',
|
|
file: 'M7 3h7l5 5v13H7zM14 3v5h5',
|
|
image: 'M4 5h16v14H4zM4 16l5-5 4 4 3-3 4 4M9 9h.01',
|
|
users: 'M16 20v-1a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v1M10 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M20 20v-1a3 3 0 0 0-2-2.8M16 5.2a3 3 0 0 1 0 5.6',
|
|
group: 'M3 7h18v12H3zM8 7V5h8v2',
|
|
chart: 'M4 20V10M10 20V4M16 20v-8M22 20H2',
|
|
shield: 'M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z',
|
|
star: 'M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z',
|
|
tag: 'M3 12V4h8l10 10-8 8zM7.5 8h.01',
|
|
link: 'M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1',
|
|
cog: 'M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6M19 12a7 7 0 0 0-.1-1.2l2-1.5-2-3.4-2.3.9a7 7 0 0 0-2-1.2L14.2 3h-4l-.4 2.6a7 7 0 0 0-2 1.2l-2.3-.9-2 3.4 2 1.5A7 7 0 0 0 5 12c0 .4 0 .8.1 1.2l-2 1.5 2 3.4 2.3-.9a7 7 0 0 0 2 1.2l.4 2.6h4l.4-2.6a7 7 0 0 0 2-1.2l2.3.9 2-3.4-2-1.5c.1-.4.1-.8.1-1.2',
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<svg
|
|
v-if="name && paths[name]"
|
|
class="h-4 w-4 shrink-0"
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
stroke-width="1.8"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
aria-hidden="true"
|
|
>
|
|
<path :d="paths[name]" />
|
|
</svg>
|
|
</template>
|