mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-12 16:40:26 -07:00
chore: install cssbundling rails and set up compilation
This commit is contained in:
parent
09ab4d214e
commit
99ef1cb2c8
4670 changed files with 393937 additions and 25 deletions
14
spec/dummy/node_modules/unicorn-magic/default.js
generated
vendored
Normal file
14
spec/dummy/node_modules/unicorn-magic/default.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
export async function delay({seconds, milliseconds} = {}) {
|
||||
let duration;
|
||||
if (typeof seconds === 'number') {
|
||||
duration = seconds * 1000;
|
||||
} else if (typeof milliseconds === 'number') {
|
||||
duration = milliseconds;
|
||||
} else {
|
||||
throw new TypeError('Expected an object with either `seconds` or `milliseconds`.');
|
||||
}
|
||||
|
||||
return new Promise(resolve => {
|
||||
setTimeout(resolve, duration);
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue