@@ -242,14 +242,23 @@ const exportPreview = ( camera, lighting, scenes ) =>
242242 return JSON . stringify ( rendered , null , 2 ) ;
243243}
244244
245+ const SCENE_UIS = {
246+ 'indexed' : 'indexed' ,
247+ 'indexed-camera' : 'indexed (load-camera)' ,
248+ 'titled' : 'menu (named)' ,
249+ 'all' : 'menu (all)' ,
250+ 'zometool' : 'zometool' ,
251+ 'none' : 'none' ,
252+ }
253+
245254const shareToGitHub = async ( target , config , data , report ) =>
246255{
247256 const { orgName, repoName, branchName } = target ;
248257 const { title, description, blog, publish, style, originalDate } = config ;
249258 const { name, camera, lighting, image, scenes } = data ;
250259 const preview = exportPreview ( camera , lighting , scenes ) ;
251- importLegacy ( )
252- . then ( module => {
260+ Promise . all ( [ importLegacy ( ) , whenResourcesLoaded ( ) ] )
261+ . then ( ( [ module ] ) => {
253262 const xml = design . wrapper . serializeVZomeXml ( lighting , camera , scenes ) ;
254263 const creation = ( originalDate || new Date ( ) ) . toISOString ( ) ;
255264 const date = creation . substring ( 0 , 10 ) ;
@@ -260,7 +269,7 @@ const shareToGitHub = async ( target, config, data, report ) =>
260269 shareData . setEntryHandler ( { addEntry : ( path , data , encoding ) => {
261270 data && uploads . push ( { path, encoding, data } ) ;
262271 } } ) ;
263- const gitUrl = shareData . generateContent ( orgName , repoName , branchName , title , description , blog , publish , style ) ;
272+ const gitUrl = shareData . generateContent ( orgName , repoName , branchName , title , description , blog , publish , SCENE_UIS [ style ] ) ;
264273
265274 commitToGitHub ( target , uploads , `Online share - ${ name } ` )
266275 . then ( ( ) => {
0 commit comments