Skip to content

Commit f653f30

Browse files
committed
Add repo link to settings
1 parent 40879f8 commit f653f30

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Icons } from './components/Icons'
22

33
export const SERVER_PORT = 23846
4+
export const REPO_LINK = 'https://github.com/Gitification-App/gitification'
45

56
export enum Page {
67
Settings = 'Settings',

src/pages/SettingsPage.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<script lang="ts" setup>
22
import { watch } from 'vue'
33
import { exit } from '@tauri-apps/api/process'
4+
import { open } from '@tauri-apps/api/shell'
45
import { invoke } from '@tauri-apps/api/tauri'
56
import AppButton from '../components/AppButton.vue'
67
import PageHeader from '../components/PageHeader.vue'
78
import SettingsItem from '../components/SettingsItem.vue'
89
import { useStore } from '../stores/store'
910
import { AppStorage } from '../storage'
11+
import { Icons } from '../components/Icons'
12+
import { REPO_LINK } from '../constants'
1013
1114
const store = useStore()
1215
@@ -49,6 +52,13 @@ watch(soundsEnabled, (enabled) => {
4952
</div>
5053

5154
<div class="settings-footer">
55+
<AppButton
56+
class="github-button"
57+
@click="open(REPO_LINK)"
58+
>
59+
<Icons.Github />
60+
</AppButton>
61+
5262
<AppButton
5363
v-if="accessToken"
5464
@click="store.logout"
@@ -65,6 +75,7 @@ watch(soundsEnabled, (enabled) => {
6575

6676
<style lang="scss" scoped>
6777
.settings {
78+
outline: none;
6879
position: absolute;
6980
left: 0;
7081
top: 0;
@@ -94,8 +105,12 @@ watch(soundsEnabled, (enabled) => {
94105
justify-content: flex-end;
95106
96107
> .button + .button {
97-
margin-left: 10px;
108+
margin-left: 5px;
98109
}
99110
}
100111
}
112+
113+
.github-button {
114+
margin-right: auto;
115+
}
101116
</style>

0 commit comments

Comments
 (0)