mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
Rename httpd-client to http-client
This commit is contained in:
+3
-3
@@ -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
|
||||
@@ -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
|
||||
'';
|
||||
|
||||
@@ -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({
|
||||
@@ -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({
|
||||
@@ -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";
|
||||
@@ -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";
|
||||
@@ -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";
|
||||
@@ -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";
|
||||
@@ -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"),
|
||||
},
|
||||
},
|
||||
});
|
||||
+1
-1
@@ -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": {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import { isLocal } from "@app/lib/utils";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" strictEvents>
|
||||
import type { Comment, Embed } from "@httpd-client";
|
||||
import type { Comment, Embed } from "@http-client";
|
||||
|
||||
import { tick } from "svelte";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Embed } from "@httpd-client";
|
||||
import type { Embed } from "@http-client";
|
||||
|
||||
import ExtendedTextarea from "@app/components/ExtendedTextarea.svelte";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { CommitHeader } from "@httpd-client";
|
||||
import type { CommitHeader } from "@http-client";
|
||||
|
||||
import * as utils from "@app/lib/utils";
|
||||
import HoverPopover from "./HoverPopover.svelte";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" strictEvents>
|
||||
import type { Embed } from "@httpd-client";
|
||||
import type { Embed } from "@http-client";
|
||||
|
||||
import { createEventDispatcher } from "svelte";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Embed } from "@httpd-client";
|
||||
import type { Embed } from "@http-client";
|
||||
|
||||
import dompurify from "dompurify";
|
||||
import matter from "@radicle/gray-matter";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ProjectListQuery } from "@httpd-client";
|
||||
import type { ProjectListQuery } from "@http-client";
|
||||
|
||||
import { loadProjectActivity, type WeeklyActivity } from "@app/lib/commit";
|
||||
import {
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
type BaseUrl,
|
||||
type Commit,
|
||||
type Project,
|
||||
} from "@httpd-client";
|
||||
} from "@http-client";
|
||||
|
||||
export interface ProjectInfo {
|
||||
project: Project;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Comment } from "@httpd-client";
|
||||
import type { Comment } from "@http-client";
|
||||
|
||||
import { createEventDispatcher } from "svelte";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Comment } from "@httpd-client";
|
||||
import type { Comment } from "@http-client";
|
||||
|
||||
import IconButton from "./IconButton.svelte";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Scope, Policy } from "@httpd-client";
|
||||
import type { Scope, Policy } from "@http-client";
|
||||
|
||||
import { capitalize } from "lodash";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts" strictEvents>
|
||||
import type { Embed } from "@httpd-client";
|
||||
import type { Comment } from "@httpd-client";
|
||||
import type { Embed } from "@http-client";
|
||||
import type { Comment } from "@http-client";
|
||||
|
||||
import * as utils from "@app/lib/utils";
|
||||
import partial from "lodash/partial";
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import type { BaseUrl, CommitHeader } from "@httpd-client";
|
||||
import type { BaseUrl, CommitHeader } from "@http-client";
|
||||
|
||||
import { getDaysPassed } from "@app/lib/utils";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
|
||||
// A set of commits grouped by time.
|
||||
interface CommitGroup {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { Embed } from "@httpd-client";
|
||||
import type { Embed } from "@http-client";
|
||||
|
||||
async function parseGitOid(bytes: Uint8Array): Promise<string> {
|
||||
// Create the header
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
import type { Node, Policy, Scope } from "@httpd-client";
|
||||
import type { Node, Policy, Scope } from "@http-client";
|
||||
|
||||
import { get, writable } from "svelte/store";
|
||||
import { withTimeout, Mutex, E_CANCELED, E_TIMEOUT } from "async-mutex";
|
||||
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import config from "virtual:config";
|
||||
import { deduplicateStore } from "@app/lib/deduplicateStore";
|
||||
import { experimental } from "./appearance";
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import type { BaseUrl, Project } from "@httpd-client";
|
||||
import type { BaseUrl, Project } from "@http-client";
|
||||
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { isFulfilled } from "@app/lib/utils";
|
||||
|
||||
export interface ProjectBaseUrl {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
import type { LoadedRoute, Route } from "@app/lib/router/definitions";
|
||||
|
||||
import { get, writable } from "svelte/store";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
ResponseError,
|
||||
ResponseParseError,
|
||||
} from "@httpd-client/lib/fetcher";
|
||||
} from "@http-client/lib/fetcher";
|
||||
import type { HomeRoute, HomeLoadedRoute } from "@app/views/home/router";
|
||||
import type {
|
||||
ProjectLoadedRoute,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import storedWritable from "@efstajas/svelte-stored-writable";
|
||||
import unionBy from "lodash/unionBy";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import md5 from "md5";
|
||||
import bs58 from "bs58";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { ComponentProps } from "svelte";
|
||||
import type { ProjectInfo } from "@app/components/ProjectCard";
|
||||
import type { BaseUrl, ProjectListQuery } from "@httpd-client";
|
||||
import type { BaseUrl, ProjectListQuery } from "@http-client";
|
||||
|
||||
import storedWritable from "@efstajas/svelte-stored-writable";
|
||||
import { derived } from "svelte/store";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { HttpdClient, type BaseUrl } from "@httpd-client";
|
||||
import { HttpdClient, type BaseUrl } from "@http-client";
|
||||
|
||||
import config from "virtual:config";
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ResponseParseError, ResponseError } from "@httpd-client/lib/fetcher";
|
||||
import { ResponseParseError, ResponseError } from "@http-client/lib/fetcher";
|
||||
|
||||
export function handleError(
|
||||
error: Error | ResponseParseError | ResponseError,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
import type { ErrorRoute } from "@app/lib/router/definitions";
|
||||
|
||||
import * as seeds from "@app/lib/seeds";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Policy, Scope } from "@httpd-client";
|
||||
import type { Policy, Scope } from "@http-client";
|
||||
|
||||
import capitalize from "lodash/capitalize";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, NodeStats, Policy, Scope } from "@httpd-client";
|
||||
import type { BaseUrl, NodeStats, Policy, Scope } from "@http-client";
|
||||
|
||||
import { capitalize } from "lodash";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ErrorRoute, NotFoundRoute } from "@app/lib/router/definitions";
|
||||
import { ResponseParseError, ResponseError } from "@httpd-client/lib/fetcher";
|
||||
import { ResponseParseError, ResponseError } from "@http-client/lib/fetcher";
|
||||
|
||||
export function handleError(
|
||||
error: Error | ResponseParseError | ResponseError,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { BaseUrl, NodeStats, Policy, Scope } from "@httpd-client";
|
||||
import type { BaseUrl, NodeStats, Policy, Scope } from "@http-client";
|
||||
import type { ErrorRoute, NotFoundRoute } from "@app/lib/router/definitions";
|
||||
|
||||
import config from "virtual:config";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { ResponseError, ResponseParseError } from "@httpd-client/lib/fetcher";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { ResponseError, ResponseParseError } from "@http-client/lib/fetcher";
|
||||
import { baseUrlToString } from "@app/lib/utils";
|
||||
import { handleError } from "@app/views/nodes/error";
|
||||
import { unreachableError } from "@app/views/projects/error";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, CommitBlob, Diff } from "@httpd-client";
|
||||
import type { BaseUrl, CommitBlob, Diff } from "@http-client";
|
||||
|
||||
import FileDiff from "@app/views/projects/Changeset/FileDiff.svelte";
|
||||
import FileLocationChange from "@app/views/projects/Changeset/FileLocationChange.svelte";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
ChangesetWithDiff,
|
||||
DiffContent,
|
||||
HunkLine,
|
||||
} from "@httpd-client";
|
||||
} from "@http-client";
|
||||
|
||||
import { onDestroy, onMount } from "svelte";
|
||||
import { toHtml } from "hast-util-to-html";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, ChangesetWithoutDiff } from "@httpd-client";
|
||||
import type { BaseUrl, ChangesetWithoutDiff } from "@http-client";
|
||||
|
||||
import Badge from "@app/components/Badge.svelte";
|
||||
import IconButton from "@app/components/IconButton.svelte";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" strictEvents>
|
||||
import type { Reaction } from "@httpd-client";
|
||||
import type { Reaction } from "@http-client";
|
||||
|
||||
import { createEventDispatcher } from "svelte";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, CommitHeader } from "@httpd-client";
|
||||
import type { BaseUrl, CommitHeader } from "@http-client";
|
||||
|
||||
import { twemoji } from "@app/lib/utils";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" strictEvents>
|
||||
import type { Embed } from "@httpd-client";
|
||||
import type { Embed } from "@http-client";
|
||||
|
||||
import Badge from "@app/components/Badge.svelte";
|
||||
import Clipboard from "@app/components/Clipboard.svelte";
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
PatchState,
|
||||
Revision,
|
||||
Verdict,
|
||||
} from "@httpd-client";
|
||||
} from "@http-client";
|
||||
import type { Timeline } from "@app/views/projects/Patch.svelte";
|
||||
|
||||
import * as utils from "@app/lib/utils";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { closeFocused } from "@app/components/Popover.svelte";
|
||||
import { onMount } from "svelte";
|
||||
import { parseEmbedIntoMap } from "@app/lib/file";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Commit, Node, Project } from "@httpd-client";
|
||||
import type { BaseUrl, Commit, Node, Project } from "@http-client";
|
||||
|
||||
import { formatCommit } from "@app/lib/utils";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { CommitHeader } from "@httpd-client";
|
||||
import type { CommitHeader } from "@http-client";
|
||||
|
||||
import {
|
||||
absoluteTimestamp,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, CommitHeader } from "@httpd-client";
|
||||
import type { BaseUrl, CommitHeader } from "@http-client";
|
||||
|
||||
import { twemoji } from "@app/lib/utils";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Patch, Revision } from "@httpd-client";
|
||||
import type { BaseUrl, Patch, Revision } from "@http-client";
|
||||
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { formatCommit } from "@app/lib/utils";
|
||||
|
||||
import DiffStatBadge from "@app/components/DiffStatBadge.svelte";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Project } from "@httpd-client";
|
||||
import type { BaseUrl, Project } from "@http-client";
|
||||
|
||||
import Link from "@app/components/Link.svelte";
|
||||
import Button from "@app/components/Button.svelte";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import config from "virtual:config";
|
||||
import { parseRepositoryId } from "@app/lib/utils";
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
Remote,
|
||||
Node,
|
||||
Tree,
|
||||
} from "@httpd-client";
|
||||
} from "@http-client";
|
||||
import type { Route } from "@app/lib/router";
|
||||
|
||||
import { COMMITS_PER_PAGE } from "./router";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { baseUrlToString } from "@app/lib/utils";
|
||||
import { groupCommits } from "@app/lib/commit";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Reaction } from "@httpd-client/lib/project/comment";
|
||||
import type { Reaction } from "@http-client/lib/project/comment";
|
||||
import type {
|
||||
BaseUrl,
|
||||
Comment,
|
||||
@@ -8,7 +8,7 @@
|
||||
IssueState,
|
||||
Project,
|
||||
Node,
|
||||
} from "@httpd-client";
|
||||
} from "@http-client";
|
||||
import type { Session } from "@app/lib/httpd";
|
||||
|
||||
import capitalize from "lodash/capitalize";
|
||||
@@ -21,7 +21,7 @@
|
||||
import * as router from "@app/lib/router";
|
||||
import * as utils from "@app/lib/utils";
|
||||
import { experimental } from "@app/lib/appearance";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { closeFocused } from "@app/components/Popover.svelte";
|
||||
import { httpdStore } from "@app/lib/httpd";
|
||||
import { parseEmbedIntoMap } from "@app/lib/file";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Issue } from "@httpd-client";
|
||||
import type { BaseUrl, Issue } from "@http-client";
|
||||
|
||||
import {
|
||||
absoluteTimestamp,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Embed, Node, Project, Reaction } from "@httpd-client";
|
||||
import type { BaseUrl, Embed, Node, Project, Reaction } from "@http-client";
|
||||
|
||||
import * as modal from "@app/lib/modal";
|
||||
import * as router from "@app/lib/router";
|
||||
import * as utils from "@app/lib/utils";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { httpdStore } from "@app/lib/httpd";
|
||||
|
||||
import AssigneeInput from "@app/views/projects/Cob/AssigneeInput.svelte";
|
||||
|
||||
@@ -1,14 +1,8 @@
|
||||
<script lang="ts">
|
||||
import type {
|
||||
BaseUrl,
|
||||
Issue,
|
||||
IssueState,
|
||||
Node,
|
||||
Project,
|
||||
} from "@httpd-client";
|
||||
import type { BaseUrl, Issue, IssueState, Node, Project } from "@http-client";
|
||||
|
||||
import capitalize from "lodash/capitalize";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { ISSUES_PER_PAGE } from "./router";
|
||||
import { baseUrlToString, isLocal } from "@app/lib/utils";
|
||||
import { closeFocused } from "@app/components/Popover.svelte";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { ActiveTab } from "./Header.svelte";
|
||||
import type { BaseUrl, Node, Project } from "@httpd-client";
|
||||
import type { BaseUrl, Node, Project } from "@http-client";
|
||||
|
||||
import AppHeader from "@app/App/Header.svelte";
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
Revision,
|
||||
Diff,
|
||||
Node,
|
||||
} from "@httpd-client";
|
||||
} from "@http-client";
|
||||
|
||||
interface Thread {
|
||||
root: Comment;
|
||||
@@ -42,7 +42,7 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Embed, Patch } from "@httpd-client";
|
||||
import type { BaseUrl, Embed, Patch } from "@http-client";
|
||||
import type { PatchView } from "./router";
|
||||
import type { Route } from "@app/lib/router";
|
||||
import type { ComponentProps } from "svelte";
|
||||
@@ -57,7 +57,7 @@
|
||||
import isEqual from "lodash/isEqual";
|
||||
import partial from "lodash/partial";
|
||||
import uniqBy from "lodash/uniqBy";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { httpdStore } from "@app/lib/httpd";
|
||||
import { parseEmbedIntoMap } from "@app/lib/file";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { Patch } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
import type { Patch } from "@http-client";
|
||||
|
||||
import {
|
||||
absoluteTimestamp,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { PatchView } from "../router";
|
||||
import type { BaseUrl, Patch, Project } from "@httpd-client";
|
||||
import type { BaseUrl, Patch, Project } from "@http-client";
|
||||
import * as utils from "@app/lib/utils";
|
||||
|
||||
import Button from "@app/components/Button.svelte";
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type {
|
||||
BaseUrl,
|
||||
Node,
|
||||
Patch,
|
||||
PatchState,
|
||||
Project,
|
||||
} from "@httpd-client";
|
||||
import type { BaseUrl, Node, Patch, PatchState, Project } from "@http-client";
|
||||
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import capitalize from "lodash/capitalize";
|
||||
|
||||
import { PATCHES_PER_PAGE } from "./router";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import debounce from "lodash/debounce";
|
||||
import { api, httpdStore } from "@app/lib/httpd";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { ActiveTab } from "./Header.svelte";
|
||||
import type { BaseUrl, Node, Project } from "@httpd-client";
|
||||
import type { BaseUrl, Node, Project } from "@http-client";
|
||||
|
||||
import { onMount } from "svelte";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
import type { Route } from "@app/lib/router/definitions";
|
||||
|
||||
import { activeUnloadedRouteStore } from "@app/lib/router";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Node, Project } from "@httpd-client";
|
||||
import type { BaseUrl, Node, Project } from "@http-client";
|
||||
|
||||
import IconButton from "@app/components/IconButton.svelte";
|
||||
import IconSmall from "@app/components/IconSmall.svelte";
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Node, Project, Remote, Tree } from "@httpd-client";
|
||||
import type { BaseUrl, Node, Project, Remote, Tree } from "@http-client";
|
||||
import type { BlobResult } from "./router";
|
||||
import type { Route } from "@app/lib/router";
|
||||
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
|
||||
import Button from "@app/components/Button.svelte";
|
||||
import Header from "./Source/Header.svelte";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Blob } from "@httpd-client";
|
||||
import type { BaseUrl, Blob } from "@http-client";
|
||||
|
||||
import { afterUpdate, onDestroy, onMount } from "svelte";
|
||||
import { toHtml } from "hast-util-to-html";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Commit, Project } from "@httpd-client";
|
||||
import type { BaseUrl, Commit, Project } from "@http-client";
|
||||
import type { Route } from "@app/lib/router";
|
||||
|
||||
import { activeUnloadedRouteStore } from "@app/lib/router";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Project, Remote, Tree } from "@httpd-client";
|
||||
import type { BaseUrl, Project, Remote, Tree } from "@http-client";
|
||||
import type { Route } from "@app/lib/router";
|
||||
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { HttpdClient } from "@http-client";
|
||||
|
||||
import BranchSelector from "./BranchSelector.svelte";
|
||||
import PeerSelector from "./PeerSelector.svelte";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Project, Remote } from "@httpd-client";
|
||||
import type { BaseUrl, Project, Remote } from "@http-client";
|
||||
import type { Route } from "@app/lib/router";
|
||||
|
||||
import { closeFocused } from "@app/components/Popover.svelte";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Project } from "@httpd-client";
|
||||
import type { BaseUrl, Project } from "@http-client";
|
||||
|
||||
import { twemoji } from "@app/lib/utils";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" strictEvents>
|
||||
import type { BaseUrl, Tree } from "@httpd-client";
|
||||
import type { BaseUrl, Tree } from "@http-client";
|
||||
|
||||
import { createEventDispatcher } from "svelte";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts" strictEvents>
|
||||
import type { BaseUrl, Tree } from "@httpd-client";
|
||||
import type { BaseUrl, Tree } from "@http-client";
|
||||
|
||||
import { createEventDispatcher } from "svelte";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Commit } from "@httpd-client";
|
||||
import type { BaseUrl, Commit } from "@http-client";
|
||||
|
||||
import Button from "@app/components/Button.svelte";
|
||||
import Link from "@app/components/Link.svelte";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
|
||||
import { formatCommit } from "@app/lib/utils";
|
||||
import Link from "@app/components/Link.svelte";
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { ErrorRoute, NotFoundRoute } from "@app/lib/router/definitions";
|
||||
import type { ProjectRoute } from "@app/views/projects/router";
|
||||
|
||||
import { baseUrlToString, isLocal } from "@app/lib/utils";
|
||||
import { ResponseParseError, ResponseError } from "@httpd-client/lib/fetcher";
|
||||
import { ResponseParseError, ResponseError } from "@http-client/lib/fetcher";
|
||||
import { httpdStore } from "@app/lib/httpd";
|
||||
import { get } from "svelte/store";
|
||||
|
||||
|
||||
@@ -19,12 +19,12 @@ import type {
|
||||
Project,
|
||||
Remote,
|
||||
Tree,
|
||||
} from "@httpd-client";
|
||||
} from "@http-client";
|
||||
|
||||
import * as Syntax from "@app/lib/syntax";
|
||||
import * as httpd from "@app/lib/httpd";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { ResponseError, ResponseParseError } from "@httpd-client/lib/fetcher";
|
||||
import { HttpdClient } from "@http-client";
|
||||
import { ResponseError, ResponseParseError } from "@http-client/lib/fetcher";
|
||||
import { experimental } from "@app/lib/appearance";
|
||||
import { get } from "svelte/store";
|
||||
import { handleError, unreachableError } from "@app/views/projects/error";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import type { BaseUrl } from "@httpd-client";
|
||||
import type { BaseUrl } from "@http-client";
|
||||
import type * as Execa from "execa";
|
||||
import { execa } from "execa";
|
||||
import * as Fs from "node:fs/promises";
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "@tsconfig/svelte/tsconfig.json",
|
||||
"include": ["src", "tests", "httpd-client", "./*.js", "./*.ts"],
|
||||
"include": ["src", "tests", "http-client", "./*.js", "./*.ts"],
|
||||
"exclude": ["node_modules/*"],
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
@@ -20,8 +20,8 @@
|
||||
"skipLibCheck": true,
|
||||
"paths": {
|
||||
"@app/*": ["./src/*"],
|
||||
"@httpd-client": ["./httpd-client/index.ts"],
|
||||
"@httpd-client/*": ["./httpd-client/*"],
|
||||
"@http-client": ["./http-client/index.ts"],
|
||||
"@http-client/*": ["./http-client/*"],
|
||||
"@public/*": ["./public/*"],
|
||||
"@tests/*": ["./tests/*"]
|
||||
}
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ export default defineConfig({
|
||||
alias: {
|
||||
"@app": path.resolve("./src"),
|
||||
"@public": path.resolve("./public"),
|
||||
"@httpd-client": path.resolve("./httpd-client"),
|
||||
"@http-client": path.resolve("./http-client"),
|
||||
"@tests": path.resolve("./tests"),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user