diff --git a/crawlerx_app/package.json b/crawlerx_app/package.json index f960bce..d6bdfdc 100644 --- a/crawlerx_app/package.json +++ b/crawlerx_app/package.json @@ -20,6 +20,7 @@ "sass-loader": "^8.0.2", "vue": "^2.6.11", "vue-clipboard2": "^0.3.1", + "vue-json-pretty": "1.6.7", "vue-material": "^1.0.0-beta-13", "vue-router": "^3.1.6", "vue-swal": "^1.0.0" diff --git a/crawlerx_app/src/components/Contents/JobData.vue b/crawlerx_app/src/components/Contents/JobData.vue index 30a9b05..ecfae9e 100755 --- a/crawlerx_app/src/components/Contents/JobData.vue +++ b/crawlerx_app/src/components/Contents/JobData.vue @@ -1,101 +1,292 @@ \ No newline at end of file diff --git a/crawlerx_app/src/main.js b/crawlerx_app/src/main.js index 925971f..c71972c 100644 --- a/crawlerx_app/src/main.js +++ b/crawlerx_app/src/main.js @@ -1,20 +1,20 @@ -import Vue from 'vue' -import App from './App.vue' -import router from './router' -import firebase from 'firebase' +import Vue from 'vue'; +import App from './App.vue'; +import router from './router'; +import firebase from 'firebase'; Vue.config.productionTip = false; -import VueMaterial from 'vue-material' -import 'vue-material/dist/vue-material.min.css' -import 'vue-material/dist/theme/default.css' -import { BootstrapVue, IconsPlugin } from 'bootstrap-vue' -import SidebarMenu from './components/SideBar/SidebarMenu' -import 'bootstrap/dist/css/bootstrap.css' -import 'bootstrap-vue/dist/bootstrap-vue.css' -import axios from "axios"; -import VueSwal from 'vue-swal' -import VueClipboard from 'vue-clipboard2' +import VueMaterial from 'vue-material'; +import 'vue-material/dist/vue-material.min.css'; +import 'vue-material/dist/theme/default.css'; +import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'; +import SidebarMenu from './components/SideBar/SidebarMenu'; +import 'bootstrap/dist/css/bootstrap.css'; +import 'bootstrap-vue/dist/bootstrap-vue.css'; +import axios from 'axios'; +import VueSwal from 'vue-swal'; +import VueClipboard from 'vue-clipboard2'; Vue.use(VueMaterial); Vue.component('sidebar-menu', SidebarMenu); @@ -23,21 +23,23 @@ Vue.use(BootstrapVue); // Optionally install the BootstrapVue icon components plugin Vue.use(IconsPlugin); Vue.use(VueSwal); -Vue.use(VueClipboard) +Vue.use(VueClipboard); +VueClipboard.config.autoSetContainer = true; // add this line +Vue.use(VueClipboard); Vue.prototype.$http = axios; let app = ''; const firebaseConfig = { - apiKey: "AIzaSyD88ucXoxhnfm3iNUA-FJ-zg-0GrJKT-Zo", - authDomain: "crawlerx-b2ad1.firebaseapp.com", - databaseURL: "https://crawlerx-b2ad1.firebaseio.com", - projectId: "crawlerx-b2ad1", - storageBucket: "crawlerx-b2ad1.appspot.com", - messagingSenderId: "811171439353", - appId: "1:811171439353:web:64e84b4fc347a5c37eb828", - measurementId: "G-CM2MX0CRRC" + apiKey: 'AIzaSyD88ucXoxhnfm3iNUA-FJ-zg-0GrJKT-Zo', + authDomain: 'crawlerx-b2ad1.firebaseapp.com', + databaseURL: 'https://crawlerx-b2ad1.firebaseio.com', + projectId: 'crawlerx-b2ad1', + storageBucket: 'crawlerx-b2ad1.appspot.com', + messagingSenderId: '811171439353', + appId: '1:811171439353:web:64e84b4fc347a5c37eb828', + measurementId: 'G-CM2MX0CRRC', }; firebase.initializeApp(firebaseConfig); @@ -48,17 +50,23 @@ firebase.auth().onAuthStateChanged(() => { Vue.prototype.$USER_ID = firebase.auth().currentUser.uid; // set token_id from the firebase - firebase.auth().currentUser.getIdToken(/* forceRefresh */ true).then(function(idToken) { - Vue.prototype.$TOKEN_ID = idToken; - }).catch(function(error) { - alert("Cannot fetch userId of the current logged user " + error.message); - }); + firebase + .auth() + .currentUser.getIdToken(/* forceRefresh */ true) + .then(function(idToken) { + Vue.prototype.$TOKEN_ID = idToken; + }) + .catch(function(error) { + alert( + 'Cannot fetch userId of the current logged user ' + error.message + ); + }); } if (!app) { app = new Vue({ router, - render: h => h(App) + render: (h) => h(App), }).$mount('#app'); } });