-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #692 from epfml/691-ui-tweaks-julien
UI tweaks
- Loading branch information
Showing
56 changed files
with
526 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ export enum type { | |
|
||
// Decentralized | ||
SignalForPeer, | ||
|
||
PeerIsReady, | ||
PeersForRound, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Time to wait for the others in milliseconds. | ||
export const MAX_WAIT_PER_ROUND = 15_000 | ||
|
||
export async function timeout (ms = MAX_WAIT_PER_ROUND): Promise<never> { | ||
export async function timeout (ms = MAX_WAIT_PER_ROUND, errorMsg: string = 'timeout'): Promise<never> { | ||
return await new Promise((_, reject) => { | ||
setTimeout(() => { reject(new Error('timeout')) }, ms) | ||
setTimeout(() => { reject(new Error(errorMsg)) }, ms) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="currentColor" | ||
:class="customClass" | ||
:viewBox="viewBox" | ||
> | ||
<g> | ||
<g> | ||
<path d="M197.33,395.905c-54.065,0-98.051-43.98-98.051-98.04c0-54.065,43.985-98.05,98.051-98.05 c11.189,0,22.169,1.875,32.632,5.571c3.972,1.403,6.638,5.144,6.669,9.355c0.24,32.773,21.16,62.115,52.055,73.013 c3.846,1.356,6.482,4.913,6.664,8.986c0.016,0.363,0.02,0.744,0.02,1.125C295.369,351.924,251.389,395.905,197.33,395.905z M197.33,219.815c-43.037,0-78.051,35.013-78.051,78.05c0,43.031,35.014,78.04,78.051,78.04c41.006,0,74.727-31.79,77.81-72.02 c-32.749-14.438-55.187-45.902-58.172-81.578C210.59,220.652,204.009,219.815,197.33,219.815z" fill="#444B54"/> | ||
</g> | ||
<g> | ||
<path d="M314.67,312.185c-11.196,0-22.179-1.875-32.642-5.571c-38.758-13.671-65.021-50.45-65.396-91.552 c-0.011-0.305-0.014-0.616-0.014-0.917c0-54.065,43.985-98.05,98.051-98.05s98.051,43.985,98.051,98.05 C412.721,268.205,368.735,312.185,314.67,312.185z M314.67,136.095c-43.037,0-78.051,35.013-78.051,78.05l0.001,0.216 c0.008,0.153,0.01,0.228,0.011,0.381c0.24,32.773,21.159,62.115,52.055,73.013c8.323,2.94,17.063,4.431,25.984,4.431 c43.037,0,78.051-35.009,78.051-78.04C392.721,171.108,357.707,136.095,314.67,136.095z" fill="#444B54"/> | ||
</g> | ||
<g> | ||
<path d="M167.055,335.666c-2.56,0-5.118-0.976-7.071-2.929c-3.905-3.905-3.905-10.237,0-14.142l51.779-51.778 c3.907-3.905,10.237-3.905,14.143,0s3.905,10.237,0,14.142l-51.779,51.778C172.173,334.689,169.613,335.666,167.055,335.666z" fill="#444B54"/> | ||
</g> | ||
<g> | ||
<path d="M218.834,335.666c-2.56,0-5.118-0.976-7.071-2.929l-51.779-51.78c-3.905-3.905-3.905-10.237,0-14.142 c3.907-3.905,10.237-3.905,14.143,0l51.779,51.78c3.905,3.905,3.905,10.237,0,14.142 C223.952,334.689,221.393,335.666,218.834,335.666z" fill="#444B54"/> | ||
</g> | ||
<g> | ||
<path d="M299.19,252.681c-0.291,0-0.582-0.013-0.873-0.038c-2.944-0.258-5.623-1.805-7.318-4.225l-23.02-32.866 c-3.169-4.523-2.07-10.759,2.453-13.928c4.523-3.168,10.76-2.07,13.928,2.454l16.187,23.109l45.554-45.526 c3.908-3.905,10.238-3.902,14.143,0.004s3.902,10.238-0.004,14.142l-53.98,53.947C304.375,251.636,301.829,252.681,299.19,252.681 z" fill="#444B54"/> | ||
</g> | ||
<g> | ||
<path d="M285.369,297.865c0,48.62-39.42,88.04-88.039,88.04c-48.631,0-88.051-39.42-88.051-88.04 c0-48.63,39.42-88.05,88.051-88.05c10.27,0,20.131,1.76,29.301,5c0.279,38.06,24.709,70.37,58.729,82.37 C285.369,297.405,285.369,297.635,285.369,297.865z" fill="transparent"/> | ||
<path d="M197.33,395.905c-54.065,0-98.051-43.98-98.051-98.04c0-54.065,43.985-98.05,98.051-98.05 c11.189,0,22.169,1.875,32.632,5.571c3.972,1.403,6.638,5.144,6.669,9.355c0.24,32.773,21.16,62.115,52.055,73.013 c3.846,1.356,6.482,4.913,6.664,8.986c0.016,0.363,0.02,0.744,0.02,1.125C295.369,351.924,251.389,395.905,197.33,395.905z M197.33,219.815c-43.037,0-78.051,35.013-78.051,78.05c0,43.031,35.014,78.04,78.051,78.04c41.006,0,74.727-31.79,77.81-72.02 c-32.749-14.438-55.187-45.902-58.172-81.578C210.59,220.652,204.009,219.815,197.33,219.815z" fill="#444B54"/> | ||
</g> | ||
<g> | ||
<path d="M402.721,214.145c0,48.62-39.43,88.04-88.051,88.04c-10.279,0-20.141-1.76-29.311-5 c-34.02-12-58.449-44.31-58.729-82.37c-0.012-0.22-0.012-0.45-0.012-0.67c0-48.63,39.422-88.05,88.051-88.05 C363.291,126.095,402.721,165.515,402.721,214.145z" fill="transparent"/> | ||
<path d="M314.67,312.185c-11.196,0-22.179-1.875-32.642-5.571c-38.758-13.671-65.021-50.45-65.396-91.552 c-0.011-0.305-0.014-0.616-0.014-0.917c0-54.065,43.985-98.05,98.051-98.05s98.051,43.985,98.051,98.05 C412.721,268.205,368.735,312.185,314.67,312.185z M314.67,136.095c-43.037,0-78.051,35.013-78.051,78.05l0.001,0.216 c0.008,0.153,0.01,0.228,0.011,0.381c0.24,32.773,21.159,62.115,52.055,73.013c8.323,2.94,17.063,4.431,25.984,4.431 c43.037,0,78.051-35.009,78.051-78.04C392.721,171.108,357.707,136.095,314.67,136.095z" fill="#444B54"/> | ||
</g> | ||
<g> | ||
<path d="M167.055,335.666c-2.56,0-5.118-0.976-7.071-2.929c-3.905-3.905-3.905-10.237,0-14.142l51.779-51.778 c3.907-3.905,10.237-3.905,14.143,0s3.905,10.237,0,14.142l-51.779,51.778C172.173,334.689,169.613,335.666,167.055,335.666z" fill="#444B54"/> | ||
</g> | ||
<g> | ||
<path d="M218.834,335.666c-2.56,0-5.118-0.976-7.071-2.929l-51.779-51.78c-3.905-3.905-3.905-10.237,0-14.142 c3.907-3.905,10.237-3.905,14.143,0l51.779,51.78c3.905,3.905,3.905,10.237,0,14.142 C223.952,334.689,221.393,335.666,218.834,335.666z" fill="#444B54"/> | ||
</g> | ||
<g> | ||
<path d="M299.19,252.681c-0.291,0-0.582-0.013-0.873-0.038c-2.944-0.258-5.623-1.805-7.318-4.225l-23.02-32.866 c-3.169-4.523-2.07-10.759,2.453-13.928c4.523-3.168,10.76-2.07,13.928,2.454l16.187,23.109l45.554-45.526 c3.908-3.905,10.238-3.902,14.143,0.004s3.902,10.238-0.004,14.142l-53.98,53.947C304.375,251.636,301.829,252.681,299.19,252.681 z" fill="#444B54"/> | ||
</g> | ||
</g> | ||
</svg> | ||
</template> | ||
<script lang="ts"> | ||
export default { | ||
name: 'FeedbackIcon', | ||
props: { | ||
customClass: { default: 'w-8 h-8', type: String }, | ||
viewBox: { default: '0 0 512 512', type: String } | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.