AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
Add GitHub repository link
tianma82c9798bdbd4
diff --git a/apps/web/src/components/GitHubRepositoryLink.tsx b/apps/web/src/components/GitHubRepositoryLink.tsxnew file mode 100644index 00000000..71d1547b--- /dev/null+++ b/apps/web/src/components/GitHubRepositoryLink.tsx@@ -0,0 +1,38 @@+import { type ReactNode } from "react";+import { cn } from "@/lib/utils";++const GITHUB_REPOSITORY_URL = "https://github.com/msh01/edgeever";++const GitHubMark = ({ className }: { className?: string }) => (+ <svg className={className} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">+ <path+ fillRule="evenodd"+ clipRule="evenodd"+ d="M12 2C6.48 2 2 6.59 2 12.25c0 4.52 2.87 8.35 6.84 9.7.5.1.68-.22.68-.49 0-.24-.01-1.04-.01-1.88-2.78.62-3.37-1.22-3.37-1.22-.46-1.19-1.11-1.5-1.11-1.5-.91-.64.07-.63.07-.63 1 .07 1.53 1.06 1.53 1.06.9 1.57 2.35 1.12 2.92.86.09-.67.35-1.12.63-1.38-2.22-.26-4.56-1.14-4.56-5.06 0-1.12.39-2.03 1.03-2.75-.1-.26-.45-1.3.1-2.71 0 0 .84-.28 2.75 1.05A9.33 9.33 0 0 1 12 6.97c.85 0 1.7.12 2.5.35 1.9-1.33 2.74-1.05 2.74-1.05.55 1.41.2 2.45.1 2.71.64.72 1.03 1.63 1.03 2.75 0 3.93-2.34 4.8-4.57 5.05.36.32.68.94.68 1.9 0 1.38-.01 2.48-.01 2.82 0 .27.18.59.69.49A10.18 10.18 0 0 0 22 12.25C22 6.59 17.52 2 12 2Z"+ />+ </svg>+);++export const GitHubRepositoryLink = ({+ children,+ className,+ iconClassName,+ title = "GitHub 仓库",+}: {+ children?: ReactNode;+ className?: string;+ iconClassName?: string;+ title?: string;+}) => (+ <a+ className={cn("inline-flex items-center gap-2", className)}+ href={GITHUB_REPOSITORY_URL}+ target="_blank"+ rel="noopener noreferrer"+ title={title}+ aria-label={children ? undefined : title}+ >+ <GitHubMark className={cn("h-4 w-4 shrink-0", iconClassName)} />+ {children}+ </a>+);diff --git a/apps/web/src/components/LoginScreen.tsx b/apps/web/src/components/LoginScreen.tsxindex 6a45339e..a2681245 100644--- a/apps/web/src/components/LoginScreen.tsx+++ b/apps/web/src/components/LoginScreen.tsx@@ -1,6 +1,7 @@import { useState, type FormEvent } from "react";import { LockKeyhole } from "lucide-react";import { Button } from "@/components/ui/button";+import { GitHubRepositoryLink } from "@/components/GitHubRepositoryLink";interface LoginScreenProps {error: string | null;@@ -26,6 +27,7 @@ export const LoginScreen = ({ error, isSubmitting, onSubmit }: LoginScreenProps)<main className="flex h-[100dvh] items-center justify-center bg-gradient-to-tr from-emerald-50/70 via-[#f6faf7] to-[#ebf3ee] px-4 py-8 text-slate-950"><div className="absolute inset-0 bg-[radial-gradient(circle_at_top_right,rgba(98,127,88,0.06),transparent_45%)] pointer-events-none" /><div className="absolute inset-0 bg-[radial-gradient(circle_at_bottom_left,rgba(98,127,88,0.04),transparent_55%)] pointer-events-none" />+ <GitHubRepositoryLink className="absolute right-4 top-[max(1rem,env(safe-area-inset-top))] z-10 h-10 w-10 justify-center rounded-full border border-slate-200 bg-white/85 text-slate-600 shadow-sm backdrop-blur transition hover:bg-white hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#627f58]/70" iconClassName="h-5 w-5" /><section className="relative w-full max-w-[400px] rounded-2xl border border-[#627f58]/12 bg-white/95 p-8 shadow-[0_20px_50px_rgba(98,127,88,0.08)] backdrop-blur-md transition-all duration-300 hover:shadow-[0_24px_60px_rgba(98,127,88,0.12)]"><div className="mb-8 flex items-center gap-4">diff --git a/apps/web/src/components/MemoListPane.tsx b/apps/web/src/components/MemoListPane.tsxindex 82ba89f5..5ce130fa 100644--- a/apps/web/src/components/MemoListPane.tsx+++ b/apps/web/src/components/MemoListPane.tsx@@ -39,6 +39,7 @@ import {TagX,} from "lucide-react";import { Button } from "@/components/ui/button";+import { GitHubRepositoryLink } from "@/components/GitHubRepositoryLink";import {DropdownMenu,DropdownMenuContent,@@ -593,6 +594,7 @@ const MobileHomeHeader = ({><RefreshCw className={cn("h-4 w-4", isSyncingQueuedChanges && "animate-spin")} /></button>+ <GitHubRepositoryLink className="flex h-9 w-9 justify-center rounded-full text-slate-600 transition hover:bg-slate-100 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70" /></div></div>);diff --git a/apps/web/src/components/NotebookPane.tsx b/apps/web/src/components/NotebookPane.tsxindex 53f2121e..6e965b69 100644--- a/apps/web/src/components/NotebookPane.tsx+++ b/apps/web/src/components/NotebookPane.tsx@@ -26,6 +26,7 @@ import {DropdownMenuTrigger,} from "@/components/ui/dropdown-menu";import { NotebookTreeItem } from "./NotebookTreeItem";+import { GitHubRepositoryLink } from "./GitHubRepositoryLink";import { api } from "@/lib/api";import { cn } from "@/lib/utils";import type { Notebook, AuthUser } from "@edgeever/shared";@@ -391,6 +392,9 @@ export const NotebookPane = ({</div><Settings className="h-4 w-4 shrink-0 text-slate-400" /></button>+ <div className="mt-2 flex items-center justify-start">+ <GitHubRepositoryLink className="h-8 w-8 justify-center rounded-md text-slate-500 transition hover:bg-slate-50 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70" />+ </div></div></footer></div>