Small fixes
This commit is contained in:
@@ -25,6 +25,10 @@ window.axios.defaults.headers.common = {
|
|||||||
*/
|
*/
|
||||||
const Flatpickr = require('flatpickr');
|
const Flatpickr = require('flatpickr');
|
||||||
|
|
||||||
|
import Metric from './components/status-page/Metric.vue';
|
||||||
|
import Dashboard from './components/dashboard/Dashboard.vue';
|
||||||
|
import Setup from './components/Setup.vue';
|
||||||
|
|
||||||
((win, doc) => {
|
((win, doc) => {
|
||||||
/**
|
/**
|
||||||
* Next, we will create a fresh Vue application instance and attach it to
|
* Next, we will create a fresh Vue application instance and attach it to
|
||||||
@@ -56,9 +60,9 @@ const Flatpickr = require('flatpickr');
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
'setup': require('./components/Setup'),
|
'setup': Setup,
|
||||||
'dashboard': require('./components/dashboard/Dashboard'),
|
'dashboard': Dashboard,
|
||||||
'metric-chart': require('./components/status-page/Metric'),
|
'metric-chart': Metric,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})()
|
})()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$(function () {
|
(function () {
|
||||||
// Ajax Setup
|
// Ajax Setup
|
||||||
$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
|
$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
|
||||||
var token;
|
var token;
|
||||||
@@ -310,22 +310,6 @@ $(function () {
|
|||||||
sparkLine();
|
sparkLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
function goToStep(current, next) {
|
|
||||||
// validation was ok. We can go on next step.
|
|
||||||
$('.block-' + current)
|
|
||||||
.removeClass('show')
|
|
||||||
.addClass('hidden');
|
|
||||||
|
|
||||||
$('.block-' + next)
|
|
||||||
.removeClass('hidden')
|
|
||||||
.addClass('show');
|
|
||||||
|
|
||||||
$('.steps .step')
|
|
||||||
.removeClass("active")
|
|
||||||
.filter(":lt(" + (next) + ")")
|
|
||||||
.addClass("active");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check for updates.
|
// Check for updates.
|
||||||
if ($('#update-alert').length > 0) {
|
if ($('#update-alert').length > 0) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -357,4 +341,4 @@ $(function () {
|
|||||||
if (_.isFunction(cancelCallback)) cancelCallback();
|
if (_.isFunction(cancelCallback)) cancelCallback();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}());
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
module.exports = {
|
export default {
|
||||||
props: [],
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
env: {
|
env: {
|
||||||
|
|||||||
Reference in New Issue
Block a user