mirror of https://github.com/nocodb/nocodb
4 changed files with 23 additions and 9 deletions
@ -0,0 +1,3 @@
|
||||
export * from './constants' |
||||
export * from './enums' |
||||
export * from './types' |
@ -0,0 +1,9 @@
|
||||
import { adjectives, animals, starWars, uniqueNamesGenerator } from 'unique-names-generator' |
||||
|
||||
export const generateUniqueName = () => { |
||||
return uniqueNamesGenerator({ |
||||
dictionaries: [[starWars], [adjectives, animals]][Math.floor(Math.random() * 2)], |
||||
}) |
||||
.toLowerCase() |
||||
.replace(/[ -]/g, '_') |
||||
} |
@ -0,0 +1,11 @@
|
||||
export * from './colorsUtils' |
||||
export * from './dateTimeUtils' |
||||
export * from './durationHelper' |
||||
export * from './errorUtils' |
||||
export * from './fileUtils' |
||||
export * from './filterUtils' |
||||
export * from './generateName' |
||||
export * from './projectCreateUtils' |
||||
export * from './urlUtils' |
||||
export * from './validation' |
||||
export * from './viewUtils' |
Loading…
Reference in new issue