process of vueification

This commit is contained in:
Gator
2022-01-08 13:12:15 +01:00
parent 010c34b5a9
commit b2057d0244
19 changed files with 27723 additions and 183 deletions

12
src/modules/common.js Normal file
View File

@ -0,0 +1,12 @@
function getRandomInt(min, max) {
const minVal = Math.ceil(min);
const maxVal = Math.floor(max);
// The maximum is exclusive and the minimum is inclusive
return Math.floor(Math.random() * (maxVal - minVal) + minVal);
}
async function sleep(ms) {
await new Promise((resolve) => setTimeout(resolve, ms));
}
export { getRandomInt, sleep };