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

1014 Commits

Author SHA1 Message Date
jeremy@jermolene.com
a05302da10 Revert "Bidirectional text improvements (#4541)"
This reverts commit f90eb386ae.
2023-06-21 17:13:33 +01:00
jeremy@jermolene.com
5b4c0244a1 Merge branch 'master' into geospatial-plugin 2023-06-21 09:38:57 +01:00
jeremy@jermolene.com
d8124ee82d Menu bar plugin: Hide menu bar in static renderings
Fixes #7476
2023-06-17 08:58:50 +01:00
cdruan
b61c01d8b0
Update widget name policy (#7510) 2023-06-14 09:55:16 +01:00
jeremy@jermolene.com
4b919e3b7f Remove unwanted log 2023-06-13 18:23:37 +01:00
jeremy@jermolene.com
39daa29077 Merge branch 'master' into geospatial-plugin 2023-06-13 18:21:07 +01:00
Jeremy Ruston
f90eb386ae
Bidirectional text improvements (#4541)
* Add support for \dir pragma

* Add "dir" attribute to reveal, edit, edit-text and edit-codemirror widgets

* Add  $:/config/DefaultTextDirection hidden setting

* Revert accidentally commited test data

This reverts some of commit b83c1d160f.

* Remove Codemirror plugin from Prerelease

Makes it easier to test things

* Fix framed text editor directionality in Firefox

* Add direction attribute for edit body template

* Missed closing brace

* Add docs for \dir pragma

* Templates should set text direction from a variable, not a transclusion

* Updates to framed.js in the light of PRs that have been merged since this

* Restore whitespace trim

* Docs dates

* Fix typo

* Clarify docs
2023-06-13 16:36:07 +01:00
btheado
86d45f1c3d
Request permission to protect local storage from eviction (#7398)
* Request the browser to never evict the persistent storage

* Store browser storage persisted state in a tiddler

* Factor out some code into helper functions

* Display status of persistence request in the settings page
2023-06-13 10:50:00 +01:00
jeremy@jermolene.com
c918f43550 Add support for draggable markers 2023-06-12 16:39:33 +01:00
jeremy@jermolene.com
b2b51a3552 Docs update 2023-06-12 15:35:26 +01:00
jeremy@jermolene.com
c47496463d Merge branch 'master' into geospatial-plugin 2023-06-12 15:32:42 +01:00
jeremy@jermolene.com
a12a9bd939 Fixes to browser storage plugin icon 2023-06-12 09:22:20 +01:00
jeremy@jermolene.com
33af59807d Icon for geospatial plugin 2023-06-12 09:22:03 +01:00
jeremy@jermolene.com
d9fa39aa14 Move settings from demo into plugin
Because now the Flickr macros are part of the plugin
2023-06-12 08:48:42 +01:00
jeremy@jermolene.com
9285470562 Merge branch 'master' into geospatial-plugin 2023-06-11 12:22:42 +01:00
GameDungeon
578e883bdc
Add Tabs To Settings (#7524)
* Move to Core

* List-Before

* Update core/ui/ControlPanel/Settings.tid

* Proper list-before
2023-06-11 10:28:52 +01:00
jeremy@jermolene.com
4b653c2547 Add interactive demos for geounion, geodifference, geointersection 2023-05-31 09:38:19 +01:00
jeremy@jermolene.com
3ee09af9a7 Update geolayer widget docs with missing attributes 2023-05-31 09:38:02 +01:00
jeremy@jermolene.com
463f0cd983 Add startPosition and layersPanel attributes to geomap widget 2023-05-31 09:37:44 +01:00
jeremy@jermolene.com
d785fa4c03 Geomap widget: fix default base layer rendering 2023-05-30 21:42:02 +01:00
jeremy@jermolene.com
cf44e0b8e4 Merge branch 'master' into geospatial-plugin 2023-05-30 18:42:49 +01:00
Tavin Cole
4e7a6ffc22
Add codemirror option to show trailing space (#7493)
* codemirror edit/trailingspace addon (default off)

* refactor as codemirror-trailingspace plugin

* copy cm-trailingspace styles from cm demo
2023-05-27 18:28:27 +02:00
btheado
74e0619782
Protect codemirror.css from wikitext parsing, otherwise 'CodeMirror' is considered a wikilink (#7500) 2023-05-27 18:22:31 +02:00
jeremy@jermolene.com
908ea64af1 Docs update 2023-05-22 12:28:50 +01:00
jeremy@jermolene.com
c7771c95c7 Add a note where to get more base layers 2023-05-21 22:46:12 +01:00
jeremy@jermolene.com
7a82f155bb Add a satellite base layer and another terrain base layer 2023-05-21 22:36:36 +01:00
jeremy@jermolene.com
1f73d70218 Merge branch 'master' into geospatial-plugin 2023-05-21 22:06:39 +01:00
jeremy@jermolene.com
dbabdfce53 Support for multiple base layers
* Make the layers control visible which allows the base layer to be chosen, and individual overlay layers to be hidden
* Add tiddlers tagged $:/tags/GeoBaseLayer to define some useful map base layers
* Add geobaselayer widget to define base layers
2023-05-21 22:06:32 +01:00
jeremy@jermolene.com
9bfe6e3a5f Tests for geounion, geointersect and geodifference 2023-05-21 15:02:49 +01:00
jeremy@jermolene.com
990909c310 Revert "Feat: destroy() method for widgets to do custom cleanup (#6699)"
This reverts commit 474b73bdbe.
2023-05-18 17:27:05 +01:00
jeremy@jermolene.com
a14f038780 Merge branch 'master' into geospatial-plugin 2023-05-14 21:49:00 +01:00
jeremy@jermolene.com
3da0a9431c Introduce $:/tags/Global tag
And also $:/tags/Global/View and $:/tags/Global/View/Body
2023-05-09 15:46:54 +01:00
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
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
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
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
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
jeremy@jermolene.com
7fc0c0bc82 Fix missed docs update 2023-05-04 17:33:08 +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
b47c75785a New geonearestpoint test case 2023-04-28 10:47:57 +01:00
jeremy@jermolene.com
6a3977dddd Extend geonearestpoint operator to work with feature collections 2023-04-26 14:07:58 +01:00
jeremy@jermolene.com
60fbfa3b19 Complete Flickr demos 2023-04-26 12:21:24 +01:00
jeremy@jermolene.com
2cf0423401 Switch testcase widget to use an intrinsic template
Makes things much simpler
2023-04-26 12:16:52 +01:00
jeremy@jermolene.com
546e55dcde Rename $:/tags/GeoLayer to $:/tags/GeoFeature
And make sure that it works with all GeoJSON features, not just polygons
2023-04-25 17:27:17 +01:00
jeremy@jermolene.com
e6b9bac236 Flickr macro docs 2023-04-20 16:57:49 +01:00
jeremy@jermolene.com
20e873ad31 Extend Flickr helpers to support photoTiddlerTemplate parameter 2023-04-19 10:17:21 +01:00
jeremy@jermolene.com
59a8cf3274 FlickrMacros: Use a template to define photo tiddler fields 2023-04-18 22:32:02 +01:00
jeremy@jermolene.com
62d0dd3372 Move Flickr macros into geospatial plugin from the demo edition 2023-04-18 18:55:32 +01:00
jeremy@jermolene.com
683ec33004 Refactor compound tiddler handling into data widget
And add some tests for the data widget
2023-04-17 11:13:35 +01:00
jeremy@jermolene.com
6c9b8116bd Remove erroneously copied olc-encode tests within old-decode test case 2023-04-14 21:37:52 +01:00
jeremy@jermolene.com
f2ccce268d Remove erroneously pasted docs material 2023-04-13 10:56:09 +01:00
jeremy@jermolene.com
6d617ce939 Integrate test cases with the docs 2023-04-13 09:39:52 +01:00
jeremy@jermolene.com
b6181e1cb1 Refactor data widget implementation
To avoid code duplication
2023-04-13 08:42:18 +01:00
jeremy@jermolene.com
f41e71299b Add a geomap layer demo 2023-04-11 18:13:58 +01:00
jeremy@jermolene.com
e2223c42ab Add some geomap examples 2023-04-11 18:00:11 +01:00
jeremy@jermolene.com
c348924838 Split docs into separate tabs 2023-04-11 17:14:51 +01:00
jeremy@jermolene.com
de9ea40179 Introduce testcase widget so that we can reuse testcases as documentation examples
There's still a bit to do: adding tabs to the source panel of the testcase display, and tweaking the CSS.
2023-04-10 16:25:01 +01:00
jeremy@jermolene.com
2a19e20307 Add geonearestpoint operator 2023-04-04 21:49:22 +01:00
jeremy@jermolene.com
28a33df91d Add jsonset operator 2023-04-04 21:48:26 +01:00
Jeremy Ruston
ab845fefae Docs updates 2023-04-03 17:59:01 +01:00
Jeremy Ruston
bd7742daeb Fix minor refreshing bug for geomap widget 2023-04-03 17:58:49 +01:00
jeremy@jermolene.com
9fdb81b08f Docs update 2023-04-02 19:29:49 +01:00
jeremy@jermolene.com
594069836f Cleanup docs 2023-03-24 14:00:34 +00:00
jeremy@jermolene.com
0cdf99db9e Display GeoJSON properties on click 2023-03-17 13:05:00 +00:00
jeremy@jermolene.com
cd46d9e2ff Start of plugin docs 2023-03-17 12:46:05 +00:00
jeremy@jermolene.com
a96e3f46d1 Rearranging geospatial plugin vs. edition 2023-03-17 09:48:35 +00:00
jeremy@jermolene.com
1fbc35e15a Split demo from the geospatial plugin into its own edition 2023-03-16 17:22:22 +00:00
jeremy@jermolene.com
aa532a94c8 Use geojson extensions for another geojson file 2023-03-11 18:27:57 +00:00
jeremy@jermolene.com
18b8b12baa Use geojson extension for geojson file 2023-03-10 22:17:55 +00:00
jeremy@jermolene.com
3699780f90 Track map pan and zoom state in a state tiddler 2023-03-10 12:45:20 +00:00
jeremy@jermolene.com
449562eea2 Remove demo data 2023-03-10 12:44:39 +00:00
jeremy@jermolene.com
eab670a44e Merge branch 'parameterised-transclusions' into geospatial-plugin 2023-03-10 09:11:16 +00:00
jeremy@jermolene.com
5a9bb0ef9d Real estate demo: Increase result limit 2023-03-08 08:37:04 +00:00
jeremy@jermolene.com
b5d790a658 Real Estate Demo: Add support for computed columns 2023-03-07 12:09:02 +00:00
Mario Pietsch
416a2fae7a
Add syntax docs to railroad plugin (#7334) 2023-03-06 16:12:26 +00:00
jeremy@jermolene.com
bb5489b31e Add geolookup operator 2023-03-06 14:06:16 +00:00
jeremy@jermolene.com
17ebeaf725 Fix startup ordering 2023-03-06 14:05:55 +00:00
jeremy@jermolene.com
9ab2623629 Fix lat long transposition 2023-03-06 14:05:41 +00:00
jeremy@jermolene.com
e051b2dbcf Merge branch 'parameterised-transclusions' into geospatial-plugin 2023-03-06 09:07:05 +00:00
jeremy@jermolene.com
3f478f5689 Naming tweak to #6047
@linonetwo I realised on review that we refer to boot.files as the "tiddler file info"
2023-03-05 17:40:04 +00:00
cdruan
f9604c40d3
Add wikiparser.js dependency (#7330) 2023-03-05 10:34:41 +00:00
lin onetwo
d14e775b90
Allow deleteTiddler to not modify fs (#6047)
* feat: allow deleteTiddler to not modify fs

* refactor: add new function that merely delete file in cache, and let old func calls it

* fix: self is undefined
2023-03-03 21:56:40 +00:00
jeremy@jermolene.com
a1a1f9ccd5 Real estate demo: search and limit 2023-03-03 13:15:04 +00:00
jeremy@jermolene.com
85bbb08838 Real estate demo: sortability 2023-03-03 09:50:54 +00:00
jeremy@jermolene.com
6beb058e2d Real estate demo: Make columns hideable 2023-02-28 09:36:02 +00:00
jeremy@jermolene.com
9700030d12 Merge branch 'parameterised-transclusions' into geospatial-plugin 2023-02-28 08:46:28 +00:00
Saq Imtiaz
5bce35d90b
Fix: add twEditor attribute to paste events handled by codemirror (#7281) 2023-02-28 08:35:15 +00:00
cdruan
eb8f4d66b9
Markdown Plugin: Handle non-string attr values in tw_image() (#7284) 2023-02-24 15:41:29 +00:00
jeremy@jermolene.com
ef03a4a5df Markdown Plugin: Default to recognising TiddlyWiki-format links
Fixes #7275
2023-02-24 09:51:45 +00:00
jeremy@jermolene.com
f36e45ffa9 Beginnings of real estate demo 2023-02-13 22:44:39 +00:00
jeremy@jermolene.com
800049e39d Reduce default cluster radius 2023-02-13 10:56:29 +00:00
jeremy@jermolene.com
b1f8d3e4bd Rearrange real estate demo 2023-02-13 10:56:14 +00:00
jeremy@jermolene.com
235b2f79a0 Setup the marker cluster plugin 2023-02-12 16:49:32 +00:00
jeremy@jermolene.com
b80cf8c83c Add Leaflet MasterCluster plugin 2023-02-12 10:58:18 +00:00
jeremy@jermolene.com
c8b2146a1c Update geomap widget to refresh properly 2023-02-12 10:57:54 +00:00
jeremy@jermolene.com
dae48d4883 Clean up Flickr demo 2023-02-10 16:34:19 +00:00