summaryrefslogtreecommitdiff
path: root/public (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-10-10Fix not rendered autocomplete emojisSheogorath1-0/+15
Currently we have some emojis that are autocompleted but won't show up in the resulting document. This patch adds all emojis that are pushed to Codemirror and applies them to the markdown rendering process, so they become usable. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-10Add autocomplete for highlight.js languages into codemirrorSheogorath1-1/+2
Right now we support code highlighting for rust, but it doesn't appear in autocomplete of codemirror, because codemirror is not aware of it. This patch lets highlightjs simply tell codemirror, what it supports and adds this to the autocomplete list. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-09Fix #986 : Visibility is now transmitted with gitlab V4 apiCédric Couralet1-1/+1
Signed-off-by: Cédric Couralet <cedric.couralet@gmail.com>
2018-10-07slide example: Add link to slide printing instructionsSheogorath1-1/+1
The printing instructions seem to not be really clear. Linking the reveal.js offical docs should help. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-05Add OpenID to CodiMDSheogorath1-1/+20
With OpenID every OpenID capable provider can provide authentication for users of a CodiMD instance. This means we have federated authentication. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-05Replace font-awesome with fork-awesomeSheogorath5-5/+5
This patch replaces font-awesome with its fork called fork-awesome. Besides the fact that the newer versions of font-awesome can't be shipped with distros like debian due to license issues, fork-awesome also provides more FOSS related icons and builds on top of version 4.7.x of font-awesome, which we used until this patch. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-04Add rel="noopener" to target="_blank" linksSheogorath5-13/+15
The noopener construct protects from some nasty clickjacking attacks. We can apply them savely to all our links since we don't rely on the previously used page. Some more details: https://mathiasbynens.github.io/rel-noopener/ Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-03Update release notes for 1.2.1Sheogorath1-0/+49
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-02Replace youtube example video on features pageSheogorath1-1/+1
Since the youtube video on our feature page seems to have vanished, this patch replaces it with an video of the blender foundation Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-10-01Some minor footer improvementsSheogorath1-1/+1
Removing copyrigt sign since we are not copyrighting things. Changing hackmd.io to codimd.org since HackMD is more and more dividing from CodiMD and may brings up wrong expectations. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-09-26Add POEditor to 'follow us' statementSheogorath1-1/+1
We broke the follow us before by removing Facebook and Twitter. Adding POEditor should fix it and help to attract new translators. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-09-23Add indonesian language to CodiMDSheogorath1-0/+1
Big thanks @filosofikode for the translation work! Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-09-06Upgrade to Webpack 4 - first tryDavid Mehren2-3/+3
Signed-off-by: David Mehren <dmehren1@gmail.com>
2018-07-31Update to replace Twitter and Facebook to RiotMax Wu1-1/+1
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-07-31Add possibility to choose between version v3 or v4 for the gitlab api.Cédric Couralet2-6/+13
Apart from the uri versioning, one big change is the snippet visibility post data (visibility_level -> visibility) Default gitlab api version to v4 Signed-off-by: Cédric Couralet <cedric.couralet@gmail.com>
2018-07-08Fix some false titlesAlexander Wellbrock1-2/+2
Signed-off-by: Alexander Wellbrock <a.wellbrock@mailbox.org>
2018-07-04ToC: Some HTML improvements and style fixesSheogorath2-6/+20
The ToC generated broken HTML with unclosed `<li>` tags. This got fixed as well as some minor optimisation and adding list elements for the subentries so the elements appear in the ToC while scrolling. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-07-04Ignore h6 headersSheogorath1-1/+1
h6 headers are used for tags in CodiMD. So we should ignore them for the ToC generation. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-07-04Refactor generation of ToCSheogorath1-45/+55
This replaces the existing iterative implementation of the ToC generation with an recursive one. This also solves the problem of skipped headers which causes wrong leveling of them. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-07-03Remove some unneeded defined inline-stylingsSheogorath1-2/+2
These have no really useful point here. Let's just remove them. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-07-03Fix some night mode colorsSheogorath3-2/+15
We have some issues with night mode and the font color. This should fix this in the permission table and the delete node modal. As well as some picture styling. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-30Release notes for 1.2.0Sheogorath1-0/+48
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-30Update storeSheogorath1-59/+20
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-30Update highlight.jsSheogorath4-4/+4
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-30Update to octicon 4.4.0Sheogorath4-4/+4
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-26Fix broken unicode urlsSheogorath1-1/+1
It wasn't possible to create unicode based URLs in freeurl mode, because the noteid used for the websocket connection is double escaped. When we decode it and let socketio-client reencode it, we get the real shortid/noteid and can find the note in the database and open the connection. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-24Add Print icon to slide viewSheogorath3-1/+10
It redirects the user to the print view of the document. I claim that people should either be smart enough to use ctrl+P or ask someone who knows how to print a webpage. I don't want to babysit our users. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-24Final replacementsSheogorath2-4/+4
Looks like I missed a few. This should be complete now. And make us ready for the repo rename and merging. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-24Rename HackMD view to CodiMDSheogorath8-19/+19
Even when it looks a bit weird in first place to rename all internals step by step, it makes sense to do so, because we run into confusion afterwards. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-24Rebrand HackMD to CodiMDSheogorath8-17/+16
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-24Move config out of statics pathSheogorath1-1/+1
Since static path is providing with a high expiration data, we provide configs via API. This shouldn't add any noticeable load while making it uncached and this way working again. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-23Fix all newly introduced linting issuesSheogorath1-10/+10
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-23Fix liniting and optimize some functionsSheogorath3-47/+74
First fixed some linting issues. Also optimized some functions to be undoable with one ctrl+z. This should also speedup some operations Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-22turn concatenated string into a multi-line template stringJake Burden1-19/+19
Signed-off-by: Jake Burden <jake@doge.haus>
2018-06-19Add a toolbar to Codemirror editorEdgar Zanella Alvarenga5-0/+202
Signed-off-by: Edgar Zanella Alvarenga <e@vaz.io>
2018-06-18Move polyfill to CDN sectionSheogorath4-5/+4
We don't support it on CDN false instances, but it doesn't hurt to keep it in for CDN-enabled instances Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-06-07Add korean translationSheogorath1-0/+1
This translation was contributed via POEditor by the user Basix. Thanks a lot for your work! Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-31fix(slide): adjust checkbox sizeliuderchi1-1/+2
- to override rules in css/github-extract.css with `!important` already Signed-off-by: liuderchi <liuderchi@gmail.com>
2018-05-31Add privacy policy exampleSheogorath1-0/+17
As we use various services and integration we should provide an example privacy policy. It has to be adjust when using it to match your setup. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-26Add export data UISheogorath1-0/+1
This adds the UI for the export feature introduced in bcbb8c67c9f8092643c318140f6613324f306bd2 It allows to download all notes from the main page in the default user submenu. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-25Add token based security featureSheogorath1-1/+1
In the current setup users could be tricked into deleting their data by providing a malicious link like `[click me](/me/delete)`. This commit prevents such an easy attack and need the user's deleteToken to get his data deleted. In case someone requests his deletion by email you can also ask him for this token. We can add a GUI that shows it later on. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-25Add delete user UISheogorath2-14/+39
This provides the UI for the delete user feature introduced in 4229084c6211db3d22cd9abec99b957725650b9e Placing of the user delete button is not perfect, but can be moved to an own user tab later on. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-24Add privacy and ToS linksSheogorath1-1/+1
To be GDPR compliant we need to provide privacy statement. These should be linked on the index page. So as soon as a document exist under `public/docs/privacy.md` the link will show up. Since we already add legal links, we also add Terms of Use, which will show up as soon as `public/docs/terms-of-use.md` exists. This should allow everyone to provide the legal documents they need for GDPR and other privacy and business laws. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-22Add release notes for 1.1.1-ceSheogorath1-0/+21
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-16Removing google drive integrationSheogorath7-505/+2
It's sad but it's not working. For multiple releases this should be already broken which shows how often it's used. As there is also a security issue related to that, it's better to remove the feature completely. Whoever wants to rewrite it, feel free to go. This commit removes the Google Drive integration from HackMD's Frontend editor and this way removes the need to provide any API key and Client ID in the frontend. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-16Revert "Workaround Google API problems"Christoph (Sheogorath) Kern1-1/+9
2018-05-01Remove Google Upload from UISheogorath1-9/+1
This temporarily removes the Upload from the UI as it's broken right now. Needs a refactoring and can be added in again later on by undoing this commit. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-04-06Minor fixes in relase notesSheogorath1-9/+10
Fix some spelling and style issues as well as adding the latest changes. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-04-05Add matrix.org / Riot linkSheogorath1-1/+3
As an active part of the community prefers Matrix.org over Gitter, we should link Matrix.org as a place to meet us. As the matrix and gitter channels are interconnected. We don't loose any message if a person decides to go for one or another. We use an more universal way of translation to make it easier to provide a link to various platforms. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-04-05Fix code blocks color in night modeSheogorath1-0/+5
This provides more eye-friendly code boxes when night mode is active. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>