Commit Graph

751 Commits

Author SHA1 Message Date
Sheogorath 32c578db08
Persist nightmode so we can re-enable it
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-03-23 19:46:38 +01:00
Christoph (Sheogorath) Kern f6df2deb84
Merge pull request #743 from hackmdio/fix-to-use-url-safe-base64
Fix to use url-safe base64 in note url
2018-03-18 15:13:06 +01:00
Max Wu 8bfe51940f Fix typo
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-03-11 03:00:36 +08:00
Max Wu dfd833dbe2 Update to show log on migrate LZString type note url in history
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-03-11 02:55:54 +08:00
Max Wu d08c9522c0 Update to migrate note url in the history of browser storage and cookie
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-03-03 16:26:19 +08:00
Max Wu 95e9f96aa0 Update to allow rp tag for ruby
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-26 20:55:10 +08:00
Max Wu 711a11ce23 Remove manual allow details tag since default already allow it
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-26 20:54:57 +08:00
Sheogorath 5d347d583d
Extend HTML5 support by whitelisting various tags
HTML5 provides a wide feature set of useful elements. Since Markdown
usually supports HTML it should be able to use these HTML5 tags as well.
As they were requested by some users and they where checked for being
safe, whitelisting them isn't a problem. To make the experience the same
as on GitHub when it comes to the basic look and feel of the rendered
markdown, some CSS was added to make the summary and the details tag
look like on GitHub.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-02-25 14:54:21 +01:00
Sheogorath 9c77e9d7f0
Allow the usage of the esc-key by codemirror
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>
2018-02-24 21:14:47 +01:00
Stefan Bühler c4f8fb78ee don't require referer to find note id in socket.io connections (fixes #623)
Signed-off-by: Stefan Bühler <buehler@cert.uni-stuttgart.de>
2018-02-05 14:26:42 +01:00
Max Wu a9c88ce248
Fix task todo might not toggle
which caused by not matching syntax with double dashes correctly
2018-01-24 00:10:52 +08:00
Christoph (Sheogorath) Kern 584f1c5249
Merge pull request #691 from SISheogorath/feature/upload
Allow more detailed configuration of upload mime types
2018-01-23 12:10:33 +01:00
Christoph (Sheogorath) Kern 7de6e3211f
Merge pull request #598 from xxyy/feature/csp
Implement basic CSP support
2018-01-22 20:43:46 +01:00
Sheogorath a7935a595a
Allow more detailed configuration of upload mime types
Fixes #637

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-01-20 15:16:53 +01:00
Wu Cheng-Han 3703b12584 Fix image alt not render properly 2018-01-19 00:53:49 +08:00
Max Wu 919b7467d4
Fix anchor id to keep uppercase characters
id shouldn’t be converted to lowercase since id attribute is case sensitive
2018-01-16 15:59:43 +08:00
Edoardo Odorico 6fc2c39eda Implemented dark theme.
Signed-off-by: Edoardo Odorico <edoubuntu@gmail.com>
2018-01-05 00:15:13 +01:00
Peter Dave Hello 76873d3f7e Fix file permission, remove useless executable 2017-12-14 05:05:18 +08:00
Christoph (Sheogorath) Kern b840c3fa57
Merge pull request #609 from monoxane/master
Correcting grammatical errors related to the document char count tooltip
2017-12-12 10:39:49 +01:00
Sheogorath 93b91163cd
Prevent XSS vul by srcdoc in iframe 2017-11-24 10:10:50 +01:00
Literallie 3a752fde51
Revert "Load js-url lib using legacy-loader"
Didn't work in Firefox for some reason.

`[Script Loader] ReferenceError: module is not defined`

This reverts commit 5b83deb043.
2017-11-02 17:57:44 +01:00
Sheogorath e807f1b783
Fix mermaid error handling 2017-10-30 12:26:28 +01:00
Sheogorath 09d2ba41cf
Use mermaidAPI in mermaid scope
Introduced by a5b7145527 (diff-67ae90c5144c55348a3cbdb078240454L532)

Fixes #600

Parse only throws error: 167368d508 (diff-67ae90c5144c55348a3cbdb078240454)
2017-10-30 07:11:14 +01:00
Oliver Herrmann 7d0ef1276c
Corrected some grammatical issues
Obviously caught up in a bad translation and didn't particularly make sense for native english speakers.
2017-10-30 11:25:44 +11:00
Sheogorath c794412714 Merge pull request #591 from Rwing/master
support Simplified Chinese and rename original zh to Traditional Chinese
2017-10-23 11:53:31 +02:00
Rwing 362a7eaf65 support Simplified Chinese and rename original zh to Traditional Chinese 2017-10-23 17:38:04 +08:00
Literallie 567f26f5b9
Fix MathJax config not being picked up
thanks standard
2017-10-22 02:48:24 +02:00
Literallie 04f5e3a341
Move CSP logic to new file, Fix boolean config examples
Not sure why I was quoting these in the first place
2017-10-22 02:18:45 +02:00
Literallie 5b83deb043
Load js-url lib using legacy-loader
Doesn't use eval, plus no window object access
2017-10-22 00:03:45 +02:00
Literallie 4238b9b3ef
Fix MathJax CSP issues 2017-10-22 00:03:45 +02:00
Yukai Huang 60b86e0250 Fix markdown-it gist plugin code closing tag
fix #596
2017-10-21 11:45:17 +08:00
Wu Cheng-Han d96385eafd Fix to filter @import CSS syntax in style tag to prevent XSS [Security Issue] 2017-10-05 10:17:26 +08:00
Wu Cheng-Han b0b417cefc Fix unescape > symbol inside the style tags to make the CSS works 2017-10-05 09:59:57 +08:00
Wu Cheng-Han 8979f215ab Fix blockquote not parse correctly in slide mode 2017-10-05 09:59:07 +08:00
Wu Cheng-Han 2bdccd3996 Fix home and end keys behavior for windows 2017-09-27 21:27:33 +08:00
Wu Cheng-Han fe384d80bf Fix the < and > symbols are doubly escaped which affected by executing preventXSS twice 2017-09-27 18:22:49 +08:00
Wu Cheng-Han f2743ff8f8 Fix slide mode contains unclosed tags might cause XSS [Security Issue] 2017-09-27 18:21:28 +08:00
Wu Cheng-Han 9b00afb863 Fix unclosed tags might cause XSS [Security Issue] 2017-09-27 18:20:04 +08:00
Max Wu a645f28b33 Fix slide mode might hide scrollbar on some linux 2017-06-14 12:12:28 +08:00
Wu Cheng-Han 48f8378335 Fix speaker note separator regex should only take effect on the line start 2017-06-05 01:20:21 +08:00
Max Wu c37b666915 Merge branch 'master' into BackendRefactor 2017-05-14 17:42:14 +08:00
BoHong Li 8c2b00b05a style: Fixed variable already declared 2017-05-08 19:29:07 +08:00
Yukai Huang 4839838d0c Manage syncscroll / currentMode in appState 2017-05-07 20:38:22 +08:00
Yukai Huang 0e9afde5fa Move syncsroll under lib 2017-05-07 20:38:22 +08:00
Yukai Huang d9221f6011 Remove CodeMirror-other-cursors dom creation
Since it’s done via hackmdio/CodeMirror#1
2017-05-07 20:38:22 +08:00
Yukai Huang 88c0c68856 Change more global var to global 2017-05-07 20:38:22 +08:00
Yukai Huang 68ccee20b3 Extract modeType 2017-05-07 20:37:27 +08:00
Yukai Huang 18a6f9063e Change some global variables to local 2017-05-07 20:37:27 +08:00
Yukai Huang 432f215a45 Fix indentation 2017-05-07 20:37:27 +08:00
Yukai Huang c6c11c54ef Expose internal editor config variable 2017-05-07 20:37:27 +08:00
Yukai Huang db06a51299 Load statusbar template by string-loader 2017-05-07 20:37:26 +08:00
Wu Cheng-Han e32dd547b4 Update to support code block syntax highlighting of gherkin 2017-05-05 18:03:23 +08:00
Wu Cheng-Han 48df250491 Fix link regex should filter protocol with case insensitive flag [Security Issue] 2017-04-11 22:25:14 +08:00
Yukai Huang a938cac42a Fix indentations 2017-03-28 20:38:31 +08:00
Yukai Huang b711ecfadb Drop global variable ui exposing 2017-03-28 19:30:06 +08:00
Yukai Huang ba1bef015f Update to es6 module import style 2017-03-28 18:31:36 +08:00
Yukai Huang 7637a6a8a6 Update cm instance in changes event argument 2017-03-28 17:32:42 +08:00
Yukai Huang f5b95c5d36 Move updateStatusBar method into editor class 2017-03-28 17:16:32 +08:00
Yukai Huang df743ab902 Fix listener “this” context 2017-03-28 17:11:20 +08:00
Yukai Huang 46ed658d8b Promisify getStatusBarTemplate method 2017-03-28 15:24:52 +08:00
Yukai Huang af5ef52f4b Add cm instance to cursorActivity argument 2017-03-28 12:15:56 +08:00
Yukai Huang 579dda9515 Update focus argument with cm instance 2017-03-28 12:11:05 +08:00
Yukai Huang d7c068cbfd Rewrite cursorActivity with multi listener style
- adjust function order to prevent standard lint failure
2017-03-28 12:10:35 +08:00
Yukai Huang b86ecb1342 Extract selection update from updateStatusbar 2017-03-28 11:57:44 +08:00
Yukai Huang 81666a726c Impl multiple codemirror event listener 2017-03-28 11:18:36 +08:00
Yukai Huang fff7ebd1b5 Change minor TODO to FIXME 2017-03-28 11:17:30 +08:00
Wu Cheng-Han b2985085d0 Update to change makefile syntax highlighting to Prism 2017-03-26 23:09:13 +08:00
Wu Cheng-Han a3cdc5ba80 Update to add abc in support charts of textcomplete 2017-03-26 20:46:05 +08:00
Wu Cheng-Han 961d3fab1c Fix code style 2017-03-26 20:45:23 +08:00
Wu Cheng-Han 61dc6dbc15 Add support of abcjs 2017-03-26 20:39:07 +08:00
Wu Cheng-Han 3156c38598 Fix text complete of extra tags for list not triggered properly 2017-03-23 20:49:31 +08:00
Wu Cheng-Han 890f7089bf Fix google drive file picker not initialize properly 2017-03-23 20:17:50 +08:00
Wu Cheng-Han e629800457 Fix XSS vulnerability in link regex [Security Issue] 2017-03-22 18:26:35 +08:00
Wu Cheng-Han 0f3b028ed6 Fix render.js code styles 2017-03-22 18:26:30 +08:00
Wu Cheng-Han cac618eca8 Fix front-end index.js code styles 2017-03-22 17:48:26 +08:00
Wu Cheng-Han 802ed406e6 Fix todo list item class might add in wrong element 2017-03-22 15:42:38 +08:00
Wu Cheng-Han 9ff3649025 Fix unnecessary global calling of ownerui 2017-03-22 15:42:11 +08:00
Wu Cheng-Han b17c2404b1 Fix duplicated loading of reveal markdown plugin 2017-03-21 20:44:12 +08:00
Wu Cheng-Han afc4f269bc Update to make removeDOMEvents only process once in slide mode 2017-03-20 11:28:50 +08:00
Wu Cheng-Han 448b006194 Update to generate front-end constants on server startup
To avoid extra webpacking on changing configs and follow the 12 factor app
2017-03-20 01:39:09 +08:00
Max Wu f6bd238b0f Merge pull request #387 from hackmdio/cm-refactor
Extract CodeMirror instance
2017-03-14 23:11:56 +08:00
Wu Cheng-Han f55a4b8497 Update to fix pagination error in list.js over v1.5.0 2017-03-14 23:08:15 +08:00
Wu Cheng-Han 2fa51fb4ba Fix export html to replace fallen cdn tortue.me to cdnjs 2017-03-14 16:37:38 +08:00
Wu Cheng-Han f491cdabc1 Fix rendering might result XSS attribute on self closing tag [Security Issue] 2017-03-14 16:27:55 +08:00
Yukai Huang cc30d370f7 Fix variable exporting error 2017-03-13 22:00:20 +08:00
Yukai Huang 93e41f3a40 Merge branch 'master' into cm-refactor 2017-03-13 21:32:50 +08:00
Yukai Huang 9b513f619f Use JavaScript standard style 2017-03-09 15:39:42 +08:00
BoHong Li 5bc642d02e Use JavaScript Standard Style (part 2)
Fixed all fail on frontend code.
2017-03-09 02:41:05 +08:00
Yukai Huang 6556c284e5 Extract editor related code
- in public/js/lib/editor/index.js
2017-03-08 21:43:32 +08:00
Yukai Huang 121d84863a Extract UI jquery node 2017-03-07 21:59:18 +08:00
Wu Cheng-Han 0aaa598130 Fix not determine OT have pending operations properly 2017-02-18 20:11:18 +08:00
Wu Cheng-Han f7149f5a83 Fix to keep selections on save and restore info 2017-02-18 20:10:34 +08:00
Wu Cheng-Han 1ca39d9c8e Update to allow li tag specify value number 2017-02-17 21:56:35 +08:00
Max Wu 99a2cbc604 Update google drive picker to enable setOwnedByMe to show shared files and folders 2017-02-11 00:11:21 +08:00
Wu Cheng-Han 1a617ddf2e Fix duplicated headers anchor link not been updated properly 2017-02-03 22:02:12 +08:00
Wu Cheng-Han 7863eec366 Fix "[object HTMLCollection] is not iterable!" error in some browsers 2017-02-03 22:01:30 +08:00
Wu Cheng-Han 0a3baec5b6 Fix missing type declaration in text complete strategy 2017-02-03 21:59:26 +08:00
Max Wu a261c8e812 Merge pull request #341 from nvsofts/fix_bom_utf8
Removed UTF-8 BOM in download function
2017-02-03 18:28:05 +08:00
NV 5a212b9335 Removed UTF-8 BOM in download function 2017-02-03 17:35:49 +09:00
Wu Cheng-Han e67a6ad368 Fix missing type declaration 2017-02-03 00:07:08 +08:00
Wu Cheng-Han 3df5507589 Upgrade viz.js to fix manual workaround and get smaller file size 2017-02-02 23:27:34 +08:00
Yukai Huang 74b04d08b5 Merge branch 'master' into es6-integration 2017-01-21 12:55:45 +08:00
Wu Cheng-Han e98278492e Fix meta error not clear on before rendering 2017-01-21 12:50:02 +08:00
Yukai Huang 26d8942852 Revert experimental vue for now 2017-01-21 12:30:55 +08:00
Yukai Huang 4bbe035beb Merge branch 'master' into frontend-next 2017-01-21 12:08:52 +08:00
Wu Cheng-Han e00daee6c0 Update to prevent all empty link change hash 2017-01-16 12:42:21 +08:00
Wu Cheng-Han 091e7271e0 Fix pagination should hide on refresh history 2017-01-16 12:24:40 +08:00
Wu Cheng-Han f2ee897699 Fix to prevent hash change on click nav item on index 2017-01-16 12:04:11 +08:00
Wu Cheng-Han 5751578275 Update to remove history pagination animation on refresh 2017-01-15 17:23:33 +08:00
Wu Cheng-Han f2a441061b Fix checkLoginStateChanged might fall into infinite loop while calling loginStateChangeEvent 2017-01-15 17:23:19 +08:00
Yukai Huang c0e8306961 Merge branch 'frontend-next' into t216-refactor-common 2017-01-15 11:33:22 +08:00
Yukai Huang 04292240d6 Minor style update 2017-01-14 15:47:13 +08:00
Yukai Huang a541569d7e Remove old config.js.example 2017-01-13 23:12:27 +08:00
Yukai Huang 2408ff4ba9 Add default value for config 2017-01-13 23:12:17 +08:00
Yukai Huang 0fca629c34 Rename common.js to login.js 2017-01-13 23:06:31 +08:00
Yukai Huang 3d6b319216 Merge branch 'master' into frontend-next 2017-01-13 22:53:33 +08:00
Yukai Huang c2a8911b9c Move config variable to lib/config 2017-01-13 22:46:38 +08:00
Wu Cheng-Han 8b378d7847 Update to use shorter wording in limited and protected permissions 2017-01-12 23:36:23 +08:00
Wu Cheng-Han 5f65795e79 Fix permission order and keep wording consistency 2017-01-12 19:04:17 +08:00
Wu Cheng-Han ffa14cfeef Fix sortOnlineUserList might not check property existence before comparsion 2017-01-12 17:17:36 +08:00
Wu Cheng-Han 0432fef267 Fix history list might check pagination on clear and open 2017-01-12 17:14:32 +08:00
蒼時弦也 d6be0cf755 Update limite icon to fa-id-card 2017-01-10 20:22:06 +08:00
蒼時弦也 a9fe43ac3a Update limited/protected permission icon 2017-01-10 17:22:57 +08:00
蒼時弦也 758607d378 Add fa-stack style to public/js/index.js 2017-01-10 15:15:12 +08:00
蒼時弦也 7b02c48d93 Adjust permission order to more clarly 2017-01-10 14:13:30 +08:00
蒼時弦也 89b8ddeaba Add limited and protected permission 2017-01-10 10:02:37 +08:00
Yukai Huang 3566d71aea Merge branch 'master' into frontend-next 2017-01-07 00:05:15 +08:00
Yukai Huang fce08cc164 Convert history.js to es6 2017-01-05 20:56:16 +08:00
Yukai Huang 71aece7429 Convert cover.js to es6 2017-01-05 18:10:55 +08:00
Yukai Huang 47d7ff2561 Convert extra.js to es6 2017-01-05 17:52:32 +08:00
Yukai Huang 6a06c0bb9f Convert common.js to es6 2017-01-05 16:48:23 +08:00
Yukai Huang 45c202172e Convert pretty.js to es6 2017-01-05 16:19:13 +08:00
Yukai Huang eb5e7ba0d1 Convert slide.js to es6 2017-01-05 16:17:28 +08:00
Wu Cheng-Han eaf9218f61 Update to show yaml-metadata and diagram parsing error in the view 2017-01-04 23:59:28 +08:00
Wu Cheng-Han 08b04e9528 Workaround that graphviz might not recover from error 2017-01-04 23:59:12 +08:00
Yukai Huang 781f495f3e Convert synscroll to es6 2017-01-04 23:01:44 +08:00
Yukai Huang 65acaea8cf Merge branch 'master' into frontend-next 2017-01-02 15:09:19 +08:00
Wu Cheng-Han bd4335964d Mark as 0.5.0 2017-01-02 11:19:01 +08:00
Wu Cheng-Han db0ea715c6 Update to improve editor performance by debounce checkEditorScrollbar event 2017-01-02 11:06:02 +08:00
Wu Cheng-Han 0db4358adb Fix authorship might losing update event because of throttling 2017-01-02 11:05:49 +08:00
Wu Cheng-Han d9e19b6029 Update to remove null byte before saving to DB and remove null byte on changes 2017-01-02 11:05:05 +08:00
Wu Cheng-Han c904083d1f Remove manual LZString compression for partial socket io event data 2017-01-02 10:52:47 +08:00
Wu Cheng-Han aff206ca95 Fix js-url not import correctly 2016-12-24 17:02:03 +08:00
Yukai Huang 99dd107724 Basic setup for Vue app 2016-12-24 11:50:57 +08:00
Yukai Huang a06fad974e Install vue and babel dependency 2016-12-24 11:10:18 +08:00
Yukai Huang d6ae7a36ae Fix module variable require 2016-12-24 11:09:07 +08:00
Wu Cheng-Han 418a852cc4 Fix mathjax not able to render issue 2016-12-20 03:05:59 +08:00
Wu Cheng-Han 39521f25a7 Mark as 0.4.6 2016-12-19 17:30:33 +08:00
Wu Cheng-Han c8d37dd192 Update to handle graphviz output empty graph 2016-12-19 16:53:54 +08:00
Wu Cheng-Han 92f2a4acf0 Remove unused vendor code and add fix related usages 2016-12-19 16:28:59 +08:00
Wu Cheng-Han 1892fe70f6 Fix slide mode on print pdf not finish view rendering 2016-12-18 22:53:31 +08:00
Wu Cheng-Han 46752194e4 Update to make TOC syntax be case-insensitive 2016-12-12 10:49:23 +08:00
Wu Cheng-Han dd284a7bd0 Fix textcomplete up side down option not set properly 2016-12-07 01:34:42 +08:00
Wu Cheng-Han bbaf697687 Fix emoji textcomplete image path 2016-12-07 01:33:38 +08:00
Wu Cheng-Han da46a3696b Add preferences to editor status bar and make allow override browser keymap option 2016-12-04 00:56:14 +08:00
Wu Cheng-Han 52772829ce Fix history tags dropdown should unescape html 2016-11-29 21:33:29 +08:00
Wu Cheng-Han 47d5efb29e Fix slide resource path and style load orders to avoid conflicts 2016-11-29 00:44:15 +08:00
Wu Cheng-Han ead48e45e0 Fix header id and text might affects by mathjax tags 2016-11-28 22:15:07 +08:00
Wu Cheng-Han de2067f7e8 Update to support typescript and jsx syntax highlighting 2016-11-28 18:34:08 +08:00
Wu Cheng-Han 5acf33b16b Fix google drive upload script not expose object correctly 2016-11-28 18:04:02 +08:00
Wu Cheng-Han 3a305b8258 Update editor other cursor classes and adding option for other cursors features in CodeMirror 2016-11-28 01:20:23 +08:00
Wu Cheng-Han efd62bd1ca Optimize slide page resource packing and load orders, fix possible wrong chunks orders and font awesome version 2016-11-26 23:24:59 +08:00
Wu Cheng-Han 5287d46931 Optimize hackmd resource packing and load orders 2016-11-26 23:18:51 +08:00
Wu Cheng-Han 8c10c393ce Fix possible meta XSS in history list [Security Issue] 2016-11-26 22:56:03 +08:00
Wu Cheng-Han 9d4ede4cff Fix possible XSS in yaml-metadata and turn using ejs escape syntax than external lib [Security Issue] 2016-11-26 22:55:31 +08:00
Wu Cheng-Han b43e63dd21 Update to support go in code block syntax highlighting 2016-11-26 22:48:20 +08:00
Wu Cheng-Han 79d5b2c37f Fix slide might able to add unsafe attribute on section tag which cause XSS [Security Issue] 2016-11-26 22:46:58 +08:00
Wu Cheng-Han f86a9e0c4b Fix slide might trigger script when processing markdown which cause XSS [Security Issue] 2016-11-26 22:46:08 +08:00
Wu Cheng-Han 64d1d2c04b Fix published note won't scroll to hash on load 2016-11-26 19:46:20 +08:00
Wu Cheng-Han 80ee507951 Fix mathjax with blockquote might have race condition 2016-11-18 12:19:05 +08:00
Wu Cheng-Han 09e6596074 Update to support haskell syntax highlighting in code block 2016-11-18 12:17:37 +08:00
Peter Dave Hello f8eb8fc9d8 Remove uesless executable permission for static files 2016-11-14 21:13:02 +08:00
Wu Cheng-Han 793aef0e2e Fix syntax highlighting not apply correctly in slides 2016-11-07 21:27:58 +08:00
Yukai Huang 0bc90258bf Add google font css for exported html 2016-11-03 14:54:24 +08:00
Max Wu 11faadb684 Merge pull request #242 from Yukaii/webpack-stylesheet
Use webpack to bundle stylesheet
2016-11-03 14:17:10 +08:00
Wu Cheng-Han 734d475c0e Fix server reconnect might not resend pending operations 2016-11-03 14:04:53 +08:00
Yukai Huang f1f8846b0a Config extra entry for html.min.css 2016-11-02 18:01:26 +08:00
Yukai Huang 3e23009663 Require slide mode stylesheets 2016-11-02 11:59:45 +08:00
Yukai Huang 58fedb01fa Require pretty stylesheets 2016-11-02 11:55:08 +08:00
Yukai Huang 55ddddd84b Require cover stylesheets 2016-11-02 11:26:25 +08:00
Yukai Huang 7a052b0dad Require index stylesheets 2016-11-02 11:26:06 +08:00
Wu Cheng-Han 25fa503981 Fix viewAjaxCallback might be called on null 2016-11-01 15:04:48 +08:00
Wu Cheng-Han ba2bfa2188 Update to support summary tag 2016-10-29 23:43:58 +08:00
Wu Cheng-Han a8bce53c47 Fix viewAjaxCallback not able to be assigned 2016-10-29 23:33:58 +08:00
Wu Cheng-Han a563a15bab Fix generateCleanHTML not remove smoothhashscroll attribute properly 2016-10-29 23:33:16 +08:00
Wu Cheng-Han dae141a9d3 Fix possible unclose HTML and leaked html tags when fail to parse diagrams 2016-10-26 01:30:17 +08:00
Wu Cheng-Han a42845cfc0 Update to retry when anytime the socket io disconnect 2016-10-23 21:43:18 +08:00
Wu Cheng-Han 3db1214ecf Fix socket io doc event should setDoc when revision mismatch and no outstanding operation 2016-10-23 20:17:33 +08:00
Wu Cheng-Han 5ad7d61499 Fix passing markdown-it-emoji incorrect parameter type 2016-10-23 16:46:34 +08:00
Max Wu 5236e568e7 Merge pull request #229 from PeterDaveHello/patch-1
Update locale.js
2016-10-23 16:31:47 +08:00
Wu Cheng-Han 67786a8aab Fix code block syntax highlighting might not process properly because the HTML is escaped 2016-10-23 16:30:09 +08:00
Peter Dave Hello b039913506 Update locale.js
Should change the lang been selected in the lang select/option menu.
2016-10-23 11:38:17 +08:00
Wu Cheng-Han 27bc94744d Fix index.js isValidURL is not defined error 2016-10-22 15:48:28 +08:00
Wu Cheng-Han d4bb87b8ec Fix ReferenceError of scollToTop and scollToBottom in index.js 2016-10-22 15:42:56 +08:00
Wu Cheng-Han 894a7fc8e5 Fix gapi not able to reference callback function onGoogleClientLoaded 2016-10-20 12:22:59 +08:00
Wu Cheng-Han 7ebc84bec0 Try to remove unused front-end dependency 2016-10-19 22:14:32 +08:00
Wu Cheng-Han d70d0318e5 Fix to use bower version emojify.js 2016-10-19 22:12:12 +08:00
Wu Cheng-Han 5640de8c77 Update to make history not depends on extra 2016-10-19 22:10:33 +08:00
Wu Cheng-Han 866c10d942 Update to make pretty use same method as slide to unescape markdown content 2016-10-19 22:09:15 +08:00
Wu Cheng-Han d44e830366 Update emoji parser using markdown-it-emoji instead of emojify to solve issue #217 2016-10-18 16:50:58 +08:00
Wu Cheng-Han eb724b05a7 Optimize finishView selector performance by avoid using universal selector, fix finishView code indentation and remove empty line 2016-10-18 12:15:35 +08:00
Wu Cheng-Han 843f025cb5 Fix finishView mermaid might select and replace whole markdown-body issue 2016-10-18 12:14:17 +08:00
Wu Cheng-Han e311a1f620 Fix code block which in deeper level will not be parsed issue 2016-10-18 00:14:50 +08:00
Wu Cheng-Han e097622098 Change to raise socket io reconnection attempts and make editor only available after refresh event received 2016-10-17 18:11:28 +08:00
Wu Cheng-Han 70a52e2eae Remove auto linkify image since it might print out unwanted url and it can be achieved by reference syntax, issue #214 2016-10-17 18:03:26 +08:00
Wu Cheng-Han fe912f73ec Fix code block highlighting html not escaped when no languages specified 2016-10-17 17:54:58 +08:00
Wu Cheng-Han 912063bee4 Fix client socket on delete event might not delete corresponding history record correctly 2016-10-14 17:39:52 +08:00
Wu Cheng-Han 211d25253e Update to support wrap syntax for code block 2016-10-14 17:35:35 +08:00
Yukai Huang 4c1109b70b Move gist-embed to CDN 2016-10-14 09:56:19 +08:00
Wu Cheng-Han ef5524be91 Fix sync scroll not handle properly on area resize 2016-10-14 00:25:08 +08:00
Yukai Huang e4515958cd Fix require ordering 2016-10-14 00:02:55 +08:00
Yukai Huang b5f42807b9 Fix ownership display 2016-10-13 23:29:25 +08:00
Yukai Huang 2f05e445cc Remove uneccesasry serverurl exporting 2016-10-13 19:15:51 +08:00
Yukai Huang ae3e1b972b Fix spellcheck
* also fix spaces width
2016-10-13 16:41:20 +08:00
Yukai Huang 747502e694 Fix HTML exporting 2016-10-13 16:35:43 +08:00
Yukai Huang d600364933 Fix history deletion 2016-10-13 16:25:38 +08:00
Yukai Huang f4f2497d23 Expose parseMeta function 2016-10-13 15:59:22 +08:00
Yukai Huang f678d9b814 Fix cheatsheet rendering
do not process help-modal markdown-body
2016-10-13 15:54:17 +08:00
Yukai Huang 440ad3506c Fix lastchangeui and moment timestamps 2016-10-13 15:13:03 +08:00
Yukai Huang 4713b4f2aa Fix syncscroll 2016-10-13 14:03:02 +08:00
Yukai Huang 773c0ce39e Optimize common assets with CDN
* jquery
* lodash
* socket.io
* boostrap
2016-10-13 11:42:17 +08:00
Yukai Huang 43c9f68b9a Refactor webpack module 2016-10-13 08:56:56 +08:00
Yukai Huang b90c26fe90 Config CDN for viz.js 2016-10-13 08:56:02 +08:00
Yukai Huang 2f11706dd2 Merge branch 'master' into webpack-frontend 2016-10-12 18:19:08 +08:00
Yukai Huang d5d9607c17 Fix stylesheet ordering 2016-10-12 18:14:39 +08:00
Wu Cheng-Han 12b7646f24 Fix to handle name or color might get undefined error 2016-10-12 17:48:28 +08:00
Yukai Huang 6b6b534866 Merge branch 'master' into webpack-frontend 2016-10-12 17:39:38 +08:00
Yukai Huang 895bf98b03 Load custom markdown-it-regex plugin with script-loader 2016-10-12 14:37:32 +08:00
Yukai Huang b73fcfc5c9 Revert 56c5378
viz.js still has problem with split chunk
2016-10-12 14:37:05 +08:00
Wu Cheng-Han f5d471106c Fix history list not parse and bind events properly on change pagination 2016-10-12 13:14:46 +08:00
Wu Cheng-Han f4fe27e26c Update to make history refresh have better UX and keep the beginning and end of the pagination visible 2016-10-12 13:08:53 +08:00
Yukai Huang 4a6a69e7bc Fix module export 2016-10-11 21:22:05 +08:00
Yukai Huang 6e651c8108 Merge branch 'master' into webpack-frontend 2016-10-11 18:40:23 +08:00
Yukai Huang 21028c5773 Cleanup 2016-10-11 18:06:40 +08:00
Yukai Huang 4a6903c91b Revert customized markdown-it-mathjax plugin 2016-10-11 17:53:46 +08:00
Yukai Huang 56c5378939 Optimize viz.js async rendering through webpack chunk 2016-10-11 17:15:06 +08:00
Wu Cheng-Han cd9f8fe36b Update to support pagination for history list 2016-10-11 16:48:42 +08:00
Wu Cheng-Han c06b2f4838 Fix history time should save in UNIX timestamp to avoid time offset issue 2016-10-11 16:46:50 +08:00
Yukai Huang d3315506dc Remove unused viz.js require 2016-10-11 15:45:14 +08:00
Yukai Huang 06437ccaa9 Manage more packages with npm and webpack 2016-10-11 14:52:45 +08:00
Yukai Huang 9c8752d452 Split common vendor javascript into chunks 2016-10-11 12:30:30 +08:00
Yukai Huang 7086a8c5e7 Fix common.js.example 2016-10-11 11:15:23 +08:00
Wu Cheng-Han 9a15cad42d Mark as 0.4.5 2016-10-11 11:01:05 +08:00
Wu Cheng-Han 795ea21191 Update CodeMirror to 5.19.0 and rename jade to pug 2016-10-10 21:15:29 +08:00
Wu Cheng-Han fb5d7e4359 Update npm and bower dependencies with related patch 2016-10-10 21:14:28 +08:00
Wu Cheng-Han e60ee6886d Cancel update history on page unload 2016-10-10 21:04:42 +08:00
Wu Cheng-Han 12d5ed43a7 Update to support delete note 2016-10-10 21:04:24 +08:00
Wu Cheng-Han 68457ed3a2 Update to make history delete and pin function call to new APIs 2016-10-10 21:00:07 +08:00
Wu Cheng-Han 7a46c9fc5c Fix some incorrect redirects 2016-10-10 20:57:17 +08:00
Wu Cheng-Han 36a1900ce3 Update to make note history count in server-side when user logged 2016-10-10 20:55:33 +08:00