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/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/permission/permissionDetail.tsx
import { useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { fetchGroupsAction } from "redux/reduxActions/orgActions"; import { getUser } from "redux/selectors/usersSelectors"; import styled from "styled-components"; import GroupPermission from "./groupUsersPermission"; import Use...
6,000
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/permission/permissionList.tsx
import { message, Typography } from "antd"; import OrgApi from "api/orgApi"; import { buildGroupId } from "constants/routesURL"; import { AddIcon, CustomModal, EditPopover } from "openblocks-design"; import { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { fetchGroup...
6,001
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/permission/permissionMenuItems.tsx
import { OrgGroup } from "constants/orgConstants"; export function usePermissionMenuItems(orgId: string) { return { nameSuffixFunc: (group?: OrgGroup) => <></>, menuItemsFunc: undefined as Function | undefined, menuExtraView: undefined, }; }
6,002
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/permission/styledComponents.tsx
import { Popover, Table as AntdTable } from "antd"; import { CustomModal, LockIcon, ManualIcon, PointIcon, QuestionIcon, SuspensionBox, TacoButton, Tooltip, WarnIcon, WhiteLoading, } from "openblocks-design"; import styled from "styled-components"; import React, { useEffect, useState } from "react";...
6,003
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/profile/emailCard.tsx
import { checkEmailValid } from "util/stringUtils"; import { BindCardWrapper, CardConfirmButton, StyledFormInput, } from "pages/setting/profile/profileComponets"; import React, { useState } from "react"; import UserApi from "api/userApi"; import { message } from "antd"; import { validateResponse } from "api/apiUt...
6,004
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/profile/index.tsx
import { CustomModal } from "openblocks-design"; import { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { fetchUserAction, profileSettingModalVisible } from "redux/reduxActions/userActions"; import { ProfileInfoCard } from "@openblocks-ee/pages/setting/profile/profi...
6,005
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/profile/passwordCard.tsx
import { BindCardWrapper, CardConfirmButton, StyledPasswordInput, } from "pages/setting/profile/profileComponets"; import React, { useState } from "react"; import { useDispatch } from "react-redux"; import UserApi from "api/userApi"; import { validateResponse } from "api/apiUtils"; import { message } from "antd";...
6,006
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/profile/profileComponets.tsx
import styled, { css } from "styled-components"; import { BlurFinishInput, CommonGrayLabel, CommonTextLabel, FormInput, OtpFormInput, PasswordInput, } from "openblocks-design"; import { TacoButton } from "openblocks-design"; import { PackUpIcon } from "openblocks-design"; import ProfileImage from "pages/com...
6,007
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/profile/profileInfoCard.tsx
import { UserConnectionSource } from "@openblocks-ee/constants/userConstants"; import { useSelector } from "react-redux"; import { getUser } from "redux/selectors/usersSelectors"; import EmailCard from "pages/setting/profile/emailCard"; import PasswordCard from "pages/setting/profile/passwordCard"; import { getConnec...
6,008
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/profile/styledProfileComponets.tsx
import styled, { css } from "styled-components"; import { FormInput, OtpFormInput, PasswordInput } from "openblocks-design"; import { TacoButton } from "openblocks-design"; const FormInputStyle = css` input { border-radius: 4px; font-size: 13px; line-height: 13px; height: 32px; } input::placehol...
6,009
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/chartThemeConstant.ts
import { chartColorPalette } from "openblocks-design"; export const ChartTheme = { color: chartColorPalette, backgroundColor: "#fff", }; export const ChartYellowTheme = { color: ["#f2cb55", "#d95850", "#eb8146", "#ffb248", "#f2d643", "#ebdba4"], backgroundColor: "#495780", textStyle: {}, title: { textStyl...
6,010
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/createModal.tsx
import { ThemeType } from "api/commonSettingApi"; import { useState } from "react"; import { themeTemplateList } from "./themeConstant"; import { RadioCheckedIcon } from "openblocks-design"; import { SwitchCheckedIcon } from "openblocks-design"; import { RequiredIcon } from "openblocks-design"; import { SuccessIcon } f...
6,011
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/index.tsx
import { Route, Switch } from "react-router"; import ThemePage from "./themePage"; import ThemeDetailPage from "./detail"; import { THEME_DETAIL, THEME_SETTING } from "constants/routesURL"; export const ThemeHome = () => { return ( <Switch> <Route path={THEME_SETTING} component={ThemePage} exact /> <...
6,012
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/styledComponents.tsx
import { Button, Divider, Table } from "antd"; import { ThemeDetail } from "api/commonSettingApi"; import { CustomModal, darkenColor, isDarkColor, ScrollBar, TacoButton, TacoInput, } from "openblocks-design"; import styled, { css } from "styled-components"; import { PopoverIcon } from "../permission/styledC...
6,013
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/themeConstant.tsx
import { trans } from "i18n"; import { ChartGreenTheme, ChartTheme, ChartYellowTheme } from "./chartThemeConstant"; export enum MENU_TYPE { DELETE = "delete", SET_DEFAULT = "setDefault", CANCEL_DEFAULT = "cancelDefault", COPY = "copy", EDIT = "edit", RENAME = "rename", } export enum DETAIL_TYPE { CREATE...
6,014
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/themeList.tsx
import { Button, Dropdown, Empty, Menu, message, Table, Typography } from "antd"; import { timestampToHumanReadable } from "util/dateTimeUtils"; import { MENU_TYPE } from "./themeConstant"; import React, { useState } from "react"; import { ColumnName, ControlCol, EditButton, EllipsisSpan, EmptySpan, ListDro...
6,015
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/themePage.tsx
import React from "react"; import { connect } from "react-redux"; import { AppState } from "redux/reducers"; import { fetchCommonSettings, setCommonSettings } from "redux/reduxActions/commonSettingsActions"; import { CommonSettingResponseData, SetCommonSettingPayload, ThemeType, } from "api/commonSettingApi"; imp...
6,016
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/detail/chartPreviewDsl.ts
import { trans } from "i18n"; const dsl = { ui: { layout: { "5716b58b": { i: "5716b58b", h: 5, w: 11, x: 0, y: 0 }, "44ea6086": { i: "44ea6086", h: 35, w: 12, x: 0, y: 5 }, fa24d93a: { i: "fa24d93a", h: 35, w: 12, x: 12, y: 5 }, }, items: { "44ea6086": { compType: "chart",...
6,017
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/detail/index.tsx
import { InputRef, message } from "antd"; import { CommonSettingResponseData, SetCommonSettingPayload, ThemeDetail, ThemeType, } from "api/commonSettingApi"; import history from "util/history"; import { CodeEditor } from "base/codeEditor"; import { BASE_URL, THEME_SETTING } from "constants/routesURL"; import Co...
6,018
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/setting/theme/detail/previewDsl.ts
import { trans } from "i18n"; const dsl = { ui: { layout: { "19427536": { i: "19427536", h: 10, w: 12, x: 0, y: 0 }, "71170d57": { i: "71170d57", h: 5, w: 7, x: 17, y: 5 }, db6e8345: { i: "db6e8345", h: 37, w: 10, x: 0, y: 11 }, "4fbf5ef0": { i: "4fbf5ef0", h: 37, ...
6,019
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/tutorials/HomeTutorialsV2.tsx
import Joyride, { CallBackProps, STATUS } from "react-joyride"; import React, { useEffect, useState } from "react"; import { defaultJoyrideFloaterProps, defaultJoyrideStyles, } from "pages/tutorials/tutorialsConstant"; import { markUserStatus } from "redux/reduxActions/userActions"; import { useDispatch } from "rea...
6,020
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/tutorials/editorTutorials.tsx
// Intro guide import Joyride, { ACTIONS, CallBackProps, EVENTS, STATUS, Step } from "react-joyride"; import { useContext, useEffect, useState } from "react"; import { EditorContext, EditorState } from "comps/editorState"; import { changeChildAction, executeQueryAction, multiChangeAction, wrapActionExtraInfo, }...
6,021
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/tutorials/tutorialsConstant.tsx
import { Styles } from "react-joyride"; import { Layers } from "constants/Layers"; import { Props as FloaterType } from "react-floater"; export const leftCompListClassName = "joyride-left-comp-list"; export const tableDragClassName = "joyride-table-drag-icon"; export const editorContentClassName = "joyride-editor-cont...
6,022
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/authComponents.tsx
import { CheckboxChangeEvent } from "antd/lib/checkbox"; import LoginBackground from "assets/images/loginBackground.png"; import React, { CSSProperties, useEffect, useRef, useState } from "react"; import { CheckBox, PackUpIcon, TacoButton } from "openblocks-design"; import { Link } from "react-router-dom"; import style...
6,023
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/authHOC.tsx
import { AUTH_LOGIN_URL, BASE_URL } from "constants/routesURL"; import React from "react"; import { useSelector } from "react-redux"; import { Redirect } from "react-router-dom"; import { getUser, isFetchUserFinished } from "redux/selectors/usersSelectors"; export const requiresUnAuth = <Props extends {}>(Component: R...
6,024
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/authUtils.ts
import { isSafeRedirectURL } from "util/urlUtils"; import { BASE_URL, CAS_AUTH_REDIRECT, OAUTH_REDIRECT, USER_INFO_COMPLETION, } from "constants/routesURL"; import { AxiosPromise, AxiosResponse } from "axios"; import { ApiResponse } from "api/apiResponses"; import { doValidResponse } from "api/apiUtils"; import...
6,025
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/formLogin.tsx
import { FormInput, PasswordInput } from "openblocks-design"; import { AuthBottomView, ConfirmButton, FormWrapperMobile, LoginCardTitle, StyledRouteLink, } from "pages/userAuth/authComponents"; import React, { useContext, useState } from "react"; import styled from "styled-components"; import UserApi from "ap...
6,026
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/index.tsx
import { AUTH_LOGIN_URL, USER_AUTH_URL } from "constants/routesURL"; import { Redirect, Route, Switch, useLocation } from "react-router-dom"; import React from "react"; import { useSelector } from "react-redux"; import { selectSystemConfig } from "redux/selectors/configSelectors"; import { AuthContext } from "pages/use...
6,027
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/login.tsx
import { useLocation } from "react-router-dom"; import { AuthSearchParams } from "constants/authConstants"; import { CommonTextLabel } from "components/Label"; import { trans } from "i18n"; import { ThirdPartyAuth } from "pages/userAuth/thirdParty/thirdPartyAuth"; import FormLogin from "@openblocks-ee/pages/userAuth/fo...
6,028
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/register.tsx
import React, { useContext, useState } from "react"; import { AuthContainer, ConfirmButton, FormWrapperMobile, LoginCardTitle, StyledRouteLinkLogin, TermsAndPrivacyInfo, } from "pages/userAuth/authComponents"; import { FormInput, PasswordInput } from "openblocks-design"; import { AUTH_LOGIN_URL } from "cons...
6,029
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/thirdParty/authRedirect.tsx
import { useLocation } from "react-router-dom"; import { AuthSessionStoreParams } from "constants/authConstants"; import { message } from "antd"; import { AUTH_LOGIN_URL, BASE_URL } from "constants/routesURL"; import history from "util/history"; import PageSkeleton from "components/PageSkeleton"; import { trans } from ...
6,030
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/thirdParty/thirdPartyAuth.tsx
import { AuthSearchParams, OAuthLocationState, ThirdPartyAuthGoal, ThirdPartyConfigType, } from "constants/authConstants"; import { CommonGrayLabel, WhiteLoading } from "openblocks-design"; import { useLocation } from "react-router-dom"; import history from "util/history"; import { LoginLogoStyle, StyledLoginBu...
6,031
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/thirdParty
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/thirdParty/authenticator/abstractAuthenticator.ts
import { AuthSessionStoreParams } from "constants/authConstants"; import { authRespValidate, getRedirectUrl, getSafeAuthRedirectURL } from "pages/userAuth/authUtils"; import { AxiosPromise } from "axios"; import { ApiResponse } from "api/apiResponses"; import history from "util/history"; import { AUTH_BIND_URL, AUTH_LO...
6,032
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/thirdParty
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/thirdParty/authenticator/index.ts
import { AuthSessionStoreParams } from "constants/authConstants"; import { AuthRedirectUrlParams } from "./abstractAuthenticator"; import { OAuthAuthenticator } from "./oAuthAuthenticator"; export { OAuthAuthenticator }; export type { AuthRedirectUrlParams }; export function getAuthenticator( authParams: AuthSessio...
6,033
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/thirdParty
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/pages/userAuth/thirdParty/authenticator/oAuthAuthenticator.ts
import { AbstractAuthenticator } from "./abstractAuthenticator"; import { AxiosPromise } from "axios"; import UserApi from "api/userApi"; import { ApiResponse } from "api/apiResponses"; export class OAuthAuthenticator extends AbstractAuthenticator { bind() { const { authParams, urlParam, redirectUrl } = this; ...
6,034
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/index.tsx
import entityReducer from "redux/reducers/entitiyReducers"; import { PluginDataState } from "redux/reducers/entitiyReducers/pluginReducer"; import { DatasourceDataState } from "redux/reducers/entitiyReducers/datasourceReducer"; import uiReducer from "redux/reducers/uiReducers"; import { ApplicationReduxState } from "re...
6,035
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/entitiyReducers/datasourceReducer.ts
import { createReducer } from "util/reducerUtils"; import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { DatasourceInfo, DatasourceStructure } from "api/datasourceApi"; import { Datasource } from "@openblocks-ee/constants/datasourceConstants"; import { DatasourcePermissionInfo } from ...
6,036
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/entitiyReducers/index.ts
import { combineReducers } from "redux"; import pluginReducer from "redux/reducers/entitiyReducers/pluginReducer"; import datasourceReducer from "redux/reducers/entitiyReducers/datasourceReducer"; import { queryLibraryReducer } from "./queryLibraryReducer"; const entityReducer = combineReducers({ datasource: datasou...
6,037
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/entitiyReducers/pluginReducer.ts
import { createReducer } from "util/reducerUtils"; import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { DataSourceTypeInfo } from "api/datasourceApi"; export interface PluginDataState { data: DataSourceTypeInfo[]; isDataSourceTypesFetched: boolean; } const initialState: PluginD...
6,038
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/entitiyReducers/queryLibraryReducer.ts
import { createReducer } from "util/reducerUtils"; import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { LibraryQuery, LibraryQueryDropdownInfo, LibraryQueryRecordMeta, } from "../../../api/queryLibraryApi"; import { omit } from "lodash"; export interface QueryLibraryState { ...
6,039
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/jsLibraryReducers/index.ts
import { createReducer } from "util/reducerUtils"; import { JSLibraryMeta, RecommendedJSLibraryMeta } from "api/jsLibraryApi"; import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; export interface JSLibraryState { recommends: RecommendedJSLibraryMeta[]; meta: Record<string, JSLibraryMeta...
6,040
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/npmPluginReducers/index.ts
import { createReducer } from "util/reducerUtils"; import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { NpmPackageMeta } from "types/remoteComp"; export interface NPMPluginState { packageMeta: Record<string, NpmPackageMeta>; packageVersion: Record<string, string>; } const initi...
6,041
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/uiReducers/appSnapshotReducer.ts
import { createReducer } from "util/reducerUtils"; import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, } from "constants/reduxActionConstants"; import { AppSnapshot, AppSnapshotList } from "constants/applicationConstants"; const initialState: AppSnapshotState = { snapshotCreating: false, snapshots...
6,042
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/uiReducers/applicationReducer.ts
import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, } from "constants/reduxActionConstants"; import { DeleteApplicationPayload, DeleteAppPermissionPayload, RecycleApplicationPayload, RestoreApplicationPayload, UpdateAppMetaPayload, UpdateAppPermissionPayload, } from "redux/reduxActions/appl...
6,043
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/uiReducers/commonSettingsReducer.ts
import { createReducer } from "util/reducerUtils"; import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { CommonSettingResponseData, ThemeType } from "api/commonSettingApi"; import { GenericApiResponse } from "api/apiResponses"; export interface CommonSettingsState { settings: { ...
6,044
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/uiReducers/configReducer.ts
import { createReducer } from "util/reducerUtils"; import { SystemConfig } from "constants/configConstants"; import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, } from "constants/reduxActionConstants"; import { ExternalEditorContextState } from "util/context/ExternalEditorContext"; const initialState:...
6,045
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/uiReducers/folderReducer.ts
import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, } from "constants/reduxActionConstants"; import { RecycleApplicationPayload, UpdateAppMetaPayload, } from "redux/reduxActions/applicationActions"; import { createReducer } from "util/reducerUtils"; import { ApplicationDetail, ApplicationMeta, Fold...
6,046
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/uiReducers/index.tsx
import { combineReducers } from "redux"; import applicationReducer from "redux/reducers/uiReducers/applicationReducer"; import orgReducer from "redux/reducers/uiReducers/orgReducer"; import usersReducer from "redux/reducers/uiReducers/usersReducer"; import configReducer from "redux/reducers/uiReducers/configReducer"; i...
6,047
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/uiReducers/orgReducer.ts
import { GroupUser, OrgGroup, OrgUser } from "constants/orgConstants"; import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, } from "constants/reduxActionConstants"; import { User } from "constants/userConstants"; import { DeleteOrgUserPayload, GroupUsersPayload, OrgUsersPayload, RemoveGroupUserP...
6,048
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reducers/uiReducers/usersReducer.ts
import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, } from "constants/reduxActionConstants"; import { CurrentUser, defaultCurrentUser, defaultUser, User } from "constants/userConstants"; import { UpdateOrgPayload } from "redux/reduxActions/orgActions"; import { MarkUserStatusPayload, UpdateUserPayload ...
6,049
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/appSnapshotActions.ts
import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { AppSnapshotContext, AppSnapshotList } from "constants/applicationConstants"; import { JSONValue } from "util/jsonTypes"; import { PaginationParam } from "constants/apiConstants"; import { AppSnapshotDslInfo } from "api/appSnapshotA...
6,050
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/applicationActions.ts
import { ReduxActionTypes } from "constants/reduxActionConstants"; import { ApplicationDetail, ApplicationDSLType, ApplicationRoleType, AppPermissionInfo, AppTypeEnum, } from "constants/applicationConstants"; import { JSONValue } from "util/jsonTypes"; import { CommonSettingResponseData } from "api/commonSett...
6,051
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/commonSettingsActions.ts
import { FetchCommonSettingPayload, SetCommonSettingPayload } from "api/commonSettingApi"; import { ReduxActionTypes } from "constants/reduxActionConstants"; export const fetchCommonSettings = (payload: FetchCommonSettingPayload) => { return { type: ReduxActionTypes.FETCH_COMMON_SETTING, payload, }; }; ex...
6,052
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/configActions.ts
import { ReduxActionTypes } from "constants/reduxActionConstants"; import { ExternalEditorContextState } from "util/context/ExternalEditorContext"; export const fetchConfigAction = () => { return { type: ReduxActionTypes.FETCH_SYS_CONFIG_INIT, }; }; export const setEditorExternalStateAction = (state: Partial<...
6,053
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/datasourceActions.ts
import { EvaluationReduxAction, ReduxActionTypes, ReduxActionWithCallbacks, } from "constants/reduxActionConstants"; import { Datasource } from "@openblocks-ee/constants/datasourceConstants"; import { DatasourceInfo, DataSourceTypeInfo } from "api/datasourceApi"; export type FetchDatasourcePayload = { organiza...
6,054
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/datasourcePermissionActions.ts
import { ReduxAction, ReduxActionTypes, ReduxActionWithCallbacks, } from "constants/reduxActionConstants"; import { DatasourceRole } from "../../api/datasourcePermissionApi"; export interface FetchDatasourcePermissionsPayload { datasourceId: string; } export const fetchDatasourcePermissions = ( payload: Fet...
6,055
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/folderActions.ts
import { ReduxAction, ReduxActionTypes, ReduxActionWithCallbacks, } from "constants/reduxActionConstants"; export interface CreateFolderPayload { name: string; orgId: string; parentFolderId?: string; // null represents folder in the root folder } export const createFolder = ( payload: CreateFolderPayloa...
6,056
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/jsLibraryActions.ts
import { ReduxActionTypes } from "constants/reduxActionConstants"; export interface FetchJSLibraryMetasPayload { names: string[]; } export const fetchJSLibraryMetasAction = (names: string[]) => ({ type: ReduxActionTypes.FETCH_JS_LIB_METAS, payload: { names, }, }); export const fetchJSLibraryRecommendsAct...
6,057
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/npmPluginActions.ts
import { ReduxActionTypes } from "constants/reduxActionConstants"; import { NpmPackageMeta } from "types/remoteComp"; export const packageMetaReadyAction = (packageName: string, meta: NpmPackageMeta) => ({ type: ReduxActionTypes.PACKAGE_META_READY, payload: { [packageName]: meta, }, }); export const selectN...
6,058
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/orgActions.ts
import { GroupUser, NEW_ORG_PREFIX, Org, OrgGroup, OrgUser } from "constants/orgConstants"; import { ReduxActionTypes } from "constants/reduxActionConstants"; import { getNextEntityName } from "util/stringUtils"; export type OrgUsersPayload = { members: OrgUser[]; visitorRole: string; }; export type GroupUsersPay...
6,059
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/queryLibraryActions.ts
import { ReduxAction, ReduxActionTypes, ReduxActionWithCallbacks, ReduxActionWithoutPayload, } from "constants/reduxActionConstants"; import { LibraryQuery, LibraryQueryPublishRequest } from "../../api/queryLibraryApi"; import { AxiosResponse } from "axios"; import { GenericApiResponse } from "../../api/apiResp...
6,060
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/reduxActions/userActions.ts
import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { UserStatusType } from "constants/userConstants"; export const fetchUserAction = () => ({ type: ReduxActionTypes.FETCH_USER_INIT, }); export const fetchRawCurrentUserAction = () => ({ type: ReduxActionTypes.FETCH_RAW_CURRENT_U...
6,061
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/appSnapshotSagas.ts
import { all, call, put, takeLatest } from "redux-saga/effects"; import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, } from "constants/reduxActionConstants"; import { AxiosResponse } from "axios"; import { validateResponse } from "api/apiUtils"; import AppSnapshotApi, { AppSnapshotDslResp, AppSnapshots...
6,062
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/applicationSagas.ts
import { ApiResponse, GenericApiResponse } from "api/apiResponses"; import ApplicationApi, { ApplicationResp, AppPermissionResponse, HomeDataResponse, } from "api/applicationApi"; import { AxiosResponse } from "axios"; import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, ReduxActionWithCallbacks...
6,063
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/commonSettingsSagas.ts
import { all, call, put, takeLatest } from "redux-saga/effects"; import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { AxiosResponse } from "axios"; import { validateResponse } from "api/apiUtils"; import log from "loglevel"; import { message } from "antd"; import CommonSettingApi, { ...
6,064
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/configSagas.ts
import { all, call, put, takeLatest } from "redux-saga/effects"; import { ReduxActionErrorTypes, ReduxActionTypes } from "constants/reduxActionConstants"; import { AxiosResponse } from "axios"; import { validateResponse } from "api/apiUtils"; import log from "loglevel"; import ConfigApi, { ConfigResponse } from "api/co...
6,065
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/datasourcePermissionSagas.ts
import { ReduxAction, ReduxActionTypes, ReduxActionWithCallbacks, } from "constants/reduxActionConstants"; import { GenericApiResponse } from "api/apiResponses"; import { all, put, takeLatest } from "redux-saga/effects"; import { AxiosResponse } from "axios"; import { validateResponse } from "api/apiUtils"; impor...
6,066
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/datasourceSagas.ts
import { EvaluationReduxAction, ReduxActionTypes, ReduxActionWithCallbacks, } from "constants/reduxActionConstants"; import { GenericApiResponse } from "api/apiResponses"; import { all, put, takeEvery } from "redux-saga/effects"; import { AxiosResponse } from "axios"; import { DatasourceApi, DatasourceInfo, Datas...
6,067
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/errorSagas.tsx
import { call } from "redux-saga/effects"; /** * making with error message with action name * * @param action */ export const getDefaultActionError = (action: string) => `Incurred an error when ${action}`; export function* callAPI(apiCall: any, requestPayload: any): any { try { return yield call(apiCall, re...
6,068
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/folderSagas.ts
import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, ReduxActionWithCallbacks, } from "constants/reduxActionConstants"; import { GenericApiResponse } from "api/apiResponses"; import { all, put, takeLatest } from "redux-saga/effects"; import { AxiosResponse } from "axios"; import { validateResponse } f...
6,069
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/index.tsx
import orgSagas from "redux/sagas/orgSagas"; import { pluginSagas } from "redux/sagas/pluginSagas"; import { datasourceSagas } from "redux/sagas/datasourceSagas"; import userSagas from "redux/sagas/userSagas"; import applicationSagas from "redux/sagas/applicationSagas"; import configSagas from "redux/sagas/configSagas"...
6,070
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/jsLibrarySagas.ts
import { ReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { GenericApiResponse } from "api/apiResponses"; import { all, put, takeLatest } from "redux-saga/effects"; import { AxiosResponse } from "axios"; import { validateResponse } from "api/apiUtils"; import log from "loglevel"; import { m...
6,071
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/orgSagas.ts
import { message } from "antd"; import { ApiResponse, GenericApiResponse } from "api/apiResponses"; import OrgApi, { CreateOrgResponse, GroupUsersResponse, OrgUsersResponse } from "api/orgApi"; import { AxiosResponse } from "axios"; import { OrgGroup } from "constants/orgConstants"; import { ReduxAction, ReduxActio...
6,072
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/pluginSagas.ts
import { EvaluationReduxAction, ReduxActionTypes } from "constants/reduxActionConstants"; import { GenericApiResponse } from "api/apiResponses"; import { all, put, takeEvery } from "redux-saga/effects"; import { AxiosResponse } from "axios"; import { DatasourceApi, DataSourceTypeInfo } from "api/datasourceApi"; import ...
6,073
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/queryLibrarySagas.ts
import { EvaluationReduxAction, ReduxAction, ReduxActionTypes, ReduxActionWithCallbacks, ReduxActionWithoutPayload, } from "constants/reduxActionConstants"; import { GenericApiResponse } from "api/apiResponses"; import { all, put, takeLatest } from "redux-saga/effects"; import { AxiosResponse } from "axios"; ...
6,074
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/sagas/userSagas.ts
import { ApiResponse } from "api/apiResponses"; import UserApi, { GetCurrentUserResponse, GetUserResponse } from "api/userApi"; import { AxiosResponse } from "axios"; import { ReduxAction, ReduxActionErrorTypes, ReduxActionTypes, } from "constants/reduxActionConstants"; import { AUTH_LOGIN_URL } from "constants/r...
6,075
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/appSnapshotSelector.ts
import { AppState } from "redux/reducers"; export const showAppSnapshotSelector = (state: AppState) => { return state.ui.appSnapshot.showAppSnapshot; }; export const getSelectedAppSnapshot = (state: AppState) => { return state.ui.appSnapshot.appSnapshots.find( (s) => s.snapshotId === state.ui.appSnapshot.sele...
6,076
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/applicationSelector.ts
import { AppState } from "redux/reducers"; import { ApplicationMeta, AppPermissionInfo } from "constants/applicationConstants"; export const normalAppListSelector = (state: AppState): ApplicationMeta[] => state.ui.application.applicationList.filter((app) => app.applicationStatus === "NORMAL"); export const modulesS...
6,077
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/commonSettingSelectors.ts
import { AppState } from "redux/reducers"; export const getCommonSettings = (state: AppState) => { return state.ui.commonSettings.settings; }; export const getIsCommonSettingFetching = (state: AppState) => { return state.ui.commonSettings.fetching; }; export const getIsCommonSettingSaving = (state: AppState) => ...
6,078
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/configSelectors.ts
import { AppState } from "redux/reducers"; import { SystemConfig } from "constants/configConstants"; export const getSystemConfigFetching = (state: AppState) => { return state.ui.config.fetchingConfig; }; export const selectSystemConfig = (state: AppState): SystemConfig | undefined => { return state.ui.config.sys...
6,079
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/datasourceSelectors.ts
import { AppState } from "../reducers"; import { DataSourceTypeInfo } from "../../api/datasourceApi"; import { DatasourceType } from "@openblocks-ee/constants/queryConstants"; export const getDataSource = (state: AppState) => { return state.entities.datasource.data; }; export const getDataSourceTypes = (state: AppS...
6,080
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/folderSelector.ts
import { AppState } from "redux/reducers"; import { FolderMeta } from "constants/applicationConstants"; export const foldersSelector = (state: AppState): FolderMeta[] => state.ui.folder.folders; export const folderElementsSelector = (state: AppState) => state.ui.folder.folderElements; export const isFetchingFolderEl...
6,081
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/jsLibrarySelector.ts
import { AppState } from "redux/reducers"; export const jsLibrarySelector = (state: AppState) => state.jsLibrary.meta; export const recommendJSLibrarySelector = (state: AppState) => state.jsLibrary.recommends;
6,082
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/orgSelectors.ts
import { AppState } from "redux/reducers"; export const getOrgUsers = (state: AppState) => { return state.ui.org.orgUsers; }; export const getOrgGroups = (state: AppState) => { return state.ui.org.orgGroups; }; export const getFetchOrgGroupsFinished = (state: AppState) => { return state.ui.org.fetchOrgGroupsFi...
6,083
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/queryLibrarySelectors.ts
import { AppState } from "../reducers"; export const getQueryLibrary = (state: AppState) => { return state.entities.queryLibrary.queryLibraryInfo; }; export const getQueryLibraryDropdownInfo = (state: AppState) => { return state.entities.queryLibrary.queryLibraryDropdownInfo; }; export const getQueryLibraryRecor...
6,084
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/selectors/usersSelectors.ts
import { CurrentUser, User } from "constants/userConstants"; import { AppState } from "redux/reducers"; export const getUser = (state: AppState): User => { return state.ui.users.user; }; export const getCurrentUser = (state: AppState): CurrentUser => { return state.ui.users.currentUser; }; export const getRawCur...
6,085
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/store/store.ts
import { reduxBatch } from "@manaflair/redux-batch"; import { TypedUseSelectorHook, useSelector as useReduxSelector } from "react-redux"; import { appReducer, AppState } from "@openblocks-ee/redux/reducers"; import { applyMiddleware, createStore } from "redux"; import { composeWithDevTools } from "redux-devtools-extens...
6,086
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/redux/store/storeRegistry.ts
import { Store } from "redux"; export default class StoreRegistry { private static _store: Store; static registerStore(store: Store) { this._store = store; } static getStore(): Store { return this._store; } }
6,087
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/types/bottomRes.ts
import { Comp } from "openblocks-core"; import { EditorState } from "comps/editorState"; import { ReactNode } from "react"; export enum BottomResTypeEnum { Query = "query", TempState = "tempState", Transformer = "transformer", DateResponder = "dataResponder", Folder = "folder", } export interface BottomResL...
6,088
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/types/common.ts
export interface KeyValue { key: string; value: string; }
6,089
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/types/dsl.ts
export interface ModuleDSLIoInput { name: string; defaultValue: { compType: string; comp: any; }; } export interface ModuleDSL { ui: { compType: "module"; comp: { io: { inputs: ModuleDSLIoInput[]; }; }; }; }
6,090
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/types/homeRes.ts
export enum HomeResTypeEnum { All = 0, Application = 1, Module = 2, NavLayout = 3, Folder = 4, MobileTabLayout = 6, Navigation = 7, } export type HomeResKey = keyof typeof HomeResTypeEnum; export const NavigationTypes = [ HomeResTypeEnum.NavLayout, HomeResTypeEnum.MobileTabLayout, ] as const; export...
6,091
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/types/remoteComp.ts
import { UICompManifest } from "comps/uiCompRegistry"; import { CompConstructor } from "openblocks-core"; export type RemoteCompSource = "npm" | "bundle"; export interface OpenblocksCompMeta extends Omit<UICompManifest, "comp" | "icon"> { icon?: string; } export interface OpenblocksMeta { entry: string; descrip...
6,092
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/types
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/types/entities/common.ts
export interface Property { key: string; value: any; }
6,093
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/util/appUtils.tsx
import { KeyValue } from "../types/common"; import { matchPath } from "react-router"; import { AppPathParams } from "../constants/applicationConstants"; import { APP_EDITOR_URL, APPLICATION_VIEW_URL } from "../constants/routesURL"; import history from "./history"; import { isEmpty } from "lodash"; import { UiLayoutType...
6,094
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/util/bottomResUtils.tsx
import styled from "styled-components"; import { ResourceType } from "@openblocks-ee/constants/queryConstants"; import { ClickHouseIcon, DataResponderIcon, DeleteApiIcon, EsIcon, FileFolderIcon, GetApiIcon, GoogleSheetsIcon, GraphqlIcon, HeadApiIcon, JSIcon, MariaDBIcon, MongoIcon, MSSQLIcon, ...
6,095
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/util/browser.test.ts
import { supportedBrowsersReg } from "./browser"; import log from "loglevel"; // chrome >=69,edge>=101,Safari>=13,android>=4.4.3,ios>=12,ChromeAndroid>=100 const supportedUserAgents = [ // Chrome "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.100.0 Safari/537.36...
6,096
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/util/browser.ts
// >0.2%,not dead,not op_mini all,chrome >=69 // prettier-ignore export const supportedBrowsersReg = /((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(12[_.]2|12[_.]([3-9]|\d{2,})|12[_.]5|12[_.]([6-9]|\d{2,})|(1[3-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_...
6,097
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/util/cacheUtils.test.ts
import { memo } from "./cacheUtils"; class A { cnt = 0; @memo getV() { return this.getWithoutMemo(); } getWithoutMemo() { this.cnt += 1; return 1 + this.cnt; } } test("test memo", () => { let a = new A(); expect(a.getWithoutMemo()).toEqual(2); expect(a.getWithoutMemo()).toEqual(3); e...
6,098
0
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src
petrpan-code/openblocks-dev/openblocks/client/packages/openblocks/src/util/cacheUtils.ts
import log from "loglevel"; export const CACHE_PREFIX = "__cache__"; /** * a decorator for caching function's result ignoring params. * * @remarks * caches are stored in `__cache__xxx` fields. * `ObjectUtils.setFields` will not save this cache. * */ export function memo(target: any, propertyKey: string, descrip...
6,099