Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/views/Workspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ export default {
},
methods: {
launchApp(options) {
const { url, target } = options;
if (target === 'clipboard') {
if (navigator.clipboard) {
navigator.clipboard.writeText(url);
this.$toasted.show('Copied to clipboard!');
} else {
this.$toasted.show('Clipboard API not supported');
}
return;
}
if (options.target === 'newtab') {
window.open(options.url, '_blank');
} else {
Expand Down
5 changes: 4 additions & 1 deletion user-data/conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ sections:
description: Source Code, Issues and Pull Requests
url: https://github.com/lissy93/dashy
icon: favicon
target: newtab
- title: Docs
description: Configuring & Usage Documentation
provider: Dashy.to
Expand All @@ -36,12 +37,14 @@ sections:
description: See how others are using Dashy
url: https://github.com/Lissy93/dashy/blob/master/docs/showcase.md
icon: far fa-grin-hearts
target: newtab
- title: Config Guide
description: See full list of configuration options
url: https://github.com/Lissy93/dashy/blob/master/docs/configuring.md
icon: fas fa-wrench
target: newtab
- title: Support
description: Get help with Dashy, raise a bug, or get in contact
url: https://github.com/Lissy93/dashy/blob/master/.github/SUPPORT.md
icon: far fa-hands-helping

target: newtab