|
1 | 1 | import { useCallback, useEffect, useRef, useState } from "react"; |
2 | 2 | import { relaunch } from "@tauri-apps/plugin-process"; |
3 | 3 | import { check, type Update } from "@tauri-apps/plugin-updater"; |
4 | | -import { Archive, Copy, ExternalLink, Globe, Info, Puzzle, RefreshCw, SlidersHorizontal, User, X, Zap } from "lucide-react"; |
| 4 | +import { Archive, Copy, ExternalLink, Github, Globe, Info, Puzzle, RefreshCw, SlidersHorizontal, User, X, Zap } from "lucide-react"; |
5 | 5 |
|
6 | 6 | import type { ColorScheme } from "./appearance"; |
7 | 7 | import AccountSettings from "./AccountSettings"; |
@@ -637,6 +637,26 @@ export default function SettingsDialog({ |
637 | 637 | aria-labelledby="about-heading" |
638 | 638 | > |
639 | 639 | <h3 id="about-heading">Kimi Code</h3> |
| 640 | + <div className="settings-community-card"> |
| 641 | + <div> |
| 642 | + <strong>{t("settings.communityEdition")}</strong> |
| 643 | + <p>{t("settings.communityDescription")}</p> |
| 644 | + </div> |
| 645 | + <button |
| 646 | + className="settings-repository-link" |
| 647 | + type="button" |
| 648 | + aria-label={t("settings.openRepository")} |
| 649 | + onClick={() => |
| 650 | + void openExternalUrl( |
| 651 | + "https://github.com/vnt-dev/kimi-code-rs", |
| 652 | + ) |
| 653 | + } |
| 654 | + > |
| 655 | + <Github size={15} /> |
| 656 | + <span>github.com/vnt-dev/kimi-code-rs</span> |
| 657 | + <ExternalLink size={13} /> |
| 658 | + </button> |
| 659 | + </div> |
640 | 660 | <div className="settings-row"> |
641 | 661 | <div className="settings-version"> |
642 | 662 | <span className="settings-row-label"> |
|
0 commit comments