Skip to content

adobe/griffon-event-count-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

griffon-event-count-plugin

Example project of how to build a Project Griffon View Plugin

Getting Started

Plugins are registered via the Plugin Bridge. A brief description of how to implement the bridge in a plugin is provided in the wiki

Plugins in Project Griffon are hosted on a static server and are loaded in the UI as an iframe. We'll use Parcel to host our plugin locally.

npm install -g parcel-bundler
parcel index.html --https

Plugin development can now be done within the Project Griffon UI itself. This is done by adding a plugin configuration object to local storage. The development plugin configuration is pulled from local storage and loaded along with the existing plugins. You may configure it as follows:

localStorage.setItem('griffonPlugin', JSON.stringify([{
  displayName: 'Event Counter',
  src: 'https://localhost:1234/index.html'
}]))

Notes: Make sure when calling setItem on localStorage that it is done on the iframe for ui.griffon.adobe.com

You might need to load https://localhost:1234/index.html in a separate tab and accept the invalid certificate

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages