diff --git a/src/App.vue b/src/App.vue index d894922..3e111f2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,6 +9,5 @@ color: $text-primary; background-color: $background-primary; min-height: 100vh; - padding-bottom: 2rem; } diff --git a/src/components/CommentPanel/CommentControls.vue b/src/components/CommentPanel/CommentControls.vue index 32fb07c..65b9ee6 100644 --- a/src/components/CommentPanel/CommentControls.vue +++ b/src/components/CommentPanel/CommentControls.vue @@ -5,6 +5,13 @@ import BaseButton from '@/components/UI/BaseButton.vue' import ColorPicker from '@/components/CommentPanel/ColorPicker.vue' import AIcon from '@/components/UI/AIcon.vue' import type { TextColor } from '@/consts/colors' +import { useGeneralConnectClient } from '@/lib/connectClient' + +const props = defineProps<{ + eventId: string +}>() + +const client = useGeneralConnectClient() const commentValue = ref('') const pickedColor = ref('#000000') @@ -13,8 +20,15 @@ const isAnonymous = ref(false) const toggleIsAnonymous = () => { isAnonymous.value = !isAnonymous.value } -const sendComment = () => { - //todo:コメントを送信する +const sendComment = async () => { + if (!commentValue.value) return + await client.sendComment({ + meetingId: props.eventId, + text: commentValue.value, + color: pickedColor.value, + isAnonymous: isAnonymous.value + }) + commentValue.value = '' } diff --git a/src/components/CommentPanel/CommentPanel.vue b/src/components/CommentPanel/CommentPanel.vue index fe58871..1d81f61 100644 --- a/src/components/CommentPanel/CommentPanel.vue +++ b/src/components/CommentPanel/CommentPanel.vue @@ -5,6 +5,7 @@ import CommentControls from '@/components/CommentPanel/CommentControls.vue' import CommentPanelHeader from '@/components/CommentPanel/CommentPanelHeader.vue' defineProps<{ + eventId: string comments: Comment[] showOverlay: boolean }>() @@ -22,7 +23,7 @@ const emit = defineEmits<{ @close-comment-panel="emit('popupCommentPanel')" /> - + @@ -31,8 +32,8 @@ const emit = defineEmits<{ height: calc(100% - 160px); } .commentPanel { - width: 340px; - height: 100vh; + width: 30rem; + height: 100%; border-left: 1px solid $color-secondary; } diff --git a/src/components/StampList/StampList.vue b/src/components/StampList/StampList.vue new file mode 100644 index 0000000..78466c9 --- /dev/null +++ b/src/components/StampList/StampList.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/pages/EventPage.vue b/src/pages/EventPage.vue new file mode 100644 index 0000000..69f70a0 --- /dev/null +++ b/src/pages/EventPage.vue @@ -0,0 +1,93 @@ + + +