Skip to content

Commit ed0305b

Browse files
committed
bug fix & version => 1.1.2
1. color picker fix 2. tutorial fix
1 parent 51b0c41 commit ed0305b

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

client/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.1
1+
1.1.2

client/packages/openblocks/src/comps/controls/colorControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ColorContainer = styled.div`
1212
align-items: flex-start;
1313
justify-content: space-between;
1414
float: right;
15-
gap: 8px;
15+
gap: 6px;
1616
margin-left: -24px;
1717
> div:nth-of-type(1) {
1818
margin: 3px 0;

client/packages/openblocks/src/i18n/locales/en.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ export const en = {
14481448
},
14491449
pluginSetting: {
14501450
title: "Plugins",
1451-
npmPluginTitle: "NPM plugins",
1451+
npmPluginTitle: "npm plugins",
14521452
npmPluginDesc: "Set up npm plugins for all applications in the current workspace.",
14531453
npmPluginEmpty: "No npm plugins were added.",
14541454
npmPluginAddButton: "Add a npm plugin",
@@ -1830,7 +1830,7 @@ export const en = {
18301830
pluginExisted: "This npm plugin already existed",
18311831
compNotFound: "Component {compName} not found.",
18321832
addPluginModalTitle: "Add npm plugin",
1833-
pluginNameLabel: "NPM package's URL or name",
1833+
pluginNameLabel: "npm package's URL or name",
18341834
noCompText: "No components.",
18351835
compsLoading: "Loading...",
18361836
removePluginBtnText: "Remove",

client/packages/openblocks/src/pages/tutorials/editorTutorials.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { trans } from "i18n";
3232
import { i18nObjs } from "../../i18n/index";
3333
import { DatasourceInfo, HttpConfig } from "api/datasourceApi";
3434
import { enObj } from "i18n/locales";
35+
import { QUICK_REST_API_ID } from "constants/datasourceConstants";
3536

3637
const tourSteps: Step[] = [
3738
{
@@ -172,11 +173,6 @@ function addQuery(editorState: EditorState, datasourceInfos: DatasourceInfo[]) {
172173
);
173174
} else {
174175
// there's no sample data source, fall back to api source
175-
const apiDataSource = datasourceInfos.find(
176-
(info) =>
177-
info.datasource.type === "restApi" &&
178-
(info.datasource.datasourceConfig as HttpConfig).url === ""
179-
);
180176
queriesComp.dispatch(
181177
queriesComp.pushAction({
182178
id: id,
@@ -186,7 +182,7 @@ function addQuery(editorState: EditorState, datasourceInfos: DatasourceInfo[]) {
186182
path: i18nObjs.editorTutorials.mockDataUrl || enObj.editorTutorials.mockDataUrl,
187183
bodyType: "application/json",
188184
},
189-
datasourceId: apiDataSource?.datasource.id,
185+
datasourceId: QUICK_REST_API_ID,
190186
triggerType: "manual",
191187
})
192188
);
@@ -227,11 +223,11 @@ export default function EditorTutorials() {
227223

228224
const openTableData = () => {
229225
const ele = document.getElementsByClassName(leftCompListClassName)[0];
230-
const table = ele?.getElementsByClassName("ant-tree-title")[1];
226+
const table = ele?.getElementsByClassName("ant-tree-title")[0];
231227
if (table) {
232228
(table as HTMLDivElement)?.click();
233229
}
234-
}
230+
};
235231

236232
const handleJoyrideCallback = (data: CallBackProps) => {
237233
const { status, index, action, type } = data;

0 commit comments

Comments
 (0)