-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: apply repo * feat: convert ts2js * fix: fix type name * chore: remove console * chore: version * chore: remove code * refactor: remove iceworks-cli * feat: support transform ts to js * chore: version * refactor: rename Iceworks Material Helper to React Component Helper * docs: update logo * chore: lint * feat: i18n 功能包 * feat: extension 示例 iceworks-app 国际化 * docs: typo * chore: remove material-import package.json * feat: add package transform-ts-to-js to tsconfig.json * feat: 改变了编译顺序,将 i18n package 导出的实体变为导出类。 * feat: web 示例 iceworks-app 设置页面 * refactor: 根据 i8n 的新导出方式进行更新,删除无用行,更改模板及引用方式 * feat: 使用 useEffect 函数进行异步加载 * feat: 改变了编译顺序,将 i18n package 导出的实体变为导出类。 * refactor: move export to bottom * feat: i18n for packages/block-service * refactor: format codes and delete useless file `util/i18n.ts` * feat: replace injectIntl with `useIntl` hook and format codes * feat: addLocalProvider To Pages/*/index for i18n * refactor: add `[]` param to useEffect, update en-US JSON and app.tsx * feat: add ui * feat: support ejs options * fix: error styles * fix: lint * feat: i18n for packages/project-service * refactor: uv/pv logic * refactor: pv|uv * style: camel case * chore: add comments * chore: version & change log * Hotfix: rax scaffolds title app type icon disappear (#296) * fix: rax scaffolds title app type icon disappear * chore: version * refactor: do not export recordPV and recordUV, using record * fix: add i18n dep to package.json * feat: types * feat: i18n for packages/page-service * feat: i18n for packages/material-service * fix: ejs options * fix: useState name * feat: i18n for packages/component-service * chore: generate-project version * feat: i18n for project-creator * feat: i18n for page-builder * feat: i18n for material-helper * feat: i18n for Iceworks-component-builder (#301) * feat: i18n for Iceworks-component-generater * fix: fix double alerts bug and add iceworks/i18n to dep * fix: web i18n * style: remove empty line * fix: ignore i18n error * chore: remove unnecessary code * chore: remove unnecessary note * feat: support next locale * style: indent * fix: delete redundant codes Co-authored-by: alvinhui <alvin.hui@qq.com> * refactor: update i18n in extension and i18n.tsx in web * fix: default locale * chore: version * chore: types * refactor: 0.1.0 should be first version * chore: url extraction as constant (#318) * chore: url extraction as constant * style: indent * fix: en-US errors * feat: support webapp and assets def project (#299) * docs: update gifs for en-US (#325) * fix: update i18n translations * docs: update i18n doc gifs (#324) * docs: update i18n doc gifs * docs: update component builder gifs * docs: update material-helper and page-bulder doc gifs * fix: fail to debug extension in development env (#326) * fix: fail to debug extension in development * fix: fail-to-debug-extension-in-development * docs: change slogan for en-US (#327) * docs: add markdownlint to ci and update docs (#328) * fix: update i18n translations * docs: update i18n doc gifs (#324) * docs: update i18n doc gifs * docs: update component builder gifs * docs: update material-helper and page-bulder doc gifs * feat: add docslInt in ci * docs: update docs due to markdownlint * fix: update material helper demo * fix: fix URl to URL * fix: fail to install deps when import materials (#329) * fix: create a new terminal to install deps * chore: remove repeated bulkDownload code * chore: version * refactor: update code due to code style (#331) * chore: record locale (#332) * docs: change slogan for en-US * chore: record locale * fix: fail get material detail in unknown project (#333) * fix: fail to get material detail in unknown project * fix: change specifiedType in getSources method * chore: version * feat: get user info through def client login (#323) * feat: def login client * feat: get user info in web * fix: eslint * feat: get def-login-client zip * feat: add install def-login-client-deps * style: change IIFE * fix: style * chore: accesskey * fix: access key not found in ci setup * fix: ci * fix: fix by the comment * fix: lint * feat: not run the script when key unexist * fix: lint * refactor: encode alibaba-inc (#335) * refactor: encode constants with 'alibaba-Inc' * fix: add js-base dep to package.json * fix: eslint err * fix: use namespace to make test work * feat: add docs check to CI (#338) * chore: change version add CHANGLOG * fix: package publishConfig * fix: extension build size is too bulky (#340) * fix: en-US translation (#339) * fix: change material-import to material-helper (#341) * fix: beta and prod publish env (#343) * chore: title typo (#342) * chore: title typo * chore: settings * fix: gitlab url (#345) * chore: typo Co-authored-by: yangfan <18767120422@163.com> Co-authored-by: alvinhui <alvin.hui@qq.com> Co-authored-by: sspku-yqLiu <liuyongqi@pku.edu.cn> Co-authored-by: sspku-yqLiu <56879942+sspku-yqLiu@users.noreply.github.com>
- Loading branch information
1 parent
c605225
commit fd4ce99
Showing
252 changed files
with
4,186 additions
and
5,716 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ build/ | |
tests/ | ||
demo/ | ||
.ice/ | ||
packages/common-service/def-login-client/ | ||
|
||
# node 覆盖率文件 | ||
coverage/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import * as vscode from 'vscode'; | ||
import I18nService from '@iceworks/i18n'; | ||
import * as zhCNTextMap from './locales/zh-CN.json'; | ||
import * as enUSTextMap from './locales/en-US.json'; | ||
|
||
// 注册语言表 | ||
const i18n = new I18nService(); | ||
i18n.registry('zh-cn', zhCNTextMap); | ||
i18n.registry('en', enUSTextMap); | ||
|
||
// 设置使用的语言 | ||
i18n.setLocal(vscode.env.language); | ||
|
||
export default i18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"extension.iceworksApp.showExtensionsQuickPick.projectCreater.label": "Iceworks Create Application", | ||
"extension.iceworksApp.showExtensionsQuickPick.projectCreater.detail": "Create a Universal Application(React/Rax/Vue, etc) quickly.", | ||
"extension.iceworksApp.showExtensionsQuickPick.pageBuilder.label": "Iceworks Generate Page", | ||
"extension.iceworksApp.showExtensionsQuickPick.pageBuilder.detail": "Build Page UI by low-code way.", | ||
"extension.iceworksApp.showExtensionsQuickPick.generateComponent.label": "Iceworks Create Component", | ||
"extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail": "Build Component UI by low-code way.", | ||
"extension.iceworksApp.showExtensionsQuickPick.materialImport.label": "Iceworks Import Component", | ||
"extension.iceworksApp.showExtensionsQuickPick.materialImport.detail": "Add Component to the Application in a visual way.", | ||
"extension.iceworksApp.showDepsInputBox.materialImport.placeHolder": "for example: lodash react@latest.", | ||
"extension.iceworksApp.showDepsInputBox.materialImport.prompt": "Please enter the name of the dependency to be addded to <%= depType %>. Multiple dependencies should be spilted by Spaces.", | ||
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.label": "Daily", | ||
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.detail": "Release to daily environment.", | ||
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.label": "Production", | ||
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.detail": "Release to production environment.", | ||
"extension.iceworksApp.showDepsQuickPick.quickPickItem.detail": "Install <%= label %>", | ||
"extension.iceworksApp.openEntryFile.ErrorMessage": "Cannot find entry", | ||
"extension.iceworksApp.extension.title": "Iceworks Settings", | ||
"extension.iceworksApp.extebsion.emptyWorkplace": "Current workspace is empty, please open or create an application." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"extension.iceworksApp.showExtensionsQuickPick.projectCreater.label": "Iceworks 创建应用", | ||
"extension.iceworksApp.showExtensionsQuickPick.projectCreater.detail": "快速创建多端应用(例如:React/Rax/Vue...)", | ||
"extension.iceworksApp.showExtensionsQuickPick.pageBuilder.label": "Iceworks 生成页面", | ||
"extension.iceworksApp.showExtensionsQuickPick.pageBuilder.detail": "使用低代码的方式生成网页视图", | ||
"extension.iceworksApp.showExtensionsQuickPick.generateComponent.label": "Iceworks 生成组件", | ||
"extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail": "使用低代码的方式生成前端组件", | ||
"extension.iceworksApp.showExtensionsQuickPick.materialImport.label": "Iceworks 使用物料", | ||
"extension.iceworksApp.showExtensionsQuickPick.materialImport.detail": "使用可视化的方式添加物料到应用中", | ||
"extension.iceworksApp.showDepsInputBox.materialImport.placeHolder": "例如: lodash react@latest", | ||
"extension.iceworksApp.showDepsInputBox.materialImport.prompt": "请输入需要添加到 <%= depType %> 的依赖名称, 支持通过空格添加多个依赖", | ||
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.label": "日常环境", | ||
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.detail": "发布到日常环境", | ||
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.label": "生产环境", | ||
"extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.detail": "发布到生产环境", | ||
"extension.iceworksApp.showDepsQuickPick.quickPickItem.detail": "安装 <%= label %>", | ||
"extension.iceworksApp.openEntryFile.ErrorMessage": "没有找到入口", | ||
"extension.iceworksApp.extension.title": "设置 - Iceworks", | ||
"extension.iceworksApp.extebsion.emptyWorkplace": "当前工作区为空,请打开应用或新建应用。" | ||
} |
14 changes: 9 additions & 5 deletions
14
extensions/iceworks-app/src/quickPicks/showDefPublishEnvQuickPick.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.