'Path of files edited'
This commit is contained in:
@ -1,94 +0,0 @@
|
||||
<template>
|
||||
<router-view
|
||||
:translations="translations"
|
||||
:currencies="currencies"
|
||||
:taxes="taxes"
|
||||
:modules="modules.data"
|
||||
:currency_codes="currency_codes"
|
||||
:companies="companies"
|
||||
></router-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Wizard',
|
||||
|
||||
created() {
|
||||
let self = this;
|
||||
|
||||
window
|
||||
.axios({
|
||||
method: "GET",
|
||||
url: url + "/wizard/data",
|
||||
})
|
||||
.then((response) => {
|
||||
let data = response.data.data;
|
||||
|
||||
for (let item in data) {
|
||||
self[item] = data[item];
|
||||
}
|
||||
|
||||
Object.keys(data.currency_codes).map((key) => {
|
||||
return data.currency_codes[key];
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
currencies: [],
|
||||
currency_codes: [],
|
||||
taxes: [],
|
||||
modules: {},
|
||||
companies: {},
|
||||
translations: {
|
||||
companies: {},
|
||||
currencies: {},
|
||||
taxes: {},
|
||||
finish: {},
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.document-loading {
|
||||
width: 1140px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.document-loading div {
|
||||
margin-top: unset;
|
||||
margin-left: unset;
|
||||
}
|
||||
|
||||
.current-tab {
|
||||
background-color: #f6f9fc;
|
||||
}
|
||||
|
||||
.current-tab-btn {
|
||||
text-align: right;
|
||||
padding: 0 40px;
|
||||
}
|
||||
|
||||
.form-container {
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 991px) {
|
||||
.current-tab-btn {
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.form-container {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.form-container .form-group {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
70
resources/assets/js/views/wizard.js
vendored
70
resources/assets/js/views/wizard.js
vendored
@ -1,70 +0,0 @@
|
||||
|
||||
require('./bootstrap');
|
||||
|
||||
import Vue from 'vue';
|
||||
import VueRouter from 'vue-router';
|
||||
import DashboardPlugin from './plugins/dashboard-plugin';
|
||||
|
||||
import Wizard from './Wizard.vue';
|
||||
|
||||
Vue.use(DashboardPlugin);
|
||||
Vue.use(VueRouter);
|
||||
|
||||
import Company from './views/wizard/Company.vue';
|
||||
import Currencies from './views/wizard/Currencies.vue';
|
||||
import Taxes from './views/wizard/Taxes.vue';
|
||||
import Finish from './views/wizard/Finish.vue';
|
||||
|
||||
var global_path = new URL(url).protocol + '//' + window.location.host;
|
||||
var base_path = url.replace(global_path, '');
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
base: base_path,
|
||||
routes: [
|
||||
{
|
||||
path: '/wizard',
|
||||
name: 'Wizard',
|
||||
component: Company
|
||||
},
|
||||
{
|
||||
path: '/wizard/companies',
|
||||
name: 'Company',
|
||||
component: Company
|
||||
},
|
||||
{
|
||||
path: '/wizard/currencies',
|
||||
name: 'Currencies',
|
||||
component: Currencies
|
||||
},
|
||||
{
|
||||
path: '/wizard/taxes',
|
||||
name: 'Taxes',
|
||||
component: Taxes
|
||||
},
|
||||
{
|
||||
path: '/wizard/finish',
|
||||
name: 'Finish',
|
||||
component: Finish
|
||||
}
|
||||
],
|
||||
linkActiveClass: 'active',
|
||||
scrollBehavior: (to, from ,savedPosition) => {
|
||||
if (savedPosition) {
|
||||
return savedPosition;
|
||||
}
|
||||
|
||||
if (to.hash) {
|
||||
return { selector: to.hash };
|
||||
}
|
||||
|
||||
return { x: 0, y: 0 };
|
||||
}
|
||||
});
|
||||
|
||||
new Vue({
|
||||
el : '#app',
|
||||
router,
|
||||
render: h => h(Wizard),
|
||||
});
|
||||
|
Reference in New Issue
Block a user