Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): add link actions to the terminal context menu #12281

Closedflamboh(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/12281/headopened View on GitHub

Showing 14 changed files with 80 additions and 60 deletions (loading 11).

x
0 of 14 viewed, 14 left
23 additions and 22 deletionsapps/web/src/components/preview/fileExplorerLabel.test.tsModified
View file
@@ -1,38 +1,39 @@
import { describe, expect, it } from "vite-plus/test";
​
import {
+ fileManagerOpenNameForOs,
+ fileManagerRevealNameForKind,
+ fileManagerRevealNameForOs,
revealInFileExplorerLabel,
- revealInFileExplorerLabelForKind,
- revealInFileExplorerLabelForOs,
+ revealInFileExplorerLabelForManager,
} from "./fileExplorerLabel";
​
-describe("revealInFileExplorerLabel", () => {
+describe("file manager names", () => {
it.each([
- ["MacIntel", "Reveal in Finder"],
- ["Win32", "Reveal in File Explorer"],
- ["Linux x86_64", "Reveal in Files"],
- ])("maps %s to %s", (platform, expected) => {
- expect(revealInFileExplorerLabel(platform)).toBe(expected);
+ ["darwin", "Finder", "Finder"],
+ ["windows", "File Explorer", "File Explorer"],
+ ["linux", "File Manager", "Files"],
+ ] as const)("maps %s", (os, openName, revealName) => {
+ expect(fileManagerOpenNameForOs(os)).toBe(openName);
+ expect(fileManagerRevealNameForOs(os)).toBe(revealName);
});
-});
​
-describe("revealInFileExplorerLabelForOs", () => {