mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-19 00:04:51 +00:00
1 line
11 KiB
JSON
1 line
11 KiB
JSON
|
{"tiddlers":{"$:/plugins/wikilabs/link-to-tabs/config":{"title":"$:/plugins/wikilabs/link-to-tabs/config","created":"20190712133008077","initial-opacity":"0.7","modified":"20190714104541701","show-all-links":"none","show-single-link":"inline-block","transition":"0.3","type":"text/vnd.tiddlywiki","text":"This tiddler is used to configure the \"Link-to-tabs\" plugin behaviour. \n\nThere are 4 fields, which are used by [[$:/plugins/wikilabs/link-to-tabs/styles]] enable and disable the internal links. \n\n* show-all-links: {{!!show-all-links}}\n* show-single-link: {{!!show-single-link}}\n* initial-opacity: {{!!initial-opacity}}\n* transition time in seconds: {{!!transition}}\n"},"$:/core/macros/tabs":{"title":"$:/core/macros/tabs","tags":"$:/tags/Macro","text":"\\define tabs-button()\n\\whitespace trim\n<$button\n\tset=<<tabsState>>\n\tsetTo=<<currentTab>>\n\tdefault=<<__default__>>\n\tselectedClass=\"tc-tab-selected\"\n\ttooltip={{!!tooltip}}\n\trole=\"switch\"\n\tdata-tab-title=<<currentTab>>\n>\n\t<$tiddler tiddler=<<save-currentTiddler>>>\n\t\t<$set name=\"tv-wikilinks\" value=\"no\">\n\t\t\t<$transclude tiddler=<<__buttonTemplate__>> mode=\"inline\">\n\t\t\t\t<$transclude tiddler=<<currentTab>> field=\"caption\">\n\t\t\t\t\t<$macrocall $name=\"currentTab\" $type=\"text/plain\" $output=\"text/plain\"/>\n\t\t\t\t</$transclude>\n\t\t\t</$transclude>\n\t\t</$set>\n\t</$tiddler>\n\t<<__actions__>>\n</$button>\n\\end\n\n\\define link-action(message:\"tm-navigate\" icon:\"$:/core/images/link\")\n\\whitespace trim\n<$linkcatcher message=<<__message__>> >\n\t<$link overrideClass=\"\" to=<<currentTiddler>> >\n\t\t<$transclude $tiddler=<<__icon__>>/>\n\t</$link>\n</$linkcatcher>\n\\end\n\n\\define tabs-tab-indicator()\n\\whitespace trim\n<$let pluginTab=`$(save-currentTiddler)$/$(currentTiddler)$`\n\tcurrentTiddler=`${[<plugin-info>!is[blank]then<pluginTab>else<currentTiddler>]}$`\n>\n\t<span class=\"wltc-link-to-tab\">\n\t\t<% if [all[current]!is[shadow]] :filter[[$:/plugins/wikilabs/link-to-tabs/config]get[link-action]match[tm-edit-tiddler]] %>\n\t\t\t<<link-action message:\"tm-edit-tiddler\" icon:\"$:/core/images/edit-button\">>\n\t\t<% elseif [all[current]is[tiddler]] :filter[[$:/plugins/wikilabs/link-to-tabs/config]get[shadow-action]match[tm-edit-tiddler]] %>\n\t\t\t<<link-action message:\"tm-edit-tiddler\" icon:\"$:/core/images/edit-button\">>\n\t\t<% else %>\n\t\t\t<<link-action>>\n\t\t<% endif %>\n\t</span>\n</$let>\n\\end\n\n\\define tabs-tab()\n\\whitespace trim\n<$set name=\"save-currentTiddler\" value=<<currentTiddler>>>\n\t<$tiddler tiddler=<<currentTab>>>\n\t\t<<tabs-button>>\n\t\t<<tabs-tab-indicator>>\n\t</$tiddler>\n</$set>\n\\end\n\n\\define tabs-tab-list()\n\\whitespace trim\n<$list filter=<<__tabsList__>> variable=\"currentTab\" storyview=\"pop\">\n\t<$set name=getCondition filter=\"[<currentTab>get[condition]]\">\n\t\t<$list\n\t\t\tfilter=\"[<currentTab>has[condition]subfilter<getCondition>limit[1]] ~[<currentTab>!has[condition]then[true]]\"\n\t\t\tvariable=\"ignore\"\n\t\t>\n\t\t\t<<tabs-tab>>\n\t\t</$list>\n\t</$set>\n</$list>\n\\end\n\n\\define tabs-tab-body()\n\\whitespace trim\n<$list filter=<<__tabsList__>> variable=\"currentTab\">\n\t<$set name=getCondition filter=\"[<currentTab>get[condition]]\">\n\t\t<$list\n\t\t\tfilter=\"[<currentTab>has[condition]subfilter<getCondition>limit[1]] ~[<currentTab>!has[condition]then[true]]\"\n\t\t\tvariable=\"ignore\"\n\t\t>\n\t\t\t<$reveal type=\"match\" state=<<tabsState>> text=<<currentTab>> default=<<__default__>> retain=<<__retain__>> tag=\"div\">\n\t\t\t\t<$transclude tiddler=<<__template__>> mode=\"block\">\n\t\t\t\t\t<$transclude tiddler=<<currentTab>> mode=\"block\"/>\n\t\t\t\t</$transclude>\n\t\t\t</$reveal>\n\t\t</$list>\n\t</$set>\n</$list>\n\\end\n\n\\define tabs(tabsList,default,state:\"$:/state/tab\",class,template,buttonTemplate,retain,actions,explicitState)\n\\whitespace trim\n<$qualify title=<<__state__>> name=\"qualifiedState\">\n\t<$let tabsState={{{ [<__explicitState__>minlength[1]] ~[<qualifiedState>] }}}>\n\t\t<div class={{{ [[tc-tab-set]addsuff
|