-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.py
35 lines (30 loc) · 1016 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from jadi import component
from aj.plugins.core.api.sidebar import SidebarItemProvider
@component(SidebarItemProvider)
class ItemProvider(SidebarItemProvider):
def __init__(self, context):
pass
def provide(self):
return [
{
# category:tools, category:sofware, category:system, category:other
'attach': 'category:general',
'name': 'My Plugin',
# https://fontawesome.com/icons/
'icon': 'question',
'url': '/view/my_plugin',
'children': []
}
]
# Uncomment the following lines to set a new permission
# from aj.auth import PermissionProvider
# @component(PermissionProvider)
# class Permissions (PermissionProvider):
# def provide(self):
# return [
# {
# 'id': 'my_plugin:show',
# 'name': _('Show the Python binding example'),
# 'default': False,
# },
# ]