lazify export

This commit is contained in:
rizky 2024-08-14 20:58:51 -07:00
parent a1fd792350
commit 988230f1de
3 changed files with 20 additions and 16 deletions

View File

@ -1,13 +1,4 @@
export { FieldLoading } from "@/comps/ui/field-loading";
export { fetchLinkParams } from "./comps/form/field/type/TypeLink";
export { prasi_gen } from "./gen/prasi_gen";
export { guessLabel } from "./utils/guess-label";
import { lazify, lazifyMany } from "@/utils/lazify";
import __get from "lodash.get";
import { sum } from "./utils/sum";
export const _sum = sum;
export const _get = __get;
export const Accordion = lazify(
async () => (await import("@/comps/ui/accordion")).Accordion
@ -100,6 +91,21 @@ export const LineChart = lazify(
async () => (await import("@/comps/charts/line")).LineChart
);
export const ScrollArea = lazify(
async () => (await import("@/comps/ui/scroll-area")).ScrollArea
);
export { FieldLoading } from "@/comps/ui/field-loading";
export { fetchLinkParams } from "./comps/form/field/type/TypeLink";
export { prasi_gen } from "./gen/prasi_gen";
export { guessLabel } from "./utils/guess-label";
import __get from "lodash.get";
import { sum } from "./utils/sum";
export const _sum = sum;
export const _get = __get;
/** Generator */
export { generateFilter as genereteFilter } from "@/comps/filter/gen/gen-filter";
export { generateRelation } from "@/comps/form/gen/gen-rel";
@ -168,7 +174,5 @@ export { formatTime, longDate, shortDate, timeAgo } from "@/utils/date";
export { getBasename, getPathname } from "@/utils/pathname";
export { Flow } from "@/comps/ui/flow";
// format money
export { formatMoney } from "@/comps/form/field/type/TypeMoney";
export { ScrollArea } from "@/comps/ui/scroll-area";
export { formatMoney } from "@/comps/form/field/type/TypeMoney";

0
modules.json Normal file → Executable file
View File

View File

@ -1,8 +1,8 @@
import { FC, useEffect } from "react";
import { loadSession } from "./utils/load";
import { useLocal } from "lib/utils/use-local";
import { FieldLoading } from "../../..";
import { getBasename } from "lib/exports";
import { useLocal } from "lib/utils/use-local";
import { FC } from "react";
import { FieldLoading } from "../../..";
import { loadSession } from "./utils/load";
const w = window as unknown as {
user: any;