Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Apr 24, 2024
1 parent 21d1ac5 commit f5dd023
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
11 changes: 2 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,5 @@
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "auto",
"importOrder": [
"^/@/stores/(.*)$",
"^/@/lib/(.*)$",
"^/@/(.*)",
"^[./]"
],
"importOrderSeparation": true
}
"endOfLine": "auto"
}
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { onMounted , watch } from 'vue'
import { onMounted, watch } from 'vue'
import { useFetchMeUsecase } from '/@/features/user/usecase'
Expand Down
4 changes: 3 additions & 1 deletion src/components/shared/InputSelectTagWithCreation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ const value = computed({
<template>
<InputSelectMultiple
v-model="value"
:create-option="(tag: string) => ({ name: tag, id: '', created_at: '', updated_at: '' })"
:create-option="
(tag: string) => ({ name: tag, id: '', created_at: '', updated_at: '' })
"
:options="tagOptions"
placeholder="タグを選択"
taggable
Expand Down
2 changes: 1 addition & 1 deletion src/features/requestStatus/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export const requestStatusOptions = () =>
value: requestStatus.state
}))

export type RequestStatus = typeof StatusEnum[keyof typeof StatusEnum]
export type RequestStatus = (typeof StatusEnum)[keyof typeof StatusEnum]
2 changes: 1 addition & 1 deletion src/features/requestTemplate/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export const requestTemplates = [
] as const

const requestTemplateNames = requestTemplates.map(v => v.name)
export type RequestTemplate = typeof requestTemplateNames[number]
export type RequestTemplate = (typeof requestTemplateNames)[number]
11 changes: 7 additions & 4 deletions src/stores/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ export const useUserStore = defineStore('user', () => {

const userMap = computed(
() =>
users.value?.reduce((acc, user) => {
acc[user.id] = user.name
return acc
}, {} as Record<string, string>) ?? {}
users.value?.reduce(
(acc, user) => {
acc[user.id] = user.name
return acc
},
{} as Record<string, string>
) ?? {}
)

return {
Expand Down
8 changes: 4 additions & 4 deletions src/styles/toast.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.Vue-Toastification__toast--info {
background-color: #38bdf8; //sky-400
background-color: #38bdf8; /** sky-400*/
}
.Vue-Toastification__toast--success {
background-color: #34d399; //emerald-400
background-color: #34d399; /** emerald-400*/
}
.Vue-Toastification__toast--error {
background-color: #f87171; //red-400
background-color: #f87171; /** red-400*/
}
.Vue-Toastification__toast--warning {
background-color: #fbbf24; //yellow-400
background-color: #fbbf24; /** yellow-400*/
}

0 comments on commit f5dd023

Please sign in to comment.