mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
Rename user facing strings with "project" -> "repository"
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
{:else}
|
||||
<div class="heading">Connect & Authenticate</div>
|
||||
<div class="label">
|
||||
Connect to your local node to browse projects on your local machine,
|
||||
Connect to your local node to browse repositories on your local machine,
|
||||
create issues, and participate in discussions.
|
||||
</div>
|
||||
<Command fullWidth command={`rad web ${window.origin} ${pathParam}`} />
|
||||
@@ -57,9 +57,9 @@
|
||||
</div>
|
||||
{/if}
|
||||
{:else}
|
||||
<div class="heading">Browse your local projects</div>
|
||||
<div class="heading">Browse your local repositories</div>
|
||||
<div class="label">
|
||||
To browse projects on your local node, run the following command.
|
||||
To browse repositories on your local node, run the following command.
|
||||
</div>
|
||||
<Command fullWidth command="radicle-httpd" />
|
||||
|
||||
|
||||
@@ -152,9 +152,9 @@
|
||||
(filteredLocalProjects instanceof Array &&
|
||||
!filteredLocalProjects.length) ||
|
||||
localProjects instanceof Error}
|
||||
title="Local projects">
|
||||
title="Local repositories">
|
||||
<svelte:fragment slot="subtitle">
|
||||
Projects you're seeding with your local node
|
||||
Repositories you're seeding with your local node
|
||||
</svelte:fragment>
|
||||
<svelte:fragment slot="actions">
|
||||
{#if $experimental}
|
||||
@@ -173,15 +173,15 @@
|
||||
baseUrlToString(api.baseUrl),
|
||||
)} />
|
||||
{:else if !localProjects?.length}
|
||||
<div class="heading">No local projects</div>
|
||||
<div class="heading">No local repositories</div>
|
||||
<div class="label">
|
||||
Seed or check out a project to work with it on your local
|
||||
Seed or check out a repository to work with it on your local
|
||||
node.
|
||||
</div>
|
||||
{:else}
|
||||
<div class="heading">Nothing to see here</div>
|
||||
<div class="label">
|
||||
No local projects matched your filter settings.
|
||||
No local repositories matched your filter settings.
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -228,7 +228,7 @@
|
||||
|
||||
<div slot="popover" class="popover txt-small" style:width="15rem">
|
||||
<div style:padding-bottom="0.5rem">
|
||||
To browse your local projects, run:
|
||||
To browse your local repositories, run:
|
||||
</div>
|
||||
<Command command="radicle-httpd" />
|
||||
</div>
|
||||
@@ -245,9 +245,9 @@
|
||||
baseUrlToString(api.baseUrl),
|
||||
)} />
|
||||
{:else}
|
||||
<div class="heading">No pinned projects</div>
|
||||
<div class="heading">No pinned repositories</div>
|
||||
<div class="label">
|
||||
The selected seed node doesn't have any pinned projects.
|
||||
The selected seed node doesn't have any pinned repositories.
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -17,13 +17,14 @@
|
||||
{
|
||||
value: "all",
|
||||
title: "All seeding",
|
||||
description: "Show all projects you’re seeding with your local node.",
|
||||
description: "Show all repositories you’re seeding with your local node.",
|
||||
iconName: "seedling",
|
||||
},
|
||||
{
|
||||
value: "delegating",
|
||||
title: "Delegate only",
|
||||
description: "Show only projects that you’re seeding and a delegate of.",
|
||||
description:
|
||||
"Show only repositories that you’re seeding and a delegate of.",
|
||||
iconName: "badge",
|
||||
},
|
||||
];
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
slot="toggle"
|
||||
on:click={toggle}>
|
||||
<IconSmall name="plus" />
|
||||
New project
|
||||
New repository
|
||||
</Button>
|
||||
|
||||
<div slot="popover" class="popover txt-small">
|
||||
Run the following command within an already-existing Git repository to
|
||||
create a new Radicle project.
|
||||
create a new Radicle repository.
|
||||
<Command fullWidth command="rad init" />
|
||||
</div>
|
||||
</Popover>
|
||||
|
||||
@@ -17,8 +17,8 @@ export function handleError(
|
||||
} else if (error instanceof ResponseError) {
|
||||
return {
|
||||
error,
|
||||
title: "Could not load the projects",
|
||||
description: `You're trying to fetch projects from a node that is not reachable, make sure the address <a href="${url}">${url}</a> is correct and the right ports are exposed if its your node.`,
|
||||
title: "Could not load the repositories",
|
||||
description: `You're trying to fetch repositories from a node that is not reachable, make sure the address <a href="${url}">${url}</a> is correct and the right ports are exposed if its your node.`,
|
||||
};
|
||||
} else if (
|
||||
error instanceof TypeError &&
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
|
||||
<div class="subtitle" style:justify-content="space-between">
|
||||
<div class="txt-semibold">
|
||||
{isLocal(baseUrl.hostname) ? "Seeded" : "Pinned"} projects
|
||||
{isLocal(baseUrl.hostname) ? "Seeded" : "Pinned"} repositories
|
||||
</div>
|
||||
<div class="seeding-policy">
|
||||
{#if policy && scope}
|
||||
@@ -194,9 +194,9 @@
|
||||
</div>
|
||||
{:else}
|
||||
<div class="empty-state">
|
||||
<div class="heading">No pinned projects</div>
|
||||
<div class="heading">No pinned repositories</div>
|
||||
<div class="label">
|
||||
This node doesn't have any pinned projects.
|
||||
This node doesn't have any pinned repositories.
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -56,9 +56,9 @@
|
||||
corner to get started.
|
||||
</div>
|
||||
{:else if localProject === "notFound"}
|
||||
<div class="title txt-bold">Project not available locally</div>
|
||||
<div class="title txt-bold">Repository not available locally</div>
|
||||
<div class="description" style:padding-bottom="0.5rem">
|
||||
This project hasn't been found on your local
|
||||
This repository hasn't been found on your local
|
||||
<br />
|
||||
node. To get a local copy start seeding it
|
||||
<br />
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
function createTitle(p: Remote): string {
|
||||
const nodeId = formatNodeId(p.id);
|
||||
return p.delegate
|
||||
? `${nodeId} is a delegate of this project`
|
||||
? `${nodeId} is a delegate of this repository`
|
||||
: `${nodeId} is a peer followed by this node`;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -21,7 +21,7 @@ export function handleError(
|
||||
} else if (route.resource === "project.patch") {
|
||||
subject = "Patch";
|
||||
} else {
|
||||
subject = "Project";
|
||||
subject = "Repository";
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -33,7 +33,7 @@ export function handleError(
|
||||
resource: "error",
|
||||
params: {
|
||||
error,
|
||||
title: "Could not load this project",
|
||||
title: "Could not load this repository",
|
||||
description: `Make sure you are able to connect to the seed <a href="${url}">${url}</a>.`,
|
||||
},
|
||||
};
|
||||
@@ -55,9 +55,9 @@ export function handleError(
|
||||
return {
|
||||
resource: "error",
|
||||
params: {
|
||||
title: "Could not load this project",
|
||||
title: "Could not load this repository",
|
||||
description:
|
||||
"You're trying to access a project on your local node but the app is not connected to it. Click the Connect button in the top right corner to connect.",
|
||||
"You're trying to access a repository on your local node but the app is not connected to it. Click the Connect button in the top right corner to connect.",
|
||||
error: undefined,
|
||||
},
|
||||
};
|
||||
@@ -66,7 +66,7 @@ export function handleError(
|
||||
resource: "error",
|
||||
params: {
|
||||
error,
|
||||
title: "Could not load this project",
|
||||
title: "Could not load this repository",
|
||||
description:
|
||||
"You stumbled on an unknown error, we aren't exactly sure what happened.",
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { expect, test } from "@tests/support/fixtures.js";
|
||||
test("show pinned projects", async ({ page }) => {
|
||||
await page.addInitScript(() => localStorage.setItem("experimental", "true"));
|
||||
await page.goto("/");
|
||||
await expect(page.getByText("Local projects")).toBeVisible();
|
||||
await expect(page.getByText("Local repositories")).toBeVisible();
|
||||
|
||||
// Shows pinned project name.
|
||||
await expect(page.getByText("source-browsing")).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user