Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1854752d92 | ||
|
|
7b85810c29 | ||
|
|
5ff779aee4 | ||
|
|
a7c4480464 | ||
|
|
96a266c728 | ||
|
|
99e4b284bb | ||
|
|
25a810df05 | ||
|
|
66bed8c89f | ||
|
|
07e85b6f32 | ||
|
|
50c17ab504 |
+1
-1
@@ -30,7 +30,7 @@ plugins.withType(JavaPlugin) {
|
||||
allprojects {
|
||||
// set version for our project
|
||||
group = 'com.mowesta'
|
||||
version = '1.1.0'
|
||||
version = '1.1.2'
|
||||
|
||||
// set versions for our libraries
|
||||
ext {
|
||||
|
||||
@@ -111,6 +111,7 @@ public interface ILogService {
|
||||
},
|
||||
security = @SecurityRequirement(name = Authorizations.ADMIN)
|
||||
)
|
||||
@RolesAllowed({Roles.ADMIN})
|
||||
Response getSystemStatistic();
|
||||
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
"src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
"src/styles.scss", "src/elements/styles.scss"
|
||||
],
|
||||
"scripts": [],
|
||||
"stylePreprocessorOptions": {
|
||||
@@ -225,7 +225,7 @@
|
||||
"src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
"src/styles.scss", "src/elements/styles.scss"
|
||||
],
|
||||
"scripts": [],
|
||||
"extractLicenses": false,
|
||||
|
||||
@@ -12,18 +12,21 @@ let outputDir;
|
||||
let inputDir;
|
||||
|
||||
/**
|
||||
* Builds the web component through concatenating all javascript files.
|
||||
*/
|
||||
async function buildElement() {
|
||||
const files = [
|
||||
`${inputDir}/polyfills.js`,
|
||||
`${inputDir}/main.js`,
|
||||
];
|
||||
await concat(files, `${outputDir}/${elementName}.js`);
|
||||
* Copy the polyfills.
|
||||
*/
|
||||
async function copyPolyfillsJs() {
|
||||
await fs.copySync( `${inputDir}/polyfills.js`, `${outputDir}/polyfills.js`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Copying and renaming the global styles.css file of the main web app.
|
||||
* Copy and rename the main.js file of the element.
|
||||
*/
|
||||
async function copyMainJs() {
|
||||
await fs.copySync( `${inputDir}/main.js`, `${outputDir}/${elementName}.js`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy and rename the element style.
|
||||
*/
|
||||
async function copyStylesCss() {
|
||||
await fs.copySync( `${inputDir}/styles.css`, `${outputDir}/${elementName}.css`);
|
||||
@@ -37,7 +40,8 @@ async function copyStylesCss() {
|
||||
if (!fs.pathExistsSync(outputDir)) {
|
||||
fs.mkdirSync(outputDir);
|
||||
}
|
||||
buildElement();
|
||||
copyPolyfillsJs();
|
||||
copyMainJs();
|
||||
copyStylesCss();
|
||||
console.log(`Finished building ${elementName}.`);
|
||||
})();
|
||||
|
||||
@@ -28,6 +28,12 @@
|
||||
</li>
|
||||
<li class="bottom-gap">{{ res.strings('city_code_dialog_scripts') }}
|
||||
<div class="fx-row code-box">
|
||||
<code class="code-snippet">
|
||||
<span class="tag"><script</span>
|
||||
<span class="attr"> src=</span>
|
||||
<span class="attr-value">"https://www.mowesta.com/app/polyfills.js"</span>
|
||||
<span class="tag">></script></span>
|
||||
</code>
|
||||
<code class="code-snippet">
|
||||
<span class="tag"><script</span>
|
||||
<span class="attr"> src=</span>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<mat-icon class="icon-button">done</mat-icon>
|
||||
<span>{{positive}}</span>
|
||||
</button>
|
||||
<button mat-raised-button class="fg-primary" (click)="onClose()" (keyup.enter)="onClose(); false" cdkFocusInitial>
|
||||
<button mat-raised-button (click)="onClose()" (keyup.enter)="onClose(); false" cdkFocusInitial>
|
||||
<mat-icon class="icon-button">close</mat-icon>
|
||||
<span>{{negative}}</span>
|
||||
</button>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
</mat-card-content>
|
||||
<mat-card-actions class="fx-row fx-spacecenter">
|
||||
<button mat-raised-button class="fg-primary" (click)="onClose()">
|
||||
<button mat-raised-button (click)="onClose()">
|
||||
<mat-icon class="icon-button">done</mat-icon>
|
||||
<span>{{res.strings('button_close')}}</span>
|
||||
</button>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<mat-card-title>{{title}}</mat-card-title>
|
||||
<mat-card-content>{{message}}</mat-card-content>
|
||||
<mat-card-actions class="fx-row fx-spacecenter">
|
||||
<button mat-raised-button class="fg-primary" (click)="onClose()" (keyup.enter)="onClose();false" cdkFocusInitial>
|
||||
<button mat-raised-button (click)="onClose()" (keyup.enter)="onClose();false" cdkFocusInitial>
|
||||
<mat-icon class="icon-button">done</mat-icon>
|
||||
<span>{{button}}</span>
|
||||
</button>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<mat-nav-list class="mat-typography">
|
||||
<h3 class="fg-gray" style="margin-bottom: 0px; padding-left: 20px;font-weight: bold;" mat-subheader>{{res.strings('drawer_weather')}}</h3>
|
||||
<h3 class="fg-drawerTitles" style="margin-bottom: 0px; padding-left: 20px;font-weight: bold;" mat-subheader>{{res.strings('drawer_weather')}}</h3>
|
||||
<mat-list-item>
|
||||
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/weather/map'">
|
||||
<mat-icon class="icon-button">map</mat-icon>
|
||||
@@ -42,7 +42,7 @@
|
||||
}
|
||||
@if (admin) {
|
||||
<ng-container >
|
||||
<h3 class="fg-gray" style="margin-bottom: 0px; padding-left: 20px; padding-top: 40px; font-weight: bold;" mat-subheader>{{res.strings('drawer_management')}}</h3>
|
||||
<h3 class="fg-drawerTitles" style="margin-bottom: 0px; padding-left: 20px; padding-top: 40px; font-weight: bold;" mat-subheader>{{res.strings('drawer_management')}}</h3>
|
||||
<mat-list-item>
|
||||
<a mat-list-item [routerLink]="'/' + res.getLanguage() + '/manage/system'">
|
||||
<mat-icon class="icon-button">equalizer</mat-icon>
|
||||
@@ -69,7 +69,7 @@
|
||||
</mat-list-item>
|
||||
</ng-container>
|
||||
}
|
||||
<h3 class="fg-gray" style="margin-bottom: 0px; padding-left: 20px; padding-top: 40px; font-weight: bold;" mat-subheader>{{res.strings('drawer_account')}}</h3>
|
||||
<h3 class="fg-drawerTitles" style="margin-bottom: 0px; padding-left: 20px; padding-top: 40px; font-weight: bold;" mat-subheader>{{res.strings('drawer_account')}}</h3>
|
||||
@if (user) {
|
||||
<ng-container>
|
||||
<mat-list-item>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<mat-toolbar class="bg-secondary" style="height: auto; display: flex; flex-flow:row wrap;justify-content: center; gap: 10px">
|
||||
<a class="fg-primary mat-caption font" href="https://www.nes.uni-due.de" target="_blank"><span class="full">Networked Embedded Systems</span><span class="short">NES</span></a>
|
||||
<a class="fg-primary mat-caption font" href="https://www.uni-due.de" target="_blank"><span class="full">Universität Duisburg-Essen</span><span class="short">UDE</span></a>
|
||||
<a class="fg-primary mat-caption font" href="assets/texts/licenses.txt" target="_blank">{{ res.strings('footer_licenses')}}</a>
|
||||
<a class="fg-primary mat-caption font" href="https://www.mowesta.com/terms-of-service" target="_blank">{{ res.strings('footer_terms')}}</a>
|
||||
<a class="fg-primary mat-caption font" href="https://www.uni-due.de/de/impressum.shtml" target="_blank">{{ res.strings('footer_imprint')}}</a>
|
||||
<span class="fg-primary mat-caption font">© 2018 {{ res.strings('footer_rights_reserved')}}</span>
|
||||
<mat-toolbar class="bg-secondary font" style="height: auto; display: flex; flex-flow:row wrap;justify-content: center; gap: 10px">
|
||||
<a class=" mat-caption font" href="https://www.nes.uni-due.de" target="_blank"><span class="full">Networked Embedded Systems</span><span class="short">NES</span></a>
|
||||
<a class=" mat-caption font" href="https://www.uni-due.de" target="_blank"><span class="full">Universität Duisburg-Essen</span><span class="short">UDE</span></a>
|
||||
<a class=" mat-caption font" href="assets/texts/licenses.txt" target="_blank">{{ res.strings('footer_licenses')}}</a>
|
||||
<a class=" mat-caption font" href="https://www.mowesta.com/terms-of-service" target="_blank">{{ res.strings('footer_terms')}}</a>
|
||||
<a class=" mat-caption font" href="https://www.uni-due.de/de/impressum.shtml" target="_blank">{{ res.strings('footer_imprint')}}</a>
|
||||
<span class=" mat-caption font">© 2018 {{ res.strings('footer_rights_reserved')}}</span>
|
||||
@if (res.strings('language')!='de') {
|
||||
<img src="assets/flags/de.svg" height="14px" (click)="setLanguage('de')">
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
display: none;
|
||||
}
|
||||
.font{
|
||||
font:500 18px/20px Montserrat !important;;
|
||||
font:500 16px/20px Montserrat !important;;
|
||||
}
|
||||
@media only screen and (max-width: 925px){
|
||||
.short {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div [ngClass]="{ 'fx-compact': !wide, 'fx-main': wide }">
|
||||
<ng-content select="[id='main']"></ng-content>
|
||||
</div>
|
||||
<div class="bg-default" [ngClass]="{ 'fx-compact': !wide, 'fx-side': wide }">
|
||||
<div [ngClass]="{ 'fx-compact': !wide, 'fx-side': wide }">
|
||||
<ng-content select="[id='side']"></ng-content>
|
||||
</div>
|
||||
<div class="fx-auto gradient-right"></div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div style="height: 100%; display: flex; flex-direction: column; justify-content: start;align-items: stretch;">
|
||||
<mat-toolbar class="mat-elevation-z4 fg-primary" style="z-index: 10;position:relative;">
|
||||
<mat-toolbar class="mat-elevation-z4" style="z-index: 10;position:relative;">
|
||||
@if (compact) {
|
||||
<ng-container>
|
||||
<button mat-icon-button (click)="toggleDrawer()"><mat-icon style="margin-bottom:4px;">{{ opened?'arrow_back':'menu' }}</mat-icon></button>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="fx-column fx-h100 fx-w100 fx-center">
|
||||
<div class="fx-auto fx-row fx-center">
|
||||
<mat-progress-spinner diameter="100" class="fg-primary" mode="indeterminate"></mat-progress-spinner>
|
||||
<mat-progress-spinner diameter="100" mode="indeterminate"></mat-progress-spinner>
|
||||
</div>
|
||||
</div>
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class="fx-row" style="justify-content: space-around; align-items: center;">
|
||||
@if(idle | async; as submittable){
|
||||
<ng-container>
|
||||
<button class="fg-primary bg-secondary" #loginButton mat-raised-button [disabled]="!submittable || loginForm.invalid" (click)="onLogin()">
|
||||
<button #loginButton mat-raised-button [disabled]="!submittable || loginForm.invalid" (click)="onLogin()">
|
||||
<mat-icon class="icon-button">open_in_browser</mat-icon>
|
||||
<span>{{res.strings('button_login')}}</span>
|
||||
</button>
|
||||
@@ -26,7 +26,7 @@
|
||||
<mat-spinner [diameter]="36"></mat-spinner>
|
||||
</ng-container>
|
||||
}
|
||||
<a class="fg-primary" [routerLink]="'/' + res.getLanguage() + '/reset'" style="text-align: center; max-width: 80px;">{{res.strings('login_login_reset')}}</a>
|
||||
<a [routerLink]="'/' + res.getLanguage() + '/reset'" style="text-align: center; max-width: 80px;">{{res.strings('login_login_reset')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -38,7 +38,7 @@
|
||||
<p>{{res.strings('login_register_paragraph')}}</p>
|
||||
</mat-card-content>
|
||||
<mat-card-actions class="fx-row fx-spacecenter">
|
||||
<button class="mb-sm fg-primary bg-secondary" mat-raised-button [routerLink]="'/' + res.getLanguage() + '/register'">
|
||||
<button class="mb-sm" mat-raised-button [routerLink]="'/' + res.getLanguage() + '/register'">
|
||||
<mat-icon class="icon-button">mode_edit</mat-icon>
|
||||
<span>{{res.strings('button_register')}}</span>
|
||||
</button>
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
<app-password-field class="fx-wrap fx-mar30" [password]="registration.password" (keyup.enter)="registerForm.valid && onRegister()"></app-password-field>
|
||||
<mat-checkbox class="long-checkbox" [(ngModel)]="termsAccepted" name="termsAccepted">
|
||||
{{ res.strings('register_terms_pre') }}
|
||||
<a class="register-link fg-secondary" href="https://www.mowesta.com/privacy-policy" target="_blank">
|
||||
<a class="register-link" href="https://www.mowesta.com/privacy-policy" target="_blank">
|
||||
{{ res.strings('register_terms_policy') }}
|
||||
</a>
|
||||
{{ res.strings('register_terms_mid') }}
|
||||
<a class="register-link fg-secondary" href="https://www.mowesta.com/terms-of-service" target="_blank">
|
||||
<a class="register-link" href="https://www.mowesta.com/terms-of-service" target="_blank">
|
||||
{{ res.strings('register_terms_service') }}
|
||||
</a>
|
||||
{{ res.strings('register_terms_end') }}
|
||||
@@ -28,7 +28,7 @@
|
||||
<div class="fx-row fx-center mt-lg">
|
||||
@if(idle | async; as submittable){
|
||||
<ng-container>
|
||||
<button class="bg-secondary fg-primary" #registerButton mat-raised-button [disabled]="!submittable || registerForm.invalid" (click)="onRegister()">
|
||||
<button #registerButton mat-raised-button [disabled]="!submittable || registerForm.invalid" (click)="onRegister()">
|
||||
<mat-icon class="icon-button">arrow_forward</mat-icon>
|
||||
<span>{{ res.strings('button_register') }}</span>
|
||||
</button>
|
||||
@@ -49,7 +49,7 @@
|
||||
<p>{{ res.strings('register_already_paragraph') }}</p>
|
||||
</mat-card-content>
|
||||
<mat-card-actions class="fx-row fx-spacecenter">
|
||||
<button class="fg-primary bg-secondary" mat-raised-button [routerLink]="'/' + res.getLanguage() + '/login'">
|
||||
<button mat-raised-button [routerLink]="'/' + res.getLanguage() + '/login'">
|
||||
<mat-icon class="icon-button">open_in_browser</mat-icon>
|
||||
<span>{{ res.strings('button_login') }}</span>
|
||||
</button>
|
||||
@@ -63,7 +63,7 @@
|
||||
</mat-card-content>
|
||||
<mat-card-actions class="fx-row fx-spacecenter">
|
||||
<a href="https://www.mowesta.com">
|
||||
<button class="fg-primary bg-secondary" mat-raised-button>
|
||||
<button mat-raised-button>
|
||||
<mat-icon class="icon-button">help_outline</mat-icon>
|
||||
<span>{{ res.strings('register_why_moreinfo') }}</span>
|
||||
</button>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
@use '@angular/material' as mat;
|
||||
@import '../../styles.scss';
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.mat-mdc-dialog-container{
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, OnDestroy, ViewChild, DoCheck, ElementRef } from '@angular/core';
|
||||
import { Component, OnInit, OnDestroy, ViewChild, DoCheck, ElementRef, ViewEncapsulation } from '@angular/core';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
@@ -19,6 +19,8 @@ import { MatToolbar } from '@angular/material/toolbar';
|
||||
selector: 'app-manage-log',
|
||||
templateUrl: './manage-log.component.html',
|
||||
standalone: true,
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
styleUrl: 'manage-log.component.scss',
|
||||
imports: [MatToolbar, MatIcon, MatIconButton, MatTooltip, MatProgressBar, MatTable, MatColumnDef, MatHeaderCellDef, MatHeaderCell, NgStyle, MatCellDef, MatCell, MatHeaderRowDef, MatHeaderRow, MatRowDef, MatRow, AsyncPipe, DatePipe]
|
||||
})
|
||||
export class ManageLogComponent implements OnInit, OnDestroy, DoCheck {
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
<mat-icon>equalizer</mat-icon>
|
||||
<span>{{ res.strings('manage_system_title') }}</span>
|
||||
</mat-toolbar>
|
||||
<app-layout-double class="fx-fill fx-row fx-stretch">
|
||||
<div id='main' class="fx-fill">
|
||||
<app-layout-single class="fx-fill fx-row fx-stretch">
|
||||
<div class="fx-fill">
|
||||
<div class="m-lg mat-typography">
|
||||
<h2>{{ res.strings('manage_system_equipment_title') }}</h2>
|
||||
<h6>{{ res.strings('manage_system_equipment_subtitle') }}</h6>
|
||||
@@ -84,147 +84,115 @@
|
||||
</div>
|
||||
<mat-divider></mat-divider>
|
||||
</div>
|
||||
<div id='side' class="bg-default fx-column">
|
||||
<mat-card appearance="outlined" class="mat-typography m-sm">
|
||||
<mat-card-title-group>
|
||||
<mat-card-title style="font:500 24px/32px Montserrat;margin-left: 15px;margin-top: 10px;">{{ res.strings('manage_system_load_title') }}</mat-card-title>
|
||||
<mat-card-subtitle style="margin-left: 15px;">{{ res.strings('manage_system_load_subtitle') }}</mat-card-subtitle>
|
||||
</mat-card-title-group>
|
||||
<mat-card-content>
|
||||
@if(canGetCpuLoad()){
|
||||
@if (getCpuLoad() <= 40) {
|
||||
<ng-container>
|
||||
<div style="text-align: center">
|
||||
<ngx-gauge size="200" type="arch" [value]="getCpuLoad()"
|
||||
cap="round" thick="20" min="0" max="100"
|
||||
foregroundColor="#ffa500"
|
||||
duration="500">>
|
||||
<ngx-gauge-append>
|
||||
%
|
||||
</ngx-gauge-append>
|
||||
<ngx-gauge-value>
|
||||
{{getCpuLoad()}}
|
||||
</ngx-gauge-value>
|
||||
</ngx-gauge>
|
||||
<div style="display: flex;">
|
||||
<div class="fx-column">
|
||||
<mat-card appearance="outlined" class="mat-typography m-sm">
|
||||
<mat-card-title-group>
|
||||
<mat-card-title style="font:500 24px/32px Montserrat;margin-left: 15px;margin-top: 10px;">{{ res.strings('manage_system_load_title') }}</mat-card-title>
|
||||
<mat-card-subtitle style="margin-left: 15px;">{{ res.strings('manage_system_load_subtitle') }}</mat-card-subtitle>
|
||||
</mat-card-title-group>
|
||||
<mat-card-content>
|
||||
@if(canGetCpuLoad()){
|
||||
@if (getCpuLoad() <= 40) {}}
|
||||
<div>
|
||||
<svg height="400" viewBox="-200 -200 400 400" xmlns="http://www.w3.org/2000/svg" >
|
||||
<!--Border Circle-->
|
||||
<path [attr.d]="
|
||||
' M ' + asString(getPointForAngle(30, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 0 ' + asString(getPointForAngle(270, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' M ' + asString(getPointForAngle(270, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 0 ' + asString(getPointForAngle(150, pos.radius, pos.centerX, pos.centerY))"
|
||||
stroke="#aaaaaa" stroke-width="10" stroke-linecap="round" fill-opacity="0"/>
|
||||
<!--Inner Cirlce 100% => 230°, 1% => 2.3°-->
|
||||
@if(canGetCpuLoad()){
|
||||
@if (getCpuLoad() <= 40) {
|
||||
<path [attr.d]="
|
||||
' M ' + asString(getPointForAngle(pos.startAngle-60, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 1 ' + asString(getPointForAngle((pos.startAngle-60+230/100*getCpuLoad()) , pos.radius, pos.centerX, pos.centerY))"
|
||||
stroke="green" stroke-width="8" stroke-linecap="round" fill-opacity="0"/>
|
||||
}@else if (getCpuLoad() <= 70) {
|
||||
<path [attr.d]="
|
||||
' M ' + asString(getPointForAngle(pos.startAngle-60, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 1 ' + asString(getPointForAngle((pos.startAngle-60+230/100*getCpuLoad()) , pos.radius, pos.centerX, pos.centerY))"
|
||||
stroke="orange" stroke-width="8" stroke-linecap="round" fill-opacity="0"/>
|
||||
}@else {
|
||||
<path [attr.d]="
|
||||
' M ' + asString(getPointForAngle(pos.startAngle-60, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 1 ' + asString(getPointForAngle((pos.startAngle-60+230/100*getCpuLoad()) , pos.radius, pos.centerX, pos.centerY)) +
|
||||
' M ' + asString(getPointForAngle(30-230/100*(100-getCpuLoad()), pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 0 ' + asString(getPointForAngle(270, pos.radius, pos.centerX, pos.centerY))"
|
||||
stroke="red" stroke-width="8" stroke-linecap="round" fill-opacity="0"/>
|
||||
}
|
||||
<text x="-30" y="70" font-size="35">{{getCpuLoad()}}%</text>
|
||||
}@else {
|
||||
<text x="-64" y="70" font-size="35" fill="red">ERROR</text>
|
||||
}
|
||||
</svg>
|
||||
</div>
|
||||
</ng-container>
|
||||
} @else if (getCpuLoad() <= 80) {
|
||||
<ng-container>
|
||||
<div style="text-align: center">
|
||||
<ngx-gauge size="200" type="arch" [value]="getCpuLoad()"
|
||||
cap="round" thick="20" min="0" max="100"
|
||||
foregroundColor="#ffa500"
|
||||
duration="500">>
|
||||
<ngx-gauge-append>
|
||||
%
|
||||
</ngx-gauge-append>
|
||||
<ngx-gauge-value>
|
||||
{{getCpuLoad()}}
|
||||
</ngx-gauge-value>
|
||||
</ngx-gauge>
|
||||
</div>
|
||||
</ng-container>
|
||||
} @else {
|
||||
<mat-card-footer>
|
||||
@if(load != null){
|
||||
<ng-container>
|
||||
<div style="text-align: center">
|
||||
<ngx-gauge size="200" type="arch" [value]="getCpuLoad()"
|
||||
cap="round" thick="20" min="0" max="100"
|
||||
foregroundColor="#FF0000"
|
||||
duration="500">>
|
||||
<ngx-gauge-append>
|
||||
%
|
||||
</ngx-gauge-append>
|
||||
<ngx-gauge-value>
|
||||
{{getCpuLoad()}}
|
||||
</ngx-gauge-value>
|
||||
</ngx-gauge>
|
||||
<div style="text-align: center" class="mat-typography">
|
||||
<span class="detail-label">{{ res.strings('manage_system_uptime') }}</span>
|
||||
<span class="detail-value">{{" "+ getUptime(load.uptime) }}</span>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
}@else{
|
||||
<ng-template [ngTemplateOutlet]="progressBar"></ng-template>
|
||||
}
|
||||
<mat-card-footer>
|
||||
@if(load != null){
|
||||
<ng-container>
|
||||
<div style="text-align: center" class="mat-typography">
|
||||
<span class="detail-label">{{ res.strings('manage_system_uptime') }}</span>
|
||||
<span class="detail-value">{{" "+ getUptime(load.uptime) }}</span>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
</mat-card-footer>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<mat-card appearance="outlined" class="mat-typography m-sm">
|
||||
<mat-card-title style="font:500 24px/32px Montserrat;margin-left: 15px;margin-top: 10px;">{{ res.strings('manage_system_memory_title') }}</mat-card-title>
|
||||
<mat-card-subtitle style="margin-left: 15px;">{{ res.strings('manage_system_memory_subtitle') }}</mat-card-subtitle>
|
||||
<mat-card-content class="caption" style="flex:1">
|
||||
@if(load != null){
|
||||
@if (getMemoryLoad() <= 40) {
|
||||
<ng-container>
|
||||
<div style="text-align: center">
|
||||
<ngx-gauge size="200" type="arch" [value]="getMemoryLoad()"
|
||||
cap="round" thick="20" min="0" max="100"
|
||||
foregroundColor="#00FF00"
|
||||
duration="500">>
|
||||
<ngx-gauge-append>
|
||||
%
|
||||
</ngx-gauge-append>
|
||||
<ngx-gauge-value>
|
||||
{{getMemoryLoad()}}
|
||||
</ngx-gauge-value>
|
||||
</ngx-gauge>
|
||||
</div>
|
||||
</ng-container>
|
||||
} @else if (getMemoryLoad() <= 80) {
|
||||
<ng-container>
|
||||
<div style="text-align: center">
|
||||
<ngx-gauge size="200" type="arch" [value]="getMemoryLoad()"
|
||||
cap="round" thick="20" min="0" max="100"
|
||||
foregroundColor="#ffa500"
|
||||
duration="500">>
|
||||
<ngx-gauge-append>
|
||||
%
|
||||
</ngx-gauge-append>
|
||||
<ngx-gauge-value>
|
||||
{{getMemoryLoad()}}
|
||||
</ngx-gauge-value>
|
||||
</ngx-gauge>
|
||||
</div>
|
||||
</ng-container>
|
||||
} @else {
|
||||
<ng-container>
|
||||
<div style="text-align: center">
|
||||
<ngx-gauge size="200" type="arch" [value]="getMemoryLoad()"
|
||||
cap="round" thick="20" min="0" max="100"
|
||||
foregroundColor="#FF0000"
|
||||
duration="500">>
|
||||
<ngx-gauge-append>
|
||||
%
|
||||
</ngx-gauge-append>
|
||||
<ngx-gauge-value>
|
||||
{{getMemoryLoad()}}
|
||||
</ngx-gauge-value>
|
||||
</ngx-gauge>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
}@else{
|
||||
<ng-template [ngTemplateOutlet]="progressBar"></ng-template>
|
||||
}
|
||||
<mat-card-footer>
|
||||
@if(load != null){
|
||||
<ng-container>
|
||||
<div style="text-align: center" class="mat-typography">
|
||||
<span class="detail-label">{{ res.strings('manage_system_max_heap') }}</span>
|
||||
<span class="detail-value">{{" "+ getMemory(load.maxHeapSize) }}</span>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
</mat-card-footer>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</mat-card-footer>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
<div class="fx-column">
|
||||
<mat-card appearance="outlined" class="mat-typography m-sm">
|
||||
<mat-card-title style="font:500 24px/32px Montserrat;margin-left: 15px;margin-top: 10px;">{{ res.strings('manage_system_memory_title') }}</mat-card-title>
|
||||
<mat-card-subtitle style="margin-left: 15px;">{{ res.strings('manage_system_memory_subtitle') }}</mat-card-subtitle>
|
||||
<mat-card-content class="caption" style="flex:1">
|
||||
<div>
|
||||
<svg height="400" viewBox="-200 -200 400 400" xmlns="http://www.w3.org/2000/svg" >
|
||||
<!--Border Circle-->
|
||||
<path [attr.d]="
|
||||
' M ' + asString(getPointForAngle(30, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 0 ' + asString(getPointForAngle(270, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' M ' + asString(getPointForAngle(270, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 0 ' + asString(getPointForAngle(150, pos.radius, pos.centerX, pos.centerY))"
|
||||
stroke="#aaaaaa" stroke-width="10" stroke-linecap="round" fill-opacity="0"/>
|
||||
<!--Inner Cirlce 100% => 230°, 1% => 2.3°-->
|
||||
@if(load != null){
|
||||
@if (getMemoryLoad() <= 40) {
|
||||
<path [attr.d]="
|
||||
' M ' + asString(getPointForAngle(pos.startAngle-60, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 1 ' + asString(getPointForAngle((pos.startAngle-60+230/100*getMemoryLoad()) , pos.radius, pos.centerX, pos.centerY))"
|
||||
stroke="green" stroke-width="8" stroke-linecap="round" fill-opacity="0"/>
|
||||
}@else if (getMemoryLoad() <= 70) {
|
||||
<path [attr.d]="
|
||||
' M ' + asString(getPointForAngle(pos.startAngle-60, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 1 ' + asString(getPointForAngle((pos.startAngle-60+230/100*getMemoryLoad()) , pos.radius, pos.centerX, pos.centerY))"
|
||||
stroke="orange" stroke-width="8" stroke-linecap="round" fill-opacity="0"/>
|
||||
}@else {
|
||||
<path [attr.d]="
|
||||
' M ' + asString(getPointForAngle(pos.startAngle-60, pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 1 ' + asString(getPointForAngle((pos.startAngle-60+230/100*getMemoryLoad()) , pos.radius, pos.centerX, pos.centerY)) +
|
||||
' M ' + asString(getPointForAngle(30-230/100*(100-getMemoryLoad()), pos.radius, pos.centerX, pos.centerY)) +
|
||||
' A ' + pos.radius + ' ' + pos.radius + ' 0 0 0 ' + asString(getPointForAngle(270, pos.radius, pos.centerX, pos.centerY))"
|
||||
stroke="red" stroke-width="8" stroke-linecap="round" fill-opacity="0"/>
|
||||
}
|
||||
<text x="-30" y="70" font-size="35">{{getMemoryLoad()}}%</text>
|
||||
}
|
||||
</svg>
|
||||
</div>
|
||||
<mat-card-footer>
|
||||
@if(load != null){
|
||||
<ng-container>
|
||||
<div style="text-align: center" class="mat-typography">
|
||||
<span class="detail-label">{{ res.strings('manage_system_max_heap') }}</span>
|
||||
<span class="detail-value">{{" "+ getMemory(load.maxHeapSize) }}</span>
|
||||
</div>
|
||||
</ng-container>
|
||||
}
|
||||
</mat-card-footer>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
</div>
|
||||
</app-layout-double>
|
||||
</app-layout-single>
|
||||
</div>
|
||||
@@ -12,6 +12,7 @@ import { LayoutDoubleComponent } from '../layouts/layout_double.component';
|
||||
import { MatIcon } from '@angular/material/icon';
|
||||
import { MatToolbar } from '@angular/material/toolbar';
|
||||
import { MatProgressSpinner } from '@angular/material/progress-spinner';
|
||||
import { LayoutSingleComponent } from "../layouts/layout_single.component";
|
||||
|
||||
class EntityDataSource implements DataSource<EntityStatistic> {
|
||||
|
||||
@@ -34,7 +35,7 @@ class EntityDataSource implements DataSource<EntityStatistic> {
|
||||
':host { height: 100%; display: flex; flex-flow: column nowrap; justify-content: stretch; }'
|
||||
],
|
||||
standalone: true,
|
||||
imports: [MatProgressSpinner, MatToolbar, MatIcon, LayoutDoubleComponent, MatList, MatListSubheaderCssMatStyler, MatListItem, MatDivider, NgTemplateOutlet, MatCard, MatCardTitleGroup, MatCardTitle, MatCardSubtitle, MatCardContent, MatCardFooter]
|
||||
imports: [MatProgressSpinner, MatToolbar, MatIcon, LayoutDoubleComponent,LayoutSingleComponent, MatList, MatListSubheaderCssMatStyler, MatListItem, MatDivider, NgTemplateOutlet, MatCard, MatCardTitleGroup, MatCardTitle, MatCardSubtitle, MatCardContent, MatCardFooter, LayoutSingleComponent]
|
||||
})
|
||||
export class ManageSystemComponent implements OnInit, OnDestroy {
|
||||
private static readonly TIMEOUT_ERROR = 10000;
|
||||
@@ -151,5 +152,22 @@ export class ManageSystemComponent implements OnInit, OnDestroy {
|
||||
return { d: d, h: h, m: m, s: s };
|
||||
}
|
||||
|
||||
pos = {
|
||||
radius: 100,
|
||||
startAngle: 210,
|
||||
endAngle: -30,
|
||||
centerX: 100,
|
||||
centerY: 100
|
||||
}
|
||||
|
||||
getPointForAngle(angle: number, radius: number, centerX: number, centerY: number): number[] {
|
||||
var angleRadians = angle * Math.PI / 180;
|
||||
var x = radius * Math.cos(angleRadians);
|
||||
var y = radius * Math.sin(angleRadians);
|
||||
return [ x , y ]
|
||||
}
|
||||
|
||||
asString(n: number[]): string {
|
||||
return n[0] + ' ' + n[1];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
@if(loc.type != 'CITY'){
|
||||
<ng-container>
|
||||
<mat-card-footer>
|
||||
<div class="fx-fill fs-sm ta-c bg-primary fg-white">{{ res.strings('user_favorites_city_hint') }} {{ conditions.get(loc).city.names | localName }}</div>
|
||||
<div class="fx-fill fs-sm ta-c">{{ res.strings('user_favorites_city_hint') }} {{ conditions.get(loc).city.names | localName }}</div>
|
||||
</mat-card-footer>
|
||||
</ng-container>
|
||||
}
|
||||
|
||||
@@ -44,10 +44,10 @@
|
||||
</mat-card>
|
||||
@if(condition | async; as c){
|
||||
<mat-card appearance="outlined"class="m-sm sidebar1">
|
||||
<mat-card-header class="fg-weatherwallpaper" style="align-items: end; height: 100px;background-size: cover; background-position: center; background-image: url('{{c.type | weatherWallpaper}}');border-top-left-radius: 3px;border-top-right-radius: 3px;">
|
||||
<div mat-card-avatar class="fg-weatherwallpaper" style="font-size: 42px; width: 60px;"><i [class]="c.type | weatherIcon"></i></div>
|
||||
<mat-card-title class="fg-weatherwallpaper" >{{ res.strings('city_info_title') }}</mat-card-title>
|
||||
<mat-card-subtitle class="fg-weatherwallpaper" style="margin-bottom: 20px;">{{ c.type | weather }}</mat-card-subtitle>
|
||||
<mat-card-header class="weatherwallpaper" style="align-items: end; height: 100px;background-size: cover; background-position: center; background-image: url('{{c.type | weatherWallpaper}}');border-top-left-radius: 3px;border-top-right-radius: 3px;">
|
||||
<div mat-card-avatar class="weatherwallpaper" style="font-size: 42px; width: 60px;"><i [class]="c.type | weatherIcon"></i></div>
|
||||
<mat-card-title class="weatherwallpaper" >{{ res.strings('city_info_title') }}</mat-card-title>
|
||||
<mat-card-subtitle class="weatherwallpaper" style="margin-bottom: 20px;">{{ c.type | weather }}</mat-card-subtitle>
|
||||
</mat-card-header>
|
||||
<mat-divider></mat-divider>
|
||||
<mat-card-content>
|
||||
@@ -111,7 +111,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
<mat-card-footer class="bg-primary fg-white">
|
||||
<mat-card-footer>
|
||||
<div class="fx-fill fx-row">
|
||||
<div class="fx-auto"></div>
|
||||
<div style="font:500 12px/20px Montserrat !important;" class="mat-caption ml-sm mr-sm">{{ res.strings('label_source') }}</div>
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
@use '@angular/material' as mat;
|
||||
@import "../../styles.scss";
|
||||
|
||||
/* Small devices (phones, small tablets) */
|
||||
@media only screen and (max-width: 767px){
|
||||
.grid-viewbar{
|
||||
font:500 16px/20px Montserrat !important;
|
||||
grid-auto-flow: row;
|
||||
display: grid;
|
||||
grid-template-columns: 30px auto auto 48px 48px 48px 48px;
|
||||
grid-template-columns: 30px auto 4px 48px 1fr 48px 48px 48px;
|
||||
grid-template-rows: auto;
|
||||
grid-template-areas:
|
||||
"icon title . fav wiki gmaps bmaps"
|
||||
;
|
||||
"icon title . fav . wiki gmaps bmaps"
|
||||
}
|
||||
.grid-container{
|
||||
display: grid;
|
||||
@@ -46,10 +48,10 @@
|
||||
}
|
||||
.grid-viewbar{
|
||||
display: grid;
|
||||
grid-template-columns: 30px auto auto 48px 48px 48px 48px 48px;
|
||||
grid-template-columns: 30px auto 4px 48px 1fr 48px 48px 48px 48px;
|
||||
grid-template-rows: auto;
|
||||
grid-template-areas:
|
||||
"icon title . fav wiki gmaps bmaps embedded"
|
||||
"icon title . fav . wiki gmaps bmaps embedded"
|
||||
;
|
||||
}
|
||||
.grid-container{
|
||||
@@ -90,7 +92,6 @@
|
||||
}
|
||||
.fav{
|
||||
grid-area: fav;
|
||||
|
||||
}
|
||||
.sidebar2{
|
||||
grid-area: sidebar2;
|
||||
@@ -121,4 +122,14 @@
|
||||
place-content: center;
|
||||
place-items: center;
|
||||
place-self: center;
|
||||
}
|
||||
.weatherwallpaper{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
text-shadow: 1px 1px 20px mat.get-theme-color($light-theme, primary, 100);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.weatherwallpaper{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
text-shadow: 1px 1px 20px mat.get-theme-color($dark-theme, primary, 0);
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,6 @@
|
||||
@use '@angular/material' as mat;
|
||||
@import '../../styles.scss';
|
||||
@import '../../../m3-theme.scss';
|
||||
@include mat.core();
|
||||
|
||||
/*.leaflet-tooltip{
|
||||
background-color: red ;
|
||||
color: red ;
|
||||
}
|
||||
*/
|
||||
//Does no support mat theming!
|
||||
.search-container {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, ViewChild, AfterViewInit, ElementRef } from '@angular/core';
|
||||
import { Component, OnInit, ViewChild, AfterViewInit, ElementRef, ViewEncapsulation } from '@angular/core';
|
||||
import { UntypedFormControl, FormsModule, ReactiveFormsModule } from "@angular/forms";
|
||||
import { Router } from '@angular/router';
|
||||
import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteOrigin, MatAutocompleteTrigger } from "@angular/material/autocomplete";
|
||||
@@ -71,6 +71,7 @@ class MapTile {
|
||||
providers: [TemperaturePipe, WeatherIconPipe, WeatherPipe, LocalNamePipe],
|
||||
styleUrl: 'condition-map.component.scss',
|
||||
standalone: true,
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
imports: [MatAutocompleteOrigin, MatIconModule, MatInputModule, FormsModule, MatAutocompleteTrigger, ReactiveFormsModule, MatProgressSpinner, LocationAutocompleteComponent, MapComponent]
|
||||
})
|
||||
export class ConditionMapComponent implements OnInit, AfterViewInit {
|
||||
|
||||
@@ -1,20 +1,14 @@
|
||||
<style>
|
||||
.small {
|
||||
--mat-form-field-container-height: 40px;
|
||||
--mat-form-field-container-vertical-padding: 10px;
|
||||
}
|
||||
</style>
|
||||
<div class="fx-fill fx-column fx-stretch fx-mh100">
|
||||
<mat-toolbar class="view-bar" style="width: 100%;height: 100%;">
|
||||
<mat-icon style="width: 40px;padding-right: 25px;">toys</mat-icon>
|
||||
<mat-toolbar class="view-bar">
|
||||
<mat-icon style="width: 40px;padding-right: 25px;padding-left: 10px;">toys</mat-icon>
|
||||
<span>{{ res.strings( 'stations_title') }}</span>
|
||||
<div class="fx-fill" ></div>
|
||||
<div>
|
||||
<mat-form-field subscriptSizing="dynamic" class="small searchbox-primary bg-secondary-lighter" style="padding: 6px;font-size: 14px; border-radius: 5px;width: 160px;">
|
||||
<mat-label class="searchbox-primary" >{{ res.strings('stations_search_label')}}</mat-label>
|
||||
<input class="searchbox-primary" matInput [formControl]="term" [placeholder]="res.strings('stations_search_placeholder')">
|
||||
<div matSuffix style="width: 28px; height: 28px; padding-top: 2px;" [matTooltip]="res.strings('stations_search_clear')" (click)="clearTerm()" >
|
||||
<mat-icon class="fg-primary">clear</mat-icon>
|
||||
<mat-form-field subscriptSizing="dynamic" class="small" style="padding: 6px;font-size: 14px;width: 160px;">
|
||||
<mat-label>{{ res.strings('stations_search_label')}}</mat-label>
|
||||
<input matInput [formControl]="term" [placeholder]="res.strings('stations_search_placeholder')">
|
||||
<div matSuffix style="width: 28px; height: 28px; padding-top: 2px;"[matTooltip]="res.strings('stations_search_clear')" (click)="clearTerm()" >
|
||||
<mat-icon>clear</mat-icon>
|
||||
</div>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
.small {
|
||||
--mat-form-field-container-height: 40px;
|
||||
--mat-form-field-container-vertical-padding: 10px;
|
||||
}
|
||||
@@ -21,6 +21,7 @@ import { MatToolbar } from '@angular/material/toolbar';
|
||||
@Component({
|
||||
selector: 'app-stations',
|
||||
templateUrl: 'stations.component.html',
|
||||
styleUrl: 'stations.component.scss',
|
||||
standalone: true,
|
||||
imports: [MatToolbar, MatIcon, MatFormField,MatLabel, MatInput, FormsModule, ReactiveFormsModule, MatIconButton,MatSuffix, MatTooltip, LayoutDoubleComponent, WeatherStationsListComponent, MatCard, MatCardContent, MapComponent, LogoPanelComponent]
|
||||
})
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
}@else{
|
||||
<div class="m-sm fx-column fx-center">
|
||||
<div style="width: 310px; height: 174px;" class="mat-elevation-z2 bg-primary"></div>
|
||||
<div style="width: 310px; height: 174px;" class="mat-elevation-z2"></div>
|
||||
<h6>{{ res.strings('videos_no_selection')}}</h6>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<mat-icon class="icon-button">{{ positiveIcon }} </mat-icon>
|
||||
<span>{{ positiveName }}</span>
|
||||
</button>
|
||||
<button mat-raised-button class="fg-primary" (click)="onNegative()">
|
||||
<button mat-raised-button (click)="onNegative()">
|
||||
<mat-icon class="icon-button">{{ negativeIcon }}</mat-icon>
|
||||
<span>{{ negativeName }}</span>
|
||||
</button>
|
||||
@@ -17,7 +17,7 @@
|
||||
<button mat-raised-button [matTooltip]="positiveName" class="fg-tertiary" (click)="onPositive()" [disabled]="disabled">
|
||||
<mat-icon class="icon-button">{{ positiveIcon }} </mat-icon>
|
||||
</button>
|
||||
<button mat-raised-button [matTooltip]="negativeName" class="fg-primary" (click)="onNegative()">
|
||||
<button mat-raised-button [matTooltip]="negativeName" (click)="onNegative()">
|
||||
<mat-icon class="icon-button">{{ negativeIcon }}</mat-icon>
|
||||
</button>
|
||||
</ng-container>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@if(settingsService.loading | async){
|
||||
<ng-container>
|
||||
<div style="margin-left: 1px; margin-right: 2px;">
|
||||
<mat-progress-spinner diameter="40" mode="indeterminate" class="fg-primary"></mat-progress-spinner>
|
||||
<mat-progress-spinner diameter="40" mode="indeterminate" ></mat-progress-spinner>
|
||||
</div>
|
||||
</ng-container>
|
||||
}@else{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<mat-form-field class="fx-fill fg-primary bg-gray" [hintLabel]="res.strings('login_field_hint')" appUseParentForm>
|
||||
<mat-form-field class="fx-fill bg-gray" [hintLabel]="res.strings('login_field_hint')" appUseParentForm>
|
||||
<input matInput #loginField="ngModel" minlength="5" maxlength="32"
|
||||
name="login" [placeholder]="res.strings('login_field_placeholder')" [(ngModel)]="login" pattern="[a-zA-Z0-9]*" required [disabled]="disabled">
|
||||
<mat-hint align="end">{{loginField.value?.length || 0}}/32</mat-hint>
|
||||
|
||||
@@ -17,10 +17,4 @@
|
||||
<div style="padding-left: 15px;padding-top: 5px"><a href="https://www.bmvi.de/SharedDocs/DE/Artikel/DG/mfund-projekte/fair.html" target="_blank"><img src="assets/images/logo-mfund.png" width="180"></a></div>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
<!--<mat-card-content>
|
||||
<div class="fx-fill fx-row fx-center fg-white bg-primary">
|
||||
<div class="mat-caption mr-sm">Datenquelle</div>
|
||||
<div>Deutscher Wetterdienst</div>
|
||||
</div>
|
||||
</mat-card-content>-->
|
||||
</mat-card>
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
@use '@angular/material' as mat;
|
||||
@import '../../styles.scss';
|
||||
@import '../../../m3-theme.scss';
|
||||
@include mat.core();
|
||||
|
||||
.leaflet-control-zoom-in{
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
.leaflet-control-zoom-out{
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
.leaflet-tooltip{
|
||||
background-color: mat.get-theme-color($light-theme, secondary, 20) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.leaflet-control-zoom-in{
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
.leaflet-control-zoom-out{
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
.leaflet-tooltip{
|
||||
background-color: mat.get-theme-color($light-theme, secondary, 20) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,8 @@ import {
|
||||
ElementRef,
|
||||
ViewChild,
|
||||
Input,
|
||||
ChangeDetectorRef
|
||||
ChangeDetectorRef,
|
||||
ViewEncapsulation
|
||||
} from '@angular/core';
|
||||
import { MediaMatcher } from '@angular/cdk/layout';
|
||||
import { ResourceService } from '../services/resource.service';
|
||||
@@ -23,7 +24,8 @@ type MapMarker = L.Marker | L.CircleMarker;
|
||||
selector: 'app-map',
|
||||
templateUrl: './map.component.html',
|
||||
styleUrls: ['map.component.scss'],
|
||||
standalone: true
|
||||
standalone: true,
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class MapComponent implements OnInit, DoCheck {
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<div class="fx-row fx-auto">
|
||||
<mat-form-field appearance="outline" subscriptSizing="dynamic" class="small fg-primary" style="padding: 6px; font-size: 14px; border-radius: 5px;width: 220px;">
|
||||
<mat-label class="fg-primary">{{ res.strings('search_field_label') }}</mat-label>
|
||||
<input class="fg-primary" matInput type="search"
|
||||
<mat-form-field appearance="outline" subscriptSizing="dynamic" class="small" style="padding: 6px; font-size: 14px; border-radius: 5px;width: 220px;">
|
||||
<mat-label >{{ res.strings('search_field_label') }}</mat-label>
|
||||
<input matInput type="search"
|
||||
[formControl]="term"
|
||||
[matAutocomplete]="autocomplete"
|
||||
[placeholder]="res.strings('search_field_placeholder')">
|
||||
<div matSuffix class="fg-primary" style="width: 28px; height: 28px; padding-top: 2px;">
|
||||
<div matSuffix style="width: 28px; height: 28px; padding-top: 2px;">
|
||||
@if(idle ){
|
||||
<mat-icon class="fg-primary">search</mat-icon>
|
||||
<mat-icon >search</mat-icon>
|
||||
}@else{
|
||||
<mat-progress-spinner class="fg-primary" mode="indeterminate" diameter="20"></mat-progress-spinner>
|
||||
<mat-progress-spinner mode="indeterminate" diameter="20"></mat-progress-spinner>
|
||||
}
|
||||
</div>
|
||||
</mat-form-field>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
mat-form-field.small {
|
||||
--mat-form-field-container-height: 40px;
|
||||
--mat-form-field-container-vertical-padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<ng-container>
|
||||
<span style="margin-left: 1px; margin-right: 2px;">
|
||||
<a mat-icon-button [matTooltip]="tooltip" [href]="link" target="_blank" class="bg-lighter">
|
||||
<i class="fg-primary" [class]="icon"></i>
|
||||
<i [class]="icon"></i>
|
||||
</a>
|
||||
</span>
|
||||
</ng-container>
|
||||
@@ -3,7 +3,7 @@
|
||||
[ngClass]="noMargin ? '' : 'ml-sm mt-sm mb-sm mr-sm'">
|
||||
<div class="fx-column">
|
||||
<div class="fx-row fx-spacecenter">
|
||||
<div class="fg-primary" style="margin-top: 15px; font-size: 42px; width: 60px; height: 50px;" [matTooltip]="min.type | weather"><i [class]="min.type | weatherIcon"></i></div>
|
||||
<div style="margin-top: 15px; font-size: 42px; width: 60px; height: 50px;" [matTooltip]="min.type | weather"><i [class]="min.type | weatherIcon"></i></div>
|
||||
<div class="ta-c" style="margin-right: 5px;margin-top: 15px; font-size: 42px; width: 65px; height: 50px;" [matTooltip]="max.type | weather"><i [class]="max.type | weatherIcon"></i></div>
|
||||
<div class="fx-column fx-stretch" style="margin-top: 15px; margin-left: 5px;">
|
||||
<div>{{ displayTitle }}</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!--<div [ngClass]="!dayTime ? 'mws-inline' : ''">-->
|
||||
<div #outerContainer class="mws-outer-container mat-typography">
|
||||
<div #outerContainer class="mws-outer-container mat-typography mat-app-background">
|
||||
@if(!errorMsg){
|
||||
<div #innerContainer class="mws-inner-container">
|
||||
<div class="mws-inner-container clickable"
|
||||
|
||||
@@ -3,25 +3,8 @@
|
||||
@import 'm3-theme.scss';
|
||||
|
||||
@include mat.core();
|
||||
|
||||
html{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100) !important;
|
||||
}
|
||||
body{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100) !important;
|
||||
}
|
||||
app-weather-summary{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100) !important;
|
||||
}
|
||||
div { padding: 0; }
|
||||
.mws-inline { display: inline-block; }
|
||||
.mws-header-icon{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100) !important;
|
||||
}
|
||||
.mws-outer-container {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
@@ -71,41 +54,4 @@ div { padding: 0; }
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 00) !important;
|
||||
}
|
||||
body{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
}
|
||||
.mws-outer-container {
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
}
|
||||
app-weather-summary{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
}
|
||||
.mws-inner-container {
|
||||
&-border { border: 1.3px solid mat.get-theme-color($dark-theme, secondary, 60) !important; }
|
||||
}
|
||||
.mws-header {
|
||||
&-text {
|
||||
margin-left: 1.25rem;
|
||||
padding-bottom: .25rem;
|
||||
p {
|
||||
color: mat.get-theme-color($dark-theme, secondary, 60) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.mws-footer-link {
|
||||
color: mat.get-theme-color($dark-theme, secondary, 60) !important;
|
||||
}
|
||||
.mws-header-icon{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="element-container mat-typography" style="height: 64px;">
|
||||
<div class="element-container mat-typography mat-app-background" style="height: 64px;">
|
||||
<div class="fx-row fx-auto fx-center" >
|
||||
<app-search-field [navigateFn]="navigateFn"></app-search-field>
|
||||
</div>
|
||||
|
||||
@@ -4,3 +4,4 @@ div.element-container {
|
||||
display: inline-flex;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
@use '@angular/material' as mat;
|
||||
@import '../../m3-theme.scss';
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
@include mat.all-component-colors($light-theme);
|
||||
}
|
||||
}
|
||||
+33
-137
@@ -7,7 +7,6 @@
|
||||
|
||||
@include mat.core();
|
||||
|
||||
|
||||
// sizes for paddings and margins
|
||||
$size-z: 0px;
|
||||
$size-sm: 10px;
|
||||
@@ -35,30 +34,6 @@ html {
|
||||
font-family: Montserrat
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
// Only include the colors and not the styles for the dark theme
|
||||
html {
|
||||
@include mat.all-component-colors($dark-theme);
|
||||
}
|
||||
|
||||
.leaflet-control-zoom-in{
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
.leaflet-control-zoom-out{
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
.leaflet-tooltip{
|
||||
background-color: mat.get-theme-color($light-theme, secondary, 20) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
.mat-mdc-dialog-container{
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
height: 100svh;
|
||||
margin: $size-z;
|
||||
@@ -146,14 +121,8 @@ a {
|
||||
.mb-lg { margin-bottom: $size-lg; }
|
||||
|
||||
/* background colors */
|
||||
.bg-white{background-color: white !important;}
|
||||
.bg-black{background-color: black !important;}
|
||||
.bg-default { background-color: mat.get-theme-color($light-theme, neutral, 100) !important;}
|
||||
.bg-lighter { background:rgba(255,255,255,0.1) !important;}
|
||||
.bg-tertiary { background-color: mat.get-theme-color($light-theme, tertiary, 98) !important;}
|
||||
.bg-primary { background-color: mat.get-theme-color($light-theme, primary, 100) !important;}
|
||||
.bg-secondary {background-color: mat.get-theme-color($light-theme, secondary, 40) !important}
|
||||
.bg-secondary-lighter {background-color: mat.get-theme-color($light-theme, secondary, 50) !important}
|
||||
.bg-world {
|
||||
background-image: url('assets/images/world.svg');
|
||||
background-repeat: no-repeat;
|
||||
@@ -163,36 +132,14 @@ a {
|
||||
background-position-y: 20px;
|
||||
min-height: 350px;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
// Only include the colors and not the styles for the dark theme
|
||||
.bg-default { background-color: mat.get-theme-color($dark-theme, neutral, 0) !important;}
|
||||
.bg-lighter { background:rgba(255,255,255,0.1) !important;} //check
|
||||
.bg-tertiary { background-color: mat.get-theme-color($dark-theme, tertiary, 10) !important;} //todo change to tertiary
|
||||
.bg-primary { background-color: mat.get-theme-color($dark-theme, primary, 0) !important;}
|
||||
}
|
||||
|
||||
/* foreground colors */
|
||||
.fg-white { color: white !important;}
|
||||
.fg-black { color: black !important;}
|
||||
.fg-gray{ color: gray !important;}
|
||||
.fg-tertiary { color: mat.get-theme-color($light-theme, tertiary, 25) !important;}
|
||||
.fg-error { color: mat.get-theme-color($light-theme, error, 50) !important;}
|
||||
.fg-primary { color: mat.get-theme-color($light-theme, primary, 0) !important;}
|
||||
.fg-drawerTitles{ color: gray !important;}
|
||||
.fg-secondary {color: mat.get-theme-color($light-theme, secondary, 40) !important;}
|
||||
.fg-secondary-lighter {color: mat.get-theme-color($light-theme, secondary, 50) !important;}
|
||||
.fg-weatherwallpaper{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
text-shadow: 1px 1px 20px mat.get-theme-color($light-theme, primary, 100);
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.fg-tertiary { color: mat.get-theme-color($dark-theme, tertiary, 50) !important;} //todo change to teriary
|
||||
.fg-error { color: mat.get-theme-color($dark-theme, error, 50) !important;}
|
||||
.fg-primary { color: mat.get-theme-color($dark-theme, primary, 100) !important;}
|
||||
.fg-weatherwallpaper{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
text-shadow: 1px 1px 20px mat.get-theme-color($dark-theme, primary, 0);
|
||||
}
|
||||
}
|
||||
.fg-tertiary { color: mat.get-theme-color($light-theme, tertiary, 20) !important;}
|
||||
.fg-error { color: mat.get-theme-color($light-theme, error, 50) !important;}
|
||||
|
||||
|
||||
.app-user-account{
|
||||
.mat-tab-label {
|
||||
@@ -200,32 +147,6 @@ a {
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
.searchbox-primary{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
}
|
||||
::placeholder{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
}
|
||||
::-webkit-input-placeholder{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
}
|
||||
::-ms-input-placeholder{
|
||||
color: mat.get-theme-color($light-theme, primary, 0) !important;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.searchbox-primary{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
::placeholder{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
::-webkit-input-placeholder{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) !important;
|
||||
}
|
||||
::-ms-input-placeholder{
|
||||
color: mat.get-theme-color($dark-theme, primary, 100) imn !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* rotation for wind direction icons */
|
||||
@@ -238,33 +159,10 @@ a {
|
||||
.rotate-315 { transform: rotate(315deg); }
|
||||
|
||||
|
||||
|
||||
/* gradient in column layouts on the right */
|
||||
.gradient-right {
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100);
|
||||
// background-image: radial-gradient(circle at top left, mat-color($app-primary) 10%, mat-color($app-primary-light) 75%, mat-color($app-primary) 100%);
|
||||
align-self: stretch;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.gradient-right { background-color: mat.get-theme-color($dark-theme, primary, 0);}
|
||||
}
|
||||
|
||||
/* gradient in column layouts on the left */
|
||||
.gradient-left {
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100);
|
||||
// background-image: radial-gradient(circle at bottom right, mat-color($app-primary) 10%, mat-color($app-primary-light) 75%, mat-color($app-primary) 100%);
|
||||
align-self: stretch;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.gradient-left { background-color: mat.get-theme-color($dark-theme, primary, 0);}
|
||||
}
|
||||
|
||||
/* sets the cursor to indicate something clickable */
|
||||
.clickable { cursor: pointer; }
|
||||
.hov-tertiary:hover { background-color: mat.get-theme-color($light-theme, tertiary, 98);}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.hov-tertiary:hover { background-color: mat.get-theme-color($dark-theme, tertiary, 10);}
|
||||
}
|
||||
|
||||
|
||||
/* cuts of the text, for this to work, you need to set the width */
|
||||
.ellipsis {
|
||||
@@ -294,12 +192,6 @@ a {
|
||||
font:500 20px/32px Montserrat !important;
|
||||
min-height: 64px;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.view-bar{
|
||||
background-color: mat.get-theme-color($dark-theme, secondary, 30) !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* the icon in the yellow toolbar */
|
||||
.view-bar > mat-icon {
|
||||
margin-right: 5px;
|
||||
@@ -318,6 +210,7 @@ a {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
/*Does not work as intended. Right now zero impact!
|
||||
.snackbar-tertiary {
|
||||
background-color: mat.get-theme-color($light-theme, tertiary, 98);;
|
||||
color: black;
|
||||
@@ -347,7 +240,7 @@ a {
|
||||
.snackbar-primary > .mat-mdc-simple-snack-bar {
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
*/
|
||||
.video-overlay {
|
||||
background-color: mat.get-theme-color($light-theme, secondary, 40) !important;
|
||||
justify-content: center;
|
||||
@@ -359,12 +252,6 @@ a {
|
||||
border: 3px solid rgba(mat.get-theme-color($light-theme, primary, 100), 0.8);
|
||||
color: mat.get-theme-color($light-theme, primary, 100) !important;
|
||||
}
|
||||
@media (prefers-color-scheme: dark){
|
||||
.video-overlay {
|
||||
border: 3px solid rgba(mat.get-theme-color($dark-theme, primary, 0), 0.8);
|
||||
color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.video-overlay-scale {
|
||||
border-radius: round(5px);
|
||||
@@ -382,10 +269,6 @@ a {
|
||||
font-family: Montserrat;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** unused ? */
|
||||
|
||||
.detail-row {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
@@ -437,19 +320,11 @@ a {
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.register-link {
|
||||
color: mat.get-theme-color($dark-theme, tertiary, 10);
|
||||
color: mat.get-theme-color($light-theme, secondary, 10);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
@media (prefers-color-scheme: dark){ //check
|
||||
.register-link {
|
||||
color: mat.get-theme-color($dark-theme, tertiary, 10);
|
||||
}
|
||||
}
|
||||
|
||||
// table stuff
|
||||
.action-cell {
|
||||
@@ -481,12 +356,33 @@ div.forecast-tooltip {
|
||||
background-color: mat.get-theme-color($light-theme, primary, 100);
|
||||
border-color: mat.get-theme-color($light-theme, primary, 100);
|
||||
}
|
||||
@media (prefers-color-scheme: dark){
|
||||
|
||||
div.forecast-tooltip:hover {
|
||||
z-index: 10000;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
// Only include the colors and not the styles for the dark theme
|
||||
html {
|
||||
@include mat.all-component-colors($dark-theme);
|
||||
}
|
||||
.fg-secondary {color: mat.get-theme-color($dark-theme, secondary, 40) !important;}
|
||||
.fg-secondary-lighter {color: mat.get-theme-color($dark-theme, secondary, 50) !important;}
|
||||
.fg-tertiary { color: mat.get-theme-color($dark-theme, tertiary, 50) !important;}
|
||||
.fg-error { color: mat.get-theme-color($dark-theme, error, 50) !important;}
|
||||
.hov-tertiary:hover { background-color: mat.get-theme-color($dark-theme, tertiary, 10);}
|
||||
.view-bar{
|
||||
background-color: mat.get-theme-color($dark-theme, secondary, 30) !important;
|
||||
}
|
||||
.video-overlay {
|
||||
border: 3px solid rgba(mat.get-theme-color($dark-theme, primary, 0), 0.8);
|
||||
color: mat.get-theme-color($dark-theme, primary, 0) !important;
|
||||
}
|
||||
.register-link {
|
||||
color: mat.get-theme-color($dark-theme, secondary, 60);
|
||||
}
|
||||
div.forecast-tooltip {
|
||||
background-color: mat.get-theme-color($dark-theme, primary, 0);
|
||||
border-color: mat.get-theme-color($dark-theme, primary, 0);
|
||||
}
|
||||
}
|
||||
div.forecast-tooltip:hover {
|
||||
z-index: 10000;
|
||||
}
|
||||
Reference in New Issue
Block a user