mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-06-06 00:29:12 +02:00
OcttKB Cross-Repo Sync (HTML to Raw)
This commit is contained in:
199
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Buttons/CC BY-SA.svg
vendored
Normal file
199
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Buttons/CC BY-SA.svg
vendored
Normal file
@@ -0,0 +1,199 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://web.resource.org/cc/"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="120"
|
||||
height="42"
|
||||
id="svg2759"
|
||||
sodipodi:version="0.32"
|
||||
inkscape:version="0.45+devel"
|
||||
version="1.0"
|
||||
sodipodi:docname="by-sa.svg"
|
||||
inkscape:output_extension="org.inkscape.output.svg.inkscape">
|
||||
<defs
|
||||
id="defs2761" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#8b8b8b"
|
||||
borderopacity="1"
|
||||
gridtolerance="10000"
|
||||
guidetolerance="10"
|
||||
objecttolerance="10"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1"
|
||||
inkscape:cx="179"
|
||||
inkscape:cy="89.569904"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
width="120px"
|
||||
height="42px"
|
||||
inkscape:showpageshadow="false"
|
||||
inkscape:window-width="1198"
|
||||
inkscape:window-height="624"
|
||||
inkscape:window-x="488"
|
||||
inkscape:window-y="401" />
|
||||
<metadata
|
||||
id="metadata2764">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<g
|
||||
transform="matrix(0.9937807,0,0,0.9936694,-177.69409,-74.436409)"
|
||||
id="g287"
|
||||
inkscape:export-filename="/mnt/hgfs/Bov/Documents/Work/2007/cc/identity/srr buttons/big/by-sa.png"
|
||||
inkscape:export-xdpi="300.23013"
|
||||
inkscape:export-ydpi="300.23013">
|
||||
<path
|
||||
id="path3817_2_"
|
||||
nodetypes="ccccccc"
|
||||
d="M 182.23532,75.39014 L 296.29928,75.59326 C 297.89303,75.59326 299.31686,75.35644 299.31686,78.77344 L 299.17721,116.34033 L 179.3569,116.34033 L 179.3569,78.63379 C 179.3569,76.94922 179.51999,75.39014 182.23532,75.39014 z"
|
||||
style="fill:#aab2ab" />
|
||||
|
||||
<g
|
||||
id="g5908_2_"
|
||||
transform="matrix(0.872921,0,0,0.872921,50.12536,143.2144)">
|
||||
|
||||
<path
|
||||
id="path5906_2_"
|
||||
cx="296.35416"
|
||||
ry="22.939548"
|
||||
cy="264.3577"
|
||||
type="arc"
|
||||
rx="22.939548"
|
||||
d="M 187.20944,-55.6792 C 187.21502,-46.99896 180.18158,-39.95825 171.50134,-39.95212 C 162.82113,-39.94708 155.77929,-46.97998 155.77426,-55.66016 C 155.77426,-55.66687 155.77426,-55.67249 155.77426,-55.6792 C 155.76922,-64.36054 162.80209,-71.40125 171.48233,-71.40631 C 180.16367,-71.41193 187.20441,-64.37842 187.20944,-55.69824 C 187.20944,-55.69263 187.20944,-55.68591 187.20944,-55.6792 z"
|
||||
style="fill:#ffffff" />
|
||||
|
||||
<g
|
||||
id="g5706_2_"
|
||||
transform="translate(-289.6157,99.0653)">
|
||||
<path
|
||||
id="path5708_2_"
|
||||
d="M 473.88455,-167.54724 C 477.36996,-164.06128 479.11294,-159.79333 479.11294,-154.74451 C 479.11294,-149.69513 477.40014,-145.47303 473.9746,-142.07715 C 470.33929,-138.50055 466.04281,-136.71283 461.08513,-136.71283 C 456.18736,-136.71283 451.96526,-138.48544 448.42003,-142.03238 C 444.87419,-145.57819 443.10158,-149.81537 443.10158,-154.74451 C 443.10158,-159.6731 444.87419,-163.94049 448.42003,-167.54724 C 451.87523,-171.03375 456.09728,-172.77618 461.08513,-172.77618 C 466.13342,-172.77618 470.39914,-171.03375 473.88455,-167.54724 z M 450.76657,-165.20239 C 447.81982,-162.22601 446.34701,-158.7395 446.34701,-154.74005 C 446.34701,-150.7417 447.80529,-147.28485 450.72125,-144.36938 C 453.63778,-141.45288 457.10974,-139.99462 461.1383,-139.99462 C 465.16683,-139.99462 468.66848,-141.46743 471.64486,-144.41363 C 474.47076,-147.14947 475.88427,-150.59069 475.88427,-154.74005 C 475.88427,-158.85809 474.44781,-162.35297 471.57659,-165.22479 C 468.70595,-168.09546 465.22671,-169.53131 461.1383,-169.53131 C 457.04993,-169.53131 453.59192,-168.08813 450.76657,-165.20239 z M 458.52106,-156.49927 C 458.07074,-157.4809 457.39673,-157.9715 456.49781,-157.9715 C 454.90867,-157.9715 454.11439,-156.90198 454.11439,-154.763 C 454.11439,-152.62341 454.90867,-151.55389 456.49781,-151.55389 C 457.54719,-151.55389 458.29676,-152.07519 458.74647,-153.11901 L 460.94923,-151.94598 C 459.8993,-150.0805 458.32417,-149.14697 456.22374,-149.14697 C 454.60384,-149.14697 453.30611,-149.64367 452.33168,-150.63653 C 451.35561,-151.62994 450.86894,-152.99926 450.86894,-154.7445 C 450.86894,-156.46008 451.37123,-157.82159 452.37642,-158.83013 C 453.38161,-159.83806 454.63347,-160.34264 456.13423,-160.34264 C 458.35435,-160.34264 459.94407,-159.46776 460.90504,-157.71978 L 458.52106,-156.49927 z M 468.8844,-156.49927 C 468.43353,-157.4809 467.77292,-157.9715 466.90201,-157.9715 C 465.28095,-157.9715 464.46988,-156.90198 464.46988,-154.763 C 464.46988,-152.62341 465.28095,-151.55389 466.90201,-151.55389 C 467.95304,-151.55389 468.68918,-152.07519 469.10925,-153.11901 L 471.36126,-151.94598 C 470.31301,-150.0805 468.74007,-149.14697 466.64358,-149.14697 C 465.02587,-149.14697 463.73095,-149.64367 462.75711,-150.63653 C 461.78494,-151.62994 461.29773,-152.99926 461.29773,-154.7445 C 461.29773,-156.46008 461.79221,-157.82159 462.78061,-158.83013 C 463.76843,-159.83806 465.02588,-160.34264 466.55408,-160.34264 C 468.77027,-160.34264 470.35776,-159.46776 471.3154,-157.71978 L 468.8844,-156.49927 z" />
|
||||
|
||||
</g>
|
||||
|
||||
</g>
|
||||
|
||||
<path
|
||||
d="M 297.29639,74.91064 L 181.06688,74.91064 C 179.8203,74.91064 178.80614,75.92529 178.80614,77.17187 L 178.80614,116.66748 C 178.80614,116.94922 179.03466,117.17822 179.31639,117.17822 L 299.04639,117.17822 C 299.32813,117.17822 299.55713,116.94922 299.55713,116.66748 L 299.55713,77.17188 C 299.55713,75.92529 298.54297,74.91064 297.29639,74.91064 z M 181.06688,75.93213 L 297.29639,75.93213 C 297.97998,75.93213 298.53565,76.48828 298.53565,77.17188 C 298.53565,77.17188 298.53565,93.09131 298.53565,104.59034 L 215.4619,104.59034 C 212.41698,110.09571 206.55077,113.83399 199.81835,113.83399 C 193.083,113.83399 187.21825,110.09913 184.1748,104.59034 L 179.82666,104.59034 C 179.82666,93.09132 179.82666,77.17188 179.82666,77.17188 C 179.82664,76.48828 180.38329,75.93213 181.06688,75.93213 z"
|
||||
id="path294" />
|
||||
|
||||
<g
|
||||
enable-background="new "
|
||||
id="g296">
|
||||
<path
|
||||
d="M 265.60986,112.8833 C 265.68994,113.03906 265.79736,113.16504 265.93115,113.26172 C 266.06494,113.35791 266.22119,113.42969 266.40088,113.47608 C 266.58154,113.52296 266.76807,113.54639 266.96045,113.54639 C 267.09033,113.54639 267.22998,113.53565 267.3794,113.51368 C 267.52784,113.4922 267.66749,113.44972 267.79835,113.3877 C 267.92823,113.32569 268.03761,113.23975 268.12355,113.13086 C 268.21144,113.02197 268.25441,112.88379 268.25441,112.71533 C 268.25441,112.53515 268.19679,112.38916 268.08156,112.27685 C 267.9673,112.16455 267.81594,112.07177 267.62941,111.99658 C 267.44386,111.92236 267.23195,111.85693 266.9966,111.80078 C 266.76027,111.74463 266.52101,111.68262 266.27883,111.61377 C 266.02981,111.55176 265.78762,111.47559 265.55129,111.38525 C 265.31594,111.29541 265.10402,111.17822 264.9175,111.03515 C 264.73098,110.89208 264.58059,110.71337 264.46535,110.49853 C 264.35109,110.28369 264.29347,110.02392 264.29347,109.71923 C 264.29347,109.37646 264.36671,109.07958 264.51222,108.82763 C 264.6587,108.57568 264.85011,108.36572 265.08644,108.19726 C 265.32179,108.02929 265.58937,107.90478 265.8882,107.82372 C 266.18605,107.74315 266.48488,107.70263 266.78273,107.70263 C 267.13136,107.70263 267.46535,107.74169 267.78566,107.81982 C 268.105,107.89746 268.39015,108.02392 268.6382,108.19824 C 268.88722,108.37256 269.08449,108.59521 269.23097,108.86621 C 269.37648,109.13721 269.44972,109.46582 269.44972,109.85156 L 268.02784,109.85156 C 268.01514,109.65234 267.97315,109.4873 267.90284,109.35693 C 267.83155,109.22607 267.73682,109.12353 267.61964,109.04834 C 267.50148,108.97412 267.36671,108.9209 267.21534,108.89014 C 267.063,108.85889 266.89796,108.84326 266.71827,108.84326 C 266.60108,108.84326 266.48292,108.85596 266.36573,108.88037 C 266.24757,108.90576 266.14112,108.94922 266.04542,109.01123 C 265.94874,109.07373 265.86964,109.15137 265.80812,109.24463 C 265.7466,109.33838 265.71535,109.45654 265.71535,109.59961 C 265.71535,109.73047 265.73976,109.83643 265.78957,109.91699 C 265.83937,109.99804 265.93801,110.07275 266.08352,110.14111 C 266.22903,110.20947 266.43118,110.27832 266.68899,110.34668 C 266.9468,110.41504 267.28372,110.50244 267.70071,110.60791 C 267.82473,110.63281 267.99661,110.67822 268.21731,110.74365 C 268.43801,110.80908 268.65676,110.91308 268.87454,111.05615 C 269.09231,111.1997 269.27981,111.39111 269.43899,111.63037 C 269.59719,111.87012 269.67629,112.17676 269.67629,112.55029 C 269.67629,112.85547 269.61672,113.13867 269.49856,113.3999 C 269.3804,113.66162 269.20461,113.8872 268.97122,114.07666 C 268.73782,114.26709 268.44876,114.41455 268.10403,114.52051 C 267.75833,114.62647 267.35794,114.6792 266.90481,114.6792 C 266.53762,114.6792 266.18118,114.63379 265.83547,114.54346 C 265.49074,114.45313 265.18508,114.31104 264.92043,114.11768 C 264.65676,113.92432 264.4468,113.67774 264.29055,113.37891 C 264.13528,113.07959 264.06106,112.7251 264.06692,112.31397 L 265.4888,112.31397 C 265.48877,112.53809 265.52881,112.72803 265.60986,112.8833 z"
|
||||
id="path298"
|
||||
style="fill:#ffffff" />
|
||||
|
||||
<path
|
||||
d="M 273.8667,107.8667 L 276.35986,114.53076 L 274.8374,114.53076 L 274.33349,113.04638 L 271.84033,113.04638 L 271.31787,114.53076 L 269.84326,114.53076 L 272.36377,107.8667 L 273.8667,107.8667 z M 273.95068,111.95264 L 273.11084,109.50928 L 273.09229,109.50928 L 272.22315,111.95264 L 273.95068,111.95264 z"
|
||||
id="path300"
|
||||
style="fill:#ffffff" />
|
||||
|
||||
</g>
|
||||
|
||||
<g
|
||||
enable-background="new "
|
||||
id="g302">
|
||||
<path
|
||||
d="M 239.17821,107.8667 C 239.49559,107.8667 239.78563,107.89502 240.04735,107.95068 C 240.30907,108.00683 240.53368,108.09863 240.72118,108.22607 C 240.9077,108.35351 241.05321,108.52295 241.15575,108.73437 C 241.25829,108.94579 241.31005,109.20703 241.31005,109.51806 C 241.31005,109.854 241.23388,110.13329 241.08056,110.35742 C 240.92822,110.58154 240.70165,110.76465 240.40283,110.90771 C 240.81494,111.02587 241.12256,111.23291 241.32568,111.5288 C 241.5288,111.82469 241.63037,112.18114 241.63037,112.59814 C 241.63037,112.93408 241.56494,113.22509 241.43408,113.47119 C 241.30322,113.7168 241.12646,113.91748 240.90576,114.07324 C 240.68408,114.229 240.43115,114.34424 240.14795,114.41845 C 239.86377,114.49365 239.57275,114.53075 239.27295,114.53075 L 236.03662,114.53075 L 236.03662,107.86669 L 239.17821,107.86669 L 239.17821,107.8667 z M 238.99071,110.56201 C 239.25243,110.56201 239.46727,110.5 239.63622,110.37597 C 239.80419,110.25146 239.88817,110.05029 239.88817,109.77099 C 239.88817,109.61572 239.85985,109.48828 239.80419,109.38915 C 239.74755,109.28954 239.67333,109.21239 239.57958,109.15624 C 239.48583,109.10058 239.37841,109.06151 239.25731,109.04003 C 239.13524,109.01806 239.00926,109.00732 238.8784,109.00732 L 237.50535,109.00732 L 237.50535,110.56201 L 238.99071,110.56201 z M 239.07664,113.39014 C 239.22019,113.39014 239.35691,113.37647 239.48777,113.34815 C 239.61863,113.32032 239.73484,113.27344 239.83445,113.2085 C 239.93406,113.14307 240.01316,113.0542 240.07273,112.94239 C 240.1323,112.83058 240.1616,112.68751 240.1616,112.51319 C 240.1616,112.17139 240.06492,111.92725 239.87156,111.78126 C 239.6782,111.63527 239.42234,111.56202 239.10496,111.56202 L 237.50535,111.56202 L 237.50535,113.39014 L 239.07664,113.39014 z"
|
||||
id="path304"
|
||||
style="fill:#ffffff" />
|
||||
|
||||
<path
|
||||
d="M 241.88914,107.8667 L 243.53269,107.8667 L 245.09324,110.49854 L 246.64402,107.8667 L 248.27781,107.8667 L 245.80418,111.97315 L 245.80418,114.53077 L 244.33543,114.53077 L 244.33543,111.93604 L 241.88914,107.8667 z"
|
||||
id="path306"
|
||||
style="fill:#ffffff" />
|
||||
|
||||
</g>
|
||||
|
||||
<g
|
||||
id="g6316_1_"
|
||||
transform="matrix(0.624995,0,0,0.624995,391.2294,176.9332)">
|
||||
|
||||
<path
|
||||
id="path6318_1_"
|
||||
cx="475.97119"
|
||||
ry="29.209877"
|
||||
cy="252.08646"
|
||||
type="arc"
|
||||
rx="29.209877"
|
||||
d="M -175.0083,-139.1153 C -175.00204,-129.7035 -182.62555,-122.06751 -192.03812,-122.06049 C -201.44913,-122.05341 -209.08512,-129.67774 -209.09293,-139.09028 C -209.09293,-139.09809 -209.09293,-139.10749 -209.09293,-139.1153 C -209.09919,-148.52784 -201.47413,-156.1623 -192.06311,-156.17011 C -182.65054,-156.17713 -175.01456,-148.55207 -175.0083,-139.14026 C -175.0083,-139.13092 -175.0083,-139.1239 -175.0083,-139.1153 z"
|
||||
style="fill:#ffffff" />
|
||||
|
||||
<g
|
||||
id="g6320_1_"
|
||||
transform="translate(-23.9521,-89.72962)">
|
||||
<path
|
||||
id="path6322_1_"
|
||||
d="M -168.2204,-68.05536 C -173.39234,-68.05536 -177.76892,-66.25067 -181.35175,-62.64203 C -185.02836,-58.90759 -186.86588,-54.48883 -186.86588,-49.38568 C -186.86588,-44.28253 -185.02836,-39.89416 -181.35175,-36.22308 C -177.67673,-32.55114 -173.29859,-30.71521 -168.2204,-30.71521 C -163.07974,-30.71521 -158.62503,-32.56677 -154.85312,-36.26996 C -151.30307,-39.78558 -149.52652,-44.15827 -149.52652,-49.38568 C -149.52652,-54.6123 -151.33432,-59.03265 -154.94843,-62.64203 C -158.5625,-66.25067 -162.98599,-68.05536 -168.2204,-68.05536 z M -168.17352,-64.69519 C -163.936,-64.69519 -160.33752,-63.20221 -157.37655,-60.21466 C -154.38748,-57.25836 -152.89214,-53.64899 -152.89214,-49.38568 C -152.89214,-45.09186 -154.35466,-41.52856 -157.28438,-38.69653 C -160.36876,-35.64727 -163.99849,-34.12304 -168.17351,-34.12304 C -172.34856,-34.12304 -175.94701,-35.63244 -178.96892,-38.64965 C -181.9908,-41.66918 -183.50176,-45.24657 -183.50176,-49.38567 C -183.50176,-53.52398 -181.97518,-57.13414 -178.92205,-60.21465 C -175.9939,-63.20221 -172.41107,-64.69519 -168.17352,-64.69519 z" />
|
||||
|
||||
<path
|
||||
id="path6324_1_"
|
||||
d="M -176.49548,-52.02087 C -175.75171,-56.71856 -172.44387,-59.22949 -168.30008,-59.22949 C -162.33911,-59.22949 -158.70783,-54.90448 -158.70783,-49.1372 C -158.70783,-43.50982 -162.57194,-39.13793 -168.39383,-39.13793 C -172.39856,-39.13793 -175.98297,-41.60277 -176.63611,-46.43877 L -171.93292,-46.43877 C -171.7923,-43.92778 -170.1626,-43.04418 -167.83447,-43.04418 C -165.1813,-43.04418 -163.4563,-45.50908 -163.4563,-49.27709 C -163.4563,-53.22942 -164.94693,-55.32244 -167.74228,-55.32244 C -169.79074,-55.32244 -171.55948,-54.57787 -171.93292,-52.02087 L -170.56418,-52.02789 L -174.26734,-48.32629 L -177.96894,-52.02789 L -176.49548,-52.02087 z" />
|
||||
|
||||
</g>
|
||||
|
||||
</g>
|
||||
|
||||
<g
|
||||
id="g313">
|
||||
<circle
|
||||
cx="242.56226"
|
||||
cy="90.224609"
|
||||
r="10.8064"
|
||||
id="circle315"
|
||||
sodipodi:cx="242.56226"
|
||||
sodipodi:cy="90.224609"
|
||||
sodipodi:rx="10.8064"
|
||||
sodipodi:ry="10.8064"
|
||||
style="fill:#ffffff" />
|
||||
|
||||
<g
|
||||
id="g317">
|
||||
<path
|
||||
d="M 245.68994,87.09766 C 245.68994,86.68116 245.35205,86.34424 244.93603,86.34424 L 240.16357,86.34424 C 239.74755,86.34424 239.40966,86.68115 239.40966,87.09766 L 239.40966,91.87061 L 240.74071,91.87061 L 240.74071,97.52295 L 244.3579,97.52295 L 244.3579,91.87061 L 245.68993,91.87061 L 245.68993,87.09766 L 245.68994,87.09766 z"
|
||||
id="path319" />
|
||||
|
||||
<circle
|
||||
cx="242.5498"
|
||||
cy="84.083008"
|
||||
r="1.63232"
|
||||
id="circle321"
|
||||
sodipodi:cx="242.5498"
|
||||
sodipodi:cy="84.083008"
|
||||
sodipodi:rx="1.63232"
|
||||
sodipodi:ry="1.63232" />
|
||||
|
||||
</g>
|
||||
|
||||
<path
|
||||
clip-rule="evenodd"
|
||||
d="M 242.53467,78.31836 C 239.30322,78.31836 236.56641,79.4458 234.32715,81.70215 C 232.0293,84.03516 230.88086,86.79736 230.88086,89.98633 C 230.88086,93.1753 232.0293,95.91846 234.32715,98.21338 C 236.625,100.50781 239.36133,101.65527 242.53467,101.65527 C 245.74756,101.65527 248.53272,100.49853 250.88819,98.18359 C 253.10889,95.98681 254.21827,93.2539 254.21827,89.98632 C 254.21827,86.71874 253.08936,83.95751 250.83057,81.70214 C 248.57178,79.4458 245.80615,78.31836 242.53467,78.31836 z M 242.56396,80.41797 C 245.2124,80.41797 247.46142,81.35156 249.31103,83.21875 C 251.18115,85.06592 252.11572,87.32227 252.11572,89.98633 C 252.11572,92.66992 251.20068,94.89746 249.36963,96.66699 C 247.4419,98.57275 245.17334,99.52539 242.56397,99.52539 C 239.9546,99.52539 237.70557,98.58252 235.81739,96.6958 C 233.92774,94.80957 232.98389,92.57324 232.98389,89.98633 C 232.98389,87.3999 233.93799,85.14404 235.84619,83.21875 C 237.67676,81.35156 239.9165,80.41797 242.56396,80.41797 z"
|
||||
id="path323"
|
||||
style="fill-rule:evenodd" />
|
||||
|
||||
</g>
|
||||
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 16 KiB |
5
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Buttons/CC BY-SA.svg.meta
vendored
Normal file
5
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Buttons/CC BY-SA.svg.meta
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
created: 20230112093455880
|
||||
modified: 20230112093619499
|
||||
tags:
|
||||
title: $:/ThirdParty/Buttons/CC BY-SA.svg
|
||||
type: image/svg+xml
|
12
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Eruda-Inject.bkjs.js
vendored
Normal file
12
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Eruda-Inject.bkjs.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
javascript:(
|
||||
function () {
|
||||
if (!document.getElementById('eruda-main')) {
|
||||
var elem = document.createElement('script');
|
||||
elem.id = 'eruda-main';
|
||||
elem.src = 'https://cdn.jsdelivr.net/npm/eruda';
|
||||
document.body.appendChild(elem);
|
||||
elem.onload = function () {
|
||||
eruda.init();
|
||||
};
|
||||
};
|
||||
})();
|
7
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Eruda-Inject.bkjs.js.meta
vendored
Normal file
7
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Eruda-Inject.bkjs.js.meta
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
created: 20230124104309854
|
||||
creator: Octt
|
||||
modified: 20230124111834928
|
||||
modifier: Octt
|
||||
tags:
|
||||
title: $:/ThirdParty/Eruda-Inject.bkjs
|
||||
type: application/javascript
|
BIN
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Icons/Windows/9x-Start.png
vendored
Normal file
BIN
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Icons/Windows/9x-Start.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 278 B |
2
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Icons/Windows/9x-Start.png.meta
vendored
Normal file
2
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Icons/Windows/9x-Start.png.meta
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
title: $:/ThirdParty/Icons/Windows/9x-Start.png
|
||||
type: image/png
|
103
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Libs/color-thief.js
vendored
Normal file
103
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Libs/color-thief.js
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
/**
|
||||
* Source Code: <https://github.com/lokesh/color-thief>
|
||||
* License (MIT): <https://raw.githubusercontent.com/lokesh/color-thief/master/LICENSE>
|
||||
**/
|
||||
|
||||
const getPixels = require('get-pixels');
|
||||
const quantize = require('quantize');
|
||||
|
||||
function createPixelArray(imgData, pixelCount, quality) {
|
||||
const pixels = imgData;
|
||||
const pixelArray = [];
|
||||
|
||||
for (let i = 0, offset, r, g, b, a; i < pixelCount; i = i + quality) {
|
||||
offset = i * 4;
|
||||
r = pixels[offset + 0];
|
||||
g = pixels[offset + 1];
|
||||
b = pixels[offset + 2];
|
||||
a = pixels[offset + 3];
|
||||
|
||||
// If pixel is mostly opaque and not white
|
||||
if (typeof a === 'undefined' || a >= 125) {
|
||||
if (!(r > 250 && g > 250 && b > 250)) {
|
||||
pixelArray.push([r, g, b]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return pixelArray;
|
||||
}
|
||||
|
||||
function validateOptions(options) {
|
||||
let { colorCount, quality } = options;
|
||||
|
||||
if (typeof colorCount === 'undefined' || !Number.isInteger(colorCount)) {
|
||||
colorCount = 10;
|
||||
} else if (colorCount === 1 ) {
|
||||
throw new Error('colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()');
|
||||
} else {
|
||||
colorCount = Math.max(colorCount, 2);
|
||||
colorCount = Math.min(colorCount, 20);
|
||||
}
|
||||
|
||||
if (typeof quality === 'undefined' || !Number.isInteger(quality) || quality < 1) {
|
||||
quality = 10;
|
||||
}
|
||||
|
||||
return {
|
||||
colorCount,
|
||||
quality
|
||||
}
|
||||
}
|
||||
|
||||
function loadImg(img) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getPixels(img, function(err, data) {
|
||||
if(err) {
|
||||
reject(err)
|
||||
} else {
|
||||
resolve(data);
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
function getColor(img, quality) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getPalette(img, 5, quality)
|
||||
.then(palette => {
|
||||
resolve(palette[0]);
|
||||
})
|
||||
.catch(err => {
|
||||
reject(err);
|
||||
})
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function getPalette(img, colorCount = 10, quality = 10) {
|
||||
const options = validateOptions({
|
||||
colorCount,
|
||||
quality
|
||||
});
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
loadImg(img)
|
||||
.then(imgData => {
|
||||
const pixelCount = imgData.shape[0] * imgData.shape[1];
|
||||
const pixelArray = createPixelArray(imgData.data, pixelCount, options.quality);
|
||||
|
||||
const cmap = quantize(pixelArray, options.colorCount);
|
||||
const palette = cmap? cmap.palette() : null;
|
||||
|
||||
resolve(palette);
|
||||
})
|
||||
.catch(err => {
|
||||
reject(err);
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getColor,
|
||||
getPalette
|
||||
};
|
5
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Libs/color-thief.js.meta
vendored
Normal file
5
Wiki-OcttKB/tiddlers/System/$/ThirdParty/Libs/color-thief.js.meta
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
created: 20221108154338291
|
||||
modified: 20221108154854376
|
||||
tags:
|
||||
title: $:/ThirdParty/Libs/color-thief.js
|
||||
type: application/javascript
|
67
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/Info.tid
vendored
Normal file
67
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/Info.tid
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
created: 20210719102404282
|
||||
modified: 20230109220740719
|
||||
tags: TiddlyTools
|
||||
title: $:/ThirdParty/TiddlyTools/FilterGenerators/Info
|
||||
|
||||
\define program() [prefix[$:/ThirdParty/TiddlyTools/FilterGenerators]] [[$:/ThirdParty/TiddlyTools/Macros/edit-list]] +[!sort[modified]]
|
||||
|
||||
\define import(tids)
|
||||
Drag this link to
|
||||
<$button class="tc-btn-invisible tc-tiddlylink" popup="$:/state/popup/$(currentTiddler)$/$tids$" dragFilter=<<$tids$>>>
|
||||
''import <$count filter=<<$tids$>>/> $tids$ tiddlers.''
|
||||
</$button>
|
||||
<$reveal type="popup" state="$:/state/popup/$(currentTiddler)$/$tids$" class="tc-drop-down" style="padding:1em;">
|
||||
<$list filter=<<$tids$>>><$link/></$list>
|
||||
</$reveal>
|
||||
\end
|
||||
|
||||
| author|''[ext[Eric Shulman|mailto:elsdesign@gmail.com]]''|
|
||||
| source|''http://TiddlyTools.com/filtergenerators.html''|
|
||||
| updated|''<$view field="modified" format="date" template="DDD, MMM DDth YYYY at 0hh12:0mm:0ssam"/>''|
|
||||
|
||||
<<import program>>
|
||||
|
||||
~TiddlyTools' ~FilterGenerators define several $:/AdvancedSearch addon tabs to provide a variety of specialized searches.
|
||||
|
||||
!! [[$:/ThirdParty/TiddlyTools/FilterGenerators/Titles]]
|
||||
<<<
|
||||
''Search for tiddler titles in selected types of tiddlers''
|
||||
|
||||
* Finds tiddlers that contain the specified text anywhere in their title
|
||||
* Select one or more types of tiddlers to search in:<br> tiddlers, shadows, system, tags, missing, orphans, images, binaries
|
||||
<<<
|
||||
|
||||
!! [[$:/ThirdParty/TiddlyTools/FilterGenerators/Tags]]
|
||||
<<<
|
||||
''Search for tiddlers using a combination of tags''
|
||||
|
||||
* Shows checkboxes for all tags in the file, including shadow tags
|
||||
* Select any combination of tags to search for
|
||||
* Shows results matching all tags (AND) and one or more tags (OR)
|
||||
<<<
|
||||
|
||||
!! [[$:/ThirdParty/TiddlyTools/FilterGenerators/TagCloud]]
|
||||
<<<
|
||||
''Display tags using proportional size based on the number of tiddlers for each tag''
|
||||
|
||||
* Select tags to include
|
||||
* Shows number of matching tiddlers on each tag "pill"
|
||||
* Sort results by tag title or number of matching tiddlers
|
||||
* options: min=minimum font size, step=font size increment, max=maximum font size, group=tag count cluster size
|
||||
<<<
|
||||
|
||||
!! [[$:/ThirdParty/TiddlyTools/FilterGenerators/PowerSearch]]
|
||||
<<<
|
||||
''Assemble a compound filter to search for matching tiddlers''
|
||||
<br>Requires: [[TiddlyTools/Macros/edit-list]]
|
||||
|
||||
* select types of tiddlers to search
|
||||
* include/exclude prefixes, suffixes or tags
|
||||
* find tiddlers that have a specific field (even if blank)
|
||||
* search in one or more specified fields
|
||||
* use flags to define the search criteria
|
||||
* sort results by any tiddler field
|
||||
* copy the assembled filter syntax to the clipboard
|
||||
* save assembled filters for later re-use
|
||||
* add/remove tags, clone/rename, export, or delete matching/selected tiddlers
|
||||
<<<
|
419
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/PowerSearch.tid
vendored
Normal file
419
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/PowerSearch.tid
vendored
Normal file
@@ -0,0 +1,419 @@
|
||||
caption: PowerSearch
|
||||
created: 20191212065707527
|
||||
creator: EricShulman
|
||||
modified: 20230109220559886
|
||||
modifier: EricShulman
|
||||
tags: $:/tags/AdvancedSearch TiddlyTools
|
||||
title: $:/ThirdParty/TiddlyTools/FilterGenerators/PowerSearch
|
||||
|
||||
\define config() $:/config/TiddlyTools/PowerSearch
|
||||
\define saved() $:/config/TiddlyTools/PowerSearch/SavedFilters/
|
||||
\define show() $:/config/TiddlyTools/PowerSearch!!show
|
||||
\define options() $:/state/popup/TiddlyTools/PowerSearch/options
|
||||
\define menu() $:/state/popup/TiddlyTools/PowerSearch/menu/
|
||||
|
||||
\define default_width() 15em
|
||||
\define default_columns() 1
|
||||
\define default_height() auto
|
||||
\define default_wrap() nowrap
|
||||
|
||||
\define styles()
|
||||
<style>
|
||||
.powersearch_table { border:0; padding:0; margin:0; float:left; margin-right:0.5em; }
|
||||
.powersearch_table tr { border:0; padding:0; margin:0; }
|
||||
.powersearch_table td { border:0; padding:2px; margin:0; }
|
||||
.powersearch_table .editlist_input { outline:none; }
|
||||
.powersearch_savedfilters { font-size:100%;line-height:1em;max-height:20em;overflow:auto; }
|
||||
.powersearch_optionwidth { width:4em !important; }
|
||||
.powersearch_checkboxwidth input { width:auto !important; }
|
||||
.powersearch_listitem { overflow:hidden;word-break:break-all;text-overflow:ellipsis; }
|
||||
.powersearch_modal .tc-modal-header { padding:0em 1em; }
|
||||
.powersearch_modal .tc-modal-body { padding:1em 1em 0.5em 1em; }
|
||||
.powersearch_modal .tc-modal-footer { padding:0.5em 1em; }
|
||||
.powersearch_modal .tc-modal-body p { margin:0; }
|
||||
</style>
|
||||
\end
|
||||
|
||||
\define get(index,filter,placeholder,multiple)
|
||||
\define filter() $filter$
|
||||
<$macrocall $name="edit" tiddler=<<config>> index="$index$" filter=<<filter>> width="$(width)$"
|
||||
confirm=<<confirm>> multiple="$multiple$" find="or" placeholder="$placeholder$"/>
|
||||
\end
|
||||
|
||||
\define edit(tiddler,index,width,confirm,multiple,filter,find,placeholder)
|
||||
\define filter() $filter$
|
||||
\define stip() enter/select a value
|
||||
\define mtip() enter/select all that apply (use ctrl-click or shift-click)
|
||||
<$list filter="[[edit-list]is[variable]]" variable="if_edit_list_installed">
|
||||
<$macrocall $name="edit-list" tiddler="$tiddler$" index="$index$" tooltip={{{ [[$multiple$]match[]then<stip>else<mtip>] }}}
|
||||
width="$width$" listwidth="fit" fontsize="100%" focusPopup={{{ [<filter>!match[]then[yes]] }}}
|
||||
confirm="$confirm$" multiple="$multiple$" filter=<<filter>> find="$find$" placeholder="$placeholder$"/>
|
||||
</$list>
|
||||
<$list filter="[[edit-list]!is[variable]]" variable="fallback_no_edit_list">
|
||||
<style> .powersearch_inputwidth { width:$width$; } </style>
|
||||
<span title={{{ [[$multiple$]match[]then<stip>else<mtip>search-replace[/select],[]search-replace[use ctrl-click or shift-click],[space separated]] }}}>
|
||||
<$edit-text class="powersearch_inputwidth" tag="input"
|
||||
tiddler="$tiddler$" field="text" index="$index$" default="" placeholder="$placeholder$"/>
|
||||
</span>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define shadowList(prefix: "$:/",maxdepth:"4")
|
||||
\whitespace trim
|
||||
<$list filter="[all[shadows]removeprefix[$prefix$]splitbefore[/]sort[]suffix[/]]" variable="chunk">
|
||||
<$vars path={{{ [title[$prefix$]addsuffix<chunk>removesuffix[/]] }}}>
|
||||
<$text text=<<path>>/>
|
||||
<$list filter="[<path>split[/]count[]min[$maxdepth$]!match[$maxdepth$]]">
|
||||
<$macrocall $name="shadowList" prefix={{{ [title[$prefix$]addsuffix<chunk>] }}}/>
|
||||
</$list>
|
||||
</$vars>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define inputs()
|
||||
<$set name="tidList" filter="tiddlers shadows tiddlers+shadows tags orphans missing">
|
||||
<$set name="tagsList" filter="[tags[]sort[]] [all[shadows]tags[]sort[]]">
|
||||
<$set name="sysFields" filter="title text tags created creator modified modifier">
|
||||
<$set name="tidFields" filter="[all[tiddlers]] -[prefix[$:/state/popup]] +[fields[]!enlist<sysFields>sort[]]">
|
||||
<$set name="shadowFields" filter="[all[shadows]fields[]!enlist<sysFields>!enlist<tidFields>sort[]]">
|
||||
<$set name="fieldsList" filter="[enlist<sysFields>] [enlist<tidFields>] [enlist<shadowFields>]">
|
||||
<$set name="searchList" filter="[enlist<sysFields>] [[*]] [enlist<fieldsList>!enlist<searchList>]">
|
||||
<$set name="flagsList" filter="words literal whitespace regexp casesensitive anchored">
|
||||
<$wikify name="shadowList" text=<<shadowList>>>
|
||||
|
||||
|powersearch_table|k
|
||||
| search all|<<get "tids" "[enlist<tidList>]" "tiddlers">> |
|
||||
| match prefix|<<get "prefix" "[enlist<shadowList>]" "(none)" >> |
|
||||
| exclude prefix|<<get "notprefix" "[enlist<shadowList>]" "(none)" >> |
|
||||
| match suffix|<<get "suffix" "[enlist<shadowList>]" "(none)" >> |
|
||||
| exclude suffix|<<get "notsuffix" "[enlist<shadowList>]" "(none)" >> |
|
||||
| match tag|<<get "tag" "[enlist<tagsList>]" "(none)" >> |
|
||||
| exclude tag|<<get "nottag" "[enlist<tagsList>]" "(none)" >> |
|
||||
| has field|<<get "has" "[enlist<fieldsList>]" "(none)" >> |
|
||||
| search fields|<<get "field" "[enlist<searchList>]" "title,text,tags" "yes">> |
|
||||
| using flags|<<get "flags" "[enlist<flagsList>]" "words" "yes">> |
|
||||
| sort by|<<get "sort" "[enlist<fieldsList>]" "title" >> |
|
||||
| match term|<<get "term" "" "(none)" >> |
|
||||
| custom filter|<<get "custom" "" "(none)" >> |
|
||||
\end
|
||||
|
||||
\define savedFilters()
|
||||
<$vars lf="
|
||||
">
|
||||
<$list filter="[prefix<saved>limit[1]]">
|
||||
<div style="white-space:nowrap;">
|
||||
<$button class="tc-btn-invisible" tooltip="delete all saved filters"> {{$:/core/images/delete-button}}
|
||||
<$action-confirm $message="Are you sure you want to delete all saved filters?">
|
||||
<$action-deletetiddler $filter="[prefix<saved>]" />
|
||||
</$action-confirm>
|
||||
</$button>
|
||||
''Saved filters:'' (<$count filter="[prefix<saved>]"/>)
|
||||
<hr style="margin:1px 0;">
|
||||
<div class="powersearch_savedfilters">
|
||||
<$list filter="[prefix<saved>sort[]]" variable="item">
|
||||
<$vars popid={{{ [<item>removeprefix<saved>addprefix<menu>addsuffix<qualify>] }}}>
|
||||
<$vars desc={{{ [<item>get[description]] }}} filt={{{ [<item>get[filter]] }}} cust={{{ [<config>getindex[custom]addsuffix[ ]] }}}>
|
||||
<$button class="tc-btn-invisible" popup=<<popid>>> {{$:/core/images/menu-button}}</$button>
|
||||
<$reveal type="popup" state=<<popid>> class="tc-drop-down" style="min-width:auto;">
|
||||
<$button class="tc-btn-invisible" style="display:block;padding:0 0.5em;" tooltip="delete this filter"> {{$:/core/images/delete-button}} delete this filter
|
||||
<$action-confirm $message={{{ [<filt>] [<desc>] [[ ]] [[Are you sure you want to delete this filter?]] +[join<lf>] }}}>
|
||||
<$action-deletetiddler $tiddler=<<item>> />
|
||||
</$action-confirm>
|
||||
</$button>
|
||||
<$button class="tc-btn-invisible" style="display:block;padding:0 0.5em;" tooltip="edit this filter"> {{$:/core/images/edit-button}} edit this filter
|
||||
<$action-sendmessage $message="tm-edit-tiddler" $param=<<item>> />
|
||||
</$button>
|
||||
<$button class="tc-btn-invisible" style="display:block;padding:0 0.5em;" tooltip="add to custom filter"> {{$:/core/images/new-button}} add to custom filter
|
||||
<$action-setfield $tiddler=<<config>> $index="custom" $value={{{ [<cust>addsuffix<filt>trim[]] }}}/>
|
||||
</$button>
|
||||
<$button class="tc-btn-invisible" style="display:block;padding:0 0.5em;" tooltip="copy to clipboard"> {{$:/core/images/copy-clipboard}} copy to clipboard
|
||||
<$action-sendmessage $message="tm-copy-to-clipboard" $param=<<filt>>/>
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$button class="tc-btn-invisible" tooltip="use this filter"> <$text text=<<desc>>/>
|
||||
<$action-setfield $tiddler=<<config>> text={{{ [<item>get[text]] }}}/>
|
||||
</$button>
|
||||
</$vars>
|
||||
</$vars>
|
||||
<br>
|
||||
</$list>
|
||||
</div>
|
||||
\end
|
||||
|
||||
\define preFilter() prefix[$(pre)$]
|
||||
\define notpreFilter() !prefix[$(notpre)$]
|
||||
\define suffFilter() suffix[$(suff)$]
|
||||
\define notsuffFilter() !suffix[$(notsuff)$]
|
||||
\define tagFilter() tag[$(tagval)$]
|
||||
\define nottagFilter() !tag[$(nottag)$]
|
||||
\define hasFilter() has:field[$(has)$]
|
||||
\define searchFilter() search:$(field)$:$(flags)$[$(term)$]
|
||||
\define filter() [all[$(tids)$]$(preFilter)$$(notpreFilter)$$(suffFilter)$$(notsuffFilter)$$(tagFilter)$$(nottagFilter)$$(hasFilter)$$(searchFilter)$sort[$(sort)$]] $(custom)$
|
||||
\define filter_exclude() $(filter)$ -[prefix[$:/state/modal]] -[prefix[$:/state/popup]] -[prefix[$:/temp/PowerSearch]] -[prefix[$:/temp/edit-list]]
|
||||
|
||||
\define doSearch()
|
||||
<$vars tids={{{ [<config>getindex[tids]] ~[[tiddlers]] }}}
|
||||
pre={{{ [<config>getindex[prefix]] }}}
|
||||
notpre={{{ [<config>getindex[notprefix]] }}}
|
||||
suff={{{ [<config>getindex[suffix]] }}}
|
||||
notsuff={{{ [<config>getindex[notsuffix]] }}}
|
||||
tagval={{{ [<config>getindex[tag]] }}}
|
||||
nottag={{{ [<config>getindex[nottag]] }}}
|
||||
has={{{ [<config>getindex[has]] }}}
|
||||
field={{{ [<config>getindex[field]enlist-input[]join[,]] ~[[title,text,tags]] }}}
|
||||
flags={{{ [<config>getindex[flags]enlist-input[]join[,]] ~[[words]] }}}
|
||||
sort={{{ [<config>getindex[sort]] ~[[title]] }}}
|
||||
custom={{{ [<config>getindex[custom]] }}}
|
||||
term={{{ [<config>getindex[term]] }}}>
|
||||
<$vars preFilter={{{ [<pre>!is[blank]then<preFilter>] }}}
|
||||
notpreFilter={{{ [<notpre>!is[blank]then<notpreFilter>] }}}
|
||||
suffFilter={{{ [<suff>!is[blank]then<suffFilter>] }}}
|
||||
notsuffFilter={{{ [<notsuff>!is[blank]then<notsuffFilter>] }}}
|
||||
tagFilter={{{ [<tagval>!is[blank]then<tagFilter>] }}}
|
||||
nottagFilter={{{ [<nottag>!is[blank]then<nottagFilter>] }}}
|
||||
hasFilter={{{ [<has>!is[blank]then<hasFilter>] }}}
|
||||
searchFilter={{{ [<term>!is[blank]then<searchFilter>] }}}>
|
||||
<<doSearch_showresults>>
|
||||
\end
|
||||
|
||||
\define doSearch_showresults()
|
||||
<$vars count={{{ $(filter_exclude)$ +[count[]] }}}>
|
||||
''<<count>> match<$list filter="[<count>!match[1]]">es</$list>''
|
||||
<<toggleList>> <<saveFilter>> <<clearAll>> <<setOptions>>  
|
||||
<$vars height={{{ [<config>get[height]] ~[<default_height>] }}} cols={{{ [<config>get[cols]] ~[<default_columns>] }}} wrap={{{ [<config>get[wrap]] ~[<default_wrap>] }}}>
|
||||
<$list filter="[<count>!match[0]]"> <<modal tag>> <<modal clone>> <<modal export>> <<modal delete>> </$list>
|
||||
<$reveal state=<<show>> type="match" text="show" style="font-size:90%;line-height:1em;">
|
||||
columns:
|
||||
<$select tiddler=<<config>> field="cols" default=<<cols>>><option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option></$select>
|
||||
<$checkbox tiddler=<<config>> field="wrap" checked="normal" unchecked="nowrap" default=<<wrap>> class="powersearch_checkboxwidth"> wrap </$checkbox>
|
||||
</$reveal>
|
||||
<$reveal state=<<show>> type="match" text="show"> <<doSearch_showlist>> </$reveal>
|
||||
\end
|
||||
|
||||
\define doSearch_showlist()
|
||||
<fieldset style="border-radius:0.5em;">
|
||||
<legend>
|
||||
<$button class="tc-btn-invisible" style="font-size:90%;text-align:left;word-break:break-all;"
|
||||
message="tm-copy-to-clipboard" param=<<filter>> tooltip="Copy filter to clipboard">
|
||||
''<$text text=<<filter>>/>'' {{$:/core/images/copy-clipboard}}
|
||||
</$button>
|
||||
</legend>
|
||||
<div style="max-height:$(height)$;white-space:$(wrap)$;overflow:auto;font-size:80%;line-height:1em;">
|
||||
<ol style="margin:0;column-gap:3em;column-count:$(cols)$;column-width:1em;">
|
||||
<$list filter=<<filter_exclude>>>
|
||||
<li><div class="powersearch_listitem" title=<<currentTiddler>>><$link/></div></li>
|
||||
</$list>
|
||||
</ol>
|
||||
</div>
|
||||
</fieldset>
|
||||
\end
|
||||
|
||||
\define toggleList()
|
||||
<$reveal state=<<show>> type="match" text="">
|
||||
<$button tooltip="Show results"> {{$:/core/images/chevron-down}}
|
||||
<$action-setfield $tiddler=<<config>> show="show" />
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal state=<<show>> type="match" text="show">
|
||||
<$button tooltip="Hide results"> {{$:/core/images/chevron-up}}
|
||||
<$action-setfield $tiddler=<<config>> $field="show" />
|
||||
</$button>
|
||||
</$reveal>
|
||||
\end
|
||||
|
||||
\define saveFilter()
|
||||
<$vars target={{{ [<now YYYY0MM0DD0hh0mm0ss>addprefix<saved>] }}}>
|
||||
<$button tooltip="Save current filter"> {{$:/core/images/save-button}}
|
||||
<$action-setfield $tiddler=<<target>> type="application/json" text={{{ [<config>get[text]] }}}
|
||||
filter={{{ [<filter>trim[]] }}} description={{{ [<filter>trim[]] }}} tags="$:/tags/Filter" />
|
||||
</$button>
|
||||
\end
|
||||
|
||||
\define clearAll()
|
||||
<$tiddler tiddler=<<config>>>
|
||||
<$button tooltip="Clear all inputs"> {{$:/core/images/close-button}}
|
||||
<$list filter="tids prefix notprefix suffix notsuffix tag nottag has field term flags sort custom">
|
||||
<$action-setfield $tiddler=<<config>> $index=<<currentTiddler>> />
|
||||
</$list>
|
||||
<$action-deletetiddler $filter="[prefix[$:/state/popup/edit-list/]]"/>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
\define setOptions()
|
||||
<$button popup=<<qualify $(options)$>> tooltip="Set display options">
|
||||
{{$:/core/images/options-button}}
|
||||
</$button>
|
||||
<$reveal type="popup" state=<<qualify $(options)$>> position="below"
|
||||
class="tc-drop-down tt-drop-down tc-popup-keep" style="min-width:auto;padding:0.5em;">
|
||||
~PowerSearch options
|
||||
<div class="tt-shadowbox inset" style="text-align:right;">
|
||||
input width: <$edit-text tiddler=<<config>> field="width" class="powersearch_optionwidth" default="" placeholder=<<default_width>> /><br>
|
||||
max height: <$edit-text tiddler=<<config>> field="height" class="powersearch_optionwidth" default="" placeholder=<<default_height>> /><br>
|
||||
<center>
|
||||
<$checkbox tiddler=<<config>> field="confirm" checked="yes" unchecked="" default="" class="powersearch_checkboxwidth"> confirm inputs </$checkbox>
|
||||
</center>
|
||||
</div>
|
||||
</$reveal>
|
||||
\end
|
||||
|
||||
\define modal(function)
|
||||
\define select() $(filter_exclude)$ +[encodeuricomponent[]]
|
||||
<$set name="selected" filter=<<select>>>
|
||||
<$button message="tm-modal" param="$:/temp/PowerSearch" tooltip="$function$ tiddlers">
|
||||
<$transclude tiddler="$:/core/images/$function$-button"/>
|
||||
<$action-setfield $tiddler="$:/temp/PowerSearch" class="powersearch_modal tc-popup-handle"
|
||||
subtitle=<<modal_title>> text=<<modal_text>> footer=<<modal_footer>>
|
||||
function="$function$" list=<<selected>> wrap=<<wrap>> cols=<<cols>> nostamp={{$:/config/TimestampDisable}}/>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
\define modal_title()
|
||||
\import TiddlyTools/FilterGenerators/PowerSearch
|
||||
\define filter() $(filter)$
|
||||
<span style="float:right;font-size:80%;line-height:1em;margin-top:0.5em;">
|
||||
columns:
|
||||
<$select field="cols"><option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option></$select>
|
||||
<$checkbox field="wrap" checked="normal" unchecked="nowrap" class="powersearch_checkboxwidth"> wrap </$checkbox> 
|
||||
<$vars tv-config-toolbar-icons="yes" tv-config-toolbar-text="no">{{$:/core/ui/Buttons/timestamp}}</$vars> 
|
||||
<<modal_cancel "{{$:/core/images/close-button}}">>
|
||||
<<modal_ok "{{$:/core/images/done-button}}" >>
|
||||
</span>
|
||||
''<$text text={{{ [{!!function}addsuffix[ tiddlers]sentencecase[]] }}}/>:''
|
||||
<div style="font-size:70%;line-height:1em;margin-bottom:0.5em;">''<$text text=<<filter>>/>''</div>
|
||||
\end
|
||||
|
||||
\define modal_text()
|
||||
\import TiddlyTools/FilterGenerators/PowerSearch
|
||||
\define all() $(filter_exclude)$ +[encodeuricomponent[]]
|
||||
<<styles>>
|
||||
<div style={{{ [[max-height:calc(60vh - 5em);overflow:auto;font-size:80%;line-height:1em;margin-bottom:0.5em;white-space:]addsuffix{!!wrap}] }}}>
|
||||
<ol style={{{ [[margin:0;column-gap:3em;column-width:1em;column-count:]addsuffix{!!cols}] }}}>
|
||||
<$list filter=<<all>> variable="thisTiddler">
|
||||
<li>
|
||||
<div class="powersearch_listitem" title={{{ [<thisTiddler>decodeuricomponent[]] }}}>
|
||||
<$list filter="[<currentTiddler>contains<thisTiddler>]">
|
||||
<$eventcatcher $click='<$action-listops $subfilter="-[<thisTiddler>]"/>'>
|
||||
<input type="checkbox" checked="checked"> <$text text={{{ [<thisTiddler>decodeuricomponent[]] }}}/>
|
||||
</$eventcatcher>
|
||||
</$list>
|
||||
<$list filter="[<currentTiddler>!contains<thisTiddler>]">
|
||||
<$eventcatcher $click='<$action-listops $subfilter="[<thisTiddler>]"/>'>
|
||||
<input type="checkbox"> <$text text={{{ [<thisTiddler>decodeuricomponent[]] }}}/>
|
||||
</$eventcatcher>
|
||||
</$list>
|
||||
</div>
|
||||
</li>
|
||||
</$list>
|
||||
</ol>
|
||||
</div>
|
||||
<$vars count={{{ [<currentTiddler>get[list]enlist-input[]count[]] }}}>
|
||||
<$list filter="[<count>match[0]]" variable="msg">''Select tiddlers you want to {{!!function}}''</$list>
|
||||
<$list filter="[<count>!match[0]]" variable="msg">
|
||||
''Are you sure you want to {{!!function}} <$list filter="[<count>!match[1]]" emptyMessage="this tiddler?">these <<count>> tiddlers?</$list>''
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define modal_footer()
|
||||
\import TiddlyTools/FilterGenerators/PowerSearch
|
||||
\define select() $(filter_exclude)$ +[encodeuricomponent[]]
|
||||
<$set name="all" filter=<<select>>>
|
||||
<div style="text-align:center;">
|
||||
<div style="float:left;text-align:left;">
|
||||
<$button>all <$action-setfield list=<<all>>/></$button>
|
||||
<$button>none <$action-setfield list=""/></$button>
|
||||
</div>
|
||||
<div style="float:right;text-align:left;"><<modal_cancel>> <<modal_ok>></div>
|
||||
<<modal_options>>
|
||||
\end
|
||||
|
||||
\define modal_cancel(label:"cancel")
|
||||
<$button message="tm-close-tiddler" tooltip="cancel" actions=<<modal_done>>> $label$ </$button>
|
||||
\end
|
||||
|
||||
\define modal_ok(label:{{!!function}})
|
||||
<$vars ok={{{ [{!!function}!match[tag]] [{$:/temp/PowerSearch/add}!is[blank]] [{$:/temp/PowerSearch/remove}!is[blank]] +[then{!!list}!match[]then[yes]] }}}>
|
||||
<$list filter="[<ok>match[yes]]" emptyMessage="<$button> @@color:gray;fill:gray; $label$@@</$button>" variable="is_enabled">
|
||||
<$button message="tm-close-tiddler" tooltip={{!!function}} actions=<<modal_done>>> $label$ <<modal_functions>> </$button>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define modal_done()
|
||||
<$list filter="[[$:/config/TimestampDisable]is[tiddler]]" variable="reset_timestamp_setting">
|
||||
<$action-setfield $tiddler="$:/config/TimestampDisable" text={{!!nostamp}}/>
|
||||
<$list filter="[{!!nostamp}match[]]"><$action-deletetiddler $tiddler="$:/config/TimestampDisable" /></$list>
|
||||
</$list>
|
||||
<$action-deletetiddler $filter="[prefix[$:/temp/PowerSearch]]" />
|
||||
\end
|
||||
|
||||
\define modal_options()
|
||||
\define taglist(tid,filter) <<edit tiddler:"$tid$" width:12em multiple:yes filter:"$filter$" placeholder:"enter/select tags">>
|
||||
<div style="display:inline-block;">
|
||||
<$list filter="[{!!function}match[tag]]" variable="function">
|
||||
<nobr style="text-align:left;">''Add tags:'' <<taglist "$:/temp/PowerSearch/add" "[tags[]sort[]] [all[shadows]tags[]sort[]]">></nobr>
|
||||
<nobr style="text-align:left;">''Remove tags:'' <<taglist "$:/temp/PowerSearch/remove" "[enlist{$:/temp/PowerSearch!!list}decodeuricomponent[]tags[]sort[]]">></nobr>
|
||||
</$list>
|
||||
<$list filter="[{!!function}match[clone]]" variable="function">
|
||||
<nobr>''Replace'' <$edit-text tiddler="$:/temp/PowerSearch/from" tag="input" size="20" default="" placeholder=""/></nobr>
|
||||
<nobr>''with'' <$edit-text tiddler="$:/temp/PowerSearch/to" tag="input" size="20" default="" placeholder=""/></nobr>
|
||||
</$list>
|
||||
<$list filter="[{!!function}match[export]]" variable="function">
|
||||
''Filename/format'':
|
||||
<$edit-text tiddler="$:/temp/PowerSearch/filename" tag="input" size="20" default=""
|
||||
placeholder={{{ [{$:/temp/PowerSearch/format}suffix[TidFile]then[-- uses tiddler title --]else[tiddlers]] }}}
|
||||
disabled={{{ [{$:/temp/PowerSearch/format}suffix[TidFile]then[yes]] }}}/>
|
||||
<$select tiddler="$:/temp/PowerSearch/format" default="$:/core/templates/exporters/JsonFile">
|
||||
<option value="$:/core/templates/exporters/CsvFile"> csv </option>
|
||||
<option value="$:/core/templates/exporters/StaticRiver"> html</option>
|
||||
<option value="$:/core/templates/exporters/JsonFile"> json</option>
|
||||
<option value="$:/core/templates/exporters/TidFile"> tid </option>
|
||||
</$select>
|
||||
</$list>
|
||||
<$list filter="[{!!function}match[delete]]" variable="function">
|
||||
<!-- NO OPTIONS -->
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define modal_functions()
|
||||
<$list filter="[{!!function}match[tag]]" variable="function">
|
||||
<$list filter="[enlist{!!list}decodeuricomponent[]]">
|
||||
<$action-listops $field="tags" $subfilter="+[append{$:/temp/PowerSearch/add}remove{$:/temp/PowerSearch/remove}]"/>
|
||||
</$list>
|
||||
</$list>
|
||||
<$list filter="[{!!function}match[clone]]" variable="function">
|
||||
<$list filter="[enlist{!!list}decodeuricomponent[]]">
|
||||
<$vars newtitle={{{ [<currentTiddler>search-replace{$:/temp/PowerSearch/from},{$:/temp/PowerSearch/to}] }}}>
|
||||
<$action-createtiddler $basetitle=<<newtitle>> $template=<<currentTiddler>> />
|
||||
</$vars>
|
||||
</$list>
|
||||
</$list>
|
||||
<$list filter="[{!!function}match[export]]" variable="function">
|
||||
<$vars format={{{ [[$:/temp/PowerSearch/format]get[text]else[$:/core/templates/exporters/JsonFile]] }}}
|
||||
filename={{{ [[$:/temp/PowerSearch/filename]get[text]else[tiddlers]] }}}>
|
||||
<$vars ext={{{ [<format>get[extension]] }}}>
|
||||
<$vars target={{{ [<ext>addprefix<filename>] }}}>
|
||||
<$vars list="[enlist{$:/temp/PowerSearch!!list}decodeuricomponent[]]">
|
||||
<$list filter="[<format>!suffix[TidFile]]">
|
||||
<$action-sendmessage $message="tm-download-file" $param=<<format>>
|
||||
exportFilter=<<list>> filename=<<target>> />
|
||||
</$list>
|
||||
<$list filter="[<format>suffix[TidFile]]">
|
||||
<$list filter=<<list>>>
|
||||
<$action-sendmessage $message="tm-download-file" $param=<<format>>
|
||||
exportFilter=<<currentTiddler>> filename={{{ [<currentTiddler>addsuffix<ext>] }}} />
|
||||
</$list>
|
||||
</$list>
|
||||
</$vars>
|
||||
</$vars>
|
||||
</$vars>
|
||||
</$vars>
|
||||
</$list>
|
||||
<$list filter="[{!!function}match[delete]]" variable="function">
|
||||
<$action-deletetiddler $filter="[enlist{!!list}decodeuricomponent[]]" />
|
||||
</$list>
|
||||
\end
|
||||
|
||||
<$vars width={{{ [<config>get[width]] ~[<default_width>] }}} confirm={{{ [<config>get[confirm]] }}}>
|
||||
<<styles>> <<inputs>> <<savedFilters>>
|
||||
</$vars>
|
||||
<div style="clear:both;padding-top:0.5em;">
|
||||
<<doSearch>>
|
98
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/TagCloud.tid
vendored
Normal file
98
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/TagCloud.tid
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
caption: TagCloud
|
||||
created: 20191128174135234
|
||||
modified: 20230109221623722
|
||||
tags: TiddlyTools $:/tags/AdvancedSearch
|
||||
title: $:/ThirdParty/TiddlyTools/FilterGenerators/TagCloud
|
||||
|
||||
\define config() $:/config/TiddlyTools/TagCloud
|
||||
\define options() $:/state/popup/tagcloud
|
||||
\define default_min() 0.75
|
||||
\define default_step() 0.25
|
||||
\define default_max() 4.00
|
||||
\define default_group() 5
|
||||
|
||||
\define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions)
|
||||
<!-- copied from $:/core/macros/tag - added font-size, margin-bottom and count display in pill -->
|
||||
<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$""">
|
||||
<div style="display:inline-block;font-size:$(size)$em;line-height:1em;margin-bottom:2px;">
|
||||
<$element-tag$ $element-attributes$ class="tc-tag-label tc-btn-invisible" style=<<tag-pill-styles>>>
|
||||
$actions$<$transclude tiddler="""$icon$"""/> <$view tiddler=<<__tag__>> field="title" format="text" /> (<<count>>)
|
||||
</$element-tag$>
|
||||
</div>
|
||||
</$vars>
|
||||
\end
|
||||
|
||||
\define tagcloud_select()
|
||||
<$set name="taglist" filter="[all[tiddlers+shadows]tags[]sort[]]">
|
||||
<div style="display:inline-block;float:left;margin-right:1em;margin-bottom:1em;">
|
||||
Select tags:
|
||||
<$button class="tc-btn-invisible">
|
||||
<span style={{{ [<config>get[taglist]else[font-weight:bold;]] }}}>none</span>
|
||||
<$action-setfield $tiddler=<<config>> taglist="" />
|
||||
</$button> |
|
||||
<$button class="tc-btn-invisible">
|
||||
<span style={{{ [<config>get[taglist]match<taglist>then[font-weight:bold;]] }}}>all</span>
|
||||
<$action-setfield $tiddler=<<config>> taglist=<<taglist>> />
|
||||
</$button>
|
||||
<<tagcloud_options>>
|
||||
<div style="clear:both;">
|
||||
<$select tiddler=<<config>> field="taglist" size=5 multiple>
|
||||
<$list filter="[all[tiddlers+shadows]tags[]sort[]]"><option><<currentTiddler>></option></$list>
|
||||
</$select>
|
||||
\end
|
||||
|
||||
\define tagcloud_options()
|
||||
<$let popid={{{ [<options>addsuffix<qualify>] }}}>
|
||||
<$button class="tc-btn-invisible" style="float:right;" popup=<<popid>> tooltip="Set display options">
|
||||
{{$:/core/images/options-button}}
|
||||
</$button>
|
||||
<$reveal type="popup" state=<<popid>> position="belowleft"
|
||||
class="tc-drop-down tt-drop-down tc-popup-keep" style="min-width:auto;padding:0.5em;">
|
||||
<span style="float:right;margin-left:1em;">
|
||||
<$button class="tc-btn-invisible" style="display:inline;padding:0;width:auto;" tooltip="reset to defaults">{{$:/core/images/refresh-button}}
|
||||
<$action-deletefield $tiddler=<<config>> min step max group/>
|
||||
</$button>
|
||||
<$button class="tc-btn-invisible" style="display:inline;padding:0;width:auto;" tooltip="close">{{$:/core/images/close-button}}
|
||||
<$action-deletetiddler $tiddler=<<popid>>/>
|
||||
</$button>
|
||||
</span>
|
||||
~TagCloud options
|
||||
<div class="tt-shadowbox inset" style="clear:both;text-align:right;">
|
||||
min size: <$edit-text tiddler=<<config>> field="min" class="option" default=<<default_min>> placeholder=<<default_min>> /><br>
|
||||
step size: <$edit-text tiddler=<<config>> field="step" class="option" default=<<default_step>> placeholder=<<default_step>> /><br>
|
||||
max size: <$edit-text tiddler=<<config>> field="max" class="option" default=<<default_max>> placeholder=<<default_max>> /><br>
|
||||
group size: <$edit-text tiddler=<<config>> field="group" class="option" default=<<default_group>> placeholder=<<default_group>> /><br>
|
||||
</div>
|
||||
</$reveal>
|
||||
\end
|
||||
|
||||
\define tagcloud_summary()
|
||||
<br>
|
||||
There are ''<$text text={{{ [enlist<taglist>count[]]" }}}/> selected tags''<br>
|
||||
Tagging a total of ''<$text text={{{ [enlist<taglist>tagging[]count[]]" }}}/> tiddlers''<br>
|
||||
Sort results by:
|
||||
<$radio tiddler=<<config>> field="sortorder" value="count"> count </$radio>
|
||||
<$radio tiddler=<<config>> field="sortorder" value="name"> name </$radio>
|
||||
\end
|
||||
|
||||
\define tagcloud_show()
|
||||
<p style="clear:both;">
|
||||
<$let min={{{ [<config>get[min]] ~[<default_min>] }}}
|
||||
step={{{ [<config>get[step]] ~[<default_step>] }}}
|
||||
max={{{ [<config>get[max]] ~[<default_max>] }}}
|
||||
group={{{ [<config>get[group]] ~[<default_group>] }}}>
|
||||
<$set name="sub" filter="[<config>get[sortorder]] ~[[count]] +[match[count]]" value="[tagging[]count[]]" emptyValue="[get[title]]">
|
||||
<$list filter="[enlist<taglist>!sortsub:integer<sub>]">
|
||||
<$let count={{{ [<currentTiddler>tagging[]count[]] }}} size={{{ [<count>divide<group>trunc[]multiply<step>add<min>min<max>] }}}><<tag>></$let>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
<style>
|
||||
.tt-tagcloud input { width:auto !important; }
|
||||
.tt-tagcloud input.option { width:3em !important; text-align:right; }
|
||||
</style>
|
||||
<div class="tt-tagcloud">
|
||||
<<tagcloud_select>>
|
||||
<$set name=taglist filter="[<config>get[taglist]enlist-input[]]">
|
||||
<<tagcloud_summary>>
|
||||
<<tagcloud_show>>
|
48
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/Tags.tid
vendored
Normal file
48
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/Tags.tid
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
caption: Tags
|
||||
created: 20191118104819715
|
||||
modified: 20230109220613590
|
||||
tags: TiddlyTools $:/tags/AdvancedSearch
|
||||
title: $:/ThirdParty/TiddlyTools/FilterGenerators/Tags
|
||||
|
||||
\define config() $:/config/TiddlyTools/FindTags
|
||||
|
||||
<style>
|
||||
.tt-findTags input { width:auto !important; }
|
||||
.tt-findTags .columns4 { display:block; column-count:4; column-gap:1em; }
|
||||
.tt-findTags .small { font-size:80%; line-height:1.3em; }
|
||||
.tt-findTags .nowrap { white-space:nowrap; }
|
||||
</style>
|
||||
|
||||
<span class="tt-findTags">
|
||||
find tiddlers tagged with:
|
||||
<p class="columns4 small nowrap">
|
||||
<$list filter="[all[tiddlers+shadows]tags[]sort[]]">
|
||||
<$checkbox tiddler=<<config>> index=<<currentTiddler>> checked=" "
|
||||
checkactions="""<$action-setfield $tiddler=<<config>> $index=<<currentTiddler>> $value=" " />"""
|
||||
uncheckactions="""<$action-setfield $tiddler=<<config>> $index=<<currentTiddler>> />""">
|
||||
<$text text=<<currentTiddler>>/>
|
||||
</$checkbox><br>
|
||||
</$list>
|
||||
</p>
|
||||
|
||||
<$wikify name="filter" text="""[all[tiddlers+shadows]<$list filter="[title<config>indexes[]]">tag[<<currentTiddler>>]</$list>] +[sort[]]""">
|
||||
<$list filter="[<config>indexes[]count[]] -[[0]]">
|
||||
<$set name="filter_text" filter="[<config>indexes[]join[ AND ]]">
|
||||
<$wikify name="filter_text" text=<<filter_text>>>
|
||||
There are <$count filter=<<filter>>/> tiddlers tagged with <<filter_text>>
|
||||
</$wikify>
|
||||
</$set>
|
||||
<blockquote class="columns4 small"> <$list filter=<<filter>>><$link/><br></$list> </blockquote>
|
||||
</$list>
|
||||
</$wikify>
|
||||
|
||||
<$wikify name="filter" text="""<$list filter="[title<config>indexes[]]">[all[tiddlers+shadows]tag[<<currentTiddler>>]] </$list> +[sort[]]""">
|
||||
<$list filter="[<config>indexes[]count[]] -[[0]] -[[1]]">
|
||||
<$set name="filter_text" filter="[<config>indexes[]join[ OR ]]">
|
||||
<$wikify name="filter_text" text=<<filter_text>>>
|
||||
There are <$count filter=<<filter>>/> tiddlers tagged with <<filter_text>>
|
||||
</$wikify>
|
||||
</$set>
|
||||
<blockquote class="columns4 small"> <$list filter=<<filter>>><$link/><br></$list> </blockquote>
|
||||
</$list>
|
||||
</$wikify>
|
39
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/Titles.tid
vendored
Normal file
39
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/FilterGenerators/Titles.tid
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
caption: Titles
|
||||
created: 20191126184117322
|
||||
modified: 20230109220606965
|
||||
tags: TiddlyTools $:/tags/AdvancedSearch
|
||||
title: $:/ThirdParty/TiddlyTools/FilterGenerators/Titles
|
||||
|
||||
\define config() $:/config/TiddlyTools/FindTitles
|
||||
|
||||
<style>
|
||||
.tt-findTitles input[type=text] { min-width:30vw; }
|
||||
.tt-findTitles input[type=checkbox] { width:auto !important; }
|
||||
.tt-findTitles .columns3 { display:block; column-count:3; column-gap:1em; }
|
||||
.tt-findTitles .small { font-size:80%; line-height:1.3em; }
|
||||
.tt-findTitles .nowrap { white-space:nowrap; }
|
||||
</style>
|
||||
|
||||
<span class="tt-findTitles">
|
||||
find titles containing:
|
||||
<$edit-text tiddler=<<config>> index="text" tag="input" focus="yes"/><br>
|
||||
in
|
||||
<$checkbox tiddler=<<config>> index="tiddler" checked="is[tiddler]" unchecked=""> tiddlers </$checkbox>
|
||||
<$checkbox tiddler=<<config>> index="shadow" checked="is[shadow]" unchecked=""> shadows </$checkbox>
|
||||
<$checkbox tiddler=<<config>> index="system" checked="is[system]" unchecked=""> system </$checkbox>
|
||||
<$checkbox tiddler=<<config>> index="tag" checked="is[tag]" unchecked=""> tags </$checkbox>
|
||||
<$checkbox tiddler=<<config>> index="missing" checked="is[missing]" unchecked=""> missing </$checkbox>
|
||||
<$checkbox tiddler=<<config>> index="orphan" checked="is[orphan]" unchecked=""> orphans </$checkbox>
|
||||
<$checkbox tiddler=<<config>> index="image" checked="is[image]" unchecked=""> images </$checkbox>
|
||||
<$checkbox tiddler=<<config>> index="binary" checked="is[binary]" unchecked=""> binaries </$checkbox>
|
||||
|
||||
<$tiddler tiddler=<<config>>>
|
||||
<$wikify name="is" text="{{##tiddler}}{{##shadow}}{{##system}}{{##tag}}{{##missing}}{{##orphan}}{{##image}}{{##binary}}">
|
||||
<$wikify name="filter" text="[<<is>>search:title[{{##text}}]sort[]]">
|
||||
<$reveal default=<<is>> type="nomatch" text="">
|
||||
<p/>
|
||||
__There are <$count filter=<<filter>>/> tiddlers matching ''<$text text=<<filter>>/>''__
|
||||
<blockquote class="columns3 small nowrap">
|
||||
<$list filter=<<filter>>><$link/><br></$list>
|
||||
</blockquote>
|
||||
</$reveal>
|
454
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/Macros/edit-list.tid
vendored
Normal file
454
Wiki-OcttKB/tiddlers/System/$/ThirdParty/TiddlyTools/Macros/edit-list.tid
vendored
Normal file
@@ -0,0 +1,454 @@
|
||||
created: 20191214071309583
|
||||
creator: EricShulman
|
||||
modified: 20230109220547803
|
||||
modifier: EricShulman
|
||||
tags: $:/tags/Macro TiddlyTools
|
||||
title: $:/ThirdParty/TiddlyTools/Macros/edit-list
|
||||
|
||||
\define edit-list(
|
||||
id:"", tiddler:"", field:"text", index:"", timestamp:"yes",
|
||||
default:"", placeholder:"", tooltip:"", type:"", width:"15em",
|
||||
filter:"", find:"", goto:"no", confirm:"no", focus:"no",
|
||||
focusPopup:"", cancelPopups:"no", listwidth:"100%", listheight:"10", stretch:"no",
|
||||
show:"no", fontsize:"100%", colors:"no", multiple:"no", view:"<<item>>", mobile:"auto"
|
||||
)
|
||||
\whitespace trim
|
||||
\define filter() $filter$
|
||||
<!----------------->
|
||||
<!-- ENVIRONMENT -->
|
||||
<!----------------->
|
||||
<$vars tid={{{ [[$tiddler$]!match[]else<currentTiddler>] }}} re="[^a-zA-Z0-9\-\_]">
|
||||
<$vars id={{{ [[$index$]!match[]else[$field$]] +[addprefix[/]addprefix<tid>addsuffix[_$id$]] }}}>
|
||||
<$vars id={{{ [<id>search-replace[$:/],[]search-replace:g:regexp<re>,[_]addsuffix<qualify>search-replace:g:[--],[-]search-replace:g:[__],[_]] }}}>
|
||||
<$vars modal={{{ [[$:/state/modal/edit-list/]addsuffix<id>] }}}>
|
||||
<$vars popup={{{ [[$:/state/popup/edit-list/]addsuffix<id>] }}}>
|
||||
<$vars popup={{{ [<filter>!match[]] [[$type$]match[calendar]] +[limit[1]then[$show$]match[no]then<popup>] }}}>
|
||||
<$vars minmax={{{ [[$:/state/popup/edit-list/minmax/]addsuffix<id>] }}}>
|
||||
<!--------------->
|
||||
<!-- VARIABLES -->
|
||||
<!--------------->
|
||||
<$vars
|
||||
field={{{ [[$index$]match[]then[$field$]else[]] }}} index="""$index$""" timestamp="""$timestamp$""" goto_button={{{ [[$goto$]match[yes]] }}}
|
||||
default="""$default$""" placeholder="""$placeholder$""" tooltip="""$tooltip$""" width={{{ [[$width$]match[auto]then[15em]else[$width$]] }}}
|
||||
filter=<<filter>> find="""$find$""" confirm="""$confirm$""" listwidth={{{ [[$listwidth$]match[fit]then[auto]else[$listwidth$]] }}}
|
||||
listheight="""$listheight$""" show="""$show$""" fontsize="""$fontsize$""" stretch={{{ [[$stretch$]match[yes]then[auto]else[$stretch$]] }}}
|
||||
focus="""$focus$""" focusPopup={{{ [[$focusPopup$]!match[]then<popup>else[$focusPopup$]] }}} multiple={{{ [[$multiple$]match[yes]] }}}
|
||||
calendar={{{ [[$type$]match[calendar]then[TiddlyTools/Time/Calendar]is[tiddler]then[yes]] }}}
|
||||
type={{{ [[$type$]match[calendar]then[TiddlyTools/Time/Calendar]is[missing]then[date]else[$type$]] }}}
|
||||
show={{{ [[$type$]match[calendar]then[TiddlyTools/Time/Calendar]is[missing]then[no]else[$show$]] }}}
|
||||
>
|
||||
<!------------------->
|
||||
<!-- ABBREVIATIONS -->
|
||||
<!------------------->
|
||||
<$vars
|
||||
openpopup="""
|
||||
<$action-deletetiddler $filter="[prefix[$:/state/popup/edit-list/]] -[prefix[$:/state/popup/edit-list/currentitem/]] -[<minmax>]"/>
|
||||
<$action-setfield $tiddler=<<popup>> text="show"/>"""
|
||||
closepopup="""
|
||||
<$action-deletetiddler $filter="[<popup>]"/>"""
|
||||
gotoinput="""
|
||||
<$action-sendmessage $message="tm-focus-selector" $param={{{ [[.editlist_input_]addsuffix<id>] }}}/>"""
|
||||
gotoselect="""
|
||||
<$action-sendmessage $message="tm-focus-selector" $param={{{ [[.editlist_popup_select_]addsuffix<id>] }}}/>"""
|
||||
startmodal="""
|
||||
<$list filter="[<confirm>match[yes]then<modal>!is[tiddler]]"><$action-setfield $tiddler=<<tid>> title=<<modal>>/>"""
|
||||
maximize="""
|
||||
<$action-setfield $tiddler=<<minmax>> hmax="yes" vmax="yes"/>"""
|
||||
minimize="""
|
||||
<$action-deletetiddler $filter="[<minmax>]"/>"""
|
||||
input="""
|
||||
<$eventcatcher $focusin="<$list filter='[<focusPopup>!match[]]'><<openpopup>></$list><<startmodal>>">
|
||||
<$eventcatcher $focusout="<$list filter='[<modal>!is[tiddler]]'><<closepopup>></$list>">
|
||||
<$edit-text tiddler={{{ [<modal>is[tiddler]else<tid>] }}} class={{{ [[tc-popup-handle editlist_input editlist_input_]addsuffix<id>] }}}
|
||||
tag="input" type=<<type>> field=<<field>> index=<<index>> default=<<default>> placeholder=<<placeholder>> cancelPopups="$cancelPopups$"
|
||||
focus={{{ [<modal>is[tiddler]then[yes]else<focus>] }}} focusPopup={{{ [[$focusPopup$]!match[yes]then[$focusPopup$]] }}}/>"""
|
||||
select="""
|
||||
<$eventcatcher $focusin="<<openpopup>><<startmodal>>">
|
||||
<$eventcatcher $focusout="<$list filter='[<modal>!is[tiddler]]'><<closepopup>></$list>">
|
||||
<$eventcatcher $click="<$list filter='[<modal>!is[tiddler]then<multiple>!match[yes]]'><<closepopup>><<goto>></$list>">
|
||||
<<editlist_select_showheading>>
|
||||
<$select tiddler={{{ [<modal>is[tiddler]else<tid>] }}} field=<<field>> index=<<index>> multiple=<<multiple>>
|
||||
class={{{ [[editlist_select editlist_popup_select_]addsuffix<id>] }}} size={{{ [<minmax>get[vmax]match[yes]then[2]] ~[<listheight>regexp[^\d+$]!match[1]else[2]] }}}>
|
||||
<<editlist_select_showlist>>"""
|
||||
option="""
|
||||
<$vars fg={{{ [enlist<dark>match<item>then[white;]else[black;]] }}}>
|
||||
<$vars colors={{{ [[$colors$]match[yes]then[background-color:]addsuffix<item>addsuffix[;color:]addsuffix<fg>] }}}>
|
||||
<option style=<<colors>> value=<<item>> title=<<item>>> $view$ </option>"""
|
||||
dark="""
|
||||
Black Blue DarkBlue DarkGreen DarkOliveGreen DarkSlateBlue DarkSlateGrey DimGrey ForestGreen Grey Indigo Maroon MediumBlue MidnightBlue Navy Purple"""
|
||||
save="""
|
||||
<$list filter="[<modal>is[tiddler]]">
|
||||
<$vars newval={{{ [<modal>getindex<index>] ~[<modal>get<field>] }}}>
|
||||
<$action-setfield $timestamp=<<timestamp>> $tiddler=<<tid>> $field=<<field>> $index=<<index>> $value=<<newval>>/>
|
||||
<$list filter="[<newval>match[]]"><<clear>></$list>"""
|
||||
clear="""
|
||||
<$action-setfield $timestamp=<<timestamp>> $tiddler=<<tid>> $field=<<field>> $index=<<index>> $value=""/><!-- WFFL -->
|
||||
<$action-deletetiddler $tiddler=<<currentitem>>/>
|
||||
<<closepopup>><<gotoinput>>"""
|
||||
done="""
|
||||
<$action-deletetiddler $filter="[<modal>] [<popup>]"/>"""
|
||||
goto="""
|
||||
<$list filter="[[$goto$]match[yes]]">
|
||||
<$vars tid={{{ [<modal>is[tiddler]else<tid>] }}}>
|
||||
<$list filter="[<multiple>!match[yes]]"><$action-navigate $to={{{ [<tid>getindex<index>] ~[<tid>get<field>] }}}/></$list>
|
||||
<$list filter="[<multiple>match[yes]]" ><$list filter="[<tid>getindex<index>] ~[<tid>get<field>] +[enlist-input[]]"><$action-navigate/></$list></$list>"""
|
||||
reset="""
|
||||
<$list filter="[<modifier>match[shift]]"><$action-setfield $timestamp=<<timestamp>> $tiddler=<<tid>> $field=<<field>> $index=<<index>>/></$list>
|
||||
<$list filter="[<index>!match[]then<tid>get[text]match[{}]]">
|
||||
<$action-setfield $timestamp=<<timestamp>> $tiddler=<<tid>> $field="text"/>
|
||||
<$action-setfield $timestamp=<<timestamp>> $tiddler=<<tid>> $field="type"/>"""
|
||||
>
|
||||
<!-------------------->
|
||||
<!-- MOBILE LISTBOX -->
|
||||
<!-------------------->
|
||||
<$vars
|
||||
currentitem=
|
||||
{{{ [[$:/state/popup/edit-list/currentitem/]addsuffix<id>] }}}
|
||||
showitem="""
|
||||
<$list filter='[<sel>!match[]]' emptyMessage="<input type=checkbox tabindex=-1/>"><input type=checkbox checked=yes tabindex=-1/></$list>
|
||||
<$text text=$view$/>"""
|
||||
toggleitem="""
|
||||
<$list filter='[<multiple>!match[yes]]'><$action-setfield $tiddler=<<curr>> $field=<<field>> $index=<<index>> $value={{{ [<sel>match[]then<item>] }}}/></$list>
|
||||
<$list filter='[<multiple>match[yes]]' ><$action-listops $tiddler=<<curr>> $field=<<field>> $index=<<index>> $subfilter='+[toggle<item>]' /></$list>"""
|
||||
trackitem="""
|
||||
<$action-setfield $tiddler=<<currentitem>> offset=<<i>> item=<<item>>/>"""
|
||||
gotoitem="""
|
||||
<$vars i={{{ [<currentitem>get[offset]else<i>] }}}>
|
||||
<$vars i={{{ [<count>!match[]then<i>min<count>max[1]else<i>] }}}>
|
||||
<$action-sendmessage $message="tm-focus-selector" $param={{{ [[.editlist_popup_select_]addsuffix<id>addsuffix[_]addsuffix<i>] }}}/>
|
||||
<$action-deletetiddler $tiddler=<<currentitem>>/>"""
|
||||
select_mobile="""
|
||||
<$eventcatcher $focusin="<<openpopup>><<startmodal>>">
|
||||
<$eventcatcher $focusout="<$list filter='[<modal>!is[tiddler]]'><<closepopup>></$list>">
|
||||
<$eventcatcher $click="<$list filter='[<modal>!is[tiddler]then<multiple>!match[yes]]'><<closepopup>><<goto>></$list>">
|
||||
<<editlist_select_showheading>>
|
||||
<$vars listwidth={{{ [<listwidth>match[100%]then<width>else<listwidth>] }}}>
|
||||
<$wikify name="fg" text=<<colour select-tag-foreground>>><$vars fg={{{ [<fg>!match[]then<fg>else[black;]] }}}>
|
||||
<$wikify name="bg" text=<<colour select-tag-background>>><$vars bg={{{ [<bg>!match[]then<bg>else[white;]] }}}>
|
||||
<$keyboard key="down" actions="<$vars i=1><<gotoitem>>">
|
||||
<button class={{{ [[editlist_select editlist_popup_select_]addsuffix<id>] }}}
|
||||
style={{{ [[border:1px solid gray;padding:0;white-space:nowrap;vertical-align:bottom;color:]addsuffix<fg>addsuffix[;background-color:]addsuffix<bg>] }}}>
|
||||
<$vars curr={{{ [<modal>is[tiddler]else<tid>] }}}><$vars val={{{ [<curr>getindex<index>] ~[<curr>get<field>] }}}>
|
||||
<<editlist_select_showlist>>"""
|
||||
option_mobile="""
|
||||
<$keyboard key="home" actions="<$vars i=1 ><<gotoitem>>">
|
||||
<$keyboard key="up" actions="<$vars i={{{ [<i>subtract[1]] }}}><<gotoitem>>">
|
||||
<$keyboard key="page_up" actions="<$vars i={{{ [<i>subtract<listheight>] }}}><<gotoitem>>">
|
||||
<$keyboard key="page_down" actions="<$vars i={{{ [<i>add<listheight>] }}}><<gotoitem>>">
|
||||
<$keyboard key="down" actions="<$vars i={{{ [<i>add[1]] }}}><<gotoitem>>">
|
||||
<$keyboard key="end" actions="<$vars i=<<count>> ><<gotoitem>>">
|
||||
<$vars fg={{{ [enlist<dark>match<item>then[white;]else[black;]] }}}>
|
||||
<$vars colors={{{ [[$colors$]match[yes]then[background-color:]addsuffix<item>addsuffix[;color:]addsuffix<fg>] }}}>
|
||||
<$vars sel={{{ [<multiple>!match[yes]then<val>match<item>] [<multiple>match[yes]then<val>enlist-input[]match<item>] }}}>
|
||||
<$button class={{{ [[editlist_select editlist_popup_select_]addsuffix<id>addsuffix[_]addsuffix<i>] }}}
|
||||
style=<<colors>> tooltip=<<item>> actions="<<toggleitem>><<trackitem>><<gotoselect>>"> <<showitem>>
|
||||
</$button><br>"""
|
||||
>
|
||||
<!-- IF MOBILE, USE ALTERNATIVE select() AND option() -->
|
||||
<$vars mobile_browsers="android ios windowsphone">
|
||||
<$vars mobile={{{ [[$mobile$]regexp[yes|no]] ~[enlist<mobile_browsers>addprefix[$:/info/browser/is/]get[text]match[yes]] ~[[no]] }}}>
|
||||
<$vars select={{{ [<mobile>!match[yes]then<select>else<select_mobile>] }}}>
|
||||
<$vars option={{{ [<mobile>!match[yes]then<option>else<option_mobile>] }}}>
|
||||
<!------------------------->
|
||||
<!-- STYLES AND CONTROLS -->
|
||||
<!------------------------->
|
||||
<<editlist_styles>>
|
||||
<div class={{{ [[editlist_wrapper editlist_wrapper_]addsuffix<id>] }}}
|
||||
style={{{ [<show>match[no]then[margin-bottom:1em;]] [<filter>match[]then<calendar>!match[yes]then[margin-bottom:1em;]] }}}
|
||||
title=<<tooltip>>>
|
||||
<<editlist_input>>
|
||||
<$list filter="[<calendar>match[]] "> <<editlist_select>> </$list>
|
||||
<$list filter="[<calendar>!match[]]"> <<editlist_calendar>> </$list>
|
||||
</div>
|
||||
\end
|
||||
|
||||
\define editlist_styles()
|
||||
<style>
|
||||
.editlist_wrapper_$(id)$ { position:relative; display:inline-block; width:$(width)$; margin:0; }
|
||||
.editlist_input_$(id)$ { position:absolute; width:100% !important; height:1.5em; }
|
||||
.editlist_input_buttons_$(id)$ { position:absolute; width:max-content; right:0; }
|
||||
.editlist_modal_buttons_$(id)$ { position:absolute; width:max-content; left:$(width)$; }
|
||||
.editlist_clear { height:1.5em; width:1.5em; padding:0 0.25em 0 0.25em; vertical-align:text-bottom; }
|
||||
.editlist_popup { height:1.5em; width:1.5em; padding:0 0.25em 0 0.25em; vertical-align:text-bottom; }
|
||||
.editlist_save { height:1.5em; width:1.5em; padding:0 0.25em 0 0.25em; vertical-align:text-bottom; }
|
||||
.editlist_cancel { height:1.5em; width:1.5em; padding:0 0.25em 0 0.30em; vertical-align:text-bottom; }
|
||||
.editlist_popup_wrapper_$(id)$ { position:absolute; width:fit-content; min-width:$(listwidth)$; z-index:1; top:1.6em; }
|
||||
.editlist_popup_heading_$(id)$ { position:relative; font-size:80%; line-height:1.2em; text-align:center; background:#eee; border:1px solid gray; border-bottom:0; }
|
||||
.editlist_popup_minmax_$(id)$ { position:absolute; top:-1px; right:calc(-1.5em - 3px); padding-left:3px; transition:2s; }
|
||||
.editlist_popup_minmax_$(id)$ button { display:block; font-size:100%; line-height:1em; padding:0 0.125em; margin-bottom:1px; }
|
||||
.editlist_popup_select_$(id)$ { overflow-y:auto; font-size:$(fontsize)$; line-height:1em; }
|
||||
.editlist_popup_select_$(id)$ option { overflow:hidden;text-overflow:ellipsis; }
|
||||
.editlist_popup_select_$(id)$ button { width:100%; text-align:left; line-height:1.4em; padding:0 2px; border:0; background:none; overflow:hidden; text-overflow:ellipsis; }
|
||||
.editlist_popup_select_$(id)$ input { width:auto; }
|
||||
.editlist_calendar_wrapper { position:absolute; z-index:1; top:1.6em; }
|
||||
.editlist_calendar { width:18.75em; padding:0.5em; }
|
||||
.editlist_calendar_format { width:17.5em; }
|
||||
.editlist_calendar.tc-block-dropdown a { padding-top:0; padding-bottom:0; }
|
||||
.editlist_wrapper_$(id)$ .fadeIn { opacity:0; }
|
||||
.editlist_wrapper_$(id)$:hover .fadeIn { opacity:1; }
|
||||
.editlist_wrapper_$(id)$:focus-within .fadeIn { opacity:1; }
|
||||
/* FALLBACK IF "FOCUS-WITHIN" NOT AVAILABLE... see https://www.caniuse.com/css-focus-within */
|
||||
.editlist_input_$(id)$:focus + .editlist_input_buttons_$(id)$ .fadeIn { opacity:1; }
|
||||
.editlist_clear:focus { opacity:1; }
|
||||
.editlist_popup:focus { opacity:1; }
|
||||
.editlist_clear:focus + editlist_popup { opacity:1; }
|
||||
</style>
|
||||
<$list filter="[<modal>is[tiddler]] [<popup>is[tiddler]] +[limit[1]]">
|
||||
<style> .editlist_wrapper_$(id)$ .fadeIn { opacity:1; } </style>
|
||||
</$list>
|
||||
<$list filter="[<show>!match[no]]">
|
||||
<style> .editlist_popup_wrapper_$(id)$ { position:static; margin-top:1.6em; } </style>
|
||||
</$list>
|
||||
<$list filter="[<stretch>!match[no]]">
|
||||
<style> .editlist_wrapper_$(id)$:hover, .editlist_wrapper_$(id)$:focus-within { min-width:$(width)$; width:$(stretch)$ !important; } </style>
|
||||
<style> .editlist_popup_select_$(id)$:hover, .editlist_popup_select_$(id)$:focus { min-width:$(width)$; width:$(stretch)$ !important; } </style>
|
||||
</$list>
|
||||
<$vars curr={{{ [<modal>is[tiddler]else<tid>] }}}>
|
||||
<$vars val={{{ [<curr>getindex<index>] ~[<curr>get<field>] }}}>
|
||||
<$vars bwidth={{{ [<val>!match[]then[1.5]] [<popup>!match[]then[1.50]] +[sum[]] }}}>
|
||||
<$list filter="[<width>!match[100%]]"><<editlist_styles_setinputsize>></$list>
|
||||
\end
|
||||
|
||||
\define editlist_styles_setinputsize()
|
||||
<!-- MAKE ROOM FOR CLEAR AND/OR POPUP BUTTONS -->
|
||||
<style>
|
||||
.editlist_wrapper_$(id)$:hover .editlist_input_$(id)$ { width:calc(100% - $(bwidth)$em) !important; }
|
||||
.editlist_wrapper_$(id)$:focus-within .editlist_input_$(id)$ { width:calc(100% - $(bwidth)$em) !important; }
|
||||
</style>
|
||||
<$list filter="[<modal>is[tiddler]] [<popup>is[tiddler]] +[limit[1]]">
|
||||
<style> .editlist_input_$(id)$ { width:calc(100% - $(bwidth)$em) !important; } </style>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define editlist_styles_setselectsize()
|
||||
<!-- WIDTH: MATCH INPUT SIZE, LISTWIDTH PARAM, OR HMAX (AUTO) -->
|
||||
<style>.editlist_popup_select_$(id)$ { min-width:$(width)$; width:$(listwidth)$; }</style>
|
||||
<$list filter="[<minmax>get[hmax]]" ><style>.editlist_popup_select_$(id)$ { min-width:$(listwidth)$; width:auto; }</style></$list>
|
||||
<$list filter="[<mobile>match[yes]]"><style>.editlist_popup_select_$(id)$ { min-width:100%; }</style></$list>
|
||||
<!-- HEIGHT: USE SIZE, LISTHEIGHT (CSS UNITS), OR VMAX (COUNT) -->
|
||||
<style>.editlist_popup_select_$(id)$ { height:calc($(size)$ * 1.4em + 0.25em); }</style>
|
||||
<$list filter="[<listheight>!regexp[^\d+$]]"><style>.editlist_popup_select_$(id)$ { height:$(listheight)$; }</style></$list>
|
||||
<$list filter="[<listheight>match[fit]] [<minmax>get[vmax]] +[limit[1]]">
|
||||
<style>.editlist_popup_select_$(id)$ { height:calc($(count)$ * 1.4em + 0.25em); }</style>
|
||||
<$list filter="[<mobile>match[yes]]"><style>.editlist_popup_select_$(id)$ { height:max-content; }</style></$list>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define editlist_input()
|
||||
\whitespace trim
|
||||
<$keyboard key="enter" actions="<<save>><<goto>><<done>>">
|
||||
<$keyboard key="escape" actions="<<done>>">
|
||||
<$keyboard key="down" actions="<<openpopup>><<gotoselect>>">
|
||||
<$keyboard key="up" actions="<<closepopup>><<gotoinput>>">
|
||||
<<input>>
|
||||
<span class="editlist_input_buttons_$(id)$"><<editlist_clear>><<editlist_popup>></span>
|
||||
<span class="editlist_modal_buttons_$(id)$"><<editlist_save>><<editlist_cancel>></span>
|
||||
\end
|
||||
|
||||
\define editlist_clear()
|
||||
\whitespace trim
|
||||
<!-- IF INDEX OR FIELD VALUE IS NOT BLANK, SHOW CLEAR BUTTON -->
|
||||
<$vars tid={{{ [<modal>is[tiddler]else<tid>] }}}>
|
||||
<$list filter="[<tid>getindex<index>] ~[<tid>get<field>] +[!match[]]" variable="show_clear">
|
||||
<$eventcatcher $focusin="<$list filter='[<focusPopup>!match[]]'><<openpopup>></$list><<startmodal>>">
|
||||
<$button class="tc-button editlist_clear fadeIn" tooltip="clear input" actions=<<reset>>>
|
||||
<div style="transform:translateY(-0.1em);">''x''</div> <<clear>>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
\define editlist_popup()
|
||||
\whitespace trim
|
||||
<!-- IF LIST OR CALENDAR NOT SHOWN, SHOW POPUP BUTTON -->
|
||||
<$list filter="[<popup>!match[]]" variable="show_popup">
|
||||
<$vars tip={{{ [<popup>is[missing]then[show ]else[hide ]] [<calendar>match[]then[list]else[calendar]] +[join[]] }}}>
|
||||
<$eventcatcher $focusin=<<startmodal>>>
|
||||
<$button class="tc-button editlist_popup fadeIn" tooltip=<<tip>> actions=<<gotoinput>>>
|
||||
<$list filter="[<popup>is[missing]]" emptyMessage=<<closepopup>>><<openpopup>></$list>
|
||||
<$list filter="[<calendar>match[]]"> <!-- DOWN OR UP TRIANGLE -->
|
||||
<div style="font-size:80%;transform:translateY(-0.04em);">
|
||||
<$list filter="[<popup>is[missing]]" emptyMessage="▲">▼</$list>
|
||||
</div>
|
||||
</$list>
|
||||
<$list filter="[<calendar>!match[]]"> <!-- CALENDAR EMOJI -->
|
||||
<span style="font-size:90%;margin-left:-0.2em;vertical-align:text-top;">📅</span>
|
||||
</$list>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
\define editlist_save()
|
||||
\whitespace trim
|
||||
<!-- IF MODAL IS ACTIVE, SHOW SAVE BUTTON -->
|
||||
<$list filter="[<modal>is[tiddler]]">
|
||||
<$button class="tc-button editlist_save" tooltip="save" actions="<<reset>><<goto>>">
|
||||
<div style="transform:translateY(-0.05em);">{{$:/core/images/done-button}}</div> <<save>><<done>>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
\define editlist_cancel()
|
||||
\whitespace trim
|
||||
<!-- IF MODAL IS ACTIVE, SHOW CANCEL BUTTON -->
|
||||
<$list filter="[<modal>is[tiddler]]">
|
||||
<$button class="tc-button editlist_cancel" tooltip="cancel">
|
||||
<div style="transform:translateY(-0.05em);">{{$:/core/images/cancel-button}}</div> <<done>>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
\define editlist_select()
|
||||
\whitespace trim
|
||||
<!-- IF NOT FILTERING, DON'T SHOW LIST -->
|
||||
<$list filter="[<filter>!match[]]" variable="show_select">
|
||||
<!-- IF FIXED-HEIGHT, OR POPUP IS OPEN, SHOW LIST -->
|
||||
<$list filter="[<show>!match[no]] [<popup>is[tiddler]] +[limit[1]]" variable="show_select">
|
||||
<$keyboard key="enter" actions="<<save>><<goto>><<done>>">
|
||||
<$keyboard key="escape" actions="<<done>>">
|
||||
<$keyboard key="right" actions="<<maximize>>">
|
||||
<$keyboard key="left" actions="<<minimize>>">
|
||||
<$keyboard key="backspace" actions="<<closepopup>><<gotoinput>>">
|
||||
<div class="editlist_popup_wrapper_$(id)$"><<select>></div>
|
||||
\end
|
||||
|
||||
\define editlist_select_showheading()
|
||||
\whitespace trim
|
||||
$(editlist_select_search)$
|
||||
<div class="editlist_popup_heading_$(id)$">
|
||||
<$text text={{{ [<total>addsuffix[ items]] }}}/>
|
||||
<$list filter="[<val>!match[]then<find>!match[]]">
|
||||
<$list filter="[<found>match[0]] [<found>!match<selected>] +[limit[1]]"> , <<found>> matches </$list>
|
||||
</$list>
|
||||
<$text text={{{ [<selected>!match[0]then[, ]addsuffix<selected>addsuffix[ selected]] }}}/>
|
||||
<<editlist_select_minmax_goto>>
|
||||
</div>
|
||||
\end
|
||||
|
||||
\define editlist_select_showlist()
|
||||
$(editlist_select_search)$
|
||||
<<editlist_styles_setselectsize>>
|
||||
<$list filter="[enlist<display>]" variable="item" counter="i"> <<option>> </$list>
|
||||
\end
|
||||
|
||||
\define editlist_select_search()
|
||||
<$set name="curr" filter="[<modal>is[tiddler]else<tid>]">
|
||||
<$set name="exclude" filter="[<field>match[tags]then<curr>get[tags]enlist-input[]] :filter[tagging[]count[]match[1]]">
|
||||
<$set name="all" filter="[subfilter<filter>] -[enlist<exclude>] -[prefix[$:/state/popup/edit-list]]">
|
||||
<$set name="total" filter="[enlist<all>count[]]">
|
||||
<$set name="case" filter="[enlist[OR AND EXACT REGEXP]match<find>]" value="casesensitive" emptyValue="">
|
||||
<$set name="find" filter="[<find>lowercase[]]">
|
||||
<$set name="find" filter="[enlist[or and exact regexp]match<find>]" value=<<find>> emptyValue="">
|
||||
<$set name="match" filter="[<find>match[exact]]" value="literal" emptyValue="">
|
||||
<$set name="regexp" filter="[<find>match[regexp]]" value="regexp" emptyValue="">
|
||||
<$set name="flags" filter="[<match>!match[]] [<regexp>!match[]] [<case>!match[]] +[join[,]]">
|
||||
<$set name="val" filter="[<curr>getindex<index>] ~[<curr>get<field>]" select=0>
|
||||
<$wikify name="or" text=<<editlist_select_or>>>
|
||||
<$wikify name="and" text=<<editlist_select_and>>>
|
||||
<$vars selected={{{ [<multiple>match[yes]then<match>!match[exact]then<val>enlist-input[]] ~[<val>] :intersection[enlist<all>] +[count[]] }}}>
|
||||
<$vars results={{{ [<find>match[or]then<or>] ~[<find>match[and]then<and>] ~[<find>match[exact]then<and>] ~[<find>match[regexp]then<and>] ~[<all>] +[trim[]] }}}>
|
||||
<$vars found={{{ [enlist<results>count[]] }}}>
|
||||
<$vars display={{{ [<found>match[0]then<all>] ~[<found>match<selected>then<all>] ~[<results>] }}}>
|
||||
<$vars count={{{ [enlist<display>count[]] }}}>
|
||||
<$vars size={{{ [<listheight>match[fit]then<total>] ~[<count>min<listheight>] +[max[1]] }}}>
|
||||
\end
|
||||
\define editlist_select_or() <$list filter="[enlist<val>sort[]]" variable="val"> <<editlist_select_and>> </$list>
|
||||
\define editlist_select_and() <$list filter="[enlist<all>search:title:$(flags)$<val>]"> `[[`<<currentTiddler>>`]]`<br> </$list>
|
||||
|
||||
\define editlist_select_minmax_goto()
|
||||
\whitespace trim
|
||||
<$list filter="[<listheight>compare:integer:gt[1]] [<listheight>!regexp[^\d+$]] [<listheight>match[fit]]" +[limit[1]]><!-- not a dropdown -->
|
||||
<div class="editlist_popup_minmax_$(id)$ fadeIn">
|
||||
<$vars hmax={{{ [<minmax>get[hmax]] }}} vmax={{{ [<minmax>get[vmax]] }}}>
|
||||
<$list filter="[<hmax>!match[]] ~[<listwidth>!match[auto]]">
|
||||
<$button tooltip={{{ [<hmax>match[]then[fit width]else[restore width]] }}}>
|
||||
<$list filter="[<hmax>match[]]" emptyMessage={{$:/core/images/chevron-left}}>{{$:/core/images/chevron-right}}</$list>
|
||||
<$action-setfield $tiddler=<<minmax>> hmax={{{ [<hmax>match[]then[yes]else[]] }}} />
|
||||
<$list filter="[<hmax>!match[]then<vmax>match[]]"><$action-deletetiddler $filter="[<minmax>]"/></$list>
|
||||
<<gotoselect>>
|
||||
</$button>
|
||||
</$list>
|
||||
<$list filter="[<vmax>!match[]] ~[<listheight>!regexp[^\d+$]] ~[<count>compare:integer:gt<listheight>] +[then<listheight>!match[fit]]">
|
||||
<$button tooltip={{{ [<vmax>match[]then[fit height]else[restore height]] }}}>
|
||||
<$list filter="[<vmax>match[]]" emptyMessage={{$:/core/images/chevron-up}}>{{$:/core/images/chevron-down}}</$list>
|
||||
<$action-setfield $tiddler=<<minmax>> vmax={{{ [<vmax>match[]then[yes]else[]] }}} />
|
||||
<$list filter="[<hmax>match[]then<vmax>!match[]]"><$action-deletetiddler $filter="[<minmax>]"/></$list>
|
||||
<<gotoselect>>
|
||||
</$button>
|
||||
</$list>
|
||||
<$vars curr={{{ [<modal>is[tiddler]else<tid>] }}}><$vars val={{{ [<curr>getindex<index>] ~[<curr>get<field>] }}}>
|
||||
<$list filter="[<goto_button>match[yes]then<val>!match[]]">
|
||||
<$button tooltip="view selected items"> {{$:/core/images/preview-open}} <<goto>></$button>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define editlist_calendar()
|
||||
<$importvariables filter="TiddlyTools/Time/Calendar">
|
||||
<$vars showday_popup_extras=<<editlist_selectday>>>
|
||||
<$vars target={{{ [<modal>is[tiddler]else<tid>] }}}>
|
||||
<$vars config="$:/state/popup/calendar/config">
|
||||
<$vars format="YYYY/0MM/0DD" month=<<now "[UTC]MM">> year=<<now "[UTC]YYYY">>>
|
||||
<$list filter="[<config>]">
|
||||
<$vars width={{{ [<stretch>match[auto]then<width>else<stretch>] }}}>
|
||||
<!-- CONVERT WIDTH TO EMWIDTH -->
|
||||
<$vars emwidth={{{ [<width>removesuffix[em]] }}}>
|
||||
<$vars emwidth={{{ [<width>removesuffix[in]multiply[6.420]else<emwidth>] }}}> <!-- EMs per inch -->
|
||||
<$vars emwidth={{{ [<width>removesuffix[cm]multiply[2.530]else<emwidth>] }}}> <!-- EMs per cm -->
|
||||
<$vars emwidth={{{ [<width>removesuffix[mm]multiply[.2530]else<emwidth>] }}}> <!-- EMs per mm -->
|
||||
<$vars emwidth={{{ [<width>removesuffix[px]multiply[0.066]else<emwidth>] }}}> <!-- EMs per pixel -->
|
||||
<$vars emwidth={{{ [<width>removesuffix[pt]multiply[0.089]else<emwidth>] }}}> <!-- EMs per point -->
|
||||
<!-- GET HEIGHT FROM DAYS PER MONTH -->
|
||||
<$vars yyyy={{{ [<config>get[year]else<year>] }}} mm={{{ [<config>get[month]else<month>pad[2]] }}}>
|
||||
<$vars date={{{ [<yyyy>addsuffix<mm>addsuffix[01]] }}}>
|
||||
<$wikify name="first" text="""<$view tiddler=<<date>> field="title" format="date" template="[UTC]ddd" />""">
|
||||
<$vars first={{{ [all[shadows]prefix[$:/language/Date/Short/Day/]get[text]allbefore<first>count[]] }}}>
|
||||
<$vars dpm={{{ [<yyyy>remainder[4]match[0]then[31 29 31 30 31 30 31 31 30 31 30 31]else[31 28 31 30 31 30 31 31 30 31 30 31]] }}}>
|
||||
<$vars dm={{{ [<dpm>split[ ]nth<mm>] }}}> <!-- days this month -->
|
||||
<$vars rows={{{ [<first>subtract[1]add<dm>divide[7]add[1]trunc[]] }}}> <!-- rows this month -->
|
||||
<$vars height={{{ [<rows>multiply[2.5]add[7.25]addsuffix[em]] }}}> <!-- rows + heading + format -->
|
||||
<!-- SET SCALE AND SPACER -->
|
||||
<$vars scale={{{ [<stretch>match[no]then[1]] ~[<emwidth>addsuffix[/18.75]] }}}> <!-- 18.75 = 7 days + borders + padding -->
|
||||
<$vars spacer={{{ [<height>addsuffix[*]addsuffix<scale>] }}}>
|
||||
<!-- SHOW POPUP OR INLINE CALENDAR -->
|
||||
<$list filter="[<show>match[no]]" variable="show_popup_calendar">
|
||||
<$reveal state=<<popup>> type="nomatch" text="" class="editlist_calendar_wrapper tc-popup-keep"><<editlist_calendar_show>></$reveal>
|
||||
</$list>
|
||||
<$list filter="[<show>!match[no]]" variable="show_inline_calendar">
|
||||
<div style="margin-top:1.6em;"><<editlist_calendar_show>></div>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
\define editlist_calendar_show()
|
||||
\whitespace trim
|
||||
<$eventcatcher events="focusin" actions-focusin="<$list filter='[<show>match[no]]'><<openpopup>></$list><<startmodal>>">
|
||||
<div style="height:calc($(spacer)$);">
|
||||
<div style="transform-origin:top left;transform:scale(calc($(scale)$));">
|
||||
<div class="editlist_calendar tc-block-dropdown" style="margin:0;min-width:auto;">
|
||||
<$macrocall $name="showmonth" yyyy={{{ [<config>get[year]else<year>] }}} mm={{{ [<config>get[month]else<month>] }}} view="edit" />
|
||||
<div>
|
||||
<$list filter="[<config>get[format]]">
|
||||
<$button class="tc-btn-invisible" style="float:right;" tooltip="use default format">{{$:/core/images/close-button}}
|
||||
<$action-deletefield $tiddler=<<config>> $field="format" />
|
||||
</$button>
|
||||
</$list>
|
||||
format:<br/>
|
||||
<$edit-text tag="input" class="editlist_calendar_format" tiddler=<<config>> field="format" default=<<format>> placeholder=<<format>> />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
\end
|
||||
|
||||
\define editlist_selectday()
|
||||
\whitespace trim
|
||||
<!-- ADD CUSTOM CALENDAR SHOWDAY_POPUP_EXTRAS() MACRO WITH SIMPLE "SELECTDAY" BUTTON -->
|
||||
<$vars UTC="[UTC]" time=<<now "0hh0mm0ss0XXX">>>
|
||||
<$vars template={{{ [<config>get[format]else<format>addprefix<UTC>] }}}>
|
||||
<$vars value={{{ [<date>addsuffix<time>format:date<template>] }}}>
|
||||
<$button class="tc-button tt-button" style="text-align:center;width:100%;margin:0.25em 0;"> ''select this date''
|
||||
<$action-setfield $timestamp=<<timestamp>> $tiddler=<<target>> $field=<<field>> $index=<<index>> $value=<<value>> />
|
||||
<$action-deletetiddler $filter="[<calendar_popID>]" />
|
||||
<$list filter='[<confirm>!match[yes]]'><<closepopup>></$list>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
| author|''[ext[Eric Shulman|mailto:elsdesign@gmail.com]]''|
|
||||
| source|''http://TiddlyTools.com/edit-list.html''|
|
||||
| updated|''<$view field="modified" format="date" template="DDD, MMM DDth YYYY at 0hh12:0mm:0ssam"/>''|
|
||||
|
||||
<pre style="font-size:80%;line-height:1em;"><$text text={{TiddlyTools/Macros/edit-list}}/></pre>
|
123
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/calc.js
vendored
Normal file
123
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/calc.js
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
/*\
|
||||
title: $:/.tb/macros/calc
|
||||
type: application/javascript
|
||||
module-type: macro
|
||||
|
||||
Computes a (Field) value +,-,*,/ a provided value.
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
Information about this macro
|
||||
*/
|
||||
|
||||
exports.name = "calc";
|
||||
|
||||
exports.params = [
|
||||
{name: "value"},
|
||||
{name: "operation"},
|
||||
{name: "until"},
|
||||
{name: "beyond"},
|
||||
{name: "decimals"},
|
||||
{name: "tiddler"},
|
||||
{name: "by"}
|
||||
];
|
||||
|
||||
/*
|
||||
Run the macro
|
||||
*/
|
||||
exports.run = function(value, operation, until, beyond, decimals, tiddler, by) {
|
||||
if(!value) {
|
||||
return;
|
||||
}
|
||||
if("" === operation){
|
||||
operation = "+";
|
||||
}
|
||||
var
|
||||
curr,dec,init,initMatch,op,opGiven,r,result,val,
|
||||
regInit = /^((?:[0-9]+)|(?:(?:[0-9]*)[\.,\,](?:[0-9]*))){1}[=][>](.*)/mg,
|
||||
ops = ["+","-","*","/"];
|
||||
initMatch = regInit.exec(value);
|
||||
if(initMatch) {
|
||||
init = initMatch[1].replace(/[\,]/,".");
|
||||
value = initMatch[2];
|
||||
}
|
||||
curr = parseFloat(
|
||||
isNaN(parseFloat(value)) ?
|
||||
this.wiki.getTextReference(value, init || "NaN", tiddler || this.getVariable("currentTiddler")) :
|
||||
value
|
||||
);
|
||||
until = parseFloat(until);
|
||||
decimals = parseInt(decimals);
|
||||
|
||||
op = operation.charAt(0);
|
||||
opGiven = ops.indexOf(op) >= 0;
|
||||
if(!opGiven) {
|
||||
op = "+";
|
||||
}
|
||||
initMatch = regInit.exec(by);
|
||||
if(initMatch) {
|
||||
init = initMatch[1].replace(/[\,]/,".");
|
||||
by = initMatch[2];
|
||||
}
|
||||
val = parseFloat(
|
||||
isNaN(parseFloat(by)) ?
|
||||
this.wiki.getTextReference(by, init || "NaN", tiddler || this.getVariable("currentTiddler")) :
|
||||
by
|
||||
);
|
||||
if(by === "") {
|
||||
val = opGiven ?
|
||||
(operation.length < 2 ? 0 : parseFloat(operation.substr(1))) :
|
||||
parseFloat(operation);
|
||||
}
|
||||
if(isNaN(curr)) {
|
||||
result = "NaN";
|
||||
} else {
|
||||
switch (op){
|
||||
case "-": result = curr - val; break;
|
||||
case "*": result = curr * val; break;
|
||||
case "/": result = curr / val; break;
|
||||
case "+":
|
||||
/* falls through */
|
||||
default: result = curr + val;
|
||||
}
|
||||
if(!isNaN(until)) {
|
||||
if (!(
|
||||
"+" == op || "*" == op ?
|
||||
result <= until :
|
||||
result >= until
|
||||
)) {
|
||||
if("true" == beyond) {
|
||||
result = true;
|
||||
} else {
|
||||
result = until;
|
||||
}
|
||||
}
|
||||
if(beyond && result !== true) {
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!isNaN(result)){
|
||||
r = result.toString();
|
||||
dec = r.indexOf('.');
|
||||
if(dec > -1){
|
||||
dec = r.substr(dec).length;
|
||||
if(
|
||||
!isNaN(decimals) && dec > decimals ||
|
||||
isNaN(decimals) && dec > 2
|
||||
){
|
||||
result = result.toFixed(isNaN(decimals) ? 2 : decimals);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toString();
|
||||
};
|
||||
|
||||
})();
|
9
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/calc.js.meta
vendored
Normal file
9
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/calc.js.meta
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
created: 20150126131341956
|
||||
creator: Tobias Beer
|
||||
modified: 20230110224652721
|
||||
modifier: Tobias Beer
|
||||
module-type: macro
|
||||
revision: 0
|
||||
summary: allows simple calculations based on tiddler fields
|
||||
title: $:/ThirdParty/tobibeer/calc
|
||||
type: application/javascript
|
22
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/ibox.tid
vendored
Normal file
22
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/ibox.tid
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
created: 20141211131633372
|
||||
creator: Tobias Beer
|
||||
modified: 20230225142836580
|
||||
modifier: Octt
|
||||
tags: $:/tags/Macro
|
||||
title: $:/ThirdParty/tobibeer/ibox
|
||||
|
||||
\define ibox(image, caption, template:"$:/ThirdParty/tobibeer/ibox/Lightbox", btn-class:"ibox-btn", direct)
|
||||
<$reveal type=match text="" default="$direct$"><$button class="$btn-class$"><$action-sendmessage $message="tm-modal" $param="$template$" image="$image$" caption="$caption$"/><$image source="$image$"/></$button></$reveal><$reveal type=nomatch text="" default="$direct$"><$button class="$btn-class$"><$action-sendmessage $message="tm-modal" $param="$image$"/><$image source="$image$"/></$button></$reveal><style>
|
||||
.ibox-btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.ibox-btn img {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.tc-modal .tc-modal-body > div > img {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
\end
|
10
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/ibox/Lightbox.tid
vendored
Normal file
10
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/ibox/Lightbox.tid
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
caption: Lightbox
|
||||
created: 20141211130114064
|
||||
creator: Tobias Beer
|
||||
modified: 20230117130401126
|
||||
modifier: Octt
|
||||
summary: the default modal template used with the ibox macro
|
||||
tags:
|
||||
title: $:/ThirdParty/tobibeer/ibox/Lightbox
|
||||
|
||||
<$image source=<<image>> width="100%" height="100%"/><$reveal type=match text="" default=<<caption>>><$transclude tiddler=<<image>> field=caption/></$reveal><$reveal type=nomatch text="" default=caption><<caption>></$reveal>
|
34
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/script.js
vendored
Normal file
34
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/script.js
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
enables js via <<script>> and disables with <<script 0>>
|
||||
Modified from original to add ability to exec scripts with a script="" param
|
||||
*/
|
||||
|
||||
exports.name = "script";
|
||||
|
||||
exports.params = [
|
||||
{name: "run"},
|
||||
{name: "script"},
|
||||
];
|
||||
|
||||
/*
|
||||
Run the macro
|
||||
*/
|
||||
exports.run = function(run, script) {
|
||||
var off = run ? run.toLowerCase() : false;
|
||||
if(off && ["0","no","off","false"].indexOf(off) > -1) {
|
||||
$tw.config.htmlUnsafeElements = ["script"];
|
||||
} else {
|
||||
$tw.config.htmlUnsafeElements = [];
|
||||
if (script) {
|
||||
eval(script);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
};
|
||||
})();
|
8
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/script.js.meta
vendored
Normal file
8
Wiki-OcttKB/tiddlers/System/$/ThirdParty/tobibeer/script.js.meta
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
created: 20150129001857442
|
||||
creator: Tobias Beer
|
||||
modified: 20230217100026908
|
||||
modifier: Octt
|
||||
module-type: macro
|
||||
tags:
|
||||
title: $:/ThirdParty/tobibeer/script
|
||||
type: application/javascript
|
32
Wiki-OcttKB/tiddlers/System/$/ThirdParty/zemoxian/Tag Cloud.tid
vendored
Normal file
32
Wiki-OcttKB/tiddlers/System/$/ThirdParty/zemoxian/Tag Cloud.tid
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
created: 20180630143633913
|
||||
creator: zemoxian
|
||||
modified: 20230109231828669
|
||||
modifier: zemoxian
|
||||
tags: TiddlyWiki
|
||||
title: $:/ThirdParty/zemoxian/Tag Cloud
|
||||
|
||||
\define link(showcount: none) <span style="display: inline-block">@@font-size: calc(0.6em + $(count)$px / 2); <$link><$text text=<<title>> /></$link>@@ @@font-size: 0.6em;display: $showcount$; (<<count>>)@@</span>
|
||||
|
||||
''Credits'' to [[zemoxian (zemox.tiddlyspot.com)|https://zemox.tiddlyspot.com/#Tag%20Cloud]]!
|
||||
|
||||
<$edit-text tag=input type=range tiddler="$:/temp/cloud/range"/> {{$:/temp/cloud/range}}
|
||||
<$checkbox
|
||||
tiddler="$:/state/tag-cloud-count"
|
||||
field=text
|
||||
checked=inline
|
||||
unchecked=none
|
||||
> show count</$checkbox>
|
||||
|
||||
@@text-align: center;
|
||||
<$list filter="[tags[]!is[system]]">
|
||||
<$list filter="[all[current]tagging[]rest{$:/temp/cloud/range}first[]]" variable=_>
|
||||
<$vars
|
||||
title={{{ [all[current]] }}}
|
||||
count=
|
||||
{{{ [all[current]tagging[]count[]] }}}
|
||||
>
|
||||
<$macrocall $name=link showcount={{$:/state/tag-cloud-count}} />
|
||||
</$vars>
|
||||
</$list>
|
||||
</$list>
|
||||
@@
|
Reference in New Issue
Block a user