summaryrefslogtreecommitdiff
path: root/public (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add Malayalam translationSheogorath2020-09-091-0/+1
| | | | | | | | | | This patch adds the Malayalam translation to CodiMD. Do by our awesome translation supporters civic john, Sooraj Kenoth, Nithin Prabhakaran and Jothish. Thank you very much! Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Add prevent default to export button tooErik Michelson2020-08-231-1/+2
| | | | Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Add dropbox CSP directive if configured and make button clickableErik Michelson2020-08-231-1/+2
| | | | | | | The lack of a 'preventDefault' on the click event handler resulted in the dropbox link being unclickable. Furthermore because of a missing CSP rule, the dropbox script couldn't be loaded. The dropbox origin is now added to the CSP script sources if dropbox integration is configured. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Made changed/created status translatableErik Michelson2020-08-132-5/+9
| | | | | | The current version of CodiMD/HedgeDoc does only support translations to be filled on server-side rendering. To allow the translation of the changed/created texts, I duplicated the container that holds the text, and pre-filed these containers with the translation server-side. The client just needs to hide the unneeded container and show the right one to show the translated status text. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Restructured locale.js to be included into the editor's js bundleErik Michelson2020-08-132-31/+34
| | | | | | Until now client-side translations were only possible in the context of the intro/history page, because the locale-detection logic relied on the language selector as a source of available languages. The editor of course has no such selector. With this commit, I copied the list of available languages from the i18n-initialization (server-side) to support language detection in the editor too. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Fixed setting moment.js locale to user-defined languageErik Michelson2020-08-132-1/+7
| | | | Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Adjust features.md slightly after #232Daniel Lublin2020-07-121-4/+4
| | | | Signed-off-by: Daniel Lublin <daniel@lublin.se>
* Merge pull request #410 from oupala/feature/markdown-lintingDavid Mehren2020-07-105-1024/+1131
|\
| * style: linting markdown filesoupala2020-07-105-1024/+1131
| | | | | | | | | | | | | | | | Linting markdown files according to default remark-lint configuration. Files inside the `public` directory were not linted. Signed-off-by: oupala <oupala@users.noreply.github.com>
* | Merge pull request #437 from codimd/enhancement/lang-attr-publishedDavid Mehren2020-07-101-1/+1
|\ \
| * | Added dynamic lang-attr to pretty.ejsErik Michelson2020-07-031-1/+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>
* / Fixed yaml-metadata docsErik Michelson2020-07-021-1/+1
|/ | | | | | In the yaml-metadata docs, the example for the 'lang' attribute had an invalid key 'langs'. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Set all cookies with sameSite: strictDavid Mehren2020-06-084-12/+24
| | | | | | Modern browsers do not support (or will stop supporting) sameSite: none (or no sameSite attribute) without the Secure flag. As we don't want everyone to be able to make requests with our cookies anyway, this commit sets sameSite to strict. See https://developer.mozilla.org/de/docs/Web/HTTP/Headers/Set-Cookie/SameSite Signed-off-by: David Mehren <dmehren1@gmail.com>
* Fix checksums of mermaidNick Hahn2020-05-283-3/+3
| | | | Signed-off-by: Nick Hahn <nick.hahn@posteo.de>
* Update to mermaid 8.5.1Nick Hahn2020-05-273-3/+3
| | | | Signed-off-by: Nick Hahn <nick.hahn@posteo.de>
* Add translations for permissionsSheogorath2020-05-261-6/+6
| | | | | | | | | | Adding translations for permissions for a possible 1.6.1 release doesn't hurt but might helps some usecases of running CodiMD and we'll need the translations in the new frontend anyway. This patch adds the translations as well as the english local file. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Merge pull request #344 from SuperSandro2000/fix-links-1.xSheogorath2020-05-171-9/+9
|\ | | | | Fix redirected, outdated links and convert all to https
| * Update outdated linksSandro Jäckel2020-04-261-3/+3
| | | | | | | | Signed-off-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
| * Update all links with httpsSandro Jäckel2020-04-261-6/+6
| | | | | | | | Signed-off-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
* | Make "transform-style: preserve-3d;" screen-only.Marvin Gaube2020-03-231-2/+4
|/ | | | Signed-off-by: Marvin Gaube <dev@marvingaube.de>
* Release version 1.6.0Sheogorath2020-02-181-0/+85
| | | | Thanks for all contributions, this community is awesome.
* Merge pull request #267 from SISheogorath/fix/revisionLinksSheogorath2020-02-101-1/+1
|\ | | | | Fix revision redirect to index page
| * Fix revision redirect to index pageSheogorath2020-02-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The revision view had a bug that clicking on a list entry would redirect the user back to the index page instead of providing the revision diff. This was cased by the baseurl which is now used as reference for hrefs. Therefore when clicking on the `href="#"` this was actually pointing at `<baseurl>#` which is usually the index page. This patch simply removes the href from the list items and therefore the link functionality. This fixes the whole problem by removing 9 characters from our source code. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* | Update mermaid in CDNAntoine Aflalo2020-02-103-3/+3
|/ | | | Signed-off-by: Antoine Aflalo <antoine@warrantymaster.com>
* Changed Gravatar to Libravatar in privacy-templateErik Michelson2020-01-231-2/+2
| | | | Signed-off-by: Erik Michelson <erik@liltv.de>
* Merge pull request #250 from ErikMichelson/fix/signin-focusSheogorath2020-01-201-0/+14
|\ | | | | Fix #249 - Focus user field after opening login modal
| * Fix #249 - Focus user field after opening login modalErik Michelson2020-01-081-0/+14
| | | | | | | | Signed-off-by: Erik Michelson <erik@liltv.de>
* | Fix font path when useCND is false and `urlPath` is usedEnrico Guiraud2020-01-151-26/+26
|/ | | | Signed-off-by: Enrico Guiraud <enrico.guiraud@cern.ch>
* Fix urlPath support, let CodiMD be served from a subpath correctlyEnrico Guiraud2019-12-206-3/+7
| | | | | | | | Webpack now uses relative paths for resources linked from by static snippets. A templated <base> tag has been introduced in headers so app.js can set the base URL at runtime. Signed-off-by: Enrico Guiraud <enrico.guiraud@cern.ch>
* make standard conform [fix]hoijui2019-10-301-8/+5
| | | | Signed-off-by: hoijui <hoijui.quaero@gmail.com>
* make `headerIds` `const` [fix]hoijui2019-10-301-1/+1
| | | | Signed-off-by: hoijui <hoijui.quaero@gmail.com>
* fix gfm header link generation with respect to `deduplicatedHeaderId`hoijui2019-10-301-19/+69
| | | | Signed-off-by: hoijui <hoijui.quaero@gmail.com>
* linkifyHeaderStyle needs no string-ification; is already str.hoijui2019-10-301-1/+1
| | | | | Co-Authored-By: Yukai Huang <yukaihuangtw@gmail.com> Signed-off-by: hoijui <hoijui.quaero@gmail.com>
* Merge pull request #205 from hoijui/linkifyHeaderStyleSheogorath2019-10-232-4/+10
|\ | | | | Allow to generate lower case header references through the config
| * Allow to generate lower case header references through the confighoijui2019-10-222-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | This makes the references consistent/compatible with GitHub, GitLab, Pandoc and many other tools. This behavior can be enabled in config.json with: ``` "linkifyHeaderStyle": "gfm" ``` Signed-off-by: hoijui <hoijui.quaero@gmail.com>
| * slight doc comment touch-up/simplification [minor]hoijui2019-10-221-3/+3
| | | | | | | | Signed-off-by: hoijui <hoijui.quaero@gmail.com>
* | Don't accept sandbox attributeRyotaK2019-10-221-1/+1
|/ | | | | | Because sandbox is whitelist attribute, attacker will be able to create iframe that has more permission than default. Signed-off-by: RyotaK <49341894+ry0tak@users.noreply.github.com>
* Merge pull request #191 from ErikMichelson/feature/ogmetadataSheogorath2019-10-104-0/+40
|\ | | | | Add customizable opengraph metadata for notes (see #40)
| * Fixed bugs, added default imageErik Michelson2019-10-093-6/+12
| | | | | | | | Signed-off-by: Erik Michelson <erik@liltv.de>
| * Added documentation for opengraph metadataErik Michelson2019-10-041-0/+17
| | | | | | | | Signed-off-by: Erik Michelson <erik@liltv.de>
| * Added customizable og-metadata to notesErik Michelson2019-10-042-0/+8
| | | | | | | | Signed-off-by: Erik Michelson <erik@liltv.de>
| * Added og-metadata to index pageErik Michelson2019-10-041-0/+9
| | | | | | | | | | | | | | | | - image and URL properties are only included if the server url is set, because opengraph protocol does not support relative links Signed-off-by: Erik Michelson <erik@liltv.de>
* | Slovak localeMartin Turoci2019-10-051-0/+1
| | | | | | | | Signed-off-by: Martin Turoci <martinturoci@gmail.com>
* | Added Czech translationPetrTodorov2019-10-031-0/+1
|/ | | | Signed-off-by: PetrTodorov <info@petrtodorov.cz>
* Merge pull request #143 from Fonata/improve-docsSheogorath2019-09-021-2/+3
|\ | | | | Slightly improve documentation
| * Improved docs for YAML metadataChristian Bläul2019-08-171-2/+3
| | | | | | | | Signed-off-by: Christian Bläul <christian@blaeul.de>
* | Add link to imprintMatthias Lindinger2019-08-261-1/+1
|/ | | | Signed-off-by: Matthias Lindinger <m.lindinger@live.de>
* Release version 1.5.0Sheogorath2019-08-151-0/+47
|
* Add arabian translationSheogorath2019-08-151-0/+1
| | | | | | | Thanks to our great translators that made it to translate the major parts of CodiMD into Arabic! Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Respect DNT headerSheogorath2019-06-083-3/+3
| | | | | | | | | | | | | | | | | | | | Do Not Track (DNT) is an old web standard in order to notify pages that the user doesn't want to be tracked. Even while a lot of pages either ignore this header or even worse, use it for tracking purposes, the orignal intention of this header is good and should be adopted. This patch implements a respect of the DNT header by no longer including the optional Google Analytics and disqus integrations when sending a DNT header. This should reduce outside resource usage and help to stay more private. This should later-on extended towards other document content (i.e. iframe based content). The reason to not change the CDN handling is that CDNs will be deprecated with next release and removed in long term. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>