summaryrefslogtreecommitdiff
path: root/lib/web/note (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixed meta parsing of lang-attribute for using it in the published-viewErik Michelson2020-07-041-1/+1
| | | | Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Added dynamic lang-attr to pretty.ejsErik Michelson2020-07-031-0/+1
| | | | | | CodiMD currently only uses the 'lang' attribute in YAML-metadata of a note for setting certain js-elements of the markdown-renderer. This commit adds the chosen lang into the published version of a note. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* findNoteOrCreate: Create new note with empty string instead of `null`Sandro2020-04-281-1/+1
| | | | | | Backport of #345 to 1.x Signed-off-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
* Backport Fix for relative theme pathSheogorath2020-03-211-1/+1
| | | | | | This commit backport 856fc01fb9b30489b254f2ef9d29de80aa189118 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Inline renderPublishSlideDavid Mehren2019-10-271-8/+4
| | | | Signed-off-by: David Mehren <dmehren1@gmail.com>
* Inline responseCodiMDDavid Mehren2019-10-271-18/+14
| | | | Signed-off-by: David Mehren <dmehren1@gmail.com>
* Inline publish and slideDavid Mehren2019-10-271-10/+2
| | | | Signed-off-by: David Mehren <dmehren1@gmail.com>
* Inline renderPublishDavid Mehren2019-10-271-8/+4
| | | | Signed-off-by: David Mehren <dmehren1@gmail.com>
* Move showPublishNote and publishNoteActions to note controllerDavid Mehren2019-10-275-43/+99
| | | | Signed-off-by: David Mehren <dmehren1@gmail.com>
* Move showNote to note controllerDavid Mehren2019-10-272-105/+19
| | | | Signed-off-by: David Mehren <dmehren1@gmail.com>
* Move note actions into their own fileDavid Mehren2019-10-272-9/+131
| | | | Signed-off-by: David Mehren <dmehren1@gmail.com>
* Rename actions.js to controller.js and rename functions to be more descriptiveDavid Mehren2019-10-272-20/+31
| | | | | | Move postNote to NoteController and rename to createFromPost Signed-off-by: David Mehren <dmehren1@gmail.com>
* Move slide actions to own fileDavid Mehren2019-10-272-2/+86
| | | | Signed-off-by: David Mehren <dmehren1@gmail.com>
* Fix errors constant in note/actions.jsDavid Mehren2019-10-271-7/+7
| | | | Signed-off-by: David Mehren <dmehren1@gmail.com>
* Move note actions to their own file.David Mehren2019-10-273-0/+286
Because of circular import problems, this commit also moves the error messages from response.js to errors.js Signed-off-by: David Mehren <dmehren1@gmail.com>