mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 16:43:13 +01:00
Merge 32e3f3d38c into 996de036e8
This commit is contained in:
commit
6fe90a809e
2 changed files with 14 additions and 1 deletions
|
|
@ -46,6 +46,16 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
launchApp(options) {
|
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') {
|
if (options.target === 'newtab') {
|
||||||
window.open(options.url, '_blank');
|
window.open(options.url, '_blank');
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ sections:
|
||||||
description: Source Code, Issues and Pull Requests
|
description: Source Code, Issues and Pull Requests
|
||||||
url: https://github.com/lissy93/dashy
|
url: https://github.com/lissy93/dashy
|
||||||
icon: favicon
|
icon: favicon
|
||||||
|
target: newtab
|
||||||
- title: Docs
|
- title: Docs
|
||||||
description: Configuring & Usage Documentation
|
description: Configuring & Usage Documentation
|
||||||
provider: Dashy.to
|
provider: Dashy.to
|
||||||
|
|
@ -36,12 +37,14 @@ sections:
|
||||||
description: See how others are using Dashy
|
description: See how others are using Dashy
|
||||||
url: https://github.com/Lissy93/dashy/blob/master/docs/showcase.md
|
url: https://github.com/Lissy93/dashy/blob/master/docs/showcase.md
|
||||||
icon: far fa-grin-hearts
|
icon: far fa-grin-hearts
|
||||||
|
target: newtab
|
||||||
- title: Config Guide
|
- title: Config Guide
|
||||||
description: See full list of configuration options
|
description: See full list of configuration options
|
||||||
url: https://github.com/Lissy93/dashy/blob/master/docs/configuring.md
|
url: https://github.com/Lissy93/dashy/blob/master/docs/configuring.md
|
||||||
icon: fas fa-wrench
|
icon: fas fa-wrench
|
||||||
|
target: newtab
|
||||||
- title: Support
|
- title: Support
|
||||||
description: Get help with Dashy, raise a bug, or get in contact
|
description: Get help with Dashy, raise a bug, or get in contact
|
||||||
url: https://github.com/Lissy93/dashy/blob/master/.github/SUPPORT.md
|
url: https://github.com/Lissy93/dashy/blob/master/.github/SUPPORT.md
|
||||||
icon: far fa-hands-helping
|
icon: far fa-hands-helping
|
||||||
|
target: newtab
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue