Skip to content

Commit 7b11049

Browse files
committed
Use registerPluginStaticContent
1 parent 7a86572 commit 7b11049

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
from girder import plugin
1+
from pathlib import Path
22

3+
from girder import plugin
34

4-
class GirderPlugin(plugin.GirderPlugin):
5+
class WSISuperpixelGuidedLabelingPlugin(plugin.GirderPlugin):
56
DISPLAY_NAME = 'WSI Superpixel Guided Labeling'
6-
CLIENT_SOURCE_PATH = 'web_client'
77

88
def load(self, info):
9-
# add plugin loading logic here
109
plugin.getPlugin('histomicsui').load(info)
10+
# add plugin loading logic here
11+
plugin.registerPluginStaticContent(
12+
plugin='wsi_superpixel_guided_labeling',
13+
css=['/style.css'],
14+
js=['/girder-plugin-wsi-superpixel-guided-labeling.umd.js'],
15+
staticDir=Path(__file__).parent / 'web_client' / 'dist',
16+
tree=info['serverRoot'],
17+
)

0 commit comments

Comments
 (0)