From ed7bb830c2d3f70f5768ea5a3ef49af7fe55dbc1 Mon Sep 17 00:00:00 2001 From: Jocs Date: Tue, 30 Jan 2018 22:46:44 +0800 Subject: [PATCH] update todo list --- LICENSE | 2 +- TODO.md | 36 +++++++++++++++++++++++++++++--- package-lock.json | 2 +- src/editor/parser/StateRender.js | 2 +- src/main/menus/view.js | 2 +- 5 files changed, 37 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index 4e1a8fc4..ea26fe64 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 Jocs +Copyright (c) 2018 Jocs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/TODO.md b/TODO.md index f47d5d24..ffa9bbce 100644 --- a/TODO.md +++ b/TODO.md @@ -6,7 +6,7 @@ - [ ] codeBlock 在 list item 中时,list style 问题。 - [ ] 在通过 Aganippe 打开文件时,无法通过右键选择 Aganippe。(严重 bug) - [ ] 在通过 Aganippe 打开文件时,通过右键选择软件,但是打开无内容。(严重 bug) -- [ ] export html: (3) keyframe 和 font-face 以及 bar-top 的样式都可以删除。(4) 打包后的应用 axios 获取样式有问题。 +- [ ] export html: (3) keyframe 和 font-face 以及 bar-top 的样式都可以删除。(4) 打包后的应用 axios 获取样式有问题。(5) 输出的 html 中 a 标签无法点击 **菜单** @@ -28,7 +28,7 @@ - [ ] Move To - - [ ] Export(PDF | HTML with style | HTML) + - [x] Export(PDF | HTML with style | HTML) - - [x] Undo @@ -149,4 +149,34 @@ _ 底线 - [x] [search and add emoji](https://www.webpagefx.com/tools/emoji-cheat-sheet/) -- [ ] 表格支持。 +**表格功能** + +* [ ] 输入`|xxx|xxx|`回车或其他失去 active 的操作生成2 * 2 表格。如果是回车,p (1, 1)自动获取光标。 + + block 类型包括 table、thead、tr、th、tbody、td + +* [ ] 处理表格内部的 enter、cmd + enter、backspace 键。 + + enter 光标跳转到下一行第一个cell。如果已经是最后一行,光标跳转到下一的段落。 + + backspace 默认功能,如果是第一行第一个 cell,并且 table 没有内容。那么执行删除 cell + + cmd + enter在当前行下创建一新行 + +* [ ] tool bar + + 设置多少行多少列 + + 设置每列对齐方式 + + 删除整个 table + +* [ ] tbody 中可以通过拖拽交换行 + + 每行末有删除符号,可以删除行 + +* [ ] 支持通过菜单插入表格 + +* [ ] 表格的输入、输出 + +* [ ] 表格的复制黏贴 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1b67aa93..821a9a04 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "aganippe", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/editor/parser/StateRender.js b/src/editor/parser/StateRender.js index 22a09dab..7691a571 100644 --- a/src/editor/parser/StateRender.js +++ b/src/editor/parser/StateRender.js @@ -348,7 +348,7 @@ class StateRender { ['auto_link'] (h, cursor, block, token, outerClass) { return [ h('a', { - porps: { + props: { href: token.href } }, token.href) diff --git a/src/main/menus/view.js b/src/main/menus/view.js index 048490ca..df75e82d 100755 --- a/src/main/menus/view.js +++ b/src/main/menus/view.js @@ -17,7 +17,7 @@ let viewMenu = { }] } -if (process.env.NODE_ENV !== 'production') { +if (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'development') { // add devtool when development viewMenu.submenu.push({ label: 'Toggle Developer Tools',