summaryrefslogtreecommitdiff
path: root/public/js/lib/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Linter: Fix all lint errorsPhilip Molares2021-02-151-1/+1
| | | | Signed-off-by: Philip Molares <philip.molares@udo.edu>
* Add config option for cookie SameSite policyErik Michelson2020-08-272-2/+4
| | | | Signed-off-by: Erik Michelson <github@erik.michelson.eu>
* Set all cookies with sameSite: strictDavid Mehren2020-06-081-2/+4
| | | | | | 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>
* 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>
* Allow to generate lower case header references through the confighoijui2019-10-221-0/+2
| | | | | | | | | | | | | 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>
* Fix eslint warningsSheogorath2019-05-311-16/+16
| | | | | | | | | | | Since we are about to release it's time to finally fix our linting. This patch basically runs eslint --fix and does some further manual fixes. Also it sets up eslint to fail on every warning on order to make warnings visable in the CI process. There should no functional change be introduced. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Removing google drive integrationSheogorath2018-05-161-2/+0
| | | | | | | | | | | | | | | 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>
* Allow more detailed configuration of upload mime typesSheogorath2018-01-201-1/+3
| | | | | | Fixes #637 Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Update to generate front-end constants on server startupWu Cheng-Han2017-03-201-0/+8
| | | | To avoid extra webpacking on changing configs and follow the 12 factor app
* Use JavaScript Standard Style (part 2)BoHong Li2017-03-091-65/+68
| | | | Fixed all fail on frontend code.
* Merge branch 'master' into frontend-nextYukai Huang2017-01-211-6/+3
|
* Minor style updateYukai Huang2017-01-141-1/+1
|
* Rename common.js to login.jsYukai Huang2017-01-131-0/+92