refactor: move usages of create-id to common package (#3606)

This commit is contained in:
Meier Lukas
2025-07-17 10:42:11 +02:00
committed by GitHub
parent d4acb01efd
commit c00110e426
56 changed files with 69 additions and 64 deletions

View File

@@ -1,4 +1,4 @@
import { createId } from "@homarr/db";
import { createId } from "@homarr/common";
import { logger } from "@homarr/log";
import type { OldmarrConfig } from "@homarr/old-schema";

View File

@@ -1,4 +1,4 @@
import { createId } from "@homarr/db";
import { createId } from "@homarr/common";
import type { Database } from "@homarr/db";
import { sections } from "@homarr/db/schema";
import { logger } from "@homarr/log";

View File

@@ -1,4 +1,4 @@
import { createId } from "@homarr/db";
import { createId } from "@homarr/common";
import { createDbInsertCollectionForTransaction } from "@homarr/db/collection";
import { logger } from "@homarr/log";
import type { BoardSize, OldmarrConfig } from "@homarr/old-schema";

View File

@@ -1,4 +1,4 @@
import { createId } from "@homarr/db";
import { createId } from "@homarr/common";
import { createDbInsertCollectionForTransaction } from "@homarr/db/collection";
import { credentialsAdminGroup } from "@homarr/definitions";
import { logger } from "@homarr/log";

View File

@@ -1,5 +1,5 @@
import { createId } from "@homarr/common";
import type { InferInsertModel } from "@homarr/db";
import { createId } from "@homarr/db";
import type { boards } from "@homarr/db/schema";
import type { prepareMultipleImports } from "../prepare/prepare-multiple";

View File

@@ -1,5 +1,5 @@
import { createId } from "@homarr/common";
import { decryptSecretWithKey } from "@homarr/common/server";
import { createId } from "@homarr/db";
import type { IntegrationKind } from "@homarr/definitions";
import type { OldmarrIntegrationType } from "@homarr/old-schema";

View File

@@ -1,7 +1,7 @@
import SuperJSON from "superjson";
import { createId } from "@homarr/common";
import type { InferInsertModel } from "@homarr/db";
import { createId } from "@homarr/db";
import type { itemLayouts, items } from "@homarr/db/schema";
import { logger } from "@homarr/log";
import type { BoardSize, OldmarrApp, OldmarrWidget } from "@homarr/old-schema";

View File

@@ -1,5 +1,5 @@
import { createId } from "@homarr/common";
import type { InferInsertModel } from "@homarr/db";
import { createId } from "@homarr/db";
import type { sections } from "@homarr/db/schema";
import type { OldmarrCategorySection, OldmarrEmptySection } from "@homarr/old-schema";

View File

@@ -1,6 +1,6 @@
import { createId } from "@homarr/common";
import { decryptSecretWithKey } from "@homarr/common/server";
import type { InferInsertModel } from "@homarr/db";
import { createId } from "@homarr/db";
import type { users } from "@homarr/db/schema";
import type { OldmarrImportUser } from "../user-schema";