Giter Club home page Giter Club logo

hexo-editor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-editor's Issues

关于编辑处的一些设置

image
希望能在这里多做几个设置,比如"img"(文章特征图),或者给使用者自己DIY这里的选项。希望这里能更新一下

Error start script 'node server.js'

Hexo-editor is just, what I've been waiting for. But waiting is not over yet, as it seems impossible for me to get hexo-editor running. Both on a local machine with Windows/Node 6.3.1 and on a server with Linux/Node 6.1.

It looks like, my windows-installation is closer. An upgrade to Node 6.3.1 plus a change in package.json from
jade@^1.11.0
to
[email protected]
made the road for an errorless

npm install --production

But

npm start
with Hexo running in another command-prompt still throws this error:

Connected to redis:127.0.0.1:6379
Hexo Editor is listening at port:2048.
Hexo init success.
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
    at Object.exports._errnoException (util.js:1012:11)
    at exports._exceptionWithHostPort (util.js:1035:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:14)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Jan\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.3.1
npm ERR! npm  v3.8.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the hexo-editor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs hexo-editor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls hexo-editor
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\vscode\hexo\hexo-editor\npm-debug.log

I'm not even able to find events.js anywhere in the hexo-editor- or hexo-folders.

Any suggestions, how I can get hexo-editor up and running?

How to input thumbnail image path when editing the .md files?

I found out that is it relatively hard for users to add thumbnails to the blog posts, so I changed the editor layout to as below:

screen shot 2018-01-30 at 3 31 53 pm

However, I couldn't figure out which part of the app takes the data and puts it into the .md files.

Would anybody give some advices?

THanks.

在线编辑时,输入法中的拼音会带入编辑器

在线编辑时,使用中文输入法,拼音也会被带入编辑内容中,
例如要输入 “测试中文输入法 ”
页面显示效果为

ceshi测试zhongwen测试中文shurufa测试中文输入法

我想应该是自动保存的逻辑监听了keup吧?

Creating a new post while on draft or posts saves it to post even if you press on save to draft.

Expected behaviour:
Pressing the icon for "Save draft" should save the document in drafts.

Actual behaviour:
The file is saved in posts then tries to be moved to drafts.

Troubleshooting:
It seems there is a thrown error
Unhandled rejection Error: ENOENT: no such file or directory, rename './docs/source/_posts/undefined.md' -> './docs/source/_drafts/undefined.md' when trying to rename the file from posts to drafts, this makes the file stay in posts.

Debug info
Node: v9.11.1

termux-info

Updatable packages: All packages up to date
System information: Linux localhost 4.4.142-perf+ #1 SMP PREEMPT Thu Jul 19 16:01:35 PDT 2018 aarch64 Android
Termux-packages arch: aarch64
Android version: 9
Device manufacturer: Essential Products
Device model: PH-1

Add save button on the editor page

It would be possible to add a save button? Not just the publish? It's really useful for drafts.

Anyway, great tool. I'd love to help in the fixes/new features.

Busboy is not a constructor

Busboy is not a constructor
TypeError: Busboy is not a constructor
at /Users/king/Desktop/hexo-editor/node_modules/connect-busboy/index.js:21:18
at Layer.handle [as handle_request] (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:328:13)
at /Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:346:12)
at next (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:280:10)
at expressInit (/Users/king/Desktop/hexo-editor/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:328:13)
at /Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:346:12)
at next (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:280:10)
at query (/Users/king/Desktop/hexo-editor/node_modules/express/lib/middleware/query.js:45:5)
at Layer.handle [as handle_request] (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:328:13)
at /Users/king/Desktop/hexo-editor/node_modules/express/lib/router/index.js:286:9

About the tags

在使用时发现,一篇文章只能添加一个标签

请问如何添加多个标签在一篇文章,若没有该功能是否后续可以加入此功能

几个问题(不知道是不是bug)

  1. **大陆网络安装失败,安装需要翻墙

  2. npm install --production时的WARN:

npm WARN deprecated [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: As of version 10, the name has been changed to primer. Install with 'npm install primer'
npm WARN deprecated [email protected]: no longer maintained
npm WARN deprecated [email protected]: Please update to at least constantinople 3.1.1
npm WARN deprecated [email protected]: Deprecated, use jstransformer
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: postinstall-build's behavior is now built into npm! You should migrate off of postinstall-build and use the new prepare lifecycle script with npm 5.0.0 or greater.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: The primer-cards module has been deprecated. We recommend using primer-box instead.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

found 22 vulnerabilities (15 low, 6 high, 1 critical)
run npm audit fix to fix them, or npm audit for details

  1. npm audit fix --force后的结果:
  • [email protected]
  • [email protected]
  • [email protected]
    added 219 packages from 131 contributors, removed 89 packages, updated 56 packages and moved 3 packages in 31.243s
    fixed 16 of 23 vulnerabilities in 13160 scanned packages
    7 vulnerabilities required manual review and could not be updated
    3 package updates for 16 vulns involved breaking changes
    (installed due to --force option)

之后再使用npm audit:

                   === npm audit security report ===


                             Manual Review
         Some vulnerabilities require your attention to resolve

      Visit https://go.npm.me/audit-guide for additional guidance

Critical Potential Command Injection

Package shell-quote

Patched in >=1.6.1

Dependency of gulp-browserify [dev]

Path gulp-browserify > browserify > shell-quote

More info https://nodesecurity.io/advisories/117

High Regular Expression Denial of Service

Package minimatch

Patched in >=3.0.2

Dependency of gulp-browserify [dev]

Path gulp-browserify > browserify > glob > minimatch

More info https://nodesecurity.io/advisories/118

Low Incorrect Handling of Non-Boolean Comparisons During
Minification

Package uglify-js

Patched in >= 2.4.24

Dependency of gulp-browserify [dev]

Path gulp-browserify > browserify > umd > ruglify > uglify-js

More info https://nodesecurity.io/advisories/39

Low Regular Expression Denial of Service

Package uglify-js

Patched in >=2.6.0

Dependency of gulp-browserify [dev]

Path gulp-browserify > browserify > umd > uglify-js

More info https://nodesecurity.io/advisories/48

Low Regular Expression Denial of Service

Package debug

Patched in >= 2.6.9 < 3.0.0 || >= 3.1.0

Dependency of browser-sync [dev]

Path browser-sync > localtunnel > debug

More info https://nodesecurity.io/advisories/534

Low Prototype Pollution

Package lodash

Patched in >=4.17.5

Dependency of gulp-replace-task [dev]

Path gulp-replace-task > applause > lodash

More info https://nodesecurity.io/advisories/577

found 6 vulnerabilities (4 low, 1 high, 1 critical) in 17616 scanned packages
6 vulnerabilities require manual review. See the full report for details.

  1. npm start时的显示:

Hexo Editor is listening at port:2048.
(node:11728) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.
Hexo init success.

ctrl+c后显示:
npm ERR! code ELIFECYCLE
npm ERR! errno 3221225786
npm ERR! [email protected] start: node server.js
npm ERR! Exit status 3221225786
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional lging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2018-09-30T11_03_3218Z-debug.log

随便提一下,我的博客是zhuochi.org。本人正在读高中,不懂前端,也不会编程…

博客在二级目录的时候生成路径异常

我的博客是放在网站的二级目录
在hexo的配置文件中是这样设置的

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://www.abc.com
root: /blog/
permalink: posts/:title/
permalink_defaults:

直接使用hexo g命令来生成的时候目录是对的,都能指向正确的地址
比如文章地址是 https://www.abc.com/blog/posts/helloworld

但是在 hexo editor 中点击 generate 按钮来生成的时候
输出文件的指向都变成根目录了
即文章地址指向了 https://www.abc.com/posts/helloworld

这是我的 hexo editor 的配置文件,看看是不是哪里设置错了?

# access the hexo editor directly
local: false

# the username to login hexo editor
username: abc

# the password for logining hexo editor
password: abcabcabcabc

# the blog directory
base_dir: /usr/hexo/blog

# port
port: 2048

使用的疑问和一些小bug

您好,项目非常棒。我想要请教几个问题。

  1. 这是一个单独的项目,如何作为hexo的后台? 没有找到如何发布文章到hexo搭建的博客上。目前我使用的仅是可以当作一个网页编辑markdown。

  2. 点击文章界面其他地方,会删除一个字段,或者有时候会选择一段文字。

期待你的回复
谢谢
wizzie

Add support for other files and folders

I notice that the editor just enable to edit posts, drafts and trash files.
Sometimes in the hexo websites, the project can have another folders specific to other pages. Or just for organization purpose.

This feature would allow the management of those files in the hexo-editor. For simplification purpose I believe the format of the files inside of the other folders would be the same as drafts/posts.

0 files generated

When I added one new *.md file in the directory: ./docs/source/_posts (configured in _config.yml as the blog's root directory ./docs) and then click on the generate button at the right-top corner of the page, I found there no files generated (via the console at the server - centos). The outputs of Hexo-editor at the server are listed below:

GET /editor/stash?workspace=posts&id=c007e9130ac9fbe19db37143c5174c06 200 5.411 ms - 23
INFO Start processing
INFO Files loaded in 23 ms
INFO 0 files generated in 803 μs
GET /generate 304 26.476 ms - -

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.