Merge branch 'master' into libraries

upd4.1
brianharvey 2017-10-20 17:17:34 -04:00
commit b8ee89151d
6 zmienionych plików z 17 dodań i 9 usunięć

Wyświetl plik

@ -9,7 +9,7 @@ inspired by Scratch
written by Jens Mönig and Brian Harvey written by Jens Mönig and Brian Harvey
jens@moenig.org, bh@cs.berkeley.edu jens@moenig.org, bh@cs.berkeley.edu
Copyright (C) 2016 by Jens Mönig and Brian Harvey Copyright (C) 2017 by Jens Mönig and Brian Harvey
Snap! is free software: you can redistribute it and/or modify Snap! is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as it under the terms of the GNU Affero General Public License as

6
gui.js
Wyświetl plik

@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.gui = '2017-October-17'; modules.gui = '2017-October-20';
// Declarations // Declarations
@ -3347,8 +3347,8 @@ IDE_Morph.prototype.popupMediaImportDialog = function (folderName, items) {
myself.getURL( myself.getURL(
url, url,
function (txt) { function (txt) {
img.src = 'data:image/svg+xml;utf8,' + img.src = 'data:image/svg+xml;base64,' +
encodeURIComponent(txt); window.btoa(txt);
} }
); );
} else { } else {

Wyświetl plik

@ -3713,6 +3713,11 @@ Fixes:
* German translation update * German translation update
* GUI, Objects: double-clicking a corral sprite icon flashes the sprite onstage * GUI, Objects: double-clicking a corral sprite icon flashes the sprite onstage
171020
------
* fixed SVG encoding, thanks, Joan for the contribution!
* German translation update
v4.1 Features: v4.1 Features:
* polymorphic sprite-local custom blocks * polymorphic sprite-local custom blocks
@ -3765,3 +3770,4 @@ Fixes:
* limited sprites' direction and coordinates to finite numbers * limited sprites' direction and coordinates to finite numbers
* made block vars transient for block libraries * made block vars transient for block libraries
* keep “undo” and “redo” buttons at the same location * keep “undo” and “redo” buttons at the same location
* fixed SVG encoding for exporting vector costumes

Wyświetl plik

@ -185,7 +185,7 @@ SnapTranslator.dict.de = {
'translator_e-mail': 'translator_e-mail':
'jens@moenig.org', // optional 'jens@moenig.org', // optional
'last_changed': 'last_changed':
'2017-10-17', // this, too, will appear in the Translators tab '2017-10-20', // this, too, will appear in the Translators tab
// GUI // GUI
// control bar: // control bar:
@ -999,6 +999,8 @@ SnapTranslator.dict.de = {
'Setzen des letzten Blocks\nwiderrufen', 'Setzen des letzten Blocks\nwiderrufen',
'redrop': 'redrop':
'Wiederherstellen', 'Wiederherstellen',
'use the keyboard\nto enter blocks':
'Blöcke per Tastatur\neingeben',
'scripts pic...': 'scripts pic...':
'Bild aller Skripte...', 'Bild aller Skripte...',
'open a new window\nwith a picture of all scripts': 'open a new window\nwith a picture of all scripts':

Wyświetl plik

@ -42,7 +42,7 @@
/*global modules, contains*/ /*global modules, contains*/
modules.locale = '2017-October-17'; modules.locale = '2017-October-20';
// Global stuff // Global stuff
@ -160,7 +160,7 @@ SnapTranslator.dict.de = {
'translator_e-mail': 'translator_e-mail':
'jens@moenig.org', 'jens@moenig.org',
'last_changed': 'last_changed':
'2017-10-17' '2017-10-20'
}; };
SnapTranslator.dict.it = { SnapTranslator.dict.it = {

Wyświetl plik

@ -61,7 +61,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy,
isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph, isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph,
TableFrameMorph, ColorSlotMorph, isSnapObject*/ TableFrameMorph, ColorSlotMorph, isSnapObject*/
modules.threads = '2017-October-17'; modules.threads = '2017-October-20';
var ThreadManager; var ThreadManager;
var Process; var Process;
@ -2270,7 +2270,7 @@ Process.prototype.reportURL = function (url) {
var response; var response;
if (!this.httpRequest) { if (!this.httpRequest) {
// use the location protocol unless the user specifies otherwise // use the location protocol unless the user specifies otherwise
if (url.indexOf('//') < 0) { if (url.indexOf('//') < 0 || url.indexOf('//') > 8) {
if (location.protocol === 'file:') { if (location.protocol === 'file:') {
// allow requests from locally loaded sources // allow requests from locally loaded sources
url = 'https://' + url; url = 'https://' + url;