From 6c39338150ed483228bb907895b3b19cedcd2263 Mon Sep 17 00:00:00 2001 From: meta-d Date: Wed, 27 Mar 2024 16:45:23 +0800 Subject: [PATCH] feat: final v0.2.0 --- .github/workflows/publish-npm-cap-odata.yml | 2 +- README.md | 8 +++- README_zh.md | 9 ++-- .../apps/launchpad/src/app/app.routes.ts | 3 +- .../workbench/workbench.component.html | 46 +++++++++--------- .../workbench/workbench.component.ts | 2 +- .../list-report/list-report.component.ts | 2 +- .../personal-setting/base/base.component.less | 2 - btp-cap-monorepo/package.json | 48 +++++++++---------- .../packages/contracts/package.json | 2 +- 10 files changed, 65 insertions(+), 59 deletions(-) diff --git a/.github/workflows/publish-npm-cap-odata.yml b/.github/workflows/publish-npm-cap-odata.yml index e6ea6a6..a34eec5 100644 --- a/.github/workflows/publish-npm-cap-odata.yml +++ b/.github/workflows/publish-npm-cap-odata.yml @@ -5,7 +5,7 @@ on: tags: - '*' paths: - - "btp-cap-monorepo/**" + - "btp-cap-monorepo/packages/odata**" workflow_run: workflows: ["Build"] types: [requested] diff --git a/README.md b/README.md index d36ea7e..41a7d6b 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,15 @@ ## 💡 What's New -The BTP Fiori template project has now incorporated the AI Copilot feature, which can assist you in handling everyday tasks using AI. It can answer questions you ask and can also automate operations through custom commands. You can find more information on how to use it on the [AI Copilot](./docs/copilot/Setup.md) page. +The NGen (BTP CAP Fiori) project has now released version 0.2.0, with the following updates: +- Fixed several issues and improved stability. +- Updated dependency on AI Copilot to version 2.0. For details, please refer to [AI Copilot](https://github.com/meta-d/sap-fiori-templates/wiki/Copilot.Setup). +- Upgraded to Angular 17.3, adding support for signal patterns such as input, model, and ViewChild. +- Enhanced documentation in the [wiki](https://github.com/meta-d/sap-fiori-templates/wiki). ## 🌟 What is this? -This is a collection of SAP BTP & Fiori application templates built by third-party front-end frameworks (Angular, Vue, React, etc.). It is based on [Nx](https://nx.dev) and [UI5 Tooling](https://sap.github.io/ui5-tooling/). +This **NGen** is a collection of SAP BTP & Fiori application templates built by third-party front-end frameworks (Angular, Vue, React, etc.). It is based on [Nx](https://nx.dev) and [UI5 Tooling](https://sap.github.io/ui5-tooling/). There are several advantages to using open-source frameworks to create BTP & Fiori applications: diff --git a/README_zh.md b/README_zh.md index b8e6dce..ff05b53 100644 --- a/README_zh.md +++ b/README_zh.md @@ -22,12 +22,15 @@ ## 💡 新功能 -BTP Fiori 模板项目现已加入 AI Copilot 功能,它可以帮助您使用 AI 处理日常事务。她可以回答您提问的问题,还可以通过自定义命令来实现自动化操作。 -您可以在 [AI Copilot](./docs/copilot/Setup.md) 页面了解更多使用信息。 +NGen (BTP CAP Fiori) 项目现已发布 0.2.0 版本,更新内容如下: +- 修复了一些问题,提高了稳定性 +- 更新依赖 AI Copilot 到 2.0 版本,详情请查看 [AI Copilot](https://github.com/meta-d/sap-fiori-templates/wiki/Copilot.Setup) +- 升级至 Angular 17.3 支持 input,model,viewChild 等 signal 模式 +- 完善 [wiki](https://github.com/meta-d/sap-fiori-templates/wiki) 文档 ## 🌟 这是什么? -这是一个由第三方前端框架(Angular、Vue、React等)构建的 SAP BTP & Fiori 应用程序模板集合。它基于 [Nx](https://nx.dev) 和 [UI5 Tooling](https://sap.github.io/ui5-tooling/)。 +**NGen** 是一个由第三方前端框架(Angular、Vue、React等)构建的 SAP BTP & Fiori 应用程序模板集合。它基于 [Nx](https://nx.dev) 和 [UI5 Tooling](https://sap.github.io/ui5-tooling/)。 使用开源框架来创建 BTP & Fiori 应用有很多优势: * AI Copilot 功能,可以回答您提问的问题,还可以通过自定义命令来实现自动化操作。 diff --git a/btp-cap-monorepo/apps/launchpad/src/app/app.routes.ts b/btp-cap-monorepo/apps/launchpad/src/app/app.routes.ts index 360bb12..97a1b07 100644 --- a/btp-cap-monorepo/apps/launchpad/src/app/app.routes.ts +++ b/btp-cap-monorepo/apps/launchpad/src/app/app.routes.ts @@ -93,5 +93,6 @@ export const appRoutes: Routes = [ key: 'bi-platform' }, loadChildren: () => import('./bi/bi.module').then((m) => m.BIModule) - }] : []) + }] : []), + { path: '**', redirectTo: '/dashboard/workbench' } ] \ No newline at end of file diff --git a/btp-cap-monorepo/apps/launchpad/src/app/demo/dashboard/workbench/workbench.component.html b/btp-cap-monorepo/apps/launchpad/src/app/demo/dashboard/workbench/workbench.component.html index eb6ace5..85f10da 100644 --- a/btp-cap-monorepo/apps/launchpad/src/app/demo/dashboard/workbench/workbench.component.html +++ b/btp-cap-monorepo/apps/launchpad/src/app/demo/dashboard/workbench/workbench.component.html @@ -1,8 +1,8 @@
@@ -12,21 +12,21 @@
-

早安,元数信息,祝你开心每一天!

-
ERP 专家 |元数信息-SAP BTP & Fiori 技术栈
+

Good morning, Metad Information, wish you a happy day!

+
ERP Expert | Meta Information - SAP BTP & Fiori Stack
- + - + - +
@@ -39,32 +39,32 @@

早安,
- +
- +
- 小华 - 4 年前 + Xiao Hua + 4 years ago
- + - 工厂生产计划 - 项目 - 已成功上线! + Factory Production Plan + Project + successfully launched! - 19 天前 + 19 days ago @@ -75,27 +75,27 @@

早安,
- +
- +
@for (team of teams(); track team) {
@@ -114,10 +114,10 @@

早安, - 全部项目 + All Projects Angular - + \ No newline at end of file diff --git a/btp-cap-monorepo/apps/launchpad/src/app/demo/dashboard/workbench/workbench.component.ts b/btp-cap-monorepo/apps/launchpad/src/app/demo/dashboard/workbench/workbench.component.ts index 4b3ff04..c741b00 100644 --- a/btp-cap-monorepo/apps/launchpad/src/app/demo/dashboard/workbench/workbench.component.ts +++ b/btp-cap-monorepo/apps/launchpad/src/app/demo/dashboard/workbench/workbench.component.ts @@ -103,7 +103,7 @@ export class WorkbenchComponent implements AfterViewInit { seriesField: 'user', meta: { score: { - alias: '分数', + alias: 'Score', min: 0, max: 80 } diff --git a/btp-cap-monorepo/apps/launchpad/src/app/demo/elements/list-report/list-report.component.ts b/btp-cap-monorepo/apps/launchpad/src/app/demo/elements/list-report/list-report.component.ts index b64e596..1421153 100644 --- a/btp-cap-monorepo/apps/launchpad/src/app/demo/elements/list-report/list-report.component.ts +++ b/btp-cap-monorepo/apps/launchpad/src/app/demo/elements/list-report/list-report.component.ts @@ -105,7 +105,7 @@ export class ListReportComponent { this.filters = filters } - onColumnsChange(event: TableColumn[]) { + onColumnsChange(event: TableColumn<_ProductType>[]) { this.tableColumns.set(event) } diff --git a/btp-cap-monorepo/apps/launchpad/src/app/demo/page/personal/personal-setting/base/base.component.less b/btp-cap-monorepo/apps/launchpad/src/app/demo/page/personal/personal-setting/base/base.component.less index 0b65b68..38035ed 100644 --- a/btp-cap-monorepo/apps/launchpad/src/app/demo/page/personal/personal-setting/base/base.component.less +++ b/btp-cap-monorepo/apps/launchpad/src/app/demo/page/personal/personal-setting/base/base.component.less @@ -1,5 +1,3 @@ -@import 'base'; - .avatar { padding-left: 104px; diff --git a/btp-cap-monorepo/package.json b/btp-cap-monorepo/package.json index 27bb502..1ab370e 100644 --- a/btp-cap-monorepo/package.json +++ b/btp-cap-monorepo/package.json @@ -1,6 +1,6 @@ { "name": "@metad/btp-cap-monorepo", - "version": "0.1.0", + "version": "0.2.0", "license": "MIT", "scripts": { "start": "yarn start:btp", @@ -25,26 +25,26 @@ "private": true, "dependencies": { "@amap/amap-jsapi-loader": "^1.0.1", - "@angular/animations": "17.2.2", - "@angular/common": "17.2.2", - "@angular/compiler": "17.2.2", - "@angular/core": "17.2.2", - "@angular/forms": "17.2.2", - "@angular/material": "17.2.2", - "@angular/platform-browser": "17.2.2", - "@angular/platform-browser-dynamic": "17.2.2", - "@angular/router": "17.2.2", - "@angular/service-worker": "17.2.2", + "@angular/animations": "~17.3.0", + "@angular/common": "~17.3.0", + "@angular/compiler": "~17.3.0", + "@angular/core": "~17.3.0", + "@angular/forms": "~17.3.0", + "@angular/material": "~17.2.2", + "@angular/platform-browser": "~17.3.0", + "@angular/platform-browser-dynamic": "~17.3.0", + "@angular/router": "~17.3.0", + "@angular/service-worker": "~17.3.0", "@ant-design/icons-angular": "^17.0.0", "@antv/g2plot": "^2.4.31", "@antv/x6": "^2.16.1", "@antv/x6-plugin-dnd": "^2.1.1", - "@metad/copilot": "2.0.0-beta.3", - "@metad/ocap-angular": "2.0.0-beta.3", - "@metad/ocap-core": "2.0.0-beta.3", - "@metad/ocap-echarts": "2.0.0-beta.3", - "@metad/ocap-xmla": "2.0.0-beta.3", - "@metad/store": "2.0.0-beta.3", + "@metad/copilot": "2.0.0", + "@metad/ocap-angular": "2.0.0", + "@metad/ocap-core": "2.0.0", + "@metad/ocap-echarts": "2.0.0", + "@metad/ocap-xmla": "2.0.0", + "@metad/store": "2.0.0", "@ngneat/overview": "^5.1.1", "@ngx-translate/core": "^15.0.0", "@ngx-translate/http-loader": "^8.0.0", @@ -89,16 +89,16 @@ "zone.js": "~0.14.0" }, "devDependencies": { - "@angular-devkit/build-angular": "~17.2.1", - "@angular-devkit/core": "~17.2.1", - "@angular-devkit/schematics": "~17.2.1", + "@angular-devkit/build-angular": "~17.3.0", + "@angular-devkit/core": "~17.3.0", + "@angular-devkit/schematics": "~17.3.0", "@angular-eslint/eslint-plugin": "~17.2.1", "@angular-eslint/eslint-plugin-template": "~17.2.1", "@angular-eslint/template-parser": "~17.2.1", - "@angular/cli": "17.2.2", - "@angular/compiler-cli": "17.2.2", - "@angular/language-service": "17.2.1", - "@angular/pwa": "^17.2.2", + "@angular/cli": "~17.3.0", + "@angular/compiler-cli": "~17.3.0", + "@angular/language-service": "~17.3.0", + "@angular/pwa": "~17.3.0", "@nx/angular": "17.2.8", "@nx/devkit": "17.2.8", "@nx/eslint": "17.2.8", diff --git a/btp-cap-monorepo/packages/contracts/package.json b/btp-cap-monorepo/packages/contracts/package.json index e341d81..3c5310e 100644 --- a/btp-cap-monorepo/packages/contracts/package.json +++ b/btp-cap-monorepo/packages/contracts/package.json @@ -1,6 +1,6 @@ { "name": "@metad/cap-contracts", - "version": "0.1.0", + "version": "0.2.0", "dependencies": {}, "main": "./index.js", "module": "./index.mjs",