Prototypes for add-ons. Gateways from browser to Webmaker.
Перейти к файлу
Atul Varma 7531d177cc allow image to be dragged into contenteditable areas. 2015-02-22 10:16:44 -05:00
addon rebuild xpi. 2015-02-19 19:10:54 -05:00
bin added bin/make-color-hash.js. 2014-12-25 17:12:20 -05:00
embedded add embedAPI.animateImageIntoCanvas(). 2015-02-12 17:17:48 -05:00
htmlshot put a CORS header on htmlshot's /shot endpoint. 2015-02-13 06:27:09 -05:00
src allow image to be dragged into contenteditable areas. 2015-02-22 10:16:44 -05:00
vendor add vendor/png-baker.js. 2015-02-13 08:49:21 -05:00
.gitignore added addon-sdk-* to .gitignore. 2015-02-10 11:55:00 -05:00
README.md migrating addon repo to mozilla from xmatthewx 2015-02-19 18:55:16 -05:00
filepicker-spinner.gif make upload.html look like filepicker background 2015-02-18 12:20:07 -05:00
index.html font size slider style changes. fixes #49. 2015-02-19 12:55:46 -05:00
main.js wait for initial firebase sync before initializing app. 2015-02-20 12:01:10 -05:00
package.json migrating addon repo to mozilla from xmatthewx 2015-02-19 18:55:16 -05:00
reference.html adding hover state 2015-02-09 15:06:57 -05:00
require-config.js disable webmaker in addon 2015-02-19 08:20:28 -05:00
upload.html make status text visible on upload.html again. 2015-02-18 12:20:48 -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.