From 87f9c6c06837cf1879ea3d82e23c3d7c029bccad Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Wed, 28 Aug 2024 16:19:05 +0700 Subject: [PATCH] remove code --- src/main.ts | 36 ------------------------------------ src/plugins/axios.ts | 2 -- 2 files changed, 38 deletions(-) diff --git a/src/main.ts b/src/main.ts index b6a1b64..fb28e50 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,8 +3,6 @@ import App from '@/App.vue' import '@/registerServiceWorker' import router from '@/router' import { createPinia } from 'pinia' -// import keycloak, { getToken } from '@/plugins/keycloak' - import { Quasar, Dialog, Notify, Loading } from 'quasar' import '@vuepic/vue-datepicker/dist/main.css' import quasarUserOptions from '@/quasar-user-options' @@ -37,38 +35,4 @@ app.component( app.config.globalProperties.$http = http -// // authen with keycloak client -// function getCookie(name: string) { -// const nameEQ = name + '=' -// const ca = document.cookie.split(';') -// for (let i = 0; i < ca.length; i++) { -// let c = ca[i] -// while (c.charAt(0) == ' ') c = c.substring(1, c.length) -// if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length) -// } -// return null -// } - -// const auth = await getToken() - -// if (auth.token && auth.refresh_token) { -// keycloak.init({ -// checkLoginIframe: false, -// token: auth.token, -// refreshToken: auth.refresh_token, -// }) - -// // .then((authenticated) => { -// // console.log('authenticated', authenticated) -// // if (!authenticated) { -// // window.location.reload() -// // } else { -// // console.log('Authenticated') -// // } -// // }) -// // .catch((err) => { -// // console.error('Keycloak initialization failed:', err) -// // }) -// } - app.mount('#app') diff --git a/src/plugins/axios.ts b/src/plugins/axios.ts index ac858bd..36f4b2f 100644 --- a/src/plugins/axios.ts +++ b/src/plugins/axios.ts @@ -1,8 +1,6 @@ import axios from 'axios' -import config from 'process' // import { dotnetPath } from "../path/axiosPath"; // import { getToken } from "@baloise/vue-keycloak"; -// import keycloak from '@/plugins/keycloak' import { getToken } from './auth' const axiosInstance = axios.create({