Skip to content

Package version #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix : code formatting reverted
  • Loading branch information
Aqib Mirza committed May 22, 2023
commit ad55345594bd411e28006c81e4b37fd4987d433e
14 changes: 3 additions & 11 deletions client/packages/lowcoder/src/comps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import { ModalComp } from "comps/hooks/modalComp";
import { ButtonComp } from "./comps/buttonComp/buttonComp";
import { DropdownComp } from "./comps/buttonComp/dropdownComp";
import { LinkComp } from "./comps/buttonComp/linkComp";
import {
ContainerComp,
defaultContainerData,
} from "./comps/containerComp/containerComp";
import { ContainerComp, defaultContainerData } from "./comps/containerComp/containerComp";
import { CustomComp } from "./comps/customComp/customComp";
import { DatePickerComp, DateRangeComp } from "./comps/dateComp/dateComp";
import { DividerComp } from "./comps/dividerComp";
Expand Down Expand Up @@ -98,12 +95,7 @@ import {

import { defaultFormData, FormComp } from "./comps/formComp/formComp";
import { IFrameComp } from "./comps/iframeComp";
import {
defaultGridData,
defaultListViewData,
GridComp,
ListViewComp,
} from "./comps/listViewComp";
import { defaultGridData, defaultListViewData, GridComp, ListViewComp } from "./comps/listViewComp";
import { ModuleComp } from "./comps/moduleComp/moduleComp";
import { NavComp } from "./comps/navComp/navComp";
import { TableComp } from "./comps/tableComp";
Expand Down Expand Up @@ -828,7 +820,7 @@ const uiCompMap: Registry = {
layoutInfo: {
w: 24,
h: 60,
},
}
},
signature: {
name: trans("uiComp.signatureCompName"),
Expand Down
9 changes: 2 additions & 7 deletions client/packages/lowcoder/src/comps/uiCompRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { JSONValue } from "util/jsonTypes";
import { EditorState } from "./editorState";
import { trans } from "i18n";

export type ExposingMultiCompConstructor = ReturnType<
typeof withExposingConfigs
>;
export type ExposingMultiCompConstructor = ReturnType<typeof withExposingConfigs>;
// Required when the container generates default child comps
type CompDefaultDataFunction = (
compName: string,
Expand Down Expand Up @@ -117,10 +115,7 @@ export type UICompType =

export const uiCompRegistry = {} as Record<UICompType | string, UICompManifest>;

export function registerComp(
compType: UICompType | string,
manifest: UICompManifest
) {
export function registerComp(compType: UICompType | string, manifest: UICompManifest) {
uiCompRegistry[compType] = {
...manifest,
keywords: [manifest.name, manifest.enName, manifest.keywords]
Expand Down
Loading