Skip to content

Commit

Permalink
I fixed these files from the developer version...
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandrito123 committed Jul 16, 2024
1 parent 051a8b6 commit e0e4410
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 33 deletions.
2 changes: 1 addition & 1 deletion snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</script><script src="src/paint.js"></script><script src="src/lists.js"></script><script src="src/byob.js"></script><script src="src/xml.js"></script><script src="src/maps.js"></script><script src="src/video.js">
</script><script src="src/tables.js"></script><script src="src/sketch.js"></script><script src="src/extensions.js"></script><script src="src/store.js"></script><script src="src/jszip/dist/jszip.js"></script>
<script src="src/locale.js"></script><script src="src/api.js"></script><script src="src/sha512.js"></script><script src="src/motors.js"></script><script src="src/bpmn.js"></script><script src="src/charts.js">
</script><script src="src/desktop.js"></script><script src="src/compilers.js"></script><script>var LastUpdated = SnapTranslator.dict.en.last_changed, world, deskItems = [], SnavancedVersion = '0.97-main',
</script><script src="src/desktop.js"></script><script src="src/compilers.js"></script><script>var LastUpdated = SnapTranslator.dict.en.last_changed, world, deskItems = [], SnavancedVersion = 'Developer Version',
desk, snapLogoTexture = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAAAcCAYAAACTZsrFAAAEDmlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPpu5syskzoPUpqaSDv41lLRsUtGE2uj+ZbNt3CyTbLRBkMns3Z1pJjPj/KRpKT4UQRDBqOCT4P9bwSchaqvtiy2itFCiBIMo+ND6R6HSFwnruTOzu5O4a73L3PnmnO9+595z7t4LkLgsW5beJQIsGq4t5dPis8fmxMQ6dMF90A190C0rjpUqlSYBG+PCv9rt7yDG3tf2t/f/Z+uuUEcBiN2F2Kw4yiLiZQD+FcWyXYAEQfvICddi+AnEO2ycIOISw7UAVxieD/Cyz5mRMohfRSwoqoz+xNuIB+cj9loEB3Pw2448NaitKSLLRck2q5pOI9O9g/t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RtwtLWHKifwT+b1qFd7od5AYUehgijhAb0S9/wxE8Z8BYgW269UeWwBSSCLxlgIduDDzXCtqKAz8PkaRKgG+CEW9+HpBfEgfjRf6kKV56RVmKeDBmaONWEswyLfwjFldL/uE0uEDFHJhxAVvzdSitRMkeIMRtDEteiFP5FTeM56oBerEPw+3OOLxFEAolBrjwMx8GKNsFUms14s7LiB7Kky9WOxRlRKmbxSnqxh0seIbRWoPLUXhkAWxCYGpUlP1WPjpxCxMQgs8it9RIsSvx+XqvXhvc/dQ/GJbPeYfg4NWO1iOAwJ7CHgZZCcB4CKa05IovUYqLZQJ2ghhzMT1hk9wpMyAAQPJZulfNsgwwX3U2BJ9OZyn1w8JIvwAg9JhqI8Hj3GC85hEKgXcAYYRGQwphA1Ao+CJDgn08Yr3PNAe7PMgCp3UNwjzAXjwIaRYDualFBRnG3rfJdBGCjXQh356BxYAU9foDZnvewuiaUDXWyW1312K92jv7i8+I5TqsjPwJgiPAkeuZIb7OtyMnc8pDTwNmMKG1okv83LR4HSrB4xrs3cUcT9MTcrhwS3Db7zARKRjnM3C8xuoJw9Q2TcwRpf44xjb38n4GBqin66BMVKFYiF3VNVJ4fqdvuLYX1sjcfZIIAFlebC3FF9MhRtChYt+xXA5warwTeE7Fl86AaLQhbFX08+HLZ51wfcy/HtlEGcqjHEeyzuPB6/QfOppFsR6MlArG5MQEJks2WQYicYx9WutNFvHLmEZvPc3wFwJV+ctCO1CvQw1EPEpPBONf6ACqyLX+H+TeYCDnrXZcX+dcPk54CrEofxgrQHHg7/KKhKPKTT5ML8mv+fPWuCATE+Qxz+ImIqu8U87LHbJ9fRXaAAAAABJRU5ErkJggg==",
startupSound = document.createElement('audio'); startupSound.src = 'src/startup.wav'; window.onload = function () {world = new WorldMorph(document.getElementById('world')); desk = new DesktopMorph(
world); loadAFont('morphicGlobalFontRegular', 'src/fonts/Arial.ttf'); loadAFont('morphicGlobalFontBold', 'src/fonts/Arialb.ttf'); loadAFont('morphicGlobalCodeScriptRegular', 'src/fonts/lucon.ttf'
Expand Down
36 changes: 17 additions & 19 deletions src/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@ if ('language' in navigator) {var selectedLanguage = ((navigator.language).split
'-snap-setting-language'] = detectPreferredLanguage();}; snavancedIsRunning = true; if (asABool(sessionStorage['-snap-setting-isDesktopMode'
])) {/* world.add(new LoginUIMorph(world)); */ world.add(desk); if (isNil(BlockMorph.prototype.snapSound)) {BlockMorph.prototype.toggleSnapSound(
);}; document.title = 'Snavanced! - Desktop Mode'; if (true || asABool(localStorage['-snap-notification-newFile'])) {localStorage[
'-snap-notification-newFile'] = false; (function () {var i = 0; deskItems.forEach(function (aDeskItem) {aDeskItem.destroy();});})();
deskItems = []; ((function anonymous () {var anArray = [], i = 0, j = 1, storage = window.localStorage; while (i < storage.length) {
if (storage.key(i).startsWith('-snap-file-')) {anArray.push([storage['-snap-file-project-' + j], j]); j++;}; i++;}; return anArray;
}).apply(this)).forEach(function (pair) {deskItems.push(new FileMorph(pair[0], pair[1]));}); (function () {var i = 0; (deskItems
'-snap-notification-newFile'] = false; (function () {var i = 0; deskItems.forEach(function (aDeskItem) {aDeskItem.destroy();});})(
); deskItems = []; ((function () {var anArray = [], i = 0, j = 1, storage = window.localStorage; while (i < storage.length) {if (
storage.key(i).startsWith('-snap-file-')) {anArray.push([storage['-snap-file-project-' + j], j]); j++;}; i++;}; return anArray;}
).apply(this)).forEach(function (pair) {deskItems.push(new FileMorph(pair[0], pair[1]));}); (function () {var i = 0; (deskItems
).forEach(function (aDeskItem) {desk.add(aDeskItem); aDeskItem.bounds.origin = new Point(15 + ((i % 19) * 75), 15 + (Math.floor(
i / 19) * 75)); aDeskItem.bounds.corner = new Point(aDeskItem.bounds.origin.x + 60, aDeskItem.bounds.origin.y + 60); i++;});})(
);}; function loop () {requestAnimationFrame(loop); world.doOneCycle(); world.rerender();};} else {(new IDE_Morph).openIn(world
); function loop () {requestAnimationFrame(loop); world.doOneCycle();};}; loop();}; /* Load all the fonts and init Snavanced! */

IDE_Morph.prototype.doLog = function (
object) {this.console.push(['log', object]);
this.newLogs = (this.newLogs + 1);};
object) {this.console.push(['log', object
]); this.newLogs = (this.newLogs + 1);};
IDE_Morph.prototype.doWarn = function (
object) {this.console.push(['warn', object]);
this.newLogs = (this.newLogs + 1);};
object) {this.console.push(['warn', object
]); this.newLogs = (this.newLogs + 1);};
IDE_Morph.prototype.doError = function (
object) {this.console.push(['error', object]);
this.newLogs = (this.newLogs + 1);};
object) {this.console.push(['error', object
]); this.newLogs = (this.newLogs + 1);};
IDE_Morph.prototype.doInform = function (
object) {this.console.push(['information', object]);
this.newLogs = (this.newLogs + 1);};
IDE_Morph.prototype.doDebug = function (
object) {this.console.push(['debug', object]);
this.newLogs = (this.newLogs + 1);};
object) {this.console.push(['information',
object]); this.newLogs = (this.newLogs + 1);
}; IDE_Morph.prototype.doDebug = function (
object) {this.console.push(['debug', object
]); this.newLogs = (this.newLogs + 1);};
IDE_Morph.prototype.doClear = function (
) {this.newLogs = 0; this.console = [];};

Expand Down Expand Up @@ -84,7 +84,7 @@ center.doClear();}; console._clear(
);}; /* Modifies the JS. */} catch (
error) {console.error(error);};

/* WTF is the cloud here? >:-( */
/* Why is the cloud here? */

/*
Expand Down Expand Up @@ -119,9 +119,7 @@ var Cloud;

// Cloud /////////////////////////////////////////////////////////////

function Cloud() {
this.init();
}
function Cloud() {this.init();};

Cloud.prototype.init = function () {
this.apiBasePath = '/api/v1';
Expand Down
5 changes: 2 additions & 3 deletions src/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@
*/

localize = function anonymous (string) {
return SnapTranslator.translate(string);};
localize = function (string) {return SnapTranslator.translate(string);};

var Localizer;

Expand Down Expand Up @@ -222,7 +221,7 @@ SnapTranslator.dict.en = {
'translator_e-mail':
'[email protected]',
'last_changed':
'2024-02-24',
'15-07-2024',

// long strings look-up only
'file menu import hint':
Expand Down
16 changes: 6 additions & 10 deletions src/threads.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,10 +562,9 @@ Process.prototype.runStep = function (deadline) {
// a step is an an uninterruptable 'atom', it can consist
// of several contexts, even of several blocks

if (this.isPaused) { // allow pausing in between atomic steps:
if (this.isPaused) {
return this.pauseStep();
};
this.readyToYield = false;
}; this.readyToYield = false;
this.isInterrupted = false;

// repeatedly evaluate the next context (stack frame) until
Expand Down Expand Up @@ -608,20 +607,17 @@ Process.prototype.runStep = function (deadline) {
) {this.popContext();};
if (this.homeContext.receiver) {
if (this.homeContext.receiver.endWarp) {
// pen optimization
this.homeContext.receiver.endWarp();
};
};};};
this.homeContext.receiver.endWarp();};};};};

Process.prototype.stop = function () {this.errorFlag = false; (this.readyToTerminate
) = true; this.readyToYield = true; this.canBroadcast = false; if (this.context) {(this
).context.stopMusic();}; if (isSnapObject(this.receiver)) {(this.receiver).stopFreq();};};

Process.prototype.stopTheScript = function (aScript) {myObj = this.receiver; world.children[0].stage.threads.processes.map(function (process) {var block = (process.root || process.topBlock
); if ((block instanceof HatBlockMorph) || (block instanceof DefinitorBlockMorph)) {if ((aScript = block) && (process.receiver === myObj)) {process.stop(); return process;} else {return (
process);};} else {return process;};});}; Process.prototype.stopTheMessage = function (aMessage) {try {var stg = world.children[0].stage; stg.lastMessage = ''; myObj = this.receiver;
stg.threads.processes.map(function (process) {var block = process.context.expression.topBlock(); if ((block instanceof HatBlockMorph) && (block.selector === 'receiveMessage'
) && (block.inputs()[0].evaluate() === (aMessage || null))) && (process.receiver === myObj)) {process.stop(); return process;} else {return process;};});} catch (err) {};};
process);};} else {return process;};});}; Process.prototype.stopTheMessage = function (aMessage) {try {var stg = world.children[0].stage; stg.lastMessage = ''; myObj = this.receiver; (stg
).threads.processes.map(function (process) {var block = process.context.expression.topBlock(); if ((block instanceof HatBlockMorph) && (block.selector === 'receiveMessage') && (block.inputs(
)[0].evaluate() === (aMessage || null)) && (process.receiver === myObj)) {process.stop(); return process;} else {return process;};});} catch (err) {};}; /* This is at least, hard work. :O */

Process.prototype.pause = function () {if (this.readyToTerminate) {return;}; this.isPaused = true; this.flashPausedContext(); if (this.context && this.context.startTime) {(this.pauseOffset
) = (Date.now() - this.context.startTime);};}; Process.prototype.resume = function () {if (!(this.enableSingleStepping)) {this.unflash();}; this.isPaused = false; this.pauseOffset = null;};
Expand Down

0 comments on commit e0e4410

Please sign in to comment.