Граф коммитов

56 Коммитов

Автор SHA1 Сообщение Дата
Michal Moskal 790b6f0eca record creation in tutorial fixes #115 2015-04-03 13:04:05 -07:00
Jonathan Protzenko ca8abcbdf3 Use the blockly .d.ts. 2015-04-03 11:04:08 -07:00
Jonathan Protzenko 514dc5e08e Write a (partial) typescript definition for blockly.
This will make the task of translating from Blockly to TouchDevelop easier.
2015-04-03 11:04:05 -07:00
Jonathan Protzenko 1c5cdaec19 Blockly.
- Better toolbox.
- Get rid of scrollbars.
2015-04-02 14:26:04 -07:00
Jonathan Protzenko 76b14c51e1 External editors.
A .gitignore for local checkouts of blockly.
2015-04-02 14:26:04 -07:00
Jonathan Protzenko 199c1ac477 External editor.
Hook up the cross-iframe messaging to Michal's compilation function, so that the
"flash" button now does... something.
2015-04-01 17:21:08 -07:00
Jonathan Protzenko 924cc93a00 External editors.
- Fix a few dependencies in the Jakefile.
- Add metadata support. Currently only offering script name and script
description.
  * Forward the metadata properly to the backend. Reflect it in the local
    storage.
  * Update the messaging protocol accordingly.
  * Add some basic UI for that purpose in the Blockly editor.
  * Merge that data too.
2015-04-01 15:32:15 -07:00
Peli de Halleux f4464819ab more twitter/facebook changes 2015-04-01 11:00:33 -07:00
Jonathan Protzenko 8f094f93c5 Fix black blockly background on IE. 2015-03-31 14:56:17 -07:00
Jonathan Protzenko 48bde399e4 The cloud is dead, long live the cloud! 2015-03-30 18:18:19 -07:00
Jonathan Protzenko 9edb7ae456 External editors.
- Do the right dance so that they can be loaded both locally and in the cloud.
2015-03-30 18:15:22 -07:00
Jonathan Protzenko f11de9afbb External editor.
Add "quit" command to Ace.
2015-03-30 17:50:57 -07:00
Jonathan Protzenko 14651d7976 External editor.
- Implement a mock compilation API.
2015-03-30 15:59:24 -07:00
Jonathan Protzenko 835e9c423c External editor.
Merge, again.
- Polish the UI interactions in the blockly example.
- Fix a bug where a merge was needed but the data to perform it was not yet
  downloaded from the cloud.
- Don't do needless saves in Blockly (this was ruining my testing).
2015-03-27 17:52:58 -07:00
Jonathan Protzenko 4ca879f0fb Fix a tricky race issue in cloud storage.
The [PostUserInstalledResponse] now contains a [retry] field that tells if the
client code should retry a save operation; that is, [!retry] means that by the
time the client code examines the [PostUserInstalledResponse], the cloud
contains the same version that's available locally.

Currently, only the Blockly demo editor leverages this.
2015-03-27 16:33:08 -07:00
Jonathan Protzenko a86de5f6d5 Switch [blockly-main.ts] to [--noImplicitAny]. 2015-03-27 14:03:55 -07:00
Jonathan Protzenko 1a6e1b877e Blockly fixes.
Work around a small bug in Blockly so that we don't do an initial save of the
script.
2015-03-27 11:59:42 -07:00
Jonathan Protzenko fea4b4fe1b Refresh blockly. 2015-03-27 11:59:30 -07:00
Jonathan Protzenko f0657eaece Fix Don't fail if we can't load the blockly script 2015-03-26 10:13:53 -07:00
Jonathan Protzenko e7b1efda73 External editors.
- Better, more fancy UI for the blockly example.
2015-03-25 18:06:16 -07:00
Jonathan Protzenko da0e0d75d3 External editors.
- More UI polish for tomorrow's demo.
- Reverted the control-flow for quit (the external editor now asks to quit).
2015-03-25 17:49:16 -07:00
Jonathan Protzenko a33a386bd3 External editors.
- Basic user interface for the merge functionality.
- Cleanup of the code.
- Auto-save at regular intervals.
- Report more status in the "toolbar".
2015-03-25 16:52:16 -07:00
Jonathan Protzenko d980959e9f External editor -- merges
- Rework the notifications
- Extract more information about what happened in the merge
- Reflect that in the blockly UI (prototype)
2015-03-25 13:13:36 -07:00
Jonathan Protzenko 0b049fde11 Fix try/catch in the ace example too. 2015-03-25 10:22:43 -07:00
Jonathan Protzenko 568f43c6bc Merge branch 'master' of github.com:Microsoft/TouchDevelop 2015-03-25 10:20:16 -07:00
Peli de Halleux a3d4ca2c89 smaller editor font on large screens 2015-03-24 16:00:15 -07:00
Jonathan Protzenko 40657495bd External editors.
- Notify external editors about local/cloud save events.
2015-03-24 14:52:03 -07:00
Jonathan Protzenko 32585fe883 Facilitate debugging.
- Editor name appears in script name.
- Don't try/catch JSON.parse.
2015-03-24 11:58:20 -07:00
Jonathan Protzenko a7c6899d88 Add some README's for external editors. 2015-03-24 11:48:19 -07:00
Jonathan Protzenko 49de70c056 Blockly. 2015-03-23 17:33:37 -07:00
Jonathan Protzenko 30a6a923f1 License update. 2015-03-18 17:01:39 -07:00
Jonathan Protzenko 9f65191b42 First attempt at implementing merge for external editors.
(This code does something. Whether it's the right thing is doubtful.)
2015-03-17 17:29:44 -07:00
Jonathan Protzenko 628c928cc0 Properly separate script text / extra state.
The extra state is now stored in the [scriptVersionInCloud] field. (This is not
what it's made for, but in the "lite cloud" scenario, it's sitting there
unused, so...).
2015-03-17 14:10:50 -07:00
Jonathan Protzenko fb52671c14 Merge remote-tracking branch 'origin/master' into external 2015-03-17 11:56:41 -07:00
Peli de Halleux e5e7aa191c display tutorial progress in script tile 2015-03-12 08:01:07 -07:00
Jonathan Protzenko 64d4b091cb Use proper origins for postMessage. 2015-03-10 17:10:22 -07:00
Jonathan Protzenko 2c68b724cd (External editor.) Save a script in the cloud.
Hook up the communication channel to the cloud storage so that a script can be
retrieved from the cloud / saved to the cloud.
2015-03-10 14:47:55 -07:00
Jonathan Protzenko 206fd65e1f (External editors.) Send the script text back and forth. 2015-03-10 14:17:47 -07:00
Jonathan Protzenko 0ef8e5c879 Further work on the external editor prototype.
Setup two-way communication with listeners on the TouchDevelop side too.
2015-03-10 10:44:34 -07:00
Jonathan Protzenko 651b5e121c Fix Jakefile dependency. 2015-03-09 17:00:35 -07:00
Jonathan Protzenko 3a2fef9e17 More work towards external editors.
- Create a separate, shared ts file for the communication protocol.
- Create a sample Ace "main.ts" file that can receive messages.
- Initiate the communication protocol on the TouchDevelop side.

Please run `tsd reinstall`!
2015-03-09 17:00:35 -07:00
Jonathan Protzenko cf25b76c6c Import a copy of Ace into the tree to play with external editors. 2015-03-09 17:00:34 -07:00
Jonathan Protzenko 09387f559d Revert "Import a copy of Ace into the tree to play with external editors."
This reverts commit e5393f26bf.
2015-03-09 16:59:17 -07:00
Jonathan Protzenko 9da68bd047 Revert "More work towards external editors."
This reverts commit 693aa9267b.
2015-03-09 16:59:06 -07:00
Jonathan Protzenko 693aa9267b More work towards external editors.
- Create a separate, shared ts file for the communication protocol.
- Create a sample Ace "main.ts" file that can receive messages.
- Initiate the communication protocol on the TouchDevelop side.

Please run `tsd reinstall`!
2015-03-09 16:34:57 -07:00
Jonathan Protzenko e5393f26bf Import a copy of Ace into the tree to play with external editors. 2015-03-09 16:34:57 -07:00
Siddhartha Sharma 7eed2a0a9d Update error.html 2015-03-08 04:23:27 +05:30
Peli de Halleux 039e8db2dc fixes #60: app restart shows a dialog even when the script is not published 2015-02-27 10:10:58 -08:00
Jonathan Protzenko 3ca1f6e30f Remove extra padding in collaboration mode. Fixes #55 2015-02-26 15:24:28 -08:00
Peli de Halleux 89d749f651 clickable crash in server logs 2015-02-24 15:22:45 -08:00