connect.json 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. {
  2. "name": "draw.io",
  3. "description": "Draw.io add-on for Confluence",
  4. "key": "com.mxgraph.confluence.plugins.diagramly",
  5. "baseUrl": "https://www.draw.io",
  6. "enableLicensing": true,
  7. "vendor":
  8. {
  9. "name": "JGraph Ltd.",
  10. "url": "https://www.jgraph.com"
  11. },
  12. "links": {
  13. "documentation": "https://support.draw.io/display/DFCC/draw.io+for+Confluence+Cloud"
  14. },
  15. "version": "1.4.8",
  16. "authentication":
  17. {
  18. "type": "none"
  19. },
  20. "modules":
  21. {
  22. "adminPages": [
  23. {
  24. "key": "gliffyImport",
  25. "url": "/connect/confluence/admin.html",
  26. "name": {
  27. "value": "Gliffy - draw.io Conversion"
  28. }
  29. }
  30. ],
  31. "generalPages": [
  32. {
  33. "key": "lightbox",
  34. "url": "/connect/confluence/viewer-1-4-8.html?lightbox=1",
  35. "name": {
  36. "value": "Lightbox"
  37. }
  38. },
  39. {
  40. "key": "customContentViewer",
  41. "url": "/connect/confluence/viewer-1-4-8.html?custom=1&contentId={content.id}",
  42. "name": {
  43. "value": "Draw.io Viewer"
  44. }
  45. }
  46. ],
  47. "customContent": [{
  48. "key": "drawio-diagram",
  49. "name": {
  50. "value": "Draw.io Diagrams"
  51. },
  52. "uiSupport": {
  53. "contentViewComponent": {
  54. "moduleKey": "customContentViewer"
  55. },
  56. "icons": {
  57. "item": {
  58. "url": "/images/drawlogo48.png"
  59. }
  60. }
  61. },
  62. "apiSupport": {
  63. "supportedContainerTypes": ["page", "comment", "space", "blogpost"],
  64. "supportedChildTypes": ["attachment"],
  65. "indexing": {
  66. "enabled": true
  67. }
  68. }
  69. }
  70. ],
  71. "dynamicContentMacros":
  72. [
  73. {
  74. "name":
  75. {
  76. "i18n": "drawioMacro",
  77. "value": "Draw.io Diagram"
  78. },
  79. "url": "/connect/confluence/viewer-1-4-8.html?ceoId=${page.id}&diagramName=${diagramName}&revision=${revision}&width=${width}&height=${height}&tbstyle=${tbstyle}&lbox=${lbox}&zoom=${zoom}&links=${links}&owningPageId=${pageId}",
  80. "width": "100%",
  81. "description":
  82. {
  83. "i18n": "description",
  84. "value": "Inserts a new Draw.io Diagram"
  85. }, "icon":
  86. {
  87. "width": 128,
  88. "height": 128,
  89. "url": "/images/drawlogo128.png"
  90. },
  91. "categories": [
  92. "visuals"
  93. ],
  94. "outputType": "block",
  95. "featured": true,
  96. "key": "drawio",
  97. "parameters":
  98. [
  99. {
  100. "identifier": "diagramName",
  101. "name":
  102. {
  103. "value": "Diagram name (do not change)"
  104. },
  105. "type": "string"
  106. },
  107. {
  108. "identifier": "autoSize",
  109. "name":
  110. {
  111. "value": "automatic size"
  112. },
  113. "type": "boolean"
  114. },
  115. {
  116. "identifier": "PageId",
  117. "name":
  118. {
  119. "value": "Parent page ID"
  120. },
  121. "type": "string"
  122. },
  123. {
  124. "identifier": "baseUrl",
  125. "name":
  126. {
  127. "value": "Confluence Base URL"
  128. },
  129. "type": "string"
  130. },
  131. {
  132. "identifier": "width",
  133. "name":
  134. {
  135. "value": "Diagram width"
  136. },
  137. "type": "string"
  138. },
  139. {
  140. "identifier": "height",
  141. "name":
  142. {
  143. "value": "Diagram Height"
  144. },
  145. "type": "string"
  146. }
  147. ],
  148. "editor": {
  149. "url": "/connect/confluence/macroEditor-1-4-8.html?ceoId=${page.id}&diagramName=${diagramName}",
  150. "width": "100%",
  151. "height": "100%",
  152. "editTitle":
  153. {
  154. "value" : "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"
  155. },
  156. "insertTitle":
  157. {
  158. "value" : "--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"
  159. }
  160. },
  161. "imagePlaceholder": {
  162. "width": 500,
  163. "height": 300,
  164. "url": "/connectImage",
  165. "applyChrome": false
  166. },
  167. "renderModes": {
  168. "default": {
  169. "url": "/connectRender?pageId=${page.id}&diagramName=${diagramName}"
  170. }
  171. }
  172. },
  173. {
  174. "name":
  175. {
  176. "i18n": "drawioMacro",
  177. "value": "Legacy macro - do not use"
  178. },
  179. "url": "/connect/confluence/viewer.html?ceoId=${page.id}&diagramName=${diagramName}&revision=${revision}&width=${width}&height=${height}",
  180. "width": "100%",
  181. "description":
  182. {
  183. "i18n": "description",
  184. "value": "Do not use"
  185. }, "icon":
  186. {
  187. "width": 80,
  188. "height": 80,
  189. "url": "/images/stop-flat-icon-80.png"
  190. },
  191. "categories": [
  192. "visuals"
  193. ],
  194. "outputType": "block",
  195. "featured": false,
  196. "key": "drawio-macro",
  197. "parameters":
  198. [
  199. {
  200. "identifier": "diagramName",
  201. "name":
  202. {
  203. "value": "Diagram name (do not change)"
  204. },
  205. "type": "string"
  206. },
  207. {
  208. "identifier": "autoSize",
  209. "name":
  210. {
  211. "value": "automatic size"
  212. },
  213. "type": "boolean"
  214. },
  215. {
  216. "identifier": "PageId",
  217. "name":
  218. {
  219. "value": "Parent page ID"
  220. },
  221. "type": "string"
  222. },
  223. {
  224. "identifier": "baseUrl",
  225. "name":
  226. {
  227. "value": "Confluence Base URL"
  228. },
  229. "type": "string"
  230. },
  231. {
  232. "identifier": "width",
  233. "name":
  234. {
  235. "value": "Diagram width"
  236. },
  237. "type": "string"
  238. },
  239. {
  240. "identifier": "height",
  241. "name":
  242. {
  243. "value": "Diagram Height"
  244. },
  245. "type": "string"
  246. }
  247. ],
  248. "editor": {
  249. "url": "/connect/confluence/macroEditor.html?ceoId=${page.id}&diagramName=${diagramName}",
  250. "editTitle": {
  251. "value": "Edit MarkDown",
  252. "i18n": "macro.md.edit"
  253. },
  254. "insertTitle": {
  255. "value": "Insert New MarkDown",
  256. "i18n": "macro.md.insert"
  257. },
  258. "width": "100%",
  259. "height": "100%"
  260. },
  261. "imagePlaceholder": {
  262. "width": 500,
  263. "height": 300,
  264. "url": "/connectImage",
  265. "applyChrome": true
  266. },
  267. "renderModes": {
  268. "default": {
  269. "url": "/connectRender?pageId=${page.id}&diagramName=${diagramName}&revision=${revision}"
  270. }
  271. }
  272. }
  273. ]
  274. },
  275. "scopes": [
  276. "read",
  277. "write",
  278. "delete"
  279. ]
  280. }