-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/event modal #82
Merged
Merged
Feat/event modal #82
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
381d507
EventModal作った。
helgev-traP 3f76726
refactor:命名の整理
helgev-traP 2bfc9a9
feat:
helgev-traP 63e0e0c
Revert "feat:"
helgev-traP daa8b4e
CSSちょっと変えた
helgev-traP 21503c2
fix: レビューに合わせて変更
helgev-traP 0c8d592
Merge branch 'main' into feat/event_modal
helgev-traP 134421f
文章の定数化と、選択肢をv-forで出すようにした
helgev-traP a60f381
タイポグラフィ
helgev-traP 9a7ccbd
イベントの引数にEventLevelを使うように
helgev-traP b35aeb3
文字・行間のpxをremに置き換え。不要なCSSの消去。
helgev-traP 8c92763
タグ消し忘れ
helgev-traP c620772
Merge branch 'main' into feat/event_modal
helgev-traP 26f0d84
/consts/eventLevel.tsの変更に追従・匿名公開の説明文の改行
helgev-traP 069bd90
style
helgev-traP 6a11ac8
refactor:
helgev-traP 8e0070f
いらないimport消し
helgev-traP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<script lang="ts" setup> | ||
import { | ||
EventLevelValue, | ||
eventLevelValueMap, | ||
eventLevels | ||
} from '/@/consts/eventLevel' | ||
|
||
interface Props { | ||
eventLevel: EventLevelValue | ||
} | ||
|
||
defineProps<Props>() | ||
|
||
const emit = defineEmits<{ | ||
(e: 'update-public-status', value: EventLevelValue): void | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div :class="$style.eventLevelMenu"> | ||
<div v-for="[key, value] in Object.entries(eventLevels)" :key="key"> | ||
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. |
||
<button | ||
:class="$style.eventLevelMenuButton" | ||
:disabled="eventLevel === key" | ||
@click="emit('update-public-status', eventLevelValueMap[value.value])" | ||
SSlime-s marked this conversation as resolved.
Show resolved
Hide resolved
|
||
> | ||
<p :class="$style.statusName">{{ value.label }}</p> | ||
<p :class="$style.description"> | ||
{{ value.description }} | ||
</p> | ||
</button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style lang="scss" module> | ||
.eventLevelMenu { | ||
width: max-content; | ||
display: flex; | ||
flex-direction: column; | ||
padding: 1rem; | ||
gap: 1rem; | ||
border: 1px solid $color-secondary; | ||
border-radius: 0.375rem; | ||
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); | ||
} | ||
.eventLevelMenuButton { | ||
text-align: left; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.25rem; | ||
.description { | ||
font-size: 0.75rem; | ||
color: $color-secondary; | ||
// タイポグラフィのため改行を有効に | ||
white-space: pre-wrap; | ||
} | ||
.statusName { | ||
font-weight: bold; | ||
color: $color-secondary; | ||
} | ||
&:disabled { | ||
& .statusName { | ||
color: $color-primary; | ||
} | ||
& .description { | ||
color: $color-text; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
今更だけどここ、propsと合わせて
update-event-level
の方がよさそうです