Skip to content

Commit

Permalink
Merge branch 'AddAuthPages' of https://github.com/codescalersinternsh…
Browse files Browse the repository at this point in the history
…ips/test-tracker into AddAuthPages
  • Loading branch information
zaelgohary committed Aug 21, 2024
2 parents 1753f92 + 2b84713 commit 1f80cb4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions client/src/api/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import axios, { AxiosInstance } from 'axios'

const AuthClient: AxiosInstance = axios.create({
baseURL: 'https://server.gent02.dev.grid.tf/api',
timeout: 1000,
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + localStorage.getItem('token'),
Expand All @@ -11,7 +10,6 @@ const AuthClient: AxiosInstance = axios.create({

const BaseClient: AxiosInstance = axios.create({
baseURL: 'https://server.gent02.dev.grid.tf/api',
timeout: 1000,
})

async function SignUp (newUser:any) {
Expand Down
1 change: 0 additions & 1 deletion client/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ declare module 'vue' {
AlreadyHaveAnAccount: typeof import('./components/AlreadyHaveAnAccount.vue')['default']
LoginGithub: typeof import('./components/LoginGithub.vue')['default']
LoginTFT: typeof import('./components/LoginTFT.vue')['default']
NewPlan: typeof import('./components/NewPlan.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Test: typeof import('./components/test.vue')['default']
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,17 @@
await axios.LogInUser(userInfo.value)
console.log(localStorage.getItem('token'))
if (localStorage.getItem('token') != null) {
router.push(`/profile`)
router.push(`/`)
}
} catch (error) {
console.error(error)
notifier.notify({
title: 'Fail',
description: 'Login failed',
showProgressBar: true,
timeout: 7_000,
type: 'error',
})
console.error(error)
}
}
const form = ref(null)
Expand Down
4 changes: 2 additions & 2 deletions client/src/plugins/vuetify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import { createVuetify } from 'vuetify'
export default createVuetify({
theme: {
defaultTheme: 'light',
themes: {
themes: {
light: {
dark: false,
colors: {
primary: "#37ADE3",
primary: '#37ADE3',
},
},
},
Expand Down

0 comments on commit 1f80cb4

Please sign in to comment.