mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-31 23:26:18 +00:00
Use the dependents and parent-plugin fields to automatically install dependencies
This commit is contained in:
parent
58f1eb77bd
commit
e752ba7c6a
@ -5,6 +5,13 @@ subtitle: {{$:/core/images/download-button}} {{$:/language/ControlPanel/Plugins/
|
|||||||
<div>
|
<div>
|
||||||
<$button class={{{ [<assetInfo>get[original-title]get[version]then[tc-reinstall]] tc-btn-invisible tc-install-plugin +[join[ ]] }}}>
|
<$button class={{{ [<assetInfo>get[original-title]get[version]then[tc-reinstall]] tc-btn-invisible tc-install-plugin +[join[ ]] }}}>
|
||||||
<$action-sendmessage $message="tm-load-plugin-from-library" url={{!!url}} title={{$(assetInfo)$!!original-title}}/>
|
<$action-sendmessage $message="tm-load-plugin-from-library" url={{!!url}} title={{$(assetInfo)$!!original-title}}/>
|
||||||
|
<$set name="url" value={{!!url}}>
|
||||||
|
<$set name="currentTiddler" value=<<assetInfo>>>
|
||||||
|
<$list filter="[enlist{!!dependents}] [{!!parent-plugin}] +[sort[title]]" variable="dependency">
|
||||||
|
<$action-sendmessage $message="tm-load-plugin-from-library" url=<<url>> title=<<dependency>>/>
|
||||||
|
</$list>
|
||||||
|
</$set>
|
||||||
|
</$set>
|
||||||
{{$:/core/images/download-button}}
|
{{$:/core/images/download-button}}
|
||||||
<$list filter="[<assetInfo>get[original-title]get[version]]" variable="installedVersion" emptyMessage="""{{$:/language/ControlPanel/Plugins/Install/Caption}}""">
|
<$list filter="[<assetInfo>get[original-title]get[version]]" variable="installedVersion" emptyMessage="""{{$:/language/ControlPanel/Plugins/Install/Caption}}""">
|
||||||
{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}
|
{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}
|
||||||
@ -57,6 +64,16 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
|
|||||||
{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}
|
{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}
|
||||||
</em>
|
</em>
|
||||||
</$list>
|
</$list>
|
||||||
|
<$set name="currentTiddler" value=<<assetInfo>>>
|
||||||
|
<$list filter="[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]]" variable="ignore">
|
||||||
|
<div>
|
||||||
|
Also requires:
|
||||||
|
<$list filter="[enlist{!!dependents}] [{!!parent-plugin}] +[sort[title]]" variable="dependency">
|
||||||
|
<$text text=<<dependency>>/>
|
||||||
|
</$list>
|
||||||
|
</div>
|
||||||
|
</$list>
|
||||||
|
</$set>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-plugin-info-dropdown-body">
|
<div class="tc-plugin-info-dropdown-body">
|
||||||
<$transclude tiddler=<<assetInfo>> field="readme" mode="block"/>
|
<$transclude tiddler=<<assetInfo>> field="readme" mode="block"/>
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
"title": "$:/plugins/tiddlywiki/aws",
|
"title": "$:/plugins/tiddlywiki/aws",
|
||||||
"name": "AWS",
|
"name": "AWS",
|
||||||
"description": "Amazon Web Services extensions and tools",
|
"description": "Amazon Web Services extensions and tools",
|
||||||
"list": "readme setup commands lambda"
|
"list": "readme setup commands lambda",
|
||||||
|
"dependents": ["$:/plugins/tiddlywiki/async","$:/plugins/tiddlywiki/jszip"]
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
"title": "$:/plugins/tiddlywiki/text-slicer",
|
"title": "$:/plugins/tiddlywiki/text-slicer",
|
||||||
"name": "Text Slicer",
|
"name": "Text Slicer",
|
||||||
"description": "Tools for slicing text into tiddlers",
|
"description": "Tools for slicing text into tiddlers",
|
||||||
"list": "readme docs"
|
"list": "readme docs",
|
||||||
|
"dependents": ["$:/plugins/tiddlywiki/sax"]
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
"title": "$:/plugins/tiddlywiki/xlsx-utils",
|
"title": "$:/plugins/tiddlywiki/xlsx-utils",
|
||||||
"name": "XLSX Utils",
|
"name": "XLSX Utils",
|
||||||
"description": "XLSX spreadsheet utilities",
|
"description": "XLSX spreadsheet utilities",
|
||||||
"list": "readme controls license"
|
"list": "readme controls license",
|
||||||
|
"dependents": ["$:/plugins/tiddlywiki/jszip"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user