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

900 Commits

Author SHA1 Message Date
Jeremy Ruston
7fd2dd5a3e Wire up the tag indexer properly
Improves rendering performance by a factor of 4, but we're still 5 times slower than the plain JS store
2023-07-19 21:52:28 +01:00
Jeremy Ruston
2d3027faab Sql console styling 2023-07-19 19:52:44 +01:00
Jeremy Ruston
2cd2a057f8 Fix tag saving 2023-07-19 19:52:34 +01:00
Jeremy Ruston
09b0e2815c Style update for sql console 2023-07-19 19:19:57 +01:00
Jeremy Ruston
b4fe89657b Styling for SQL console 2023-07-19 18:08:35 +01:00
Jeremy Ruston
88c8c2c9f3 SQL console - process query on enter key 2023-07-19 09:04:38 +01:00
Jeremy Ruston
979a1f746d Introduce sql console
Very bare bones, but functional. Results are displayed in JSON for the moment. The console should also perhaps be hidden by default, with a keyboard shortcut, and a setting in local storage.
2023-07-18 21:54:01 +01:00
Jeremy Ruston
cc2cd20e32 Add tags tables and tag indexer and make custom collator be optional
This commit (a) is very much work in progress (b) improves performance significantly and (c) is actually broken

Right now, theme stylesheets don't get loaded for some reason.

I plan to spend some time improving debuggability by adding a SQL console
2023-07-18 19:33:21 +01:00
Jeremy Ruston
709669b714 Merge branch 'master' into demo-alternate-store 2023-07-14 12:42:14 +01:00
Jeremy Ruston
a7bafd8840 Google Analytics: tweaks 2023-07-14 12:41:55 +01:00
Jeremy Ruston
e3255a4d2a Merge branch 'master' into demo-alternate-store 2023-07-13 17:57:42 +01:00
Jeremy Ruston
b557deac79 Update comment 2023-07-07 10:15:40 +01:00
Jeremy Ruston
64ffa52da9 Write tiddlers with string fields
Otherwise date fields will get saved as JS date objects, which are not properly defined in JSON.
2023-07-07 08:22:36 +01:00
Jeremy Ruston
d2e21ddd3c Add a custom collator that matches JS ordering 2023-07-07 08:20:57 +01:00
jeremy@jermolene.com
6954fbee51 Fix comment missing from previous commit 6c7c21a87b 2023-07-06 12:01:39 +01:00
jeremy@jermolene.com
f3bc32a2e9 Merge branch 'master' into demo-alternate-store 2023-07-06 11:55:38 +01:00
jeremy@jermolene.com
9e190a46db Use a temporary database so that multiple wiki stores can coexist 2023-07-06 11:54:03 +01:00
jeremy@jermolene.com
2d229e2159 Add logging utility 2023-07-06 11:53:41 +01:00
jeremy@jermolene.com
6c7c21a87b Fix overeager onload handler in Jasmine plugin
All of this is needed to enable the Jasmine plugin to work in environment with an asynchronous startup, as seen in the sqlite3 wiki store
2023-07-06 11:52:33 +01:00
jeremy@jermolene.com
1f4be3e92f I experimented with custom collations to match JS sort order, but 5x slower 2023-06-30 10:46:27 +01:00
Jeremy Ruston
b29af447e5 Fix typo 2023-06-29 22:49:08 +01:00
Jeremy Ruston
87213f2c65 Refactpr sql-wiki-store into two files 2023-06-29 07:55:59 +01:00
Jeremy Ruston
12a19bb9cf Remove instrumentation
Makes the code complex and is hard to keep up to date
2023-06-28 17:27:01 +01:00
jeremy@jermolene.com
8399538814 Merge branch 'master' into demo-alternate-store 2023-06-28 11:45:42 +01:00
jeremy@jermolene.com
ede5f1e9ad Prepare the save tiddler query 2023-06-28 11:43:57 +01:00
Mario Pietsch
16ef1d84cd
Change arrow-function to function call for HTA (#7552) 2023-06-28 09:54:27 +01:00
jeremy@jermolene.com
9cb8721343 Use sql functions for processing shadow tiddlers 2023-06-27 19:10:42 +01:00
jeremy@jermolene.com
7e6072611e Wire the sql functions into the wiki object
At this point, the result is incredibly, painfully slow – the wiki will probably fail to load entirely on mobile
2023-06-25 21:05:28 +01:00
jeremy@jermolene.com
9ac21f167f Simplify the plain JS store implementation
Removing indexers and title cache
2023-06-25 17:03:28 +01:00
jeremy@jermolene.com
9427cf7ac6 Additional method to retrieve all titles 2023-06-23 17:33:35 +01:00
jeremy@jermolene.com
8690936805 Cleanup and clarify 2023-06-23 16:58:46 +01:00
jeremy@jermolene.com
831fb3996d Tiddler sql function tests should show custom field 2023-06-23 14:52:14 +01:00
jeremy@jermolene.com
c43bc8f92a Start prototyping some tiddler operations in sql 2023-06-23 14:47:35 +01:00
jeremy@jermolene.com
449e2274e2 Test code to exercise the database 2023-06-23 12:40:59 +01:00
jeremy@jermolene.com
146a22b894 Make rawmarkup code dynamically load dependencies
empty.html with the plugin is now 4.1MB
2023-06-22 15:24:39 +01:00
jeremy@jermolene.com
0546a14201 Restructure the sqlite3 store as a separate plugin 2023-06-22 15:04:55 +01:00
jeremy@jermolene.com
544e079033 Proof of concept of instantiating sqlite3 without needing external dependencies
We get a reference to sqlite3 but we're not yet doing anything with it

Also note that this approach leads to duplication - there will be two copies of sqlite3.js and sqlite3.wasm in each generated HTML file. The plan is to dynamically retrieve those tiddlers from the store area rather than baking them into the raw markup area
2023-06-22 14:27:37 +01:00
jeremy@jermolene.com
1d0b9280d8 Incorporate @joshuafontany's plain JS wiki implementation
And make the demo storage areas switchable

@joshuafontany's implementation was in #7521
2023-06-22 09:36:25 +01:00
jeremy@jermolene.com
3561318515 Merge branch 'master' into demo-alternate-store 2023-06-22 09:17:55 +01:00
Jeremy Ruston
9b8db5dbb1
Update to Google Analytics 4 (#7554)
* Adopt Google Analytics 4 tag code

* Fix typo

* Temporarily add Google Analytics tracking to tw5.com

So that we can test everything is working with the Vercel preview

* Remove test configuration
2023-06-22 08:48:48 +01:00
jeremy@jermolene.com
a05302da10 Revert "Bidirectional text improvements (#4541)"
This reverts commit f90eb386ae.
2023-06-21 17:13:33 +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 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
a12a9bd939 Fixes to browser storage plugin icon 2023-06-12 09:22:20 +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
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
990909c310 Revert "Feat: destroy() method for widgets to do custom cleanup (#6699)"
This reverts commit 474b73bdbe.
2023-05-18 17:27:05 +01:00