File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { Icons } from './components/Icons'
2
2
3
3
export const SERVER_PORT = 23846
4
+ export const REPO_LINK = 'https://github.com/Gitification-App/gitification'
4
5
5
6
export enum Page {
6
7
Settings = 'Settings' ,
Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
2
import { watch } from ' vue'
3
3
import { exit } from ' @tauri-apps/api/process'
4
+ import { open } from ' @tauri-apps/api/shell'
4
5
import { invoke } from ' @tauri-apps/api/tauri'
5
6
import AppButton from ' ../components/AppButton.vue'
6
7
import PageHeader from ' ../components/PageHeader.vue'
7
8
import SettingsItem from ' ../components/SettingsItem.vue'
8
9
import { useStore } from ' ../stores/store'
9
10
import { AppStorage } from ' ../storage'
11
+ import { Icons } from ' ../components/Icons'
12
+ import { REPO_LINK } from ' ../constants'
10
13
11
14
const store = useStore ()
12
15
@@ -49,6 +52,13 @@ watch(soundsEnabled, (enabled) => {
49
52
</div >
50
53
51
54
<div class =" settings-footer" >
55
+ <AppButton
56
+ class =" github-button"
57
+ @click =" open(REPO_LINK)"
58
+ >
59
+ <Icons .Github />
60
+ </AppButton >
61
+
52
62
<AppButton
53
63
v-if =" accessToken"
54
64
@click =" store.logout"
@@ -65,6 +75,7 @@ watch(soundsEnabled, (enabled) => {
65
75
66
76
<style lang="scss" scoped>
67
77
.settings {
78
+ outline : none ;
68
79
position : absolute ;
69
80
left : 0 ;
70
81
top : 0 ;
@@ -94,8 +105,12 @@ watch(soundsEnabled, (enabled) => {
94
105
justify-content : flex-end ;
95
106
96
107
> .button + .button {
97
- margin-left : 10 px ;
108
+ margin-left : 5 px ;
98
109
}
99
110
}
100
111
}
112
+
113
+ .github-button {
114
+ margin-right : auto ;
115
+ }
101
116
</style >
You can’t perform that action at this time.
0 commit comments