tajpure / hexo-editor Goto Github PK
View Code? Open in Web Editor NEWAn editor for hexo blog.
An editor for hexo blog.
能自动生成标题的英文.html吗?
Hello,
Custom meta field`s
toc
thumbnail
author
how to add?
就像github这种, 直接在这个界面ctrl+v就能粘贴QQ截图的图片
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?
在线编辑时,使用中文输入法,拼音也会被带入编辑内容中,
例如要输入 “测试中文输入法 ”
页面显示效果为
ceshi测试zhongwen测试中文shurufa测试中文输入法
我想应该是自动保存的逻辑监听了keup吧?
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
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
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
nodejs 12.10.0 不能正常运行
已解决
请问如何添加多个标签在一篇文章,若没有该功能是否后续可以加入此功能
我看了你的base_dir的设置后,不太了解如果文章里面带图片,我怎么发布出去呢
**大陆网络安装失败,安装需要翻墙
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
--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.
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。本人正在读高中,不懂前端,也不会编程…
RT
我的博客是放在网站的二级目录
在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
每次使用hexo-editor部署文章后,自动备份博客源文件到git上
https://notes.wanghao.work/2015-07-06-%E8%87%AA%E5%8A%A8%E5%A4%87%E4%BB%BDHexo%E5%8D%9A%E5%AE%A2%E6%BA%90%E6%96%87%E4%BB%B6.html
您好,项目非常棒。我想要请教几个问题。
这是一个单独的项目,如何作为hexo的后台? 没有找到如何发布文章到hexo搭建的博客上。目前我使用的仅是可以当作一个网页编辑markdown。
点击文章界面其他地方,会删除一个字段,或者有时候会选择一段文字。
期待你的回复
谢谢
wizzie
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.
It would be possible to remove the Redis dependency? I believe the local cache feature would quite easy to develop. using for example Set: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
Also if possible make it configuration based
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 - -
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.