-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin-admin-module-es2015.js.map
1 lines (1 loc) · 22.6 KB
/
admin-admin-module-es2015.js.map
1
{"version":3,"sources":["./src/app/admin/admin.component.html","./src/app/admin/components/dashboard/dashboard.component.html","./src/app/admin/pages/role/role.component.html","./src/app/admin/pages/user/user.component.html","./src/app/admin/admin-routing.module.ts","./src/app/admin/admin.component.scss","./src/app/admin/admin.component.ts","./src/app/admin/admin.module.ts","./src/app/admin/components/dashboard/dashboard.component.scss","./src/app/admin/components/dashboard/dashboard.component.ts","./src/app/admin/pages/role/role.component.scss","./src/app/admin/pages/role/role.component.ts","./src/app/admin/pages/user/user.component.scss","./src/app/admin/pages/user/user.component.ts","./src/app/admin/services/user.service.ts","./src/app/shared/services/base-service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAe,s2E;;;;;;;;;;;;ACAf;AAAe,obAAqX,mBAAmB,wcAAwc,mBAAmB,ucAAuc,mBAAmB,ucAAuc,mBAAmB,yL;;;;;;;;;;;;ACAtyD;AAAe,qF;;;;;;;;;;;;ACAf;AAAe,wwCAAysC,aAAa,kBAAkB,iBAAiB,yCAAyC,cAAc,yCAAyC,2BAA2B,yCAAyC,2BAA2B,k+BAAk+B,kBAAkB,iBAAiB,yCAAyC,cAAc,yCAAyC,2BAA2B,yCAAyC,2BAA2B,uFAAuF,iBAAiB,2U;;;;;;;;;;;;;;;;;;;;;ACA1sF;AACc;AAEJ;AAES;AACA;AAE5D,MAAM,MAAM,GAAW;IACnB;QACI,IAAI,EAAE,EAAE;QACR,SAAS,EAAE,+DAAc;QACzB,QAAQ,EAAE;YACN;gBACI,IAAI,EAAE,MAAM;gBACZ,SAAS,EAAE,wEAAa;aAC3B;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,SAAS,EAAE,wEAAa;aAC3B;SACJ;KACJ;CACJ,CAAC;AAMF,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;CAAG;AAArB,kBAAkB;IAJ9B,8DAAQ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sed)]=\\\"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\"","export 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\"","export default \"<p>role works!</p>\\n\"","export 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\"","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { AdminComponent } from './admin.component';\n\nimport { RoleComponent } from './pages/role/role.component';\nimport { UserComponent } from './pages/user/user.component';\n\nconst routes: Routes = [\n {\n path: '',\n component: AdminComponent,\n children: [\n {\n path: 'user',\n component: UserComponent,\n },\n {\n path: 'role',\n component: RoleComponent,\n },\n ],\n },\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class AdminRoutingModule {}\n","export 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvYWRtaW4vRDpcXFByb2plY3RcXGl6Yi1yZWZhY3QtZnJvbnQvc3JjXFxhcHBcXGFkbWluXFxhZG1pbi5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvYWRtaW4vYWRtaW4uY29tcG9uZW50LnNjc3MiXSwibmFt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biAgYmFja2dyb3VuZDogI2ZmZjtcbiAgbWluLWhlaWdodDogMTAwdmg7XG59XG5cbi5hbnQtbWVudSB7XG4gIGJhY2tncm91bmQ6IG5vbmU7XG59Il19 */\"","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-admin',\n templateUrl: './admin.component.html',\n styleUrls: ['./admin.component.scss'],\n})\nexport class AdminComponent implements OnInit {\n isCollapsed = false;\n constructor() {}\n\n ngOnInit() {}\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { SharedCoreModule } from '../shared/shared-core.module';\nimport { SharedModule } from '../shared/shared.module';\n\nimport { AdminRoutingModule } from './admin-routing.module';\nimport { AdminComponent } from './admin.component';\nimport { UserComponent } from './pages/user/user.component';\nimport { RoleComponent } from './pages/role/role.component';\nimport { DashboardComponent } from './components/dashboard/dashboard.component';\n\n@NgModule({\n declarations: [AdminComponent, UserComponent, RoleComponent, DashboardComponent],\n imports: [CommonModule, AdminRoutingModule, SharedCoreModule, SharedModule],\n})\nexport class AdminModule {}\n","export default \"\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FkbWluL2NvbXBvbmVudHMvZGFzaGJvYXJkL2Rhc2hib2FyZC5jb21wb25lbnQuc2NzcyJ9 */\"","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-dashboard',\n templateUrl: './dashboard.component.html',\n styleUrls: ['./dashboard.component.scss']\n})\nexport class DashboardComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","export default \"\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FkbWluL3BhZ2VzL3JvbGUvcm9sZS5jb21wb25lbnQuc2NzcyJ9 */\"","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-role-page',\n templateUrl: './role.component.html',\n styleUrls: ['./role.component.scss'],\n})\nexport class RoleComponent implements OnInit {\n constructor() {}\n\n ngOnInit() {}\n}\n","export default \".wrapper {\\n padding: 40px;\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvYWRtaW4vcGFnZXMvdXNlci9EOlxcUHJvamVjdFxcaXpiLXJlZmFjdC1mcm9udC9zcmNcXGFwcFxcYWRtaW5cXHBhZ2VzXFx1c2VyXFx1c2VyLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9hZG1pbi9wYWdlcy91c2VyL3VzZXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9hZG1pbi9wYWdlcy91c2VyL3VzZXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIud3JhcHBlciB7XHJcbiAgICBwYWRkaW5nOiA0MHB4O1xyXG59XHJcbiIsIi53cmFwcGVyIHtcbiAgcGFkZGluZzogNDBweDtcbn0iXX0= */\"","import { Component, OnInit } from '@angular/core';\n\nimport { UserService } from '../../services/user.service';\n\n@Component({\n selector: 'app-user-page',\n templateUrl: './user.component.html',\n styleUrls: ['./user.component.scss'],\n})\nexport class UserComponent implements OnInit {\n dataset = [\n {\n key: '1',\n name: 'John Brown',\n age: 32,\n address: 'New York No. 1 Lake Park',\n },\n {\n key: '2',\n name: 'Jim Green',\n age: 42,\n address: 'London No. 1 Lake Park',\n },\n {\n key: '3',\n name: 'Joe Black',\n age: 32,\n address: 'Sidney No. 1 Lake Park',\n },\n ];\n constructor(private userService: UserService) {}\n\n ngOnInit() {\n this.getUsers();\n }\n getUsers() {\n this.userService.getUsers().subscribe(res => (this.dataset = res));\n }\n}\n","import { Injectable, Injector } from '@angular/core';\n\nimport { BaseService } from 'src/app/shared/services/base-service';\n\nimport { Observable } from 'rxjs';\nimport { map, catchError } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class UserService extends BaseService {\n constructor(protected injector: Injector) {\n super(injector);\n }\n getUsers(): Observable<any> {\n const url = `${this.baseApi}/user`;\n return this.http.get(url).pipe(map(this.extractData), catchError(this.handleError));\n }\n}\n","import { HttpParams, HttpClient, HttpErrorResponse } from '@angular/common/http';\nimport { isDevMode, Injector } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { NzModalService, NzMessageService } from 'ng-zorro-antd';\n\nimport { throwError } from 'rxjs';\n\nexport class BaseService {\n protected baseApi = isDevMode() ? 'http://localhost:8080' : '';\n\n protected http: HttpClient;\n protected router: Router;\n\n public nzModalService: NzModalService;\n\n public nzMessageService: NzMessageService;\n\n constructor(protected injector: Injector) {\n this.http = injector.get(HttpClient);\n this.router = injector.get(Router);\n this.nzMessageService = injector.get(NzMessageService);\n this.nzModalService = injector.get(NzModalService);\n }\n\n protected extractData(res: any) {\n // const status = Number(res.status);\n // if (status !== 200) {\n // throw new HttpErrorResponse({ error: { message: res.message }, status: res.code });\n // }\n return res['result'] || res['data'];\n }\n protected handleError(errorResponse: HttpErrorResponse) {\n if (errorResponse.error instanceof ErrorEvent) {\n console.error('An error occurred:', errorResponse.error.message);\n return throwError(errorResponse.error.message);\n } else {\n if (errorResponse.status === 401) {\n this.nzModalService.confirm({\n nzTitle: '未登录的访问:',\n nzContent: '您当前的操作需要登录,点击确定登陆!',\n nzOnOk: () => {\n this.router.navigate(['/', 'login'], {\n queryParams: { url: this.router.url },\n });\n },\n });\n } else {\n this.nzMessageService.warning(errorResponse.error.message);\n }\n return throwError(errorResponse.error.error);\n }\n }\n protected params(params: {}): any {\n let httpParams = new HttpParams();\n\n for (const key in params) {\n if (params.hasOwnProperty(key)) {\n httpParams = httpParams.append(key, params[key]);\n }\n }\n return { params: httpParams };\n }\n}\n"],"sourceRoot":"webpack:///"}