mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
add code helper to action script
This commit is contained in:
@@ -9,6 +9,9 @@ import {
|
||||
import MultiSelect from "@rowy/multiselect";
|
||||
import FieldSkeleton from "components/SideDrawer/Form/FieldSkeleton";
|
||||
import { useProjectContext } from "contexts/ProjectContext";
|
||||
import { InputLabel } from "@mui/material";
|
||||
import CodeEditorHelper from "@src/components/CodeEditor/CodeEditorHelper";
|
||||
import { WIKI_LINKS } from "constants/externalLinks";
|
||||
|
||||
const CodeEditor = lazy(
|
||||
() => import("components/CodeEditor" /* webpackChunkName: "CodeEditor" */)
|
||||
@@ -87,7 +90,12 @@ const Settings = ({ config, handleChange }) => {
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
<Typography variant="overline">action script</Typography>
|
||||
<InputLabel>Action script</InputLabel>
|
||||
<CodeEditorHelper
|
||||
docLink={WIKI_LINKS.fieldTypesAction}
|
||||
additionalVariables={[]}
|
||||
/>
|
||||
|
||||
<Suspense fallback={<FieldSkeleton height={300} />}>
|
||||
<CodeEditor
|
||||
minHeight={300}
|
||||
|
||||
@@ -37,6 +37,7 @@ const WIKI_PATHS = {
|
||||
fieldTypesSupportedFields: "/field-types/supported-fields",
|
||||
fieldTypesDerivative: "/field-types/derivative",
|
||||
fieldTypesConnectTable: "/field-types/connect-table",
|
||||
fieldTypesAction: "/field-types/action",
|
||||
fieldTypesAdd: "/field-types/add",
|
||||
|
||||
rowyRun: "/rowy-run",
|
||||
|
||||
Reference in New Issue
Block a user