-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gpt-AddOn.mm
551 lines (522 loc) · 22.9 KB
/
Gpt-AddOn.mm
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
<map version="freeplane 1.9.13">
<!--To view this file, download free mind mapping software Freeplane from https://www.freeplane.org -->
<node TEXT="Gpt-AddOn" FOLDED="false" ID="ID_696401721" CREATED="1683390537356" MODIFIED="1683758412161" LINK="https://github.com/barrymac/freeplane_openai_addon" BACKGROUND_COLOR="#97c7dc" STYLE="oval">
<font SIZE="16" BOLD="true" ITALIC="true"/>
<hook NAME="MapStyle">
<properties show_icon_for_attributes="true" edgeColorConfiguration="#808080ff,#ff0000ff,#0000ffff,#00ff00ff,#ff00ffff,#00ffffff,#7c0000ff,#00007cff,#007c00ff,#7c007cff,#007c7cff,#7c7c00ff" mapUsesOwnSaveOptions="true" save_modification_times="false" save_last_visited_node="default" show_note_icons="true" associatedTemplateLocation="template:/standard-1.6.mm" save_folding="save_folding_if_map_is_changed" fit_to_viewport="false"/>
<map_styles>
<stylenode LOCALIZED_TEXT="styles.root_node" STYLE="oval" UNIFORM_SHAPE="true" VGAP_QUANTITY="24 pt">
<font SIZE="24"/>
<stylenode LOCALIZED_TEXT="styles.predefined" STYLE="bubble" POSITION="bottom_or_right">
<stylenode LOCALIZED_TEXT="default" ID="ID_271890427" ICON_SIZE="12 pt" COLOR="#000000" STYLE="fork">
<arrowlink SHAPE="CUBIC_CURVE" COLOR="#000000" WIDTH="2" TRANSPARENCY="200" DASH="" FONT_SIZE="9" FONT_FAMILY="SansSerif" DESTINATION="ID_271890427" STARTARROW="NONE" ENDARROW="DEFAULT"/>
<font NAME="SansSerif" SIZE="10" BOLD="false" ITALIC="false"/>
<richcontent CONTENT-TYPE="plain/auto" TYPE="DETAILS"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="plain/auto"/>
</stylenode>
<stylenode LOCALIZED_TEXT="defaultstyle.details"/>
<stylenode LOCALIZED_TEXT="defaultstyle.attributes">
<font SIZE="9"/>
</stylenode>
<stylenode LOCALIZED_TEXT="defaultstyle.note" COLOR="#000000" BACKGROUND_COLOR="#ffffff" TEXT_ALIGN="LEFT"/>
<stylenode LOCALIZED_TEXT="defaultstyle.floating">
<edge STYLE="hide_edge"/>
<cloud COLOR="#f0f0f0" SHAPE="ROUND_RECT"/>
</stylenode>
<stylenode LOCALIZED_TEXT="defaultstyle.selection" BACKGROUND_COLOR="#afd3f7" BORDER_COLOR_LIKE_EDGE="false" BORDER_COLOR="#afd3f7"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.user-defined" STYLE="bubble" POSITION="bottom_or_right">
<stylenode LOCALIZED_TEXT="styles.topic" COLOR="#18898b" STYLE="fork">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.subtopic" COLOR="#cc3300" STYLE="fork">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.subsubtopic" COLOR="#669900">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.important" ID="ID_67550811">
<icon BUILTIN="yes"/>
<arrowlink COLOR="#003399" TRANSPARENCY="255" DESTINATION="ID_67550811"/>
</stylenode>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.AutomaticLayout" STYLE="bubble" POSITION="bottom_or_right">
<stylenode LOCALIZED_TEXT="AutomaticLayout.level.root" COLOR="#000000" STYLE="oval" SHAPE_HORIZONTAL_MARGIN="10 pt" SHAPE_VERTICAL_MARGIN="10 pt">
<font SIZE="18"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,1" COLOR="#0033ff">
<font SIZE="16"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,2" COLOR="#00b439">
<font SIZE="14"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,3" COLOR="#990000">
<font SIZE="12"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,4" COLOR="#111111">
<font SIZE="10"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,5"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,6"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,7"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,8"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,9"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,10"/>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,11"/>
</stylenode>
</stylenode>
</map_styles>
</hook>
<hook NAME="AutomaticEdgeColor" COUNTER="15" RULE="ON_BRANCH_CREATION"/>
<attribute_layout NAME_WIDTH="112.5 pt" VALUE_WIDTH="259.49999 pt"/>
<attribute NAME="name" VALUE="gptAddOn"/>
<attribute NAME="version" VALUE="v0.2.3"/>
<attribute NAME="author" VALUE="barry"/>
<attribute NAME="freeplaneVersionFrom" VALUE="v1.9" OBJECT="org.freeplane.features.format.FormattedObject|java.lang.String&#x7c;v1.9|number:decimal:#0.####"/>
<attribute NAME="freeplaneVersionTo" VALUE=""/>
<attribute NAME="homepage" VALUE="github.com/barrymac/freeplane_openai_addon"/>
<attribute NAME="downloadUrl" VALUE="https://${homepage}/releases/download/${version}/"/>
<attribute NAME="changelogUrl" VALUE="https://${homepage}/releases/latest/download/history.md"/>
<attribute NAME="addonsMenu" VALUE="/menu_bar/OpenAI"/>
<attribute NAME="updateUrl" VALUE="https://${homepage}/releases/latest/download/version.properties"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
The homepage of this add-on should be set as the link of the root node.
</p>
<p>
The basic properties of this add-on. They can be used in script names and other attributes, e.g. "${name}.groovy".
</p>
<ul>
<li>
name: The name of the add-on, normally a technically one (no spaces, no special characters except _.-).
</li>
<li>
author: Author's name(s) and (optionally) email adresses.
</li>
<li>
version: Since it's difficult to protect numbers like 1.0 from Freeplane's number parser it's advised to prepend a 'v' to the number, e.g. 'v1.0'.
</li>
<li>
freeplane-version-from: The oldest compatible Freeplane version. The add-on will not be installed if the Freeplane version is too old.
</li>
<li>
freeplane-version-to: Normally empty: The newest compatible Freeplane version. The add-on will not be installed if the Freeplane version is too new.
</li>
<li>
updateUrl: URL of the file containing information (version, download url) on the latest version of this add-on. By default: "${homepage}/version.properties"
</li>
</ul>
</body>
</html></richcontent>
<node TEXT="description" POSITION="left" ID="ID_365830098" CREATED="1683390537376" MODIFIED="1683417209469">
<edge COLOR="#ff0000"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
Description would be awkward to edit as an attribute.
</p>
<p>
So you have to put the add-on description as a child of the <i>'description'</i> node.
</p>
<p>
To translate the description you have to define a translation for the key 'addons.${name}.description'.
</p>
</body>
</html></richcontent>
<node TEXT="Add on to use GPT api to generate ideas" ID="ID_110054152" CREATED="1683390537378" MODIFIED="1683390537378"/>
</node>
<node TEXT="changes" POSITION="left" ID="ID_138977336" CREATED="1683390537378" MODIFIED="1683417209472">
<edge COLOR="#0000ff"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
Change log of this add-on: append one node for each noteworthy version and put the details for each version into a child node.
</p>
</body>
</html></richcontent>
</node>
<node TEXT="license" FOLDED="true" POSITION="left" ID="ID_950695085" CREATED="1683390537379" MODIFIED="1683417209475">
<edge COLOR="#00ff00"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
The add-ons's license that the user has to accept before she can install it.
</p>
<p>
</p>
<p>
The License text has to be entered as a child of the <i>'license'</i> node, either as plain text or as HTML.
</p>
</body>
</html></richcontent>
<node TEXT="
This add-on is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
" ID="ID_726417928" CREATED="1683390537381" MODIFIED="1683390537381"/>
</node>
<node TEXT="preferences.xml" POSITION="left" ID="ID_902316079" CREATED="1683390537381" MODIFIED="1683417209478">
<edge COLOR="#ff00ff"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
<font color="#000000" face="SansSerif, sans-serif">The child node contains the add-on configuration as an extension to mindmapmodemenu.xml (in Tools->Preferences->Add-ons). </font>
</p>
<p>
<font color="#000000" face="SansSerif, sans-serif">Every property in the configuration should receive a default value in <i>default.properties</i> node.</font>
</p>
</body>
</html></richcontent>
<node TEXT="<?xml version="1.0" encoding="UTF-8"?>
<preferences_structure xmlns="http://freeplane.sf.net/ui/preferences/1.0">
 <tabbed_pane>
 <tab name="plugins">
 <separator name="gpt_plugin">
 <string name="openai_key"/>
 <textbox name="gpt_prompt" lines="5"/>
 <number name="max_node_depth" min="0" max="10" />
 <combo name="gpt_model">
 <choice value="gpt-3.5-turbo"/>
 <choice value="gpt-4"/>
 </combo>
 </separator>
 </tab>
 </tabbed_pane>
</preferences_structure>" ID="ID_274284424" CREATED="1683416045253" MODIFIED="1683417961004"/>
</node>
<node TEXT="default.properties" POSITION="left" ID="ID_769124461" CREATED="1683390537382" MODIFIED="1683417209481">
<edge COLOR="#00ffff"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
These properties are used for:
</p>
<ul>
<li>
Each property defined in the preferences should have a default value in the attributes of this node.
</li>
<li>
For each menu item with an icon add an attribute with the icon key (use developer tool menuItemInfo) as key and the icon path as value. Example: '${name}.icon': '/images/${name}-icon.png'
</li>
</ul>
</body>
</html></richcontent>
<node TEXT="openai.key	Gpt-AddOn" ID="ID_1225509203" CREATED="1683390537384" MODIFIED="1683416604652">
<attribute_layout VALUE_WIDTH="123 pt"/>
<attribute NAME="openai_key" VALUE=""/>
<attribute NAME="gpt_prompt" VALUE="Please generate a list of 5 ideas related to the subject: '${node.getText()}', in the context of '${node.mindMap.root.text}'. Separate each idea with a newline."/>
<attribute NAME="gpt_model" VALUE="gpt-3.5-turbo"/>
<attribute NAME="${name}.icon" VALUE="/images/${name}-icon.png"/>
</node>
</node>
<node TEXT="translations" POSITION="left" ID="ID_1606264590" CREATED="1683390537384" MODIFIED="1683417209484">
<edge COLOR="#7c0000"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
The translation keys that this script uses. Define one child node per supported locale. The attributes contain the translations. Define at least
</p>
<ul>
<li>
'addons.${name}' for the add-on's name
</li>
<li>
'addons.${name}.description' for the description, e.g. in the add-on overview dialog (not necessary for English)
</li>
<li>
'addons.${name}.<scriptname>' for each script since it will be the menu title.
</li>
</ul>
</body>
</html></richcontent>
<node TEXT="en" ID="ID_1097454652" CREATED="1683390537386" MODIFIED="1683418157655" POSITION="top_or_left">
<attribute_layout NAME_WIDTH="159 pt" VALUE_WIDTH="102 pt"/>
<attribute NAME="addons.${name}" VALUE="Gpt-AddOn"/>
<attribute NAME="addons.${name}.openAiGpt" VALUE="GPT Ideas"/>
<attribute NAME="addons.${name}.openAiGptAsync" VALUE="GPT Ideas Async"/>
<attribute NAME="separator.gpt_plugin" VALUE="GPT Options"/>
<attribute NAME="openai_key" VALUE="Open AI API key"/>
<attribute NAME="gpt_prompt" VALUE="Default GPT Prompt"/>
<attribute NAME="max_node_depth" VALUE="Max node depth"/>
<attribute NAME="gpt_model" VALUE="Gpt Model"/>
<attribute NAME="gpt-3.5-turbo" VALUE="gpt-3.5-turbo"/>
<attribute NAME="gpt-4" VALUE="gpt-4"/>
</node>
</node>
<node TEXT="deinstall" POSITION="left" ID="ID_1927303474" CREATED="1683390537388" MODIFIED="1683417209490">
<edge COLOR="#00007c"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
List of files and/or directories to remove on uninstall
</p>
</body>
</html></richcontent>
<attribute_layout NAME_WIDTH="37.5 pt" VALUE_WIDTH="268.49999 pt"/>
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}.script.xml"/>
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}/scripts/openAiGpt.groovy"/>
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}/scripts/openAiGptAsync.groovy"/>
<attribute NAME="delete" VALUE="${installationbase}/icons/ChatGPT-Logo-PNG-1.png"/>
<attribute NAME="delete" VALUE="${installationbase}/icons/gptAddOn.png"/>
<attribute NAME="delete" VALUE="${installationbase}/icons/gptAddOn-icon.png"/>
</node>
<node TEXT="scripts" ID="ID_684917236" CREATED="1683390537389" MODIFIED="1683417209496" POSITION="bottom_or_right">
<edge COLOR="#007c00"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
An add-on may contain multiple scripts. The node text defines the script name (e.g. insertInlineImage.groovy). The name must have a suffix of a supported script language like .groovy or .js and may only consist of letters and digits. The script properties have to be configured via attributes:
</p>
<p>
</p>
<p>
* menuLocation: <locationkey>
</p>
<p>
- Defines the menu location, defaults a sub menu 'main_menu_scripting/addons.${name}'.
</p>
<p>
- Use developer tool menuItemInfo to inspect menu location keys.
</p>
<p>
- This attribute is mandatory
</p>
<p>
</p>
<p>
* menuTitleKey: <key>
</p>
<p>
- The menu item title will be looked up under the translation key <key> - don't forget to define its translation.
</p>
<p>
- This attribute is mandatory
</p>
<p>
</p>
<p>
* executionMode: <mode>
</p>
<p>
- The execution mode as described in the Freeplane wiki (http://freeplane.sourceforge.net/wiki/index.php/Scripting)
</p>
<p>
- ON_SINGLE_NODE: Execute the script once. The <i>node</i> variable is set to the selected node.
</p>
<p>
- ON_SELECTED_NODE: Execute the script n times for n selected nodes, once for each node.
</p>
<p>
- ON_SELECTED_NODE_RECURSIVELY: Execute the script on every selected node and recursively on all of its children.
</p>
<p>
- In doubt use ON_SINGLE_NODE.
</p>
<p>
- This attribute is mandatory
</p>
<p>
</p>
<p>
* keyboardShortcut: <shortcut>
</p>
<p>
- Optional: keyboard combination / accelerator for this script, e.g. control alt I
</p>
<p>
- Use lowercase letters for modifiers and uppercase for letters. Use no + signs.
</p>
<p>
- The available key names are listed at http://download.oracle.com/javase/1.4.2/docs/api/java/awt/event/KeyEvent.html#VK_0
</p>
<p>
In the list only entries with a 'VK_' prefix count. Omit the prefix in the shortcut definition.
</p>
<p>
</p>
<p>
* Permissions that the script(s) require, each either false or true:
</p>
<p>
- execute_scripts_without_asking
</p>
<p>
- execute_scripts_without_file_restriction: permission to read files
</p>
<p>
- execute_scripts_without_write_restriction: permission to create/change/delete files
</p>
<p>
- execute_scripts_without_exec_restriction: permission to execute other programs
</p>
<p>
- execute_scripts_without_network_restriction: permission to access the network
</p>
<p>
Notes:
</p>
<p>
- The set of permissions is fixed.
</p>
<p>
- Don't change the attribute names, don't omit one.
</p>
<p>
- Set the values either to true or to false
</p>
<p>
- In any case set execute_scripts_without_asking to true unless you want to annoy users.
</p>
</body>
</html></richcontent>
<node TEXT="openAiGpt.groovy" ID="ID_231711959" CREATED="1683390537391" MODIFIED="1683417242827">
<attribute_layout NAME_WIDTH="202.49999 pt" VALUE_WIDTH="156.75 pt"/>
<attribute NAME="menuTitleKey" VALUE="addons.${name}.openAiGpt"/>
<attribute NAME="menuLocation" VALUE="${addonsMenu}/addons.${name}"/>
<attribute NAME="executionMode" VALUE="on_single_node"/>
<attribute NAME="keyboardShortcut" VALUE=""/>
<attribute NAME="execute_scripts_without_asking" VALUE="true"/>
<attribute NAME="execute_scripts_without_file_restriction" VALUE="true"/>
<attribute NAME="execute_scripts_without_write_restriction" VALUE="true"/>
<attribute NAME="execute_scripts_without_exec_restriction" VALUE="true"/>
<attribute NAME="execute_scripts_without_network_restriction" VALUE="true"/>
</node>
<node TEXT="openAiGptAsync.groovy" ID="ID_681009706" CREATED="1683390537392" MODIFIED="1683390537392">
<attribute_layout NAME_WIDTH="202.49999 pt" VALUE_WIDTH="158.25 pt"/>
<attribute NAME="menuTitleKey" VALUE="addons.${name}.openAiGptAsync"/>
<attribute NAME="menuLocation" VALUE="${addonsMenu}/addons.${name}"/>
<attribute NAME="executionMode" VALUE="on_single_node"/>
<attribute NAME="keyboardShortcut" VALUE=""/>
<attribute NAME="execute_scripts_without_asking" VALUE="true"/>
<attribute NAME="execute_scripts_without_file_restriction" VALUE="true"/>
<attribute NAME="execute_scripts_without_write_restriction" VALUE="true"/>
<attribute NAME="execute_scripts_without_exec_restriction" VALUE="true"/>
<attribute NAME="execute_scripts_without_network_restriction" VALUE="true"/>
</node>
</node>
<node TEXT="lib" ID="ID_1845190577" CREATED="1683390537392" MODIFIED="1683417253117" POSITION="bottom_or_right">
<edge COLOR="#7c007c"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
An add-on may contain any number of nodes containing binary files (normally .jar files) to be added to the add-on's classpath.
</p>
<p>
</p>
<p>
- The immediate child nodes contain the name of the file, e.g. 'mysql-connector-java-5.1.25.jar'). Put the file into a 'lib' subdirectory of the add-on base directory.
</p>
<p>
</p>
<p>
- The child nodes of these nodes contain the actual files.
</p>
<p>
</p>
<p>
- Any lib file will be extracted in <installationbase>/<addonname>/lib.
</p>
<p>
</p>
<p>
- The files will be processed in the sequence as seen in the map.
</p>
</body>
</html></richcontent>
</node>
<node TEXT="zips" ID="ID_169986368" CREATED="1683390537394" MODIFIED="1683417253122" POSITION="bottom_or_right">
<edge COLOR="#007c7c"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
An add-on may contain any number of nodes containing zip files.
</p>
<p>
</p>
<p>
- The immediate child nodes contain a description of the zip. The devtools script releaseAddOn.groovy allows automatic zip creation if the name of this node matches a directory in the current directory.
</p>
<p>
</p>
<p>
- The child nodes of these nodes contain the actual zip files.
</p>
<p>
</p>
<p>
- Any zip file will be extracted in the <installationbase>. Currently, <installationbase> is always Freeplane's <userhome>, e.g. ~/.freeplane/1.3.
</p>
<p>
</p>
<p>
- The files will be processed in the sequence as seen in the map.
</p>
</body>
</html></richcontent>
<node TEXT="icons" ID="ID_2478986" CREATED="1683390537395" MODIFIED="1683390537395"/>
</node>
<node TEXT="images" ID="ID_295383454" CREATED="1683390537395" MODIFIED="1683417253136" POSITION="bottom_or_right">
<edge COLOR="#7c7c00"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
<p>
An add-on may define any number of images as child nodes of the images node. The actual image data has to be placed as base64 encoded binary data into the text of a subnode.
</p>
<p>
The images are saved to the <i>${installationbase}/resources/images</i> directory.
</p>
<p>
</p>
<p>
The following images should be present:
</p>
<ul>
<li>
<i>${name}-icon.png</i>, like <i>oldicons-theme-icon.png</i>. This will be used in the app-on overview.
</li>
<li>
<i>${name}-screenshot-1.png</i>, like <i>oldicons-theme-screenshot-1.png</i>. This will be used in the app-on details dialog. Further images can be included but they are not used yet.
</li>
</ul>
<p>
Images can be added automatically by releaseAddOn.groovy or must be uploaded into the map via the script <i>Tools->Scripts->Insert Binary</i> since they have to be (base64) encoded as simple strings.
</p>
</body>
</html></richcontent>
<attribute_layout NAME_WIDTH="104.25 pt"/>
</node>
<node TEXT="actions" ID="ID_1265299212" CREATED="1683390537396" MODIFIED="1683390537396" POSITION="bottom_or_right">
<edge COLOR="#ff00ff"/>
<richcontent TYPE="NOTE" CONTENT-TYPE="xml/">
<html>
<head>
</head>
<body>
Direct links to menu commands
</body>
</html></richcontent>
<node TEXT="Build add-on" ID="ID_1119854319" CREATED="1683390537397" MODIFIED="1683390537397" LINK="menuitem:_addons.devtools.checkAddOn_on_single_node"/>
<node TEXT="Package add-on for publication" ID="ID_119351145" CREATED="1683390537398" MODIFIED="1683390537398" LINK="menuitem:_addons.devtools.releaseAddOn_on_single_node"/>
<node TEXT="Export Translations" ID="ID_426003495" CREATED="1683390537398" MODIFIED="1683390537398" LINK="menuitem:_addons.devtools.exportTranslations_on_single_node"/>
<node TEXT="Import Translations" ID="ID_1933654428" CREATED="1683390537398" MODIFIED="1683390537398" LINK="menuitem:_addons.devtools.importTranslations_on_single_node"/>
</node>
</node>
</map>