Commit graph

271 commits

Author SHA1 Message Date
Wu Cheng-Han
5640de8c77 Update to make history not depends on extra 2016-10-19 22:10:33 +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
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
912063bee4 Fix client socket on delete event might not delete corresponding history record correctly 2016-10-14 17:39:52 +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
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
f4f2497d23 Expose parseMeta function 2016-10-13 15:59:22 +08:00
Yukai Huang
440ad3506c Fix lastchangeui and moment timestamps 2016-10-13 15:13:03 +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
2f11706dd2 Merge branch 'master' into webpack-frontend 2016-10-12 18:19:08 +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
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
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
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
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
7a46c9fc5c Fix some incorrect redirects 2016-10-10 20:57:17 +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
550746b70e Update default indent to use spaces instead of tabs 2016-10-10 20:46:06 +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
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
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
8a254ea4f1 Fix scrollToTop/Buttom in preview
workaround
2016-10-09 21:14:18 +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
Laura Kyle
c43f068f6c Change wording of placeholder text 2016-10-02 21:39:45 -04: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
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
38b1477736 Fix syncscroll.js and index.js have circular dependency cause Reference Errors 2016-09-18 16:51:19 +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
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
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
b4ad011dc1 Fix toc id naming to avoid overlap with user toc 2016-08-15 11:27:32 +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
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
Wu Cheng-Han
881e92b05a Update to make help modal and text complete hint using consistent reminder text 2016-08-01 16:00:37 +08:00
Wu Cheng-Han
65cff038a3 Update bootstrap to 3.3.7 and jQuery to 3.1.0 with related patches 2016-07-30 12:19:42 +08:00
Wu Cheng-Han
3a5bda3067 Fix idle.js not change isAway property on onAway and onAwayBack events 2016-07-30 11:32:19 +08:00
Wu Cheng-Han
f69a5361cb Update to make random color more discrete 2016-07-30 11:31:29 +08:00
Wu Cheng-Han
a8c12d0d21 Update user color style in online user list to make it super obvious 2016-07-30 11:30:12 +08:00
Wu Cheng-Han
a14e7953b5 Add support of showing authorship in editor and adjust related styles 2016-07-30 11:28:24 +08:00
Wu Cheng-Han
8791447ef9 Update to support slide preview in both mode 2016-07-30 11:07:08 +08:00
Wu Cheng-Han
246c9da574 Fix spellcheck settings from cookies might not a boolean in string type 2016-07-30 11:00:00 +08:00
Wu Cheng-Han
9e365b7c12 Update header toolbar menu to remove beta section and add extra section 2016-07-02 16:18:10 +08:00
Wu Cheng-Han
da7b6a340d Reduce realtime timeout and heartbeat interval to handle stale clients quicker 2016-07-02 16:15:05 +08:00
Wu Cheng-Han
1df5b4ce49 Fix retryOnDisconnect and timer not clean up after reconnected 2016-07-02 16:13:34 +08:00
Cheng-Han, Wu
65b91e0b66 Update to handle on view have smaller scrollHeight than editor's shouldn't syncScrollToView after changes 2016-06-21 21:48:02 +08:00
Cheng-Han, Wu
3454819522 Update to annotate scrollbar position of revision mark text 2016-06-21 21:47:11 +08:00
Cheng-Han, Wu
09fb120967 Update to support toggle editor theme and spellcheck in status bar 2016-06-21 21:45:45 +08:00
Cheng-Han, Wu
3424cdd771 Add support of embed pdf 2016-06-21 21:44:06 +08:00
Cheng-Han, Wu
a6a107eab9 Update to remove data lines attributes in the patialUpdate to gain better performance 2016-06-17 16:33:01 +08:00
Cheng-Han, Wu
73f6d383b5 Add minimumCompatibleVersion and update refresh modal to show more detail informations 2016-06-17 16:31:36 +08:00
Cheng-Han, Wu
03e68f92eb Fix locked or private permission should block any operation if owner is null 2016-06-17 16:29:45 +08:00
Cheng-Han, Wu
cb1e00d1d1 Add support of exporting raw html 2016-06-17 16:17:37 +08:00
Cheng-Han, Wu
4d24476316 Add revision modal with UIs and support to mark patch diff texts 2016-06-17 16:15:53 +08:00
Cheng-Han, Wu
d742b332eb Rearrange some code execute to make sure loaded is asset in correct position 2016-06-17 15:59:50 +08:00
Cheng-Han, Wu
a9fc8d0dff Update to bring up view rendering earlier on first loading 2016-06-17 15:59:25 +08:00
Cheng-Han, Wu
fe249c01f5 Fix updatePermission before loaded might cause duplicate view rendering 2016-06-17 15:58:51 +08:00
Cheng-Han, Wu
cca567453d Fix on paste long document to editor might cause scroll not syncing 2016-06-17 15:58:23 +08:00
Cheng-Han, Wu
2c58b05d05 Revert f32dee3796, because workaround has better performance and they might needed in some cases 2016-06-17 15:57:34 +08:00
Cheng-Han, Wu
30c8420e30 Revert 85e00cb2ef, it's needed for checking if cursor related element reach the viewport edge 2016-06-17 15:55:27 +08:00
Cheng-Han, Wu
fb87de74a5 Update to make cursortag default as hover mode to prevent tag overlay other lines 2016-06-17 15:52:11 +08:00
Cheng-Han, Wu
85e00cb2ef Remove doc top offset workaround for checkCursorTag and checkCursorMenu which cause cursors floating around 2016-06-04 10:49:53 +08:00
Cheng-Han, Wu
43ad625b82 Remove autoSyncscroll on updateView to avoid lost scroll position on other client editing 2016-06-04 10:49:30 +08:00
Cheng-Han, Wu
5c8df4a7a1 Fix to make socket keep retry after disconnect on server maintenance 2016-06-04 10:49:10 +08:00
Cheng-Han, Wu
dcc5ef2df6 Remove unnecessary editor refresh workaround because it already get fixed 2016-06-02 01:06:55 +08:00
Cheng-Han, Wu
f32dee3796 Remove checkEditorScrollbar workaround since CodeMirror 5.15.3 already fixed this issue, refer to CodeMirror #3896 2016-06-01 14:37:51 +08:00
Cheng-Han, Wu
16d5e3ea80 Add maintenance mode and update to gracefully exit process on signal 2016-06-01 14:18:54 +08:00
Cheng-Han, Wu
da45b7dc10 Improve resize performance and fix resize syncscroll not accurate 2016-05-30 11:38:27 +08:00
Cheng-Han, Wu
2c60f0dd67 Improve syncscroll performance and accuracy with few UX tweaks 2016-05-29 13:58:32 +08:00
Cheng-Han, Wu
5c861fd51e Update docs and textcomplete rules for image syntax with size specified 2016-05-27 13:39:54 +08:00