Merge remote-tracking branch 'origin/develop' into develop
3 files added
4 files modified
| | |
| | | |
| | | # IDE - VSCode |
| | | .vscode/* |
| | | !.vscode/settings.json |
| | | !.vscode/tasks.json |
| | | !.vscode/launch.json |
| | | !.vscode/extensions.json |
| | | |
| | | # misc |
| | | /.sass-cache |
| | |
| | | # System Files |
| | | .DS_Store |
| | | Thumbs.db |
| | | .angulardoc.json |
| | |
| | | { path: 'users', loadChildren: './users/users.module#UsersModule' }, |
| | | { path: 'devices', loadChildren: './devices/devices.module#DevicesModule' }, |
| | | { path: 'sensors', loadChildren: './sensors/sensors.module#SensorsModule' }, |
| | | { path: 'systems', loadChildren: './systems/systems.module#SystemsModule' }, |
| | | |
| | | { path: 'dashboard/v1', component: DashboardV1Component, data: { translate: 'dashboard_v1' } }, |
| | | { path: 'dashboard/analysis', component: DashboardAnalysisComponent, data: { translate: 'dashboard_analysis' } }, |
New file |
| | |
| | | <p> |
| | | account works! |
| | | </p> |
New file |
| | |
| | | import { Component, OnInit } from '@angular/core'; |
| | | import { NzMessageService } from 'ng-zorro-antd'; |
| | | import { ModalHelper } from '@delon/theme'; |
| | | import { HttpClient } from '@angular/common/http'; |
| | | import * as moment from 'moment'; |
| | | |
| | | @Component({ |
| | | selector: 'app-account', |
| | | templateUrl: './account.component.html', |
| | | styles: [] |
| | | }) |
| | | export class AccountComponent implements OnInit { |
| | | |
| | | constructor( |
| | | public http: HttpClient, |
| | | public msgSrv: NzMessageService, |
| | | private modalHelper: ModalHelper) { |
| | | |
| | | } |
| | | |
| | | ngOnInit() { |
| | | |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | import { Component, OnInit } from '@angular/core'; |
| | | import { NgModule } from '@angular/core'; |
| | | import { CommonModule } from '@angular/common'; |
| | | import { RouterModule, Routes } from '@angular/router'; |
| | | import { SharedModule } from '@shared/shared.module'; |
| | | |
| | | import { AccountComponent } from './account/account.component'; |
| | | |
| | | const routes: Routes = [ |
| | | { |
| | | path: '', |
| | | children: [ |
| | | { path: 'account', component: AccountComponent } |
| | | ] |
| | | } |
| | | ]; |
| | | |
| | | const COMPONENTS_NOROUNT = [ ]; |
| | | |
| | | @NgModule({ |
| | | imports: [ |
| | | CommonModule, |
| | | SharedModule, |
| | | RouterModule.forChild(routes) |
| | | ], |
| | | declarations: [ |
| | | ...COMPONENTS_NOROUNT, |
| | | AccountComponent |
| | | ], |
| | | entryComponents: COMPONENTS_NOROUNT |
| | | }) |
| | | export class SystemsModule { } |
| | |
| | | "link": "/sensors/basic", |
| | | "translate": "device_management_info" |
| | | }] |
| | | }, { |
| | | "text": "系统管理", |
| | | "translate": "system_management", |
| | | "link": "/", |
| | | "icon": "icon-note", |
| | | "children": [{ |
| | | "text": "账户管理", |
| | | "link": "/systems/account", |
| | | "translate": "system_management_account" |
| | | }] |
| | | }] |
| | | }] |
| | | } |
| | |
| | | "sensor_management": "传感器管理", |
| | | "sensor_management_info": "基本信息", |
| | | |
| | | "system_management":"系统管理", |
| | | "system_management_account":"账户管理", |
| | | |
| | | "settings": "设置", |
| | | "profile": "个人资料", |
| | | "login": "登录", |