Skip to content

Commit

Permalink
Update new.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
AsynchronousAI authored Jan 29, 2024
1 parent 010c463 commit aadaf37
Showing 1 changed file with 1 addition and 84 deletions.
85 changes: 1 addition & 84 deletions pages/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,90 +12,7 @@ import Link from 'next/link';
import firebase from 'firebase/app';
import { SharingPermissions } from '../src/components/SharingPermissions';
import va from '@vercel/analytics';

const adjectives = [
'awesome',
'fantastic',
'amazing',
'cool',
'brilliant',
'spiritual',
'amused',
'obscene',
'willing',
'smelly',
'bright',
'colossal',
'abstracted',
'understood',
'whispering',
'ignorant',
'momentous',
'black',
'agonizing',
'fluffy',
'regular',
'drunk',
'harsh',
'open',
'closed',
'entertaining',
'jobless',
'periodic',
'filthy',
'fast',
'quick',
'strong',
'typed',
'simple',
'sunny',
];
const nouns = [
'project',
'repo',
'work',
'code',
'app',
'order',
'butter',
'ticket',
'smoke',
'birds',
'rock',
'wing',
'fog',
'sky',
'water',
'cream',
'bikes',
'shoes',
'vegetable',
'cow',
'fork',
'haircut',
'rose',
'tree',
'maze',
'piano',
'ball',
'music',
'food',
'shower',
'window',
'umbrella',
'fork',
'plant',
'towel',
];

export default function generateRandomFileName() {
const randomAdjective =
adjectives[Math.floor(Math.random() * adjectives.length)];
const randomNoun = nouns[Math.floor(Math.random() * nouns.length)];
const randomNumber = Math.floor(Math.random() * 100);

return `${randomAdjective}-${randomNoun}-${randomNumber}`;
}
import { generateRandomFileName } from '../src/scripts/generateRandomFileName.tsx';


function classNames(...classes: any[]) {
Expand Down

0 comments on commit aadaf37

Please sign in to comment.