Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanchal committed Jul 25, 2022
1 parent 75528ed commit 1f26fd3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
7 changes: 0 additions & 7 deletions src/components/AjaxTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,6 @@ export default defineComponent({
getData,
};
},
watch: {
query: {
handler() {
throttle(this.getData, 1000)();
},
},
},
});
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/components/ItemEditor.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="p-4 h-108 overflow-auto">
<template v-for="prop in Object.keys(currentObject)">
<div :key="prop">
<template v-for="prop in Object.keys(currentObject)" :key="prop">
<div>
<div>{{ prop }}</div>
<pre
contenteditable="true"
Expand Down
28 changes: 17 additions & 11 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'vue-resize/dist/vue-resize.css';
import 'amazon-connect-streams';
import VueHooks from '@u3u/vue-hooks';
import VueCompositionApi from '@vue/composition-api';
import Vue from 'vue';
import Vue, { createApp } from 'vue';
import JsonViewer from 'vue-json-viewer';
import VueTimers from 'vue-timers';
import { library } from '@fortawesome/fontawesome-svg-core';
Expand Down Expand Up @@ -232,18 +232,18 @@ if (!process.env.VUE_APP_IS_LOCAL) {
}

// Add a request interceptor
axios.interceptors.request.use(function (config) {
axios.interceptors.request.use(function(config) {
config.headers.CCU_WEB_URL = window.location.href;
config.headers.CCU_PORTAL_KEY = process.env.VUE_APP_PORTAL_KEY;
return config;
});

// Intercept and handle unauthenticated requests
axios.interceptors.response.use(
function (response) {
function(response) {
return response;
},
function (error) {
function(error) {
if (error.response && error.response.status === 401) {
store.commit('auth/setShowLoginModal', true);
}
Expand Down Expand Up @@ -285,11 +285,17 @@ const getLanguages = async (tags: any) => {
};

getLanguages(['en-US', detectBrowserLanguage()]).then((i18n) => {
window.vue = new Vue({
i18n,
components: { App },
render: (h) => h(App),
router,
store,
}).$mount('#app');
window.vue = createApp(App)
.use(i18n)
// .use(components)
.use(router)
.use(store)
.mount('#app');
// window.vue = new Vue({
// i18n,
// components: { App },
// render: (h) => h(App),
// router,
// store,
// }).$mount('#app');
});
4 changes: 2 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ module.exports = {

jsRule.test(/\.js$/).exclude.add(/node_modules/);
if (process.env.NODE_ENV !== 'storybook') {
useBasicTPool(jsRule, 'babel-loader');
useBasicTPool(vueRule, 'vue-loader');
// useBasicTPool(jsRule, 'babel-loader');
// useBasicTPool(vueRule, 'vue-loader');
}
// config.plugin('lodash').use(LodashPlugin);
if (
Expand Down

0 comments on commit 1f26fd3

Please sign in to comment.