notebook.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "copyright":"Licensed Materials - Property of IBM. IBM Cognos Products: Notebook Copyright IBM Corp.2018, 2019. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.",
  3. "label":"Notebook",
  4. "features":[
  5. {
  6. "id":"com.ibm.bi.notebook",
  7. "actions":[
  8. {
  9. "id":"com.ibm.bi.contentApps.defaultAction.jupyterNotebook",
  10. "items":[
  11. {
  12. "controller":"notebook/OpenNotebookActionHandler",
  13. "weight":1200
  14. }
  15. ]
  16. }
  17. ],
  18. "contextMenus": [
  19. {
  20. "id": "listMenuContribution",
  21. "containerId": "com.ibm.bi.contentApps.listViewMenu",
  22. "actionController": "notebook/OpenNotebookActionHandler",
  23. "type": "MenuContribution",
  24. "environment": {
  25. "capabilities": [
  26. "canEditJupyterNotebook"
  27. ]
  28. },
  29. "items": [
  30. {
  31. "id": "com.ibm.bi.notebook.edit",
  32. "label": "%edit_notebook",
  33. "icon": "common-edit",
  34. "weight": 1100
  35. },
  36. {
  37. "id": "com.ibm.bi.notebook.view",
  38. "label": "%view_notebook",
  39. "icon": "common-view",
  40. "weight": 1100
  41. }
  42. ]
  43. }
  44. ],
  45. "collectionItems": [
  46. {
  47. "containerId": "com.ibm.bi.glass.common.sharedResources",
  48. "id": "shareNotebook",
  49. "label": "Share",
  50. "types": ["jupyterNotebook"],
  51. "perspectives": ["notebook"],
  52. "actionController": "notebook/ShareNotebookActionHandler"
  53. }
  54. ],
  55. "toolItems":[
  56. {
  57. "id":"createNotebook",
  58. "containerId":"com.ibm.bi.glass.common.createMenu",
  59. "type":"MenuContribution",
  60. "actionController":"notebook/NewNotebookActionHandler",
  61. "items":[
  62. {
  63. "id":"createNotebook",
  64. "label":"%notebook",
  65. "icon":"data-notebook",
  66. "weight":650,
  67. "environment": {
  68. "capabilities": ["canEditJupyterNotebook"]
  69. }
  70. }
  71. ]
  72. }
  73. ]
  74. },
  75. {
  76. "id":"com.ibm.bi.notebook.run",
  77. "contextMenus": [
  78. {
  79. "id": "listMenuContributionRun",
  80. "containerId": "com.ibm.bi.contentApps.listViewMenu",
  81. "actionController": "notebook/RunNotebookActionHandler",
  82. "type": "MenuContribution",
  83. "environment": {
  84. "capabilities": [
  85. "canEditJupyterNotebook"
  86. ]
  87. },
  88. "items": [
  89. {
  90. "id": "com.ibm.bi.notebook.run",
  91. "label": "%run_notebook",
  92. "icon": "common-run",
  93. "weight": 1100
  94. }
  95. ]
  96. }
  97. ]
  98. },
  99. {
  100. "id": "com.ibm.bi.notebook.quickLaunch",
  101. "collectionItems": [{
  102. "id": "quickLaunchNotebook",
  103. "containerId": "com.ibm.bi.bahome_common.quickLaunchTargets",
  104. "type": "DropTargetContribution",
  105. "actionController": "notebook/OpenNotebookActionHandler",
  106. "fileUploadModule": "notebook/UploadModuleActionHandler",
  107. "targetId": "jupyterNotebook",
  108. "requiredType": "jupyterNotebook",
  109. "label": "%notebook",
  110. "icon": "data-notebook",
  111. "fileTypes": ["ipynb"],
  112. "weight": 200,
  113. "environment": {
  114. "capabilities": [
  115. "canEditJupyterNotebook"
  116. ]
  117. }
  118. }]
  119. }
  120. ],
  121. "config": {
  122. "requirejs": {
  123. "paths": {
  124. "notebook": "js/notebook"
  125. },
  126. "map": {
  127. "*": {}
  128. },
  129. "bundles": {
  130. "notebook/bundles/glass.bridge": [
  131. "notebook/NewNotebookActionHandler",
  132. "notebook/OpenNotebookActionHandler",
  133. "notebook/ShareNotebookActionHandler",
  134. "notebook/PropertyMenuNotebook",
  135. "notebook/UploadModuleActionHandler",
  136. "notebook/RunNotebookActionHandler"
  137. ]
  138. }
  139. }
  140. }
  141. }