Skip to content

Commit

Permalink
merge into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic committed Nov 27, 2023
2 parents b70d6ae + bd12c85 commit 7391608
Show file tree
Hide file tree
Showing 31 changed files with 1,483 additions and 378 deletions.
5 changes: 4 additions & 1 deletion zmsadmin/js/block/calldisplay/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,10 @@ class CallDisplayConfigView extends Component {
{ name: 'Uhrzeit, Anzahl Wartende, Wartezeit, 6-12 Aufrufe | Raum', value: 'clocknrwaitraum' },
{ name: '4-8 Aufrufe, nur Zahlen | Tür', value: 'rawdoor4-8' },
{ name: '6-18 Aufrufe | Tür', value: 'raw18door' },
{ name: '6-18 Aufrufe | Platz', value: 'raw18platz' }
{ name: '6-18 Aufrufe | Platz', value: 'raw18platz' },
{ name: '10 Aufrufe | Platz', value: 'default_platz' },
{ name: '10 Aufrufe | Tür', value: 'default_tuer' },
{ name: '10 Aufrufe | Raum', value: 'default_raum' }
]}
value={this.state.template}
onChange={onTemplateStatusChange} />
Expand Down
348 changes: 2 additions & 346 deletions zmsadmin/public/_js/index.js

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions zmsadmin/public/_js/reactcomponents.js

Large diffs are not rendered by default.

29 changes: 24 additions & 5 deletions zmscalldisplay/js/block/analogClock.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ class View {
}

setClock() {
if (document.querySelector('.second-hand')) {
this.setAnalogClock();
}

if (document.querySelector('.digital-clock')) {
const now = new Date();

document.querySelector('.digital-clock').innerHTML =
new Intl.DateTimeFormat('de-DE', {hour: '2-digit', minute: '2-digit'}).format(now)

document.querySelector('.digital-datum').innerHTML =
new Intl.DateTimeFormat('de-DE', { weekday: 'long', year: 'numeric', month: '2-digit', day: '2-digit' }).format(now)
}
}

setAnalogClock() {
const now = new Date();

const secondHand = document.querySelector('.second-hand');
Expand All @@ -16,22 +32,25 @@ class View {
const seconds = now.getSeconds();
const secondsDegrees = ((seconds / 60) * 360) + 90;
secondHand.style.transform = `rotate(${secondsDegrees}deg)`;

const mins = now.getMinutes();
const minsDegrees = ((mins / 60) * 360) + ((seconds/60)*6) + 90;
minsHand.style.transform = `rotate(${minsDegrees}deg)`;

const hour = now.getHours();
const hourDegrees = ((hour / 12) * 360) + ((mins/60)*30) + 90;
hourHand.style.transform = `rotate(${hourDegrees}deg)`;
hourHand.style.transform = `rotate(${hourDegrees}deg)`;
}

setDate() {
const dateString = document.querySelector('#aufrufanzeige_Datum');
const now = new Date();
let options = { weekday: 'long', year: 'numeric', month: '2-digit', day: '2-digit' }
dateString.innerHTML = new Intl.DateTimeFormat('de-DE', options).format(now)
}

if (dateString) {
dateString.innerHTML = new Intl.DateTimeFormat('de-DE', options).format(now)
}
}
}

export default View;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion zmscalldisplay/public/_css/calldisplay.css

Large diffs are not rendered by default.

1,429 changes: 1,404 additions & 25 deletions zmscalldisplay/public/_js/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions zmsslim/src/Slim/TwigExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public static function withHtml(
$logInfo = $extendedInfo;
unset($logInfo['responsedata']);
unset($logInfo['exception']);
unset($logInfo['workstation']);
//ksort($logInfo);
// Some error-reporting is limited to a defined amount of chars
// Remove unnecessary chars, for ordering see self::getExtendedExceptionInfo()
Expand Down

0 comments on commit 7391608

Please sign in to comment.