Caret/js/ui
Thomas Wilburn 8cc524a53e Extra safeguards.
Project manager calls preventDefault() on "links"
background.js rejects messages without a command property.
2014-01-12 10:47:08 -08:00
..
contextMenus.js Organized module locations. Fixed a context menu bug. 2013-12-04 09:24:04 -08:00
dialog.js Better async command patterns, fixes for loading command list. 2013-12-16 11:53:26 -08:00
keys.js Many key fixes: mainly that Ace key configs are reloaded from scratch on each init:restart, so that 2013-12-20 09:01:53 -08:00
menus.js Many key fixes: mainly that Ace key configs are reloaded from scratch on each init:restart, so that 2013-12-20 09:01:53 -08:00
palette.js Add commands.json for #93 2013-12-16 08:51:56 -08:00
projectManager.js Extra safeguards. 2014-01-12 10:47:08 -08:00
readme.md Add module readme files. 2013-12-23 12:25:43 -08:00
statusbar.js Add commands for status messages. 2013-12-04 14:50:01 -08:00

Module description - ui/*

contextMenus.js

Simplifies the process of adding Chrome context menus to page links, including adding a basic REST-style router for getting parameters out of the link URL. Exposes a register method for setting up the actual menu and its callback, and a makeURL method to help with making route URLs that correctly start with the app's extension ID.

dialog.js

Exposes a function that will pop up a dialog box, since Chrome apps are not allowed to use alert(), confirm(), or prompt(). Reasonably customizable.

keys.js

Reads the local keyboard settings and registers on the document body to convert them into commands. Also handles unbinding any Ace commands that would otherwise collide. Exposes no external methods or data.

menus.js

Generates the menu bar from the local menu settings file. Exposes no external methods or data at this time.

palette.js

Sets up the command palette and returns it as a singleton for any other modules that might want to trigger it or alter its data, although it is recommended that other modules simply send palette:* commands instead.

projectManager.js

Tracks any current project settings, files, and navigable directories. Exposes the manager object to dependent modules, primarily so that the palette can get the list of files for Go To File.

statusbar.js

Sets the status text, and returns an interface with setMessage(), clearMessage(), and toast() methods. It's recommended to use the status:* commands instead of requiring this module directly.