id="cronfig-wrapper" is where the Cronfig JS will render its content. You can type in
loading... or paste in a spinner to tell the user the content is coming soon.
cronfigConfig object to
document to integrate Cronfig with needs of your app.
platform name. For example type in Mautic if you write another plugin for Mautic or Wordpress if you integrate Cronfig with Wordpress.
Specify what tasks can users start within Cronfig. This is key concept of Cronfig. You, as a developer, will configure the tasks for the app you are integrating with. You specify
description for each task. Add multiple tasks if you need them. Users will simply enable those they want with one click. Simple.
Notice the example task URL. It has a secret hash. Use similar technique to secure potentially expensive trigger URLs.
Cronfig is meant to use inside an app configuration. So your users should be logged in and you should know their email address. Fill it in so they doesn't have to type it in.
If you know the API key of the users, fill it in here so it's pre-filled for them and they doesn't have to search for it in their inbox. How could you know that? Glad you asked! See line 19.
This function will run when user filles in the API key. So you can easily catch it and store it to pre-fill it next time (line 18). Make lives of your users a bit easier.
Feel free to inspire with the Mautic - Cronfig plugin.