diff --git a/.github/workflows/check-httpd-api-unit-test.yml b/.github/workflows/check-http-client-unit-test.yml
similarity index 81%
rename from .github/workflows/check-httpd-api-unit-test.yml
rename to .github/workflows/check-http-client-unit-test.yml
index 50228a5d2..065c3ac27 100644
--- a/.github/workflows/check-httpd-api-unit-test.yml
+++ b/.github/workflows/check-http-client-unit-test.yml
@@ -1,8 +1,8 @@
-name: check-httpd-api-unit-test
+name: check-http-client-unit-test
on: push
jobs:
- check-httpd-api-unit-test:
+ check-http-client-unit-test:
runs-on: ubuntu-latest
steps:
- name: Setup Node
@@ -18,4 +18,4 @@ jobs:
./scripts/install-binaries;
./scripts/install-binaries --show-path >> $GITHUB_PATH;
- run: |
- npm run test:httpd-api:unit
+ npm run test:http-client:unit
diff --git a/flake.nix b/flake.nix
index f87328a4e..a9e84f6ea 100644
--- a/flake.nix
+++ b/flake.nix
@@ -93,7 +93,7 @@
scripts/check
{
npm run test:unit
- npm run test:httpd-api:unit
+ npm run test:http-client:unit
} | tee /dev/null
runHook postCheck
'';
diff --git a/httpd-client/index.ts b/http-client/index.ts
similarity index 100%
rename from httpd-client/index.ts
rename to http-client/index.ts
diff --git a/httpd-client/lib/fetcher.ts b/http-client/lib/fetcher.ts
similarity index 100%
rename from httpd-client/lib/fetcher.ts
rename to http-client/lib/fetcher.ts
diff --git a/httpd-client/lib/profile.ts b/http-client/lib/profile.ts
similarity index 100%
rename from httpd-client/lib/profile.ts
rename to http-client/lib/profile.ts
diff --git a/httpd-client/lib/project.ts b/http-client/lib/project.ts
similarity index 100%
rename from httpd-client/lib/project.ts
rename to http-client/lib/project.ts
diff --git a/httpd-client/lib/project/comment.ts b/http-client/lib/project/comment.ts
similarity index 100%
rename from httpd-client/lib/project/comment.ts
rename to http-client/lib/project/comment.ts
diff --git a/httpd-client/lib/project/commit.ts b/http-client/lib/project/commit.ts
similarity index 100%
rename from httpd-client/lib/project/commit.ts
rename to http-client/lib/project/commit.ts
diff --git a/httpd-client/lib/project/issue.ts b/http-client/lib/project/issue.ts
similarity index 100%
rename from httpd-client/lib/project/issue.ts
rename to http-client/lib/project/issue.ts
diff --git a/httpd-client/lib/project/patch.ts b/http-client/lib/project/patch.ts
similarity index 100%
rename from httpd-client/lib/project/patch.ts
rename to http-client/lib/project/patch.ts
diff --git a/httpd-client/lib/session.ts b/http-client/lib/session.ts
similarity index 100%
rename from httpd-client/lib/session.ts
rename to http-client/lib/session.ts
diff --git a/httpd-client/lib/shared.ts b/http-client/lib/shared.ts
similarity index 100%
rename from httpd-client/lib/shared.ts
rename to http-client/lib/shared.ts
diff --git a/httpd-client/tests/client.test.ts b/http-client/tests/client.test.ts
similarity index 90%
rename from httpd-client/tests/client.test.ts
rename to http-client/tests/client.test.ts
index bf1c4a175..02ebd1614 100644
--- a/httpd-client/tests/client.test.ts
+++ b/http-client/tests/client.test.ts
@@ -1,6 +1,6 @@
import { describe, test } from "vitest";
-import { HttpdClient } from "@httpd-client";
+import { HttpdClient } from "@http-client";
import { defaultHttpdPort } from "@tests/support/fixtures";
const api = new HttpdClient({
diff --git a/httpd-client/tests/project.test.ts b/http-client/tests/project.test.ts
similarity index 96%
rename from httpd-client/tests/project.test.ts
rename to http-client/tests/project.test.ts
index 406b614f5..69f1d4977 100644
--- a/httpd-client/tests/project.test.ts
+++ b/http-client/tests/project.test.ts
@@ -1,6 +1,6 @@
import { describe, test } from "vitest";
-import { HttpdClient } from "@httpd-client";
+import { HttpdClient } from "@http-client";
import {
aliceMainHead,
aliceRemote,
@@ -14,9 +14,9 @@ import {
assertPatch,
createIssueToBeModified,
createPatchToBeModified,
-} from "@httpd-client/tests/support/support";
-import { authenticate } from "@httpd-client/tests/support/httpd.js";
-import { testFixture as testWithAPI } from "@httpd-client/tests/support/fixtures.js";
+} from "@http-client/tests/support/support";
+import { authenticate } from "@http-client/tests/support/httpd.js";
+import { testFixture as testWithAPI } from "@http-client/tests/support/fixtures.js";
describe("project", () => {
const api = new HttpdClient({
diff --git a/httpd-client/tests/session.test.ts b/http-client/tests/session.test.ts
similarity index 90%
rename from httpd-client/tests/session.test.ts
rename to http-client/tests/session.test.ts
index 744cd1ee9..31183a704 100644
--- a/httpd-client/tests/session.test.ts
+++ b/http-client/tests/session.test.ts
@@ -2,8 +2,8 @@ import * as FsSync from "node:fs";
import * as Path from "node:path";
import { describe, test } from "vitest";
-import { HttpdClient } from "@httpd-client";
-import { authenticate } from "@httpd-client/tests/support/httpd.js";
+import { HttpdClient } from "@http-client";
+import { authenticate } from "@http-client/tests/support/httpd.js";
import { createPeerManager } from "@tests/support/peerManager.js";
import { gitOptions } from "@tests/support/fixtures.js";
import { tmpDir } from "@tests/support/support.js";
diff --git a/httpd-client/tests/support/fixtures.ts b/http-client/tests/support/fixtures.ts
similarity index 95%
rename from httpd-client/tests/support/fixtures.ts
rename to http-client/tests/support/fixtures.ts
index 6c4ed7b57..d6b86af74 100644
--- a/httpd-client/tests/support/fixtures.ts
+++ b/http-client/tests/support/fixtures.ts
@@ -2,7 +2,7 @@ import * as FsSync from "node:fs";
import * as Path from "node:path";
import { test } from "vitest";
-import { HttpdClient } from "@httpd-client";
+import { HttpdClient } from "@http-client";
import { RadiclePeer, createPeerManager } from "@tests/support/peerManager.js";
import { gitOptions } from "@tests/support/fixtures.js";
import { tmpDir } from "@tests/support/support.js";
diff --git a/httpd-client/tests/support/httpd.ts b/http-client/tests/support/httpd.ts
similarity index 94%
rename from httpd-client/tests/support/httpd.ts
rename to http-client/tests/support/httpd.ts
index 98d43853c..77fd4b56d 100644
--- a/httpd-client/tests/support/httpd.ts
+++ b/http-client/tests/support/httpd.ts
@@ -1,4 +1,4 @@
-import type { HttpdClient } from "@httpd-client";
+import type { HttpdClient } from "@http-client";
import type { RadiclePeer } from "@tests/support/peerManager.js";
import assert from "node:assert";
diff --git a/httpd-client/tests/support/support.ts b/http-client/tests/support/support.ts
similarity index 96%
rename from httpd-client/tests/support/support.ts
rename to http-client/tests/support/support.ts
index 857d3b902..b7f80ac8f 100644
--- a/httpd-client/tests/support/support.ts
+++ b/http-client/tests/support/support.ts
@@ -1,4 +1,4 @@
-import type { HttpdClient } from "@httpd-client";
+import type { HttpdClient } from "@http-client";
import { expect } from "vitest";
import isMatch from "lodash/isMatch";
diff --git a/httpd-client/vite.config.ts b/http-client/vite.config.ts
similarity index 83%
rename from httpd-client/vite.config.ts
rename to http-client/vite.config.ts
index d6ce12fe2..aeca19da4 100644
--- a/httpd-client/vite.config.ts
+++ b/http-client/vite.config.ts
@@ -11,7 +11,7 @@ export default defineConfig({
],
test: {
environment: "node",
- include: ["httpd-client/tests/*.test.ts"],
+ include: ["http-client/tests/*.test.ts"],
reporters: "verbose",
globalSetup: "./tests/support/globalSetup",
},
@@ -19,7 +19,7 @@ export default defineConfig({
alias: {
"@tests": path.resolve("./tests"),
"@app": path.resolve("./src"),
- "@httpd-client": path.resolve("./httpd-client"),
+ "@http-client": path.resolve("./http-client"),
},
},
});
diff --git a/package.json b/package.json
index 679d47797..72ba964f2 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"format": "npx prettier '**/*.@(ts|js|svelte|json|css|html|yml)' --write",
"test:unit": "TZ='UTC' vitest run",
"test:e2e": "NODE_CONFIG_ENV='test' TZ='UTC' playwright test",
- "test:httpd-api:unit": "NODE_CONFIG_ENV='test' TZ='UTC' vitest run --config httpd-client/vite.config.ts --reporter verbose"
+ "test:http-client:unit": "NODE_CONFIG_ENV='test' TZ='UTC' vitest run --config http-client/vite.config.ts --reporter verbose"
},
"type": "module",
"engines": {
diff --git a/src/App/Header/Breadcrumbs/NodeSegment.svelte b/src/App/Header/Breadcrumbs/NodeSegment.svelte
index 624be7999..c3a095e36 100644
--- a/src/App/Header/Breadcrumbs/NodeSegment.svelte
+++ b/src/App/Header/Breadcrumbs/NodeSegment.svelte
@@ -1,5 +1,5 @@