add github link
This commit is contained in:
@@ -1,83 +1,100 @@
|
|||||||
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
|
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
|
||||||
import Home from '../views/Home.vue'
|
import Home from '../views/Home.vue';
|
||||||
|
|
||||||
const routes: Array<RouteRecordRaw> = [
|
const routes: Array<RouteRecordRaw> = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'Home',
|
name: 'Home',
|
||||||
component: Home
|
component: Home,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/discord',
|
path: '/discord',
|
||||||
name: 'Discord',
|
name: 'Discord',
|
||||||
alias: ['/dsc', '/dc'],
|
alias: ['/dsc', '/dc'],
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.replace('https://discord.gg/NBXq95C')
|
window.location.replace('https://discord.gg/NBXq95C');
|
||||||
return '/discord'
|
return '/discord';
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/facebook',
|
path: '/facebook',
|
||||||
name: 'Facebook',
|
name: 'Facebook',
|
||||||
alias: '/fb',
|
alias: '/fb',
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.replace('https://facebook.com/groups/gractwo')
|
window.location.replace('https://facebook.com/groups/gractwo');
|
||||||
return '/facebook'
|
return '/facebook';
|
||||||
}
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/github',
|
||||||
|
name: 'GitHub',
|
||||||
|
alias: '/git',
|
||||||
|
redirect: () => {
|
||||||
|
window.location.replace('https://github.com/Gractwo');
|
||||||
|
return '/github';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/j4mesen',
|
path: '/j4mesen',
|
||||||
name: 'j4mesen',
|
name: 'j4mesen',
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.replace('https://manczak.net')
|
window.location.replace('https://manczak.net');
|
||||||
return '/j4mesen'
|
return '/j4mesen';
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/kuolek',
|
path: '/kuolek',
|
||||||
name: 'kuolek',
|
name: 'kuolek',
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.replace('https://steamcommunity.com/profiles/76561198381997060')
|
window.location.replace(
|
||||||
return '/kuolek'
|
'https://steamcommunity.com/profiles/76561198381997060'
|
||||||
}
|
);
|
||||||
|
return '/kuolek';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/be-elephant',
|
path: '/be-elephant',
|
||||||
name: 'beElephant',
|
name: 'beElephant',
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.replace('https://steamcommunity.com/profiles/76561198309722571')
|
window.location.replace(
|
||||||
return '/be-elephant'
|
'https://steamcommunity.com/profiles/76561198309722571'
|
||||||
}
|
);
|
||||||
|
return '/be-elephant';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/jarooko',
|
path: '/jarooko',
|
||||||
name: 'jarooko',
|
name: 'jarooko',
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.replace('https://steamcommunity.com/id/jarooko')
|
window.location.replace('https://steamcommunity.com/id/jarooko');
|
||||||
return '/jarooko'
|
return '/jarooko';
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/mollin',
|
path: '/mollin',
|
||||||
name: 'mollin',
|
name: 'mollin',
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.replace('https://steamcommunity.com/profiles/76561198264001711')
|
window.location.replace(
|
||||||
return '/mollin'
|
'https://steamcommunity.com/profiles/76561198264001711'
|
||||||
}
|
);
|
||||||
|
return '/mollin';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/bavil-gravlax',
|
path: '/bavil-gravlax',
|
||||||
name: 'bavilGravlax',
|
name: 'bavilGravlax',
|
||||||
redirect: () => {
|
redirect: () => {
|
||||||
window.location.replace('https://steamcommunity.com/profiles/76561198855251311')
|
window.location.replace(
|
||||||
return '/bavil-gravlax'
|
'https://steamcommunity.com/profiles/76561198855251311'
|
||||||
}
|
);
|
||||||
}
|
return '/bavil-gravlax';
|
||||||
]
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(),
|
||||||
routes,
|
routes,
|
||||||
})
|
});
|
||||||
|
|
||||||
export default router
|
export default router;
|
||||||
|
|||||||
@@ -69,7 +69,10 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="fourth">
|
<div class="fourth">
|
||||||
<p>Gractwo 2020-2021.</p>
|
<p>
|
||||||
|
Gractwo 2020-2021.
|
||||||
|
<router-link to="/git">GitHub</router-link>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user