Table of contents generated with markdown-toc
This repo is for Gandi Developer who wants make and test their own extensions.
Extensions in this repository are licensed under LGPL-2.1 by default, but certain extensions may have different licenses (such as extensions ported from TurboWarp for which we are grateful for their contributions).
There are two ways to develop and test your extensions.
You can build your blocks and test them.
You can use all javascript capacity to do what you want.
There only have one limit: normal remote extension will be running in a sandbox and unable to access vm or runtime utilities.
As a CCW collaborator, your can push code into this repo.
Extensions in this repo will have full access to vm and runtime utilities allows you build advanced block for all CCW Creator.
When your complete testing,you can apply for publish extensions to CCW Extension Library. All CCW Creator can use it in their project.
- fork this repo and submit your PR。
.extensions/example/normal-ext.js
.extensions/example/ccw-approved-ext.js
if your work on a normal remote extension, you can upload your extension js file to any http server and make sure it can be accessed in open network.
when complete above moves, use below url in browser(recommend Chrome)
https://www.ccw.site/gandi?gext=${your_file_url}
or
https://cocrea.world/gandi?gext=${your_file_url}
For example
https://www.ccw.site/gandi?gext=https://ccw-user-extension.ccw.site/extensions/example/normal-ext.js
Extensions will be added to the bottom of block menu if there is no error in your code.
Push code and a bot will deploy your commit to a http server automatically. The URL is like below.
The automatic deploy url format is like below
https://ccw-user-extension.ccw.site/extensions/${your_folder}/${jsFile}
When completing the above moves, use the URL below in your browser(recommend Chrome).
https://www.ccw.site/gandi?gext=https://ccw-user-extension.ccw.site/extensions/${your_folder}/${jsFile}
For example
https://www.ccw.site/gandi?gext=https://ccw-user-extension.ccw.site/extensions/example/ccw-approved-ext.js
Extensions will be registed in Extension Library. You must add it by hand before you use it.
Extension cover type: png/jpg/svg size: 600 × 372 px
Extension block icon type: svg size: 80 x 80 px
Extension menu icon type: svg size: 80 x 80 px