Skip to content

Commit

Permalink
Appease the linter gods
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruptein committed Dec 29, 2024
1 parent ac34c8f commit 8d01c3f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 71 deletions.
2 changes: 1 addition & 1 deletion client/src/assets/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { ApiAsset } from "../apiTypes";
import { socket } from "./socket";
import { assetState } from "./state";

export interface AssetSearch {
interface AssetSearch {
clear: () => void;
filter: Ref<string>;
results: Ref<ApiAsset[]>;
Expand Down
2 changes: 1 addition & 1 deletion client/src/assets/ui/drag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async function stopDrag(event: DragEvent, target: AssetId): Promise<void> {
dragState.value = 0;
}

export interface DragComposable {
interface DragComposable {
dragState: Ref<number>;
startDrag: (event: DragEvent, file: AssetId, fileHash: string | null) => void;
moveDrag: (event: DragEvent) => void;
Expand Down
15 changes: 0 additions & 15 deletions client/src/core/models/types.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
import type { AssetId } from "../../assets/models";

export type AssetListMap = Map<string, AssetListMap | AssetFile[]>;
export type ReadonlyAssetListMap = ReadonlyMap<string, ReadonlyAssetListMap | AssetFile[]>;

export interface AssetList {
[inode: string]: AssetList | AssetFile[];
}

export interface AssetFile {
id: AssetId;
name: string;
hash: string;
}

export enum SyncMode {
NO_SYNC,
TEMP_SYNC,
Expand Down
13 changes: 0 additions & 13 deletions client/src/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,6 @@ export function uuidv4(): GlobalId {
}) as GlobalId;
}

export function alphSort(a: string, b: string): number {
if (a.toLowerCase() < b.toLowerCase()) return -1;
else return 1;
}

// export function toSnakeCase(s: string): string {
// return s
// .replace(/\.?([A-Z]+)/g, function (x, y) {
// return "_" + y.toLowerCase();
// })
// .replace(/^_/, "");
// }

export function randomInterval(min: number, max: number): number {
return Math.random() * (max - min) + min;
}
Expand Down
41 changes: 0 additions & 41 deletions client/src/game/assets/utils.ts

This file was deleted.

0 comments on commit 8d01c3f

Please sign in to comment.