added oldLogin.vue to modify Login.vue
This commit is contained in:
242
src/main.ts
242
src/main.ts
@@ -1,121 +1,121 @@
|
||||
import Vue from 'vue';
|
||||
import axios from 'axios';
|
||||
import VueAxios from 'vue-axios';
|
||||
import BootstrapVue from 'bootstrap-vue';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import store from './store';
|
||||
import VueSweetalert2 from 'vue-sweetalert2';
|
||||
import VueCookies from 'vue-cookies';
|
||||
import VueLogger from 'vuejs-logger';
|
||||
import VueSocketIOExt from 'vue-socket.io-extended';
|
||||
import io from 'socket.io-client';
|
||||
import i18n from '@/plugins/i18n';
|
||||
import VeeValidate from 'vee-validate';
|
||||
// @ts-ignore
|
||||
import FlagIcon from 'vue-flag-icon';
|
||||
// @ts-ignore
|
||||
import VueMoment from 'vue-moment';
|
||||
// following is to avoid missing type definitions
|
||||
// const FlagIcon = require('vue-flag-icon');
|
||||
|
||||
import {library} from '@fortawesome/fontawesome-svg-core';
|
||||
import {
|
||||
faCoffee,
|
||||
faDoorOpen,
|
||||
faCheck,
|
||||
faPlus,
|
||||
faScroll,
|
||||
faCircle,
|
||||
faArrowCircleLeft,
|
||||
faArrowCircleRight,
|
||||
faList,
|
||||
faTrash,
|
||||
faPencilAlt,
|
||||
faCogs,
|
||||
faAt,
|
||||
faUser,
|
||||
faEnvelope,
|
||||
faHome,
|
||||
faSync,
|
||||
faCode,
|
||||
faBarcode,
|
||||
faTag,
|
||||
faTags,
|
||||
faVideo,
|
||||
faLock,
|
||||
faLockOpen,
|
||||
faWrench,
|
||||
faPlay,
|
||||
faFrown,
|
||||
faSmile,
|
||||
faUserTag,
|
||||
faExternalLinkAlt,
|
||||
faThumbsUp,
|
||||
faThumbsDown,
|
||||
} from '@fortawesome/free-solid-svg-icons';
|
||||
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome';
|
||||
|
||||
|
||||
// import 'bootstrap';
|
||||
// import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
|
||||
import 'bootstrap/dist/css/bootstrap.css';
|
||||
import 'bootstrap-vue/dist/bootstrap-vue.css';
|
||||
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
|
||||
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,
|
||||
faLockOpen, faArrowCircleLeft, faArrowCircleRight, faWrench, faPlay, faFrown, faSmile, faThumbsUp, faThumbsDown);
|
||||
|
||||
Vue.component('font-awesome-icon', FontAwesomeIcon);
|
||||
|
||||
const options = {
|
||||
isEnabled: true,
|
||||
// logLevel : isProduction ? 'error' : 'debug',
|
||||
logLevel: 'debug',
|
||||
stringifyArguments: false,
|
||||
showLogLevel: true,
|
||||
showMethodName: true,
|
||||
separator: '|',
|
||||
showConsoleColors: true,
|
||||
};
|
||||
|
||||
Vue.use(VueLogger, options);
|
||||
Vue.use(VueAxios, axios);
|
||||
Vue.use(BootstrapVue);
|
||||
Vue.use(FlagIcon);
|
||||
Vue.use(VueCookies);
|
||||
Vue.use(VueSweetalert2);
|
||||
Vue.use(VeeValidate);
|
||||
Vue.use(VueMoment);
|
||||
|
||||
// const socket = io('ws://localhost:5000',{autoConnect: false, reconnectionAttempts: 3});
|
||||
const socket = io('ws://localhost:5443', {
|
||||
autoConnect: false,
|
||||
reconnectionAttempts: 3,
|
||||
query: {jwt: store.state.access_token},
|
||||
});
|
||||
Vue.use(VueSocketIOExt, socket);
|
||||
|
||||
|
||||
// setup fake backend
|
||||
// import { configureFakeBackend } from './helpers';
|
||||
// configureFakeBackend();
|
||||
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
|
||||
// @ts-ignore
|
||||
String.prototype.isEmpty = function() {
|
||||
return (this.length === 0 || !this.trim());
|
||||
};
|
||||
|
||||
new Vue({
|
||||
i18n,
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount('#app');
|
||||
import Vue from 'vue';
|
||||
import axios from 'axios';
|
||||
import VueAxios from 'vue-axios';
|
||||
import BootstrapVue from 'bootstrap-vue';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import store from './store';
|
||||
import VueSweetalert2 from 'vue-sweetalert2';
|
||||
import VueCookies from 'vue-cookies';
|
||||
import VueLogger from 'vuejs-logger';
|
||||
import VueSocketIOExt from 'vue-socket.io-extended';
|
||||
import io from 'socket.io-client';
|
||||
import i18n from '@/plugins/i18n';
|
||||
import VeeValidate from 'vee-validate';
|
||||
// @ts-ignore
|
||||
import FlagIcon from 'vue-flag-icon';
|
||||
// @ts-ignore
|
||||
import VueMoment from 'vue-moment';
|
||||
// following is to avoid missing type definitions
|
||||
// const FlagIcon = require('vue-flag-icon');
|
||||
|
||||
import {library} from '@fortawesome/fontawesome-svg-core';
|
||||
import {
|
||||
faCoffee,
|
||||
faDoorOpen,
|
||||
faCheck,
|
||||
faPlus,
|
||||
faScroll,
|
||||
faCircle,
|
||||
faArrowCircleLeft,
|
||||
faArrowCircleRight,
|
||||
faList,
|
||||
faTrash,
|
||||
faPencilAlt,
|
||||
faCogs,
|
||||
faAt,
|
||||
faUser,
|
||||
faEnvelope,
|
||||
faHome,
|
||||
faSync,
|
||||
faCode,
|
||||
faBarcode,
|
||||
faTag,
|
||||
faTags,
|
||||
faVideo,
|
||||
faLock,
|
||||
faLockOpen,
|
||||
faWrench,
|
||||
faPlay,
|
||||
faFrown,
|
||||
faSmile,
|
||||
faUserTag,
|
||||
faExternalLinkAlt,
|
||||
faThumbsUp,
|
||||
faThumbsDown,
|
||||
} from '@fortawesome/free-solid-svg-icons';
|
||||
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome';
|
||||
|
||||
|
||||
// import 'bootstrap';
|
||||
// import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
|
||||
import 'bootstrap/dist/css/bootstrap.css';
|
||||
import 'bootstrap-vue/dist/bootstrap-vue.css';
|
||||
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
|
||||
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,
|
||||
faLockOpen, faArrowCircleLeft, faArrowCircleRight, faWrench, faPlay, faFrown, faSmile, faThumbsUp, faThumbsDown);
|
||||
|
||||
Vue.component('font-awesome-icon', FontAwesomeIcon);
|
||||
|
||||
const options = {
|
||||
isEnabled: true,
|
||||
// logLevel : isProduction ? 'error' : 'debug',
|
||||
logLevel: 'debug',
|
||||
stringifyArguments: false,
|
||||
showLogLevel: true,
|
||||
showMethodName: true,
|
||||
separator: '|',
|
||||
showConsoleColors: true,
|
||||
};
|
||||
|
||||
Vue.use(VueLogger, options);
|
||||
Vue.use(VueAxios, axios);
|
||||
Vue.use(BootstrapVue);
|
||||
Vue.use(FlagIcon);
|
||||
Vue.use(VueCookies);
|
||||
Vue.use(VueSweetalert2);
|
||||
Vue.use(VeeValidate);
|
||||
Vue.use(VueMoment);
|
||||
|
||||
// const socket = io('ws://localhost:5000',{autoConnect: false, reconnectionAttempts: 3});
|
||||
const socket = io('ws://localhost:5443', {
|
||||
autoConnect: false,
|
||||
reconnectionAttempts: 3,
|
||||
query: {jwt: store.state.access_token},
|
||||
});
|
||||
Vue.use(VueSocketIOExt, socket);
|
||||
|
||||
|
||||
// setup fake backend
|
||||
// import { configureFakeBackend } from './helpers';
|
||||
// configureFakeBackend();
|
||||
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
|
||||
// @ts-ignore
|
||||
String.prototype.isEmpty = function() {
|
||||
return (this.length === 0 || !this.trim());
|
||||
};
|
||||
|
||||
new Vue({
|
||||
i18n,
|
||||
router,
|
||||
store,
|
||||
render: (h) => h(App),
|
||||
}).$mount('#app');
|
||||
|
||||
Reference in New Issue
Block a user