nicer login

This commit is contained in:
Tobias Kurze
2020-07-28 15:06:13 +02:00
parent d3df9d5a30
commit 445c60bd65
4 changed files with 100 additions and 43 deletions

View File

@@ -64,6 +64,7 @@ import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';
const isProduction = process.env.NODE_ENV === 'production';
Vue.prototype.$isProduction = isProduction;
library.add(faCoffee, faTrash, faPencilAlt, faScroll, faCheck, faCircle, faList, faPlus, faDoorOpen, faCogs, faAt,
faUser, faEnvelope, faUserTag, faExternalLinkAlt, faSync, faHome, faCode, faBarcode, faTag, faTags, faVideo, faLock,
@@ -71,10 +72,10 @@ library.add(faCoffee, faTrash, faPencilAlt, faScroll, faCheck, faCircle, faList,
Vue.component('font-awesome-icon', FontAwesomeIcon);
const options = {
const loggerOptions = {
isEnabled: true,
// logLevel : isProduction ? 'error' : 'debug',
logLevel: 'debug',
logLevel : isProduction ? 'error' : 'debug',
//logLevel: 'debug',
stringifyArguments: false,
showLogLevel: true,
showMethodName: true,
@@ -82,7 +83,7 @@ const options = {
showConsoleColors: true,
};
Vue.use(VueLogger, options);
Vue.use(VueLogger, loggerOptions);
Vue.use(VueAxios, axios);
Vue.use(BootstrapVue);
Vue.use(FlagIcon);