Lively Kernel canvas
null
null
null
//updatesourcecodefromrepositorybaseUrl=newURL('http://livelykernel.sunlabs.com/repository/lively-kernel/trunk/source/kernel/');dirs=['','Tests/','ometa/']dirs.each(function(lastPart){dir=newFileDirectory(baseUrl.withFilename(lastPart));files=dir.filenames().reject(function(ea){returnea.startsWith('index')||ea.startsWith('.')||ea.endsWith('xhtml')});files.each(function(ea){dir.copyFileNamed(ea,null,URL.source.getDirectory().withFilename(lastPart))});});
7
381
true
null
380
null
null
//copyjustaspecificfiledir=newFileDirectory(newURL('http://livelykernel.sunlabs.com/repository/lively-kernel/trunk/source/kernel/'));dir.copyFileNamed('Tools.js',null,URL.source.getDirectory());
3
0
false
null
206
null
null
//copyandrenameafilex=newFileDirectory(URL.source.getDirectory());x.copyFileNamed('index.xhtml',null,URL.common.wiki,'example.xhtml');
2
0
false
null
147
null
null
//listrevisionsofafilefile='happyNewYear.xhtml';url=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]});
8
41
false
null
393
null
null
//patchandunpatchwikifilesfile='wikiScripts2.xhtml';url=newURL('http://livelykernel.sunlabs.com/repository/lively-wiki/');patcher=newWikiPatcher(url);patcher.patchFile(file,8426);
4
0
true
null
197
null
null
//unpatchafilesothatitusesthemostcurrentsourcesfile='wikiScripts2.xhtml';url=newURL('http://livelykernel.sunlabs.com/repository/lively-wiki/');patcher=newWikiPatcher(url);patcher.unpatchFile(file);
4
56
false
null
59
null
null
//copyandrename,fromlocalhost,notwiki!//getwriteaccessinthewikifromlocalhostnewNetRequest().put(URL.common.wiki.withFilename('abc'));//copyfilefromlocalhosttowiki//(mustbeevaluatedfromlocalhost)fileName='LKWiki.js';revision=null;newName=null;x=newFileDirectory(URL.source.getDirectory());x.copyFileNamed(fileName,revision,URL.common.wiki,newName);
7
0
false
null
1
null
null
//throughabugthereissometimesmorethanone'SystemDictionary'intheDOM,thisscriptsunifiesthemtoonedicts=$A(document.getElementsByTagName('defs')).select(function(ea){returnea.getAttribute('id')});all=dicts.inject([],function(nodes,ea){returnnodes.concat($A(ea.childNodes))});all.each(function(ea){try{varowner=ea.ownerSVGElement||ea.ownerNode;if(owner)owner.removeChild(ea)}catch(e){}});newDict=dicts.shift();lively.data.Wrapper.dictionary=newDict;dicts.each(function(ea){try{varowner=ea.ownerSVGElement||ea.ownerNode;if(owner)owner.removeChild(ea)}catch(e){}});all.each(function(ea){newDict.appendChild(ea,true)});
16
1
false
null
69
null
null
//addachangetothecurrentchangesetc=DoitChange.create('Config.showWikiNavigator=false\n\require("LKWiki.js").toRun(function(){});//justforloadingthejs');ChangeSet.current().addChange(c);
3
41
false
null
0
null
null
//revertafiletoarevisionfile='happyNewYear.xhtml';dir=newFileDirectory(URL.source);content=dir.fileContent(file,10624);dir.writeFileNamed(file,content)
4
170
true
null
170
null
null
null
null
null
null
null
1237262218724
98278
1
22
null
1237262218
null