+
{{ schedule.title }}
diff --git a/src/main/angular/src/app/shared/number/number.component.less b/src/main/angular/src/app/shared/number/number.component.less
index c4c439c..a56448a 100644
--- a/src/main/angular/src/app/shared/number/number.component.less
+++ b/src/main/angular/src/app/shared/number/number.component.less
@@ -1,7 +1,9 @@
+@import "../../../config";
+
input {
outline: none;
border: none;
- padding: 5px;
+ padding: @padding;
margin: 0;
width: 100%;
background-color: transparent;
diff --git a/src/main/angular/src/app/shared/search/search.component.less b/src/main/angular/src/app/shared/search/search.component.less
index 30e4f3a..1465331 100644
--- a/src/main/angular/src/app/shared/search/search.component.less
+++ b/src/main/angular/src/app/shared/search/search.component.less
@@ -1,22 +1,24 @@
+@import "../../../config";
+
.all {
.initial {
- padding: 5px;
+ padding: @padding;
height: 100%;
}
.selected {
font-weight: bold;
- border-bottom: 1px solid black;
+ border-bottom: @border solid black;
}
.resultList {
position: absolute;
background-color: lightgray;
- min-width: 200px;
- border: 1px solid black;
+ min-width: 10em;
+ border: @border solid black;
.result {
- padding: 5px;
+ padding: @padding;
}
.result:hover {
diff --git a/src/main/angular/src/config.less b/src/main/angular/src/config.less
index 2fef0e6..4960a7e 100644
--- a/src/main/angular/src/config.less
+++ b/src/main/angular/src/config.less
@@ -3,18 +3,10 @@
@border: 0.05em;
@border-radius: 0.2em;
-.disabledFont {
- color: gray;
-}
-
.disabledBack {
background-color: gray;
}
-.enabledFont {
- color: #8fbc8f;
-}
-
.enabledBack {
background-color: #8fbc8f;
}
@@ -34,3 +26,23 @@
.fuzzyBack {
background-color: #88c0ff;
}
+
+.deviceSwitchOnBack {
+ background-color: #8fbc8f;
+}
+
+.deviceSwitchOffBack {
+ background-color: #bc8f8f;
+}
+
+.deviceShutterOpenBack {
+ background-color: #8fbc8f;
+}
+
+.deviceShutterIntermediateBack {
+ background-color: #e4db9c;
+}
+
+.deviceShutterClosedBack {
+ background-color: #bc8f8f;
+}
diff --git a/src/main/angular/src/styles.less b/src/main/angular/src/styles.less
index e1f15f9..fe71f9f 100644
--- a/src/main/angular/src/styles.less
+++ b/src/main/angular/src/styles.less
@@ -1,3 +1,5 @@
+@import "config";
+
* {
box-sizing: border-box;
}
@@ -54,11 +56,11 @@ table {
td, th {
height: 0; // (=> auto growth) enables use of height percent for children
- padding: 5px;
- border: 1px solid black;
+ padding: @padding;
+ border: @border solid black;
img.fullCell {
- margin: -5px;
+ margin: calc(-@margin);
}
}
@@ -70,14 +72,6 @@ table.vertical {
}
}
-.center {
- position: absolute;
- margin: 0;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
-}
-
.empty {
text-align: center;
color: gray;
diff --git a/src/main/java/de/ph87/homeautomation/web/WebConfig.java b/src/main/java/de/ph87/homeautomation/web/WebConfig.java
index bf1c8f8..307b09b 100644
--- a/src/main/java/de/ph87/homeautomation/web/WebConfig.java
+++ b/src/main/java/de/ph87/homeautomation/web/WebConfig.java
@@ -1,5 +1,6 @@
package de.ph87.homeautomation.web;
+import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
@@ -27,7 +28,7 @@ public class WebConfig implements WebMvcConfigurer {
.addResourceLocations("classpath:/resources/")
.resourceChain(true)
.addResolver(new PathResourceResolver() {
- protected Resource getResource(String resourcePath, Resource roomLocation) throws IOException {
+ protected Resource getResource(@NonNull String resourcePath, @NonNull Resource roomLocation) throws IOException {
Resource requestedResource = roomLocation.createRelative(resourcePath);
return requestedResource.exists() && requestedResource.isReadable() ? requestedResource : new ClassPathResource("/resources/index.html");
}
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index f9fffb6..492b37b 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -5,6 +5,4 @@ spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.Im
spring.jpa.hibernate.ddl-auto=update
spring.jpa.open-in-view=false
#-
-spring.jackson.serialization.indent_output=true
-#-
spring.main.banner-mode=off