new C'hnages

This commit is contained in:
saeid
2019-08-21 14:49:33 +04:30
parent 2db3d32960
commit 6c8966e777
128 changed files with 261 additions and 162 deletions
-38
View File
@@ -1,38 +0,0 @@
<template>
<v-app>
<!-- <core-filter /> -->
<core-modal />
<core-toolbar v-if="accessToken" />
<core-drawer v-if="accessToken" />
<core-view />
</v-app>
</template>
<script>
import { TokenService } from '@/services';
import { mapState } from 'vuex';
export default {
data() {
return {
};
},
computed: mapState('auth', ['accessToken']),
}
</script>
<style lang="scss">
@import '@/styles/index.scss';
@import '@/styles/css/Assets/Main.scss';
@import '@/styles/css/Assets/WM-ModernTheme.scss';
/* Remove in 1.2 */
.v-datatable thead th.column.sortable i {
vertical-align: unset;
}
</style>
-51
View File
@@ -1,51 +0,0 @@
import 'font-awesome/css/font-awesome.min.css'
import Vue from 'vue'
// Components
import './components'
// Plugins
import './plugins'
// Material FontIcon
import 'material-design-icons-iconfont/dist/material-design-icons.css'
// Fortawesome
import '@fortawesome/fontawesome-free/css/all.css'
// Application imports
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import { ApiService, TokenService } from '@/services'
// Sync store with router
sync(store, router)
Vue.config.productionTip = false
ApiService.setHeader();
// Set the base URL of the API
ApiService.init(process.env.MIX_APP_ROOT_API)
require('./services/global/errorHandler.service');
// If token exists set Authorizion header
if (TokenService.getToken()) {
ApiService.setAuthHeader();
// If info exists set info in Store
if(TokenService.getInfo()) {
let info = TokenService.getInfo();
store.commit('setInfo', info);
} else {
store.dispatch('info');
}
}
import hasRole from '@/services/mixin/hasRole'
Vue.mixin(hasRole)
/* eslint-disable no-new */
new Vue({
router,
store,
render: h => h(App),
iconfont: 'fa4'
}).$mount('#app');
@@ -35,7 +35,7 @@ const urls = {
TestTypeBarcode: function(id) {
return `/TestTypes/Barcode/${id}`;
},
QRcode: function(id) {
TestResultQRcode: function(id) {
return `/TestResult/QRcode/${id}`;
},
deleteTestType: function(id) {
@@ -111,6 +111,14 @@ export default [
onlyWhenLoggedOut: true
},
},
{
path: '/ShowTestResult/:testResult',
name: 'ShowTestResult',
view: 'TestResult/Show',
meta: {
public: true,
},
},
{
path: '/resualt-test',
name: 'AllResultTest',

Some files were not shown because too many files have changed in this diff Show More