Skip to content

Dev -> Main - 2.2.0 hotfixes #565

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing 2.2.0 bugs
  • Loading branch information
FalkWolsky committed Dec 5, 2023
commit cb8fee775d244e515d40455e4d8d133dac9bb0cc
2 changes: 1 addition & 1 deletion client/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
nodeLinker: node-modules

npmRegistryServer: "https://registry.npmmirror.com"
npmRegistryServer: "https://registry.npmjs.org"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
Expand Down
4 changes: 2 additions & 2 deletions client/config/test/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from "node:path";
import { buildVars } from "lowcoder-dev-utils/buildVars.js";
import { currentDirName } from "lowcoder-dev-utils/util.js";
import { buildVars } from "../../packages/lowcoder-dev-utils/buildVars.js";
import { currentDirName } from "../../packages/lowcoder-dev-utils/util.js";

const globals = {};
buildVars.forEach(({ name, defaultValue }) => {
Expand Down
7 changes: 4 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "taco-fe",
"version": "0.1.0",
"name": "lowcoder-root",
"version": "2.2.0",
"type": "module",
"private": true,
"workspaces": [
"packages/*"
"packages/*",
"packages/lowcoder-dev-utils"
],
"engines": {
"node": "^14.18.0 || >=16.0.0"
Expand Down
2 changes: 1 addition & 1 deletion client/packages/create-lowcoder-plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { spawn } from "cross-spawn";
import { writeFileSync, existsSync } from "node:fs";
import chalk from "chalk";
import { createCommand } from "commander";
import { readJson, currentDirName } from "lowcoder-dev-utils/util.js";
import { readJson, currentDirName } from "../lowcoder-dev-utils/util.js";

const currentDir = currentDirName(import.meta.url);
const pkg = readJson(path.resolve(currentDir, "./package.json"));
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-cli/config/paths.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from "node:path";
import fs from "node:fs";
import { currentDirName } from "lowcoder-dev-utils/util.js";
import { currentDirName } from "../../lowcoder-dev-utils/util.js";

const currentDir = currentDirName(import.meta.url);
const appDirectory = fs.realpathSync(process.cwd());
Expand Down
6 changes: 3 additions & 3 deletions client/packages/lowcoder-cli/config/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import react from "@vitejs/plugin-react";
import svgrPlugin from "vite-plugin-svgr";
import global from "rollup-plugin-external-globals";
import { buildVars } from "lowcoder-dev-utils/buildVars.js";
import { buildVars } from "../../lowcoder-dev-utils/buildVars.js";
import injectCss from "vite-plugin-css-injected-by-js";
import { getLibNames, getAllLibGlobalVarNames } from "lowcoder-dev-utils/external.js";
import { getLibNames, getAllLibGlobalVarNames } from "../../lowcoder-dev-utils/external.js";
import paths from "./paths.js";
import { defineConfig } from "vite";
import { readJson } from "lowcoder-dev-utils/util.js";
import { readJson } from "../../lowcoder-dev-utils/util.js";

const isProduction = process.env.NODE_ENV === "production";
const packageJson = readJson(paths.appPackageJson);
Expand Down
1 change: 1 addition & 0 deletions client/packages/lowcoder-dev-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.6",
"license": "MIT",
"type": "module",
"main": "external.js",
"description": "Lowcoder dev utils for lowcoder build process and lowcoder-cli",
"keywords": [
"lowcoder"
Expand Down
2 changes: 1 addition & 1 deletion client/packages/lowcoder-plugin-demo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CompIDE } from "lowcoder-sdk";
import { name, version, lowcoder } from "./package.json";
import compMap from "./src/index";

import "lowcoder-sdk/dist/style.css";
import "../lowcoder-sdk/dist/style.css";

function CompDevApp() {
return (
Expand Down
6 changes: 3 additions & 3 deletions client/packages/lowcoder-sdk/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import react from "@vitejs/plugin-react";
import viteTsconfigPaths from "vite-tsconfig-paths";
import svgrPlugin from "vite-plugin-svgr";
import path from "path";
import { ensureLastSlash } from "lowcoder-dev-utils/util";
import { buildVars } from "lowcoder-dev-utils/buildVars";
import { globalDepPlugin } from "lowcoder-dev-utils/globalDepPlguin";
import { ensureLastSlash } from "../lowcoder-dev-utils/util";
import { buildVars } from "../lowcoder-dev-utils/buildVars";
import { globalDepPlugin } from "../lowcoder-dev-utils/globalDepPlguin";

const define = {};
buildVars.forEach(({ name, defaultValue }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ export const InputComp = new UICompBuilder(childrenMap, (props) => {
<TextInputBasicSection {...children} />
<FormDataPropertyView {...children} />

{useContext(EditorContext).editorModeStatus === "layout" && (
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
children.label.getPropertyView()
)}

{useContext(EditorContext).editorModeStatus !== "layout" && (
{["logic", "both"].includes(useContext(EditorContext).editorModeStatus) && (
<><TextInputInteractionSection {...children} />
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
<Section name={sectionNames.advanced}>
Expand All @@ -94,7 +94,7 @@ export const InputComp = new UICompBuilder(childrenMap, (props) => {
<TextInputValidationSection {...children} />
</>
)}
{useContext(EditorContext).editorModeStatus === "layout" && (
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
<><Section name={sectionNames.style}>{children.style.getPropertyView()}</Section></>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,19 +209,19 @@ let MentionTmpComp = (function () {
{children.placeholder.propertyView({
label: trans("prop.placeholder"),
})}
{useContext(EditorContext).editorModeStatus !== "layout" && (
{["logic", "both"].includes(useContext(EditorContext).editorModeStatus) && (
children.mentionList.propertyView({
label: trans("mention.mentionList"),
})
)}
</Section>
<FormDataPropertyView {...children} />

{useContext(EditorContext).editorModeStatus === "layout" && (
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
children.label.getPropertyView()
)}

{useContext(EditorContext).editorModeStatus !== "layout" && (
{["logic", "both"].includes(useContext(EditorContext).editorModeStatus) && (
<><Section name={sectionNames.interaction}>
{children.onEvent.getPropertyView()}
{disabledPropertyView(children)}
Expand All @@ -240,11 +240,11 @@ let MentionTmpComp = (function () {
</Section></>
)}

{useContext(EditorContext).editorModeStatus === "layout" && (
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
<><Section name={sectionNames.style}>
{children.style.getPropertyView()}
</Section></>
)}
)}
</>
))
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ const PasswordTmpComp = (function () {
<TextInputBasicSection {...children} />
<FormDataPropertyView {...children} />

{useContext(EditorContext).editorModeStatus === "layout" && (
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
children.label.getPropertyView()
)}

{useContext(EditorContext).editorModeStatus !== "layout" && (
{["logic", "both"].includes(useContext(EditorContext).editorModeStatus) && (
<><TextInputInteractionSection {...children} />
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
<Section name={sectionNames.advanced}>
Expand All @@ -101,7 +101,7 @@ const PasswordTmpComp = (function () {
</Section></>
)}

{useContext(EditorContext).editorModeStatus === "layout" && (
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
<><Section name={sectionNames.style}>{children.style.getPropertyView()}</Section></>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ let TextAreaTmpComp = (function () {
<TextInputBasicSection {...children} />
<FormDataPropertyView {...children} />

{useContext(EditorContext).editorModeStatus === "layout" && (
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
children.label.getPropertyView()
)}

{useContext(EditorContext).editorModeStatus !== "layout" && (
{["logic", "both"].includes(useContext(EditorContext).editorModeStatus) && (
<><TextInputInteractionSection {...children} />
<Section name={sectionNames.layout}>
{children.autoHeight.getPropertyView()}
Expand All @@ -112,7 +112,7 @@ let TextAreaTmpComp = (function () {
<TextInputValidationSection {...children} /></>
)}

{useContext(EditorContext).editorModeStatus === "layout" && (
{["layout", "both"].includes(useContext(EditorContext).editorModeStatus) && (
<><Section name={sectionNames.style}>{children.style.getPropertyView()}</Section></>
)}
</>
Expand Down
6 changes: 3 additions & 3 deletions client/packages/lowcoder/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { visualizer } from "rollup-plugin-visualizer";
import path from "path";
import chalk from "chalk";
import { createHtmlPlugin } from "vite-plugin-html";
import { ensureLastSlash } from "lowcoder-dev-utils/util";
import { buildVars } from "lowcoder-dev-utils/buildVars";
import { globalDepPlugin } from "lowcoder-dev-utils/globalDepPlguin";
import { ensureLastSlash } from "../lowcoder-dev-utils/util";
import { buildVars } from "../lowcoder-dev-utils/buildVars";
import { globalDepPlugin } from "../lowcoder-dev-utils/globalDepPlguin";

dotenv.config();

Expand Down
112 changes: 56 additions & 56 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8356,9 +8356,9 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-only-ascii@patch:eslint-plugin-only-ascii@npm%3A0.0.0#./.yarn/patches/eslint-plugin-only-ascii-npm-0.0.0-29e3417685.patch::locator=taco-fe%40workspace%3A.":
"eslint-plugin-only-ascii@patch:eslint-plugin-only-ascii@npm%3A0.0.0#./.yarn/patches/eslint-plugin-only-ascii-npm-0.0.0-29e3417685.patch::locator=lowcoder-root%40workspace%3A.":
version: 0.0.0
resolution: "eslint-plugin-only-ascii@patch:eslint-plugin-only-ascii@npm%3A0.0.0#./.yarn/patches/eslint-plugin-only-ascii-npm-0.0.0-29e3417685.patch::version=0.0.0&hash=2893de&locator=taco-fe%40workspace%3A."
resolution: "eslint-plugin-only-ascii@patch:eslint-plugin-only-ascii@npm%3A0.0.0#./.yarn/patches/eslint-plugin-only-ascii-npm-0.0.0-29e3417685.patch::version=0.0.0&hash=2893de&locator=lowcoder-root%40workspace%3A."
dependencies:
requireindex: ~1.1.0
checksum: 681f936c1933b0bc01e2b360df9f05a4cdb0a545a026e0311da0105a60eb3cf6f2f81145e12e5bfefd16eeff9272acfb7e41cc78a587c0487c49f311cd176a2e
Expand Down Expand Up @@ -11942,6 +11942,58 @@ __metadata:
languageName: unknown
linkType: soft

"lowcoder-root@workspace:.":
version: 0.0.0-use.local
resolution: "lowcoder-root@workspace:."
dependencies:
"@babel/preset-env": ^7.20.2
"@babel/preset-typescript": ^7.18.6
"@lottiefiles/react-lottie-player": ^3.5.3
"@rollup/plugin-typescript": ^8.5.0
"@testing-library/jest-dom": ^5.16.5
"@testing-library/react": ^12.0.0
"@testing-library/user-event": ^13.2.1
"@types/ali-oss": ^6.16.4
"@types/file-saver": ^2.0.5
"@types/jest": ^29.2.2
"@types/mime": ^2.0.3
"@types/qrcode.react": ^1.0.2
"@types/react-grid-layout": ^1.3.0
"@types/react-helmet": ^6.1.5
"@types/react-resizable": ^3.0.5
"@types/react-router-dom": ^5.3.2
"@types/shelljs": ^0.8.11
"@types/styled-components": ^5.1.19
"@types/stylis": ^4.0.2
"@types/tern": 0.23.4
"@types/toposort": ^2.0.3
"@types/ua-parser-js": ^0.7.36
"@welldone-software/why-did-you-render": ^6.2.3
add: ^2.0.6
antd-mobile: ^5.28.0
babel-jest: ^29.3.0
babel-preset-react-app: ^10.0.1
chalk: 4
husky: ^8.0.1
jest: ^29.5.0
jest-environment-jsdom: ^29.5.0
lint-staged: ^13.0.1
lowcoder-dev-utils: "workspace:^"
mq-polyfill: ^1.1.8
number-precision: ^1.6.0
prettier: ^2.7.0
react-player: ^2.11.0
rimraf: ^3.0.2
rollup: ^2.79.0
shelljs: ^0.8.5
svgo: ^3.0.0
tui-image-editor: ^3.15.3
typescript: ^4.8.4
whatwg-fetch: ^3.6.2
yarn: ^1.22.19
languageName: unknown
linkType: soft

"lowcoder-sdk@workspace:^, lowcoder-sdk@workspace:packages/lowcoder-sdk":
version: 0.0.0-use.local
resolution: "lowcoder-sdk@workspace:packages/lowcoder-sdk"
Expand Down Expand Up @@ -15776,9 +15828,9 @@ __metadata:
languageName: node
linkType: hard

"react-virtualized@patch:react-virtualized@npm%3A9.22.3#./.yarn/patches/react-virtualized-npm-9.22.3-0fff3cbf64.patch::locator=taco-fe%40workspace%3A.":
"react-virtualized@patch:react-virtualized@npm%3A9.22.3#./.yarn/patches/react-virtualized-npm-9.22.3-0fff3cbf64.patch::locator=lowcoder-root%40workspace%3A.":
version: 9.22.3
resolution: "react-virtualized@patch:react-virtualized@npm%3A9.22.3#./.yarn/patches/react-virtualized-npm-9.22.3-0fff3cbf64.patch::version=9.22.3&hash=36eda7&locator=taco-fe%40workspace%3A."
resolution: "react-virtualized@patch:react-virtualized@npm%3A9.22.3#./.yarn/patches/react-virtualized-npm-9.22.3-0fff3cbf64.patch::version=9.22.3&hash=36eda7&locator=lowcoder-root%40workspace%3A."
dependencies:
"@babel/runtime": ^7.7.2
clsx: ^1.0.4
Expand Down Expand Up @@ -17532,58 +17584,6 @@ __metadata:
languageName: node
linkType: hard

"taco-fe@workspace:.":
version: 0.0.0-use.local
resolution: "taco-fe@workspace:."
dependencies:
"@babel/preset-env": ^7.20.2
"@babel/preset-typescript": ^7.18.6
"@lottiefiles/react-lottie-player": ^3.5.3
"@rollup/plugin-typescript": ^8.5.0
"@testing-library/jest-dom": ^5.16.5
"@testing-library/react": ^12.0.0
"@testing-library/user-event": ^13.2.1
"@types/ali-oss": ^6.16.4
"@types/file-saver": ^2.0.5
"@types/jest": ^29.2.2
"@types/mime": ^2.0.3
"@types/qrcode.react": ^1.0.2
"@types/react-grid-layout": ^1.3.0
"@types/react-helmet": ^6.1.5
"@types/react-resizable": ^3.0.5
"@types/react-router-dom": ^5.3.2
"@types/shelljs": ^0.8.11
"@types/styled-components": ^5.1.19
"@types/stylis": ^4.0.2
"@types/tern": 0.23.4
"@types/toposort": ^2.0.3
"@types/ua-parser-js": ^0.7.36
"@welldone-software/why-did-you-render": ^6.2.3
add: ^2.0.6
antd-mobile: ^5.28.0
babel-jest: ^29.3.0
babel-preset-react-app: ^10.0.1
chalk: 4
husky: ^8.0.1
jest: ^29.5.0
jest-environment-jsdom: ^29.5.0
lint-staged: ^13.0.1
lowcoder-dev-utils: "workspace:^"
mq-polyfill: ^1.1.8
number-precision: ^1.6.0
prettier: ^2.7.0
react-player: ^2.11.0
rimraf: ^3.0.2
rollup: ^2.79.0
shelljs: ^0.8.5
svgo: ^3.0.0
tui-image-editor: ^3.15.3
typescript: ^4.8.4
whatwg-fetch: ^3.6.2
yarn: ^1.22.19
languageName: unknown
linkType: soft

"tapable@npm:^0.2.3":
version: 0.2.9
resolution: "tapable@npm:0.2.9"
Expand Down