mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-20 13:11:44 +00:00
Updated Data format (markdown)
@@ -47,9 +47,19 @@ This is an image of the folder(storage).
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Naming rule
|
## Naming rule
|
||||||
Random name for folder is created by
|
Names used in Boostnote is created as a random string by [keygen.js](https://github.com/BoostIO/Boostnote/blob/95d74d1ca2206ed18add0348682af0063a5ac5b0/browser/lib/keygen.js).
|
||||||
|
|
||||||
|
`Folder name` and `Note name` is a 20 letters string created by `browser/main/lib/dataApi/createFolder.js` and by `browser/main/lib/dataApi/createNote.js`.
|
||||||
|
|
||||||
|
https://github.com/BoostIO/Boostnote/blob/a480ca7b551bf70becf8000047b6608194c5c27c/browser/main/lib/dataApi/createFolder.js#L38:L57
|
||||||
|
https://github.com/BoostIO/Boostnote/blob/a480ca7b551bf70becf8000047b6608194c5c27c/browser/main/lib/dataApi/createNote.js#L54:L79
|
||||||
|
|
||||||
|
# Note hash
|
||||||
|
Each note has a unique hash for jumping a note to a note. You can check it in InfoPanel.
|
||||||
|

|
||||||
|
|
||||||
|
In this case, the hash is `3bfa3f3e67aef359ac6f-b5176bbf1cc5f34cd578`. This is a combination of `Storage key` and `Note key` (`\`${storageKey}-${noteKey}\``).
|
||||||
# Why cson?
|
# Why cson?
|
||||||
CSON supports multiline string. So we can use diff much easier.
|
CSON supports multiline string. So we can use diff much easier.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user