summaryrefslogtreecommitdiff
path: root/public/js/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix eslint warningsSheogorath2019-05-313-25/+25
| | | | | | | | | | | 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>
* Fix toolbar day modePedro Ferreira2019-05-122-15/+17
| | | | | | Also moved the code to SCSS Signed-off-by: Pedro Ferreira <pedro@dete.st>
* Make upload button respect night modePedro Ferreira2019-05-122-4/+4
| | | | | | | Also set a title in the input field, so that the file name doesn't show up. Signed-off-by: Pedro Ferreira <pedro@dete.st>
* Move upload button into toolbarSheogorath2019-03-253-2/+13
| | | | | | | | | | | | | Currently we have the odd situation to have two toolbars. One inside the header and one in the editor. Since we only show the image upload button when the editor is visible we should move the upload button into the editor toolbar. This patch does this by adding the image upload button besides the image tag button. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* switching to eslint for code checkingClaudius Coenen2018-11-142-5/+5
| | | | | | | most rules degraded to WARN, so we don't go insane. This will change over time. The aim is to conform to a common style Signed-off-by: Claudius Coenen <opensource@amenthes.de>
* Fix some false titlesAlexander Wellbrock2018-07-081-2/+2
| | | Signed-off-by: Alexander Wellbrock <a.wellbrock@mailbox.org>
* Fix broken unicode urlsSheogorath2018-06-261-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>
* Fix all newly introduced linting issuesSheogorath2018-06-231-10/+10
| | | | Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
* Fix liniting and optimize some functionsSheogorath2018-06-232-43/+72
| | | | | | | | | 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>
* Add a toolbar to Codemirror editorEdgar Zanella Alvarenga2018-06-193-0/+175
| | | | Signed-off-by: Edgar Zanella Alvarenga <e@vaz.io>
* Removing google drive integrationSheogorath2018-05-163-6/+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 the usage of the esc-key by codemirrorSheogorath2018-02-241-3/+3
| | | | | | | | | | | | | This change allows all input modes of codemirror to use the information from an input esc-key and make this way vim and sublime more functional. To prevent this change from breaking the return from the fullscreen mode, it catches the esc-key in this case. Hopefully this is an acceptable solution. As before the vim-mode is handled different in fulltext-mode as it is esc-key heavy. 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>
* :sparkles: Implemented dark theme.Edoardo Odorico2018-01-052-1/+3
| | | | Signed-off-by: Edoardo Odorico <edoubuntu@gmail.com>
* Corrected some grammatical issuesOliver Herrmann2017-10-301-3/+3
| | | Obviously caught up in a bad translation and didn't particularly make sense for native english speakers.
* Fix home and end keys behavior for windowsWu Cheng-Han2017-09-271-0/+2
|
* Manage syncscroll / currentMode in appStateYukai Huang2017-05-073-14/+25
|
* Move syncsroll under libYukai Huang2017-05-071-0/+368
|
* Extract modeTypeYukai Huang2017-05-071-0/+11
|
* Expose internal editor config variableYukai Huang2017-05-071-0/+1
|
* Load statusbar template by string-loaderYukai Huang2017-05-072-34/+61
|
* Move updateStatusBar method into editor classYukai Huang2017-03-282-0/+28
|
* Fix listener “this” contextYukai Huang2017-03-281-1/+1
|
* Promisify getStatusBarTemplate methodYukai Huang2017-03-281-26/+28
|
* Extract selection update from updateStatusbarYukai Huang2017-03-281-1/+2
|
* Impl multiple codemirror event listenerYukai Huang2017-03-281-0/+13
|
* Update to generate front-end constants on server startupWu Cheng-Han2017-03-202-11/+15
| | | | To avoid extra webpacking on changing configs and follow the 12 factor app
* Fix variable exporting errorYukai Huang2017-03-131-3/+1
|
* Merge branch 'master' into cm-refactorYukai Huang2017-03-132-79/+82
|\
| * Use JavaScript Standard Style (part 2)BoHong Li2017-03-092-79/+82
| | | | | | | | Fixed all fail on frontend code.
* | Use JavaScript standard styleYukai Huang2017-03-093-541/+568
| |
* | Extract editor related codeYukai Huang2017-03-082-0/+505
| | | | | | | | - in public/js/lib/editor/index.js
* | Extract UI jquery nodeYukai Huang2017-03-071-0/+84
|/
* Merge branch 'master' into frontend-nextYukai Huang2017-01-211-6/+3
|
* Minor style updateYukai Huang2017-01-141-1/+1
|
* Add default value for configYukai Huang2017-01-131-6/+6
|
* Rename common.js to login.jsYukai Huang2017-01-131-0/+92
|
* Move config variable to lib/configYukai Huang2017-01-131-0/+19