2020-12-02 19:46:17 +00:00
|
|
|
import Vue from "vue";
|
|
|
|
|
import VueRouter from "vue-router";
|
|
|
|
|
import VueI18n from 'vue-i18n';
|
|
|
|
|
import { BootstrapVue, BootstrapVueIcons } from 'bootstrap-vue';
|
2021-07-22 19:33:43 +00:00
|
|
|
import { ServerTable, Event, ClientTable } from 'vue-tables-2';
|
|
|
|
|
import VtTableHeadingCustom from './../components/vuetable/extends/VtTableHeadingCustom';
|
2021-07-27 20:38:26 +00:00
|
|
|
import VtSortControl from './../components/vuetable/extends/VtSortControl';
|
2021-07-22 19:33:43 +00:00
|
|
|
import SettingsPopover from "../components/vuetable/SettingsPopover.vue";
|
2021-06-24 16:06:13 +00:00
|
|
|
import Sortable from 'sortablejs';
|
2020-12-02 19:46:17 +00:00
|
|
|
import "@fortawesome/fontawesome-free/css/all.css";
|
|
|
|
|
import 'bootstrap/dist/css/bootstrap-grid.css';
|
|
|
|
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
2021-07-30 20:18:11 +00:00
|
|
|
import 'bootstrap-vue/dist/bootstrap-vue.css';
|
2021-09-24 17:10:33 +00:00
|
|
|
import VueApexCharts from 'vue-apexcharts';
|
|
|
|
|
import 'bootstrap-vue/dist/bootstrap-vue.css';
|
|
|
|
|
import VueSimpleContextMenu from 'vue-simple-context-menu';
|
|
|
|
|
import VtTableRow from '../components/vuetable/extends/VtTableRow';
|
|
|
|
|
import 'vue-simple-context-menu/dist/vue-simple-context-menu.css'
|
2020-12-02 19:46:17 +00:00
|
|
|
|
|
|
|
|
import Home from "./Home";
|
2021-07-30 20:18:11 +00:00
|
|
|
|
|
|
|
|
Vue.use(VueApexCharts);
|
2020-12-02 19:46:17 +00:00
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
Vue.use(BootstrapVue);
|
|
|
|
|
Vue.use(BootstrapVueIcons);
|
|
|
|
|
Vue.use(VueI18n);
|
2021-06-24 16:06:13 +00:00
|
|
|
|
2021-07-22 19:33:43 +00:00
|
|
|
Vue.use(ServerTable, {}, false, 'bootstrap3', {
|
2021-07-27 20:38:26 +00:00
|
|
|
tableHeading: VtTableHeadingCustom,
|
2021-09-24 17:10:33 +00:00
|
|
|
sortControl: VtSortControl,
|
|
|
|
|
tableRow: VtTableRow
|
2021-07-22 19:33:43 +00:00
|
|
|
});
|
2021-01-18 21:22:32 +00:00
|
|
|
Vue.use(ClientTable, {}, false, 'bootstrap3', {});
|
2021-07-22 19:33:43 +00:00
|
|
|
Vue.component('settings-popover', SettingsPopover);
|
2021-07-30 20:18:11 +00:00
|
|
|
Vue.component('apexchart', VueApexCharts);
|
2021-09-24 17:10:33 +00:00
|
|
|
Vue.component('vue-simple-context-menu', VueSimpleContextMenu);
|
2021-07-30 20:18:11 +00:00
|
|
|
|
2020-12-02 19:46:17 +00:00
|
|
|
window.ProcessMaker = {
|
|
|
|
|
apiClient: require('axios')
|
|
|
|
|
};
|
2021-07-30 20:18:11 +00:00
|
|
|
|
2020-12-02 19:46:17 +00:00
|
|
|
window.ProcessMaker.pluginBase = "/sysworkflow/en/neoclassic/viena/index.php";
|
|
|
|
|
window.ProcessMaker.apiClient.defaults.baseURL = '/sysworkflow/en/neoclassic/viena/index.php/api/';
|
|
|
|
|
window.ProcessMaker.SYS_SYS = "workflow";
|
|
|
|
|
window.ProcessMaker.SYS_LANG = "en";
|
|
|
|
|
window.ProcessMaker.SYS_SKIN = "neoclassic";
|
|
|
|
|
|
|
|
|
|
let messages = {};
|
|
|
|
|
messages[config.SYS_LANG] = config.TRANSLATIONS;
|
|
|
|
|
const i18n = new VueI18n({
|
|
|
|
|
locale: config.SYS_LANG, // set locale
|
|
|
|
|
messages, // set locale messages
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Define routes
|
|
|
|
|
const routes = [
|
|
|
|
|
//{ path: "/advanced-search", component: AdvancedSearch }
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
|
routes, // short for `routes: routes`,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
new Vue({
|
|
|
|
|
i18n,
|
|
|
|
|
// eslint-disable-line no-new
|
2020-12-04 13:33:23 +00:00
|
|
|
el: "#app",
|
2020-12-02 19:46:17 +00:00
|
|
|
router,
|
|
|
|
|
render: (h) => h(Home),
|
|
|
|
|
});
|