From 6ad75e0f8498ca4651efb6e620721e941b183f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ma=C5=84czak?= <56172798+jakubmanczak@users.noreply.github.com> Date: Wed, 21 Apr 2021 00:18:02 +0200 Subject: [PATCH] add github link --- src/router/index.ts | 79 +++++++++++++++++++++++++++------------------ src/views/Home.vue | 5 ++- 2 files changed, 52 insertions(+), 32 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 60275d4..dfcfc43 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,83 +1,100 @@ -import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' -import Home from '../views/Home.vue' +import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'; +import Home from '../views/Home.vue'; const routes: Array = [ { path: '/', name: 'Home', - component: Home + component: Home, }, { path: '/discord', name: 'Discord', alias: ['/dsc', '/dc'], redirect: () => { - window.location.replace('https://discord.gg/NBXq95C') - return '/discord' - } + window.location.replace('https://discord.gg/NBXq95C'); + return '/discord'; + }, }, { path: '/facebook', name: 'Facebook', alias: '/fb', redirect: () => { - window.location.replace('https://facebook.com/groups/gractwo') - return '/facebook' - } + window.location.replace('https://facebook.com/groups/gractwo'); + return '/facebook'; + }, + }, + { + path: '/github', + name: 'GitHub', + alias: '/git', + redirect: () => { + window.location.replace('https://github.com/Gractwo'); + return '/github'; + }, }, { path: '/j4mesen', name: 'j4mesen', redirect: () => { - window.location.replace('https://manczak.net') - return '/j4mesen' - } + window.location.replace('https://manczak.net'); + return '/j4mesen'; + }, }, { path: '/kuolek', name: 'kuolek', redirect: () => { - window.location.replace('https://steamcommunity.com/profiles/76561198381997060') - return '/kuolek' - } + window.location.replace( + 'https://steamcommunity.com/profiles/76561198381997060' + ); + return '/kuolek'; + }, }, { path: '/be-elephant', name: 'beElephant', redirect: () => { - window.location.replace('https://steamcommunity.com/profiles/76561198309722571') - return '/be-elephant' - } + window.location.replace( + 'https://steamcommunity.com/profiles/76561198309722571' + ); + return '/be-elephant'; + }, }, { path: '/jarooko', name: 'jarooko', redirect: () => { - window.location.replace('https://steamcommunity.com/id/jarooko') - return '/jarooko' - } + window.location.replace('https://steamcommunity.com/id/jarooko'); + return '/jarooko'; + }, }, { path: '/mollin', name: 'mollin', redirect: () => { - window.location.replace('https://steamcommunity.com/profiles/76561198264001711') - return '/mollin' - } + window.location.replace( + 'https://steamcommunity.com/profiles/76561198264001711' + ); + return '/mollin'; + }, }, { path: '/bavil-gravlax', name: 'bavilGravlax', redirect: () => { - window.location.replace('https://steamcommunity.com/profiles/76561198855251311') - return '/bavil-gravlax' - } - } -] + window.location.replace( + 'https://steamcommunity.com/profiles/76561198855251311' + ); + return '/bavil-gravlax'; + }, + }, +]; const router = createRouter({ history: createWebHistory(), routes, -}) +}); -export default router \ No newline at end of file +export default router; diff --git a/src/views/Home.vue b/src/views/Home.vue index e94df53..a59438c 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -69,7 +69,10 @@

-

Gractwo 2020-2021.

+

+ Gractwo 2020-2021. + GitHub +