Remove all unessesary relative import
This commit is contained in:
@ -20,7 +20,7 @@ import { kebabCaseToCamelCase } from "./tools/kebabCaseToSnakeCase";
|
||||
process.exit(-1);
|
||||
});
|
||||
|
||||
const pageBasename = `${capitalize(kebabCaseToCamelCase(pageId))}.tsx`;
|
||||
const pageBasename = capitalize(kebabCaseToCamelCase(pageId)).replace(/ftl$/, "tsx");
|
||||
|
||||
console.log(pageId);
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { useState } from "react";
|
||||
import { clsx } from "keycloakify/tools/clsx";
|
||||
import { UserProfileFormFields } from "./shared/UserProfileCommons";
|
||||
import { UserProfileFormFields } from "keycloakify/pages/shared/UserProfileCommons";
|
||||
import { type PageProps, defaultClasses } from "keycloakify/pages/PageProps";
|
||||
import { useGetClassName } from "keycloakify/lib/useGetClassName";
|
||||
import type { KcContext } from "../kcContext";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { assert } from "../tools/assert";
|
||||
import { assert } from "keycloakify/tools/assert";
|
||||
import { type PageProps } from "keycloakify/pages/PageProps";
|
||||
import type { KcContext } from "../kcContext";
|
||||
import type { I18n } from "../i18n";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { useEffect } from "react";
|
||||
import { headInsert } from "../tools/headInsert";
|
||||
import { pathJoin } from "../bin/tools/pathJoin";
|
||||
import { headInsert } from "keycloakify/tools/headInsert";
|
||||
import { pathJoin } from "keycloakify/bin/tools/pathJoin";
|
||||
import { clsx } from "keycloakify/tools/clsx";
|
||||
import { type PageProps, defaultClasses } from "keycloakify/pages/PageProps";
|
||||
import { useGetClassName } from "keycloakify/lib/useGetClassName";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { useState } from "react";
|
||||
import { clsx } from "keycloakify/tools/clsx";
|
||||
import { useConstCallback } from "../tools/useConstCallback";
|
||||
import { useConstCallback } from "keycloakify/tools/useConstCallback";
|
||||
import type { FormEventHandler } from "react";
|
||||
import { type PageProps, defaultClasses } from "keycloakify/pages/PageProps";
|
||||
import { useGetClassName } from "keycloakify/lib/useGetClassName";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { FormEventHandler } from "react";
|
||||
import { useState } from "react";
|
||||
import { clsx } from "keycloakify/tools/clsx";
|
||||
import { useConstCallback } from "../tools/useConstCallback";
|
||||
import type { FormEventHandler } from "react";
|
||||
import { useConstCallback } from "keycloakify/tools/useConstCallback";
|
||||
import { type PageProps, defaultClasses } from "keycloakify/pages/PageProps";
|
||||
import { useGetClassName } from "keycloakify/lib/useGetClassName";
|
||||
import type { KcContext } from "../kcContext";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { useState } from "react";
|
||||
import { clsx } from "keycloakify/tools/clsx";
|
||||
import { UserProfileFormFields } from "./shared/UserProfileCommons";
|
||||
import { UserProfileFormFields } from "keycloakify/pages/shared/UserProfileCommons";
|
||||
import { type PageProps, defaultClasses } from "keycloakify/pages/PageProps";
|
||||
import { useGetClassName } from "keycloakify/lib/useGetClassName";
|
||||
import type { KcContext } from "../kcContext";
|
||||
|
@ -2,7 +2,7 @@ import { useRef, useState } from "react";
|
||||
import { clsx } from "keycloakify/tools/clsx";
|
||||
import type { MessageKey } from "../i18n/i18n";
|
||||
import { base64url } from "rfc4648";
|
||||
import { useConstCallback } from "../tools/useConstCallback";
|
||||
import { useConstCallback } from "keycloakify/tools/useConstCallback";
|
||||
import { type PageProps, defaultClasses } from "keycloakify/pages/PageProps";
|
||||
import { useGetClassName } from "keycloakify/lib/useGetClassName";
|
||||
import type { KcContext } from "../kcContext";
|
||||
|
Reference in New Issue
Block a user