Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 5 additions & 16 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
{
"identifier": "main-capability",
"description": "Main window capability",
"windows": [
"main"
],
"windows": ["main"],
"permissions": [
"core:default",
"core:event:allow-listen",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -153,10 +149,7 @@
],
"fileAssociations": [
{
"ext": [
"md",
"markdown"
],
"ext": ["md", "markdown"],
"name": "Markdown Document",
"description": "Markdown text document",
"role": "Viewer",
Expand All @@ -169,12 +162,8 @@
"type": "downloadBootstrapper"
},
"wix": {
"fragmentPaths": [
"wix/file-associations.wxs"
],
"componentRefs": [
"FileAssociationRegistryEntries"
]
"fragmentPaths": ["wix/file-associations.wxs"],
"componentRefs": ["FileAssociationRegistryEntries"]
}
}
},
Expand Down
18 changes: 18 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down
19 changes: 17 additions & 2 deletions src/windows/WelcomeWindow.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -155,7 +155,22 @@ export function WelcomeWindow({
<div className="welcome-root" data-testid="welcome-root">
<header className="welcome-header">
<h1 className="welcome-title">MarkDoc</h1>
<p className="welcome-subtitle">A simple markdown viewer by Stravica</p>
<p className="welcome-subtitle">
A simple markdown viewer by{' '}
<a
href="https://stravica.ai"
className="welcome-subtitle-link"
data-testid="welcome-stravica-link"
onClick={(e) => {
// 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
</a>
</p>
{version && (
<p className="welcome-version" data-testid="welcome-version">
{version.full_version}
Expand Down
Loading