obsidian docs

This commit is contained in:
Brendan Allan 2022-03-09 14:45:43 +08:00
parent f5f48767dc
commit 99efecafc3
6 changed files with 134 additions and 0 deletions

4
docs/.obsidian/app.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"legacyEditor": false,
"livePreview": true
}

3
docs/.obsidian/appearance.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"baseFontSize": 16
}

15
docs/.obsidian/core-plugins.json vendored Normal file
View file

@ -0,0 +1,15 @@
[
"file-explorer",
"global-search",
"switcher",
"graph",
"backlink",
"page-preview",
"note-composer",
"command-palette",
"editor-status",
"markdown-importer",
"word-count",
"open-with-default-app",
"file-recovery"
]

1
docs/.obsidian/hotkeys.json vendored Normal file
View file

@ -0,0 +1 @@
{}

94
docs/.obsidian/workspace vendored Normal file
View file

@ -0,0 +1,94 @@
{
"main": {
"id": "7eb5bcabc05eafb1",
"type": "split",
"children": [
{
"id": "87e80e5a19fcf8f8",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Sync Architecture.md",
"mode": "source",
"source": false
}
}
}
],
"direction": "vertical"
},
"left": {
"id": "9773a6d402291108",
"type": "split",
"children": [
{
"id": "6f887b74d131f006",
"type": "tabs",
"children": [
{
"id": "60bda245305d6272",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {}
}
},
{
"id": "a5289153302fbd08",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
}
}
}
]
}
],
"direction": "horizontal",
"width": 326.5
},
"right": {
"id": "5595a2060761ad75",
"type": "split",
"children": [
{
"id": "d060e2a27e26bcc4",
"type": "tabs",
"children": [
{
"id": "49b1bc7046ee46b5",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "Sync Architecture.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
}
}
}
]
}
],
"direction": "horizontal",
"width": 300,
"collapsed": true
},
"active": "87e80e5a19fcf8f8",
"lastOpenFiles": [
"Sync Architecture.md"
]
}

17
docs/Sync Architecture.md Normal file
View file

@ -0,0 +1,17 @@
# SQLite Sync Architecture
- Files and directories partitioned by client that owns them
- Global state modified using Operational Transforms-like system
- Transforms defined at the property level
- Transforms can have different priority
- eg. Tags that can be created and modified, but deleting takes precedence
- All clients store a list of other clients and a list of pending changes to be synced to each client
- New clients need to retrieve entire database from any client
- Includes any pending changes from said database
- Thus will be in the same state as the database it synced from
- Needs to ask other databases for changes and identify itself
## Global State
## File State