File tree Expand file tree Collapse file tree
src/cms/server/public/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import api from '../api.js'
22import 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+
424const 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 : {
You can’t perform that action at this time.
0 commit comments