1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Server v2.14.2

This commit is contained in:
Laurent Cozic 2024-01-18 17:23:51 +00:00
parent be949390f8
commit 47a49fd5de
4 changed files with 58 additions and 1 deletions

View File

@ -0,0 +1,12 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const setupVim = (CodeMirror) => {
CodeMirror.Vim.defineAction('swapLineDown', CodeMirror.commands.swapLineDown);
CodeMirror.Vim.mapCommand('<A-j>', 'action', 'swapLineDown', {}, { context: 'normal', isEdit: true });
CodeMirror.Vim.defineAction('swapLineUp', CodeMirror.commands.swapLineUp);
CodeMirror.Vim.mapCommand('<A-k>', 'action', 'swapLineUp', {}, { context: 'normal', isEdit: true });
CodeMirror.Vim.defineAction('insertListElement', CodeMirror.commands.vimInsertListElement);
CodeMirror.Vim.mapCommand('o', 'action', 'insertListElement', { after: true }, { context: 'normal', isEdit: true, interlaceInsertRepeat: true });
};
exports.default = setupVim;
// # sourceMappingURL=setupVim.js.map

View File

@ -0,0 +1,37 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
exports.toForwardSlashes = exports.fileExtension = exports.filename = exports.basename = exports.dirname = void 0;
function dirname(path) {
if (!path) { throw new Error('Path is empty'); }
const s = path.split(/\/|\\/);
s.pop();
return s.join('/');
}
exports.dirname = dirname;
function basename(path) {
if (!path) { throw new Error('Path is empty'); }
const s = path.split(/\/|\\/);
return s[s.length - 1];
}
exports.basename = basename;
function filename(path, includeDir = false) {
if (!path) { throw new Error('Path is empty'); }
const output = includeDir ? path : basename(path);
if (output.indexOf('.') < 0) { return output; }
const splitted = output.split('.');
splitted.pop();
return splitted.join('.');
}
exports.filename = filename;
function fileExtension(path) {
if (!path) { throw new Error('Path is empty'); }
const output = path.split('.');
if (output.length <= 1) { return ''; }
return output[output.length - 1];
}
exports.fileExtension = fileExtension;
function toForwardSlashes(path) {
return path.replace(/\\/g, '/');
}
exports.toForwardSlashes = toForwardSlashes;
// # sourceMappingURL=pathUtils.js.map

View File

@ -1,6 +1,6 @@
{
"name": "@joplin/server",
"version": "2.14.1",
"version": "2.14.2",
"private": true,
"scripts": {
"start-dev": "yarn run build && JOPLIN_IS_TESTING=1 nodemon --config nodemon.json --ext ts,js,mustache,css,tsx dist/app.js --env dev",

View File

@ -1,5 +1,13 @@
# Joplin Server Changelog
## [server-v2.14.2](https://github.com/laurent22/joplin/releases/tag/server-v2.14.2) - 2024-01-18T17:22:42Z
- Improved: Check Postgres required version before starting the server (#9695)
- Improved: Display correct date and time on published notes (f38abc5)
- Improved: Optimise synchronisation by making delta call return whole items (5341501)
- Improved: Revert to Formidable v2 to avoid random crashes (be94939)
- Improved: Updated packages fs-extra (v11.2.0), knex (v3.1.0), ldapts (v7.0.7), rate-limiter-flexible (v3.0.6), react, sharp (v0.33.1), style-to-js (v1.1.10), tesseract.js (v5.0.3)
## [server-v2.14.1](https://github.com/laurent22/joplin/releases/tag/server-v2.14.1) - 2023-12-17T15:07:52Z
- Improved: Support including items with delta call to optimise sync (67a6870)