plugin.ts 569 B

1234567891011121314151617181920212223242526
  1. export const GrowiPluginResourceType = {
  2. Template: 'template',
  3. Style: 'style',
  4. Script: 'script',
  5. } as const;
  6. export type GrowiPluginResourceType = typeof GrowiPluginResourceType[keyof typeof GrowiPluginResourceType];
  7. export type GrowiPluginOrigin = {
  8. url: string,
  9. ghBranch?: string,
  10. ghTag?: string,
  11. }
  12. export type GrowiPlugin = {
  13. isEnabled: boolean,
  14. installedPath: string,
  15. origin: GrowiPluginOrigin,
  16. meta: GrowiPluginMeta,
  17. }
  18. export type GrowiPluginMeta = {
  19. name: string,
  20. types: GrowiPluginResourceType[],
  21. desc?: string,
  22. author?: string,
  23. }