mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-26 20:15:15 +00:00
Initial commit
This is the very barebones beginnings of a demo implementation of an alternate tiddler store. It is not functional. If using the Vercel builds, open developer tools in the browser to see it failing due to the absence of basic wiki methods. The plan is to build it up into the smallest possible plain JS wiki store implementation, sharing as much implementation as possible with the existing core implementation with as little code duplication as possible. It could then serve as the basis for future experiments with wiki stores based on SQLite (@linonetwo), or a custom append only database (@yaisog).
This commit is contained in:
6
plugins/tiddlywiki/demo-alternate-store/plugin.info
Normal file
6
plugins/tiddlywiki/demo-alternate-store/plugin.info
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"title": "$:/plugins/tiddlywiki/demo-alternate-store",
|
||||
"name": "Demo alternate store",
|
||||
"description": "Developer demo of an alternate wiki store implementation",
|
||||
"list": "readme"
|
||||
}
|
||||
22
plugins/tiddlywiki/demo-alternate-store/rawmarkup.js
Normal file
22
plugins/tiddlywiki/demo-alternate-store/rawmarkup.js
Normal file
@@ -0,0 +1,22 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/demo-alternate-store/rawmarkup.js
|
||||
type: application/javascript
|
||||
module-type: library
|
||||
|
||||
Startup code injected as raw markup
|
||||
|
||||
\*/
|
||||
|
||||
(function() {
|
||||
|
||||
// Need to initialise these because we run before bootprefix.js and boot.js
|
||||
$tw = window.$tw || Object.create(null);
|
||||
$tw.hooks = $tw.hooks || { names: {}};
|
||||
$tw.boot = $tw.boot || {};
|
||||
$tw.boot.preloadDirty = $tw.boot.preloadDirty || [];
|
||||
|
||||
$tw.Wiki = function() {
|
||||
|
||||
};
|
||||
|
||||
})();
|
||||
6
plugins/tiddlywiki/demo-alternate-store/rawmarkup.tid
Normal file
6
plugins/tiddlywiki/demo-alternate-store/rawmarkup.tid
Normal file
@@ -0,0 +1,6 @@
|
||||
title: $:/plugins/tiddlywiki/demo-alternate-store/rawmarkup
|
||||
tags: $:/tags/RawMarkupWikified
|
||||
|
||||
`<script>`
|
||||
{{$:/plugins/tiddlywiki/demo-alternate-store/rawmarkup.js}}
|
||||
`</script>`
|
||||
3
plugins/tiddlywiki/demo-alternate-store/readme.tid
Normal file
3
plugins/tiddlywiki/demo-alternate-store/readme.tid
Normal file
@@ -0,0 +1,3 @@
|
||||
title: $:/plugins/tiddlywiki/demo-alternate-store/readme
|
||||
|
||||
Developer demo of an alternate wiki store implementation
|
||||
Reference in New Issue
Block a user