Commit Graph

7277 Commits (fix-adminupdateplugins)

Author SHA1 Message Date
webzwo0i e4c9731441 adminsettings test: Use MutationObserver to detect if a saveProgress
event was received, which will trigger an animation.

Before this, `helper.admin$('#response').is(':visible')` was true after
the page loaded and before clicking the Save button, so there was a
possibility that after clicking Save, but before sending the socketio
message to the server, the visibility is checked and returns true, so
the page gets reloaded before the changed settings have been saved.
2021-07-19 21:42:38 +02:00
webzwo0i ef829960ca adminupdateplugins test: swap assertions, increase timeout 2021-07-19 07:39:49 +02:00
webzwo0i 8eb5afa283 admin tests: settings.json is allowed to be larger than maxHttpBufferSize 2021-07-19 04:06:40 +02:00
webzwo0i da804f0142 adminsettings test: Refactoring. We cannot guarantee that the system time on
SauceLabs and Github is in sync. In case the SauceLabs runner's clock is slow the test would have failed.

Also be a little stricter for other assertions.
2021-07-19 04:02:26 +02:00
webzwo0i c228283c17 frontend tests: add helper.logDebugMsg function to help get information from tests that do not have support for console.json on SauceLabs 2021-07-19 03:50:00 +02:00
Xavier Mehrenberger ca4cc2d7c0 Fix settings.useMonospaceFontGlobal
When settings.useMonospaceFontGlobal is set to `true`, it sets the default
font to 'monospace'. This font seems to have been removed in
a5164dad43.

This commit sets the default font to "RobotoMono" which is a valid
option.

Tested in a Docker environment, setting `PAD_OPTIONS_USE_MONOSPACE_FONT`
to `true`

Signed-off-by: Xavier Mehrenberger <xavier.mehrenberger@gmail.com>
2021-07-14 04:33:38 -04:00
Richard Hansen 336d48add7 Add support for square brackets in URLs
This reverts commit 9022877cc6.
2021-07-10 22:22:31 -04:00
Richard Hansen 09f8ffbdb6 deps: Bump ueberdb2 to 1.4.11 2021-07-10 18:26:31 -04:00
Richard Hansen 5f39a1ee7f CSS: Underline links in error dialogs
Underlining was removed for unknown reasons by commit
d872b42e31.
2021-07-09 18:43:13 -04:00
webzwo0i bb3bb2c12a Merge branch 'master' into develop 2021-07-04 07:05:36 +02:00
webzwo0i 571b37b772 Merge branch 'develop' 2021-07-04 07:05:35 +02:00
webzwo0i a634bd8ee1 bump version 2021-07-04 07:05:34 +02:00
webzwo0i f55ccd2cdd changelog 1.8.14 2021-07-04 07:01:07 +02:00
jon r bb7ece7d7e doc/docker.md - add sqlite to DB_FILENAME
The configuration option `DB_FILENAME` is also used in conjunction with the `sqlite` ueberdb2 adapter.
2021-07-02 16:39:17 -04:00
webzwo0i b475296cee stop closing feature requests by stale bot 2021-07-02 14:07:29 -04:00
translatewiki.net 197e04ecd7 Localisation updates from https://translatewiki.net. 2021-07-01 13:42:31 +02:00
Richard Hansen 3d40ab7e8c CSS: Move author color padding to `setAuthorStyle()`
This prevents the padding from clashing with plugins that use the
`aceSetAuthorStyle` hook.
2021-06-22 14:43:22 -04:00
translatewiki.net 2745557127 Localisation updates from https://translatewiki.net. 2021-06-21 12:28:27 +02:00
Richard Hansen f8a9cd4bad docs: Revise `clientVars` documentation 2021-06-18 22:22:56 -04:00
Richard Hansen 2e2cb38225 Docker: Install `git` and `ca-certificates` packages
This makes it possible to install plugins from Git repositories.
2021-06-18 17:50:44 -04:00
Richard Hansen 2a367f6171 Docker: Pass `--no-install-recommends` to `apt-get intall` 2021-06-18 17:50:44 -04:00
Richard Hansen d4e201b1b0 Docker: Set `DEBIAN_FRONTEND=noninteractive` when running `apt-get` 2021-06-18 17:50:44 -04:00
Richard Hansen e108161f60 Docker: Use `apt-get` instead of `apt`
This silences the following warning:

> WARNING: apt does not have a stable CLI interface. Use with caution
> in scripts.
2021-06-18 17:50:44 -04:00
Richard Hansen b9e495e228 Docker: Combine `abiword` and `libreoffice` install steps
This avoids multiple `apt update` runs if both are to be installed,
and it will make it easier to add more packages in the future.
2021-06-18 17:50:44 -04:00
Richard Hansen e9785f37ee Docker: Install plugins before core deps 2021-06-18 17:50:44 -04:00
Richard Hansen 5946244bef Docker: Nuke all of `~/.npm` after installing packages 2021-06-18 17:50:44 -04:00
Richard Hansen aeb56dd594 Docker: Don't create `package-lock.json` when installing plugins 2021-06-18 17:50:44 -04:00
Richard Hansen 9fcd86b3cd Pad: Fix `<script>` elements in `aceInitInnerdocbodyHead` hook
Using `.innerHTML` to create a `<script>` element does create a DOM
node, but the script is not actually executed. Fortunately, creating a
DocumentFragment does cause the script to execute.
2021-06-18 17:50:15 -04:00
Richard Hansen 7bdd0f2f09 bin/updatePlugins.sh: Many refinements
* cd to top-level Etherpad directory is now more robust.
  * Only attempt to update packages whose names begin with `ep_`.
  * Don't create `package-lock.json`.
  * Improve logging.
  * Improve error handling.
2021-06-18 04:34:37 -04:00
Richard Hansen 4b3e47bd23 bin/importSqlFile.js: Read the file one line at a time
This avoids running out of memory if the file is large.
2021-06-17 19:45:17 -04:00
webzwo0i 485538bd79 bump wtfnode to fix #5078 2021-06-17 06:14:45 +02:00
Richard Hansen 251cc7ab32 CSS: Fix button icon centering 2021-06-16 18:27:52 -04:00
Richard Hansen 53cca5a743 PadMessageHandler: Also send `USER_NEWINFO` messages on reconnect
Now the user list is correct after a reconnect. This also allows
ep_webrtc to automatically recover after a temporary network glitch.
2021-06-16 01:35:25 -04:00
Richard Hansen 7ca336c28e lint: Update eslint-config-etherpad and friends 2021-06-14 23:17:17 +02:00
Richard Hansen 44343e5c5e tests: Replace Node.js v15 with v16 2021-06-14 23:17:17 +02:00
Richard Hansen ef1ba21104 deps: Drop support for Node.js < 12.13.0 2021-06-14 23:17:17 +02:00
webzwo0i 66ee9c5ef9 update package-lock 2021-06-14 13:21:48 -04:00
Richard Hansen 5dcb7a7549 tests: Don't attempt to wrap non-functions 2021-06-14 13:45:13 +02:00
Richard Hansen 081b97c41d tests: Wrap more Mocha functions 2021-06-14 13:45:13 +02:00
Richard Hansen 3e4df68510 tests: Enable fake webcam on Microsoft Edge 2021-06-10 15:36:35 -04:00
Richard Hansen 565b1c5271 tests: Fix flexbox grow/shrink factors
* Make sure the `#mocha-report` div grows to fill the available
    vertical space.
  * Prevent the "Loading frontend test specs..." div from shrinking.
2021-06-10 13:28:55 -04:00
Richard Hansen acd11c3948 tests: Fetch frontend test specs in parallel 2021-06-09 20:28:03 -04:00
Richard Hansen 36d2af5318 tests: Display frontend spec loading progress 2021-06-09 20:18:22 -04:00
Richard Hansen e0ae997501 tests: Don't auto-scroll Mocha results if user scrolls up 2021-06-09 18:48:31 -04:00
Richard Hansen f5046f4b18 tests: Keep the `#mocha-stats` div visible 2021-06-09 18:48:31 -04:00
snyk-bot ea4500ef64
fix: upgrade express-session from 1.17.1 to 1.17.2
Snyk has created this PR to upgrade express-session from 1.17.1 to 1.17.2.

See this package in npm:
https://www.npmjs.com/package/express-session

See this project in Snyk:
https://app.snyk.io/org/johnmclear/project/d9a12bfb-7ccd-443f-9e22-f30d339cc8c5?utm_source=github&utm_medium=upgrade-pr
2021-06-09 22:13:02 +00:00
translatewiki.net 28f2acf98a Localisation updates from https://translatewiki.net. 2021-06-07 14:48:08 +02:00
Richard Hansen cccabf45b8 pad: Move error message to the top of the gritter box 2021-06-06 21:31:49 -04:00
Richard Hansen b2e94685fb pad: Display error name in the gritter box 2021-06-06 21:31:40 -04:00
Richard Hansen 63a5dc6599 tests: Configure Firefox to use fake webcam
This makes it possible to test ep_webrtc in Firefox.
2021-06-06 16:53:51 -04:00