kfischer_okarin
05/05/2022, 2:46 AMkfischer_okarin
05/05/2022, 2:47 AMaleksey
05/05/2022, 2:47 AMkevins8
05/05/2022, 2:55 AMalexis<3
05/07/2022, 9:04 PMSeriousBug
05/07/2022, 9:08 PMnote/write
to update a note, or create a new note: https://github.com/dendronhq/dendron/blob/master/packages/common-all/src/api.ts#L468
You can look up an existing note with note/query
I think: https://github.com/dendronhq/dendron/blob/master/packages/common-all/src/api.ts#L475
There are no docs for the API yet unfortunately, but this file lists everything and has the type definitions for the arguements and responses. If you have some time to dig you should be able to find what you need to send to the API, let us know if you need more details.alexis<3
05/07/2022, 9:09 PMSeriousBug
05/07/2022, 9:14 PMalexis<3
05/07/2022, 9:15 PMSeriousBug
05/07/2022, 9:18 PMjson
$ curl 'http://localhost:37437/api/note/query?qs=root'
{"error":null,"data":[{"id":"mLZTswhw1jIEVJaPjKoPq","title":"Bulgur Cloud","desc":"","updated":1648930214020,"created":1644786306412,"config":{"global":{"enablePrettyRefs":false}},"custom":{},"fname":"root","type":"note","vault":{"fsPath":"vault"},"contentHash":"e8a713b4ada5e33a5b03ba81136655e6","links":[{"type":"ref","from":{"fname":"root","id":"mLZTswhw1jIEVJaPjKoPq","vaultName":"vault"},"value":"design","position":{"start":{"line":13,"column":1,"offset":228},"end":{"line":13,"column":12,"offset":239},"indent":[]},"xvault":false,"to":{"fname":"design"}},{"type":"ref","from":{"fname":"root","id":"mLZTswhw1jIEVJaPjKoPq","vaultName":"vault"},"value":"security","position":{"start":{"line":17,"column":1,"offset":254},"end":{"line":17,"column":14,"offset":267},"indent":[]},"xvault":false,"to":{"fname":"security"}}],"anchors":{"features":{"type":"header","text":"Features","value":"features","line":14,"column":0,"depth":2},"getting-started":{"type":"header","text":"Getting Started","value":"getting-started","line":16,"column":0,"depth":2},"internal-design":{"type":"header","text":"Internal Design","value":"internal-design","line":20,"column":0,"depth":2},"security":{"type":"header","text":"Security","value":"security","line":24,"column":0,"depth":2}},"children":["ai0rrgkg3yqjnl39mlxpflf","2wji4295zgv0zbu6uerddgu","blfS4m5x4Y3WYoY9DpIjO","658io7uxt1rps9l82agplpp","3jghtc0rle05ca8ysvwossc"],"parent":null,"data":{},"body":"..."}]}
SeriousBug
05/07/2022, 9:18 PM.dendron.port
file inside the root of the workspace, Dendron creates the file once the engine has startedalexis<3
05/07/2022, 9:26 PMalexis<3
05/07/2022, 9:28 PMhikchoi
05/07/2022, 9:38 PMalexis<3
05/07/2022, 9:45 PMMaxotronic
05/09/2022, 2:35 AMCommand 'Dendron: Show Schema Validator' resulted in an error (command 'dendron.showSchemaValidator' not found)
I can't find where that error is thrown - maybe it's internal? Been following [[Add an Editor View|pkg.dendron-plugin-views.tutorial.add-an-editor-view]]
Do I have to make a factory and put it in _extension.ts
?kevins8
05/09/2022, 2:48 AMgen:config
task
- make sure command is added to src/commands/index.ts
Nidoling
05/12/2022, 9:51 PMNoteFNamesDict
, what do you think of changing _internalMap
to new ListMap<string, NoteProps>()
. If we pass in a NotePropsDict
to the constructor, the internal map will be fnames -> list of object references.
This shouldn't increase memory footprint as we're not creating a new NotePropsDict and will make this dictionary easier to use since the user won't have to pass around 2 dictionaries (NoteFnamesDict
and NotePropsDict
). Happy to talk online if it helpsSeriousBug
05/12/2022, 9:53 PMNotePropsDict
and putting everything inside a single class. That class can then expose 2 interfaces, a getByName
and a getById
, both of which can be performed efficiently. That will also get rid of any risk of both maps becoming desynced if we don't update them together accidentally.SeriousBug
05/12/2022, 9:54 PMNidoling
05/12/2022, 9:58 PMhikchoi
05/16/2022, 3:06 PMkevins8
05/16/2022, 3:17 PMSeriousBug
05/24/2022, 5:27 AMuseCurrentTheme
hook which gets whether the current theme is supposed to be light or dark, but the value only seems to be passed into mermaid. There's also a function getThemeType
, but it's not used anywhere. Also ThemeUtils.getTheme
which is not used anywhere either.Joshi
05/24/2022, 5:35 AMSeriousBug
05/24/2022, 5:38 AMideSlice
, but I can't find anywhere that uses the information from the selector to actually set the theme.SeriousBug
05/24/2022, 5:39 AMJoshi
05/24/2022, 5:45 AMdendron-next-server
, for preview we now use dendron-plugin-views
.SeriousBug
05/24/2022, 5:45 AMkevins8
05/24/2022, 4:58 PM