Fixed some compile errors due to the TypeScript versions upgrade

master
WolverinDEV 2021-04-27 16:23:59 +02:00
parent 2becf800eb
commit a23f426b7b
19 changed files with 53 additions and 137 deletions

View File

@ -265,7 +265,7 @@ namespace server {
} else {
server = http.createServer(handleHTTPRequest);
}
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
server.on('error', reject);
server.listen(options.port, () => {
server.off("error", reject);
@ -276,7 +276,7 @@ namespace server {
export async function shutdown() {
if(server) {
await new Promise((resolve, reject) => server.close(error => error ? reject(error) : resolve()));
await new Promise<void>((resolve, reject) => server.close(error => error ? reject(error) : resolve()));
server = undefined;
}
}
@ -396,7 +396,7 @@ namespace watcher {
this._process.addListener("error", this.handle_error.bind(this));
try {
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
const id = setTimeout(reject, 5000, "timeout");
this._callback_init = () => {
clearTimeout(id);

5
package-lock.json generated
View File

@ -17728,9 +17728,8 @@
"dev": true
},
"resize-observer-polyfill": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
"integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg=="
"version": "git+https://github.com/albancreton/resize-observer-polyfill.git#cee973d8e1163201fd535d4b54d3cdd620333deb",
"from": "git+https://github.com/albancreton/resize-observer-polyfill.git#patch-1"
},
"resolve": {
"version": "1.15.1",

View File

@ -116,7 +116,7 @@
"react-grid-layout": "^1.2.2",
"react-player": "^2.5.0",
"remarkable": "^2.0.1",
"resize-observer-polyfill": "^1.5.1",
"resize-observer-polyfill": "git+https://github.com/albancreton/resize-observer-polyfill.git#patch-1",
"sdp-transform": "^2.14.0",
"simple-jsonp-promise": "^1.1.0",
"stream-browserify": "^3.0.0",

View File

@ -1,4 +1,4 @@
<svg fill="#7289da" style="enable-background:new 0 0 16 16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" xmlns:osb="http://www.openswatchbook.org/uri/2009/osb">
<svg fill="#7289da" style="enable-background:new 0 0 16 16" version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
<path d="m13.801 3.864h-5.693v-.752c0-.593-.481-1.074-1.074-1.074h-4.834c-.593 0-1.074.481-1.074 1.074v9.775c0 .593.481 1.074 1.074 1.074h11.602c.593 0 1.074-.481 1.074-1.074v-7.949c-0-.593-.481-1.074-1.074-1.074z" fill="#7289da"/>
<path d="m11.983 8.3207h-8.0767c-.084487 0-.15592-.04-.21352-.116-.057605-.076-.086791-.167-.086791-.274v-.781c0-.11.029186-.203.086791-.278s.12903-.113.21352-.113h8.0767c.08372 0 .15592.039.21352.113.0576.074.08679.168.08679.278v.781c0 .107-.02919.198-.08679.274s-.1298.116-.21352.116z" fill="#f2f2f2" style="fill:#f9f9f9;stroke-width:.87639"/>
<path d="m11.983 11.559h-8.0767c-.084487 0-.15592-.04-.21352-.116-.057605-.076-.086791-.167-.086791-.274v-.781c0-.11.029186-.203.086791-.278s.12904-.113.21352-.113h8.0767c.08372 0 .15592.039.21352.113.0576.074.08679.168.08679.278v.781c0 .107-.02919.198-.08679.274s-.1298.116-.21352.116z" fill="#f2f2f2" style="fill:#f9f9f9;stroke-width:.87639"/>

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -1,2 +1,2 @@
<svg id="icon_play" data-name="base" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M395,512a73.14,73.14,0,0,1-73.14-73.14V73.14a73.14,73.14,0,1,1,146.29,0V438.86A73.14,73.14,0,0,1,395,512Z" fill="#673535"/><path d="M117,512a73.14,73.14,0,0,1-73.14-73.14V73.14a73.14,73.14,0,1,1,146.29,0V438.86A73.14,73.14,0,0,1,117,512Z" fill="#673535"/></svg>
<svg id="icon_play" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M395,512a73.14,73.14,0,0,1-73.14-73.14V73.14a73.14,73.14,0,1,1,146.29,0V438.86A73.14,73.14,0,0,1,395,512Z" fill="#673535"/><path d="M117,512a73.14,73.14,0,0,1-73.14-73.14V73.14a73.14,73.14,0,1,1,146.29,0V438.86A73.14,73.14,0,0,1,117,512Z" fill="#673535"/></svg>

Before

Width:  |  Height:  |  Size: 365 B

After

Width:  |  Height:  |  Size: 349 B

View File

@ -1,2 +1,2 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><title>play-glyph</title><path d="M60.54,512c-17.06,0-30.43-13.86-30.43-31.56V31.55C30.12,13.86,43.48,0,60.55,0A32.94,32.94,0,0,1,77,4.52L465.7,229c10.13,5.85,16.18,16,16.18,27s-6,21.2-16.18,27L77,507.48A32.92,32.92,0,0,1,60.55,512Z" fill="#376736"/></svg>
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><title>play-glyph</title><path d="M60.54,512c-17.06,0-30.43-13.86-30.43-31.56V31.55C30.12,13.86,43.48,0,60.55,0A32.94,32.94,0,0,1,77,4.52L465.7,229c10.13,5.85,16.18,16,16.18,27s-6,21.2-16.18,27L77,507.48A32.92,32.92,0,0,1,60.55,512Z" fill="#376736"/></svg>

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 332 B

View File

@ -1,107 +1,27 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="100%"
height="100%"
viewBox="0 0 128 128"
version="1.1"
xml:space="preserve"
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"
id="svg13635"
inkscape:version="0.91 r13725"
sodipodi:docname="loading_image.svg"><metadata
id="metadata13682"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs13680" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview13678"
showgrid="false"
inkscape:zoom="1.84375"
inkscape:cx="64"
inkscape:cy="64"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg13635" /><g
transform="matrix(1,0,0,1,-2688,-480)"
id="g13637"><g
id="loading_image"
transform="matrix(1,0,0,1.37634,2688,294.194)"><rect
x="0"
y="135"
width="128"
height="93"
style="fill:none;"
id="rect13640" /><g
transform="matrix(1,0,0,0.726562,0,134.273)"
id="g13642"><path
d="M9.041,88.646C9.041,84.78 12.175,81.646 16.041,81.646L112.041,81.646C115.907,81.646 119.041,84.78 119.041,88.646L119.041,97.646C119.041,101.512 115.907,104.646 112.041,104.646L16.041,104.646C12.175,104.646 9.041,101.512 9.041,97.646L9.041,88.646L9.041,88.646Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13644" /></g><g
transform="matrix(1,0,0,0.726562,0,134.273)"
id="g13646"><path
d="M9.041,88.646C9.041,84.78 12.175,81.646 16.041,81.646L78.041,81.646C81.907,81.646 85.041,84.78 85.041,88.646L85.041,97.646C85.041,101.512 81.907,104.646 78.041,104.646L16.041,104.646C12.175,104.646 9.041,101.512 9.041,97.646L9.041,88.646L9.041,88.646Z"
style="fill:#7289da;fill-rule:nonzero;fill-opacity:1"
id="path13648" /></g><g
transform="matrix(1,0,0,0.726562,0,134.273)"
id="g13650"><path
d="M8.95,25.658L12.516,25.658L12.516,40.274L19.369,40.274L19.369,43.308L8.95,43.308L8.95,25.658Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13652" /><path
d="M29.13,25.354C30.429,25.354 31.6,25.565 32.645,25.986C33.69,26.408 34.579,27.011 35.313,27.795C36.046,28.578 36.611,29.527 37.008,30.639C37.403,31.752 37.602,33.009 37.602,34.407C37.602,35.824 37.395,37.096 36.982,38.225C36.568,39.355 35.987,40.32 35.237,41.121C34.487,41.923 33.576,42.537 32.506,42.967C31.436,43.397 30.243,43.612 28.928,43.612C27.63,43.612 26.449,43.401 25.387,42.98C24.325,42.558 23.423,41.951 22.681,41.159C21.939,40.367 21.366,39.41 20.962,38.289C20.557,37.167 20.355,35.908 20.355,34.509C20.355,31.575 21.123,29.316 22.657,27.731C24.19,26.147 26.349,25.354 29.13,25.354ZM28.915,28.111C28.205,28.111 27.559,28.262 26.976,28.566C26.393,28.87 25.89,29.299 25.467,29.856C25.044,30.412 24.719,31.087 24.49,31.879C24.262,32.671 24.149,33.548 24.149,34.509C24.149,35.469 24.262,36.342 24.49,37.125C24.719,37.909 25.049,38.575 25.479,39.124C25.91,39.671 26.421,40.097 27.013,40.401C27.604,40.705 28.272,40.856 29.016,40.856C29.725,40.856 30.372,40.701 30.956,40.388C31.538,40.076 32.041,39.642 32.464,39.086C32.886,38.529 33.216,37.859 33.453,37.075C33.69,36.291 33.808,35.428 33.808,34.483C33.808,33.505 33.694,32.621 33.465,31.827C33.237,31.035 32.907,30.365 32.476,29.817C32.045,29.269 31.53,28.848 30.93,28.553C30.331,28.258 29.659,28.111 28.915,28.111Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13654" /><path
d="M56.77,43.309L52.901,43.309L51.359,39.238L44,39.238L42.458,43.309L38.79,43.309L45.719,25.659L49.74,25.659L56.77,43.309ZM48.93,32.435C48.829,32.165 48.719,31.85 48.602,31.487C48.483,31.125 48.37,30.754 48.26,30.374C48.15,29.996 48.045,29.638 47.944,29.3C47.843,28.963 47.767,28.676 47.716,28.44L47.666,28.44C47.598,28.676 47.514,28.962 47.413,29.3C47.312,29.638 47.198,29.996 47.071,30.374C46.945,30.754 46.822,31.125 46.705,31.487C46.587,31.849 46.477,32.165 46.376,32.435L44.91,36.557L50.397,36.557L48.93,32.435Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13656" /><path
d="M63.976,25.658C65.459,25.658 66.837,25.814 68.111,26.126C69.383,26.438 70.488,26.947 71.424,27.655C72.36,28.364 73.089,29.283 73.612,30.411C74.134,31.541 74.396,32.924 74.396,34.559C74.396,36.11 74.125,37.438 73.586,38.541C73.047,39.646 72.309,40.552 71.373,41.26C70.438,41.968 69.338,42.486 68.073,42.816C66.808,43.144 65.443,43.309 63.976,43.309L59.146,43.309L59.146,25.659L63.976,25.659L63.976,25.658ZM62.712,40.603L63.647,40.603C64.625,40.603 65.544,40.498 66.403,40.287C67.262,40.076 68.008,39.736 68.641,39.263C69.273,38.791 69.774,38.167 70.146,37.391C70.516,36.616 70.703,35.663 70.703,34.534C70.703,33.355 70.516,32.372 70.146,31.588C69.774,30.804 69.273,30.176 68.641,29.704C68.008,29.232 67.262,28.903 66.403,28.718C65.544,28.532 64.624,28.439 63.647,28.439L62.712,28.439L62.712,40.603Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13658" /><rect
x="77.731"
y="25.658"
width="3.566"
height="17.65"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="rect13660" /><path
d="M97.051,25.658L100.264,25.658L100.264,43.308L95.762,43.308L91.236,34.66C91,34.222 90.759,33.745 90.515,33.231C90.271,32.718 90.03,32.211 89.794,31.714C89.558,31.217 89.343,30.749 89.148,30.311C88.955,29.873 88.798,29.51 88.681,29.223L88.63,29.223C88.647,29.493 88.663,29.877 88.681,30.373C88.698,30.871 88.709,31.406 88.719,31.979C88.727,32.552 88.736,33.117 88.743,33.674C88.752,34.229 88.757,34.694 88.757,35.064L88.757,43.308L85.544,43.308L85.544,25.658L90.3,25.658L94.75,34.382C94.919,34.702 95.112,35.09 95.332,35.545C95.551,36.001 95.774,36.472 96.003,36.961C96.23,37.451 96.445,37.927 96.647,38.39C96.85,38.854 97.017,39.237 97.154,39.54L97.204,39.54C97.186,39.22 97.17,38.786 97.154,38.239C97.136,37.69 97.12,37.105 97.103,36.48C97.085,35.857 97.073,35.241 97.065,34.634C97.055,34.028 97.051,33.505 97.051,33.067L97.051,25.658L97.051,25.658Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13662" /><path
d="M118.242,29.324C117.701,29.038 117.013,28.803 116.176,28.616C115.34,28.431 114.465,28.338 113.554,28.338C112.607,28.338 111.754,28.481 110.993,28.767C110.233,29.053 109.587,29.456 109.055,29.978C108.522,30.5 108.109,31.139 107.812,31.896C107.517,32.653 107.369,33.494 107.369,34.42C107.369,35.329 107.505,36.161 107.775,36.919C108.045,37.675 108.439,38.319 108.955,38.849C109.471,39.379 110.109,39.791 110.87,40.086C111.631,40.381 112.502,40.527 113.483,40.527C113.854,40.527 114.222,40.506 114.586,40.464C114.949,40.422 115.275,40.359 115.563,40.275L115.563,35.899L111.795,35.899L111.795,33.067L118.951,33.067L118.951,42.55C117.99,42.887 117.013,43.127 116.017,43.27C115.023,43.413 114.02,43.485 113.008,43.485C111.659,43.485 110.407,43.279 109.252,42.865C108.098,42.452 107.099,41.854 106.256,41.07C105.413,40.286 104.756,39.334 104.283,38.213C103.811,37.092 103.575,35.824 103.575,34.407C103.575,33.042 103.811,31.807 104.283,30.703C104.756,29.599 105.426,28.659 106.294,27.884C107.162,27.108 108.212,26.514 109.442,26.101C110.671,25.688 112.055,25.481 113.588,25.481C114.465,25.481 115.321,25.531 116.155,25.632C116.99,25.734 117.768,25.911 118.494,26.163L118.242,29.324Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13664" /><g
id="g13666"><rect
x="9.05"
y="50.073"
width="4.968"
height="24.584"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="rect13668" /><path
d="M31.734,61.802C32.064,62.835 32.422,64.02 32.809,65.359C33.196,66.698 33.532,67.941 33.812,69.092L33.882,69.092C34.212,67.941 34.576,66.697 34.974,65.359C35.374,64.02 35.738,62.835 36.066,61.802L40.012,50.073L47.725,50.073L47.725,74.657L42.97,74.657L42.97,62.647C42.97,62.06 42.97,61.39 42.97,60.639C42.97,59.888 42.976,59.107 42.988,58.295C42.999,57.486 43.012,56.682 43.023,55.883C43.035,55.085 43.052,54.334 43.076,53.629L43.006,53.629C42.817,54.216 42.618,54.861 42.407,55.567C42.195,56.271 41.978,56.976 41.755,57.679C41.532,58.385 41.321,59.054 41.122,59.688C40.921,60.322 40.752,60.863 40.611,61.309L35.857,74.657L31.418,74.657L26.839,61.449C26.746,61.167 26.592,60.698 26.382,60.04C26.17,59.382 25.942,58.654 25.695,57.855C25.449,57.057 25.214,56.277 24.99,55.513C24.767,54.751 24.585,54.121 24.444,53.629L24.374,53.629C24.397,54.334 24.414,55.085 24.427,55.883C24.439,56.681 24.45,57.486 24.462,58.295C24.474,59.107 24.481,59.888 24.481,60.639L24.481,74.657L19.937,74.657L19.937,50.073L27.898,50.073L31.734,61.802Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13670" /><path
d="M75.939,74.657L70.549,74.657L68.402,68.987L58.151,68.987L56.003,74.657L50.895,74.657L60.546,50.073L66.147,50.073L75.939,74.657ZM65.02,59.511C64.879,59.136 64.726,58.696 64.563,58.192C64.397,57.688 64.241,57.17 64.087,56.641C63.934,56.113 63.788,55.615 63.647,55.144C63.507,54.674 63.4,54.275 63.33,53.946L63.26,53.946C63.165,54.275 63.048,54.674 62.908,55.144C62.767,55.614 62.608,56.113 62.431,56.641C62.255,57.17 62.084,57.687 61.921,58.192C61.756,58.696 61.604,59.136 61.463,59.511L59.421,65.253L67.064,65.253L65.02,59.511Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13672" /><path
d="M98.023,55.179C97.269,54.78 96.31,54.452 95.146,54.193C93.98,53.935 92.761,53.806 91.493,53.806C90.175,53.806 88.986,54.005 87.926,54.404C86.868,54.802 85.968,55.364 85.227,56.091C84.485,56.818 83.909,57.708 83.497,58.762C83.085,59.817 82.878,60.988 82.878,62.278C82.878,63.544 83.067,64.703 83.445,65.758C83.82,66.812 84.369,67.708 85.087,68.446C85.806,69.184 86.694,69.759 87.755,70.169C88.816,70.579 90.027,70.784 91.395,70.784C91.914,70.784 92.426,70.754 92.932,70.696C93.438,70.637 93.892,70.55 94.292,70.432L94.292,64.337L89.043,64.337L89.043,60.393L99.011,60.393L99.011,73.601C97.672,74.071 96.311,74.405 94.925,74.604C93.54,74.803 92.143,74.905 90.734,74.905C88.855,74.905 87.112,74.618 85.504,74.042C83.895,73.467 82.504,72.634 81.329,71.541C80.155,70.448 79.24,69.123 78.583,67.561C77.925,66 77.597,64.233 77.597,62.26C77.597,60.358 77.925,58.638 78.583,57.1C79.24,55.562 80.174,54.252 81.383,53.173C82.593,52.092 84.054,51.265 85.77,50.69C87.483,50.115 89.409,49.827 91.545,49.827C92.766,49.827 93.958,49.898 95.121,50.038C96.283,50.18 97.368,50.426 98.379,50.777L98.023,55.179Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13674" /><path
d="M104.397,50.073L118.944,50.073L118.944,54.193L109.293,54.193L109.293,60.077L118.17,60.077L118.17,64.057L109.293,64.057L109.293,70.538L119.05,70.538L119.05,74.657L104.398,74.657L104.398,50.073L104.397,50.073Z"
style="fill:#a9aaac;fill-rule:nonzero;fill-opacity:1"
id="path13676" /></g></g></g></g>
</svg>
<svg style="clip-rule:evenodd;fill-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.4142" version="1.1" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(-2688 -480)">
<g id="loading_image" transform="matrix(1 0 0 1.3763 2688 294.19)">
<rect y="135" width="128" height="93" style="fill:none"/>
<g transform="matrix(1 0 0 .72656 0 134.27)">
<path d="m9.041 88.646c0-3.866 3.134-7 7-7h96c3.866 0 7 3.134 7 7v9c0 3.866-3.134 7-7 7h-96c-3.866 0-7-3.134-7-7v-9z" style="fill-rule:nonzero;fill:#a9aaac"/>
</g>
<g transform="matrix(1 0 0 .72656 0 134.27)">
<path d="m9.041 88.646c0-3.866 3.134-7 7-7h62c3.866 0 7 3.134 7 7v9c0 3.866-3.134 7-7 7h-62c-3.866 0-7-3.134-7-7v-9z" style="fill-rule:nonzero;fill:#7289da"/>
</g>
<g transform="matrix(1 0 0 .72656 0 134.27)">
<path d="m8.95 25.658h3.566v14.616h6.853v3.034h-10.419v-17.65z" style="fill-rule:nonzero;fill:#a9aaac"/>
<path d="m29.13 25.354c1.299 0 2.47.211 3.515.632 1.045.422 1.934 1.025 2.668 1.809.733.783 1.298 1.732 1.695 2.844.395 1.113.594 2.37.594 3.768 0 1.417-.207 2.689-.62 3.818-.414 1.13-.995 2.095-1.745 2.896-.75.802-1.661 1.416-2.731 1.846s-2.263.645-3.578.645c-1.298 0-2.479-.211-3.541-.632-1.062-.422-1.964-1.029-2.706-1.821s-1.315-1.749-1.719-2.87c-.405-1.122-.607-2.381-.607-3.78 0-2.934.768-5.193 2.302-6.778 1.533-1.584 3.692-2.377 6.473-2.377zm-.215 2.757c-.71 0-1.356.151-1.939.455s-1.086.733-1.509 1.29c-.423.556-.748 1.231-.977 2.023-.228.792-.341 1.669-.341 2.63 0 .96.113 1.833.341 2.616.229.784.559 1.45.989 1.999.431.547.942.973 1.534 1.277.591.304 1.259.455 2.003.455.709 0 1.356-.155 1.94-.468.582-.312 1.085-.746 1.508-1.302.422-.557.752-1.227.989-2.011s.355-1.647.355-2.592c0-.978-.114-1.862-.343-2.656-.228-.792-.558-1.462-.989-2.01s-.946-.969-1.546-1.264c-.599-.295-1.271-.442-2.015-.442z" style="fill-rule:nonzero;fill:#a9aaac"/>
<path d="m56.77 43.309h-3.869l-1.542-4.071h-7.359l-1.542 4.071h-3.668l6.929-17.65h4.021l7.03 17.65zm-7.84-10.874c-.101-.27-.211-.585-.328-.948-.119-.362-.232-.733-.342-1.113-.11-.378-.215-.736-.316-1.074-.101-.337-.177-.624-.228-.86h-.05c-.068.236-.152.522-.253.86s-.215.696-.342 1.074c-.126.38-.249.751-.366 1.113-.118.362-.228.678-.329.948l-1.466 4.122h5.487l-1.467-4.122z" style="fill-rule:nonzero;fill:#a9aaac"/>
<path d="m63.976 25.658c1.483 0 2.861.156 4.135.468 1.272.312 2.377.821 3.313 1.529.936.709 1.665 1.628 2.188 2.756.522 1.13.784 2.513.784 4.148 0 1.551-.271 2.879-.81 3.982-.539 1.105-1.277 2.011-2.213 2.719-.935.708-2.035 1.226-3.3 1.556-1.265.328-2.63.493-4.097.493h-4.83v-17.65h4.83v-.001zm-1.264 14.945h.935c.978 0 1.897-.105 2.756-.316s1.605-.551 2.238-1.024c.632-.472 1.133-1.096 1.505-1.872.37-.775.557-1.728.557-2.857 0-1.179-.187-2.162-.557-2.946-.372-.784-.873-1.412-1.505-1.884-.633-.472-1.379-.801-2.238-.986-.859-.186-1.779-.279-2.756-.279h-.935v12.164z" style="fill-rule:nonzero;fill:#a9aaac"/>
<rect x="77.731" y="25.658" width="3.566" height="17.65" style="fill-rule:nonzero;fill:#a9aaac"/>
<path d="m97.051 25.658h3.213v17.65h-4.502l-4.526-8.648c-.236-.438-.477-.915-.721-1.429-.244-.513-.485-1.02-.721-1.517s-.451-.965-.646-1.403c-.193-.438-.35-.801-.467-1.088h-.051c.017.27.033.654.051 1.15.017.498.028 1.033.038 1.606.008.573.017 1.138.024 1.695.009.555.014 1.02.014 1.39v8.244h-3.213v-17.65h4.756l4.45 8.724c.169.32.362.708.582 1.163.219.456.442.927.671 1.416.227.49.442.966.644 1.429.203.464.37.847.507 1.15h.05c-.018-.32-.034-.754-.05-1.301-.018-.549-.034-1.134-.051-1.759-.018-.623-.03-1.239-.038-1.846-.01-.606-.014-1.129-.014-1.567v-7.409z" style="fill-rule:nonzero;fill:#a9aaac"/>
<path d="m118.24 29.324c-.541-.286-1.229-.521-2.066-.708-.836-.185-1.711-.278-2.622-.278-.947 0-1.8.143-2.561.429-.76.286-1.406.689-1.938 1.211-.533.522-.946 1.161-1.243 1.918-.295.757-.443 1.598-.443 2.524 0 .909.136 1.741.406 2.499.27.756.664 1.4 1.18 1.93s1.154.942 1.915 1.237 1.632.441 2.613.441c.371 0 .739-.021 1.103-.063.363-.042.689-.105.977-.189v-4.376h-3.768v-2.832h7.156v9.483c-.961.337-1.938.577-2.934.72-.994.143-1.997.215-3.009.215-1.349 0-2.601-.206-3.756-.62-1.154-.413-2.153-1.011-2.996-1.795s-1.5-1.736-1.973-2.857c-.472-1.121-.708-2.389-.708-3.806 0-1.365.236-2.6.708-3.704.473-1.104 1.143-2.044 2.011-2.819.868-.776 1.918-1.37 3.148-1.783 1.229-.413 2.613-.62 4.146-.62.877 0 1.733.05 2.567.151.835.102 1.613.279 2.339.531l-.252 3.161z" style="fill-rule:nonzero;fill:#a9aaac"/>
<rect x="9.05" y="50.073" width="4.968" height="24.584" style="fill-rule:nonzero;fill:#a9aaac"/>
<path d="m31.734 61.802c.33 1.033.688 2.218 1.075 3.557s.723 2.582 1.003 3.733h.07c.33-1.151.694-2.395 1.092-3.733.4-1.339.764-2.524 1.092-3.557l3.946-11.729h7.713v24.584h-4.755v-12.01-2.008c0-.751.006-1.532.018-2.344.011-.809.024-1.613.035-2.412.012-.798.029-1.549.053-2.254h-.07c-.189.587-.388 1.232-.599 1.938-.212.704-.429 1.409-.652 2.112-.223.706-.434 1.375-.633 2.009-.201.634-.37 1.175-.511 1.621l-4.754 13.348h-4.439l-4.579-13.208c-.093-.282-.247-.751-.457-1.409-.212-.658-.44-1.386-.687-2.185-.246-.798-.481-1.578-.705-2.342-.223-.762-.405-1.392-.546-1.884h-.07c.023.705.04 1.456.053 2.254.012.798.023 1.603.035 2.412.012.812.019 1.593.019 2.344v14.018h-4.544v-24.584h7.961l3.836 11.729z" style="fill-rule:nonzero;fill:#a9aaac"/>
<path d="m75.939 74.657h-5.39l-2.147-5.67h-10.251l-2.148 5.67h-5.108l9.651-24.584h5.601l9.792 24.584zm-10.919-15.146c-.141-.375-.294-.815-.457-1.319-.166-.504-.322-1.022-.476-1.551-.153-.528-.299-1.026-.44-1.497-.14-.47-.247-.869-.317-1.198h-.07c-.095.329-.212.728-.352 1.198-.141.47-.3.969-.477 1.497-.176.529-.347 1.046-.51 1.551-.165.504-.317.944-.458 1.319l-2.042 5.742h7.643l-2.044-5.742z" style="fill-rule:nonzero;fill:#a9aaac"/>
<path d="m98.023 55.179c-.754-.399-1.713-.727-2.877-.986-1.166-.258-2.385-.387-3.653-.387-1.318 0-2.507.199-3.567.598-1.058.398-1.958.96-2.699 1.687-.742.727-1.318 1.617-1.73 2.671-.412 1.055-.619 2.226-.619 3.516 0 1.266.189 2.425.567 3.48.375 1.054.924 1.95 1.642 2.688.719.738 1.607 1.313 2.668 1.723s2.272.615 3.64.615c.519 0 1.031-.03 1.537-.088.506-.059.96-.146 1.36-.264v-6.095h-5.249v-3.944h9.968v13.208c-1.339.47-2.7.804-4.086 1.003-1.385.199-2.782.301-4.191.301-1.879 0-3.622-.287-5.23-.863-1.609-.575-3-1.408-4.175-2.501-1.174-1.093-2.089-2.418-2.746-3.98-.658-1.561-.986-3.328-.986-5.301 0-1.902.328-3.622.986-5.16.657-1.538 1.591-2.848 2.8-3.927 1.21-1.081 2.671-1.908 4.387-2.483 1.713-.575 3.639-.863 5.775-.863 1.221 0 2.413.071 3.576.211 1.162.142 2.247.388 3.258.739l-.356 4.402z" style="fill-rule:nonzero;fill:#a9aaac"/>
<path d="m104.4 50.073h14.547v4.12h-9.651v5.884h8.877v3.98h-8.877v6.481h9.757v4.119h-14.652v-24.584h-.001z" style="fill-rule:nonzero;fill:#a9aaac"/>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -1,6 +1,4 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 58 58" style="enable-background:new 0 0 58 58;" xml:space="preserve">
<g>

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -19,7 +19,7 @@ export class Mutex<T> {
execute<R>(callback: (value: T, setValue: (newValue: T) => void) => R | Promise<R>) : Promise<R> {
return new Promise<R>((resolve, reject) => {
this.taskQueue.push(() => new Promise(taskResolve => {
this.taskQueue.push(() => new Promise<void>(taskResolve => {
try {
const result = callback(this.value, newValue => this.value = newValue);
if(result instanceof Promise) {

View File

@ -141,7 +141,6 @@ export class RemoteRTPAudioTrack extends RemoteRTPTrack {
this.htmlAudioNode.srcObject = this.mediaStream;
this.htmlAudioNode.autoplay = true;
this.htmlAudioNode.muted = true;
this.htmlAudioNode.msRealTime = true;
/*
{

View File

@ -339,9 +339,9 @@ export class ConnectionHistory {
break;
}
promises.push(new Promise(resolve => {
promises.push(new Promise<void>(resolve => {
const deleteRequest = entry.delete();
deleteRequest.onsuccess = resolve;
deleteRequest.onsuccess = () => resolve();
deleteRequest.onerror = () => {
logWarn(LogCategory.GENERAL, tr("Failed to delete a connection attempt: %o"), deleteRequest.error);
resolve();

View File

@ -22,7 +22,7 @@ async function requestDatabase() {
if(databaseMode === "open") {
return;
} else if(databaseMode === "opening" || databaseMode === "updating") {
await new Promise(resolve => databaseStateChangedCallbacks.push(resolve));
await new Promise<void>(resolve => databaseStateChangedCallbacks.push(resolve));
} else if(databaseMode === "closed") {
try {
await doOpenDatabase(false);
@ -285,7 +285,7 @@ export async function queryConversationEvents(clientUniqueId: string, query: {
const events = [];
let hasMoreEvents = false;
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
cursor.onsuccess = () => {
if(!cursor.result) {
/* no more results */

View File

@ -166,7 +166,7 @@ class RemoteAvatarManagerFactory extends AbstractAvatarManagerFactory {
async initialize() {
this.ipcChannel.sendMessage("query-handlers", {});
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
const timeout = setTimeout(() => {
this.callbackHandlerQueried = undefined;
reject(tr("handler query timeout"));

View File

@ -39,7 +39,7 @@ class RemoteIconManager extends AbstractIconManager {
async initialize() {
this.ipcChannel.sendMessage("initialize", {});
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
const timeout = setTimeout(() => {
this.callbackInitialized = undefined;
reject(tr("initialize timeout"));

View File

@ -213,7 +213,7 @@ async function doHandleConnectRequest(serverAddress: string, serverUniqueId: str
return { status: "client-aborted" };
}
await new Promise(resolve => getAudioBackend().executeWhenInitialized(resolve));
await new Promise<void>(resolve => getAudioBackend().executeWhenInitialized(resolve));
}
const clientNickname = parameters.getValue(AppParameters.KEY_CONNECT_NICKNAME, undefined);

View File

@ -170,11 +170,11 @@ export abstract class SubscribedPlaylist {
*
* @param forceQuery Forcibly query even we're subscribed and already aware of all songs.
*/
abstract async querySongs(forceQuery: boolean) : Promise<void>;
abstract querySongs(forceQuery: boolean) : Promise<void>;
abstract async addSong(url: string, urlLoader: "any" | "youtube" | "ffmpeg" | "channel", targetSongId: number | 0, mode?: "before" | "after" | "last") : Promise<void>;
abstract async deleteEntry(entryId: number) : Promise<void>;
abstract async reorderEntry(entryId: number, targetEntryId: number, mode: "before" | "after") : Promise<void>;
abstract addSong(url: string, urlLoader: "any" | "youtube" | "ffmpeg" | "channel", targetSongId: number | 0, mode?: "before" | "after" | "last") : Promise<void>;
abstract deleteEntry(entryId: number) : Promise<void>;
abstract reorderEntry(entryId: number, targetEntryId: number, mode: "before" | "after") : Promise<void>;
getStatus() : Readonly<SubscribedPlaylistStatus> {
return this.status;

View File

@ -63,7 +63,7 @@ export async function promptYesNo(properties: YesNoParameters) : Promise<boolean
ignorePromise(modal.show());
return await new Promise<boolean | undefined>(resolve => {
modal.getEvents().on("destroy", () => resolve());
modal.getEvents().on("destroy", () => resolve(undefined));
controller.events.on("action_submit", event => {
resolve(event.status);
modal.destroy();

View File

@ -158,7 +158,7 @@ export class ExternalModalController implements ModalInstanceController {
this.windowId = result.windowId;
try {
if(!this.modalInitialized) {
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
const timeoutId = setTimeout(reject, 15000);
this.modalInitializeCallback = () => {
clearTimeout(timeoutId);

View File

@ -111,7 +111,7 @@ export class InternalModalInstance implements ModalInstanceController {
throw tr("missing modal hanging container");
}
await new Promise(resolve => internalModalContainer.current.addModalInstance(this, resolve));
await new Promise<void>(resolve => internalModalContainer.current.addModalInstance(this, resolve));
if(!this.refRendererInstance.current) {
this.destructModalInstance();
throw tr("missing rendered modal reference");
@ -162,7 +162,7 @@ export class InternalModalInstance implements ModalInstanceController {
this.modalInstance["onOpen"]();
this.state = ModalState.SHOWN;
await new Promise(resolve => this.refRendererInstance.current.setState({ shown: true }, resolve));
await new Promise<void>(resolve => this.refRendererInstance.current.setState({ shown: true }, resolve));
this.events.fire("notify_open");
}
@ -177,7 +177,7 @@ export class InternalModalInstance implements ModalInstanceController {
this.state = ModalState.HIDDEN;
this.modalInstance["onClose"]();
await new Promise(resolve => this.refRendererInstance.current.setState({ shown: false }, resolve));
await new Promise<void>(resolve => this.refRendererInstance.current.setState({ shown: false }, resolve));
/* TODO: Somehow get the real animation finish signal? */
await new Promise(resolve => setTimeout(resolve, 500));