Skip to content

Commit 15e2bb2

Browse files
chore(release): release ng-devui-admin 2.0.0 (#16)
Co-authored-by: huaweidevcloud <[email protected]>
1 parent dbe4f9a commit 15e2bb2

File tree

76 files changed

+1111
-1468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1111
-1468
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ DevUI Admin is an enterprise-level mid- and back-end front-end/design solution.
2020
- Preview: https://devui.design/admin/
2121
- Home Page: https://devui.design/admin-page/home
2222
- Document:https://devui.design/admin-page/docs/getting-started
23+
- Materials:https://devui.design/admin-materials/
2324

2425
## Features
2526
![avatar](home-1.png)

README_zh_CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ DevUI Admin 是一个企业级中后台前端/设计解决方案,依据 DevUI
1919
- 预览:https://devui.design/admin/
2020
- 首页:https://devui.design/admin-page/home
2121
- 文档:https://devui.design/admin-page/docs/getting-started
22+
- Admin 区块:https://devui.design/admin-materials/
2223

2324
## 特性
2425

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-devui-admin",
3-
"version": "1.2.0",
3+
"version": "2.0.0",
44
"license": "MIT",
55
"description": "DevUI Admin based on Angular and DevUI components",
66
"repository": {
@@ -35,8 +35,7 @@
3535
"@ngx-translate/http-loader": "^6.0.0",
3636
"color": "^3.1.3",
3737
"echarts": "^5.1.1",
38-
"ng-devui": "^12.0.0-beta.1",
39-
"ng-packagr": "^12.0.5",
38+
"ng-devui": "^12.0.0",
4039
"rxjs": "~6.6.0",
4140
"tslib": "^2.0.0",
4241
"zone.js": "~0.11.4"

src/app/@core/core.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const DATA_SERVICES = [
3030
];
3131

3232
export const DEVUI_CORE_PROVIDERS = [
33-
...MockDataModule.forRoot().providers,
33+
...MockDataModule.forRoot().providers!,
3434
...DATA_SERVICES,
3535
AuthService,
3636
PersonalizeService,

src/app/@core/data/userData.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Observable } from "rxjs";
1+
import { Observable } from 'rxjs';
22

33
export interface Team {
44
name?: string;
5-
label?: string;
5+
label?: string;
66
}
77

88
export interface User {
@@ -12,11 +12,10 @@ export interface User {
1212
assign?: string;
1313
group?: string;
1414
address?: string;
15-
tags?: string[];
15+
tags?: any[];
1616
teams?: Team[];
1717
}
1818

19-
2019
export interface Article {
2120
id?: string;
2221
title?: string;
@@ -38,7 +37,7 @@ export interface Project {
3837
}
3938

4039
export abstract class UserData {
41-
abstract getUser(): Observable<User[]>;
40+
abstract getUser(): Observable<User>;
4241
abstract getArticles(): Observable<Article[]>;
4342
abstract getProjects(): Observable<Project[]>;
44-
}
43+
}

src/app/@core/mock/echarts.service.ts

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -126,57 +126,9 @@ export class EchartsService {
126126
{
127127
name: '服务水位',
128128
data: [
129-
21.69,
130-
30.16,
131-
11.64,
132-
11.64,
133-
31.22,
134-
17.46,
135-
14.81,
136-
44.44,
137-
28.57,
138-
14.81,
139-
12.7,
140-
35.98,
141-
23.28,
142-
16.93,
143-
19.58,
144-
8.99,
145-
11.64,
146-
4.23,
147-
5.29,
148-
1.06,
149-
3.7,
150-
3.17,
151-
3.17,
152-
5.82,
153-
16.4,
154-
15.87,
155-
18.52,
156-
13.76,
157-
19.05,
158-
26.46,
159-
30.16,
160-
24.87,
161-
23.81,
162-
24.87,
163-
16.93,
164-
17.99,
165-
13.76,
166-
10.58,
167-
20.63,
168-
12.7,
169-
13.17,
170-
15.82,
171-
16.4,
172-
15.87,
173-
8.52,
174-
3.76,
175-
19.05,
176-
6.46,
177-
30.16,
178-
24.87,
179-
13.81,
129+
21.69, 30.16, 11.64, 11.64, 31.22, 17.46, 14.81, 44.44, 28.57, 14.81, 12.7, 35.98, 23.28, 16.93, 19.58, 8.99, 11.64, 4.23, 5.29,
130+
1.06, 3.7, 3.17, 3.17, 5.82, 16.4, 15.87, 18.52, 13.76, 19.05, 26.46, 30.16, 24.87, 23.81, 24.87, 16.93, 17.99, 13.76, 10.58,
131+
20.63, 12.7, 13.17, 15.82, 16.4, 15.87, 8.52, 3.76, 19.05, 6.46, 30.16, 24.87, 13.81,
180132
],
181133
type: 'line',
182134
smooth: false,
@@ -632,7 +584,7 @@ export class EchartsService {
632584
trigger: 'item',
633585
showDelay: 0,
634586
transitionDuration: 0.2,
635-
formatter: function (params) {
587+
formatter: function (params: any) {
636588
return `用户数 <br/> ${params.name}: ${params.value}`;
637589
},
638590
},

src/app/@core/mock/list-data.service.ts

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ export class ListDataService extends ListData {
298298
{
299299
name: 'React',
300300
title: 'React',
301-
imgSrc:
302-
'https://codingthesmartway.com/wp-content/uploads/2019/12/logo_react.png',
301+
imgSrc: 'https://codingthesmartway.com/wp-content/uploads/2019/12/logo_react.png',
303302
content:
304303
'DevUI 是面向企业中后台产品的开源前端解决方案,其设计价值观基于"至简"、"沉浸"、"灵活"三种自然与人文相结合的理念,旨在为设计....',
305304
actions: [
@@ -333,8 +332,7 @@ export class ListDataService extends ListData {
333332
{
334333
name: 'Webpack',
335334
title: 'Webpack',
336-
imgSrc:
337-
'https://webpack.js.org/icon-square-small.85ba630cf0c5f29ae3e3.svg',
335+
imgSrc: 'https://webpack.js.org/icon-square-small.85ba630cf0c5f29ae3e3.svg',
338336
content:
339337
'DevUI 是面向企业中后台产品的开源前端解决方案,其设计价值观基于"至简"、"沉浸"、"灵活"三种自然与人文相结合的理念,旨在为设计....',
340338
actions: [
@@ -383,8 +381,7 @@ export class ListDataService extends ListData {
383381
{
384382
name: 'React',
385383
title: 'React',
386-
imgSrc:
387-
'https://codingthesmartway.com/wp-content/uploads/2019/12/logo_react.png',
384+
imgSrc: 'https://codingthesmartway.com/wp-content/uploads/2019/12/logo_react.png',
388385
content:
389386
'DevUI 是面向企业中后台产品的开源前端解决方案,其设计价值观基于"至简"、"沉浸"、"灵活"三种自然与人文相结合的理念,旨在为设计....',
390387
actions: [
@@ -418,8 +415,7 @@ export class ListDataService extends ListData {
418415
{
419416
name: 'Webpack',
420417
title: 'Webpack',
421-
imgSrc:
422-
'https://webpack.js.org/icon-square-small.85ba630cf0c5f29ae3e3.svg',
418+
imgSrc: 'https://webpack.js.org/icon-square-small.85ba630cf0c5f29ae3e3.svg',
423419
content:
424420
'DevUI 是面向企业中后台产品的开源前端解决方案,其设计价值观基于"至简"、"沉浸"、"灵活"三种自然与人文相结合的理念,旨在为设计....',
425421
actions: [
@@ -468,8 +464,7 @@ export class ListDataService extends ListData {
468464
{
469465
name: 'React',
470466
title: 'React',
471-
imgSrc:
472-
'https://codingthesmartway.com/wp-content/uploads/2019/12/logo_react.png',
467+
imgSrc: 'https://codingthesmartway.com/wp-content/uploads/2019/12/logo_react.png',
473468
content:
474469
'DevUI 是面向企业中后台产品的开源前端解决方案,其设计价值观基于"至简"、"沉浸"、"灵活"三种自然与人文相结合的理念,旨在为设计....',
475470
actions: [
@@ -503,8 +498,7 @@ export class ListDataService extends ListData {
503498
{
504499
name: 'Webpack',
505500
title: 'Webpack',
506-
imgSrc:
507-
'https://webpack.js.org/icon-square-small.85ba630cf0c5f29ae3e3.svg',
501+
imgSrc: 'https://webpack.js.org/icon-square-small.85ba630cf0c5f29ae3e3.svg',
508502
content:
509503
'DevUI 是面向企业中后台产品的开源前端解决方案,其设计价值观基于"至简"、"沉浸"、"灵活"三种自然与人文相结合的理念,旨在为设计....',
510504
actions: [
@@ -520,11 +514,8 @@ export class ListDataService extends ListData {
520514
},
521515
];
522516

523-
private pagerList(data, pager) {
524-
return data.slice(
525-
pager.pageSize * (pager.pageIndex - 1),
526-
pager.pageSize * pager.pageIndex
527-
);
517+
private pagerList(data: Item[] | Card[], pager: ListPager) {
518+
return data.slice(pager.pageSize! * (pager.pageIndex! - 1), pager.pageSize! * pager.pageIndex!);
528519
}
529520

530521
getListData(pager: ListPager): Observable<any> {

0 commit comments

Comments
 (0)