dockerize

This commit is contained in:
Will Freeman
2024-10-02 18:27:02 -05:00
parent ff0aff59f4
commit fd94bd3cee
18 changed files with 359 additions and 133 deletions
+39
View File
@@ -0,0 +1,39 @@
<template>
<div style="position: relative">
<v-btn @click="copyToClipboard" variant="plain" flat class="copy-button">
<v-icon>mdi-content-copy</v-icon>
</v-btn>
<code ref="codeContent">
<slot></slot>
</code>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
const codeContent = ref<HTMLElement | null>(null);
function copyToClipboard() {
if (codeContent.value) {
navigator.clipboard.writeText(codeContent.value.innerText);
}
}
</script>
<style scoped>
code {
background-color: #f4f4f4;
padding: 0.5rem;
border-radius: 0.25rem;
display: block;
margin-top: 0.5rem;
}
.copy-button {
position: absolute;
right: 0;
top: 0;
z-index: 1000;
}
</style>