...
 
Commits (2)
......@@ -6,17 +6,23 @@ export default async function testResultsRoute (req, res) {
const { code = '', since=0, longPoll } = req.query;
if (longPoll) {
await sleepUntilCallback(code);
}
try {
const callbacks = await Callbacks.find({
let callbacks = await Callbacks.find({
code,
time: { $gt: new Date(parseInt(since, 10)) },
}).sort({ time: 1 });
if (longPoll && callbacks.length === 0) {
await sleepUntilCallback(code);
callbacks = await Callbacks.find({
code,
time: { $gt: new Date(parseInt(since, 10)) },
}).sort({ time: 1 });
}
return res.json({
ok: callbacks.map(c => ({
test: c.test,
......
......@@ -72,7 +72,7 @@ export default class TestResultsLabel extends Component {
}
componentWillReceiveProps({ results }) {
if (results.length > this.props.results.length) {
if (!this.state.flash && results.length > this.props.results.length) {
clearTimeout(this.clearFlashPid);
this.setState({ flash: true });
}
......
......@@ -57,6 +57,13 @@ export default class Footer extends Component {
>
<img alt="Bitcoin" src="/static/images/bitcoin.png"/>
</Link>
<Link
href = "xmr:44zg8QFZza5cMBWcEF4VqsU5panam7tMhfB6fFdzWbDpBcaVy7feqQXKD92smbYGy3C7KPA6d7Q6UWY8f11noJLWUrVKJAK"
title = "Leave a Monero tip"
className = { style.imgLink }
>
<img alt="Monero" src="/static/images/monero.svg" width="26" height="26"/>
</Link>
<Link
href = "zcash:zcAN9ij9YZ7Cc9HMqCfcjpusELTTKQWutgjSRH9Dxx5E4DLTKTxRye5FgFs7vDPn1edSoBNFvLPTxn7byjgwQaMVJeJ64kQ"
title = "Leave a Zcash tip"
......
......@@ -12,7 +12,7 @@ export default class DonatePage extends Component {
<Wrapper title="Donations / Contributions">
<div>
<p>
If you found this site useful and wish to give something back or contribute to the hosting and development time, I have <Link href="bitcoin:1PQLtWnjUi1itHLG6QCQeHM3Nxua8pRsq1">Bitcoin</Link>, <Link href="zcash:zcAN9ij9YZ7Cc9HMqCfcjpusELTTKQWutgjSRH9Dxx5E4DLTKTxRye5FgFs7vDPn1edSoBNFvLPTxn7byjgwQaMVJeJ64kQ">Z-Cash</Link> and <Link href="https://www.paypal.me/grepular">Paypal</Link>.
If you found this site useful and wish to give something back or contribute to the hosting and development time, I have <Link href="bitcoin:1PQLtWnjUi1itHLG6QCQeHM3Nxua8pRsq1">Bitcoin</Link>, <Link href="xmr:44zg8QFZza5cMBWcEF4VqsU5panam7tMhfB6fFdzWbDpBcaVy7feqQXKD92smbYGy3C7KPA6d7Q6UWY8f11noJLWUrVKJAK">Monero</Link>, <Link href="zcash:zcAN9ij9YZ7Cc9HMqCfcjpusELTTKQWutgjSRH9Dxx5E4DLTKTxRye5FgFs7vDPn1edSoBNFvLPTxn7byjgwQaMVJeJ64kQ">Z-Cash</Link> and <Link href="https://www.paypal.me/grepular">Paypal</Link>.
</p>
<p>
If you wish to contribute some of your time and you're a developer, all of the code has been <Link href="https://gitlab.com/mikecardwell/ept3">released</Link> under GPL-3.0 and I'm happy to accept contributions.
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="32"
height="32"
id="svg3021">
<defs
id="defs3023" />
<metadata
id="metadata3026">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1">
<path
d="m -68.571429,-504.85 c -20.4,0 -36.900001,16.5 -36.900001,36.9 0,4.1 0.7,8 1.9,11.7 h 11.000001 v -31 l 24,24 24,-24 v 31 h 11 c 1.2,-3.7 1.9,-7.6 1.9,-11.7 0,-20.4 -16.5,-36.9 -36.9,-36.9 l 0,0 z"
id="_149931032_2_"
style="fill:#ff6600" />
<path
d="m -74.071429,-457.85 -10.5,-10.5 v 19.5 h -4 -4 -7.500001 c 6.500001,10.6 18.200001,17.7 31.500001,17.7 13.3,0 25.1,-7.1 31.5,-17.7 h -7.5 -7.2 -0.8 v -19.5 l -10.4,10.5 -5.5,5.5 -5.6,-5.5 0,0 z"
id="_149931160_2_"
style="fill:#4c4c4c" />
<path
d="M 16,0 C 7.1544718,0 0,7.1641791 0,16.02171 0,17.8019 0.30352303,19.495251 0.82384822,21.101764 H 5.5934962 V 7.641791 L 16,18.062416 26.406504,7.641791 v 13.459973 h 4.769648 C 31.696477,19.495251 32,17.8019 32,16.02171 32,7.1641791 24.845528,0 16,0 l 0,0 z"
id="_149931032_2_-3"
style="fill:#ff6600" />
<path
d="M 13.615176,20.407056 9.0623308,15.848033 V 24.31479 H 7.3279135 5.5934962 2.3414634 C 5.1598919,28.917232 10.233062,32 16,32 c 5.766938,0 10.883469,-3.082768 13.658537,-7.68521 h -3.252033 -3.121951 -0.346884 v -8.466757 l -4.509485,4.559023 -2.384824,2.38806 -2.428184,-2.38806 0,0 z"
id="_149931160_2_-6"
style="fill:#4c4c4c" />
</g>
</svg>