Skip to content

Commit fc8185e

Browse files
authored
Merge branch 'dev' into table-fixes
2 parents fbcedf2 + cb8fee7 commit fc8185e

File tree

15 files changed

+90
-88
lines changed

15 files changed

+90
-88
lines changed

client/.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
nodeLinker: node-modules
22

3-
npmRegistryServer: "https://registry.npmmirror.com"
3+
npmRegistryServer: "https://registry.npmjs.org"
44

55
plugins:
66
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

client/config/test/jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from "node:path";
2-
import { buildVars } from "lowcoder-dev-utils/buildVars.js";
3-
import { currentDirName } from "lowcoder-dev-utils/util.js";
2+
import { buildVars } from "../../packages/lowcoder-dev-utils/buildVars.js";
3+
import { currentDirName } from "../../packages/lowcoder-dev-utils/util.js";
44

55
const globals = {};
66
buildVars.forEach(({ name, defaultValue }) => {

client/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2-
"name": "taco-fe",
3-
"version": "0.1.0",
2+
"name": "lowcoder-root",
3+
"version": "2.2.0",
44
"type": "module",
55
"private": true,
66
"workspaces": [
7-
"packages/*"
7+
"packages/*",
8+
"packages/lowcoder-dev-utils"
89
],
910
"engines": {
1011
"node": "^14.18.0 || >=16.0.0"

client/packages/create-lowcoder-plugin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { spawn } from "cross-spawn";
55
import { writeFileSync, existsSync } from "node:fs";
66
import chalk from "chalk";
77
import { createCommand } from "commander";
8-
import { readJson, currentDirName } from "lowcoder-dev-utils/util.js";
8+
import { readJson, currentDirName } from "../lowcoder-dev-utils/util.js";
99

1010
const currentDir = currentDirName(import.meta.url);
1111
const pkg = readJson(path.resolve(currentDir, "./package.json"));

client/packages/lowcoder-cli/config/paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from "node:path";
22
import fs from "node:fs";
3-
import { currentDirName } from "lowcoder-dev-utils/util.js";
3+
import { currentDirName } from "../../lowcoder-dev-utils/util.js";
44

55
const currentDir = currentDirName(import.meta.url);
66
const appDirectory = fs.realpathSync(process.cwd());

client/packages/lowcoder-cli/config/vite.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import react from "@vitejs/plugin-react";
22
import svgrPlugin from "vite-plugin-svgr";
33
import global from "rollup-plugin-external-globals";
4-
import { buildVars } from "lowcoder-dev-utils/buildVars.js";
4+
import { buildVars } from "../../lowcoder-dev-utils/buildVars.js";
55
import injectCss from "vite-plugin-css-injected-by-js";
6-
import { getLibNames, getAllLibGlobalVarNames } from "lowcoder-dev-utils/external.js";
6+
import { getLibNames, getAllLibGlobalVarNames } from "../../lowcoder-dev-utils/external.js";
77
import paths from "./paths.js";
88
import { defineConfig } from "vite";
9-
import { readJson } from "lowcoder-dev-utils/util.js";
9+
import { readJson } from "../../lowcoder-dev-utils/util.js";
1010

1111
const isProduction = process.env.NODE_ENV === "production";
1212
const packageJson = readJson(paths.appPackageJson);

client/packages/lowcoder-dev-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.6",
44
"license": "MIT",
55
"type": "module",
6+
"main": "external.js",
67
"description": "Lowcoder dev utils for lowcoder build process and lowcoder-cli",
78
"keywords": [
89
"lowcoder"

client/packages/lowcoder-plugin-demo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { CompIDE } from "lowcoder-sdk";
33
import { name, version, lowcoder } from "./package.json";
44
import compMap from "./src/index";
55

6-
import "lowcoder-sdk/dist/style.css";
6+
import "../lowcoder-sdk/dist/style.css";
77

88
function CompDevApp() {
99
return (

client/packages/lowcoder-sdk/vite.config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import react from "@vitejs/plugin-react";
33
import viteTsconfigPaths from "vite-tsconfig-paths";
44
import svgrPlugin from "vite-plugin-svgr";
55
import path from "path";
6-
import { ensureLastSlash } from "lowcoder-dev-utils/util";
7-
import { buildVars } from "lowcoder-dev-utils/buildVars";
8-
import { globalDepPlugin } from "lowcoder-dev-utils/globalDepPlguin";
6+
import { ensureLastSlash } from "../lowcoder-dev-utils/util";
7+
import { buildVars } from "../lowcoder-dev-utils/buildVars";
8+
import { globalDepPlugin } from "../lowcoder-dev-utils/globalDepPlguin";
99

1010
const define = {};
1111
buildVars.forEach(({ name, defaultValue }) => {

client/packages/lowcoder/src/comps/comps/textInputComp/inputComp.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ export const InputComp = new UICompBuilder(childrenMap, (props) => {
7777
<TextInputBasicSection {...children} />
7878
<FormDataPropertyView {...children} />
7979

80-
{useContext(EditorContext).editorModeStatus === "layout" && (
80+
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
8181
children.label.getPropertyView()
8282
)}
8383

84-
{useContext(EditorContext).editorModeStatus !== "layout" && (
84+
{["logic", "both"].includes(useContext(EditorContext).editorModeStatus) && (
8585
<><TextInputInteractionSection {...children} />
8686
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
8787
<Section name={sectionNames.advanced}>
@@ -94,7 +94,7 @@ export const InputComp = new UICompBuilder(childrenMap, (props) => {
9494
<TextInputValidationSection {...children} />
9595
</>
9696
)}
97-
{useContext(EditorContext).editorModeStatus === "layout" && (
97+
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
9898
<><Section name={sectionNames.style}>{children.style.getPropertyView()}</Section></>
9999
)}
100100
</>

0 commit comments

Comments
 (0)