mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 20:03:52 +00:00
Small Improvements
- update UI on delete all - fix license
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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} />
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
|
||||
.main {
|
||||
font-size: 0.9em;
|
||||
text-align: right;
|
||||
color: #ff7597;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.header {
|
||||
|
||||
@@ -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
@@ -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",
|
||||
|
||||
@@ -487,6 +487,9 @@ export class EventTimer extends Timer {
|
||||
// set general
|
||||
this._eventlist = [];
|
||||
this.numEvents = 0;
|
||||
|
||||
// broadcast change
|
||||
this.broadcastState();
|
||||
}
|
||||
|
||||
setupWithEventList(eventlist) {
|
||||
|
||||
Reference in New Issue
Block a user