first commit
This commit is contained in:
15
app_vue/node_modules/cli-spinners/index.js
generated
vendored
Normal file
15
app_vue/node_modules/cli-spinners/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
const spinners = Object.assign({}, require('./spinners.json')); // eslint-disable-line import/extensions
|
||||
|
||||
const spinnersList = Object.keys(spinners);
|
||||
|
||||
Object.defineProperty(spinners, 'random', {
|
||||
get() {
|
||||
const randomIndex = Math.floor(Math.random() * spinnersList.length);
|
||||
const spinnerName = spinnersList[randomIndex];
|
||||
return spinners[spinnerName];
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = spinners;
|
Reference in New Issue
Block a user