1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-06 10:06:19 +00:00
Commit Graph

11915 Commits

Author SHA1 Message Date
jeremy@jermolene.com
ec2ec00cf4 Fix breaking tests 2023-05-09 10:39:57 +01:00
jeremy@jermolene.com
7f4f48d4ba Introduce geolayer widget for specifying layers for geomap 2023-05-09 10:35:33 +01:00
Carmine T. Guida
8f4b22110c
Added a comma (#7438) 2023-05-07 22:45:34 +01:00
Carmine T. Guida
8ad35a9411
Signing the CLA (#7437) 2023-05-07 18:07:06 +01:00
Mario Pietsch
18d7d3d8c0
Improve the wording for the core-plugin in the upgrader-editioin (#6878) 2023-05-07 17:47:13 +01:00
jeremy@jermolene.com
29f4d3488b Merge branch 'master' into geospatial-plugin 2023-05-07 10:45:38 +01:00
jeremy@jermolene.com
3518e257c0 Tweak release note 2023-05-06 19:26:42 +01:00
Mohammad Rahmani
fe716dd58f
thisTiddler description and examples improved (#7433) 2023-05-06 18:57:22 +01:00
jeremy@jermolene.com
e2fe681b50 Update release note 2023-05-06 17:33:19 +01:00
Mohammad Rahmani
36ac142110
Correct the caption for Procedure Call tiddler (#7432) 2023-05-06 15:35:03 +01:00
GameDungeon
e66e791944
Correct handling of pasting tiddlers (#7215)
* First Pass Implementation

* Fix Check

* Fix Style

* Update drag-drop interop example to support copy tiddlers to clipboard

---------

Co-authored-by: jeremy@jermolene.com <jeremy@jermolene.com>
2023-05-06 14:02:16 +01:00
lin onetwo
474b73bdbe
Feat: destroy() method for widgets to do custom cleanup (#6699)
* feat: inform child widget to do some custom cleanup

* fix: type

* refactor: restore old removeChildDomNodes

* refactor: make destroy() a separate method

* refactor: make destroy call removeChildDomNodes

* refactor: call destroy instead of removeChildDomNodes in each core widgets

* fix: refreshSelf does not mean destroy

* refactor: use old var insteadof const

* docs: about subclass
2023-05-06 12:19:11 +01:00
Arlen22
2b95daf59b
Change evalSandboxed to use only one context for all modules (#4624)
* Run modules in one new context

* Fix polyfill running on require

* Add code to check for global assignments

* Allow globals in separate context

This lets the caller request a separate context which may be polluted.

* Jasmine needs to pollute the global

* Formatting

* Add polyfill and cleanup code

* Convert to ES5

* One bug fix

* Some formatting

* Remove console.log line!

* Cleanup

* revert css-escape-polyfill.js to hopefully remove it from the PR

* Remove JSDOC directives
2023-05-06 12:11:18 +01:00
Jeremy Ruston
2bfefe3880
Parameterise core icons (#7413)
* Parameterise all the icons

* Improve splash screen macro for rendering icons

* Add new example from @kookma
2023-05-06 12:08:46 +01:00
Jeremy Ruston
96f97f237a
Remove "direction" CSS property from framed version of editor (#7409) 2023-05-06 12:08:20 +01:00
Mario Pietsch
9cdb38d800
Linkcatcher should pass through event objects (#7401) 2023-05-06 12:07:55 +01:00
donmor
4e96a012f6
Add missing extensions for audio/mpeg (#7378)
Add missing extensions for audio/mpeg
2023-05-06 11:55:41 +01:00
yaisog
e92e125697
Add the querySelectorSafe() function and replace querySelector() usage (#7380)
* Initial commit

* Correct the over-estimation of my abilities

* Add fallback and move code to dom.js

* Use new function for tm-focus-selector

* Replace other uses of querySelector*

* Undo rash replacements of querySelector()
2023-05-06 11:54:54 +01:00
yaisog
6820d45bf0
Improve the StoryTiddlerTemplate fallback (#7332)
* Initial commit

* Update StoryTiddlerTemplate.tid

* Extend cascades hint to help in case of problems

* Remove note about debugging from docs

I think that this brief note is more confusing than anything else

---------

Co-authored-by: jeremy@jermolene.com <jeremy@jermolene.com>
2023-05-06 11:53:58 +01:00
yaisog
d6533b9ee1
Add the timestamp suffix to the format operator (#7292)
* Create timestamp.js

Taken verbatim from @ericshulman.

* Add description of the timestamp suffix

* Add an example for timestamp use

I also snuck it a couple of cosmetic corrections, because I was too lazy to open a new PR. 😢

* Correct example 4 to use the right date formats

* Correct description of the default date format

* Add a test for the timestamp suffix

* Add more format:timestamp tests

* Drop invalid input

* Update version tag in docs

---------

Co-authored-by: jeremy@jermolene.com <jeremy@jermolene.com>
2023-05-06 11:44:22 +01:00
btheado
3ee5f10362
BrowserStoragePlugin: Do not save shadow tiddlers to local storage (#7365)
If a tiddler is only a shadow tiddler, then do not save it
to local storage. Otherwise when installing a plugin, each
individual tiddler will be expanded and saved individually.
In order to uninstall such a plugin, the plugin tiddler and
each tiddler needs to be deleted.

This can be prevented by including a run like `-[is[shadow]!is[tiddler]]`
in the save filter, but that has the side effect of preventing
overwritten shadow tiddlers from being deleted from local storage.
2023-05-06 11:41:22 +01:00
Jeremy Ruston
a6ced74a13
Introduce "thisTiddler" variable (#7182)
* Initial Commit

* Change of mind: Do not blank thisTiddler within macros

* Revert previous implementation

* Somewhat simpler implementation

* Add docs

* Add docs version tag
2023-05-06 11:40:22 +01:00
Mario Pietsch
b61aef27d7
External-js file naming adjusted. import docs form tw5.com. make extrnal-js more visible (#7361)
* external-js file naming adjusted. import docs form tw5.com. make external-js more visible

* add comment about doc usage in server-external-js edition

* add changes suggested by cdruan

* change modifed date to start vercel rebuild process
2023-05-06 11:37:05 +01:00
jeremy@jermolene.com
a1b706a945 Remove dynannotate plugin fro tw5.com edition
It was added temporarily to make #7260 easier to work on
2023-05-06 11:36:36 +01:00
yaisog
2340d48844
Add additional searchModes to Dynannotate (#7260)
* Add searchModes: literal, some and words

* Add additional search modes

Description of selection tracker config tiddlers was also changed.

* Update simple.tid

* Improve View Template examples

Transcludes a sample tiddler for demonstration instead of the dynannotate view template code.
Adds an example for usage with $genesis to add state tiddler controlled per-tiddler highlights.

* Make search highlights not case sensitive

* Remove created and modified fields

* Add another example text (Searching in Tiddlywiki)

* Add dynannotate for vercel deployment

This should probably not be merged...

* Create LegacySelectionTracker.tid

* Create SelectionTracker.tid

* Revert putting the SelectionTracker config titles in code blocks

* Replace inline styles with CSS class

* Add class for view template examples

Class name is tc-dynannotate-example-frame.

* Remove some <br> line breaks.

* Remove first example transclusion and fix some tab spacing

* Add class to override control panel table layout

* Add class to settings table

* More tab shenanigans

Great Scott!

* Add explanatory comment to example macro

* Change defaults to match widget behavior

* Make previous macro comment more concise

* Change example to transclude CP tiddler

$:/core/ui/ControlPanel/TiddlerFields

* Delete unnecessary example tiddler
2023-05-06 11:30:21 +01:00
Michelle Saad
4e641f4fc0
Add 'filepath' source attribute to tiddlywiki.files (#7253)
* Add 'filepath' source attribute to tiddlywiki.files

Adds a new source attribute to facilitate importing subdirectories with
the `searchSubdirectories` attribute.

The `filepath` atttribute is like `filename` except it includes the full
pathname relative to the directory path. Consequently it only works with
`directories` sections (not `tiddlers`).

* Add `subdirectories` source attribute to tiddlywiki.files

Adds another new source attribute to facilitate importing subdirectories
with the `searchSubdirectories` attribute.

The `subdirectories` source attribute is only usable with `directories`
sections (not `tiddlers`). It resolves to an array containing all the
directories in the file's path relative to the directory path. Eg, if
the directory path is `files`, `{ source: 'subdirectories' }` for a file
in  `files/images/photos` would resolve to `['images', 'photos'].

This commit also adds an example to the "tiddlywiki.files Files"
documentation tiddler that demonstrates using the `filepath` and
`subdirectories` source attributes to import and auto-tag image files
as external-image tiddlers.
2023-05-06 11:26:40 +01:00
Mohammad Rahmani
17f18daa89
Docs: Fix typo in “Procedure Calls.tid” (#7429)
fix typo in procedure call
2023-05-05 18:47:03 +01:00
jeremy@jermolene.com
7fc0c0bc82 Fix missed docs update 2023-05-04 17:33:08 +01:00
jeremy@jermolene.com
cf71f6f0ce Merge branch 'tm-http-request-message' into geospatial-plugin 2023-05-04 09:11:39 +01:00
jeremy@jermolene.com
a927de5b78 Merge branch 'master' into tm-http-request-message 2023-05-04 09:11:25 +01:00
jeremy@jermolene.com
b2aeea0393 Merge branch 'tiddlywiki-com' 2023-05-04 09:11:14 +01:00
jeremy@jermolene.com
d9b6384884 Don't have data widget rendering its own JSON
Making the data widget render its raw JSON (introduced in 683ec33004) was a bad idea as it messes up the innerwiki use of the data widget. Instead we use the testcase widget with a special template to render the raw JSON of the payload of a testcase, thus giving us a way to test the data widget
2023-05-04 08:57:43 +01:00
jeremy@jermolene.com
09e626e8ab Further fixes to cancelling outstanding HTTP requests 2023-05-03 08:51:55 +01:00
jeremy@jermolene.com
cc7b857d71 Fix crash when cancelling more than one HTTP request
Thanks @saqimtiaz
2023-05-03 08:30:58 +01:00
jeremy@jermolene.com
c6f15d8e8c Data widget: parse carriage returns in compound tiddlers 2023-05-02 21:39:11 +01:00
jeremy@jermolene.com
cdf0d63f58 Merge branch 'tm-http-request-message' into geospatial-plugin 2023-05-02 21:33:55 +01:00
Jeremy Ruston
53715bd3fd
Fix typo
Thanks @btheado

Co-authored-by: btheado <brian.theado@gmail.com>
2023-05-02 21:32:00 +01:00
jeremy@jermolene.com
b8b29aa035 Merge branch 'tm-http-request-message' into geospatial-plugin 2023-05-02 17:19:23 +01:00
jeremy@jermolene.com
499eafcd34 WIP 2023-05-02 17:15:14 +01:00
jeremy@jermolene.com
f798bf5611 Add a network activity button
Click it to cancel outstanding requests
2023-05-02 17:07:16 +01:00
jeremy@jermolene.com
fc22df908d Make the number of outstanding HTTP requests available in a state tiddler 2023-05-02 11:37:37 +01:00
jeremy@jermolene.com
be1882dd4c Add support for cancelling HTTP requests 2023-05-01 17:46:04 +01:00
jeremy@jermolene.com
0adc0518a6 HttpClient object shouldn't need to know about events 2023-05-01 17:04:35 +01:00
Mario Pietsch
48b7b5d294
Fix a typo in example (#7423)
fix a typo in example
2023-05-01 12:53:26 +01:00
jeremy@jermolene.com
585c7339de Initial Commit 2023-04-29 17:16:14 +01:00
jeremy@jermolene.com
9c12d16a70 Test case default template: Always put "Output" tab first 2023-04-28 10:55:45 +01:00
jeremy@jermolene.com
4a0ffcfb97 Make test cases editable 2023-04-28 10:48:08 +01:00
jeremy@jermolene.com
b47c75785a New geonearestpoint test case 2023-04-28 10:47:57 +01:00
jeremy@jermolene.com
19d2fe965d Docs correction 2023-04-28 10:47:21 +01:00
jeremy@jermolene.com
f700cd16ef Testcase template: put title at the top and remove header row 2023-04-27 18:06:12 +01:00