Commit graph

7994 commits

Author SHA1 Message Date
Richard Hansen
8d5fdd7dc9 chat: Move chat message handling to handleMessage hook 2022-05-06 20:42:18 -04:00
Richard Hansen
a177a622c4 chat: Move chat-specific pad HTML to eejsBlock_* hook functions 2022-05-06 20:41:23 -04:00
Richard Hansen
e0f28cfe86 chat: Move cookie pref handling to chat init in chat.js
It's unclear why this logic was previously triggered by connection
state changes, but it doesn't make sense for it to be there.
2022-05-06 20:41:13 -04:00
Richard Hansen
a5c729af32 chat: Move chat init to chat.js 2022-05-06 02:54:34 -04:00
Richard Hansen
8d3a6e5ef9 chat: Move chat message handling to chat.js 2022-05-06 02:54:34 -04:00
Richard Hansen
870191f622 chat: Move Alt-C handling to chat.js 2022-05-06 02:54:34 -04:00
Richard Hansen
92cd1feb8a chat: Fix blur and focus in Alt-C shortcut handler 2022-05-06 02:54:34 -04:00
Richard Hansen
59848efc9b chat: Delete non-functional Alt-C shortcut handler 2022-05-06 02:54:34 -04:00
Richard Hansen
a1388b7876 chat: Move chat-specific option processing to chat.js 2022-05-06 02:54:34 -04:00
Richard Hansen
1cbba4ea3a chat: New hide method to completely hide chat 2022-05-06 02:54:34 -04:00
Richard Hansen
8ae5f25075 chat: Make sure the icon is visible when minimizing 2022-05-06 02:54:34 -04:00
Richard Hansen
b830ed9744 chat: Rename hide method to reduce
It doesn't hide: If sticky, it unsticks. Otherwise, it minimizes.
2022-05-06 02:54:34 -04:00
Richard Hansen
f7d7d89874 chat: Move click handlers to chat.js 2022-05-06 02:54:34 -04:00
Richard Hansen
7b7b085a1c tests: chat API: Move test setup to before() 2022-05-06 02:54:34 -04:00
Richard Hansen
92d70e5ead tests: chat API: Delete unnecessary describe() calls 2022-05-06 02:54:34 -04:00
Richard Hansen
cb02253e62 tests: chat API: Reorder assertions
* There's no point in asserting that the Content-Type type is JSON
    if it didn't return 200.
  * There's no point in asserting JSON body properties if the
    Content-Type isn't JSON.
  * There's no point in asserting data properties if it returned an
    error code.
2022-05-06 02:54:34 -04:00
Richard Hansen
3146d6758b tests: chat API: Use assert library 2022-05-06 02:54:34 -04:00
Richard Hansen
5603e6b94e tests: chat API: Promisify 2022-05-06 02:54:34 -04:00
Richard Hansen
33c46cb002 tests: chat: Wait for message ack 2022-05-06 02:54:34 -04:00
Richard Hansen
8d062b254e tests: chat: Consolidate all frontend chat tests 2022-05-06 02:54:34 -04:00
Richard Hansen
16f84ba3d3 plugins: Move plugin logging to plugins.update() 2022-05-06 02:54:34 -04:00
Richard Hansen
595697bc8a plugins: Don't tell clients about server-side hooks 2022-05-06 02:54:34 -04:00
Richard Hansen
5fe5a87c85 collab_client: Pass raw message to handleClientMessage_* hooks 2022-05-06 02:54:34 -04:00
Richard Hansen
9b7108d730 PadMessageHandler: Delete unnecessary variables
to improve readability.
2022-05-06 02:54:34 -04:00
Richard Hansen
fec1bc0d4a css: Fix class name typo 2022-05-06 02:54:34 -04:00
Richard Hansen
cae949afc6 lint: Fix indentation and formatting in pad.html 2022-05-06 02:54:34 -04:00
Richard Hansen
7e2472cef7 Move tar.json into JavaScript
This makes it possible to add comments and conditional logic.
2022-05-06 02:54:34 -04:00
Richard Hansen
f812e53dc9 API: Add missing await
This isn't strictly necessary, but it improves readability.
2022-05-06 02:54:34 -04:00
Richard Hansen
2facf3a0c5 ExportEtherpad: New importEtherpad, exportEtherpad hooks 2022-05-06 02:54:34 -04:00
Richard Hansen
44fd70491d ImportEtherpad: Batch database writes 2022-05-05 20:49:52 -04:00
Richard Hansen
c1652fd695 ImportEtherpad: Process records in batches
This enables ueberdb to combine multiple queries into a single message
to the database backend.
2022-05-05 20:49:52 -04:00
Richard Hansen
10117bc988 ImportEtherpad: Use a real ueberdb object for the temp Pad
Now plugin authors have access to the full set of DB operations.
2022-05-05 20:49:52 -04:00
Richard Hansen
6a183db850 ExportEtherpad: Parallelize record reads 2022-05-05 19:33:21 -04:00
Richard Hansen
88c0ab8255 ExportEtherpad: Support custom subkeys 2022-05-05 19:33:21 -04:00
Richard Hansen
4b2e2dd9f2 tests: Add tests for exportEtherpadAdditionalContent hook 2022-05-05 19:33:21 -04:00
Richard Hansen
78b44daaa8 ExportEtherpad: Fix exportEtherpadAdditionalContent hook docs
When exporting, only records like `comments:padId` are supported, not
records like `comments:padId:foo`.
2022-05-05 19:33:21 -04:00
Richard Hansen
936185e3b6 ExportEtherpad: Use Pad API to collect data 2022-05-05 19:33:21 -04:00
Richard Hansen
4a6e77839e ExportEtherpad: Process pad record separately
to improve readability.
2022-05-05 19:33:21 -04:00
Richard Hansen
56a60a34fb ExportEtherpad: Simplify attribute pool iteration 2022-05-05 19:33:21 -04:00
Richard Hansen
3004bc1583 ExportEtherpad: Invert conditions to improve readability
Also delete unnecessary comments.
2022-05-05 19:33:21 -04:00
Richard Hansen
b82ccb76df Merge branch 'master' into develop 2022-05-05 18:53:03 -04:00
Richard Hansen
4b96ff6e02 Release v1.8.18 2022-05-05 18:44:03 -04:00
Richard Hansen
10206d9e25 DB: Clean up database initialization 2022-05-05 05:18:53 -04:00
Richard Hansen
f22fb13d89 deps: Bump ueberdb2 to 2.2.4 2022-05-05 05:18:53 -04:00
dependabot[bot]
3030f9a417
build(deps): bump ejs from 3.1.6 to 3.1.7 in /src
Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.7.
- [Release notes](https://github.com/mde/ejs/releases)
- [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mde/ejs/compare/v3.1.6...v3.1.7)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 01:31:58 +00:00
dependabot[bot]
0adc027e25 build(deps): bump github/codeql-action from 1 to 2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 21:30:46 -04:00
dependabot[bot]
6362a625eb build(deps): bump express-rate-limit from 6.3.0 to 6.4.0 in /src
Bumps [express-rate-limit](https://github.com/nfriedly/express-rate-limit) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/nfriedly/express-rate-limit/releases)
- [Changelog](https://github.com/nfriedly/express-rate-limit/blob/master/changelog.md)
- [Commits](https://github.com/nfriedly/express-rate-limit/compare/v6.3.0...v6.4.0)

---
updated-dependencies:
- dependency-name: express-rate-limit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 21:30:22 -04:00
Naveen
77e036e8d3 chore(deps): Included dependency review
> Dependency Review GitHub Action in your repository to enforce dependency reviews on your pull requests.
> The action scans for vulnerable versions of dependencies introduced by package version changes in pull requests,
> and warns you about the associated security vulnerabilities.
> This gives you better visibility of what's changing in a pull request,
> and helps prevent vulnerabilities being added to your repository.

https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
2022-05-02 21:27:57 -04:00
dependabot[bot]
ddb1397ebf
build(deps): bump underscore from 1.13.2 to 1.13.3 in /src
Bumps [underscore](https://github.com/jashkenas/underscore) from 1.13.2 to 1.13.3.
- [Release notes](https://github.com/jashkenas/underscore/releases)
- [Commits](https://github.com/jashkenas/underscore/compare/1.13.2...1.13.3)

---
updated-dependencies:
- dependency-name: underscore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 01:25:05 +00:00
Richard Hansen
9b87007278 lint: Bump ESLint dependencies 2022-05-02 21:16:24 -04:00