init crater

This commit is contained in:
Mohit Panjwani
2019-11-11 12:16:00 +05:30
commit bdf2ba51d6
668 changed files with 158503 additions and 0 deletions

View File

@ -0,0 +1,45 @@
<script>
let mailgunComponent = {
template: '#mailgun-template'
}
let sendgridComponent = {
template: '#sendgrid-template'
}
let sparkPostComponent = {
template: '#sparkpost-template'
}
let smtpComponent = {
template: '#smtp-template'
}
export default {
components: {
mailgun: mailgunComponent,
sendgrid: sendgridComponent,
sparkpost: sparkPostComponent,
smtp: smtpComponent
},
props: {
view: {
type: Array,
require: true,
default: Array
}
},
data () {
return {
currentView: 'mailgun'
}
},
mounted () {
let views = ['mailgun', 'sendgrid', 'sparkpost', 'smtp']
if (this.view && views.indexOf(this.view) > -1) {
this.currentView = this.view
};
}
}
</script>