Lively Kernel canvas
// this script is evaluated on world load
0.1
60
377.7015456685175
1.4593256476861893
null
ProjectcreationwithLivelyWiki
30
3
1
false
null
33
null
null
UseraccountThefollowingfewpagesdemonstratehowyoucancreateownprojectsandhowyoucanaddbehaviortothem.Ifyouhavenolivelykernel.sunlabs.comaccountitisrecommendtocreateonehere.Withanuseraccountyouwillbeabletocreateandeditxhtmlprojectpages(worlds).AuthenticationCreatinganewworldcanbedonefromeverywhere.However,youmustbeloggedintodoso.Openaworldmenu(alt+clickinthebluebackground)andchoose'authenticateforwriteaccess'.Aloginwindowwillappearinwhichyoucanenteryourusernameandpassword.CreateanewworldWhenyouareloggedin,createanewworldbyopeningtheworldmenuandchoose'publishworldas...'.Youwillbeabletoenteranewnamefortheworld.Noticethatthereareafewnameswhichyoucannotuse.Everythingbeginningwith'lively'or'non-'aswellas'index.xhtml'and'example.xhtml'areinvalidnames.
463
false
null
582
null
null
null
false
null
null
AsyouplayaroundwiththeLivelyWikiyoumightnoticeseveralbugs.Ifyouencounteronepleasereportthebug!Thankyou!OneproblemwhichoccursoftenisthatsavingworldswithspecificMorphsliketheSystemBrowsercanleadtoerrorswhenloadingthatworldagain.Alsootherchangesmaydestroyaworldwhenitissaved.WhentheerrorpreventyoufromrevertingthechangeswiththeWikiNavigator(thethinginthetopleftcorner)youcanevaluatethefollowingscriptafterlogginginfromanyotherLivelyWikiworld(justchangethevalueoffile).file='myBrokenWorld.xhtml';//enteryourfilenamehereurl=URL.source.getDirectory();dir=newFileDirectory(url);res=newSVNResource(url.toString(),Record.newPlainInstance({URL:url+file,Metadata:null,HeadRevision:null}));res.fetchMetadata(true,null);timestamps=res.getMetadata();revs=timestamps.collect(function(ea){returnea.toString().match(/.*Revision(.*)/)[1]});secondNewestRev=revs[1];oldContent=dir.fileContent(file,secondNewestRev);dir.writeFileNamed(file,oldContent);
null
true
true
false
0
false
null
533
null
7
null
true
false
null
false
null
1
true
false
true
false
null
null
false
null
false
null
false
Inthecaseofanemergency...
null
false
null
false
false
false
null
false
false
null
null
null
null
false
null
Next
22
2
false
null
1
null
null
1248601416206
5857
1
16
null
1248601416
null