refactor: move integration pages to main directory for main layout

This commit is contained in:
Meier Lukas
2024-01-03 06:04:42 +01:00
parent 367beb6759
commit 81d35656ba
18 changed files with 22 additions and 25 deletions

View File

@@ -21,9 +21,6 @@
"@homarr/form": "workspace:^0.1.0",
"@homarr/notifications": "workspace:^0.1.0",
"@homarr/spotlight": "workspace:^0.1.0",
"@homarr/form": "workspace:^0.1.0",
"@homarr/notifications": "workspace:^0.1.0",
"@homarr/spotlight": "workspace:^0.1.0",
"@homarr/translation": "workspace:^0.1.0",
"@homarr/ui": "workspace:^0.1.0",
"@homarr/validation": "workspace:^0.1.0",

View File

@@ -10,8 +10,8 @@ import { useScopedI18n } from "@homarr/translation/client";
import { ActionIcon, IconTrash } from "@homarr/ui";
import { api } from "~/trpc/react";
import { revalidatePathAction } from "../../revalidatePathAction";
import { modalEvents } from "../modals";
import { revalidatePathAction } from "../../../revalidatePathAction";
import { modalEvents } from "../../modals";
interface DeleteIntegrationActionButtonProps {
count: number;

View File

@@ -23,7 +23,7 @@ import {
Text,
} from "@homarr/ui";
import { integrationSecretIcons } from "./_secret-icons";
import { integrationSecretIcons } from "./_integration-secret-icons";
dayjs.extend(relativeTime);

View File

@@ -7,7 +7,7 @@ import type { IntegrationSecretKind } from "@homarr/definitions";
import { useI18n } from "@homarr/translation/client";
import { PasswordInput, TextInput } from "@homarr/ui";
import { integrationSecretIcons } from "./_secret-icons";
import { integrationSecretIcons } from "./_integration-secret-icons";
interface IntegrationSecretInputProps {
label?: string;

View File

@@ -17,14 +17,14 @@ import { validation } from "@homarr/validation";
import { modalEvents } from "~/app/[locale]/modals";
import { api } from "~/trpc/react";
import { SecretCard } from "../../_secret-card";
import { IntegrationSecretInput } from "../../_secret-inputs";
import { SecretCard } from "../../_integration-secret-card";
import { IntegrationSecretInput } from "../../_integration-secret-inputs";
import {
TestConnection,
TestConnectionNoticeAlert,
useTestConnectionDirty,
} from "../../_test-connection";
import { revalidatePathAction } from "../../../../revalidatePathAction";
} from "../../_integration-test-connection";
import { revalidatePathAction } from "../../../../../revalidatePathAction";
interface EditIntegrationForm {
integration: RouterOutputs["integration"]["byId"];

View File

@@ -3,8 +3,8 @@ import { getScopedI18n } from "@homarr/translation/server";
import { Container, Group, Stack, Title } from "@homarr/ui";
import { api } from "~/trpc/server";
import { IntegrationAvatar } from "../../_avatar";
import { EditIntegrationForm } from "./_form";
import { IntegrationAvatar } from "../../_integration-avatar";
import { EditIntegrationForm } from "./_integration-edit-form";
interface EditIntegrationPageProps {
params: { id: string };

View File

@@ -15,7 +15,7 @@ import {
TextInput,
} from "@homarr/ui";
import { IntegrationAvatar } from "../_avatar";
import { IntegrationAvatar } from "../_integration-avatar";
export const IntegrationCreateDropdownContent = () => {
const t = useI18n();

View File

@@ -16,13 +16,13 @@ import type { z } from "@homarr/validation";
import { validation } from "@homarr/validation";
import { api } from "~/trpc/react";
import { IntegrationSecretInput } from "../_secret-inputs";
import { IntegrationSecretInput } from "../_integration-secret-inputs";
import {
TestConnection,
TestConnectionNoticeAlert,
useTestConnectionDirty,
} from "../_test-connection";
import { revalidatePathAction } from "../../../revalidatePathAction";
} from "../_integration-test-connection";
import { revalidatePathAction } from "../../../../revalidatePathAction";
interface NewIntegrationFormProps {
searchParams: Partial<z.infer<typeof validation.integration.create>> & {

View File

@@ -7,8 +7,8 @@ import { Container, Group, Stack, Title } from "@homarr/ui";
import type { validation } from "@homarr/validation";
import { z } from "@homarr/validation";
import { IntegrationAvatar } from "../_avatar";
import { NewIntegrationForm } from "./_form";
import { IntegrationAvatar } from "../_integration-avatar";
import { NewIntegrationForm } from "./_integration-new-form";
interface NewIntegrationPageProps {
searchParams: Partial<z.infer<typeof validation.integration.create>> & {

View File

@@ -33,10 +33,10 @@ import {
} from "@homarr/ui";
import { api } from "~/trpc/server";
import { IntegrationGroupAccordion } from "./_accordion";
import { IntegrationAvatar } from "./_avatar";
import { DeleteIntegrationActionButton } from "./_buttons";
import { IntegrationCreateDropdownContent } from "./new/_dropdown";
import { IntegrationGroupAccordion } from "./_integration-accordion";
import { IntegrationAvatar } from "./_integration-avatar";
import { DeleteIntegrationActionButton } from "./_integration-buttons";
import { IntegrationCreateDropdownContent } from "./new/_integration-new-dropdown";
interface IntegrationsPageProps {
searchParams: {

View File

@@ -2,7 +2,7 @@ import { getScopedI18n } from "@homarr/translation/server";
import { Card, Center, Stack, Text, Title } from "@homarr/ui";
import { LogoWithTitle } from "~/components/layout/logo";
import { LoginForm } from "./_components/login-form";
import { LoginForm } from "./_login-form";
export default async function Login() {
const t = await getScopedI18n("user.page.login");

View File

@@ -5,7 +5,7 @@ import { getScopedI18n } from "@homarr/translation/server";
import { Card, Center, Stack, Text, Title } from "@homarr/ui";
import { LogoWithTitle } from "~/components/layout/logo";
import { InitUserForm } from "./_components/init-user-form";
import { InitUserForm } from "./_init-user-form";
export default async function InitUser() {
const firstUser = await db.query.users.findFirst({