summaryrefslogtreecommitdiff
path: root/public/js/index.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Removing google drive integrationSheogorath2018-05-161-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>
* Fix night mode button after restoreSheogorath2018-03-251-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>
* Persist nightmode so we can re-enable itSheogorath2018-03-231-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>
* don't require referer to find note id in socket.io connections (fixes #623)Stefan Bühler2018-02-051-0/+3
| | | | Signed-off-by: Stefan Bühler <buehler@cert.uni-stuttgart.de>
* :sparkles: Implemented dark theme.Edoardo Odorico2018-01-051-0/+15
| | | | Signed-off-by: Edoardo Odorico <edoubuntu@gmail.com>
* Manage syncscroll / currentMode in appStateYukai Huang2017-05-071-34/+33
|
* Move syncsroll under libYukai Huang2017-05-071-1/+1
|
* Remove CodeMirror-other-cursors dom creationYukai Huang2017-05-071-3/+0
| | | | Since it’s done via hackmdio/CodeMirror#1
* Change more global var to globalYukai Huang2017-05-071-87/+87
|
* Extract modeTypeYukai Huang2017-05-071-11/+1
|
* Change some global variables to localYukai Huang2017-05-071-31/+31
|
* Fix indentationYukai Huang2017-05-071-6/+6
|
* Expose internal editor config variableYukai Huang2017-05-071-4/+3
|
* Update to support code block syntax highlighting of gherkinWu Cheng-Han2017-05-051-1/+1
|
* Fix indentationsYukai Huang2017-03-281-52/+48
|
* Drop global variable ui exposingYukai Huang2017-03-281-2/+0
|
* Update to es6 module import styleYukai Huang2017-03-281-7/+6
|
* Update cm instance in changes event argumentYukai Huang2017-03-281-1/+1
|
* Move updateStatusBar method into editor classYukai Huang2017-03-281-27/+7
|
* Add cm instance to cursorActivity argumentYukai Huang2017-03-281-2/+2
|
* Update focus argument with cm instanceYukai Huang2017-03-281-1/+1
|
* Rewrite cursorActivity with multi listener styleYukai Huang2017-03-281-17/+17
| | | | - adjust function order to prevent standard lint failure
* Extract selection update from updateStatusbarYukai Huang2017-03-281-25/+31
|
* Impl multiple codemirror event listenerYukai Huang2017-03-281-9/+9
|
* Change minor TODO to FIXMEYukai Huang2017-03-281-2/+2
|
* Update to add abc in support charts of textcompleteWu Cheng-Han2017-03-261-1/+1
|
* Fix text complete of extra tags for list not triggered properlyWu Cheng-Han2017-03-231-14/+14
|
* Fix google drive file picker not initialize properlyWu Cheng-Han2017-03-231-1/+3
|
* Fix front-end index.js code stylesWu Cheng-Han2017-03-221-24/+34
|
* Merge pull request #387 from hackmdio/cm-refactorMax Wu2017-03-141-560/+45
|\ | | | | Extract CodeMirror instance
| * Fix variable exporting errorYukai Huang2017-03-131-0/+3
| |
| * Merge branch 'master' into cm-refactorYukai Huang2017-03-131-3107/+2980
| |\
| * | Extract editor related codeYukai Huang2017-03-081-569/+31
| | | | | | | | | | | | - in public/js/lib/editor/index.js
* | | Fix rendering might result XSS attribute on self closing tag [Security Issue]Wu Cheng-Han2017-03-141-0/+2
| |/ |/|
* | Use JavaScript Standard Style (part 2)BoHong Li2017-03-091-3635/+3488
|/ | | | Fixed all fail on frontend code.
* Fix not determine OT have pending operations properlyWu Cheng-Han2017-02-181-5/+10
|
* Fix to keep selections on save and restore infoWu Cheng-Han2017-02-181-1/+4
|
* Fix missing type declaration in text complete strategyWu Cheng-Han2017-02-031-1/+1
|
* Merge pull request #341 from nvsofts/fix_bom_utf8Max Wu2017-02-031-2/+2
|\ | | | | Removed UTF-8 BOM in download function
| * Removed UTF-8 BOM in download functionNV2017-02-031-2/+2
| |
* | Fix missing type declarationWu Cheng-Han2017-02-031-1/+1
|/
* Merge branch 'master' into es6-integrationYukai Huang2017-01-211-0/+1
|\
| * Fix meta error not clear on before renderingWu Cheng-Han2017-01-211-0/+1
| |
* | Merge branch 'master' into frontend-nextYukai Huang2017-01-211-0/+4
|\|
| * Update to prevent all empty link change hashWu Cheng-Han2017-01-161-0/+4
| |
* | Merge branch 'frontend-next' into t216-refactor-commonYukai Huang2017-01-151-5/+25
|\ \
| * | Merge branch 'master' into frontend-nextYukai Huang2017-01-131-5/+25
| |\|
| | * Update to use shorter wording in limited and protected permissionsWu Cheng-Han2017-01-121-2/+2
| | |
| | * Fix permission order and keep wording consistencyWu Cheng-Han2017-01-121-6/+6
| | |
| | * Fix sortOnlineUserList might not check property existence before comparsionWu Cheng-Han2017-01-121-4/+4
| | |