Skip to content

Latest commit

 

History

History
103 lines (80 loc) · 3.81 KB

README.md

File metadata and controls

103 lines (80 loc) · 3.81 KB

ccw-user-extensions

Table of contents generated with markdown-toc

What for

This repo is for Gandi Developer who wants make and test their own extensions.

About license

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).

How to jump in

There are two ways to develop and test your extensions.

Normal remote extension (for anyone)

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.

CCW approved extension (for CCW collaborator)

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.

Apply for CCW collaborator

  • fork this repo and submit your PR。

How to develop

Define a extension

normal remote extension

.extensions/example/normal-ext.js

CCW approved extension

.extensions/example/ccw-approved-ext.js

Test your extension

normal remote extension

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.

CCW approved extension

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.

Asset standard

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