From c4ec2db160413bdac4b5c5f8d20e73b7c1f0d03d Mon Sep 17 00:00:00 2001 From: FalkWolsky Date: Sun, 8 Oct 2023 22:25:34 +0200 Subject: [PATCH 1/2] fixed issue #237, #335 --- .../lowcoder/src/appView/AppViewInstance.tsx | 4 ++-- client/packages/lowcoder/src/i18n/locales/en.ts | 12 ++++++------ client/packages/lowcoder/src/i18n/locales/enObj.tsx | 2 +- client/packages/lowcoder/src/i18n/locales/zh.ts | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/client/packages/lowcoder/src/appView/AppViewInstance.tsx b/client/packages/lowcoder/src/appView/AppViewInstance.tsx index ad4ddf901..4bcc9953b 100644 --- a/client/packages/lowcoder/src/appView/AppViewInstance.tsx +++ b/client/packages/lowcoder/src/appView/AppViewInstance.tsx @@ -35,8 +35,8 @@ export class AppViewInstance { private events = new Map[keyof EventHandlerMap]>(); private dataPromise: Promise<{ appDsl: any; moduleDslMap: any }>; private options: AppViewInstanceOptions = { - baseUrl: "https://api.lowcoder.dev", - webUrl: "https://cloud.lowcoder.dev", + baseUrl: "https://api-service.lowcoder.cloud", + webUrl: "https://app.lowcoder.cloud", }; constructor(private appId: string, private node: Element, options: AppViewInstanceOptions = {}) { diff --git a/client/packages/lowcoder/src/i18n/locales/en.ts b/client/packages/lowcoder/src/i18n/locales/en.ts index ddebe2166..de86ed3b9 100644 --- a/client/packages/lowcoder/src/i18n/locales/en.ts +++ b/client/packages/lowcoder/src/i18n/locales/en.ts @@ -2,7 +2,7 @@ import table from "./componentDocExtra/table.md?url"; export const en = { productName: "Lowcoder", - productDesc: "Build internal tools fast, with no limitations", + productDesc: "Create software applications for your Company and your Customers with minimal coding experience. Lowcoder is the best Retool, Appsmith or Tooljet Alternative.", notSupportedBrowser: "Your current browser may have compatibility issues. For a better user experience, it is recommended to use the latest version of the Chrome browser.", create: "Create", @@ -1292,7 +1292,7 @@ export const en = { }, audio: { src: "Audio URL", - defaultSrcUrl: "https://cdn-files.lowcoder.dev/canon-excerpt.mp3", + defaultSrcUrl: "https://cdn-files.lowcoder.cloud/canon-excerpt.mp3", autoPlay: "Autoplay", loop: "Loop", srcDesc: "Current audio URL", @@ -1650,7 +1650,7 @@ export const en = { phoneColumn: "Phone", subTitle: "Title", linkLabel: "Link", - linkUrl: "cloud.lowcoder.dev", + linkUrl: "app.lowcoder.cloud", progressLabel: "Progress", sliderLabel: "Slider", radioLabel: "Radio", @@ -2128,7 +2128,7 @@ export const en = { }, docUrls: { docHome: "https://docs.lowcoder.cloud/", - components: "https://cloud.lowcoder.dev/components?n={compType}", + components: "https://app.lowcoder.cloud/components?n={compType}", module: "", optionList: "", terms: "", @@ -2170,9 +2170,9 @@ export const en = { }, componentDoc: { markdownDemoText: - "**Lowcoder** is a _developer-friendly_ open-source low code platform to build internal apps within minutes.", + "**Lowcoder** | Create software applications for your Company and your Customers with minimal coding experience. Lowcoder is the best Retool, Appsmith or Tooljet Alternative.", demoText: - "Lowcoder is a developer-friendly open-source low code platform to build internal apps within minutes.", + "Lowcoder | Create software applications for your Company and your Customers with minimal coding experience. Lowcoder is the best Retool, Appsmith or Tooljet Alternative.", submit: "Submit", style: "style", danger: "Danger", diff --git a/client/packages/lowcoder/src/i18n/locales/enObj.tsx b/client/packages/lowcoder/src/i18n/locales/enObj.tsx index 433abe000..9fb48c420 100644 --- a/client/packages/lowcoder/src/i18n/locales/enObj.tsx +++ b/client/packages/lowcoder/src/i18n/locales/enObj.tsx @@ -112,7 +112,7 @@ export const enObj: I18nObjects = { ], }, editorTutorials: { - mockDataUrl: "https://63621db87521369cd06514c2.mockapi.io/api/lowcoder/users", + mockDataUrl: "https://63621db87521369cd06514c2.mockapi.io/api/lowcoder/userhttps://6523073ef43b179384152c4f.mockapi.io/api/lowcoder/users", data: (code) => ( <> The component and query data are listed here, which can be referenced through diff --git a/client/packages/lowcoder/src/i18n/locales/zh.ts b/client/packages/lowcoder/src/i18n/locales/zh.ts index 753c456c6..18ed88e7f 100644 --- a/client/packages/lowcoder/src/i18n/locales/zh.ts +++ b/client/packages/lowcoder/src/i18n/locales/zh.ts @@ -1271,7 +1271,7 @@ jsonExplorer: { }, audio: { src: "音频链接", - defaultSrcUrl: "https://cdn-files.lowcoder.dev/canon-excerpt.mp3", + defaultSrcUrl: "https://cdn-files.lowcoder.cloud/canon-excerpt.mp3", autoPlay: "自动播放", loop: "循环播放", srcDesc: "当前音频链接", @@ -1627,7 +1627,7 @@ theme: { phoneColumn: "电话", subTitle: "标题", linkLabel: "链接", - linkUrl: "cloud.lowcoder.dev", + linkUrl: "app.lowcoder.cloud", progressLabel: "进度", sliderLabel: "滑块", radioLabel: "单选按钮", @@ -2095,7 +2095,7 @@ toggleButton: { }, docUrls: { docHome: "https://docs.lowcoder.cloud/", - components: "https://cloud.lowcoder.dev/components?n={compType}", + components: "https://app.lowcoder.cloud/components?n={compType}", module: "", optionList: "", terms: "", From 01188305c1374d48f9aaff3d0e73940924c59e0e Mon Sep 17 00:00:00 2001 From: FalkWolsky Date: Mon, 9 Oct 2023 09:44:09 +0200 Subject: [PATCH 2/2] fix wrong API url --- client/packages/lowcoder/src/i18n/locales/enObj.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/packages/lowcoder/src/i18n/locales/enObj.tsx b/client/packages/lowcoder/src/i18n/locales/enObj.tsx index 9fb48c420..3165610d4 100644 --- a/client/packages/lowcoder/src/i18n/locales/enObj.tsx +++ b/client/packages/lowcoder/src/i18n/locales/enObj.tsx @@ -112,7 +112,7 @@ export const enObj: I18nObjects = { ], }, editorTutorials: { - mockDataUrl: "https://63621db87521369cd06514c2.mockapi.io/api/lowcoder/userhttps://6523073ef43b179384152c4f.mockapi.io/api/lowcoder/users", + mockDataUrl: "https://6523073ef43b179384152c4f.mockapi.io/api/lowcoder/users", data: (code) => ( <> The component and query data are listed here, which can be referenced through