Skip to content

Commit

Permalink
feat(ZMS-1633): merge into main
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic committed Dec 7, 2023
2 parents d098455 + c260b00 commit d1cb928
Show file tree
Hide file tree
Showing 58 changed files with 580 additions and 5,532 deletions.
51 changes: 47 additions & 4 deletions zmsadmin/js/block/calldisplay/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class CallDisplayConfigView extends Component {
webtemplate: 'defaultplatz',
hmac: '',
enableQrCode: false,
twoDisplays: false,
showQrCode: false
}

Expand All @@ -73,9 +74,9 @@ class CallDisplayConfigView extends Component {
return document.location.origin;
}

buildCalldisplayUrl() {
buildCalldisplayUrl(displayNumber = 1) {
const baseUrl = this.props.config.calldisplay.baseUrl
let parameters = this.buildParameters(false);
let parameters = this.buildParameters(false, 'calldisplay', displayNumber);

return `${this.buildHost()}${baseUrl}?${parameters.join('&')}`
}
Expand All @@ -87,7 +88,7 @@ class CallDisplayConfigView extends Component {
return `${this.buildHost()}${baseUrl}?${parameters.join('&')}`
}

buildParameters(hashParameters, target = 'calldisplay') {
buildParameters(hashParameters, target = 'calldisplay', displayNumber = 1) {
const collections = this.getSelectedItemsCollection(this.state)
let queryParts = []

Expand Down Expand Up @@ -115,6 +116,10 @@ class CallDisplayConfigView extends Component {
queryParts.push(`qrcode=1`)
}

if (! hashParameters && this.state.twoDisplays) {
queryParts.push(`display=` + displayNumber)
}

if (hashParameters) {
queryParts.push(`hmac=${this.state.hmac}`)
}
Expand Down Expand Up @@ -229,6 +234,22 @@ class CallDisplayConfigView extends Component {
)
}

renderTwoDisplays() {
const onChange = () => {
this.setState({
twoDisplays: !this.state.twoDisplays
});
}
return (
<fieldset>
<legend className="label">2 Aufrufanzeige</legend>
<div key="twoDisplays" className="form-check ticketprinter-config__item">
{this.renderCheckbox(this.state.twoDisplays, onChange, "2 Aufrufanzeige erstellen")}
</div>
</fieldset>
)
}

renderScopes(scopes) {
if (scopes.length > 0) {
return (
Expand Down Expand Up @@ -267,6 +288,7 @@ class CallDisplayConfigView extends Component {

render() {
const calldisplayUrl = this.buildCalldisplayUrl()
const calldisplayUrl2 = this.buildCalldisplayUrl(2)
const webcalldisplayUrl = this.buildWebcalldisplayUrl()

const onQueueStatusChange = (_, value) => {
Expand All @@ -291,6 +313,7 @@ class CallDisplayConfigView extends Component {
<form className="form--base form-group calldisplay-config">
{this.state.departments.map(this.renderDepartment.bind(this))}
{this.renderQrCodeEnabled()}
{this.renderTwoDisplays()}
<FormGroup>
<Label
attributes={{ "htmlFor": "visibleCalls" }}
Expand Down Expand Up @@ -328,7 +351,10 @@ class CallDisplayConfigView extends Component {
</Controls>
</FormGroup>
<FormGroup>
<Label attributes={{ "htmlFor": "calldisplayUrl" }} value="URL"></Label>
{ this.state.twoDisplays ?
<Label attributes={{ "htmlFor": "calldisplayUrl" }} value="URL Anzeige 1"></Label>
:
<Label attributes={{ "htmlFor": "calldisplayUrl" }} value="URL"></Label> }
<Controls>
<Inputs.Text
value={calldisplayUrl}
Expand All @@ -339,6 +365,23 @@ class CallDisplayConfigView extends Component {
<a href={calldisplayUrl} target="_blank" rel="noopener noreferrer" className="button button-submit"><i className="fas fa-external-link-alt"></i> Aktuelle Konfiguration in einem neuen Fenster öffnen</a>
</div>


{ this.state.twoDisplays ?
<div className="firstDisplay">
<FormGroup>
<Label attributes={{ "htmlFor": "calldisplayUrl2" }} value="URL Anzeige 2"></Label>
<Controls>
<Inputs.Text
value={calldisplayUrl2}
attributes={{ readOnly: true, id: "calldisplayUrl2" }} />
</Controls>
</FormGroup>
<div className="form-actions">
<a href={calldisplayUrl2} target="_blank" rel="noopener noreferrer" className="button button-submit"><i className="fas fa-external-link-alt"></i> Aktuelle Konfiguration in einem neuen Fenster öffnen</a>
</div>
</div>
: null }

<FormGroup>
<Label attributes={{ "htmlFor": "webcalldisplayLayout" }} value="Layout mobile Aufrufanzeige"></Label>
<Controls>
Expand Down
2 changes: 1 addition & 1 deletion zmsadmin/public/_css/admin.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zmsadmin/public/_css/admin.css.map

Large diffs are not rendered by default.

5,076 changes: 8 additions & 5,068 deletions zmsadmin/public/_js/reactcomponents.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zmsadmin/public/_js/reactcomponents.js.map

Large diffs are not rendered by default.

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.
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.
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.
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.
4 changes: 4 additions & 0 deletions zmscalldisplay/public/_css/calldisplay.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zmscalldisplay/public/_css/calldisplay.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions zmscalldisplay/public/_css/info-icon.ed72a8fe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 41 additions & 31 deletions zmscalldisplay/scss/block/aufrufanzeige.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
/* ----------------------------------------------
qr code
---------------------------------------------- */
.qrCode--Headline {
text-align: center;
background: #fff;
font-family: Arial,sans-serif;
font-size: 32px;
font-weight: 700;
line-height: 45px;
margin-bottom: 3px;
margin-top: 0px;
}
.qrContainer {
background: #fff;
}

/* ----------------------------------------------
aufrufanzeige
---------------------------------------------- */
.aufrufanzeige
{
background:transparent;
Expand Down Expand Up @@ -56,8 +36,8 @@

.waitingColumn {
position: absolute;
left: 50px;
top: 450px;
left: 40px;
top: 420px;
}
.aufrufanzeige .wartende_aktuell
{
Expand Down Expand Up @@ -108,11 +88,14 @@
.aufrufanzeige .uhr
{
position: absolute;
left:55px;
top:105px;
left:60px;
top:114px;
width:275px;
height:275px;
}
.aufrufanzeige .uhr #clock_medium,
.aufrufanzeige .uhr #clock_big {
display:none;
}

.aufrufanzeige .aufrufanzeige_Datum
{
Expand All @@ -122,14 +105,14 @@
position:absolute;
text-align:center;
font-size:24px;
left:50px;
top:390px;
left:40px;
top:370px;
width:275px;
}


/* ----------------------------------------------
Text & Logo|QrCode
Text & Logo
---------------------------------------------- */
.aufrufanzeige .aufrufanzeige_text
{
Expand All @@ -142,11 +125,38 @@
text-align:center;
left: 1087px;
top:89px;
width: 265px;
width: 234px;
}

.aufrufanzeige .infotext-content {
margin-left: 30px;
}

.aufrufanzeige_text .qrContainer
.aufrufanzeige .infotext
{
top: 77px;
position: absolute;
padding: 10px 40px;
font-size:2em;
font-weight:normal;
line-height:26px;
width: 100%;
text-align: center;
background: #F2F6FA;
}

#display_number {
position: fixed;
bottom: 20px;
right: 54px;
font-size: 28px;
font-weight: bold;
}

#infoicon {
background: url(img/info-icon.svg) top left no-repeat;
width: 21px;
height: 21px;
font-size: 36px;
position: absolute;
background-size: cover;
}
37 changes: 37 additions & 0 deletions zmscalldisplay/scss/block/footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.footer {
position:absolute;
left:0px;
top:630px;
width:800px;
}

#animate-container {
background-color: $blue;
color: #ffffff;
font-size: 70px;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
padding: 10px 0;
width: 200%;

animation-name: text-indent-animate;
animation-duration: 60s;
animation-timing-function: linear;
animation-direction: reverse;
animation-iteration-count: infinite;
}

#animate-container:hover {
animation-play-state: paused;
}

@keyframes text-indent-animate {
0% {
text-indent: -200%;
}

100% {
text-indent: 100%;
}
}
Loading

0 comments on commit d1cb928

Please sign in to comment.