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