-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(menubar): add GitHub button to menubar
help
- Loading branch information
1 parent
4455347
commit 4216ea9
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Prettier | ||
on: | ||
pull_request: | ||
pull_request_target: | ||
branches: | ||
- alpha | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script context="module"> | ||
import { writable } from 'svelte/store'; | ||
const open = writable(false); | ||
export function openGithubRepo() { | ||
open.set(true); | ||
window.open('https://github.com/Muhammed-Rahif/Notpad', '_blank'); | ||
} | ||
</script> | ||
|
||
<a | ||
href="https://github.com/Muhammed-Rahif/Notpad" | ||
target="_blank" | ||
on:click|preventDefault={openGithubRepo} | ||
class="text-blue-500 underline" | ||
> | ||
Visit GitHub Repository | ||
</a> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters