Skip to content

Instantly share code, notes, and snippets.

@devinhalladay
Last active January 24, 2023 16:28
Show Gist options
  • Save devinhalladay/56695d24a95508478c74218065acfc38 to your computer and use it in GitHub Desktop.
Save devinhalladay/56695d24a95508478c74218065acfc38 to your computer and use it in GitHub Desktop.
Installing an Extension*
Installing an Extension*
# admin action
reset state chart -> Store
# admin action
finish installing -> Finished Installing?
Store*
click extension -> Cover Page
click manage -> Installed List
Cover Page&
not installed?*
click install -> Finished Installing?
already installed?
click manage -> Installed List
Finished Installing?
has generic pane? -> Generic Pane Extension
has file renderer? -> File Renderer Extension
has background process? -> Background Extension
# The extension pane will render one of four states depending on its type, and whether it has a settings page.
Extension Pane
Generic Pane Extension
File Renderer Extension
# By default, background processes would open the cover page after installing.
# If it has settings, that will open by default.
Background Extension
has settings? -> Extension Settings
has no settings? -> Cover Page
Managing Extensions
Installed List*
click extension -> Cover Page
click settings -> Extension Settings
Extension Settings
function render(model){
return $("span", "The current state is: " + model.active_states[0].name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment