-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c31a02e
commit 809f87c
Showing
25 changed files
with
664 additions
and
37 deletions.
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
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
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,17 @@ | ||
<template> | ||
<div :style="`height: ${height}px; width: ${width}px;`"></div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from 'vue-property-decorator' | ||
@Component | ||
export default class SpaceStick extends Vue { | ||
@Prop({ default: 16 }) | ||
public height!: string | number | ||
@Prop({ default: 0 }) | ||
public width!: string | number | ||
} | ||
</script> |
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
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,98 @@ | ||
<template> | ||
<v-dialog | ||
:value="isOpen" | ||
@input="closeDialog()" | ||
fullscreen | ||
hide-overlay | ||
transition="dialog-bottom-transition" | ||
scrollable | ||
> | ||
<BookForm | ||
:createBook="createBook" | ||
:user="user" | ||
@cancel="closeDialog()"/> | ||
|
||
<!-- 登録中 --> | ||
<v-dialog v-model="isSending" persistent width="300"> | ||
<v-card color="primary" dark> | ||
<v-card-text> | ||
登録中です... | ||
<v-progress-linear | ||
indeterminate | ||
color="white" | ||
class="mb-0" | ||
/> | ||
</v-card-text> | ||
</v-card> | ||
|
||
</v-dialog> | ||
|
||
<!-- 登録失敗 --> | ||
<v-dialog :value="isSendFailed" @input="toStandby()" width="500"> | ||
<v-card color="error" dark> | ||
<v-card-text> | ||
エラーが発生しました<br> | ||
恐れ入りますが時間を置いてから再度やり直してください | ||
</v-card-text> | ||
|
||
<v-card-actions> | ||
<v-spacer/> | ||
<v-btn | ||
@click="toStandby()" | ||
color="red lighten-2" | ||
>OK</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-dialog> | ||
|
||
<v-snackbar | ||
:value="isSendSuccess" | ||
@input="toStandby()" | ||
:timeout="3000" | ||
color="success" | ||
top> | ||
本の登録に成功しました | ||
</v-snackbar> | ||
|
||
</v-dialog> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { IRegistrationParams } from '@/boundary/bookApplicationService/InOutType' | ||
import BookForm from '@/components/organisms/createBookForm.vue' | ||
import { | ||
closeDialog, | ||
createBook, | ||
toStandby, | ||
} from '@/store/containers/createBookForm/action' | ||
import selector from '@/store/containers/createBookForm/selector' | ||
import authSelector from '@/store/middleware/auth/selector' | ||
import { mapComputed } from '@/submodules/store' | ||
import { Component, Vue } from 'vue-property-decorator' | ||
@Component({ | ||
components: { | ||
BookForm, | ||
}, | ||
computed: mapComputed(selector, authSelector), | ||
}) | ||
export default class CreateBookFormContainer extends Vue { | ||
public createBook(params: IRegistrationParams) { | ||
return this.$store.dispatch(createBook({ params })) | ||
} | ||
public toStandby() { | ||
return this.$store.dispatch(toStandby()) | ||
} | ||
public closeDialog() { | ||
return this.$store.dispatch(closeDialog()) | ||
} | ||
} | ||
</script> | ||
|
||
<style module> | ||
.user-icon-img { | ||
cursor: pointer; | ||
} | ||
</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
Oops, something went wrong.