1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-04 15:29:56 +00:00
Commit Graph

11838 Commits

Author SHA1 Message Date
pmario
291e3a42b5 allow toc-filter fields to created open/close chevrons 2024-02-08 14:44:34 +01:00
pmario
6e23d8db51 CTRL-click should not create edundant state tiddlers if tag tiddlers include themself 2024-02-08 14:11:14 +01:00
pmario
13be3c2147 if currentTiddler includes itself as a child do not show a more-chevron 2024-02-08 13:42:58 +01:00
pmario
6ce2eaad2c CTRL click on chevron expands / folds whole branch 2024-02-08 12:53:07 +01:00
pmario
bce803acc0 WIP recursive open - close with tags and path works with CTRL click and buttons 2024-02-07 20:27:23 +01:00
pmario
8fa310c8ef docs -- add tooltip field info 2024-02-07 18:31:21 +01:00
pmario
9aee7dad90 docs - adjust TOC Example tiddler 2024-02-07 15:11:21 +01:00
pmario
296743632d improve inline docs 2024-02-07 14:32:22 +01:00
pmario
f0d7c8bbd6 move captionField in front of tagField 2024-02-07 13:17:38 +01:00
pmario
ce0df075dd doc - add accidentally removed fields 2024-02-07 12:58:56 +01:00
pmario
58c81598b5 add all new fields to all toc-macros. rename some internal variables 2024-02-07 12:45:12 +01:00
pmario
9b53df00a1 rename toc-captionField to toc-defaultItemTemplate and lists call toc-itemTemplate which is a new proc 2024-02-07 11:30:10 +01:00
pmario
a2afdc8c96 allow tagField and parentField instead of tags 2024-02-07 01:25:12 +01:00
pmario
655f9616e8 ren: viewField to captionField,viewFieldTemplate to captionFieldTemplate 2024-02-06 19:03:21 +01:00
pmario
7771383fca docs - move exclude parameter into Parameters section 2024-02-06 18:51:36 +01:00
pmario
5510e226bb remove itemClassFilter from macro-calls, but leaf them alone in the procedure definitions. So parameter order is kept intakt 2024-02-06 18:47:33 +01:00
pmario
dbb27b55e9 fix let syntax 2024-02-06 18:39:46 +01:00
pmario
59b8264206 add viewField instead of captions, use viewFieldTemplate if defined to show item-link text. It always uses field:text 2024-02-06 17:39:51 +01:00
pmario
f953c758a0 toc examples use named params now 2024-02-06 17:29:13 +01:00
pmario
eecb7b6954 remove test-files 2024-02-05 21:18:39 +01:00
pmario
b7197c749d fix Second 2024-02-05 21:18:25 +01:00
pmario
eb7c603376 Merge branch 'toc-v5.3.x-rewrite' of github.com:pmario/TiddlyWiki5 into toc-v5.3.x-rewrite 2024-02-05 21:16:08 +01:00
pmario
13c1affb0f add global field names 2024-02-05 21:14:44 +01:00
pmario
4486c3f1e9 add global field names 2024-02-05 21:11:16 +01:00
pmario
d8662d4498 fix typo in class function 2024-02-05 20:10:29 +01:00
pmario
9de43bad05 rename toc-override -> toc-filter 2024-02-05 20:07:10 +01:00
pmario
8e1e875ebf add class handling for toc-override 2024-02-04 22:29:07 +01:00
pmario
e884c1178c change possible fields to: toc-hide, toc-override and toc-include 2024-02-04 21:57:34 +01:00
pmario
141f8029dc toc-include replaces the default filter 2024-02-04 15:44:49 +01:00
pmario
51aa7a054a show chevron if toc-included is the only "child" of a node. some code restructuring for better readability 2024-02-04 07:37:24 +01:00
pmario
e1a42ebf82 add new classes toc-item-included and toc-item-excluded, simplify code using more functions 2024-02-04 06:15:49 +01:00
pmario
f3a314adf0 add toc-include, toc-exclude to all tocs 2024-02-04 05:16:22 +01:00
pmario
39f3c4b7eb use 2 underscores instead of 1 for better readability 2024-02-03 19:25:05 +01:00
pmario
745c7fbbcd toc-exclude works, but should be improved 2024-02-03 03:04:41 +01:00
pmario
bdb5161f75 update docs for TOC and examples 2024-02-02 14:10:10 +01:00
pmario
84167ed1e9 add internal variable prefixes to __exclude and __path to make the code less error prone 2024-02-02 00:42:40 +01:00
pmario
0639c0b728 toc - bring docs in line with the code 2024-02-02 00:41:35 +01:00
pmario
b322a70b86 toc - replace reveal with conditional if 2024-02-01 21:51:53 +01:00
pmario
955d5a299b toc rewrite -- clean up the code and add comme important comments 2024-02-01 19:23:48 +01:00
pmario
9b0a461f85 toc rewrite wip - works - replaced emptyMessages with conditional if 2024-02-01 18:53:55 +01:00
pmario
20c043ef7d toc rewrite wip - works - before improving emptymessages 2024-02-01 18:07:40 +01:00
pmario
fb97287ea7 toc change sorted example to use "!sort[title]" 2024-02-01 18:06:27 +01:00
pmario
625d029207 replace <$qualify name="toc-state" title={{{ xxx filter }}} > with
\function makeTocState() [[$:/state/toc]addsuffix<__path__>addsuffix[/]addsuffix<currentTiddler>]

<$qualify name="toc-state" title=<<makeTocState>> >
2024-02-01 14:12:35 +01:00
lin onetwo
207720cb30
Add WASM content type info (#7948)
Allows WASM modules to be loaded
2024-01-27 14:25:30 +00:00
Jeremy Ruston
9bf3c0602d HTTP Requests should return data even if there was an error
The body data is often used for API error messages in the event of failure
2024-01-26 13:37:46 +00:00
Jeremy Ruston
a9f9ffd409
Introduce Tour Plugin and Confetti Plugin, improve Dynannotate Plugin (#7734)
* First commit

* Typo

* Add support for delay parameter

* Add confetti widget

* Add tour plugin

* Add element spotlight to dynannotate plugin

Useful for highlighting on screen elements for the user

* More and bigger confetti by default

* Use new element spotlight to provide hints

* Adjust hint selectors for create tiddler tour step

* Include confetti plugin in prerelease

* Clarify wording of confetti demo

* Don't link TiddlyWiki in the tour panel

* Tweaks to tour buttons

* Mark dependents of the tour plugin

* Add full screen section of tour and tour edition

* Remove Anna Freud references from welcome tiddler

* Build the tour edition in the preview

* Fix typo in build script

* Populate tour edition with solar system data

From Simple English Wikipedia

* Missing tag

* Add page control button to start tour

Also make the tour controls visible in full screen mode

* Refactor to use global procedures to control the tour

* Change "startup-actions" field to "enter-actions" to avoid confusion

* Add a tour logo

* Refactor to allow multiple tours to be loaded at once

* Remove wikification from welcome tour step

* Update docs

* Simplify styles for top bar

* Tours should have a $:/tags/Tour tag

* Tour should autostart in the tour edition, but not in the main wiki

* Better labelling for the main preview

* Fix build process

We build a separate tour.html wiki, but can include the tour in other wikis too

* Remove obsolete text

* Add "using tags" as a separate tour

* Remove old debugging code

* Add tour chooser

* Ensure that the current tour isn't listed as an option in the final step

* Use whitespace trim

Note that the setting is inherited by procedure and widget definitions

* Simplify tour step format

* Remove obsolete state tiddler

Not needed because now we initialise it in startup actions

* Fix gap between navigation buttons

* Clean up tiddler titles within the introduction tour

* Finish allowing the name "TiddlyWiki" to be customised

Some of the code was in the previous commit. Next we'll wire up the user interface

* Clarify docs

* Add a settings pane giving a birds eye view of a tour

* Avoid having to embed confetti in the final step

* Update docs

* Tweak styling of tour chooser dropdown

* Add a button to launch tour steps directly, and give them captions

* Expose custom tour settings

* Use the tour step caption as the heading

* Fix initialisation when jumping to a tour step

* Introduce step about tags

* Improve wording

* Improve styling of task call-to-action and nav buttons

* Adopt new conditional shortcut syntax

* Wording and ordering tweaks

* Fix typos

Thanks @pmario

* Simplify styling of tour overlay

* Use custom palette colours

Makes it easier for people to use their own colour scheme for the tour

* More custom colours

* Tour wording tweaks

* Extends the tour plugin with a condition field (#7861)

* feat: support condition field to determine whether a step should be shown

* feat: add support for overriding the hint text using the field 'hint' from the step tiddler

* fix: roll back tour display procedure for now until an override mechanism has been discussed

* fix: renamed advance-criterion field and associated variables to step-success-filter

* fix: renamed hint field to hint-text and selector to hint-selector

* refactor: to create function to get all tour tiddlers filtered by their condition field

* refactor: rename globals tiddlers to variables and avoid making any of the tour procedures global

* fix: also rename globals.tid file to variables.tid

* docs: cover all tour steps tiddler fields

* fix: improve spacing in Tour HUD

* WIP

---------

Co-authored-by: Jeremy Ruston <174761+Jermolene@users.noreply.github.com>
Co-authored-by: Saq Imtiaz <saq.imtiaz@gmail.com>
2024-01-25 12:53:35 +00:00
Jeremy Ruston
c3de9df84f Merge branch 'tiddlywiki-com' 2024-01-24 14:19:56 +00:00
yaisog
2099e687cc
improve the documentation on transclusions (#7914) 2024-01-24 11:40:55 +00:00
oeyoews
575d80dfe9
Fix Editor preview width #7787 (#7922) 2024-01-24 11:40:05 +00:00
Saq Imtiaz
bc3d64f4b8
Refresh edit widget when the editor type has changed (#7943) 2024-01-24 11:37:15 +00:00