summaryrefslogtreecommitdiff
path: root/public/js/index.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-23Fix liniting and optimize some functionsSheogorath1-4/+2
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-19Add a toolbar to Codemirror editorEdgar Zanella Alvarenga1-0/+9
Signed-off-by: Edgar Zanella Alvarenga <e@vaz.io>
2018-05-16Removing google drive integrationSheogorath1-104/+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>
2018-03-25Fix night mode button after restoreSheogorath1-0/+1
The night mode toggle doesn't get the right state after restore from local storage. This results in the need to toggle twice to disable night mode. This patch adds the needed class so the toggleNightMode function gets the right state on execution. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-23Persist nightmode so we can re-enable itSheogorath1-3/+18
Right now the night mode is possible to set by a toggle in the menu bar but needs to be re-enabled on every document switch, reload, etc.. This is super annoying so we should keep this state in local storage or a cookie. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-02-05don't require referer to find note id in socket.io connections (fixes #623)Stefan Bühler1-0/+3
Signed-off-by: Stefan Bühler <buehler@cert.uni-stuttgart.de>
2018-01-05:sparkles: Implemented dark theme.Edoardo Odorico1-0/+15
Signed-off-by: Edoardo Odorico <edoubuntu@gmail.com>
2017-11-02Revert "Load js-url lib using legacy-loader"Literallie1-4/+2
Didn't work in Firefox for some reason. `[Script Loader] ReferenceError: module is not defined` This reverts commit 5b83deb043296c23ff912a2472703c1f7faddb4b.
2017-10-22Move CSP logic to new file, Fix boolean config examplesLiterallie1-1/+0
Not sure why I was quoting these in the first place
2017-10-22Load js-url lib using legacy-loaderLiterallie1-2/+5
Doesn't use eval, plus no window object access
2017-05-07Manage syncscroll / currentMode in appStateYukai Huang1-34/+33
2017-05-07Move syncsroll under libYukai Huang1-1/+1
2017-05-07Remove CodeMirror-other-cursors dom creationYukai Huang1-3/+0
Since it’s done via hackmdio/CodeMirror#1
2017-05-07Change more global var to globalYukai Huang1-87/+87
2017-05-07Extract modeTypeYukai Huang1-11/+1
2017-05-07Change some global variables to localYukai Huang1-31/+31
2017-05-07Fix indentationYukai Huang1-6/+6
2017-05-07Expose internal editor config variableYukai Huang1-4/+3
2017-05-05Update to support code block syntax highlighting of gherkinWu Cheng-Han1-1/+1
2017-03-28Fix indentationsYukai Huang1-52/+48
2017-03-28Drop global variable ui exposingYukai Huang1-2/+0
2017-03-28Update to es6 module import styleYukai Huang1-7/+6
2017-03-28Update cm instance in changes event argumentYukai Huang1-1/+1
2017-03-28Move updateStatusBar method into editor classYukai Huang1-27/+7
2017-03-28Add cm instance to cursorActivity argumentYukai Huang1-2/+2
2017-03-28Update focus argument with cm instanceYukai Huang1-1/+1
2017-03-28Rewrite cursorActivity with multi listener styleYukai Huang1-17/+17
- adjust function order to prevent standard lint failure
2017-03-28Extract selection update from updateStatusbarYukai Huang1-25/+31
2017-03-28Impl multiple codemirror event listenerYukai Huang1-9/+9
2017-03-28Change minor TODO to FIXMEYukai Huang1-2/+2
2017-03-26Update to add abc in support charts of textcompleteWu Cheng-Han1-1/+1
2017-03-23Fix text complete of extra tags for list not triggered properlyWu Cheng-Han1-14/+14
2017-03-23Fix google drive file picker not initialize properlyWu Cheng-Han1-1/+3
2017-03-22Fix front-end index.js code stylesWu Cheng-Han1-24/+34
2017-03-14Fix rendering might result XSS attribute on self closing tag [Security Issue]Wu Cheng-Han1-0/+2
2017-03-13Fix variable exporting errorYukai Huang1-0/+3
2017-03-09Use JavaScript Standard Style (part 2)BoHong Li1-3635/+3488
Fixed all fail on frontend code.
2017-03-08Extract editor related codeYukai Huang1-569/+31
- in public/js/lib/editor/index.js
2017-02-18Fix not determine OT have pending operations properlyWu Cheng-Han1-5/+10
2017-02-18Fix to keep selections on save and restore infoWu Cheng-Han1-1/+4
2017-02-03Fix missing type declaration in text complete strategyWu Cheng-Han1-1/+1
2017-02-03Removed UTF-8 BOM in download functionNV1-2/+2
2017-02-03Fix missing type declarationWu Cheng-Han1-1/+1
2017-01-21Fix meta error not clear on before renderingWu Cheng-Han1-0/+1
2017-01-16Update to prevent all empty link change hashWu Cheng-Han1-0/+4
2017-01-13Rename common.js to login.jsYukai Huang1-2/+5
2017-01-12Update to use shorter wording in limited and protected permissionsWu Cheng-Han1-2/+2
2017-01-12Fix permission order and keep wording consistencyWu Cheng-Han1-6/+6
2017-01-12Fix sortOnlineUserList might not check property existence before comparsionWu Cheng-Han1-4/+4
2017-01-10Update limite icon to fa-id-card蒼時弦也1-1/+1