2019-11-16 10:21:14 +03:00
|
|
|
/**
|
|
|
|
* First we will load all of this project's JavaScript dependencies which
|
|
|
|
* includes Vue and other libraries. It is a great starting point when
|
|
|
|
* building robust, powerful web applications using Vue and Laravel.
|
|
|
|
*/
|
|
|
|
|
|
|
|
require('./../../bootstrap');
|
|
|
|
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
import Global from './../../mixins/global';
|
|
|
|
|
|
|
|
import Form from './../../plugins/form';
|
|
|
|
import BulkAction from './../../plugins/bulk-action';
|
2019-11-22 15:16:57 +03:00
|
|
|
import HtmlEditor from './../../components/Inputs/HtmlEditor';
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
el: '#app',
|
2019-11-22 15:16:57 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
mixins: [
|
|
|
|
Global
|
|
|
|
],
|
2019-11-22 15:16:57 +03:00
|
|
|
|
|
|
|
components: {
|
|
|
|
HtmlEditor
|
|
|
|
},
|
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
data: function () {
|
|
|
|
return {
|
|
|
|
form: new Form('setting'),
|
|
|
|
bulk_action: new BulkAction('settings')
|
|
|
|
}
|
2019-12-05 18:47:42 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
onProtocolChange(protocol) {
|
|
|
|
if (protocol === 'smtp') {
|
|
|
|
document.getElementById('smtp_host').disabled = false
|
|
|
|
document.getElementById('smtp_port').disabled = false
|
|
|
|
document.getElementById('smtp_username').disabled = false
|
|
|
|
document.getElementById('smtp_password').disabled = false
|
|
|
|
} else {
|
|
|
|
document.getElementById('smtp_host').disabled = true
|
|
|
|
document.getElementById('smtp_port').disabled = true
|
|
|
|
document.getElementById('smtp_username').disabled = true
|
|
|
|
document.getElementById('smtp_password').disabled = true
|
|
|
|
}
|
|
|
|
}
|
2019-11-16 10:21:14 +03:00
|
|
|
}
|
|
|
|
});
|