diff --git a/package.json b/package.json index 725ce11..a475aec 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "productName": "Pasted", "version": "0.4.0", "description": "Yet another clipboard manager", + "homepage": "https://github.com/skoro/pasted", "main": ".vite/build/main.js", "scripts": { "start": "electron-forge start", diff --git a/src/renderer/components/pages/PreferencesPage.vue b/src/renderer/components/pages/PreferencesPage.vue index 368c3e4..17c03d5 100644 --- a/src/renderer/components/pages/PreferencesPage.vue +++ b/src/renderer/components/pages/PreferencesPage.vue @@ -7,7 +7,7 @@ import ToolButton from '../forms/ToolButton.vue'; import CheckboxElem from '../forms/CheckboxElement.vue'; import { usePreferencesStore } from '../../stores/usePreferencesStore'; import { keyboard, bindEscKey } from '../../keyshortcuts'; -import { version as appVersion } from '../../../../package.json'; +import { version as appVersion, homepage } from '../../../../package.json'; const emit = defineEmits(['close-page']); @@ -17,6 +17,13 @@ function closePage() { emit('close-page'); } +/** + * @param {string} url + */ +function openUrl(url) { + window.electronAPI.openUrl(url); +} + onMounted(() => { bindEscKey(closePage); }); @@ -72,7 +79,10 @@ onUnmounted(() => {
- Version: {{ appVersion }} +
Version: {{ appVersion }}
+
+ Project home: {{ homepage }} +