diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-04-24 05:19:57 +0200 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-04-28 00:06:26 +0200 |
| commit | f7f2d1193758bb9d7a2d467f188cf755c8d5ddc9 (patch) | |
| tree | 4c8c0f3df3a67204bb0d16670b360bea6518aa81 /data/vue/Section.vue | |
| parent | 397286c87dc9aa3cba458973bdc65b3f3be14657 (diff) | |
Removes old data server and cleans up python code
Diffstat (limited to 'data/vue/Section.vue')
| -rw-r--r-- | data/vue/Section.vue | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/data/vue/Section.vue b/data/vue/Section.vue deleted file mode 100644 index 7f4d633..0000000 --- a/data/vue/Section.vue +++ /dev/null @@ -1,47 +0,0 @@ -<template> - <h2 class="section_header" @click="section_toggle_visible"> - {{ name }} <span class="section_button">{{ visible ? '-' : '+' }}</span> - </h2> - <div :class="{ section_grid: grid }" v-if="visible"> - <slot></slot> - </div> -</template> - -<script setup> -import { defineProps, inject, ref } from 'vue' - -const props = defineProps({ name: String, grid: Boolean, visible: Boolean, triggers_reload: Boolean }) -const visible = ref(props.visible) -const trigger_reload = inject('trigger_reload') - -const section_toggle_visible = () => { - visible.value = !visible.value - if (props.triggers_reload) trigger_reload() -} - -defineExpose({ visible }) -</script> - -<style> -.section_header { - border-bottom: 1px solid gray; - cursor: pointer; - font-size: 16px; - font-weight: normal; -} - -.section_button { - font-family: monospace; -} - -.section_grid { - display: grid; - grid-template-columns: 1fr 1fr; -} - -@media screen and (max-width: 800px) { - .section_grid { - grid-template-columns: 1fr; - } -} -</style> |
