Skip to content

Commit

Permalink
Add 'keyboard folder' button that redirects to GitHub repository (qmk…
Browse files Browse the repository at this point in the history
…#1191)

* Add 'keyboard folder' button that redirects to...

... GitHub repository

* Move button to ControllerTop
  • Loading branch information
mateossh authored Oct 4, 2022
1 parent d6e5296 commit 192aac5
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/components/ControllerTop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
@search:focus="opened"
@search:blur="blur"
></v-select>
<a
id="open-on-github"
rel="noopener"
target="_blank"
:href="githubKeyboardFolderURL"
v-tooltip.bottom="$t('githubKeyboardFolder.title')"
>
<font-awesome-icon icon="fa-brands fa-github" size="lg" fixed-width />
</a>
</div>
<div class="topctrl-layouts">
<label
Expand Down Expand Up @@ -123,6 +132,9 @@ export default {
realKeymapName() {
return this.$store.getters['app/keymapName'];
},
githubKeyboardFolderURL() {
return `https://github.com/qmk/qmk_firmware/tree/master/keyboards/${this.keyboard}`;
},
keyboard: {
get() {
return this.$store.state.app.keyboard;
Expand Down Expand Up @@ -528,4 +540,9 @@ export default {
.topctrl-keyboards .v-select:focus-within {
outline: 2px solid black;
}
#open-on-github {
cursor: pointer;
margin-left: 8px;
color: white;
}
</style>
2 changes: 2 additions & 0 deletions src/i18n/de.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,Erfasste Tasten zurücksetzen
tester:typewritericon:label,
toggleTerminal:label,
toggleTerminal:title,
githubKeyboardFolder:label,
githubKeyboardFolder:title,
1 change: 1 addition & 0 deletions src/i18n/en.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,4 @@ tester:reset:title,Reset detected keys
tester:typewritericon:label,Click to hear typewriter sounds while testing
toggleTerminal:label,Click to Expand
toggleTerminal:title,Toggle the Terminal display
githubKeyboardFolder:title,Open keyboard folder on GitHub
2 changes: 2 additions & 0 deletions src/i18n/es.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,Restablecer las teclas detectadas
tester:typewritericon:label,
toggleTerminal:label,
toggleTerminal:title,
githubKeyboardFolder:label,
githubKeyboardFolder:title,
2 changes: 2 additions & 0 deletions src/i18n/fr.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,Réinitialise les touches détectées
tester:typewritericon:label,
toggleTerminal:label,
toggleTerminal:title,
githubKeyboardFolder:label,
githubKeyboardFolder:title,
2 changes: 2 additions & 0 deletions src/i18n/it.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,Reimposta le chiavi rilevate
tester:typewritericon:label,Clicca per ascoltare i suoni della macchina da scrivere durante il test
toggleTerminal:label,Clicca per espandere
toggleTerminal:title,Azionare il videoterminale
githubKeyboardFolder:label,
githubKeyboardFolder:title,
2 changes: 2 additions & 0 deletions src/i18n/ja.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,検出されたキーをリセットする
tester:typewritericon:label,クリックすると、テスト中にタイプライターの音を鳴らします
toggleTerminal:label,展開するにはクリックします
toggleTerminal:title,ターミナル表示の切り替え
githubKeyboardFolder:label,
githubKeyboardFolder:title,
2 changes: 2 additions & 0 deletions src/i18n/ms.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,Set semula key yang dikesan
tester:typewritericon:label,
toggleTerminal:label,
toggleTerminal:title,
githubKeyboardFolder:label,
githubKeyboardFolder:title,
2 changes: 2 additions & 0 deletions src/i18n/pl-PL.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,Zresetuj wykryte kody klawiszy
tester:typewritericon:label,
toggleTerminal:label,
toggleTerminal:title,
githubKeyboardFolder:label,
githubKeyboardFolder:title,
2 changes: 2 additions & 0 deletions src/i18n/pt-BR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,Reset detected keys
tester:typewritericon:label,
toggleTerminal:label,
toggleTerminal:title,
githubKeyboardFolder:label,
githubKeyboardFolder:title,
2 changes: 2 additions & 0 deletions src/i18n/ru.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,Сброс обнаруженных клавиш
tester:typewritericon:label,Включить звуки нажатия во время тестирования
toggleTerminal:label,"Нажмите, чтобы раскрыть"
toggleTerminal:title,Отображение терминала
githubKeyboardFolder:label,
githubKeyboardFolder:title,
2 changes: 2 additions & 0 deletions src/i18n/zh-CN.csv
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,5 @@ tester:reset:title,开启打字机音效
tester:typewritericon:label,开启打字机音效
toggleTerminal:label,点击展开
toggleTerminal:title,开启终端显示
githubKeyboardFolder:label,
githubKeyboardFolder:title,
2 changes: 2 additions & 0 deletions src/i18n/zh.csv
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,5 @@ tester:reset:title,
tester:typewritericon:label,
toggleTerminal:label,
toggleTerminal:title,
githubKeyboardFolder:label,
githubKeyboardFolder:title,
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ import {
import {
faApple,
faWindows,
faLinux
faLinux,
faGithub
} from '@fortawesome/free-brands-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import isObject from 'lodash/isObject';
Expand Down Expand Up @@ -89,6 +90,7 @@ const icons = [
faCog,
faDownload,
faExclamationTriangle,
faGithub,
faHatWizard,
faKeyboard,
faLinux,
Expand Down

0 comments on commit 192aac5

Please sign in to comment.