diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index f2d4aca..6ad63f5 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2237,7 +2237,7 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" [[package]] name = "markdoc" -version = "0.1.5" +version = "0.1.6" dependencies = [ "headless_chrome", "serde", diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 861748b..4a7272e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -27,9 +27,7 @@ { "identifier": "main-capability", "description": "Main window capability", - "windows": [ - "main" - ], + "windows": ["main"], "permissions": [ "core:default", "core:event:allow-listen", @@ -86,9 +84,7 @@ { "identifier": "viewer-capability", "description": "Capability for per-file viewer windows", - "windows": [ - "viewer-*" - ], + "windows": ["viewer-*"], "permissions": [ "core:default", "core:event:allow-listen", @@ -153,10 +149,7 @@ ], "fileAssociations": [ { - "ext": [ - "md", - "markdown" - ], + "ext": ["md", "markdown"], "name": "Markdown Document", "description": "Markdown text document", "role": "Viewer", @@ -169,12 +162,8 @@ "type": "downloadBootstrapper" }, "wix": { - "fragmentPaths": [ - "wix/file-associations.wxs" - ], - "componentRefs": [ - "FileAssociationRegistryEntries" - ] + "fragmentPaths": ["wix/file-associations.wxs"], + "componentRefs": ["FileAssociationRegistryEntries"] } } }, diff --git a/src/App.css b/src/App.css index c75be7b..d183880 100644 --- a/src/App.css +++ b/src/App.css @@ -2771,6 +2771,18 @@ body { margin: 0 0 6px 0; } +.welcome-subtitle-link { + color: inherit; + text-decoration: underline; + text-underline-offset: 2px; + text-decoration-color: #b5b5b5; +} + +.welcome-subtitle-link:hover { + color: #0066cc; + text-decoration-color: currentColor; +} + .welcome-version { font-size: 12px; color: #999; @@ -2782,6 +2794,12 @@ body { .welcome-subtitle { color: #a0a0a0; } + .welcome-subtitle-link { + text-decoration-color: #555; + } + .welcome-subtitle-link:hover { + color: #4da3ff; + } .welcome-version { color: #666; } diff --git a/src/windows/WelcomeWindow.tsx b/src/windows/WelcomeWindow.tsx index 18bdd67..06c8f84 100644 --- a/src/windows/WelcomeWindow.tsx +++ b/src/windows/WelcomeWindow.tsx @@ -1,5 +1,5 @@ import { useCallback, useEffect, useState } from 'react'; -import { invoke, listen, open, type UnlistenFn } from '../platform'; +import { invoke, listen, open, openUrl, type UnlistenFn } from '../platform'; import type { RecentFileEntry } from '../types'; import { clearRecentFiles, getRecentFiles, removeRecentFile } from '../utils/recentFiles'; @@ -155,7 +155,22 @@ export function WelcomeWindow({

MarkDoc

-

A simple markdown viewer by Stravica

+

+ A simple markdown viewer by{' '} + { + // Route through the opener plugin so the URL opens in the + // system browser instead of navigating the webview. + e.preventDefault(); + void openUrl('https://stravica.ai'); + }} + > + Stravica + +

{version && (

{version.full_version}