summaryrefslogtreecommitdiff
path: root/lib/response.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-03-25Change config to camel case with backwards compatibilitySheogorath1-44/+44
This refactors the configs a bit to now use camel case everywhere. This change should help to clean up the config interface and make it better understandable. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-02-26Remove and replace all note id compression in LZString with base64urlMax Wu1-6/+5
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-17Fix to show 500 message when got error in parseNoteIdMax Wu1-1/+2
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-01-26Fix ldap provider name in templateSheogorath1-0/+2
Before this fix it's impossible to set the provider name in the sign-model since `ldap` is a boolean there and this way not able to have an attribute like `ldap.providerName`. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-01-20Add option to enable `freely` permission in closed instanceDario Ernst1-0/+2
Before, closed disallowed guest edits completely, by removing the `freely` permission. This makes it possible to explicitely bring back guest-editing, but not guest-note-creation, to closed instances. Signed-off-by: Dario Ernst <dario@kanojo.de>
2018-01-18Allow posting new note with contentDustin Frisch1-1/+2
Signed-off-by: Dustin Frisch <fooker@lab.sh>
2017-12-14Fix file permission, remove useless executablePeter Dave Hello1-0/+0
2017-11-28Initial support for SAML authenticationNorihito Nakae1-0/+2
2017-10-31Fix mattermost breaking notesSheogorath1-0/+1
2017-10-31Add mattermost authenticationChristoph Witzany1-0/+1
2017-10-25Adds 403 response if PDF export is disabledgeekyd1-1/+6
2017-10-25Adds PDF export via configgeekyd1-1/+3
2017-10-22CSP: Add nonce to slide view inline JSLiterallie1-1/+2
2017-06-05Fix slide might not provide slideOptions metaWu Cheng-Han1-1/+1
2017-06-01check if reveal theme existsbutlerx1-1/+2
2017-05-31add the ability to set slide theme in slide optionsbutlerx1-0/+1
2017-05-08refactor(config.js): Extract config fileBoHong Li1-16/+16
* Separate different config source to each files * Freeze config object
2017-05-08refactor: Remove `require` extension filenameBoHong Li1-2/+2
2017-03-14Use strict mode in all backend filesBoHong Li1-0/+1
add ‘use strict’ in all backend file
2017-03-08Use JavaScript Standard StyleBoHong Li1-547/+539
Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
2017-01-16Refactor checkViewPermission to fix limited & protected permission check bug ↵Wu Cheng-Han1-3/+3
and fix code style
2017-01-16Fix missing config in hackmd responseWu Cheng-Han1-1/+2
2017-01-12Add `allowemailregister` optionSheogorath1-0/+1
2017-01-10Add limited and protected permission蒼時弦也1-2/+7
2017-01-10Recovery tariling spaces蒼時弦也1-2/+2
2017-01-10Remove temporary change蒼時弦也1-3/+0
2017-01-05Fix anonymouse view permission check蒼時弦也1-1/+4
2017-01-05Add limit for constrain anonymous view note蒼時弦也1-3/+3
2017-01-04Fix and refactor extracting content using metaMarked directly might lead in ↵Wu Cheng-Han1-45/+14
invalid object
2017-01-02Fix yaml metadata description not able to showWu Cheng-Han1-3/+3
2017-01-02Remove LZString compression for data storageWu Cheng-Han1-7/+7
2016-12-21Fixed typo: anonmyousFlorian Rhiem1-3/+3
2016-12-16Add support of allow free url config option with correspond modificationsWu Cheng-Han1-2/+9
2016-12-15Add support of allow anonymous config option with correspond modificationsWu Cheng-Han1-0/+4
2016-12-13Initial support for LDAP server authenticationalecdwm1-0/+2
Limitations as of this commit: - tlsOptions can only be specified in config.json, not as env vars - authentication failures are not yet gracefully handled by the UI - instead the error message is shown on a blank page (/auth/ldap) - no email address is associated with the LDAP user's account - no picture/profile URL is associated with the LDAP user's account - we might have to generate our own access + refresh tokens, because we aren't using oauth. The currently generated tokens are just a placeholder. - 'LDAP Sign in' needs to be translated to each locale
2016-12-02Update to support optional email register and signinWu Cheng-Han1-6/+10
2016-11-26Update to auto generate meta description based on content in publish note ↵Wu Cheng-Han1-7/+14
and slide
2016-11-26Fix possible XSS in yaml-metadata and turn using ejs escape syntax than ↵Wu Cheng-Han1-5/+2
external lib [Security Issue]
2016-11-26Fix slide might trigger script when processing markdown which cause XSS ↵Wu Cheng-Han1-11/+1
[Security Issue]
2016-10-10Update to improve history api error and bad request handlingWu Cheng-Han1-0/+3
2016-10-10Update to allow CORS as API on revision actionsWu Cheng-Han1-0/+14
2016-10-10Update to support showing owner on the infobarWu Cheng-Han1-0/+6
2016-09-18Update to prevent caching and crawling statusWu Cheng-Han1-1/+1
2016-08-19Update to use proper way to render view and fix upload image error should ↵Wu Cheng-Han1-74/+19
response with code
2016-08-19Add info api for noteWu Cheng-Han1-0/+32
2016-08-15Update slide mode to show extra info and support url actions and support ↵Wu Cheng-Han1-4/+35
disqus via yaml-metadata
2016-08-15Fix meta might be null issueWu Cheng-Han1-0/+3
2016-08-15Improve index layout and UX with UI adjustments and better wordingWu Cheng-Han1-1/+2
2016-08-14Update slide mode, now respect all meta settings and update default stylesWu Cheng-Han1-1/+1
2016-08-01Update to support slideOptions in the YAML metadataWu Cheng-Han1-0/+1