Commit Graph

27 Commits

Author SHA1 Message Date
Felix Häusler
e5dc8f1540 Export with options (#1511)
* Export with options

* Fix function names and add documentation

* Narrow scrollbar
2019-10-25 09:03:33 +08:00
Ran Luo
41a2343e0f
Lazy load some big assets and optimize the bundle size (#1481)
* Use snap.svg to replace raphael

* lazy load diagram

* rm debug codes

* Use throw exception instead of console.error
2019-10-20 11:56:11 +08:00
Ran Luo
46371f8c56
Update Babel to 7.x.x (#1253)
* update deps

* update babel

* add babel-runtime

* update config file

* update config file

* modify config

* modify some codes

* update some dependences

* Update allowed licenses validate
2019-09-01 03:30:01 +08:00
Ran Luo
c239e99f1b
Refactor inline image to support paste/drop image (#1028)
* feat: image setting

* opti: inline image

* add imageSelectAction

* remove axios from muya

* update image selector

* finish image selector ui

* add load success style

* delete image by click delete icon

* opti structure of image html

* handle arrow key

* enter to edit

* image preview by press space

* handle backspace when the previous element is image wrapper

* update codes for change another PC

* emable select all in input

* handle arrow and backspace key

* create a new paragraph after the last paragraph if its not empty

* handle backspace when the previous element is image wrapper

* handle enter event in image selector

* rewrite auto show image selector

* modify image folder

* copy file to folder

* select image

* handle paste image

* picgo

* guess image path from clipboard

* drag and drop image to Mark Text

* add github uploader

* remove unused codes

* remove unused codes

* rewrite image path auto complete

* support `path` imageInsertAction

* doc: add image uploader doc

* remove debug codes

* set init value in image uploader page

* fix typo

* remove unused codes

* drag web image to Mark Text

* add save notification

* opti uploading process

* fix did not close image selector bug

* check image content type when drag web link image

* fix: unable to preview relative path image.

* emit change event after paste/drop image

* add url map in image selector

* feat: screenshot and auto insert the screenshot image

* update error handler

* feat: use the native screencapture command line on macOs system

* opti: drop image

* fix: handle enter error when cursor is after a image

* fix: hasOwnProperty error

* remove debug codes

* fix: backspace when the previous ele is image

* fix: CI error and optimize some codes

* use hash of file path to generate the copied filename

* change default imageInsertAction to `path`

* fix: typo

* remove some unused codes and opti get image file name

* fix some bugs and opti codes

* update image edit icon

* romove screen capture on Linux and Windows

* fix: conflict

* fix error that can not insert image after the existed image or before existed image
2019-05-26 23:55:13 +08:00
Ran Luo
4bd22b6dc5
Mark Text Preference (#1003)
* dynamic change element-ui theme to our themeColor

* add some ui components

* add preference doc

* add json schema file

* update preference.json and schema.json

* reset to old commit

* rename preference file for rebase

* rebase develop

* add setting window

* user electron-store to store preferences

* add themes setting

* add select component

* add markdown pref

* fix: bool and select init value

* add font size setting

* editor pref

* add general preference

* search preference

* update menu after preference changed

* update muya codes

* prevent scale setting window

* fix: titlebar undefined

* update input style

* remove window from windowManager after close setting window

* remove old docs and preference.md

* if a setting window is already created, no need to create another one, just move it to top

* rename openFilesInNewWindow to openFileInNewWindow

* change aidou runtime

* change hideQuickInsertHint by setting page runtime

* change autopair runtime

* change codefont and codefontfamily dynamic

* change default value of autoSave to false

* update bulletListMarker

* fix style error

* add custom titlebar to settings window

* add window shadow for Linux and Windows

* fix Windows build

* fix some typo error

* update doc

* add default menu and setting menu

* fix update menu bug

* fix typo

* remove mac titlebarstyle

* do not need to send titlebarstyle to renderer

* fix typo

* crash Mark Text if no initial preference.json file

* update the path

* add showCustomTitleBar prop

* set empty settings menu on Linux/Windows + workaround
2019-05-09 09:26:28 +08:00
Felix Häusler
77ff23c2c8 refactor main source code (#1006)
* refactor main source code

* fix invalid file cache entries during startup
2019-05-04 22:14:45 +08:00
Felix Häusler
c35395a8f8 fix: vscode debugging configuration (#889) 2019-04-09 01:19:03 +08:00
Felix Häusler
004879b49a Modified themes and added dark and one dark theme (#826)
* Modified themes and added dark and one dark theme

* fix: print service

* Update documentation
2019-03-31 12:56:03 +08:00
Ran Luo
70cea33d78
update: icon path (#771)
* update: icon path

* update icon path
2019-03-19 15:19:16 +08:00
Ran Luo
2c87af7f2f update pageage.json, add maintainer (#733)
* update pageage.json, add maintainer

* update dep

* feat: opti quick insert

* update quick insert icon

* update pageage.json, add maintainer

* update dep

* feat: opti quick insert

* update quick insert icon

* add windows support

* fix #576
2019-03-09 12:51:55 +01:00
Felix Häusler
471e2381e2 Improve dev experience (#731) 2019-03-06 23:01:45 +08:00
Felix Häusler
4647a53111 Add compile time version information (#695) 2019-02-28 23:03:55 +08:00
Felix Häusler
a2a0363541 Add production source maps (#610)
* Add production source maps

* Increase mocha timeout
2018-12-20 17:09:16 +08:00
Felix Häusler
fe56f935b9 Enforce "yarn install" usage and add yarn lockfile (#615) 2018-12-17 22:11:17 +08:00
Felix Häusler
2ce05829d7 Fix tests and improve CI (#590)
* Fix tests and improve CI

* Add xvfb to Linux - still problems with Mocha e2e tests

* Disable Webpack Bundle Analyzer for testing

* Use preinstalled yarn application on AppVeyor

* Fix build failure with latest vue version

* Remove "markdown-toc"

* Fix application title unit test

* Hide electron window during unit tests

* Add basic muya unit tests

* Dirty markdown-toc replacement

* Update dependencies

* Update eslint packages and configuration
2018-12-17 10:29:37 +08:00
Jocs
fe65e13029 update: build process 2018-10-24 13:43:00 +08:00
Ran Luo
39e1ea8081
Prism replace codemirror (#516)
* feat: basic use of code block by prism

* opti: remove codemirror from muya

* feat: add highlight to math and frontmatter

* feat: import and export in math block, html block, frontmatter, code block

* update: paragraph ctrl

* feat: copy and paste in new math block and html block

* feat: update code block style in dark theme

* feat: search and replace in code block

* fix: update menu item status when selection changed

* opti: optimization of updateCtrl divide it into clickCtrl and inputCtrl

* opti: search and replace in code block when no lang selected

* opti: copy paste in code block

* feat: insert paragraph before or after code block

* opti: change emoji.js to emoji.json

* feat: auto indent in code block

* opti: auto indent in code block

* opti: remove the use of snabbdom-virtualize

* fix: do not show format float box in code block

* opti: emoji picker

* update: delete some unused codes

* update: electron

* use a temp prismjs2 instead of prismjs
2018-10-23 21:21:58 +08:00
Jocs
e894efa315 opti: delete some unused codes 2018-10-18 13:30:28 +08:00
jocs
2f87d334dc fix: wrong arrow action in table 2018-10-09 20:58:14 +08:00
jocs
37e64cabd3 feat: quick insert paragraph 2018-10-06 14:15:08 +08:00
Jocs
7d6af4f587 opti: rewrite export html 2018-09-22 12:01:51 +08:00
Ran Luo
26724c86d9
update readme (#465) 2018-08-12 22:03:25 +08:00
Ran Luo
405d04ce19
package and release muya (#413) 2018-07-07 00:10:30 +08:00
Jocs
faf65e8eca optimization: add postcss to write css 2018-05-30 18:05:26 +08:00
冉四夕
16bb1de82e
Support multiple lines math input (#294)
* change another way to render math

* open\save\edit multiple lines math block

* rewrite header label style

* inline code style update

* update dark theme style

* update change log

* typo error

* update webpack to v4

* update license

* fix unexpected to delete math preview block

* fix cursor error when change mode
2018-05-26 00:58:16 +08:00
Jocs
926ce7a0af bug: fix codemirror loadmode didn\'t work in production environment 2017-11-22 10:57:37 +08:00
Jocs
94ca31d58a first commit 2017-11-13 00:05:57 +08:00