Wykres commitów

240 Commity (8a8889efd6b39386fcea6cf6f0fc80f507847a27)

Autor SHA1 Wiadomość Data
Michael Ball b9303422ca Delete baseURL code b/c it is not needed
By making all loads relative to snap.html we eliminated the need for
such a function.
2015-10-27 03:10:30 -07:00
Michael Ball 35c1826be3 Fixed the URI encoding partially and re-ordered the canvas processing 2015-10-27 00:57:30 -07:00
Michael Ball fbd11917b9 Exporting Projects works, encoding URI not needed. 2015-10-27 00:36:55 -07:00
Michael Ball cce37d8172 Use resourceURL() for items in help/ 2015-10-07 23:32:52 -07:00
Michael Ball 5452c2bfa7 DRY out creation of Costumes/Sounds/etc submenus 2015-10-07 23:21:20 -07:00
Michael Ball f9d62c1b7f Refactor loading Example projects to be consistent. 2015-10-07 04:49:05 -07:00
Jens Mönig 72bf4cfb8c New feature: Remove Unused Global Blocks
* BYOB, Objects, GUI: New “Remove Unused Global Blocks” Feature
* GUI, Lists: “Export Project Summary” improvements:
  - show variable values as watcher pics
  - expand list watcher pics to show their complete contents (1. level)
  - url for shared projects
  - table of contents
  - basic support for sprite nesting and inheritance
  - make the summary “browsable” instead of editable
  - outline around sprite / stage snapshots
  - experimental hidden (shift-click) “drop-shadows” option
* GUI: Rearrange project menu, only show global blocks-related ops if
there are any
* GUI: Remove URL location.hash information when loading a new project
* Store: Fix deserialization support for projects using inheritance
* German translation update
2015-10-07 13:38:19 +02:00
Michael Ball c6b43bee12 Fix #867; All media has an index file that is being used to load files 2015-10-07 04:23:30 -07:00
Michael Ball b2c6b43192 Cleanup LIBRARIES; Load Libraries using refactored code 2015-10-07 03:27:55 -07:00
Michael Ball 2b69b91a4a Delete the getURLsSbeOrRelative(url) function
This function was only used for tools.xml, and didnt even do its job...
As of this writing, it simply prepended the `baseURL` variable, which is
determined by the Snap! server, not s.b.e.

If we want to have s.b.e as a permanent fallback source we should re-implement
this in a way that is used for all Snap! media.
2015-10-07 02:21:35 -07:00
Michael Ball 36e0dae11d Start Refactoring of Resource Loading; Fix Typo in LIBRARIES
This fixes a small typo in the LIBRARIES file, so that the leap motion lib will
load correctly.

This renames the getCostumesList() method to getMediaList() because its used for
Costumes, Backgrounds, Sounds, and soon libraries.
2015-10-07 02:16:52 -07:00
Jens Mönig 2172084dae New feature: Export Project Summary
* opens a new browser tab on an editable HTML document containing an
overview of the current project which can be further processed (saved,
edited, printed, turned into a PDF) to create a project report.

* now, when you export script pics attached comments get included.

* also new: Support to detect and react to “any” keystroke (hat and
sensing blocks)
2015-10-02 12:39:41 +02:00
Michael Ball 0e84b360e1 Fix #915 so that share URLs actually work. 2015-09-07 19:49:48 -07:00
Jens Mönig 4360e981d1 stop keyboard editing blocks when selecting another sprite 2015-07-28 16:40:12 +02:00
Jens Mönig ecc7f438b3 update version and history 2015-07-28 10:54:27 +02:00
Michael Ball 958ca1a277 Fix the loading of URLs to be consistent.
`baseURL` should always end with a trailing /.

Sorry for not catching this!
2015-07-28 01:40:36 -07:00
Jens Mönig 310c80c091 fix url for libraries
thanks, Brian, for catching this one!
2015-07-27 17:35:14 +02:00
Jens Mönig e8172e83dd update history 2015-07-27 01:12:12 +02:00
Jens Mönig 0a1f2be7a6 stage resizing handle
and improved stage resizing animations
2015-07-27 01:00:06 +02:00
Jens Mönig 7994d6c0ca Prototypal inheritance for sprite-local variables 2015-07-27 00:35:36 +02:00
Jens Mönig 76d9d6bd49 keyboard editing support
activate:
      - shift + click on a scripting pane's background
      - shift + click on any block
      - shift + enter in the IDE's edit mode

    stop editing:
      - left-click on scripting pane's background
      - esc

    navigate among scripts:
      - tab: next script
      - backtab (shift + tab): last script

    start editing a new script:
      - shift + enter

    navigate among commands within a script:
      - down arrow: next command
      - up arrow: last command

    navigate among all elements within a script:
      - right arrow: next element (block or input)
      - left arrow: last element

    move the currently edited script (stack of blocks):
      - shift + arrow keys (left, right, up, down)

    editing scripts:

      - backspace:
        * delete currently focused reporter
        * delete command above current insertion mark (blinking)
        * collapse currently focused variadic input by one element

      - enter:
        * edit currently focused input slot
        * expand currently focused variadic input by one element

      - space:
        * activate currently focused input slot's pull-down menu, if any
        * show a menu of reachable variables for the focused input or
reporter

      - any other key:
        start searching for insertable matching blocks

      - in menus triggered by this feature:
        * navigate with up / down arrow keys
        * trigger selection with enter
        * cancel menu with esc

      - in the search bar triggered b this feature:
        * keep typing / deleting to narrow and update matches
        * navigate among shown matches with up / down arrow keys
        * insert selected match at the focus' position with enter
        * cancel searching and inserting with esc

    running the currently edited script:
        * shift+ctrl+enter simulates clicking the edited script with
the mouse
2015-07-26 23:37:10 +02:00
Jens Mönig 536f92df70 Merge pull request #866 from cycomachead/url-fix
Fix URL bug in #821, and fix #864
2015-07-26 21:31:15 +02:00
Michael Ball 1fc6cd7910 Fix URL bug in #821, and fix #864 2015-07-10 04:09:40 -07:00
Michael Ball 17caaa16f0 Fix a rather stupid and glaring typo in project sharing 2015-07-06 00:11:56 -07:00
jmoenig de82d373be add indentation
again to please old.jslint.com :-)
2015-06-25 16:35:00 +02:00
Jens Mönig 253d800b42 Merge pull request #624 from cycomachead/shared-url
Set location.hash to cloud URLs on project shares
2015-06-25 16:32:45 +02:00
Jens Mönig c701598df1 Merge pull request #606 from Gubolin/issue_190
show an error message if project cannot be loaded (fix #190)
2015-06-25 15:50:26 +02:00
jmoenig 87c9655335 add some spaces
to satisfy old.jslint.com :-)
2015-06-25 15:48:26 +02:00
Jens Mönig 4755fe22ac Merge pull request #821 from show0k/master
Remove harcoded url in gui.js (fix #814)
2015-06-25 15:43:52 +02:00
Jens Mönig c8ef53f9a9 Merge pull request #805 from brollb/master
Fixed typo in Process definition
2015-06-25 15:37:55 +02:00
jmoenig 8a7bc380a8 wrap credits tab in "about" Dialog
to accommodate for @nathan ’s abundant contributions :-)
2015-06-25 15:20:05 +02:00
jmoenig 4c21c9f187 Revert to "new" for object creation
and prepare for new release
2015-06-25 15:11:51 +02:00
Nathan Dinsmore 87c2503571 Use Object.create(…) instead of new …() for inheritance (faster) 2015-06-17 17:11:40 -04:00
Théo Segonds 1b2e0aded4 Remove hardcoded URLs in gui.js. This fix #814 2015-06-07 16:57:02 +02:00
Brian Broll 2cbba6c762 Fixed #809 2015-05-23 17:09:45 -05:00
Jens Mönig 6b19caf75d Fix encoding for exported sprites (esp. comments) 2015-05-18 12:23:57 +02:00
Jens Mönig 8e92c65cae Release! 2015-05-01 12:24:52 -04:00
Jens Mönig 4cd3488e60 formatting tweaks for JSLint’s benefit 2015-05-01 12:11:07 -04:00
Jens Mönig 848773073a Merge pull request #768 from bromagosa/contrib
new parameters to allow embedding projects
2015-05-01 12:05:42 -04:00
Jens Mönig 052a3e07b3 hide “save to disk” option behind shift-click again (has issues in Chrome) 2015-05-01 12:00:56 -04:00
Bernat Romagosa 30caffbf02 new parameters to allow embedding projects 2015-04-10 13:18:03 +02:00
Jens Mönig fdd2ecf7d9 switch from beta to release candidate 2015-03-15 15:01:25 +01:00
Jens Mönig 31ea6f6030 Only enable input caching for blocks 2015-03-09 07:39:51 +01:00
Jens Mönig ee88f7ad39 Cache inputs - accelerate recursive reporters
and warped / turbo recursive commands by up to 40%
2015-02-28 05:44:59 -08:00
jmoenig e6dcf07b3d Update German translation 2015-02-23 14:56:10 +01:00
jmoenig 662a743f4e Make “project data in URLs” a hidden dev option
(prevent long urls per default)
2015-02-20 15:01:43 +01:00
jmoenig 116933ddab Un-hide “Save to disk” feature
(currently supported by both Chrome and Firefox, but not by Safari)
2015-02-20 12:49:18 +01:00
jmoenig e45562fc53 Added url switch #cloud: to open a shared project in edit mode 2015-02-06 11:29:46 +01:00
jmoenig 386ff33895 Fix Zoom Dialog’s sample background in “flat” design 2015-01-21 12:26:54 +01:00
jmoenig fee92b65f2 Generate ScriptsPaneTexture programmatically 2015-01-21 12:18:46 +01:00
jmoenig 4a3cf0aa3b fixed #680 2015-01-13 08:37:33 +01:00
jmoenig 667193b9f0 Force Chrome to show GUI messages
add additional yields to nextSteps() to work around a bug recently
introduced to Chrome (other browsers don’t need this kludge). Remember
to take those yields out again when and if Chrome (ever) fixes this
(which, for all I know, may be never)
2015-01-12 13:05:14 +01:00
jmoenig 50e84f8890 Check project for compatibility
notify users of potential incompatibilities when opening projects
created in other forks (e.g. BeetleBlocks)
2015-01-12 10:15:56 +01:00
jmoenig 060643c161 fix typo & update history 2014-12-04 15:54:52 +01:00
Michael Ball 2b2ff77823 Really fix setting the cloud as default save location when logged in 2014-12-04 03:01:40 -08:00
jmoenig d393d13b37 updated history 2014-12-01 11:55:02 +01:00
Michael Ball 919b72e3d4 Fix to set SnapCloud variable before the IDE morph is built.
This makes it so that #627 works as intended, correctly fixing #502
2014-11-30 21:56:33 -08:00
Michael Ball e892ea80cb Shared URLs: remove call to .siblings()
Project dialog morphs reference `ide` directly instead of using a function call
2014-11-24 15:23:40 -08:00
Michael Ball 94f94467b5 Merge branch 'master' of git://github.com/jmoenig/Snap--Build-Your-Own-Blocks into shared-url
* 'master' of git://github.com/jmoenig/Snap--Build-Your-Own-Blocks: (34 commits)
  tail-call-elimination for reporters - experiment
  allow recursive reporters to be stopped by user
  updated history
  fixed #131
  Fixed #34
  Fixed #644
  Fixed #372
  Fixed #416
  Fixed #318
  Fix “stop this block” primitive for tail-call-elimination
  Fix "stop this block"’s lexical awareness
  Add a new Favicon to Snap! (Clearer Lambda)
  integrate translation update
  push morphic.js version date
  fix ‘line’ option in ‘split’ block for Windows files
  integrate percent sign fix for JSLint
  Updated the “About” Dialog
  renamed Process::callback to "onComplete"
  Fixed #364 avoid “freezing” when calling LAUNCH on empty ring
  Fixed #642, avoid “freezing” when calling CONS on non-list/null
  ...
2014-11-24 15:13:51 -08:00
jmoenig cbe3d6fe18 Updated the “About” Dialog
with a mention of support from CDG (SAP Labs)
2014-11-20 14:55:31 +01:00
Michael Ball 0dcca0606c Set Default Save location to Cloud on Snap! load
When Snap! is loaded, Snap! will now check whether a user is logged in
(via the presence of `SnapCloud.username`) and if so, the default save
location will be the cloud.
2014-10-27 18:19:29 -07:00
Michael Ball 9e5fb9a4cb Set location.hash to cloud URLs on project shares
This will make it much easier to get the URL for a shared project.
It also removes the # from the URL when the open project is unshared."
2014-10-25 02:03:12 -07:00
jmoenig 2ae675132a fixed #604. Thanks, @Gubolin! 2014-10-06 10:34:56 +02:00
Gubolin 5977686aa2 show an error message if project cannot be loaded (fix #190) 2014-10-04 13:47:06 +02:00
jmoenig 45e1f3193b New feature - minimal stage mode (shift-click on small-stage button) 2014-10-02 10:31:09 +02:00
jmoenig ba58b0e5b6 updated history 2014-10-01 13:52:17 +02:00
Manuel Menezes de Sequeira 106cd56128 add localization to default costume name 2014-10-01 09:25:01 +01:00
jmoenig 94c44902e1 fixed #585
Thanks, Michael, for reporting this!
2014-09-22 15:32:36 +02:00
jmoenig 9f7028dbf9 propagate DELETE to nested sprite parts 2014-07-30 12:39:33 +02:00
jmoenig bef0e7a790 export and import nested sprites 2014-07-29 12:03:06 +02:00
jmoenig b451a08812 duplicate and clone nested sprites 2014-07-29 10:50:36 +02:00
jmoenig f72c133a49 updated credits 2014-07-25 14:46:27 +02:00
jmoenig 75d9adbfe2 improve unique sprite- and costume names 2014-07-24 11:40:36 +02:00
jmoenig 0e02a5ff60 ensure unique costume names when copying costumes via d&d 2014-07-18 15:27:28 +02:00
jmoenig 7328bfb034 ensure unique names when renaming costumes 2014-07-18 15:21:19 +02:00
jmoenig 1076694d9c ensure unique names for costumes created by the paint editor 2014-07-18 14:54:29 +02:00
jmoenig c1d5910f33 list op fixes, thanks, Brian! 2014-07-18 07:44:26 +02:00
jmoenig d88da36762 ensure unique names for imported costumes
Use new mechanism for unique costume names on imported costumes
2014-07-17 15:11:05 +02:00
Jens Mönig 4fa53772f5 Merge pull request #509 from jmoenig/bh
Bh
2014-07-11 18:08:55 +02:00
jmoenig c4968843e4 fixed #508 (don’t popup empty menus)
thanks, @cycomached!
2014-07-11 17:59:16 +02:00
brianharvey ce7f681c55 Improve sbe-or-relative to generalize
New method GetURLsbeOrRelative(url) takes a relative URL and tries it first on s.b.e and if that fails as a relative url.
2014-07-11 08:52:30 -07:00
jmoenig 98772028bb limit persistent blocks zoom to 12 2014-07-11 17:32:12 +02:00
brianharvey c965d45259 Allow loading tools.xml from mirror *or* s.b.e
Using full http://s.b.e/snapsource/tools.xml disallows local repository.
Using relative tools.xml disallows running from local disk but getting tools from s.b.e.
So we try both.
2014-07-11 08:28:48 -07:00
jmoenig a33400d6d2 fixed #507 (limit persistent block zoom to 12x)
thanks, @cycomachead !
2014-07-11 17:23:43 +02:00
jmoenig f27e72e2b2 fixed #412 (incomplete sprite-removal) 2014-07-11 17:14:35 +02:00
brianharvey 7ac63a5ccd Merge pull request #494 from marwahaha/tools-xml
tools now pointing locally
2014-07-10 05:36:25 -07:00
jmoenig 92c5c8bedf add keyboard shortcut for “new project”: ctr-n
note: some browsers (actually, most ^^) override this before Snap gets
a chance to do its thing :-(
2014-07-08 15:27:25 +02:00
Jens Mönig ac38df35e9 Merge pull request #487 from cs10/kunal/scrolling
fixed scrolling glitch in palette
2014-07-08 13:29:46 +02:00
jmoenig 81745502e7 show username in ‘logout’ entry of cloud menu 2014-07-08 13:26:42 +02:00
Kunal Marwaha 52df842dd1 tools now pointing locally 2014-07-03 07:14:42 -07:00
Kunal Marwaha 89c0dfd790 actually no cached image needs to scroll 2014-06-25 04:30:17 -07:00
Kunal Marwaha ed5eccccae reason for scroll issue: only non-cached palettes needed to be scrolled 2014-06-25 04:15:58 -07:00
Kunal Marwaha 5db42a9889 fixed scrolling 2014-06-24 21:36:54 -07:00
jmoenig e16f008ee8 prepare release 2014-06-23 13:30:19 +02:00
Kunal Marwaha 7e5925de3d added drawnew 2014-06-22 02:56:11 -07:00
jmoenig ac39877b9c German translation update, tweaks 2014-06-04 13:48:43 +02:00
jmoenig bae41fde28 GUI: new (hidden) feature: “Export all scripts as pic”
(including custom block refs)
2014-06-04 12:40:44 +02:00
jmoenig 6a4b4afbe9 Show last-changed-timestamp of cloud projects
display a tool-tip “bubble” in the “Open-Project” dialog next to the
preview field
2014-05-26 10:46:00 +02:00
jmoenig a1b9d3e396 Search Blocks feature, keyboard shortcuts
Thanks, Kyle, for designing and architecting the search blocks feature!!
2014-05-20 09:43:31 +02:00
jmoenig 03b69769be GUI: Use new vector prompter for stage dimensions
also take out previous experimental code and make this new feature an
official one
2014-02-13 17:50:43 +01:00