-
Notifications
You must be signed in to change notification settings - Fork 0
レスポンス型のエイリアスを typeAliases.ts に集約 #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,12 @@ | ||
| <script setup lang="ts"> | ||
| import type { components } from '@/api/schema' | ||
| import { nextTick, ref, watch, onMounted } from 'vue' | ||
| import type { VTextField } from 'vuetify/components' | ||
|
|
||
| type DurationEvent = components['schemas']['DurationEventResponse'] | ||
| type EventColor = DurationEvent['displayColor'] | ||
| import type { DurationEvent } from '@/typeAliases' | ||
|
Comment on lines
1
to
+4
|
||
|
|
||
| const textFieldRef = ref<VTextField>() | ||
|
|
||
| defineProps<{ | ||
| color: EventColor | ||
| color: DurationEvent['displayColor'] | ||
| label: string | ||
| rule: (minute: number | undefined) => true | string | ||
| }>() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,9 @@ | ||
| import { ref, computed, type Ref } from 'vue' | ||
| import { apiClient } from '@/api/apiClient' | ||
| import type { components } from '@/api/schema' | ||
|
|
||
| // 同一ユーザーが複数リアクションを送信していない前提 | ||
| import type { RollCall, RollCallReaction } from '@/typeAliases' | ||
|
|
||
| type RollCallReactionEvent = components['schemas']['RollCallReactionEvent'] | ||
| type RollCall = components['schemas']['RollCallResponse'] | ||
| type RollCallReaction = components['schemas']['RollCallReactionResponse'] | ||
|
|
||
|
Comment on lines
6
to
7
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ここは消し忘れですか? |
||
| // 点呼リアクションの SSE 購読 | ||
| const listenRollCallReactions = ( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import type { components } from '@/api/schema' | ||
|
|
||
| export type User = components['schemas']['UserResponse'] | ||
| export type Camp = components['schemas']['CampResponse'] | ||
|
|
||
| export type CampEvent = components['schemas']['EventResponse'] | ||
| export type MomentEvent = components['schemas']['MomentEventResponse'] | ||
| export type DurationEvent = components['schemas']['DurationEventResponse'] | ||
| export type OfficialEvent = components['schemas']['OfficialEventResponse'] | ||
|
|
||
| export type QuestionGroup = components['schemas']['QuestionGroupResponse'] | ||
| export type Question = components['schemas']['QuestionResponse'] | ||
|
|
||
| export type Dashboard = components['schemas']['DashboardResponse'] | ||
| export type Payment = components['schemas']['PaymentResponse'] | ||
| export type RoomGroup = components['schemas']['RoomGroupResponse'] | ||
| export type Room = components['schemas']['RoomResponse'] | ||
|
|
||
| export type RollCall = components['schemas']['RollCallResponse'] | ||
| export type RollCallReaction = components['schemas']['RollCallReactionResponse'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここも消し忘れかな?