mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
16 lines
418 B
JavaScript
Vendored
16 lines
418 B
JavaScript
Vendored
const ValidatorHelpers = {
|
|
install(Vue) {
|
|
Vue.prototype.$generatePaystackReference = function () {
|
|
let text = ''
|
|
|
|
let possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
|
|
|
|
for (let i = 0; i < 10; i++) text += possible.charAt(Math.floor(Math.random() * possible.length))
|
|
|
|
return text
|
|
}
|
|
},
|
|
}
|
|
|
|
export default ValidatorHelpers
|