Commit Graph

592 Commits

Author SHA1 Message Date
Wu Cheng-Han a181b3d11f Fix index style 2016-10-15 14:01:05 +08:00
Wu Cheng-Han dbd7449740 Update to support Hindi locale 2016-10-14 22:52:54 +08:00
Wu Cheng-Han 9995cbfd32 Fix export html highlight style source is missing and should load emojify styles from CDN 2016-10-14 17:41:30 +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
Yukai Huang 3d1bc8a8cb Move list-pagination plugin to CDN 2016-10-14 09:25:45 +08:00
Yukai Huang 142b4c6771 Move highlight.js to CDN 2016-10-14 09:21:41 +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 47b113d9fe Add handlebars script tag 2016-10-13 16:45:52 +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 bcb12b9ae7 Remove jquery-scrollspy dependency
scrollspy is bootstrap built-in plugin
2016-10-13 15:30:26 +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 83be3465cc Fix scrollspy 2016-10-13 13:59:34 +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 f3d4b55856 Fix getCaretPosition in text complete might get undefined position error 2016-10-12 17:50:01 +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 0bf3c63622 Remove slide.ejs style tag 2016-10-12 17:37:21 +08:00
Yukai Huang 2cafe15e85 Enable production assets hash 2016-10-12 17:15:59 +08:00
Yukai Huang 91266f1cad Load more scripts using webpack 2016-10-12 17:03:47 +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
Yukai Huang 02eef3f68a Load customized vendor script through script-loader 2016-10-12 13:18:29 +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
Wu Cheng-Han dc343978eb Fix get or set history on server ajax should not fallback to browser storage to avoid some internet edge cases 2016-10-10 20:50:01 +08:00
Wu Cheng-Han b6e68b2d36 Fix saveHistoryToStorage not correctly fallback to cookie 2016-10-10 20:49:42 +08:00
Wu Cheng-Han b54b3cbe69 Add more comments in the code and remove unused code file 2016-10-10 20:48:56 +08:00
Wu Cheng-Han e4b40d11a2 Update to make editor mode setting to a default variable 2016-10-10 20:47:57 +08:00
Wu Cheng-Han f6f469d0fe Update to use modified editor markdown mode to make mathjax expression display correctly 2016-10-10 20:47:06 +08:00
Wu Cheng-Han 550746b70e Update default indent to use spaces instead of tabs 2016-10-10 20:46:06 +08:00
Wu Cheng-Han 1d1eedce7e Improve syntax highlighting performance by moving it to finish view 2016-10-10 20:45:49 +08:00
Wu Cheng-Han 521f76f7ad Update to make OT error, client reconnect handling better and refactor client "doc" event 2016-10-10 20:44:45 +08:00
Wu Cheng-Han c9f5cd49b0 Fix potential error 2016-10-10 20:42:40 +08:00
Wu Cheng-Han 73a8a6c32a Fix OT socket io reconnect should resend last operation 2016-10-10 20:39:02 +08:00
Wu Cheng-Han 7e7919ce86 Fix broken link id reference 2016-10-10 20:34:53 +08:00
Wu Cheng-Han 72d7ba0f31 Update to remind note max length limit on the status bar length div 2016-10-10 20:33:17 +08:00
Wu Cheng-Han 3175616573 Update to support showing owner on the infobar 2016-10-10 20:32:20 +08:00
Wu Cheng-Han 7a85d62b77 Remove unused code 2016-10-10 20:26:12 +08:00
Wu Cheng-Han a5e6b5dd3b Update to support Ukrainian locale 2016-10-10 19:48:05 +08:00
Max Wu a5c97b6c81 Merge pull request #196 from PeterDaveHelloKitchen/image-optimize
optimize png images using zopflipng
2016-10-10 17:10:19 +08:00
Wu Cheng-Han 4c9dc5fa1f Add support of Italian, Turkish, Russian, Dutch, Croatian, Polish locales 2016-10-10 16:29:40 +08:00
Wu Cheng-Han bf4c6d021c Extract config.js from common.js to make client setting file clean and also make upgrade easier 2016-10-10 16:25:51 +08:00
Yukai Huang 20f2e27350 Cover page is now working 2016-10-10 10:14:17 +08:00
Yukai Huang 082178d535 Slide mode is now working 2016-10-10 08:25:35 +08:00
Yukai Huang e10203b7e9 More function expose workaround for reveal-markdown.js 2016-10-10 08:24:58 +08:00
Yukai Huang 70c20aadda Remove redundant entry point 2016-10-10 07:58:42 +08:00
Peter Dave Hello 83ae4751f4 optimize png images using zopflipng 2016-10-10 00:53:54 +08:00
Yukai Huang a258897884 Revert some bower assets 2016-10-09 21:43:41 +08:00
Yukai Huang 8f9afa42d5 Fix history and edit mode change 2016-10-09 21:35:24 +08:00
Yukai Huang 2ccaf71191 Update common.js.example 2016-10-09 21:34:40 +08:00
Yukai Huang 8a254ea4f1 Fix scrollToTop/Buttom in preview
workaround
2016-10-09 21:14:18 +08:00
Yukai Huang 53b5cbb893 Finish public note view js loading 2016-10-09 21:09:22 +08:00
Yukai Huang 5355da0960 Workaround for circular require 2016-10-09 21:08:33 +08:00
Yukai Huang d0997ed0c1 Config TextExtract plugin and change build folder 2016-10-09 18:22:31 +08:00
Yukai Huang 28858288fb Fix more js errors 2016-10-09 17:55:07 +08:00
Yukai Huang 3e2905be13 Revert to customized codemirror 2016-10-09 17:54:51 +08:00
Yukai Huang 196d546f7e Fix pdfobject require 2016-10-09 10:51:39 +08:00
Yukai Huang 67d118782d Fix function export 2016-10-09 08:15:37 +08:00
Yukai Huang 7e6b9f776f Revert customized ot library and fix dependency 2016-10-09 08:15:23 +08:00
Yukai Huang 845e9342c5 Add highlight.js and prism styles 2016-10-09 07:54:52 +08:00
Yukai Huang 8e2b03cfd6 Config bootstrap with webpack 2016-10-08 23:04:19 +08:00
Yukai Huang 2b678c1f12 Make editor variable global 2016-10-08 23:03:33 +08:00
Yukai Huang 963a435ae1 Resolve dependency module requiring
* es5 style module exports
* remove script tag require
* webpack config ProvidePlugin

Note that this commit only fix JavaScript module loading runtime error.
2016-10-08 20:02:30 +08:00
Yukai Huang 0be342c44d Fix mutiple socket.on handling 2016-10-08 19:58:26 +08:00
Yukai Huang ebee5a8d05 Use xss in script tag 2016-10-08 19:57:50 +08:00
Yukai Huang 8e11c19bed Move out script tag and use js instead 2016-10-08 08:13:40 +08:00
Yukai Huang 93f3664c88 Add missing vendor code hard to deal with 2016-10-08 08:13:40 +08:00
Yukai Huang 0e63fe1fa0 Create example config 2016-10-05 10:58:05 +08:00
Yukai Huang ca59d86628 Remove config files from version control 2016-10-05 10:57:10 +08:00
Laura Kyle c43f068f6c Change wording of placeholder text 2016-10-02 21:39:45 -04:00
Wu Cheng-Han aaf32dc4bf Update to support Greek and Portuguese locales 2016-10-02 10:34:10 +08:00
Wu Cheng-Han 21afa2de14 Fix undefined variable typo 2016-09-18 17:05:55 +08:00
Wu Cheng-Han 9b5856fff0 Fix text complete extra tags for blockquote and referral shouldn't match after the target search and referral regex now need two spaces when after some text 2016-09-18 17:05:29 +08:00
Wu Cheng-Han 748957dc9e Update help modal cheatsheet font styles to make it more clear on spaces 2016-09-18 17:05:07 +08:00
Wu Cheng-Han 93ec43c3dc Fix revision viewer might not update after data init, try to use editor operation queue to enhance updateView performance 2016-09-18 17:04:33 +08:00
Wu Cheng-Han a9d7d7438f Fix sequence-diagram-min.js.map for source file reference and source file not found error 2016-09-18 17:03:17 +08:00
Wu Cheng-Han 6a641ab2bb Fix text might get cutoff again for IE and Edge series 2016-09-18 16:51:48 +08:00
Wu Cheng-Han 38b1477736 Fix syncscroll.js and index.js have circular dependency cause Reference Errors 2016-09-18 16:51:19 +08:00
Wu Cheng-Han b7200d7910 Fix the include order to avoid Reference Errors 2016-09-18 16:50:35 +08:00
Wu Cheng-Han c2f0943b49 Fix bug that when window close will make ajax fail and cause cookies set to wrong state 2016-09-18 16:42:59 +08:00
Wu Cheng-Han 23008bc1e1 Update to support wiki markup syntax highlighting in view using prism 2016-09-18 16:42:27 +08:00
Wu Cheng-Han 42145e4019 Update to support tiddlywiki and mediawiki syntax highlighting in editor 2016-09-18 16:40:51 +08:00
Wu Cheng-Han 591134007c Update to support shortcuts which can add or delete symbol surround text 2016-09-18 16:35:24 +08:00
Wu Cheng-Han f1c9874ed0 Update to support save mode to url and parse mode from url 2016-09-18 16:33:33 +08:00
Wu Cheng-Han 3840308ab6 Update edit and publish icon and change toggle icon to make it straightforward, and add shortcut key reminder in modes' title 2016-09-18 16:32:26 +08:00
Wu Cheng-Han 9d71adc05c Add support of shortcut keys for changeMode 2016-09-18 16:30:08 +08:00
Wu Cheng-Han b708a72873 Fix the element selector in smoothHashScroll might contain special characters and cause the Syntax error 2016-09-18 16:28:07 +08:00
Wu Cheng-Han c22791610c Fix scripts load order to prevent reference error, using query callback to prevent google api call before loaded 2016-09-18 16:27:21 +08:00
Wu Cheng-Han 4421c8ede7 Improve authorship markers update performance and use CodeMirror built-in operation queue to avoid making DOM busy 2016-09-18 16:22:50 +08:00
Wu Cheng-Han 4cc00c6c40 Update to support French, Deutsch, Japanese and Spanish locales 2016-09-16 22:29:13 +08:00
Pablo Guerrero 20fecf28f6 Update features.md 2016-09-11 23:19:05 +02:00
Pablo Guerrero 963bb7049f Update features.md 2016-09-09 23:44:20 +02:00
Pablo Guerrero c639ed9487 Update features.md 2016-09-09 22:42:12 +02:00
Pablo Guerrero 7725f7e6ca Update features.md 2016-09-09 22:08:17 +02:00
Wu Cheng-Han b9c59c454d Add support of i18n with related patches and support "en" and "zh" locales for now 2016-08-19 11:49:24 +08:00
Wu Cheng-Han 87f4d05e8e Update to use proper way to render view and fix upload image error should response with code 2016-08-19 11:31:23 +08:00
Wu Cheng-Han 058c35730b Update to hide scrollbar (but scrollable) in the slide mode 2016-08-15 11:30:12 +08:00
Wu Cheng-Han 29d198def9 Update slide ready and change event to improve performance 2016-08-15 11:28:48 +08:00
Wu Cheng-Han 8124d6f2d6 Update features.md with latest changes 2016-08-15 11:28:05 +08:00
Wu Cheng-Han b4ad011dc1 Fix toc id naming to avoid overlap with user toc 2016-08-15 11:27:32 +08:00
Wu Cheng-Han a013c9d3bc Update slide mode to show extra info and support url actions and support disqus via yaml-metadata 2016-08-15 11:25:27 +08:00
Wu Cheng-Han e12fae6999 Fix header nav bar rwd detect element should use div tag or it might glitch the layout 2016-08-15 11:02:47 +08:00
Wu Cheng-Han fddc2ab38b Fix textcomplete of extra tags for blockquote not match space character in the between 2016-08-15 11:02:11 +08:00
Wu Cheng-Han 93ff287799 Fix text-shadow for text antialiased might cause IE or Edge text cutoff 2016-08-15 11:01:00 +08:00
Wu Cheng-Han ecd7218917 Update to support data uri in src attribute of image tag 2016-08-15 11:00:02 +08:00
Wu Cheng-Han 3bcb36b46c Improve index layout and UX with UI adjustments and better wording 2016-08-15 10:56:14 +08:00
Wu Cheng-Han cf290e86e1 Update XSS policy to allow iframe and link with custom protocol 2016-08-14 18:32:22 +08:00
Wu Cheng-Han f11cab7b45 Update slide font styles 2016-08-14 18:28:36 +08:00
Wu Cheng-Han bc2663fc75 Fix typo line break in features.md 2016-08-14 18:28:00 +08:00
Wu Cheng-Han 152585f96b Update markdown styles, follow github styles and font family 2016-08-14 18:27:20 +08:00
Wu Cheng-Han be81ee22ec Update slide mode, now respect all meta settings and update default styles 2016-08-14 15:02:05 +08:00
Wu Cheng-Han e08152ed03 Update toc styles to make toc menu always accessible without scrolling 2016-08-14 11:24:04 +08:00
Wu Cheng-Han 9c89876263 Revert d85dd19816, which breaks slide preview layout 2016-08-14 11:21:45 +08:00
Wu Cheng-Han f35aa94b41 Mark as 0.4.4 2016-08-02 17:17:33 +08:00
Wu Cheng-Han 67474aa1d4 Update realtime check and refresh event, compress data using LZString UTF16 to minimize network delay 2016-08-02 17:16:01 +08:00
Wu Cheng-Han f49fc192f6 Workaround vim mode might overwrite copy keyMap on Windows 2016-08-02 10:54:50 +08:00
Wu Cheng-Han 4de73477b4 Fix TOC might not update after changeMode 2016-08-02 10:54:20 +08:00