Skip to content

Commit e47ccfd

Browse files
committed
Start with a random project name instd of prompting
1 parent 7d5c221 commit e47ccfd

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

src/cms/server/public/app/onboarding.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
import api from '../api.js'
22
import editProject from './editProject.js'
33

4+
const randomFrom = (list) => list[Math.floor(Math.random() * list.length)]
5+
6+
const randomProjectNames = [
7+
'The World',
8+
'My New Thing',
9+
'La Isla Bonita',
10+
'Ceci n\'est pas une pipe',
11+
'Aquaris',
12+
'Sunshine Recorder',
13+
'Aurora Borealis',
14+
'A Great Oak',
15+
'Brave New World',
16+
'A Brief History of Everything',
17+
'The year my parents went on vacation',
18+
'Something new',
19+
'Lorem site',
20+
'Bits and bops',
21+
'VGA vs HDMI'
22+
]
23+
424
const onboarding = async () => {
525
console.log('first time onboarding')
626
const newProject = await api.workspace.createProject({
7-
name: prompt('Project name')
27+
name: randomFrom(randomProjectNames)
828
})
929
return editProject({
1030
ssgOptions: {

0 commit comments

Comments
 (0)