Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Dec 11, 2023
2 parents 016f43e + 85c5b91 commit 84ac439
Show file tree
Hide file tree
Showing 24 changed files with 251 additions and 389 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18, 20]
node: [18, 20, 21]
steps:
-
name: Checkout repository
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18, 20]
node: [18, 20, 21]
steps:
-
name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend-admin-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [19, 20]
node: [19, 20, 21]

steps:
-
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
name: Remove standard frontend test files, so only admin tests are run
run: mv src/tests/frontend/specs/* /tmp && mv /tmp/admin*.js src/tests/frontend/specs
-
uses: saucelabs/[email protected].5
uses: saucelabs/[email protected].6
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
sed -e '/^ *"importExportRateLimiting":/,/^ *\}/ s/"max":.*/"max": 100000000/' -i settings.json
-
uses: saucelabs/[email protected].5
uses: saucelabs/[email protected].6
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
name: Remove standard frontend test files, so only plugin tests are run
run: rm src/tests/frontend/specs/*
-
uses: saucelabs/[email protected].5
uses: saucelabs/[email protected].6
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
close-issue-label: wontfix
close-pr-label: wontfix
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-from-latest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18, 20]
node: [18, 20, 21]
steps:
-
name: Check out latest release
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 1.9.5

### Compability changes

* This version deprecates NodeJS16 as it reached its end of life and won't receive any updates. So to get started with Etherpad v1.9.5 you need NodeJS 18 and above.
* The bundled windows NodeJS version has been bumped to the current LTS version 20.

### Notable enhancements and fixes

* The support for the tidy program to tidy up HTML files has been removed. This decision was made because it hasn't been updated for years and also caused an incompability when exporting a pad with Abiword.


# 1.9.4

### Compability changes
Expand Down
4 changes: 0 additions & 4 deletions doc/docker.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,6 @@ For the editor container, you can also make it full width by adding `full-width-
| This is the absolute path to the soffice executable. LibreOffice can be used in lieu of Abiword to export pads. Setting it to null disables LibreOffice exporting.
| `null`

| `TIDY_HTML`
| Path to the Tidy executable. Tidy is used to improve the quality of exported pads. Setting it to null disables Tidy.
| `null`

| `ALLOW_UNKNOWN_FILE_ENDS`
| Allow import of file types other than the supported ones: txt, doc, docx, rtf, odt, html & htm
| `true`
Expand Down
8 changes: 0 additions & 8 deletions settings.json.docker
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,6 @@
*/
"soffice": "${SOFFICE:null}",

/*
* Path to the Tidy executable.
*
* Tidy is used to improve the quality of exported pads.
* Setting it to null disables Tidy.
*/
"tidyHtml": "${TIDY_HTML:null}",

/*
* Allow import of file types other than the supported ones:
* txt, doc, docx, rtf, odt, html & htm
Expand Down
8 changes: 0 additions & 8 deletions settings.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,6 @@
*/
"soffice": null,

/*
* Path to the Tidy executable.
*
* Tidy is used to improve the quality of exported pads.
* Setting it to null disables Tidy.
*/
"tidyHtml": null,

/*
* Allow import of file types other than the supported ones:
* txt, doc, docx, rtf, odt, html & htm
Expand Down
2 changes: 1 addition & 1 deletion src/bin/buildForWindows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ try rm -rf node_modules
try mv node_modules_resolved node_modules

log "download windows node..."
try wget "https://nodejs.org/dist/latest-v16.x/win-x64/node.exe" -O node.exe
try wget "https://nodejs.org/dist/latest-v20.x/win-x64/node.exe" -O node.exe

log "create the zip..."
try zip -9 -r "${OUTPUT}" ./*
Expand Down
6 changes: 3 additions & 3 deletions src/bin/doc/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/bin/doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">=12.17.0"
},
"dependencies": {
"marked": "^9.1.2"
"marked": "^11.0.1"
},
"devDependencies": {},
"optionalDependencies": {},
Expand Down
3 changes: 3 additions & 0 deletions src/bin/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ try {
run('git merge --no-ff --no-edit develop');
console.log(`Creating ${newVersion} tag...`);
run(`git tag -s '${newVersion}' -m '${newVersion}'`);
run(`git tag -s 'v${newVersion}' -m 'v${newVersion}'`);
console.log('Switching back to develop...');
run('git checkout develop');
console.log('Merging master into develop...');
Expand All @@ -176,6 +177,8 @@ try {
console.warn(`Deleting ${newVersion} tag...`);
run(`git rev-parse -q --verify refs/tags/'${newVersion}' >/dev/null || exit 0; ` +
`git tag -d '${newVersion}'`);
run(`git rev-parse -q --verify refs/tags/'v${newVersion}' >/dev/null || exit 0; ` +
`git tag -d 'v${newVersion}'`);
throw err;
}

Expand Down
2 changes: 1 addition & 1 deletion src/locales/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"pad.colorpicker.save": "Guardar",
"pad.colorpicker.cancel": "Zarrar",
"pad.loading": "Cargando...",
"pad.noCookie": "Nun pudo alcontrase la cookie. ¡Por favor, permite les cookies nel navegador! La sesión y preferencies nun se guarden ente visites. Esto pué debese a qu'Etherpad inclúyese nun iFrame en dalgunos restoladores. Asegúrate de qu'Etherpad tea nel mesmu subdominiu/dominiu que la iFrame padre",
"pad.noCookie": "Nun pudo alcontrase la cookie. ¡Por favor, permite les cookies nel navegador! La sesión y preferencies nun se guarden ente visites. Esto pue debese a qu'Etherpad inclúyese nun iFrame en dalgunos restoladores. Asegúrate de qu'Etherpad tea nel mesmu subdominiu/dominiu que l'iFrame padre",
"pad.permissionDenied": "Nun tienes permisu pa entrar a esti bloc",
"pad.settings.padSettings": "Configuración del bloc",
"pad.settings.myView": "la mio vista",
Expand Down
21 changes: 21 additions & 0 deletions src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,32 @@
"authors": [
"Aefgh39622",
"Afaz",
"Chqaz",
"Omotecho",
"Shirayuki",
"Torinky"
]
},
"admin.page-title": "管理者ダッシュボード - Etherpad",
"admin_plugins": "プラグインマネージャー",
"admin_plugins.available": "利用可能なプラグイン",
"admin_plugins.available_not-found": "プラグインが見つかりません。",
"admin_plugins.available_fetching": "読み込み中…",
"admin_plugins.available_install.value": "インストール",
"admin_plugins.available_search.placeholder": "インストールするプラグインを検索する",
"admin_plugins.description": "説明",
"admin_plugins.installed": "インストール済みプラグイン",
"admin_plugins.installed_fetching": "インストール済みのプラグインを読み込んでいます…",
"admin_plugins.installed_nothing": "まだプラグインをインストールしていません。",
"admin_plugins.installed_uninstall.value": "アンインストール",
"admin_plugins.last-update": "最終更新",
"admin_plugins.name": "名前",
"admin_plugins.page-title": "プラグインマネージャー - Etherpad",
"admin_plugins.version": "バージョン",
"admin_plugins_info": "トラブルシューティングの情報",
"admin_plugins_info.hooks": "インストール済みフック",
"admin_plugins_info.hooks_client": "クライアント側のフック",
"admin_plugins_info.hooks_server": "サーバー側のフック",
"index.newPad": "新規作成",
"index.createOpenPad": "または作成/編集するパッド名を入力:",
"index.openPad": "次の名称の既存の Pad を開く:",
Expand Down
4 changes: 3 additions & 1 deletion src/locales/mnw.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"@metadata": {
"authors": [
"Aue Nai"
"Aue Nai",
"咽頭べさ"
]
},
"admin_plugins.description": "တၚ်ထမံက်ထ္ၜး",
"index.newPad": "တၞးတၟိ",
"pad.toolbar.bold.title": "လ္စံက် (Ctrl+B)",
"pad.toolbar.italic.title": "ဒစေၚ် (Ctrl+I)",
Expand Down
11 changes: 6 additions & 5 deletions src/locales/sco.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"@metadata": {
"authors": [
"AmaryllisGardener",
"CiphriusKane",
"John Reid",
"Nintendofan885"
]
Expand Down Expand Up @@ -50,7 +51,7 @@
"pad.importExport.exportword": "Microsoft Word",
"pad.importExport.exportpdf": "PDF",
"pad.importExport.exportopen": "ODF (Open Document Format)",
"pad.importExport.abiword.innerHTML": "Ye can yinly import fae plain tex or HTML formats. Fer mair advanced import features please <a href=\"https://github.com/ether/etherpad-lite/wiki/How-to-enable-importing-and-exporting-different-file-formats-in-Ubuntu-or-OpenSuse-or-SLES-with-AbiWord\">install abiword</a>.",
"pad.importExport.abiword.innerHTML": "Ye can anely import fae plain tex or HTML formats. Fur mair advanced import features please <a href=\"https://github.com/ether/etherpad-lite/wiki/How-to-enable-importing-and-exporting-different-file-formats-in-Ubuntu-or-OpenSuse-or-SLES-with-AbiWord\">install abiword</a>.",
"pad.modals.connected": "Connected.",
"pad.modals.reconnecting": "Reconnectin til yer pad..",
"pad.modals.forcereconnect": "Force reconnect",
Expand All @@ -70,13 +71,13 @@
"pad.modals.badChangeset.cause": "This coud be cause o ae wrang server confeeguration or some ither onexpected behavior. Please contact the service admeenistrator, gif ye feel that this is ae mistak. Try tae reconnect in order tae continue editing.",
"pad.modals.corruptPad.explanation": "The pad ye'r trying te access is mingin.",
"pad.modals.corruptPad.cause": "This micht be cause o ae wrang server confeeguration or some ither onexpected behavior. Please contact the service admeenistrater.",
"pad.modals.deleted": "Delytit.",
"pad.modals.deleted": "Deletit.",
"pad.modals.deleted.explanation": "This pad has been hif't.",
"pad.modals.disconnected": "Ye'v been disconnected.",
"pad.modals.disconnected.explanation": "The connection til the server wis loast",
"pad.modals.disconnected.cause": "The server micht be onavailable. Please notify the service admeenistrater gif this continues tae happen.",
"pad.share": "Share this pad",
"pad.share.readonly": "Read yinly",
"pad.share.readonly": "Read anely",
"pad.share.link": "Airtin",
"pad.share.emebdcode": "Embed URL",
"pad.chat": "Chait",
Expand All @@ -91,8 +92,8 @@
"timeslider.version": "Version {{version}}",
"timeslider.saved": "Saved {{day}} {{month}}, {{year}}",
"timeslider.playPause": "Playback / Pause Pad Contents",
"timeslider.backRevision": "Gae back a reveesion in this Pad",
"timeslider.forwardRevision": "Gae forwart a reveesion in this Pad",
"timeslider.backRevision": "Gang back ae revision in this Pad",
"timeslider.forwardRevision": "Gang forrit ae revision in this pad",
"timeslider.dateformat": "{{day}}/{{month}}/{{year}} {{hours}}:{{minutes}}:{{seconds}}",
"timeslider.month.january": "Januair",
"timeslider.month.february": "Febuair",
Expand Down
3 changes: 0 additions & 3 deletions src/node/handler/ExportHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const fs = require('fs');
const settings = require('../utils/Settings');
const os = require('os');
const hooks = require('../../static/js/pluginfw/hooks');
const TidyHtml = require('../utils/TidyHtml');
const util = require('util');
const { checkValidRev } = require('../utils/checkValidRev');

Expand Down Expand Up @@ -93,10 +92,8 @@ exports.doExport = async (req, res, padId, readOnlyId, type) => {
const srcFile = `${tempDirectory}/etherpad_export_${randNum}.html`;
await fsp_writeFile(srcFile, html);

// Tidy up the exported HTML
// ensure html can be collected by the garbage collector
html = null;
await TidyHtml.tidy(srcFile);

// send the convert job to the converter (abiword, libreoffice, ..)
const destFile = `${tempDirectory}/etherpad_export_${randNum}.${type}`;
Expand Down
2 changes: 1 addition & 1 deletion src/node/utils/Cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ for (let i = 0; i < argv.length; i++) {
exports.argv.sessionkey = arg;
}

// Override location of settings.json file
// Override location of APIKEY.txt file
if (prevArg === '--apikey') {
exports.argv.apikey = arg;
}
Expand Down
5 changes: 0 additions & 5 deletions src/node/utils/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,6 @@ exports.abiword = null;
*/
exports.soffice = null;

/**
* The path of the tidy executable
*/
exports.tidyHtml = null;

/**
* Should we support none natively supported file types on import?
*/
Expand Down
43 changes: 0 additions & 43 deletions src/node/utils/TidyHtml.js

This file was deleted.

Loading

0 comments on commit 84ac439

Please sign in to comment.