-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from Poll-me/release/0.3.0
Release 0.3.0
- Loading branch information
Showing
33 changed files
with
910 additions
and
144 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
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import './bounce.css'; | ||
@import './fade.css'; | ||
@import './modal-dialog.css'; | ||
@import './slide-down.css'; |
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 @@ | ||
.fade-enter-active, .fade-leave-active { | ||
transition-property: opacity; | ||
} | ||
|
||
.fade-enter-active { | ||
transition-duration: .3s; | ||
transition-timing-function: ease-out; | ||
} | ||
|
||
.fade-leave-active { | ||
transition-duration: .15s; | ||
transition-timing-function: ease-in; | ||
} | ||
|
||
.fade-enter, .fade-leave-to { | ||
opacity: 0; | ||
} |
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,49 @@ | ||
<template> | ||
<div class="rounded-lg overflow-hidden" | ||
:class="bordered ? `border-2 border-${color}` : ''"> | ||
<div class="bar-fill-bg text-white h-8 flex items-center" | ||
:class="`bg-${color}${!bordered ? ' rounded-lg' : ''}`" | ||
:style="{ width: `${roundedValue}%` }" > | ||
<div class="text-center truncate px-2 flex-1">{{ visibleValue }}</div> | ||
</div> | ||
</div> | ||
</template> | ||
<script> | ||
import Vue from 'vue'; | ||
import Component from 'vue-class-component'; | ||
@Component({ | ||
props: { | ||
value: { | ||
type: Number, | ||
required: true, | ||
validator(val) { return val >= 0 && val <= 100; } | ||
}, | ||
color: { | ||
type: String, | ||
default: 'primary' | ||
}, | ||
bordered: { | ||
type: Boolean, | ||
default: true | ||
} | ||
} | ||
}) | ||
export default class ProgressBar extends Vue { | ||
maxVisibleValue = 20; | ||
get roundedValue() { | ||
const limitedValue = Math.min(Math.max(this.value, 0), 100); | ||
return Math.round(limitedValue); | ||
} | ||
get visibleValue() { | ||
return this.roundedValue >= this.maxVisibleValue ? `${this.roundedValue} %` : ''; | ||
} | ||
} | ||
</script> | ||
<style scoped> | ||
.bar-fill-bg { | ||
transition: width .3s; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import FileUploader from './FileUploader'; | ||
import UserAvatar from './UserAvatar'; | ||
import ModalDialog from './ModalDialog'; | ||
import ProgressBar from './ProgressBar'; | ||
import UserAvatar from './UserAvatar'; | ||
|
||
export default { FileUploader, UserAvatar, ModalDialog }; | ||
export default { FileUploader, ModalDialog, ProgressBar, UserAvatar }; |
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
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,21 @@ | ||
<template> | ||
<form class="flex-1 flex flex-col" @submit.prevent="submit"> | ||
<div class="flex-1 container py-4"> | ||
<NewPollFormBase | ||
:isLogged="isLogged" | ||
:name.sync="name" | ||
:author.sync="author" | ||
:hasDescription.sync="hasDescription" | ||
:description.sync="description"></NewPollFormBase> | ||
</div> | ||
<slot name="submit" :invalid="$v.$invalid"></slot> | ||
</form> | ||
</template> | ||
<script> | ||
import Component from 'vue-class-component'; | ||
import NewPollFormMixin from '../new-poll-form-mixin'; | ||
@Component() | ||
export default class NewBasicPollForm extends NewPollFormMixin {} | ||
</script> |
Oops, something went wrong.