Skip to content

Commit

Permalink
refactor: Github link
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed May 26, 2023
1 parent c1b3658 commit faf88a4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
32 changes: 26 additions & 6 deletions src/renderer/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,21 @@
</transition>
</div>
</nav>
<div
class="navSettings"
:title="t('word.settings')"
@click="isSettingModal=true"
>
<i class="mdi mdi-cog" />
<div class="settings-block">
<div
class="navSettings"
:title="t('word.source')"
@click="openOutside('https://github.com/Fabio286/mizar')"
>
<i class="mdi mdi-github" />
</div>
<div
class="navSettings"
:title="t('word.settings')"
@click="isSettingModal=true"
>
<i class="mdi mdi-cog" />
</div>
</div>
<ModalSettings v-if="isSettingModal" @hide-settings="isSettingModal=false" />
</header>
Expand All @@ -45,6 +54,7 @@
import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import ModalSettings from './ModalSettings.vue';
import { shell } from 'electron';
defineProps({
selTab: Number,
Expand All @@ -61,4 +71,14 @@ const { t } = useI18n();
const selectTab = (value: number) => {
emit('selectTab', value);
};
const openOutside = (link: string) => {
shell.openExternal(link);
};
</script>
<style scoped lang="scss">
.settings-block {
display: flex;
gap: 10px;
}
</style>
3 changes: 2 additions & 1 deletion src/renderer/i18n/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export const enUS = {
settings: 'Settings',
close: 'Close',
locale: 'Locale',
author: 'Author'
author: 'Author',
source: 'Source'
},
message: {
running: 'Running',
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/i18n/it-IT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export const itIT = {
settings: 'Impostazioni',
close: 'Chiudi',
locale: 'Lingua',
author: 'Autore'
author: 'Autore',
source: 'Sorgenti'
},
message: {
running: 'In esecuzione',
Expand Down

0 comments on commit faf88a4

Please sign in to comment.