-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information
Showing
7 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Jermolene
Author
Member
|
||
$tw.hooks = $tw.hooks || { names: {}}; | ||
$tw.boot = $tw.boot || {}; | ||
$tw.boot.preloadDirty = $tw.boot.preloadDirty || []; | ||
|
||
$tw.Wiki = function() { | ||
|
||
}; | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
title: $:/plugins/tiddlywiki/demo-alternate-store/rawmarkup | ||
tags: $:/tags/RawMarkupWikified | ||
|
||
`<script>` | ||
{{$:/plugins/tiddlywiki/demo-alternate-store/rawmarkup.js}} | ||
`</script>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
title: $:/plugins/tiddlywiki/demo-alternate-store/readme | ||
|
||
Developer demo of an alternate wiki store implementation |
Do we need to prepare a class instance that extends the core
$tw
? Otherwise some $tw.utils will be unavailable.