Remove clutter
This commit is contained in:
parent
81c7e0c984
commit
439de6a264
9 changed files with 12 additions and 16 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
* constructor using Object.defineProperty so we don't need conflicting
|
* constructor using Object.defineProperty so we don't need conflicting
|
||||||
* get/set accessor pairs.
|
* get/set accessor pairs.
|
||||||
*/
|
*/
|
||||||
export class ManagedWebSocket implements WebSocket {
|
class ManagedWebSocket implements WebSocket {
|
||||||
public static readonly CONNECTING = WebSocket.CONNECTING;
|
public static readonly CONNECTING = WebSocket.CONNECTING;
|
||||||
public static readonly OPEN = WebSocket.OPEN;
|
public static readonly OPEN = WebSocket.OPEN;
|
||||||
public static readonly CLOSING = WebSocket.CLOSING;
|
public static readonly CLOSING = WebSocket.CLOSING;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import * as net from "node:net";
|
import * as net from "node:net";
|
||||||
|
|
||||||
export interface PortReservation {
|
interface PortReservation {
|
||||||
port: number;
|
port: number;
|
||||||
release: () => void;
|
release: () => void;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ class NavStore {
|
||||||
export const nav = new NavStore();
|
export const nav = new NavStore();
|
||||||
|
|
||||||
// Toasts
|
// Toasts
|
||||||
export interface Toast {
|
interface Toast {
|
||||||
id: number;
|
id: number;
|
||||||
message: string;
|
message: string;
|
||||||
type: "success" | "error" | "info";
|
type: "success" | "error" | "info";
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ import { Command, Option } from "commander";
|
||||||
import packageJson from "../package.json";
|
import packageJson from "../package.json";
|
||||||
import { LogLevel } from "sync-client";
|
import { LogLevel } from "sync-client";
|
||||||
|
|
||||||
export type LineEndingMode = "auto" | "lf" | "crlf";
|
type LineEndingMode = "auto" | "lf" | "crlf";
|
||||||
|
|
||||||
export interface CliArgs {
|
interface CliArgs {
|
||||||
remoteUri: string;
|
remoteUri: string;
|
||||||
token: string;
|
token: string;
|
||||||
vaultName: string;
|
vaultName: string;
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
// This file is intentionally empty
|
|
||||||
// All document tracking has been moved to sync-event-queue.ts
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
||||||
|
|
||||||
export interface UpdateDocumentVersion {
|
|
||||||
parent_version_id: bigint;
|
|
||||||
relative_path: string;
|
|
||||||
content: number[];
|
|
||||||
}
|
|
||||||
|
|
@ -16,7 +16,7 @@ export interface DocumentWithPath {
|
||||||
record: DocumentRecord;
|
record: DocumentRecord;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StoredDocument extends DocumentRecord {
|
interface StoredDocument extends DocumentRecord {
|
||||||
relativePath: RelativePath;
|
relativePath: RelativePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ export interface SyncDeleteDetails {
|
||||||
relativePath: RelativePath;
|
relativePath: RelativePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SyncSkippedDetails {
|
interface SyncSkippedDetails {
|
||||||
type: SyncType.SKIPPED;
|
type: SyncType.SKIPPED;
|
||||||
relativePath: RelativePath;
|
relativePath: RelativePath;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,12 @@ cd sync-server
|
||||||
cargo test export_bindings
|
cargo test export_bindings
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
# sync-client/src/services/types contains only generated bindings — wipe and copy
|
||||||
|
rm -f frontend/sync-client/src/services/types/*.ts
|
||||||
cp -r sync-server/bindings/* frontend/sync-client/src/services/types/
|
cp -r sync-server/bindings/* frontend/sync-client/src/services/types/
|
||||||
|
|
||||||
|
# history-ui/src/lib/types contains generated bindings plus a hand-written index.ts
|
||||||
|
find frontend/history-ui/src/lib/types -maxdepth 1 -name "*.ts" ! -name "index.ts" -delete
|
||||||
cp -r sync-server/bindings/* frontend/history-ui/src/lib/types/
|
cp -r sync-server/bindings/* frontend/history-ui/src/lib/types/
|
||||||
|
|
||||||
cd frontend
|
cd frontend
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue