mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
Recovery tariling spaces
This commit is contained in:
parent
f8e5b54767
commit
c21fb8e2a0
2 changed files with 11 additions and 11 deletions
18
README.md
18
README.md
|
@ -3,8 +3,8 @@ HackMD
|
||||||
|
|
||||||
[![Join the chat at https://gitter.im/hackmdio/hackmd](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hackmdio/hackmd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
[![Join the chat at https://gitter.im/hackmdio/hackmd](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hackmdio/hackmd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||||
|
|
||||||
HackMD lets you create realtime collaborative markdown notes on all platforms.
|
HackMD lets you create realtime collaborative markdown notes on all platforms.
|
||||||
Inspired by Hackpad, with more focus on speed and flexibility.
|
Inspired by Hackpad, with more focus on speed and flexibility.
|
||||||
Still in the early stage, feel free to fork or contribute to HackMD.
|
Still in the early stage, feel free to fork or contribute to HackMD.
|
||||||
|
|
||||||
Thanks for using! :smile:
|
Thanks for using! :smile:
|
||||||
|
@ -12,7 +12,7 @@ Thanks for using! :smile:
|
||||||
[docker-hackmd](https://github.com/hackmdio/docker-hackmd)
|
[docker-hackmd](https://github.com/hackmdio/docker-hackmd)
|
||||||
---
|
---
|
||||||
|
|
||||||
Before you go too far, here is the great docker repo for HackMD.
|
Before you go too far, here is the great docker repo for HackMD.
|
||||||
With docker, you can deploy a server in minutes without any downtime.
|
With docker, you can deploy a server in minutes without any downtime.
|
||||||
|
|
||||||
Heroku Deployment
|
Heroku Deployment
|
||||||
|
@ -25,14 +25,14 @@ You can quickly setup a sample heroku hackmd application by clicking the button
|
||||||
[migration-to-0.5.0](https://github.com/hackmdio/migration-to-0.5.0)
|
[migration-to-0.5.0](https://github.com/hackmdio/migration-to-0.5.0)
|
||||||
---
|
---
|
||||||
|
|
||||||
We don't use LZString to compress socket.io data and DB data after version 0.5.0.
|
We don't use LZString to compress socket.io data and DB data after version 0.5.0.
|
||||||
Please run the migration tool if you're upgrading from the old version.
|
Please run the migration tool if you're upgrading from the old version.
|
||||||
|
|
||||||
[migration-to-0.4.0](https://github.com/hackmdio/migration-to-0.4.0)
|
[migration-to-0.4.0](https://github.com/hackmdio/migration-to-0.4.0)
|
||||||
---
|
---
|
||||||
|
|
||||||
We've dropped MongoDB after version 0.4.0.
|
We've dropped MongoDB after version 0.4.0.
|
||||||
So here is the migration tool for you to transfer the old DB data to the new DB.
|
So here is the migration tool for you to transfer the old DB data to the new DB.
|
||||||
This tool is also used for official service.
|
This tool is also used for official service.
|
||||||
|
|
||||||
Browsers Requirement
|
Browsers Requirement
|
||||||
|
@ -213,9 +213,9 @@ Third-party integration oauth callback urls
|
||||||
Operational Transformation
|
Operational Transformation
|
||||||
---
|
---
|
||||||
|
|
||||||
From 0.3.2, we started supporting operational transformation.
|
From 0.3.2, we started supporting operational transformation.
|
||||||
It makes concurrent editing safe and will not break up other users' operations.
|
It makes concurrent editing safe and will not break up other users' operations.
|
||||||
Additionally, now can show other clients' selections.
|
Additionally, now can show other clients' selections.
|
||||||
See more at [http://operational-transformation.github.io/](http://operational-transformation.github.io/)
|
See more at [http://operational-transformation.github.io/](http://operational-transformation.github.io/)
|
||||||
|
|
||||||
**License under MIT.**
|
**License under MIT.**
|
||||||
|
|
|
@ -161,7 +161,7 @@ function showNote(req, res, next) {
|
||||||
findNote(req, res, function (note) {
|
findNote(req, res, function (note) {
|
||||||
// force to use note id
|
// force to use note id
|
||||||
var noteId = req.params.noteId;
|
var noteId = req.params.noteId;
|
||||||
var id = LZString.compressToBase64(note.id);
|
var id = LZString.compressToBase64(note.id);
|
||||||
if ((note.alias && noteId != note.alias) || (!note.alias && noteId != id))
|
if ((note.alias && noteId != note.alias) || (!note.alias && noteId != id))
|
||||||
return res.redirect(config.serverurl + "/" + (note.alias || id));
|
return res.redirect(config.serverurl + "/" + (note.alias || id));
|
||||||
return responseHackMD(res, note);
|
return responseHackMD(res, note);
|
||||||
|
@ -413,7 +413,7 @@ function publishSlideActions(req, res, next) {
|
||||||
res.redirect(config.serverurl + '/' + (note.alias ? note.alias : LZString.compressToBase64(note.id)));
|
res.redirect(config.serverurl + '/' + (note.alias ? note.alias : LZString.compressToBase64(note.id)));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
res.redirect(config.serverurl + '/p/' + note.shortid);
|
res.redirect(config.serverurl + '/p/' + note.shortid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue