Prototypes for add-ons. Gateways from browser to Webmaker.
Перейти к файлу
Atul Varma 684038a948 added src/movable-text/color-modal.jsx. 2015-02-12 12:22:20 -05:00
addon rebuild addon. 2015-02-11 22:13:07 -05:00
bin added bin/make-color-hash.js. 2014-12-25 17:12:20 -05:00
embedded /embedded/ passes querystring on to sidebar widget. 2015-01-16 11:43:08 -05:00
htmlshot C:/Users/Atul/AppData/Local/GitHub/PortableGit_015aa71ef18c047ce8509ffb2f9e4bb0e3e73f13/shot is a POST endpoint instead of GET. 2015-01-08 17:00:41 -05:00
src added src/movable-text/color-modal.jsx. 2015-02-12 12:22:20 -05:00
vendor remove vendor/bootstrap. 2015-01-15 16:26:22 -05:00
.gitignore added addon-sdk-* to .gitignore. 2015-02-10 11:55:00 -05:00
README.md link to firefox add-on XPI in readme 2015-02-10 15:43:50 -05:00
index.html added src/movable-text/color-modal.jsx. 2015-02-12 12:22:20 -05:00
main.js rm DEBUG_AUTOSELECT_FIRST_ITEM, add _FORCE_BIN_NAME, _ONREADY_HOOK. 2015-02-11 16:15:38 -05:00
package.json add repository and bugs info to package.json 2015-01-07 10:24:26 -05:00
reference.html adding hover state 2015-02-09 15:06:57 -05:00
require-config.js get rid of window.FONT_WHITELIST. 2015-02-12 09:49:55 -05:00

README.md

webmaker-addons

Prototypes for add-ons that serve as a gateway from browser to Webmaker.

Quick Start

Working on the project just requires a web server that serves static files from the root of the repository. If you don't have one, try python -m SimpleHTTPServer, or if you like node use http-server.

If you want to develop offline, add ?bin=offline to the end of your URL. This will prevent the app from syncing with Firebase. That said, some things that require a network connection, like Google Fonts, won't work.

Configuration

A number of configuration defaults are contained in require-config.js. If you want to change these, make a file alongside it called require-config.local.js. Any changes you make to configuration variables/objects in this file will take effect before the app initializes.

HTML Screenshot Service

An HTML screenshot service used to render a user's creation to a PNG is located in the htmlshot directory. See htmlshot/README.md for more details.

Firefox Add-on

An experimental Firefox add-on that embeds this tool in a sidebar is located in the addon directory.

To develop on it, install the Add-on SDK, activate it, and run the following from the root directory of this repository:

export WEBMAKER_ADDON_IFRAME_URL=http://localhost:8080/
cd addon
cfx run

The above assumes your static web server is running on port 8080. If it's not, change WEBMAKER_ADDON_IFRAME_URL accordingly.

You can also run the add-on's test suite with cfx test.