-
Notifications
You must be signed in to change notification settings - Fork 1
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 #5 from trendy-weshy/choices-editor
Choices editor module complete
- Loading branch information
Showing
21 changed files
with
519 additions
and
207 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 +1,7 @@ | ||
{ | ||
"name": "zushar", | ||
"description": "a form building tool", | ||
"version": "0.0.8", | ||
"version": "0.1.0", | ||
"author": "John Waweru <[email protected]>", | ||
"private": true, | ||
"scripts": { | ||
|
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,54 @@ | ||
<!-- created by waweru --> | ||
|
||
<template> | ||
|
||
<transition name="zsrAlert"> | ||
<div | ||
:class="[ | ||
'ui', | ||
(alert.icon) ? 'icon' : '', | ||
(alert.level==='normal') ? 'black' : alert.level, | ||
'message' | ||
]"> | ||
<i :class="[alert.icon, 'icon']" v-if="alert.icon"></i> | ||
<div class="content"> | ||
<div class="header" v-if="alert.heading"> | ||
{{ alert.heading }} | ||
</div> | ||
<p>{{ alert.message }}</p> | ||
</div> | ||
</div> | ||
</transition> | ||
|
||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'Alert', | ||
props: { | ||
alert: { | ||
type: Object, | ||
required: true | ||
}, | ||
timeout: { | ||
type: Function, | ||
required: true | ||
} | ||
}, | ||
mounted() { | ||
setTimeout(() => { | ||
this.timeout(this.alert.id); | ||
}, this.alert.timeout) | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
/* transition for zsr-alert */ | ||
.zsrAlert-enter-active{ | ||
animation: slideInUp .4s; | ||
} | ||
.zsrAlert-leave-active{ | ||
animation: slideOutLeft .3s; | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!-- created by waweru --> | ||
|
||
<template> | ||
|
||
|
||
<div class="zsr-alert-container"> | ||
<alert v-for="alert in alerts" :key="alert.id" :timeout="alertTimeout" :alert="alert"></alert> | ||
</div> | ||
|
||
|
||
</template> | ||
|
||
<script> | ||
import Alert from './Alert.vue' | ||
export default { | ||
name: 'zsrAlerts', | ||
components: { | ||
Alert | ||
}, | ||
props: { | ||
alerts: { | ||
type: Array, | ||
required: true | ||
} | ||
}, | ||
methods: { | ||
alertTimeout(id) { | ||
this.$store.dispatch('clear_alert', { | ||
TYPE: 'CLEAR_ALERT', | ||
id | ||
}) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
.zsr-alert-container{ | ||
width: auto; | ||
max-width: 450px; | ||
height: auto; | ||
bottom: 0; | ||
display: block; | ||
position: fixed; | ||
margin: 0; | ||
padding-top: 0; | ||
padding-bottom: 10px; | ||
padding-left: 20px; | ||
padding-right: 0; | ||
z-index: 30; | ||
transition: all 1s ease; | ||
} | ||
</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.