code clean
This commit is contained in:
parent
6ebe41c8d2
commit
850d23f293
@ -10,7 +10,7 @@ export class Device {
|
|||||||
readonly statePropertyId: string,
|
readonly statePropertyId: string,
|
||||||
readonly stateProperty: Property | null,
|
readonly stateProperty: Property | null,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromJson(json: any): Device {
|
static fromJson(json: any): Device {
|
||||||
|
|||||||
@ -11,7 +11,7 @@ export class Group {
|
|||||||
readonly state: State | null,
|
readonly state: State | null,
|
||||||
readonly lastValueChange: Date | null,
|
readonly lastValueChange: Date | null,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromJson(json: any): Group {
|
static fromJson(json: any): Group {
|
||||||
|
|||||||
@ -9,7 +9,7 @@ export class Property {
|
|||||||
readonly state: State | null,
|
readonly state: State | null,
|
||||||
readonly lastValueChange: Date | null,
|
readonly lastValueChange: Date | null,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromJson(json: any): Property {
|
static fromJson(json: any): Property {
|
||||||
|
|||||||
@ -10,7 +10,7 @@ export class Shutter {
|
|||||||
readonly positionPropertyId: string,
|
readonly positionPropertyId: string,
|
||||||
readonly positionProperty: Property | null,
|
readonly positionProperty: Property | null,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromJson(json: any): Shutter {
|
static fromJson(json: any): Shutter {
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export class State {
|
|||||||
readonly value: any,
|
readonly value: any,
|
||||||
readonly string: string,
|
readonly string: string,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromJson(json: any): State {
|
static fromJson(json: any): State {
|
||||||
|
|||||||
@ -10,7 +10,7 @@ export abstract class CrudService<ENTITY> {
|
|||||||
readonly path: any[],
|
readonly path: any[],
|
||||||
readonly fromJson: FromJson<ENTITY>,
|
readonly fromJson: FromJson<ENTITY>,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
subscribe(next: Next<ENTITY>): Subscription {
|
subscribe(next: Next<ENTITY>): Subscription {
|
||||||
|
|||||||
@ -7,7 +7,7 @@ export class Order<T> {
|
|||||||
readonly compare: (a: T, b: T) => number,
|
readonly compare: (a: T, b: T) => number,
|
||||||
public direction: CrudDirection,
|
public direction: CrudDirection,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,7 +12,7 @@ export class Page<T> {
|
|||||||
readonly totalElements: number,
|
readonly totalElements: number,
|
||||||
readonly content: T[],
|
readonly content: T[],
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromJson<T>(fromJson: FromJson<T>): FromJson<Page<T>> {
|
static fromJson<T>(fromJson: FromJson<T>): FromJson<Page<T>> {
|
||||||
|
|||||||
@ -16,7 +16,7 @@ export class AppComponent {
|
|||||||
constructor(
|
constructor(
|
||||||
protected readonly apiService: ApiService,
|
protected readonly apiService: ApiService,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,6 @@ import {DeviceService} from '../../api/Device/device.service';
|
|||||||
import {FormsModule} from '@angular/forms';
|
import {FormsModule} from '@angular/forms';
|
||||||
import {DeviceFilter} from '../../api/Device/DeviceFilter';
|
import {DeviceFilter} from '../../api/Device/DeviceFilter';
|
||||||
import {Subscription} from 'rxjs';
|
import {Subscription} from 'rxjs';
|
||||||
import {KnxGroupListComponent} from '../../shared/knx-group-list/knx-group-list.component';
|
|
||||||
import {ApiService} from '../../api/common/api.service';
|
import {ApiService} from '../../api/common/api.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -13,8 +12,7 @@ import {ApiService} from '../../api/common/api.service';
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [
|
imports: [
|
||||||
DeviceListComponent,
|
DeviceListComponent,
|
||||||
FormsModule,
|
FormsModule
|
||||||
KnxGroupListComponent
|
|
||||||
],
|
],
|
||||||
templateUrl: './device-list-page.component.html',
|
templateUrl: './device-list-page.component.html',
|
||||||
styleUrl: './device-list-page.component.less'
|
styleUrl: './device-list-page.component.less'
|
||||||
@ -33,7 +31,7 @@ export class DeviceListPageComponent implements OnInit, OnDestroy {
|
|||||||
protected readonly deviceService: DeviceService,
|
protected readonly deviceService: DeviceService,
|
||||||
protected readonly apiService: ApiService,
|
protected readonly apiService: ApiService,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export class KnxGroupListPageComponent implements OnInit, OnDestroy {
|
|||||||
protected readonly groupService: GroupService,
|
protected readonly groupService: GroupService,
|
||||||
protected readonly apiService: ApiService,
|
protected readonly apiService: ApiService,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|||||||
@ -5,7 +5,6 @@ import {ShutterService} from '../../api/Shutter/shutter.service';
|
|||||||
import {FormsModule} from '@angular/forms';
|
import {FormsModule} from '@angular/forms';
|
||||||
import {ShutterFilter} from '../../api/Shutter/ShutterFilter';
|
import {ShutterFilter} from '../../api/Shutter/ShutterFilter';
|
||||||
import {Subscription} from 'rxjs';
|
import {Subscription} from 'rxjs';
|
||||||
import {KnxGroupListComponent} from '../../shared/knx-group-list/knx-group-list.component';
|
|
||||||
import {ApiService} from '../../api/common/api.service';
|
import {ApiService} from '../../api/common/api.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -13,8 +12,7 @@ import {ApiService} from '../../api/common/api.service';
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [
|
imports: [
|
||||||
ShutterListComponent,
|
ShutterListComponent,
|
||||||
FormsModule,
|
FormsModule
|
||||||
KnxGroupListComponent
|
|
||||||
],
|
],
|
||||||
templateUrl: './shutter-list-page.component.html',
|
templateUrl: './shutter-list-page.component.html',
|
||||||
styleUrl: './shutter-list-page.component.less'
|
styleUrl: './shutter-list-page.component.less'
|
||||||
@ -33,7 +31,7 @@ export class ShutterListPageComponent implements OnInit, OnDestroy {
|
|||||||
protected readonly shutterService: ShutterService,
|
protected readonly shutterService: ShutterService,
|
||||||
protected readonly apiService: ApiService,
|
protected readonly apiService: ApiService,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|||||||
@ -30,7 +30,7 @@ export class DeviceListComponent implements OnInit, OnDestroy {
|
|||||||
constructor(
|
constructor(
|
||||||
protected readonly deviceService: DeviceService,
|
protected readonly deviceService: DeviceService,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import {Component, Input, OnDestroy, OnInit} from '@angular/core';
|
import {Component, Input, OnDestroy, OnInit} from '@angular/core';
|
||||||
import {NgClass, NgForOf} from '@angular/common';
|
import {NgForOf} from '@angular/common';
|
||||||
import {Shutter} from '../../api/Shutter/Shutter';
|
import {Shutter} from '../../api/Shutter/Shutter';
|
||||||
import {ShutterService} from '../../api/Shutter/shutter.service';
|
import {ShutterService} from '../../api/Shutter/shutter.service';
|
||||||
import {RelativePipe} from '../../api/common/relative.pipe';
|
import {RelativePipe} from '../../api/common/relative.pipe';
|
||||||
@ -11,7 +11,6 @@ import {ShutterIconComponent} from './shutter-icon/shutter-icon.component';
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [
|
imports: [
|
||||||
NgForOf,
|
NgForOf,
|
||||||
NgClass,
|
|
||||||
RelativePipe,
|
RelativePipe,
|
||||||
ShutterIconComponent
|
ShutterIconComponent
|
||||||
],
|
],
|
||||||
@ -32,7 +31,7 @@ export class ShutterListComponent implements OnInit, OnDestroy {
|
|||||||
constructor(
|
constructor(
|
||||||
protected readonly shutterService: ShutterService,
|
protected readonly shutterService: ShutterService,
|
||||||
) {
|
) {
|
||||||
// -
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Angular</title>
|
<title>Angular</title>
|
||||||
<base href="/">
|
<base href="/">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<!--suppress HtmlUnknownTarget -->
|
<!--suppress HtmlUnknownTarget -->
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { bootstrapApplication } from '@angular/platform-browser';
|
import {bootstrapApplication} from '@angular/platform-browser';
|
||||||
import { appConfig } from './app/app.config';
|
import {appConfig} from './app/app.config';
|
||||||
import { AppComponent } from './app/app.component';
|
import {AppComponent} from './app/app.component';
|
||||||
|
|
||||||
bootstrapApplication(AppComponent, appConfig)
|
bootstrapApplication(AppComponent, appConfig)
|
||||||
.catch((err) => console.error(err));
|
.catch((err) => console.error(err));
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
package de.ph87.home.knx.link;
|
package de.ph87.home.knx.link;
|
||||||
|
|
||||||
import de.ph87.home.knx.group.Group;
|
|
||||||
import de.ph87.home.knx.KnxConfig;
|
import de.ph87.home.knx.KnxConfig;
|
||||||
|
import de.ph87.home.knx.group.Group;
|
||||||
import de.ph87.home.knx.link.request.Request;
|
import de.ph87.home.knx.link.request.Request;
|
||||||
import de.ph87.home.knx.link.request.RequestRead;
|
import de.ph87.home.knx.link.request.RequestRead;
|
||||||
import de.ph87.home.knx.link.request.RequestWrite;
|
import de.ph87.home.knx.link.request.RequestWrite;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user