diff --git a/http-client/index.ts b/http-client/index.ts index d2b0bf9a4..04a65eac4 100644 --- a/http-client/index.ts +++ b/http-client/index.ts @@ -7,14 +7,14 @@ import type { RepoListQuery, Tree, TreeStats, -} from "./lib/project.js"; +} from "./lib/repo.js"; import type { Author, Config, SeedingPolicy, DefaultSeedingPolicy, } from "./lib/shared.js"; -import type { Comment, Embed, Reaction } from "./lib/project/comment.js"; +import type { Comment, Embed, Reaction } from "./lib/repo/comment.js"; import type { Commit, CommitBlob, @@ -26,8 +26,8 @@ import type { DiffContent, DiffFile, HunkLine, -} from "./lib/project/commit.js"; -import type { Issue, IssueState } from "./lib/project/issue.js"; +} from "./lib/repo/commit.js"; +import type { Issue, IssueState } from "./lib/repo/issue.js"; import type { LifecycleState, Merge, @@ -36,13 +36,13 @@ import type { Review, Revision, Verdict, -} from "./lib/project/patch.js"; +} from "./lib/repo/patch.js"; import type { RequestOptions } from "./lib/fetcher.js"; import type { ZodSchema } from "zod"; import { z, array, literal, number, object, string, union } from "zod"; -import * as repo from "./lib/project.js"; +import * as repo from "./lib/repo.js"; import { Fetcher } from "./lib/fetcher.js"; import { nodeConfigSchema, diff --git a/http-client/lib/project.ts b/http-client/lib/repo.ts similarity index 96% rename from http-client/lib/project.ts rename to http-client/lib/repo.ts index 608da7230..20ffbb565 100644 --- a/http-client/lib/project.ts +++ b/http-client/lib/repo.ts @@ -1,8 +1,8 @@ import type { ZodSchema } from "zod"; import type { Fetcher, RequestOptions } from "./fetcher.js"; -import type { Commit, Commits } from "./project/commit.js"; -import type { Issue } from "./project/issue.js"; -import type { Patch } from "./project/patch.js"; +import type { Commit, Commits } from "./repo/commit.js"; +import type { Issue } from "./repo/issue.js"; +import type { Patch } from "./repo/patch.js"; import { array, @@ -23,9 +23,9 @@ import { commitsSchema, diffBlobSchema, diffSchema, -} from "./project/commit.js"; -import { issueSchema, issuesSchema } from "./project/issue.js"; -import { patchSchema, patchesSchema } from "./project/patch.js"; +} from "./repo/commit.js"; +import { issueSchema, issuesSchema } from "./repo/issue.js"; +import { patchSchema, patchesSchema } from "./repo/patch.js"; import { authorSchema } from "./shared.js"; const repoSchema = object({ diff --git a/http-client/lib/project/comment.ts b/http-client/lib/repo/comment.ts similarity index 100% rename from http-client/lib/project/comment.ts rename to http-client/lib/repo/comment.ts diff --git a/http-client/lib/project/commit.ts b/http-client/lib/repo/commit.ts similarity index 100% rename from http-client/lib/project/commit.ts rename to http-client/lib/repo/commit.ts diff --git a/http-client/lib/project/issue.ts b/http-client/lib/repo/issue.ts similarity index 100% rename from http-client/lib/project/issue.ts rename to http-client/lib/repo/issue.ts diff --git a/http-client/lib/project/patch.ts b/http-client/lib/repo/patch.ts similarity index 100% rename from http-client/lib/project/patch.ts rename to http-client/lib/repo/patch.ts diff --git a/http-client/tests/project.test.ts b/http-client/tests/repo.test.ts similarity index 100% rename from http-client/tests/project.test.ts rename to http-client/tests/repo.test.ts diff --git a/src/App.svelte b/src/App.svelte index 442d6e807..8161c3905 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -10,15 +10,15 @@ import Hotkeys from "./App/Hotkeys.svelte"; import LoadingBar from "./App/LoadingBar.svelte"; - import Commit from "@app/views/projects/Commit.svelte"; - import History from "@app/views/projects/History.svelte"; - import Issue from "@app/views/projects/Issue.svelte"; - import Issues from "@app/views/projects/Issues.svelte"; + import Commit from "@app/views/repos/Commit.svelte"; + import History from "@app/views/repos/History.svelte"; + import Issue from "@app/views/repos/Issue.svelte"; + import Issues from "@app/views/repos/Issues.svelte"; import Nodes from "@app/views/nodes/View.svelte"; import NotFound from "@app/views/NotFound.svelte"; - import Patch from "@app/views/projects/Patch.svelte"; - import Patches from "@app/views/projects/Patches.svelte"; - import Source from "@app/views/projects/Source.svelte"; + import Patch from "@app/views/repos/Patch.svelte"; + import Patches from "@app/views/repos/Patches.svelte"; + import Source from "@app/views/repos/Source.svelte"; import Users from "@app/views/users/View.svelte"; import Error from "@app/views/error/View.svelte"; diff --git a/src/components/ProjectCard.svelte b/src/components/RepoCard.svelte similarity index 98% rename from src/components/ProjectCard.svelte rename to src/components/RepoCard.svelte index d5c233494..e809b597a 100644 --- a/src/components/ProjectCard.svelte +++ b/src/components/RepoCard.svelte @@ -1,5 +1,5 @@