index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/orgConstants.ts | import { CommonSettingResponseData } from "api/commonSettingApi";
import { trans } from "i18n";
export const ADMIN_ROLE = "admin";
export const MEMBER_ROLE = "member";
export const NEW_ORG_PREFIX = trans("orgSettings.newOrg");
export const TacoRoles = [ADMIN_ROLE, MEMBER_ROLE] as const;
export type RoleIdType = typeo... | 5,800 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/pageConstants.ts | export type PageType = "application" | "module" | "datasource" | "queryLibrary" | "editor";
| 5,801 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/perf.ts | /**
* Input/TextArea's default debounce
*/
export const INPUT_DEFAULT_ONCHANGE_DEBOUNCE = 50;
/**
* enable Action's priority
*/
export const ENABLE_ACTION_PRIORITY = true;
/**
* timeout to clear the action queue, valid when action priority is enabled
*/
export const CLEAR_ACTION_QUEUE_TIMEOUT = 500;
/**
* deb... | 5,802 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/queryConstants.ts | import { JSQuery } from "../comps/queries/jsQuery";
import { SQLQuery } from "../comps/queries/sqlQuery/SQLQuery";
import { HttpQuery } from "../comps/queries/httpQuery/httpQuery";
import { MongoQuery } from "../comps/queries/mongoQuery";
import { OpenBlocksQuery } from "../comps/queries/openBlocksQuery";
import { Redi... | 5,803 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/reduxActionConstants.ts | export const ReduxActionTypes = {
/* user auth RELATED */
LOGOUT_USER_INIT: "LOGOUT_USER_INIT", // logout
LOGOUT_USER_SUCCESS: "LOGOUT_USER_SUCCESS", // logout succeed, reset state
FETCH_USER_INIT: "FETCH_USER_INIT", // fetch some info of the current user
FETCH_USER_DETAILS_SUCCESS: "FETCH_USER_DETAILS_SUCCES... | 5,804 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/routesURL.ts | import { AppViewMode } from "constants/applicationConstants";
import { LocationDescriptor } from "history";
import { UserGuideLocationState } from "pages/tutorials/tutorialsConstant";
import { DatasourceType } from "@openblocks-ee/constants/queryConstants";
export const BASE_URL = "/";
export const USER_AUTH_URL = "/u... | 5,805 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/sdkConfig.ts | interface SDKConfig {
baseURL: string;
}
export const sdkConfig: SDKConfig = {
baseURL: "",
};
| 5,806 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/style.ts | // brand color
export const PrimaryColor = "#3377ff";
// module
export const ModulePrimaryColor = "#F27A24";
// common
export const BorderColor = "#D7D9E0";
export const BorderActiveColor = PrimaryColor;
export const BorderActiveShadowColor = "#b3c4ff";
export const BorderRadius = "4px";
export const BorderRadiusLarg... | 5,807 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/styleSelectors.ts | /**
* CSS selectors in this file are mainly used in preload css code.
*/
export const CNSiteHeader = "top-header";
export const CNSidebar = "sidebar";
export const CNSidebarItem = "sidebar-item";
export const CNSidebarSection = "sidebar-section";
export const CNMainContent = "main-content";
export const CNRootContai... | 5,808 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/constants/userConstants.ts | import { Org, RoleIdType } from "./orgConstants";
import { JSONObject } from "util/jsonTypes";
export const ANONYMOUS_USERNAME = "anonymous";
// official support auth source, user custom auth source is dynamic string
export const UserConnectionSource = {
email: "EMAIL",
google: "GOOGLE",
github: "GITHUB",
};
e... | 5,809 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/antdLocale.ts | import en_GB from "antd/lib/locale/en_GB";
import en_US from "antd/lib/locale/en_US";
import zh_CN from "antd/es/locale/zh_CN";
import zh_HK from "antd/es/locale/zh_HK";
import zh_TW from "antd/es/locale/zh_TW";
import { getValueByLocale } from "openblocks-core";
export function getAntdLocale(language?: string) {
if... | 5,810 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/index.tsx | import { getI18nObjects, Translator } from "openblocks-core";
import * as localeData from "./locales";
import { I18nObjects } from "./locales/types";
export const { trans, transToNode, language } = new Translator<typeof localeData.en>(
localeData,
REACT_APP_LANGUAGES
);
export const i18nObjs = getI18nObjects<I18nO... | 5,811 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/momentLocale.ts | import { language } from "i18n";
export function getMomentLocale() {
switch (language) {
case "zh":
return "zh-cn";
default:
return "en-gb";
}
}
| 5,812 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales/en.ts | import table from "./componentDocExtra/table.md?url";
export const en = {
productName: "Openblocks",
productDesc: "Build internal tools fast, with no limitations",
notSupportedBrowser:
"Your current browser may have compatibility issues. For a better user experience, it is recommended to use the latest versi... | 5,813 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales/enObj.tsx | import { I18nObjects } from "./types";
export const enObj: I18nObjects = {
jsonForm: {
defaultSchema: {
title: "User Information",
description: "Form Example",
type: "object",
required: ["name", "phone"],
properties: {
name: {
type: "string",
title: "Name... | 5,814 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales/index.ts | // file examples: en, enGB, zh, zhHK
// fallback example: current locale is zh-HK, fallback order is zhHK => zh => en
export * from "./en";
export * from "./it";
export * from "@openblocks-ee/i18n/locales/zh";
export * from "./enObj";
export * from "./itObj";
export * from "@openblocks-ee/i18n/locales/zhObj";
| 5,815 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales/it.ts | import { en } from "./en";
export const it: typeof en = {
...en,
cancel: "Annulla",
table: {
...en.table,
saveChanges: "Salvare le modifiche",
cancelChanges: "Annulla modifiche",
saveChangesNotBind:
"Nessun gestore eventi configurato per il salvataggio delle modifiche. Associa almeno un ges... | 5,816 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales/itObj.tsx | import { enObj } from "./enObj";
import { I18nObjects } from "./types";
export const itObj: I18nObjects = enObj;
| 5,817 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales/types.tsx | import { JSONObject } from "util/jsonTypes";
export type I18nObjects = {
jsonForm: {
defaultSchema: JSONObject;
defaultUiSchema: JSONObject;
defaultFormData: JSONObject;
};
table: {
columns: { key: string; title: string; isTag?: boolean }[];
defaultData: JSONObject[];
};
editorTutorials: ... | 5,818 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales/zh.ts | import { en } from "./en";
export const zh: typeof en | undefined = undefined;
| 5,819 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales/zhObj.tsx | import { I18nObjects } from "./types";
export const zhObj: I18nObjects | undefined = undefined;
| 5,820 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/i18n/locales/componentDocExtra/table.md | # Column variables
In the configuration panel of each column, some variables are added to facilitate the configuration of the column.
| Variable name | Description |
| -------------------- | ... | 5,821 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/ide/CompIde.tsx | import { useState } from "react";
import { Menu } from "antd";
import { CompPlayground } from "./CompPlayground";
import styled from "styled-components";
import { UICompLayoutInfo } from "comps/uiCompRegistry";
const Container = styled.div`
display: flex;
flex-direction: column;
`;
const Header = styled.div`
he... | 5,822 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/ide/CompPlayground.tsx | import React, { useState, useMemo, ChangeEvent } from "react";
import ReactJson from "react-json-view";
import { UICompLayoutInfo } from "comps/uiCompRegistry";
import { Comp, customAction } from "openblocks-core";
import { Button, Space, Input, Form } from "antd";
import styled from "styled-components";
import { useCo... | 5,823 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/calculateUtils.tsx | import _ from "lodash";
import { GridItemProps } from "./gridItem";
import { GridLayoutProps } from "./gridLayoutPropTypes";
import type { Position } from "./utils";
export type PositionParams = Pick<
GridItemProps,
"margin" | "containerPadding" | "containerWidth" | "cols" | "rowHeight" | "maxRows"
>;
export const... | 5,824 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/compSelectionWrapper.tsx | import { EditorContext } from "comps/editorState";
import { UICompType } from "comps/uiCompRegistry";
import { Layers } from "constants/Layers";
import { ModulePrimaryColor, PrimaryColor } from "constants/style";
import { fadeColor } from "openblocks-design";
import { CloseEyeIcon } from "openblocks-design";
import { D... | 5,825 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/draggingUtils.ts | // must call clearData() after drag completes, otherwise isDragging() status may be wrong!!
export namespace draggingUtils {
let _data: Record<string, any> = {};
let _isDragging: boolean = false;
export function setData<T>(key: string, value: T) {
_data[key] = value;
_isDragging = true;
}
export funct... | 5,826 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/flyInfo.tsx | import { PositionParams } from "./calculateUtils";
import { LayoutOps } from "./layoutOpUtils";
import { ExtraLayout, Layout } from "./utils";
export type FlyStartInfo = {
readonly flyStartLayout: Layout;
readonly flyItemKeys: string[];
readonly sourceLayoutFn: () => Layout;
readonly flyExtraLayout: ExtraLayou... | 5,827 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/gridItem.tsx | import clsx from "clsx";
import _ from "lodash";
import { UICompType } from "comps/uiCompRegistry";
import React, {
DragEvent,
ReactElement,
SyntheticEvent,
useCallback,
useMemo,
useRef,
useState,
} from "react";
import { Resizable, ResizeCallbackData } from "react-resizable";
import { TransparentImg } fr... | 5,828 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/gridLayout.tsx | import clsx from "clsx";
import { colord } from "colord";
import { UICompType } from "comps/uiCompRegistry";
import { ModulePrimaryColor, PrimaryColor } from "constants/style";
import _ from "lodash";
import log from "loglevel";
import React, { DragEvent, DragEventHandler, MouseEventHandler, ReactElement } from "react"... | 5,829 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/gridLayoutPropTypes.tsx | import type { ReactElement, RefObject } from "react";
import { ReactNode } from "react";
import { DraggableEvent } from "react-draggable";
import { PositionParams } from "./calculateUtils";
import { ExtraLayout, Layout, LayoutItem, OnDragCallback, ResizeEventCallback } from "./utils";
// util
export type ReactRef<T ext... | 5,830 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/gridLines.tsx | import { CSSProperties } from "react";
import { calcGridColWidth, PositionParams } from "./calculateUtils";
import { Position, setTransform } from "./utils";
interface GridLineProps {
position: Position;
positionParams: PositionParams;
lineColor: string;
}
function setBackgroundProps(positionParams: PositionPar... | 5,831 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/handler.tsx | import styled, { css } from "styled-components";
import { ReactRef, ResizeHandleAxis } from "./gridLayoutPropTypes";
const color = "rgb(118, 136, 150)";
const EdgeHandle = css`
&::before {
position: absolute;
// background: ${color};
content: "";
}
// small middle circles
&::after {
position: a... | 5,832 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/index.tsx | export { DEFAULT_POSITION_PARAMS, switchLayoutWH } from "./calculateUtils";
export type { PositionParams } from "./calculateUtils";
export { draggingUtils } from "./draggingUtils";
export type { FlyStartInfo } from "./flyInfo";
export { IsDroppable } from "./gridItem";
export { FLY_START_INFO, ReactGridLayout } from ".... | 5,833 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/layoutOp.tsx | import { LayoutItem } from "./utils";
export enum LayoutOpTypes {
CHANGE_ITEM = "CHANGE_ITEM",
STICKY_ITEM = "STICKY_ITEM",
HIDE_ITEM = "HIDE_ITEM",
DELETE_ITEM = "DELETE_ITEM",
RENAME_ITEM = "RENAME_ITEM",
}
export interface CommonLayoutOp {
type: LayoutOpTypes;
}
export interface ChangeItemOp extends C... | 5,834 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/layoutOpUtils.test.tsx | import { changeItemOp } from "./layoutOp";
import { getUILayout } from "./layoutOpUtils";
import { ExtraLayout, Layout } from "./utils";
describe("layoutOpUtils", () => {
it("getUILayout with stickyItem", () => {
const layout: Layout = {
1: { i: "1", w: 11, h: 32, x: 3, y: 65 },
2: { i: "2", w: 3, h:... | 5,835 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/layoutOpUtils.tsx | import _ from "lodash";
import { memoizeN } from "util/memoize/memoizeN";
import { changeItemOp, LayoutOp, LayoutOpTypes, stickyItemOp } from "./layoutOp";
import {
cascade,
changeStickyItem,
ExtraLayout,
getStickyItemMap,
Layout,
modifyLayout,
withLayoutItem,
} from "./utils";
export type LayoutOps = La... | 5,836 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/utils.test.ts | import { cascade, Layout } from "./utils";
import "./utils.ts";
describe("cascade", () => {
it("table over multiple comps", () => {
const layout: Layout = {
1: { w: 14, h: 43, x: 3, y: 0, i: "1" },
2: { w: 5, h: 5, x: 8, y: 0, i: "2" },
3: { w: 5, h: 5, x: 3, y: 0, i: "3" },
4: { w: 5, h:... | 5,837 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/layout/utils.ts | import { UICompType } from "comps/uiCompRegistry";
import _ from "lodash";
import React, { ReactElement, SyntheticEvent } from "react";
import { DraggableEvent } from "react-draggable";
import { PositionParams } from "./calculateUtils";
import { draggingUtils } from "./draggingUtils";
import { GridLayoutProps, ResizeHa... | 5,838 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/AppFromTemplate.tsx | import ApplicationApi from "api/applicationApi";
import { useParams } from "react-router-dom";
import { validateResponse } from "api/apiUtils";
import { message } from "antd";
import history from "util/history";
import { APPLICATION_VIEW_URL, ALL_APPLICATIONS_URL } from "constants/routesURL";
import { WhiteLoading } fr... | 5,839 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/CreateDropdown.tsx | import { HomeResTypeEnum, NavigationType, NavigationTypes } from "../../types/homeRes";
import { AppImport } from "./components/AppImport";
import {
CommonGrayLabel,
CommonTextLabel,
CustomModal,
ImportIconV2,
MobileNavIcon,
PackUpIcon,
PcNavIcon,
TacoButton,
} from "openblocks-design";
import React, { ... | 5,840 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/FolderView.tsx | import { useDispatch, useSelector } from "react-redux";
import { useParams } from "react-router-dom";
import { HomeBreadcrumbType, HomeLayout } from "./HomeLayout";
import { useEffect } from "react";
import { fetchFolderElements } from "../../redux/reduxActions/folderActions";
import { FolderMeta } from "../../constant... | 5,841 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/HomeCardView.tsx | import styled from "styled-components";
import { HomeRes } from "./HomeLayout";
import { HomeResCard } from "./HomeResCard";
import React, { useState } from "react";
import { MoveToFolderModal } from "./MoveToFolderModal";
const ApplicationCardsWrapper = styled.div`
display: grid;
grid-template-columns: repeat(aut... | 5,842 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/HomeLayout.tsx | import { User } from "constants/userConstants";
import { useSelector } from "react-redux";
import styled from "styled-components";
import { ApplicationMeta, FolderMeta } from "constants/applicationConstants";
import { ALL_APPLICATIONS_URL } from "constants/routesURL";
import history from "util/history";
import moment f... | 5,843 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/HomeResCard.tsx | import { message } from "antd";
import { TacoButton } from "openblocks-design";
import React, { useState } from "react";
import { useDispatch } from "react-redux";
import { updateAppMetaAction } from "redux/reduxActions/applicationActions";
import styled from "styled-components";
import { timestampToHumanReadable } fro... | 5,844 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/HomeResOptions.tsx | import { HomeRes } from "./HomeLayout";
import { HomeResTypeEnum } from "../../types/homeRes";
import { exportApplicationAsJSONFile } from "./components/AppImport";
import { CustomModal, EditPopover, EditPopoverItemType, PointIcon } from "openblocks-design";
import { HomeResInfo } from "../../util/homeResUtils";
import... | 5,845 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/HomeTableView.tsx | import { timestampToHumanReadable } from "../../util/dateTimeUtils";
import { Table } from "../../components/Table";
import { TacoButton } from "openblocks-design";
import styled from "styled-components";
import { useDispatch } from "react-redux";
import {
handleAppEditClick,
handleAppViewClick,
handleFolderViewC... | 5,846 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/HomeView.tsx | import { useDispatch, useSelector } from "react-redux";
import { HomeLayout } from "./HomeLayout";
import { useEffect } from "react";
import { fetchFolderElements } from "../../redux/reduxActions/folderActions";
import { getUser } from "../../redux/selectors/usersSelectors";
import { folderElementsSelector } from "../.... | 5,847 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/ModuleView.tsx | import { useSelector } from "react-redux";
import { HomeLayout } from "./HomeLayout";
import { getUser } from "../../redux/selectors/usersSelectors";
import { MODULE_APPLICATIONS_URL } from "../../constants/routesURL";
import { normalAppListSelector } from "../../redux/selectors/applicationSelector";
import { AppTypeEn... | 5,848 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/MoveToFolderModal.tsx | import { HomeRes } from "./HomeLayout";
import { Form } from "antd";
import React, { useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { useParams } from "react-router-dom";
import {
CustomModal,
DatasourceForm,
FolderIcon,
FormSection,
FormSelectItem,
TacoButton,
} fro... | 5,849 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/RootFolderListView.tsx | import { useSelector } from "react-redux";
import { HomeLayout } from "./HomeLayout";
import { getUser } from "../../redux/selectors/usersSelectors";
import { FOLDERS_URL } from "../../constants/routesURL";
import { trans } from "../../i18n";
import { foldersSelector } from "../../redux/selectors/folderSelector";
expo... | 5,850 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/TrashTableView.tsx | import { timestampToHumanReadable } from "../../util/dateTimeUtils";
import { Table } from "../../components/Table";
import { CustomModal, TacoButton } from "openblocks-design";
import styled from "styled-components";
import { useDispatch } from "react-redux";
import { HomeResInfo } from "../../util/homeResUtils";
impo... | 5,851 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/TrashView.tsx | import { HomeLayout } from "./HomeLayout";
import { useDispatch, useSelector } from "react-redux";
import { recycleListSelector } from "../../redux/selectors/applicationSelector";
import { TRASH_URL } from "../../constants/routesURL";
import { useEffect } from "react";
import { fetchApplicationRecycleList } from "../..... | 5,852 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/index.tsx | import {
ALL_APPLICATIONS_URL,
DATASOURCE_URL,
FOLDER_URL,
FOLDER_URL_PREFIX,
FOLDERS_URL,
MODULE_APPLICATIONS_URL,
QUERY_LIBRARY_URL,
SETTING,
TRASH_URL,
} from "constants/routesURL";
import { getUser, isFetchingUser } from "redux/selectors/usersSelectors";
import { useDispatch, useSelector } from "r... | 5,853 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/useCreateFolder.tsx | import { CustomModal, DatasourceForm, FormInputItem, FormSection } from "openblocks-design";
import { RuleObject, StoreValue } from "rc-field-form/lib/interface";
import { createFolder } from "../../redux/reduxActions/folderActions";
import React, { useCallback, useMemo } from "react";
import { Form } from "antd";
impo... | 5,854 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/useCreateHomeRes.tsx | import {
ApplicationDetail,
AppTypeEnum,
AppUILayoutType,
} from "../../constants/applicationConstants";
import { useDispatch, useSelector } from "react-redux";
import React, { useCallback } from "react";
import { HomeResTypeEnum } from "../../types/homeRes";
import { getNextEntityName } from "../../util/stringUt... | 5,855 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ApplicationV2/components/AppImport.tsx | import { message, Upload } from "antd";
import React from "react";
import ApplicationApi from "api/applicationApi";
import { validateResponse } from "api/apiUtils";
import { APPLICATION_VIEW_URL } from "constants/routesURL";
import history from "util/history";
import { AppTypeEnum } from "constants/applicationConstants... | 5,856 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/ExampleContext.ts | import { createContext } from "react";
export const ExampleContext = createContext({ name: "" });
| 5,857 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/extraPropExposeInfo.ts | import { UICompType } from "comps/uiCompRegistry";
import { IProperty } from "./common/Exposing";
const TypeObject = "Object";
type IExtraPropExposeInfo = {
[n in UICompType]?: {
properties?: Record<string, Pick<IProperty, "type">>;
};
};
const extraExposeInfo: IExtraPropExposeInfo = {
table: {
propert... | 5,858 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/index.tsx | import { Search } from "openblocks-design";
import { useEffect, useState } from "react";
import { Link, useParams } from "react-router-dom";
import styled from "styled-components";
import PageContent from "./common/PageContent";
import "comps";
import {
UICompType,
UICompManifest,
uiCompRegistry,
uiCompCategory... | 5,859 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/propNameText.ts | import { trans } from "i18n";
const names: Record<string, string> = {
"label.text": trans("componentDoc.labelText"),
"label.position": trans("componentDoc.labelPosition"),
"label.align": trans("componentDoc.labelAlign"),
"options.optionType": trans("componentDoc.optionsOptionType"),
"style.backgroundColor": ... | 5,860 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/propValueText.ts | import { trans } from "i18n";
import { ReactNode } from "react";
const valueTranslate: Record<string, Record<string, ReactNode>> = {
"label.position": {
row: trans("componentDoc.left"),
column: trans("componentDoc.column"),
},
"label.align": {
left: trans("componentDoc.leftAlign"),
right: trans("... | 5,861 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/common/BorderContext.tsx | import { createContext } from "react";
export const BorderContext = createContext<{
isBorderShow: boolean;
showBorder: (A: (B: boolean) => boolean) => void;
}>({
isBorderShow: false,
showBorder: () => {},
});
| 5,862 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/common/Example.tsx | import { Comp } from "openblocks-core";
import { evalAndReduceWithExposing } from "comps/utils";
import _ from "lodash";
import React, { ReactNode, useContext, useEffect, useState } from "react";
import styled from "styled-components";
import { ShowBorderIcon, EditIcon } from "openblocks-design";
import propNames from ... | 5,863 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/common/ExampleGroup.tsx | import React, { ReactElement, useState } from "react";
import styled from "styled-components";
import { Desc, Title2 } from "./Styled";
import { BorderContext } from "./BorderContext";
interface IProps {
title: string;
description?: React.ReactNode;
}
const Wrapper = styled.div`
margin-bottom: 28px;
.ant-tabs-n... | 5,864 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/common/Exposing.tsx | import { Table } from "antd";
import { Comp } from "openblocks-core";
import { UICompType } from "comps/uiCompRegistry";
import { EventConfigsType } from "comps/controls/eventHandlerControl";
import { evalAndReduceWithExposing } from "comps/utils";
import { ExposingInfo } from "comps/utils/exposingTypes";
import { Reac... | 5,865 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/common/Extra.tsx | import axios from "axios";
import { UICompType } from "comps/uiCompRegistry";
import { useEffect, useState } from "react";
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
import styled from "styled-components";
import extras from "../extra";
import { Desc, MarkdownTable, Title1 } from ".... | 5,866 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/common/PageContent.tsx | import Exposing from "./Exposing";
import PageInfo from "./PageInfo";
import examples from "../examples";
import { Section, Title1 } from "./Styled";
import styled from "styled-components";
import Extra from "./Extra";
import { UICompType, UICompManifest } from "comps/uiCompRegistry";
import { trans } from "i18n";
int... | 5,867 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/common/PageInfo.tsx | import { UICompManifest } from "comps/uiCompRegistry";
import styled from "styled-components";
interface IProps {
compInfo: UICompManifest;
}
const Wrapper = styled.div`
margin-bottom: 24px;
.title {
display: flex;
align-items: center;
font-size: 32px;
margin-bottom: 36px;
font-weight: 700;
... | 5,868 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/common/Styled.tsx | import { PropsWithChildren } from "react";
import styled from "styled-components";
export const Title1 = styled.div`
font-size: 24px;
font-weight: 700;
line-height: 1;
margin-bottom: 28px;
`;
export const Title2 = styled.div`
font-size: 18px;
font-weight: 700;
line-height: 1;
margin-bottom: 20px;
`;
... | 5,869 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/IFrame.tsx | import { IFrameComp } from "comps/comps/iframeComp";
import { trans } from "i18n";
import Example from "../common/Example";
import ExampleGroup from "../common/ExampleGroup";
export default function IFrameExample() {
return (
<>
<ExampleGroup
title={trans("componentDoc.basicUsage")}
descrip... | 5,870 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/Navigation.tsx | import { NavComp } from "comps/comps/navComp/navComp";
import { trans } from "i18n";
import Example from "../common/Example";
import ExampleGroup from "../common/ExampleGroup";
export default function NavigationExample() {
const blackListConfig: string[] = [
"logoEvent",
trans("componentDoc.styleBackgroundCo... | 5,871 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/index.ts | import { UICompType } from "comps/uiCompRegistry";
import ButtonExample from "./ButtonComp/Button";
import InputExample from "./textInputComp/Input";
import PasswordExample from "./textInputComp/Password";
import TextAreaExample from "./textInputComp/TextArea";
import RichTextEditorComp from "./textInputComp/RichTextEd... | 5,872 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/ButtonComp/Button.tsx | import { ButtonComp } from "comps/comps/buttonComp/buttonComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function ButtonExample() {
return (
<>
<ExampleGroup
title={trans("componentDoc.basicUsage")... | 5,873 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/ButtonComp/DropDownButton.tsx | import { DropdownComp } from "comps/comps/buttonComp/dropdownComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function DropdownExample() {
const blackListConfig: string[] = ["options.manual.manual"];
const options ... | 5,874 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/ButtonComp/LinkButton.tsx | import { LinkComp } from "comps/comps/buttonComp/linkComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function LinkExample() {
return (
<>
<ExampleGroup
title={trans("componentDoc.basicUsage")}
... | 5,875 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/CalendarInputComp/Date.tsx | import { DatePickerComp } from "comps/comps/dateComp/dateComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function DateExample() {
const blackListConfig: string[] = [trans("componentDoc.labelText")];
return (
<... | 5,876 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/CalendarInputComp/DateRange.tsx | import { DateRangeComp } from "comps/comps/dateComp/dateComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function DateRangeExample() {
const nameMap: Record<string, string> = {
start: trans("componentDoc.defaultS... | 5,877 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/CalendarInputComp/Time.tsx | import { TimePickerComp } from "../../../../comps/comps/dateComp/timeComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function TimeExample() {
const blackListConfig: string[] = [trans("componentDoc.labelText")];
re... | 5,878 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/CalendarInputComp/TimeRange.tsx | import { TimeRangeComp } from "../../../../comps/comps/dateComp/timeComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function TimeRangeExample() {
const blackListConfig: string[] = [
trans("componentDoc.labelText... | 5,879 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/formComp/JSONSchemaform.tsx | import { JsonSchemaFormComp } from "comps/comps/jsonSchemaFormComp/jsonSchemaFormComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function jsonSchemaFormExample() {
return (
<>
<ExampleGroup
title={... | 5,880 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/numberInputComp/NumberInput.tsx | import { NumberInputComp } from "comps/comps/numberInputComp/numberInputComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function NumberInputExample() {
return (
<>
<ExampleGroup
title={trans("compo... | 5,881 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/numberInputComp/RangeSlider.tsx | import { RangeSliderComp } from "comps/comps/numberInputComp/rangeSliderComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function RangeSliderExample() {
return (
<>
<ExampleGroup
title={trans("compo... | 5,882 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/numberInputComp/Rating.tsx | import { RatingComp } from "comps/comps/ratingComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function RatingExample() {
const nameMap: Record<string, string> = {
max: trans("componentDoc.maxRating"),
};
ret... | 5,883 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/numberInputComp/Slider.tsx | import { SliderComp } from "comps/comps/numberInputComp/sliderComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function SliderExample() {
return (
<>
<ExampleGroup
title={trans("componentDoc.basicUs... | 5,884 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/presentationComp/chart.tsx | import { uiCompRegistry } from "comps/uiCompRegistry";
import { trans } from "i18n";
import { chartColorPalette } from "openblocks-design";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
const ChartCompWithDefault = uiCompRegistry["chart"].comp;
const defaultDataSour... | 5,885 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/presentationComp/divider.tsx | import { DividerComp } from "comps/comps/dividerComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function DividerExample() {
const nameMap: Record<string, string> = {
title: trans("componentDoc.title"),
align... | 5,886 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/presentationComp/fileViewer.tsx | import { FileViewerComp } from "comps/comps/fileViewerComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function FileViewerExample() {
const blackListConfig: string[] = [trans("componentDoc.src")];
return (
<>
... | 5,887 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/presentationComp/image.tsx | import { ImageComp } from "comps/comps/imageComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function ImageExample() {
return (
<>
<ExampleGroup
title={trans("componentDoc.basicUsage")}
desc... | 5,888 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/presentationComp/progress.tsx | import { ProgressComp } from "comps/comps/progressComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function ProgressExample() {
return (
<>
<ExampleGroup
title={trans("componentDoc.basicUsage")}
... | 5,889 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/presentationComp/progressCircle.tsx | import { ProgressCircleComp } from "comps/comps/progressCircleComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function ProgressCircleExample() {
return (
<>
<ExampleGroup
title={trans("componentDoc... | 5,890 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/presentationComp/table.tsx | import { TableComp } from "comps/comps/tableComp";
import { trans, i18nObjs } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
const data = JSON.stringify(i18nObjs.table.defaultData);
export default function TableExample() {
const blackListConfig: string... | 5,891 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/presentationComp/text.tsx | import { TextComp } from "comps/comps/textComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function TextExample() {
const nameMap: Record<string, string> = {
type: trans("componentDoc.format"),
text: trans("c... | 5,892 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/selectInputComp/Cascader.tsx | import { CascaderWithDefault } from "comps/comps/selectInputComp/cascaderComp";
import { trans, i18nObjs } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
const options = JSON.stringify(i18nObjs.cascaderDefult);
export default function CascaderExample() {... | 5,893 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/selectInputComp/CheckBox.tsx | import { CheckboxComp } from "comps/comps/selectInputComp/checkboxComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function CheckboxExample() {
const blackListConfig: string[] = ["options.manual.manual"];
const opt... | 5,894 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/selectInputComp/File.tsx | import { FileComp } from "comps/comps/fileComp/fileComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function FileExample() {
return (
<>
<ExampleGroup
title={trans("componentDoc.basicUsage")}
... | 5,895 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/selectInputComp/MultiSelect.tsx | import { MultiSelectComp } from "comps/comps/selectInputComp/multiSelectComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function MultiSelectExample() {
const blackListConfig: string[] = ["options.manual.manual"];
... | 5,896 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/selectInputComp/Radio.tsx | import { RadioComp } from "comps/comps/selectInputComp/radioComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function RadioExample() {
// const nameMap: Record<string, string> = {};
const blackListConfig: string[... | 5,897 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/selectInputComp/SegmentedControl.tsx | import { SegmentedControlComp } from "comps/comps/selectInputComp/segmentedControl";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function SegmentedControlExample() {
// const nameMap: Record<string, string> = {};
c... | 5,898 |
0 | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples | petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/ComponentDoc/examples/selectInputComp/Select.tsx | import { SelectComp } from "comps/comps/selectInputComp/selectComp";
import { trans } from "i18n";
import Example from "../../common/Example";
import ExampleGroup from "../../common/ExampleGroup";
export default function SelectExample() {
const blackListConfig: string[] = ["options.manual.manual"];
const options =... | 5,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.