-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin-admin-module-es2015.js
More file actions
473 lines (374 loc) · 32.7 KB
/
admin-admin-module-es2015.js
File metadata and controls
473 lines (374 loc) · 32.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["admin-admin-module"],{
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/admin/admin.component.html":
/*!**********************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/admin/admin.component.html ***!
\**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<nz-layout>\n <nz-sider nzTheme=\"light\" nzCollapsible=\"true\" [(nzCollapsed)]=\"isCollapsed\">\n <app-logo></app-logo>\n <ul nz-menu nzTheme=\"light\" nzMode=\"inline\" [nzInlineCollapsed]=\"isCollapsed\">\n <li nzOpen=\"true\" nz-submenu nzTitle=\"基本信息\" nzIcon=\"user\">\n <ul>\n <li nz-menu-item>\n <a routerLink=\"user\">用户管理</a>\n </li>\n <li nz-menu-item>\n <a routerLink=\"role\">角色管理</a>\n </li>\n </ul>\n </li>\n\n <li nzOpen=\"true\" nz-submenu nzTitle=\"站内管理\" nzIcon=\"area-chart\">\n <ul>\n <li nz-menu-item>站内通知</li>\n <li nz-menu-item>问题处理</li>\n </ul>\n </li>\n\n <li nzOpen=\"true\" nz-submenu nzTitle=\"还有我\" nzIcon=\"cloud-server\">\n <ul>\n <li nz-menu-item>权限管理</li>\n <li nz-menu-item>账号管理</li>\n </ul>\n </li>\n <li nzOpen=\"true\" nz-submenu nzTitle=\"还有我\" nzIcon=\"team\">\n <ul>\n <li nz-menu-item>Team 1</li>\n <li nz-menu-item>Team 2</li>\n </ul>\n </li>\n <li nzOpen=\"true\" nz-submenu nzTitle=\"看我干啥\" nzIcon=\"alert\">\n <ul>\n <li nz-menu-item>Team 1</li>\n <li nz-menu-item>Team 2</li>\n </ul>\n </li>\n </ul>\n </nz-sider>\n <nz-layout>\n <!-- <header class=\"header\">\n <div class=\"search\">\n <nz-input-group [nzSuffix]=\"suffixIconSearch\">\n <input type=\"text\" nz-input placeholder=\"开始搜索\" />\n </nz-input-group>\n <ng-template #suffixIconSearch>\n <i nz-icon nzType=\"search\"></i>\n </ng-template>\n </div>\n <app-user></app-user>\n </header> -->\n <nz-content>\n <div class=\"inner-content\">\n <router-outlet></router-outlet>\n </div>\n </nz-content>\n <!-- <app-footer> </app-footer> -->\n </nz-layout>\n</nz-layout>\n");
/***/ }),
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/admin/components/dashboard/dashboard.component.html":
/*!***********************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/admin/components/dashboard/dashboard.component.html ***!
\***********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<nz-row nzType=\"flex\" nzAlign=\"middle\" nzJustify=\"space-between\" nzGutter=\"48\">\n <nz-col nzSpan=\"6\">\n <nz-card>\n <nz-statistic\n [nzValue]=\"11.28 | number: '1.0-2'\"\n [nzTitle]=\"'今日用户增长'\"\n [nzPrefix]=\"prefixTplOne\"\n [nzSuffix]=\"'%'\"\n [nzValueStyle]=\"{ color: '#3F8600' }\"\n >\n </nz-statistic>\n <ng-template #prefixTplOne><i nz-icon nzType=\"arrow-up\"></i></ng-template>\n </nz-card>\n </nz-col>\n <nz-col nzSpan=\"6\">\n <nz-card>\n <nz-statistic\n [nzValue]=\"11.28 | number: '1.0-2'\"\n [nzTitle]=\"'同比用户下降'\"\n [nzPrefix]=\"prefixTplOne\"\n [nzSuffix]=\"'%'\"\n [nzValueStyle]=\"{ color: '#3F8600' }\"\n >\n </nz-statistic>\n <ng-template #prefixTplOne><i nz-icon nzType=\"arrow-up\"></i></ng-template>\n </nz-card>\n </nz-col>\n <nz-col nzSpan=\"6\">\n <nz-card>\n <nz-statistic\n [nzValue]=\"11.28 | number: '1.0-2'\"\n [nzTitle]=\"'用户注册量'\"\n [nzPrefix]=\"prefixTplOne\"\n [nzSuffix]=\"'%'\"\n [nzValueStyle]=\"{ color: '#3F8600' }\"\n >\n </nz-statistic>\n <ng-template #prefixTplOne><i nz-icon nzType=\"arrow-up\"></i></ng-template>\n </nz-card>\n </nz-col>\n <nz-col nzSpan=\"6\">\n <nz-card>\n <nz-statistic\n [nzValue]=\"11.28 | number: '1.0-2'\"\n [nzTitle]=\"'用户活跃度'\"\n [nzPrefix]=\"prefixTplOne\"\n [nzSuffix]=\"'%'\"\n [nzValueStyle]=\"{ color: '#3F8600' }\"\n >\n </nz-statistic>\n <ng-template #prefixTplOne><i nz-icon nzType=\"arrow-up\"></i></ng-template>\n </nz-card>\n </nz-col>\n</nz-row>\n");
/***/ }),
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/admin/pages/role/role.component.html":
/*!********************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/admin/pages/role/role.component.html ***!
\********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<p>role works!</p>\n");
/***/ }),
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/admin/pages/user/user.component.html":
/*!********************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/admin/pages/user/user.component.html ***!
\********************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"wrapper\">\n <app-dashboard></app-dashboard>\n <nz-card class=\"mt-20\">\n <nz-row class=\"mb-10\">\n <nz-col nzSpan=\"6\">\n <nz-input-group nzSearch [nzAddOnAfter]=\"suffixIconButton\">\n <input type=\"text\" nz-input placeholder=\"input search text\" />\n </nz-input-group>\n <ng-template #suffixIconButton>\n <button nz-button nzType=\"primary\" nzSearch><i nz-icon nzType=\"search\"></i></button>\n </ng-template>\n </nz-col>\n </nz-row>\n\n <nz-tabset>\n <nz-tab nzTitle=\"活跃用户\">\n <nz-table #basicTable [nzData]=\"dataset\">\n <thead>\n <tr>\n <th>用户名</th>\n <th>email</th>\n <th>登录时间</th>\n <th>更新时间</th>\n <th>Action</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let data of basicTable.data\">\n <td><nz-avatar nzIcon=\"user\" nzSrc=\"{{ data.icon }}\"></nz-avatar> {{ data.username }}</td>\n <td>{{ data.email }}</td>\n <td>{{ data.create_time | date }}</td>\n <td>{{ data.update_time | date }}</td>\n <td>\n <a>Action</a>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <a>Delete</a>\n </td>\n </tr>\n </tbody>\n </nz-table>\n </nz-tab>\n <!-- <nz-tab nzTitle=\"拉黑用户\">\n <nz-table #basicTable [nzData]=\"dataset\">\n <thead>\n <tr>\n <th>用户名</th>\n <th>email</th>\n <th>登录时间</th>\n <th>拉黑时间</th>\n <th>Action</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let data of basicTable.data\">\n <td><nz-avatar nzIcon=\"user\" style=\"background-color:#87d068;\"></nz-avatar> {{ data.username }}</td>\n <td>{{ data.email }}</td>\n <td>{{ data.create_time | date }}</td>\n <td>{{ data.update_time | date }}</td>\n <td>\n <a>Action 一 {{ data.username }}</a>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <a>Delete</a>\n </td>\n </tr>\n </tbody>\n </nz-table>\n </nz-tab> -->\n </nz-tabset>\n </nz-card>\n</div>\n");
/***/ }),
/***/ "./src/app/admin/admin-routing.module.ts":
/*!***********************************************!*\
!*** ./src/app/admin/admin-routing.module.ts ***!
\***********************************************/
/*! exports provided: AdminRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminRoutingModule", function() { return AdminRoutingModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var _admin_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./admin.component */ "./src/app/admin/admin.component.ts");
/* harmony import */ var _pages_role_role_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pages/role/role.component */ "./src/app/admin/pages/role/role.component.ts");
/* harmony import */ var _pages_user_user_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pages/user/user.component */ "./src/app/admin/pages/user/user.component.ts");
const routes = [
{
path: '',
component: _admin_component__WEBPACK_IMPORTED_MODULE_3__["AdminComponent"],
children: [
{
path: 'user',
component: _pages_user_user_component__WEBPACK_IMPORTED_MODULE_5__["UserComponent"],
},
{
path: 'role',
component: _pages_role_role_component__WEBPACK_IMPORTED_MODULE_4__["RoleComponent"],
},
],
},
];
let AdminRoutingModule = class AdminRoutingModule {
};
AdminRoutingModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]],
})
], AdminRoutingModule);
/***/ }),
/***/ "./src/app/admin/admin.component.scss":
/*!********************************************!*\
!*** ./src/app/admin/admin.component.scss ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("header.header {\n padding: 18px;\n display: -webkit-box;\n display: flex;\n -webkit-box-pack: justify;\n justify-content: space-between;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);\n}\nheader.header .search {\n width: 25%;\n}\n.inner-content {\n background: #fff;\n min-height: 100vh;\n}\n.ant-menu {\n background: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvYWRtaW4vRDpcXFByb2plY3RcXGl6Yi1yZWZhY3QtZnJvbnQvc3JjXFxhcHBcXGFkbWluXFxhZG1pbi5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvYWRtaW4vYWRtaW4uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0VBQ0Esb0JBQUE7RUFBQSxhQUFBO0VBQ0EseUJBQUE7VUFBQSw4QkFBQTtFQUNBLHdDQUFBO0FDQ0o7QURBSTtFQUNJLFVBQUE7QUNFUjtBREVBO0VBR0ksZ0JBQUE7RUFDQSxpQkFBQTtBQ0RKO0FER0E7RUFDSSxnQkFBQTtBQ0FKIiwiZmlsZSI6InNyYy9hcHAvYWRtaW4vYWRtaW4uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJoZWFkZXIuaGVhZGVyIHtcclxuICAgIHBhZGRpbmc6IDE4cHg7XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xyXG4gICAgYm94LXNoYWRvdzogMCAxcHggMnB4IHJnYmEoMCwgMCwgMCwgMC4yKTtcclxuICAgIC5zZWFyY2gge1xyXG4gICAgICAgIHdpZHRoOiAyNSU7XHJcbiAgICB9XHJcbn1cclxuXHJcbi5pbm5lci1jb250ZW50IHtcclxuICAgIC8vIG1hcmdpbjogMjRweDtcclxuICAgIC8vIHBhZGRpbmc6IDI0cHg7XHJcbiAgICBiYWNrZ3JvdW5kOiAjZmZmO1xyXG4gICAgbWluLWhlaWdodDogMTAwdmg7XHJcbn1cclxuLmFudC1tZW51IHtcclxuICAgIGJhY2tncm91bmQ6IG5vbmU7XHJcbn1cclxuIiwiaGVhZGVyLmhlYWRlciB7XG4gIHBhZGRpbmc6IDE4cHg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYm94LXNoYWRvdzogMCAxcHggMnB4IHJnYmEoMCwgMCwgMCwgMC4yKTtcbn1cbmhlYWRlci5oZWFkZXIgLnNlYXJjaCB7XG4gIHdpZHRoOiAyNSU7XG59XG5cbi5pbm5lci1jb250ZW50IHtcbiAgYmFja2dyb3VuZDogI2ZmZjtcbiAgbWluLWhlaWdodDogMTAwdmg7XG59XG5cbi5hbnQtbWVudSB7XG4gIGJhY2tncm91bmQ6IG5vbmU7XG59Il19 */");
/***/ }),
/***/ "./src/app/admin/admin.component.ts":
/*!******************************************!*\
!*** ./src/app/admin/admin.component.ts ***!
\******************************************/
/*! exports provided: AdminComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminComponent", function() { return AdminComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
let AdminComponent = class AdminComponent {
constructor() {
this.isCollapsed = false;
}
ngOnInit() { }
};
AdminComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-admin',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./admin.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/admin/admin.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./admin.component.scss */ "./src/app/admin/admin.component.scss")).default]
})
], AdminComponent);
/***/ }),
/***/ "./src/app/admin/admin.module.ts":
/*!***************************************!*\
!*** ./src/app/admin/admin.module.ts ***!
\***************************************/
/*! exports provided: AdminModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminModule", function() { return AdminModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js");
/* harmony import */ var _shared_shared_core_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../shared/shared-core.module */ "./src/app/shared/shared-core.module.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _admin_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./admin-routing.module */ "./src/app/admin/admin-routing.module.ts");
/* harmony import */ var _admin_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./admin.component */ "./src/app/admin/admin.component.ts");
/* harmony import */ var _pages_user_user_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pages/user/user.component */ "./src/app/admin/pages/user/user.component.ts");
/* harmony import */ var _pages_role_role_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pages/role/role.component */ "./src/app/admin/pages/role/role.component.ts");
/* harmony import */ var _components_dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/dashboard/dashboard.component */ "./src/app/admin/components/dashboard/dashboard.component.ts");
let AdminModule = class AdminModule {
};
AdminModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
declarations: [_admin_component__WEBPACK_IMPORTED_MODULE_6__["AdminComponent"], _pages_user_user_component__WEBPACK_IMPORTED_MODULE_7__["UserComponent"], _pages_role_role_component__WEBPACK_IMPORTED_MODULE_8__["RoleComponent"], _components_dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_9__["DashboardComponent"]],
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _admin_routing_module__WEBPACK_IMPORTED_MODULE_5__["AdminRoutingModule"], _shared_shared_core_module__WEBPACK_IMPORTED_MODULE_3__["SharedCoreModule"], _shared_shared_module__WEBPACK_IMPORTED_MODULE_4__["SharedModule"]],
})
], AdminModule);
/***/ }),
/***/ "./src/app/admin/components/dashboard/dashboard.component.scss":
/*!*********************************************************************!*\
!*** ./src/app/admin/components/dashboard/dashboard.component.scss ***!
\*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FkbWluL2NvbXBvbmVudHMvZGFzaGJvYXJkL2Rhc2hib2FyZC5jb21wb25lbnQuc2NzcyJ9 */");
/***/ }),
/***/ "./src/app/admin/components/dashboard/dashboard.component.ts":
/*!*******************************************************************!*\
!*** ./src/app/admin/components/dashboard/dashboard.component.ts ***!
\*******************************************************************/
/*! exports provided: DashboardComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardComponent", function() { return DashboardComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
let DashboardComponent = class DashboardComponent {
constructor() { }
ngOnInit() {
}
};
DashboardComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-dashboard',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./dashboard.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/admin/components/dashboard/dashboard.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./dashboard.component.scss */ "./src/app/admin/components/dashboard/dashboard.component.scss")).default]
})
], DashboardComponent);
/***/ }),
/***/ "./src/app/admin/pages/role/role.component.scss":
/*!******************************************************!*\
!*** ./src/app/admin/pages/role/role.component.scss ***!
\******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FkbWluL3BhZ2VzL3JvbGUvcm9sZS5jb21wb25lbnQuc2NzcyJ9 */");
/***/ }),
/***/ "./src/app/admin/pages/role/role.component.ts":
/*!****************************************************!*\
!*** ./src/app/admin/pages/role/role.component.ts ***!
\****************************************************/
/*! exports provided: RoleComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RoleComponent", function() { return RoleComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
let RoleComponent = class RoleComponent {
constructor() { }
ngOnInit() { }
};
RoleComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-role-page',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./role.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/admin/pages/role/role.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./role.component.scss */ "./src/app/admin/pages/role/role.component.scss")).default]
})
], RoleComponent);
/***/ }),
/***/ "./src/app/admin/pages/user/user.component.scss":
/*!******************************************************!*\
!*** ./src/app/admin/pages/user/user.component.scss ***!
\******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".wrapper {\n padding: 40px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvYWRtaW4vcGFnZXMvdXNlci9EOlxcUHJvamVjdFxcaXpiLXJlZmFjdC1mcm9udC9zcmNcXGFwcFxcYWRtaW5cXHBhZ2VzXFx1c2VyXFx1c2VyLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9hZG1pbi9wYWdlcy91c2VyL3VzZXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9hZG1pbi9wYWdlcy91c2VyL3VzZXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIud3JhcHBlciB7XHJcbiAgICBwYWRkaW5nOiA0MHB4O1xyXG59XHJcbiIsIi53cmFwcGVyIHtcbiAgcGFkZGluZzogNDBweDtcbn0iXX0= */");
/***/ }),
/***/ "./src/app/admin/pages/user/user.component.ts":
/*!****************************************************!*\
!*** ./src/app/admin/pages/user/user.component.ts ***!
\****************************************************/
/*! exports provided: UserComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserComponent", function() { return UserComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _services_user_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/user.service */ "./src/app/admin/services/user.service.ts");
let UserComponent = class UserComponent {
constructor(userService) {
this.userService = userService;
this.dataset = [
{
key: '1',
name: 'John Brown',
age: 32,
address: 'New York No. 1 Lake Park',
},
{
key: '2',
name: 'Jim Green',
age: 42,
address: 'London No. 1 Lake Park',
},
{
key: '3',
name: 'Joe Black',
age: 32,
address: 'Sidney No. 1 Lake Park',
},
];
}
ngOnInit() {
this.getUsers();
}
getUsers() {
this.userService.getUsers().subscribe(res => (this.dataset = res));
}
};
UserComponent.ctorParameters = () => [
{ type: _services_user_service__WEBPACK_IMPORTED_MODULE_2__["UserService"] }
];
UserComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-user-page',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./user.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/admin/pages/user/user.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./user.component.scss */ "./src/app/admin/pages/user/user.component.scss")).default]
})
], UserComponent);
/***/ }),
/***/ "./src/app/admin/services/user.service.ts":
/*!************************************************!*\
!*** ./src/app/admin/services/user.service.ts ***!
\************************************************/
/*! exports provided: UserService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserService", function() { return UserService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var src_app_shared_services_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/services/base-service */ "./src/app/shared/services/base-service.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js");
let UserService = class UserService extends src_app_shared_services_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"] {
constructor(injector) {
super(injector);
this.injector = injector;
}
getUsers() {
const url = `${this.baseApi}/user`;
return this.http.get(url).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(this.extractData), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(this.handleError));
}
};
UserService.ctorParameters = () => [
{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"] }
];
UserService = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root',
})
], UserService);
/***/ }),
/***/ "./src/app/shared/services/base-service.ts":
/*!*************************************************!*\
!*** ./src/app/shared/services/base-service.ts ***!
\*************************************************/
/*! exports provided: BaseService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseService", function() { return BaseService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm2015/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var ng_zorro_antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ng-zorro-antd */ "./node_modules/ng-zorro-antd/fesm2015/ng-zorro-antd.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
class BaseService {
constructor(injector) {
this.injector = injector;
this.baseApi = Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["isDevMode"])() ? 'http://localhost:8080' : '';
this.http = injector.get(_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]);
this.router = injector.get(_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]);
this.nzMessageService = injector.get(ng_zorro_antd__WEBPACK_IMPORTED_MODULE_4__["NzMessageService"]);
this.nzModalService = injector.get(ng_zorro_antd__WEBPACK_IMPORTED_MODULE_4__["NzModalService"]);
}
extractData(res) {
// const status = Number(res.status);
// if (status !== 200) {
// throw new HttpErrorResponse({ error: { message: res.message }, status: res.code });
// }
return res['result'] || res['data'];
}
handleError(errorResponse) {
if (errorResponse.error instanceof ErrorEvent) {
console.error('An error occurred:', errorResponse.error.message);
return Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errorResponse.error.message);
}
else {
if (errorResponse.status === 401) {
this.nzModalService.confirm({
nzTitle: '未登录的访问:',
nzContent: '您当前的操作需要登录,点击确定登陆!',
nzOnOk: () => {
this.router.navigate(['/', 'login'], {
queryParams: { url: this.router.url },
});
},
});
}
else {
this.nzMessageService.warning(errorResponse.error.message);
}
return Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["throwError"])(errorResponse.error.error);
}
}
params(params) {
let httpParams = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpParams"]();
for (const key in params) {
if (params.hasOwnProperty(key)) {
httpParams = httpParams.append(key, params[key]);
}
}
return { params: httpParams };
}
}
/***/ })
}]);
//# sourceMappingURL=admin-admin-module-es2015.js.map