Robert Schäfer
290a176407
refactor(backend): types for global config ( #8485 )
...
* refactor(backend): types for global config
I saw merge conflicts in these files for #8463 so let's get some parts of this PR into `master` already.
I believe this fixes a small bug. They guard clause didn't ensure that all of REDIS_ configurations were set.
* remove old email mechanism
* refactor(backend: react to @ulfgebhardt 's review
See: https://github.com/Ocelot-Social-Community/Ocelot-Social/pull/8485#pullrequestreview-2813528327
* build(backend): optional commit
@ulfgebhardt this is how I tested the configurations. We don't need to include this commit but I wouldn't expect to send out real emails from a `docker-compose` setup.
---------
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2025-05-07 15:57:35 +02:00
c69cef47a1
refactor(backend): refactor context ( #8434 )
...
* type for neo4j and neode
* fix build
* remove flakyness
* wait for neode to install schema
* remove flakyness
* explain why we wait for a non-promise
* refactor context
missing change
missing change
* adjust test setup
proper cleanup after test
* lint fixes
* fix failing test to use new context
2025-05-03 09:43:08 +00:00
d4cc843662
lint n/no-sync ( #8405 )
2025-04-24 19:50:13 +00:00
b464a380ca
refactor(backend): lint @typescript-eslint/recommended-requiring-type-checking ( #8407 )
...
* lint @typescript-eslint/recommended
* lint @typescript-eslint/recommended-requiring-type-checking
fix type not detected locally due to wierd uuid typings
missing save
error not reported locally
---------
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-04-21 10:32:44 +00:00
53f3a4e2e6
lint @typescript-eslint/recommended ( #8406 )
...
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-04-21 12:01:53 +02:00
mahula
7d9b0e6437
refactor(backend): set up smtp pooling for nodemailer ( #8167 )
...
* backend: active SMTP pooling in Nodemailer configuration
* backend: add max SMTPconnections and messages to Nodemailer configuration
* move transport outside function to ensure pooling can work
---------
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-04-12 12:59:56 +02:00
ab6fe37c3e
refactor(backend): new chat message notification email ( #8357 )
...
* new chat message notification email
- new mail features name in subject and text
* fix english version
* typo
* fix typos
* adjust tests
2025-04-10 16:38:51 +00:00
f782032563
refactor(backend): lint - import/order ( #8350 )
...
* lint - import/no-relative-parent-imports
fix build error
* fix md
* lint import/order
enabled rule import/order and fixed impot order in each file
2025-04-09 09:44:48 +02:00
a4f391930c
lint - import/no-relative-parent-imports ( #8349 )
...
enable import/no-relative-parent-imports
2025-04-08 23:18:07 +02:00
59c145c1f9
lint plugin n - update and cleanup ( #8342 )
...
- Update plugin n to fix a deprecation warning
- Order n rules according to docu
- use n:recommended
- comment out all rules from recommened
- enable some rules
2025-04-08 08:35:49 +00:00
d6cb9b51c3
feat(backend): lint rules ( #8339 )
...
* eslint import
* eslint comments
* eslint security
* eslint import - rules
* eslint n
* eslint promise
* eslint no-catch-all
* eslint jest
* missing ignore
* disable import/unambiguous as conflicting
2025-04-07 10:53:44 +00:00
2eaaa7af39
feat(backend): chat notify via email ( #8314 )
...
* client
* backend
* tests
* also save awaySince timestamp
* remove console.log
* chat notification logic
* send notification mails for chat messages
* externalize online check, resolver resover first
* prevent email notifications for blocked users
comment
* respect user email notification settings
* properly handle null case for email destructuring
* tests
* corrected mail style
---------
Co-authored-by: mahula <lenzmath@posteo.de>
2025-04-07 12:23:36 +02:00
mahula
7ef2c474b2
add package linkify-html to backend
2024-04-18 20:04:21 +02:00
mahula
b735824967
use dedicated linkifyjs packages according to package update
2024-04-18 19:01:05 +02:00
Wolfgang Huß
cd206c238a
Cleanup
2023-08-21 13:44:29 +02:00
Wolfgang Huß
28665bd175
Refine DKIM config for Nodemailer
2023-08-21 12:33:39 +02:00
Wolfgang Huß
be4d34228d
Implement DKIM config for Nodemailer
2023-08-17 17:26:59 +02:00
Markus
0bc19cf226
[fix] added usertag as allowed html tags, so user highlighting works for the chat
2023-07-19 10:15:56 +02:00
c436cb52b1
corrected file endings or removed them where possible
2023-06-12 14:26:52 +02:00
b1c3559806
middleware
2023-06-12 14:07:12 +02:00
ebddfa7df4
all files as .ts
2023-06-12 13:25:21 +02:00
Moriz Wahl
7b3d530023
close neo4j driver at the end of each test suite
2023-02-13 15:31:58 +01:00
Wolfgang Huß
117bd5e4e6
Implement error for to short 'description' and test it
2022-08-09 16:34:50 +02:00
Wolfgang Huß
b08bd14d80
Refine logging text for unsend e-mails
2022-06-28 09:44:50 +02:00
Wolfgang Huß
5dd969c372
Fix forgotten parameter 'key' in 'cleanHtml'
2022-06-28 09:39:54 +02:00
Wolfgang Huß
f92cec3749
Log e-mail if not sending it
2022-06-24 10:04:35 +02:00
Wolfgang Huß
5cd1b95907
Fix templates 'variables' argument
2022-06-23 15:51:36 +02:00
Wolfgang Huß
78eb0fa97d
Refine test for e-mail templateBuilder
2022-05-06 07:47:43 +02:00
Wolfgang Huß
a4df55072a
Clean up
2021-11-22 13:10:10 +01:00
Wolfgang Huß
0acd7f6501
Remove 'wolle' from e-mail, because to many wolles in the code
2021-11-22 12:48:56 +01:00
Wolfgang Huß
36b621ca5b
Add remaining templates
2021-11-18 16:15:04 +01:00
Wolfgang Huß
8e1fda5e90
Refactor function testEmailData using an extendable array of tested strings
2021-11-18 14:29:53 +01:00
Wolfgang Huß
7b0209b484
Test e-mail templates, finish signupTemplate
2021-11-18 09:37:37 +01:00
Wolfgang Huß
ce5161f937
Test e-mail templates, remain files, first step
2021-11-18 08:53:31 +01:00
Wolfgang Huß
6f4acaef61
Test e-mail templates, just test file, first step
2021-11-18 08:53:01 +01:00
Wolfgang Huß
0856cf17d4
Use 'renderParams' in all e-mail templates
2021-11-18 08:47:42 +01:00
Wolfgang Huß
8444b5e9d1
Change notification e-mails settings page link
...
Co-Authored-By: Letícia Leal Moreira <lealmleticia@gmail.com>
2021-10-20 12:41:05 +02:00
Wolfgang Huß
a836872471
Cleanup
2021-09-27 12:36:58 +02:00
Wolfgang Huß
550a06e6fa
Add text and link to the e-mail content to change e-mail notification settings
2021-09-23 14:41:39 +02:00
Wolfgang Huß
a87cc524a6
Translate e-mail subject
2021-09-23 14:04:58 +02:00
Wolfgang Huß
7ae5593f82
Implement user notifications settings
2021-09-22 14:05:10 +02:00
Wolfgang Huß
f3bf730a12
Refine translated e-mail templates
2021-08-11 14:46:59 +02:00
Wolfgang Huß
7e72a0bf03
Implement sending of first translated templates
2021-08-11 10:29:19 +02:00
Wolfgang Huß
5dfa6913c3
Refactor 'sendMail' to a general helper
2021-08-11 07:48:49 +02:00