mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-20 15:43:58 -05:00
* add job manager modal and button * cleanup directories and add card to debug screen * expo sdk 49 * update pods * updated native android files * updated native ios files * pods being cringe * update hermes * podfile * big update packages * fix and upgrade animations to reanimated 3 * nice types moti * clean imports * upgrade react-hook-form (fix type) * move stuff to sd/client and some organization * camel case * i liek switch * Merge iconImg & circleIcon props * wip * copy changes to mobile * move job context and job progress to client and also use it on mobile * pnpm-lock * (wip) - make job swipeable + styling * job progress bar and more style tweaks * no spring animation on progress bar pls * new loading animation * padding and pnpm lock * indeterminate progress bar * cleanup & update packages etc * leave some todos for future * fix types * monorepo types :) --------- Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
10 lines
378 B
TypeScript
10 lines
378 B
TypeScript
import cryptoRandomString from 'crypto-random-string';
|
|
|
|
// NOTE: `crypto` module is not available in RN so this can't be in client
|
|
export const generatePassword = (length: number) =>
|
|
cryptoRandomString({ length, type: 'ascii-printable' });
|
|
|
|
export type NonEmptyArray<T> = [T, ...T[]];
|
|
|
|
export const isNonEmpty = <T,>(input: T[]): input is NonEmptyArray<T> => input.length > 0;
|