Small Improvements

- update UI on delete all
- fix license
This commit is contained in:
cv
2021-06-14 15:05:08 +02:00
parent 4d7a26a66d
commit 55f897b0bd
6 changed files with 21 additions and 9 deletions
+1
View File
@@ -31,6 +31,7 @@ Almost reaching a feature set that we can call v1. Before that:
- [ ] Linux version
- [ ] Companion integration
- [ ] Lower Third Manager
- [ ] Note only event
- [ ] URL Aliases (define configurable aliases to ease onsite setup)
- [ ] Logging view
- [ ] Reach Schedule: way to speedup timer to meet a deadline
+13 -7
View File
@@ -18,7 +18,7 @@ export default function Info() {
presenterNext: '',
noteNext: '',
});
const [selected, setSelected] = useState('-/-');
const [selected, setSelected] = useState('No events');
const logData = [];
// handle incoming messages
@@ -38,11 +38,14 @@ export default function Info() {
// Handle selection data
socket.on('selected', (data) => {
const formatedCurrent = `Event ${
data.index != null ? data.index + 1 : '-'
}/${data.total != null ? data.total : '-'}`;
setSelected(formatedCurrent);
if (data.total === 0 || data.total == null) {
setSelected('No events');
} else {
const formatedCurrent = `Event ${
data.index != null ? data.index + 1 : '-'
}/${data.total != null ? data.total : '-'}`;
setSelected(formatedCurrent);
}
});
// Clear listener
@@ -70,7 +73,10 @@ export default function Info() {
return (
<>
<div className={style.main}>{selected}</div>
<div className={style.main}>
<span>{`Running on port 4001`}</span>
<span>{selected}</span>
</div>
{/* <InfoLogger logData={logData} /> */}
<InfoNif />
<InfoTitle title={'Now'} data={titlesNow} />
+2 -1
View File
@@ -10,8 +10,9 @@
.main {
font-size: 0.9em;
text-align: right;
color: #ff7597;
display: flex;
justify-content: space-between;
}
.header {
+1
View File
@@ -39,6 +39,7 @@ export default function InfoNif() {
{data?.networkInterfaces.map((e) => {
return (
<a
key={e.address}
href='/'
onClick={() =>
handleLink(baseURL.replace('__IP__', e.address))
+1 -1
View File
@@ -5,7 +5,7 @@
"description": "Time keeping for live events",
"repository": "https://github.com/cpvalente/ontime",
"keywords": [ "lighdev", "ontime", "timer" ],
"license": "lgpl-3.0",
"license": "AGPL-3.0-only",
"main": "main.js",
"devDependencies": {
"concurrently": "^6.1.0",
+3
View File
@@ -487,6 +487,9 @@ export class EventTimer extends Timer {
// set general
this._eventlist = [];
this.numEvents = 0;
// broadcast change
this.broadcastState();
}
setupWithEventList(eventlist) {