Skip to content

Commit

Permalink
feat: final v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-d committed Mar 27, 2024
1 parent d16f27a commit 6c39338
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm-cap-odata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
tags:
- '*'
paths:
- "btp-cap-monorepo/**"
- "btp-cap-monorepo/packages/odata**"
workflow_run:
workflows: ["Build"]
types: [requested]
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
9 changes: 6 additions & 3 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 功能,可以回答您提问的问题,还可以通过自定义命令来实现自动化操作。
Expand Down
3 changes: 2 additions & 1 deletion btp-cap-monorepo/apps/launchpad/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ export const appRoutes: Routes = [
key: 'bi-platform'
},
loadChildren: () => import('./bi/bi.module').then((m) => m.BIModule)
}] : [])
}] : []),
{ path: '**', redirectTo: '/dashboard/workbench' }
]
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<nz-page-header [nzGhost]="false"
class="site-page-header"
nzBackIcon
nzTitle="工作台"
nzSubtitle="日常工作"
nzTitle="Dashboard"
nzSubtitle="Daily Work"
>
<nz-page-header-content>
<div class="mini-screen" nz-row>
Expand All @@ -12,21 +12,21 @@
<img alt="" src="assets/images/default-user.jpg" />
</div>
<div nz-col nzFlex="1">
<h4 class="left-start-center m-0" nz-typography style="height: 50%">早安,<a href="https://mtda.cloud/sap/">元数信息</a>,祝你开心每一天!</h4>
<div class="left-start-center" nz-typography nzType="secondary" style="height: 50%">ERP 专家 |元数信息-SAP BTP & Fiori 技术栈</div>
<h4 class="left-start-center m-0" nz-typography style="height: 50%">Good morning, <a href="https://mtda.cloud/sap/">Metad Information</a>, wish you a happy day!</h4>
<div class="left-start-center" nz-typography nzType="secondary" style="height: 50%">ERP Expert | Meta Information - SAP BTP & Fiori Stack</div>
</div>
</div>
</div>
<div nz-col nzFlex="280px">
<nz-row>
<nz-col [nzSpan]="8">
<nz-statistic [nzTitle]="'项目数'" [nzValue]="(56 | number)!"></nz-statistic>
<nz-statistic [nzTitle]="'Projects'" [nzValue]="(56 | number)!"></nz-statistic>
</nz-col>
<nz-col [nzSpan]="8">
<nz-statistic [nzTitle]="'团队内排名'" [nzValue]="'8/24'"></nz-statistic>
<nz-statistic [nzTitle]="'Team Ranking'" [nzValue]="'8/24'"></nz-statistic>
</nz-col>
<nz-col [nzSpan]="8">
<nz-statistic [nzTitle]="'项目访问'" [nzValue]="(2223 | number)!"></nz-statistic>
<nz-statistic [nzTitle]="'Project Visits'" [nzValue]="(2223 | number)!"></nz-statistic>
</nz-col>
</nz-row>
</div>
Expand All @@ -39,32 +39,32 @@ <h4 class="left-start-center m-0" nz-typography style="height: 50%">早安,<a
<div nz-col [nzLg]="24" [nzMd]="24" [nzSm]="24" [nzXl]="16" [nzXs]="24" [nzXXl]="16">
<div nz-row [nzGutter]="[32, 32]">
<div nz-col nzSpan="24">
<nz-card nzTitle="进行中的项目" [nzExtra]="extraTemplate">
<nz-card nzTitle="Ongoing Projects" [nzExtra]="extraTemplate">
<div nz-row>
<div *ngFor="let i of 6 | numberLoop" nz-card-grid nz-col [nzLg]="8" [nzMd]="12" [nzSm]="24" [nzXl]="8" [nzXs]="24" [nzXXl]="8">
<nz-card-meta nzDescription="现代化 Fiori 界面已应用至生产环境" [nzTitle]="cardTitleTpl"></nz-card-meta>
<nz-card-meta nzDescription="Modern Fiori interface has been applied to production environment" [nzTitle]="cardTitleTpl"></nz-card-meta>
<div class="card-foot">
<span nz-typography nzType="secondary">小华</span>
<span nz-typography nzType="secondary">4 年前</span>
<span nz-typography nzType="secondary">Xiao Hua</span>
<span nz-typography nzType="secondary">4 years ago</span>
</div>
</div>
</div>
</nz-card>
</div>
<div nz-col nzSpan="24">
<nz-card nzTitle="动态">
<nz-card nzTitle="Activity">
<nz-list>
<nz-list-item *ngFor="let item of 6 | numberLoop" style="padding: 16px 24px">
<nz-list-item-meta>
<nz-list-item-meta-avatar [nzSrc]="'assets/imgs/default_face.png'"></nz-list-item-meta-avatar>
<nz-list-item-meta-title>
<a>
工厂生产计划
<span class="operate-text">项目</span>
<span class="operate-text">已成功上线!</span>
Factory Production Plan
<span class="operate-text">Project</span>
<span class="operate-text">successfully launched!</span>
</a>
</nz-list-item-meta-title>
<nz-list-item-meta-description>19 天前</nz-list-item-meta-description>
<nz-list-item-meta-description>19 days ago</nz-list-item-meta-description>
</nz-list-item-meta>
</nz-list-item>
</nz-list>
Expand All @@ -75,27 +75,27 @@ <h4 class="left-start-center m-0" nz-typography style="height: 50%">早安,<a
<div nz-col [nzLg]="24" [nzMd]="24" [nzSm]="24" [nzXl]="8" [nzXs]="24" [nzXXl]="8">
<div nz-row [nzGutter]="[32, 32]">
<div nz-col nzSpan="24">
<nz-card nzTitle="快速开始/便捷导航">
<nz-card nzTitle="Quick Start/Easy Navigation">
<div nz-row [nzGutter]="[16, 16]">
<div *ngFor="let item of 6 | numberLoop" nz-col nzSpan="6">
<a (click)="msg.success('点击了')">操作一</a>
<a (click)="msg.success('Clicked')">Action 1</a>
</div>
<div nz-col nzSpan="6">
<button nz-button nzGhost nzType="primary" [nzSize]="'small'">
<i nz-icon nzType="plus"></i>
<span>添加</span>
<span>Add</span>
</button>
</div>
</div>
</nz-card>
</div>
<div nz-col nzSpan="24">
<nz-card nzTitle="xx指数">
<nz-card nzTitle="XX Index">
<div id="randar"></div>
</nz-card>
</div>
<div nz-col nzSpan="24">
<nz-card nzTitle="团队">
<nz-card nzTitle="Team">
<div nz-row>
@for (team of teams(); track team) {
<div nz-col nzSpan="12">
Expand All @@ -114,10 +114,10 @@ <h4 class="left-start-center m-0" nz-typography style="height: 50%">早安,<a
</div>

<ng-template #extraTemplate>
<a class="operate-text">全部项目</a>
<a class="operate-text">All Projects</a>
</ng-template>

<ng-template #cardTitleTpl>
<nz-avatar [nzSize]="24" [nzSrc]="'https://gw.alipayobjects.com/zos/rmsportal/zOsKZmFRdUtvpqCImOVY.png'"></nz-avatar>
<span class="ml-1">Angular</span>
</ng-template>
</ng-template>
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class WorkbenchComponent implements AfterViewInit {
seriesField: 'user',
meta: {
score: {
alias: '分数',
alias: 'Score',
min: 0,
max: 80
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class ListReportComponent {
this.filters = filters
}

onColumnsChange(event: TableColumn<unknown>[]) {
onColumnsChange(event: TableColumn<_ProductType>[]) {
this.tableColumns.set(event)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'base';

.avatar {
padding-left: 104px;

Expand Down
48 changes: 24 additions & 24 deletions btp-cap-monorepo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metad/btp-cap-monorepo",
"version": "0.1.0",
"version": "0.2.0",
"license": "MIT",
"scripts": {
"start": "yarn start:btp",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion btp-cap-monorepo/packages/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metad/cap-contracts",
"version": "0.1.0",
"version": "0.2.0",
"dependencies": {},
"main": "./index.js",
"module": "./index.mjs",
Expand Down

0 comments on commit 6c39338

Please sign in to comment.