Change folder aliases

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-22 21:14:37 +04:00
parent 4d80dccbbf
commit 3b4f77c5e8
274 changed files with 991 additions and 1017 deletions

View File

@@ -18,8 +18,8 @@ import { useFragment, useMutation } from "react-relay";
import { useLocation } from "react-router";
import { graphql } from "relay-runtime";
import { useMutationWithToasts } from "/hooks/useMutationWithToast";
import { Viewer } from "/providers/Viewer";
import { useMutationWithToasts } from "#/hooks/useMutationWithToast";
import { Viewer } from "#/providers/Viewer";
import type { AuditRow_requestAccessMutation } from "./__generated__/AuditRow_requestAccessMutation.graphql";
import type { AuditRowDownloadMutation } from "./__generated__/AuditRowDownloadMutation.graphql";

View File

@@ -12,8 +12,8 @@ import { use, useState } from "react";
import { useFragment, useMutation } from "react-relay";
import { graphql } from "relay-runtime";
import { useMutationWithToasts } from "/hooks/useMutationWithToast";
import { Viewer } from "/providers/Viewer";
import { useMutationWithToasts } from "#/hooks/useMutationWithToast";
import { Viewer } from "#/providers/Viewer";
import type { DocumentRow_requestAccessMutation } from "./__generated__/DocumentRow_requestAccessMutation.graphql";
import type { DocumentRowDownloadMutation } from "./__generated__/DocumentRowDownloadMutation.graphql";

View File

@@ -7,9 +7,9 @@ import { graphql } from "relay-runtime";
import { useWindowSize } from "usehooks-ts";
import { z } from "zod";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { useMutationWithToasts } from "/hooks/useMutationWithToast";
import { Viewer } from "/providers/Viewer";
import { useFormWithSchema } from "#/hooks/useFormWithSchema";
import { useMutationWithToasts } from "#/hooks/useMutationWithToast";
import { Viewer } from "#/providers/Viewer";
import { PDFPreview } from "./PDFPreview";

View File

@@ -12,8 +12,8 @@ import { type PropsWithChildren, use } from "react";
import { useMutation } from "react-relay";
import { graphql } from "relay-runtime";
import { Viewer } from "/providers/Viewer";
import type { TrustGraphCurrentQuery$data } from "/queries/__generated__/TrustGraphCurrentQuery.graphql";
import { Viewer } from "#/providers/Viewer";
import type { TrustGraphCurrentQuery$data } from "#/queries/__generated__/TrustGraphCurrentQuery.graphql";
import type { OrganizationSidebar_requestAllAccessesMutation } from "./__generated__/OrganizationSidebar_requestAllAccessesMutation.graphql";
import { AuditRowAvatar } from "./AuditRow";

View File

@@ -12,8 +12,8 @@ import { use, useState } from "react";
import { useFragment, useMutation } from "react-relay";
import { graphql } from "relay-runtime";
import { useMutationWithToasts } from "/hooks/useMutationWithToast";
import { Viewer } from "/providers/Viewer";
import { useMutationWithToasts } from "#/hooks/useMutationWithToast";
import { Viewer } from "#/providers/Viewer";
import type { TrustCenterFileRow_requestAccessMutation } from "./__generated__/TrustCenterFileRow_requestAccessMutation.graphql";
import type { TrustCenterFileRowDownloadMutation } from "./__generated__/TrustCenterFileRowDownloadMutation.graphql";

View File

@@ -1,6 +1,6 @@
import { useContext } from "react";
import { TrustCenterContext } from "/providers/TrustCenterProvider";
import { TrustCenterContext } from "#/providers/TrustCenterProvider";
export function useTrustCenter(): {
id: string;

View File

@@ -3,12 +3,12 @@ import { Logo, TabLink, Tabs } from "@probo/ui";
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { Outlet } from "react-router";
import { NDADialog } from "/components/NDADialog";
import { OrganizationSidebar } from "/components/OrganizationSidebar";
import { TrustCenterProvider } from "/providers/TrustCenterProvider";
import { Viewer } from "/providers/Viewer";
import type { TrustGraphCurrentQuery } from "/queries/__generated__/TrustGraphCurrentQuery.graphql.ts";
import { currentTrustGraphQuery } from "/queries/TrustGraph.ts";
import { NDADialog } from "#/components/NDADialog";
import { OrganizationSidebar } from "#/components/OrganizationSidebar";
import { TrustCenterProvider } from "#/providers/TrustCenterProvider";
import { Viewer } from "#/providers/Viewer";
import type { TrustGraphCurrentQuery } from "#/queries/__generated__/TrustGraphCurrentQuery.graphql.ts";
import { currentTrustGraphQuery } from "#/queries/TrustGraph.ts";
type Props = {
queryRef: PreloadedQuery<TrustGraphCurrentQuery>;

View File

@@ -3,13 +3,13 @@ import { useTranslate } from "@probo/i18n";
import { Fragment } from "react";
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { DocumentRow } from "/components/DocumentRow";
import { RowHeader } from "/components/RowHeader.tsx";
import { Rows } from "/components/Rows.tsx";
import { TrustCenterFileRow } from "/components/TrustCenterFileRow";
import { documentTypeLabel } from "/helpers/documents";
import type { TrustGraphCurrentDocumentsQuery } from "/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts";
import { currentTrustDocumentsQuery } from "/queries/TrustGraph";
import { DocumentRow } from "#/components/DocumentRow";
import { RowHeader } from "#/components/RowHeader.tsx";
import { Rows } from "#/components/Rows.tsx";
import { TrustCenterFileRow } from "#/components/TrustCenterFileRow";
import { documentTypeLabel } from "#/helpers/documents";
import type { TrustGraphCurrentDocumentsQuery } from "#/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts";
import { currentTrustDocumentsQuery } from "#/queries/TrustGraph";
type Props = {
queryRef: PreloadedQuery<TrustGraphCurrentDocumentsQuery>;

View File

@@ -11,14 +11,14 @@ import { useFragment } from "react-relay";
import { Link, useOutletContext } from "react-router";
import { graphql } from "relay-runtime";
import { AuditRow } from "/components/AuditRow";
import { DocumentRow } from "/components/DocumentRow";
import { RowHeader } from "/components/RowHeader.tsx";
import { Rows } from "/components/Rows.tsx";
import { TrustCenterFileRow } from "/components/TrustCenterFileRow";
import { VendorRow } from "/components/VendorRow";
import { documentTypeLabel } from "/helpers/documents";
import type { TrustGraphCurrentQuery$data } from "/queries/__generated__/TrustGraphCurrentQuery.graphql";
import { AuditRow } from "#/components/AuditRow";
import { DocumentRow } from "#/components/DocumentRow";
import { RowHeader } from "#/components/RowHeader.tsx";
import { Rows } from "#/components/Rows.tsx";
import { TrustCenterFileRow } from "#/components/TrustCenterFileRow";
import { VendorRow } from "#/components/VendorRow";
import { documentTypeLabel } from "#/helpers/documents";
import type { TrustGraphCurrentQuery$data } from "#/queries/__generated__/TrustGraphCurrentQuery.graphql";
import type {
OverviewPageFragment$data,

View File

@@ -2,10 +2,10 @@ import { sprintf } from "@probo/helpers";
import { useTranslate } from "@probo/i18n";
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { Rows } from "/components/Rows.tsx";
import { VendorRow } from "/components/VendorRow";
import type { TrustGraphCurrentVendorsQuery } from "/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql";
import { currentTrustVendorsQuery } from "/queries/TrustGraph";
import { Rows } from "#/components/Rows.tsx";
import { VendorRow } from "#/components/VendorRow";
import type { TrustGraphCurrentVendorsQuery } from "#/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql";
import { currentTrustVendorsQuery } from "#/queries/TrustGraph";
type Props = {
queryRef: PreloadedQuery<TrustGraphCurrentVendorsQuery>;

View File

@@ -10,7 +10,7 @@ import {
import { graphql } from "relay-runtime";
import { z } from "zod";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { useFormWithSchema } from "#/hooks/useFormWithSchema";
import type { ConnectPageMutation } from "./__generated__/ConnectPageMutation.graphql";
import type { ConnectPageQuery } from "./__generated__/ConnectPageQuery.graphql";

View File

@@ -1,7 +1,7 @@
import { Suspense, useEffect } from "react";
import { useQueryLoader } from "react-relay";
import { RelayProvider } from "/providers/RelayProviders";
import { RelayProvider } from "#/providers/RelayProviders";
import type { ConnectPageQuery } from "./__generated__/ConnectPageQuery.graphql";
import { ConnectPage, connectPageQuery } from "./ConnectPage";

View File

@@ -8,8 +8,8 @@ import { useSearchParams } from "react-router";
import { graphql } from "relay-runtime";
import { z } from "zod";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { getPathPrefix } from "/utils/pathPrefix";
import { useFormWithSchema } from "#/hooks/useFormWithSchema";
import { getPathPrefix } from "#/utils/pathPrefix";
import type { VerifyMagicLinkPageMutation } from "./__generated__/VerifyMagicLinkPageMutation.graphql";
import { AuthLayout } from "./AuthLayout";

View File

@@ -8,7 +8,7 @@ import {
Store,
} from "relay-runtime";
import { getPathPrefix } from "/utils/pathPrefix";
import { getPathPrefix } from "#/utils/pathPrefix";
export class UnAuthenticatedError extends Error {
constructor() {

View File

@@ -1,6 +1,6 @@
import { createContext, type ReactNode } from "react";
import type { TrustGraphCurrentQuery$data } from "/queries/__generated__/TrustGraphCurrentQuery.graphql";
import type { TrustGraphCurrentQuery$data } from "#/queries/__generated__/TrustGraphCurrentQuery.graphql";
export const TrustCenterContext = createContext<
TrustGraphCurrentQuery$data["currentTrustCenter"] | null

View File

@@ -8,15 +8,15 @@ import { Fragment, lazy } from "react";
import { loadQuery } from "react-relay";
import { createBrowserRouter, redirect, useRouteError } from "react-router";
import { MainLayout } from "/layouts/MainLayout";
import { DocumentsPage } from "/pages/DocumentsPage";
import { OverviewPage } from "/pages/OverviewPage";
import { SubprocessorsPage } from "/pages/SubprocessorsPage";
import { MainLayout } from "#/layouts/MainLayout";
import { DocumentsPage } from "#/pages/DocumentsPage";
import { OverviewPage } from "#/pages/OverviewPage";
import { SubprocessorsPage } from "#/pages/SubprocessorsPage";
import {
currentTrustDocumentsQuery,
currentTrustGraphQuery,
currentTrustVendorsQuery,
} from "/queries/TrustGraph";
} from "#/queries/TrustGraph";
import { PageError } from "./components/PageError.tsx";
import { MainSkeleton } from "./components/Skeletons/MainSkeleton.tsx";