NobGit
public anord read

Ledger

Why work hard when you can work easier?

Languages

Repository composition by tracked source files.

TypeScript
TypeScript 86% CSS 10% SQL 3% Shell 1% HTML 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/anord/ledger.git
ssh://[email protected]:2222/orgs/anord/ledger.git

Trace

apps/web/src/lib/mcp.ts

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

mcp.ts on main
Author Date Commit Line Code
Alex Nord 3 months ago 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
1
function getOrigin(value: string | undefined | null) {
Open commit View diff
1 function getOrigin(value: string | undefined | null) {
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
2
  if (!value) return null;
Open commit View diff
2 if (!value) return null;
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
3
Open commit View diff
3
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
4
  try {
Open commit View diff
4 try {
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
5
    return new URL(value, typeof window !== "undefined" ? window.location.origin : "http://localhost").origin;
Open commit View diff
5 return new URL(value, typeof window !== "undefined" ? window.location.origin : "http://localhost").origin;
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
6
  } catch {
Open commit View diff
6 } catch {
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
7
    return null;
Open commit View diff
7 return null;
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
8
  }
Open commit View diff
8 }
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
9
}
Open commit View diff
9 }
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
10
Open commit View diff
10
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
11
export function resolveDisplayedMcpEndpoint(fallbackEndpoint?: string) {
Open commit View diff
11 export function resolveDisplayedMcpEndpoint(fallbackEndpoint?: string) {
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
12
  const browserOrigin = typeof window !== "undefined" ? window.location.origin : null;
Open commit View diff
12 const browserOrigin = typeof window !== "undefined" ? window.location.origin : null;
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
13
  const fallbackOrigin = getOrigin(fallbackEndpoint);
Open commit View diff
13 const fallbackOrigin = getOrigin(fallbackEndpoint);
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
14
  const origin = browserOrigin ?? fallbackOrigin;
Open commit View diff
14 const origin = browserOrigin ?? fallbackOrigin;
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
15
  return origin ? `${origin}/mcp` : "/mcp";
Open commit View diff
15 return origin ? `${origin}/mcp` : "/mcp";
same change 39c4a7e

Continues UI fixes and fixing Docs

Full commit hash
39c4a7eb40e70508ca2290d8656cf640971c5c56
Author
Alex Nord <[email protected]>
Date
3 months ago
Selected line
16
}
Open commit View diff
16 }