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

140 Коммитов

Автор SHA1 Сообщение Дата
David Humphrey e2f5c9da16 Fix #723, Always run unlocalize script, always build iframe API (#782)
* Always run unlocalize script when server stops, no matter version of npm

* Switch back to poststart, add grunt-newer for iframe API build on start

* Update README

* Force proper exit code for server
2017-06-15 13:15:33 -04:00
David Humphrey 5b624e0547 Fix mozilla/thimble.mozilla.org#889: Remove root folder thimble-project if exists (#789)
* Remove root folder thimble-project if exists

* Changed function name & added more comments

* Changed project.zip to thimble-project.zip

* Finish PR, make zip filename configurable, use download dir name for zip
2017-06-08 10:40:56 -04:00
Luke Pacholski 36c937912a Modal styling updates & modal events (#778)
* WIP modal updates

* Modal dialog updates

* Positioning updates for other modal types.

* Moved event emitters into better spots.
2017-05-31 09:02:07 -07:00
Vivek Kumar Singh 88fea5a466 updated
enhanced readability
2017-04-23 13:40:56 -04:00
Dang Khue Tran c45deb6e54 Fix mozilla/thimble.mozilla.org#1862 Localize before server starts and unlocalize when server stops (#680)
* localize before server starts and unlocalize when server stops

* add start-unlocalized option and update README.md

* grammar error

* Correct README.md and use npm script's hook

* Put a few items into code block in README.md
2017-04-17 11:19:25 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 9128fa4953 Re-applying "issue #1326: projectStats"
This reverts commit 5158dfb948.
2017-04-13 10:13:17 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 5158dfb948 Revert "issue #1326: projectStats" - callback is not a function error
This reverts commit bb4e401af9.
2017-04-12 22:43:04 -04:00
Dmytro Sych bb4e401af9 issue #1326: projectStats 2017-04-12 21:44:14 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca a805e5c183 Add Bramble events for service worker installation and updates 2017-04-11 20:08:42 -04:00
David Humphrey baf0249ab3 Support SVG as XML or Image, part of https://github.com/mozilla/thimble.mozilla.org/issues/1745 (#701)
* backend

* Fix a small bug

* Support live toggling SVG files as XML or Images
2017-04-11 15:33:41 -04:00
Christopher Singh 94b5ea66cb Updated README with missing Allow JS docs, and some spelling fixes (#697) 2017-04-08 15:41:07 -04:00
David Humphrey d2ce5494cb Fix #634: Simplify service worker caching (#682)
* Fix #634: simplify service worker caching

* Rework staticFileGlobs to ignore dist/nls, add runtimeCaching for nls, fonts

* Fix review issues, rework ?disableExtensions logic

* Compress dist/ and bramble-sw.js, call uglify after build-extensions
2017-04-07 11:28:13 -04:00
David Humphrey bb57da3067 Use requirejs to bundle/minify extensions, copy only what we need to dist/, part of #634 (#637)
* Rework extension loading to use a json file, drop ?enableExtensions support

* Close, but no cigar

* Working, all extensions built with requirejs, copied as small as possible

* Revert change to swPrecache I removed for debugging

* Don't copy unused SourceCodePro fonts to dist/styles/fonts
2017-04-06 15:07:16 -04:00
harkirat singh 2d99ca77e4 Added logic to control autocomplete (#678)
* Included new state in StateManager.js

* Added events to implement AutoComplete toggle

* Added start and stop functions in bramble

* Added allowAutoCorrect to main.js

* Fixes typos

* Added toggle functionality to JS and CSS hints

* Changed all variable names to Autocomplete

* Emitted a single event(autocompleteChange) when Hints Change

* Added note in README related to new getAutocomplete function

* Modified Remote Command Strings
2017-04-06 09:13:59 -04:00
cgsingh 12965774b3 Issue #1262 - autoclose tags
Renames and indents

fix

modified README

fixed typo in readme

Make things work

Modified README

Added setObject wrapper function

changes

merge conflict

small fix

Fixed issue where the initial state of auto close tags (true) did not
reflect in the editor

statemanager mistake

clean up

Fixed error with editor not reflecting auto close initially

Modified README and StateManager

Typo in README fixed

Modified UI.js and RemoteCommanderHandler.js as requested
2017-03-24 19:20:26 -04:00
Christopher Singh fb2e11b3b3 Two small typos in the README (#655) 2017-03-20 16:53:19 -04:00
Taguiar 73325264c1 Adding logic when file gets dirty or clean (#632)
* partialy adding logic when file gets dirty or clean

* modified README file

* indentation foxes to BranbleEvents.js

* cleaning som more indentation and comments

* indentation on line 55 in main.js

* cleaning worng indentation and changes to the logic when projects are saved
2017-03-20 12:03:58 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 265532221a Also add note for Windows users about using --no-optional to skip iltorb build. 2017-03-13 15:38:19 -04:00
timmoy 71970bddec Remember option for autoUpdate preference (#595)
Part of mozilla/thimble.mozilla.org#1633
2017-02-28 00:18:03 -05:00
Jerry Goguette f37c393c2f Ability to insert code snippets into files #1630 (#576)
* Added CodeSnippetsAdder Extension

* Fixed Spacing

* Renamed Extension and Fixed Spacing Issue

* Removed old extension

* Renamed extension from CodeSnippetsAdder to BrambleCodeSnippets

* Fixed Spacing

* Added and initialized BrambleCodeSnippets.js module

* Removed Extension

* Added new BrambleCodeSnippets.js module

* Removed BrambleCodeSnippets extension from default extensions list

* Fixed Spacing

* Changed getCurrentFullEditor to getFocusedEditor and Fixed spacing

* Updated README - new instance method (addCodeSnippet([options, callback]))

* Fixed spacing

* Update README.md

* Update README.md

* Update README.md
2017-02-09 13:46:24 -05:00
Gideon Thomas ba63dfc08d Trigger different events with different data for file vs. folder renames (#558)
* Trigger different events with different data for file vs. folder renames

* Review fixes
2016-07-13 11:59:27 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 01494023b8 Backend pieces of https://github.com/mozilla/thimble.mozilla.org/issues/1417 2016-04-07 15:13:18 -04:00
Gideon Thomas c63b352991 Include localized content in requirejs build step 2016-03-01 13:03:48 -05:00
Gideon Thomas 6dc813cea8 Update configuration to use master vs. bramble 2016-02-19 16:56:22 -05:00
Mike Kamermans a0ab1fa5b6 no more need to globally grunt all over the place
npm those grunts.
2016-01-18 15:57:22 -08:00
David Humphrey (:humph) david.humphrey@senecacollege.ca c032e6f2c1 Highlight line in editor when moving mouse over elements in preview 2015-12-04 11:34:05 -05:00
Luke Pacholski d5f101118e Fullscreen preview mode 2015-11-20 11:20:47 -08:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 41870938c1 Use proper FS abstraction when doing bramble.addNewFile() for Blob URL caching 2015-11-03 12:28:03 -05:00
Gideon Thomas 8bfe7fd815 Fix mozilla/thimble.webmaker.org#1002 - Add bramble-move-file extension for "Move To" functionality 2015-10-14 15:03:27 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca aec8897322 Fix CodeFolding to work better in Bramble, turn on by default to aid readability 2015-09-21 12:04:36 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 56bc849714 Brackets portion of https://github.com/mozilla/thimble.webmaker.org/issues/1031, better errors for failed fs operations 2015-09-02 17:56:47 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca e5d055d6da Fix Thimble Issue 861: Add Bramble.formatFileSystem() and autoRecoverFileSystem option 2015-08-27 14:08:44 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 3b43aba920 Update bramble.addNewFile() to take more options, replacing addNewFileWithContents 2015-08-26 11:21:12 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 3632ad619e Fix #347 - add bramble.export() for creating project.zip, an archive of entire fs 2015-08-11 11:59:14 -04:00
Mike Kamermans 27c64731cb Update README.md 2015-08-10 16:34:17 -07:00
Pomax 7fd9301b15 added an npm start, to make running a server easier 2015-08-07 14:35:12 -07:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 3ba51b4462 Fix https://github.com/mozilla/thimble.webmaker.org/issues/791 - enable WebPlatformDocs by default 2015-08-06 15:28:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca afaef4f1ca Add bramble.addNewFileWithContents() 2015-08-06 14:59:20 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 9c66e73896 Add bramble.getRootDir() so a client can determine the mount path 2015-08-06 10:14:15 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 119713f3c9 Support adding new files and folders from bramble, part of https://github.com/mozilla/thimble.webmaker.org/issues/723 2015-07-30 15:40:06 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 4677198ed6 Add bramble.showUploadFilesDialog() for https://github.com/mozilla/thimble.webmaker.org/issues/723 2015-07-30 12:35:27 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca b31163e3a7 Add special file handling for tutorial.html to Bramble client API
Add logic to turn tutorial view on/off

Add tutorial change event and state on bramble instance

Update README

Refactor tutorial logic into separate module, reduce reload frequency

Revert changes to StartupState

Fix readme, add tutorial.html to hosted.html per review

Stop postMessage on transport when tutorial is active
2015-07-24 14:41:48 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca e413f3d8eb Fix #389: Selfie taker not handling mount path properly 2015-07-23 12:15:05 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 5bf8a0cd13 Add backend support for word wrap - https://github.com/mozilla/thimble.webmaker.org/issues/648 2015-07-13 11:59:08 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 8e204d52b6 Allow SVG to be treated as an image or XML doc in ImageViewer, with extension to override 2015-07-06 10:49:56 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 614a955e80 Fix #372 - add optional callbacks for all remote bramble instance methods 2015-07-06 10:28:37 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 78bbefebc0 Remember state between sessions 2015-06-24 10:56:03 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca f89e9a3330 Remote MessageChannel filesystem working everywhere but Firefox
Trying to get Firefox to work, not there yet

Firefox working

Always call port.start() when using addEventListener

Everything working well for binary and utf8 data across browsers

Removed kamino.js, which we don't use for our MessageChannel shim.

Update README for hosted.html details

Use minified Filer in hosted.js

Use transferable, except in Blink

Add test for safe transfer of ArrayBuffer over MessageChannel (buggy in Chrome, possibly IE, Safari)

Fixes for jshint

Add fs.unlink and fs.rmdir, fix use of stats.isDirectory()

Rework remote callbacks for watch events

Go back to async blob url management

Remove debugger statement in BlobUtils

Break up BracketsFiler into RemoteFiler for circular ref fix (Path loading still wrong), mostly working

Working

Fix ownership of Path and Buffer, move to FilerUtils.js

Cache CSS files

Fix circular ref between BlobUtils and Handlers, move caching to FilerFileSystem

Fix small typos

Go back to async blob url management

Working iframe api

Make URL configurable, default to prod

Pass provider to Filer correctly

Add remote command layer

JSHint fixes after rebase

Hook-up mobile and desktop preview modes

Add stand-alone build step for bramble iframe api

Fix jshint for almond.js

Add some other common methods, add async handling for focus change

s/createInstance/getInstance/

Added docs to README on iframe api

Fixup styling in README

Update README for fs vs. fs()

Add showStatusbar() and hideStatusbar() with statusbar off by default

Fix review issues: option for using location.search from host, removed mime arg in HTMLRewriter

Don't try to minify node_modules in extensions/extra (breaking Jordan's build with MDNDocs)

Fix grunt/jshint/requirejs bugs related to build-browser, add loading spinner

Fix to README for dist/ method of using Bramble

Fix DOMContentLoaded issue and document.readyState

API state and events working

Updated docs, extra getters on API

Remove reference to passing provider to getInstance()

Reworking API for .load() and .mount(), sort of working

Everything working with load() and mount()

Update docs for load() and mount()

Fix typos in readme

Update docs, change readyState management, deal with rel/abs paths to mount()

Fix typo, update hosted.html to work with new api

Show sidebar if project file count > 1

Add fileChange, fileRename, and fileDelete events on bramble

Make sure first-pane has focus on startup, so text size +/- commands work

Missing semicolon

Get rid of callbacks on Bramble.mount()

Fix startup order so secondPaneWidth is known on ready, fix typo in README

jshint fix
2015-06-17 15:22:52 -04:00
JordanTheriault d7b6e669ba Added MDN docs extension 2015-06-04 16:20:15 -04:00
Gideon Thomas 7de9bb36ca Update default/extra extension list in docs 2015-05-30 12:59:07 -04:00