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 11import { Icons } from './components/Icons'
22
33export const SERVER_PORT = 23846
4+ export const REPO_LINK = 'https://github.com/Gitification-App/gitification'
45
56export enum Page {
67 Settings = 'Settings' ,
Original file line number Diff line number Diff line change 11<script lang="ts" setup>
22import { watch } from ' vue'
33import { exit } from ' @tauri-apps/api/process'
4+ import { open } from ' @tauri-apps/api/shell'
45import { invoke } from ' @tauri-apps/api/tauri'
56import AppButton from ' ../components/AppButton.vue'
67import PageHeader from ' ../components/PageHeader.vue'
78import SettingsItem from ' ../components/SettingsItem.vue'
89import { useStore } from ' ../stores/store'
910import { AppStorage } from ' ../storage'
11+ import { Icons } from ' ../components/Icons'
12+ import { REPO_LINK } from ' ../constants'
1013
1114const 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 : 10 px ;
108+ margin-left : 5 px ;
98109 }
99110 }
100111 }
112+
113+ .github-button {
114+ margin-right : auto ;
115+ }
101116 </style >
You can’t perform that action at this time.
0 commit comments