diff --git a/src/components/AboutPage.vue b/src/components/AboutPage.vue deleted file mode 100644 index a547cfe..0000000 --- a/src/components/AboutPage.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - diff --git a/src/components/ClubPage.vue b/src/components/ClubPage.vue new file mode 100644 index 0000000..8ecad9b --- /dev/null +++ b/src/components/ClubPage.vue @@ -0,0 +1,138 @@ + + \ No newline at end of file diff --git a/src/components/GoogleLogin.vue b/src/components/GoogleLogin.vue new file mode 100644 index 0000000..0f316e2 --- /dev/null +++ b/src/components/GoogleLogin.vue @@ -0,0 +1,111 @@ + + + \ No newline at end of file diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 873cd25..d9e79a3 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -41,6 +41,12 @@ > Events + + Clubs +
User Picture - {{ userDetails.name }} + {{ userDetails.name }}
@@ -137,10 +143,12 @@ if (response && response.data) { const userEmail = response.data.user_data.email || ''; + const authtoken = response.data.token; if (userEmail.endsWith('@ds.study.iitm.ac.in')) { this.userDetails = response.data.user_data; localStorage.setItem('userDetails', JSON.stringify(this.userDetails)); localStorage.setItem('user-role', "User"); + localStorage.setItem('Token', authtoken); location.reload(); } else { // console.error('Login rejected: Invalid email domain.'); @@ -157,6 +165,7 @@ }, signOut() { localStorage.removeItem('userDetails'); + localStorage.removeItem('Token'); this.userDetails = null; location.reload(); }, diff --git a/src/components/UserPage.vue b/src/components/UserPage.vue index e17a013..20e155b 100644 --- a/src/components/UserPage.vue +++ b/src/components/UserPage.vue @@ -100,23 +100,52 @@ + diff --git a/src/router.js b/src/router.js index 9dc1b89..f85e649 100644 --- a/src/router.js +++ b/src/router.js @@ -1,5 +1,5 @@ import HomePage from './components/HomePage.vue' -import AboutPage from './components/AboutPage.vue' +import ClubPage from './components/ClubPage.vue' import VideoGallery from './components/VideoGallery.vue' import EventsPage from './components/EventsPage.vue' import CouncilPage from './components/CouncilPage.vue' @@ -23,9 +23,9 @@ const routes = [ path: '/' }, { - name: 'AboutPage', - component: AboutPage, - path: '/about' + name: 'ClubPage', + component: ClubPage, + path: '/clubs' }, { name: 'VideoGallery', diff --git a/wget-log b/wget-log new file mode 100644 index 0000000..eefae59 --- /dev/null +++ b/wget-log @@ -0,0 +1,13 @@ +--2024-01-09 13:44:21-- https://update.code.visualstudio.com/commit:695af097c7bd098fbf017ce3ac85e09bbc5dda06/server-linux-x64/stable +Resolving update.code.visualstudio.com (update.code.visualstudio.com)... 13.107.246.68, 13.107.213.68, 2620:1ec:bdf::68, ... +Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|13.107.246.68|:443... connected. +HTTP request sent, awaiting response... 302 Found +Location: https://az764295.vo.msecnd.net/stable/695af097c7bd098fbf017ce3ac85e09bbc5dda06/vscode-server-linux-x64.tar.gz [following] +--2024-01-09 13:44:21-- https://az764295.vo.msecnd.net/stable/695af097c7bd098fbf017ce3ac85e09bbc5dda06/vscode-server-linux-x64.tar.gz +Resolving az764295.vo.msecnd.net (az764295.vo.msecnd.net)... 117.18.232.200, 64:ff9b::7512:e8c8 +Connecting to az764295.vo.msecnd.net (az764295.vo.msecnd.net)|117.18.232.200|:443... connected. +HTTP request sent, awaiting response... 200 OK +Length: 55749928 (53M) [application/gzip] +Saving to: ‘/home/ravi/.vscode-server/bin/695af097c7bd098fbf017ce3ac85e09bbc5dda06-1704786827.tar.gz’ + + 7.tar.gz 82%[==========================================> ] 43.87M 52.7KB/s eta 3m 8s .tar.gz 82%[==========================================> ] 43.88M 52.2KB/s eta 3m 7s tar.gz 82%[==========================================> ] 43.90M 50.6KB/s eta 3m 7s ar.gz 82%[==========================================> ] 43.91M 50.5KB/s eta 3m 7s r.gz 82%[==========================================> ] 43.93M 48.5KB/s eta 3m 6s .gz 82%[==========================================> ] 43.95M 49.6KB/s eta 3m 6s gz 82%[==========================================> ] 43.98M 48.9KB/s eta 3m 6s z 82%[==========================================> ] 43.99M 48.6KB/s eta 3m 4s 82%[==========================================> ] 44.01M 47.8KB/s eta 3m 4s / 82%[==========================================> ] 44.03M 49.3KB/s eta 3m 4s /h 82%[==========================================> ] 44.05M 49.1KB/s eta 3m 4s /ho 82%[==========================================> ] 44.07M 47.7KB/s eta 3m 3s /hom 82%[==========================================> ] 44.08M 48.5KB/s eta 3m 3s /home 82%[==========================================> ] 44.12M 51.5KB/s eta 3m 3s /home/ 83%[===========================================> ] 44.15M 56.6KB/s eta 3m 1s /home/r 83%[===========================================> ] 44.16M 56.2KB/s eta 3m 1s /home/ra 83%[===========================================> ] 44.18M 58.0KB/s eta 3m 1s /home/rav 83%[===========================================> ] 44.21M 60.8KB/s eta 3m 1s /home/ravi 83%[===========================================> ] 44.23M 61.6KB/s eta 3m 0s /home/ravi/ 83%[===========================================> ] 44.26M 66.8KB/s eta 3m 0s /home/ravi/. 83%[===========================================> ] 44.27M 64.9KB/s eta 3m 0s /home/ravi/.v 83%[===========================================> ] 44.29M 64.9KB/s eta 3m 0s /home/ravi/.vs 83%[===========================================> ] 44.32M 64.0KB/s eta 2m 58s /home/ravi/.vsc 83%[===========================================> ] 44.33M 63.8KB/s eta 2m 58s /home/ravi/.vsco 83%[===========================================> ] 44.35M 60.2KB/s eta 2m 58s /home/ravi/.vscod 83%[===========================================> ] 44.38M 57.3KB/s eta 2m 56s /home/ravi/.vscode 83%[===========================================> ] 44.41M 60.3KB/s eta 2m 56s /home/ravi/.vscode- 83%[===========================================> ] 44.43M 56.4KB/s eta 2m 56s /home/ravi/.vscode-s 83%[===========================================> ] 44.46M 57.8KB/s eta 2m 55s /home/ravi/.vscode-se 83%[===========================================> ] 44.48M 54.6KB/s eta 2m 55s /home/ravi/.vscode-ser 83%[===========================================> ] 44.49M 55.6KB/s eta 2m 55s /home/ravi/.vscode-serv 83%[===========================================> ] 44.51M 53.6KB/s eta 2m 54s /home/ravi/.vscode-serve 83%[===========================================> ] 44.52M 51.3KB/s eta 2m 54s /home/ravi/.vscode-server 83%[===========================================> ] 44.54M 52.0KB/s eta 2m 54s /home/ravi/.vscode-server/ 83%[===========================================> ] 44.55M 50.8KB/s eta 2m 54s /home/ravi/.vscode-server/b 83%[===========================================> ] 44.57M 50.8KB/s eta 2m 53s /home/ravi/.vscode-server/bi 83%[===========================================> ] 44.58M 49.5KB/s eta 2m 53s /home/ravi/.vscode-server/bin 83%[===========================================> ] 44.62M 50.0KB/s eta 2m 53s /home/ravi/.vscode-server/bin/ 83%[===========================================> ] 44.63M 50.5KB/s eta 2m 51s home/ravi/.vscode-server/bin/6 83%[===========================================> ] 44.65M 47.7KB/s eta 2m 51s ome/ravi/.vscode-server/bin/69 84%[===========================================> ] 44.66M 46.5KB/s eta 2m 51s me/ravi/.vscode-server/bin/695 84%[===========================================> ] 44.68M 46.2KB/s eta 2m 51s e/ravi/.vscode-server/bin/695a 84%[===========================================> ] 44.71M 48.6KB/s eta 2m 51s /ravi/.vscode-server/bin/695af 84%[===========================================> ] 44.73M 47.5KB/s eta 2m 50s ravi/.vscode-server/bin/695af0 84%[===========================================> ] 44.74M 47.4KB/s eta 2m 50s avi/.vscode-server/bin/695af09 84%[===========================================> ] 44.77M 48.2KB/s eta 2m 50s vi/.vscode-server/bin/695af097 84%[===========================================> ] 44.79M 48.0KB/s eta 2m 48s i/.vscode-server/bin/695af097c 84%[===========================================> ] 44.80M 48.8KB/s eta 2m 48s /.vscode-server/bin/695af097c7 84%[===========================================> ] 44.82M 48.8KB/s eta 2m 48s .vscode-server/bin/695af097c7b 84%[===========================================> ] 44.83M 49.1KB/s eta 2m 47s vscode-server/bin/695af097c7bd 84%[===========================================> ] 44.85M 48.7KB/s eta 2m 47s \ No newline at end of file