文脈を追加

This commit is contained in:
Rikuoh Tsujitani 2025-02-16 10:54:02 +09:00
parent 668a8ac5bd
commit d4b78d4acd
Signed by: riq0h
GPG key ID: 010F09DEA298C717
4 changed files with 4 additions and 2 deletions

View file

@ -4,5 +4,7 @@ Rails、Action cable、Vueで構成された簡素なリアルタイムチャッ
# 文脈 # 文脈
[Entering](https://riq0h.jp/2023/04/30/232125/)で主人公が作っていたチャットサービスをモダンな技術で再現した。 [Entering](https://riq0h.jp/2023/04/30/232125/)で主人公が作っていたチャットサービスをモダンな技術で再現した。
![](/img/img.png)
# LICENSE # LICENSE
MIT MIT

View file

@ -8,7 +8,7 @@
:key="message.id" :key="message.id"
style="background-color: lightgray; padding: 10px; margin-bottom: 10px" style="background-color: lightgray; padding: 10px; margin-bottom: 10px"
> >
<strong style="color: navy">{{ message.sender_name }}:</strong> {{ message.content }} <strong style="color: navy">{{ message.sender_name }}></strong> {{ message.content }}
</li> </li>
</ul> </ul>
<form @submit.prevent="sendMessage" style="background-color: lightgray; padding: 20px"> <form @submit.prevent="sendMessage" style="background-color: lightgray; padding: 20px">

View file

@ -1,6 +1,6 @@
<template> <template>
<div style="background-color: lightcyan; padding: 20px"> <div style="background-color: lightcyan; padding: 20px">
<h1 style="color: navy; font-family: Arial, sans-serif">VueChat - チャットルーム一覧</h1> <h1 style="color: navy; font-family: Arial, sans-serif">チャットルーム一覧</h1>
<ul style="list-style-type: none; padding: 0"> <ul style="list-style-type: none; padding: 0">
<li v-for="room in chatRooms" :key="room.id" style="margin-bottom: 10px"> <li v-for="room in chatRooms" :key="room.id" style="margin-bottom: 10px">
<router-link <router-link

BIN
img/img.png Normal file

Binary file not shown.

After

(image error) Size: 26 KiB