created frontend with login, room listing and creation, and message page with all features

This commit is contained in:
2025-12-15 14:50:50 +01:00
parent f10c761f1b
commit d6a26c0d09
18 changed files with 653 additions and 165 deletions

View File

@@ -0,0 +1,31 @@
<script setup lang="ts">
import type { Message } from '../types/api'
defineProps<{ messages: Message[] }>()
</script>
<template>
<ul>
<li v-for="(m, i) in messages" :key="i">
<strong>{{ m.sender }}:</strong> {{ m.content }}
</li>
</ul>
</template>
<style scoped>
ul {
padding: 0;
margin: 0;
list-style: none;
word-wrap: break-word;
}
li {
white-space: pre-wrap;
}
.message-content {
display: inline-block;
max-width: 100%;
word-break: break-word;
}
</style>