69 Commits

Author SHA1 Message Date
Robert Schäfer
00da9e8ecb
feat(backend): resize images with imagor (#8558)
* feat(backend): resize images with imagor

Open questions:
* Do we have external URLs for images? E.g. we have them for seeds. But
  in production?

* Do we want to apply image transformations on these as well? My current
implementation does not apply image transformations as of now. If we
want to do that, we will also expose internal URLs in the kubernetes
Cluster to the S3 endpoint to the client.

TODOs:
* The chat component is using a fixed size for all avatars at the moment.
Maybe we can pair-program on this how to implement responsive images in
this component library.

Commits:
* do not replace upload domain url in the database

* fix all webapp specs

* refactor: remove behaviour we won't need

We don't want to apply image transformations on files, right?

* refactor: replace the domain on read not on write

* wip: webapp fixes

* refactor(backend): add another url to config

I've given up. There seems to be no nice way to tell the minio to return
a location which differs from it's host name.

* refactor: add test for s3Service

* refactor(backend): proxy minio via backend in local development

Commits:
* provide tests for message attachments
* remove S3_PUBLIC_URL config value

* refactor: follow @ulfgebhardt's review

* add missing environment variable

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-08-19 10:11:12 +02:00
Moriz Wahl
7de877fef6
fix(webapp): on translation not found must be a function (#8685) 2025-06-16 15:34:05 +00:00
995afaaab5
feat(webapp): default language configurable (#8546)
* make the default and fallback language configurable

* fixes

---------

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-05-12 11:22:31 +00:00
01027e42cc
feat(webapp): track online status (#8312)
* client

* backend

* tests

* also save awaySince timestamp

* remove console.log
2025-04-03 17:19:53 +02:00
entermex
bd688ecd6b Fix: proxyApiUrl in chat rooms for the avatars 2023-08-18 11:43:28 +02:00
ogerly
c8af90f0a6 add chat base-button in header menu 2023-07-05 15:51:55 +02:00
Markus
708c769a3b added chat code as plugin for client rendering 2023-07-04 21:42:14 +02:00
18ccddeaf8
fix translatability of maintenance page 2023-02-24 01:16:59 +01:00
Wolfgang Huß
67d01f8e32 Add mapbox 'MglFullscreenControl' 2023-01-10 11:25:27 +01:00
Wolfgang Huß
bde5002650 Add mapbox controls 2023-01-10 11:06:25 +01:00
9a3f88ca80
lint fix 2023-01-04 13:34:59 +01:00
be41815b1a
working prototype v-mapbox 2023-01-04 13:32:05 +01:00
Wolfgang Huß
0d44d8ae04 Cleanup
- Reduce tooltip delay to 750ms.
2022-09-26 11:42:44 +02:00
Wolfgang Huß
7f397b4669 Set Vue tooltip delay to 1500 ms and remove unneeded properties 2022-09-16 07:05:21 +02:00
Wolfgang Huß
652665d1fb Change naming and negation for better readability 2022-05-06 10:50:38 +02:00
Wolfgang Huß
ac16345def Adjust comment 2022-01-21 21:11:06 +01:00
Wolfgang Huß
8a20b994cf Fix Cypress test 2022-01-21 21:09:01 +01:00
Wolfgang Huß
d0985ca804 Add comment for 'sameSite' cookie option 2022-01-20 18:16:15 +01:00
Wolfgang Huß
33f0459883 Get browser language 2022-01-20 13:31:43 +01:00
Wolfgang Huß
d491c1bad6 Add expiration date and sameSite attribute to lacale cookie 2022-01-19 09:24:27 +01:00
Wolfgang Huß
b266e81727 Add comments to truncate functions 2021-03-29 13:03:59 +02:00
Wolfgang Huß
6f79bba69d Fix truncate via adding 'truncateStr'
- Because the 'truncate' function uses 'trunc-html' which seem not to function anymore like expected what has to be investigated further.
2021-03-29 11:27:27 +02:00
Moriz Wahl
ae61baadfb add plugin vue-observe-visibility 2021-03-01 15:24:38 +01:00
Wolfgang Huß
ac27d6ac96 Resolve WEBSOCKETS_URI config problem
- Value was not overtaken from .env.
2021-02-15 15:42:00 +01:00
Moriz Wahl
43852a5f26 name of cookie is set by metadata.js 2020-12-21 13:41:42 +01:00
Moriz Wahl
5cfb73572e further rebranding 2020-11-16 09:43:15 +01:00
roschaefer
77b031083e Make four static pages
* imprint
* data privacy
* terms of service
* code of conduct
2020-06-15 14:08:45 +02:00
roschaefer
4a910664eb Parameterize entire html of terms+conditions 2020-06-14 17:57:40 +02:00
Raphael Beer
38233da6d0
review: apply suggestions
Co-Authored-By: Alina Beck <alina.beck@mail.com>
2020-04-09 23:01:54 +02:00
Raphael Beer
15d5933821
Change: v-focus directive looking for input +
Searches children and uses first <input> child.
  if target of v-focus is not instanceof HTMLInputElement

  Also, adds vue-directives to storybook and tests
2020-03-25 12:51:38 +01:00
roschaefer
276ea79e8f Update prettier to v2 2020-03-24 21:11:11 +01:00
Robert Schäfer
512ef672bf
feat: Introduce graphql image type (#3043)
* refactor(graphql): Introduce image type

* Undo changes to .travis.yml

* chore: Upgrade travis to node LTS

- URL is available since v10

* chore: use lts

Co-authored-by: mattwr18 <mattwr18@gmail.com>
2020-03-16 15:32:19 +01:00
roschaefer
2e19cf6592 fix(nuxt-env): Configuration issue with websockets
After some intensive debugging I found out that `req` (on the server)
and `nuxtState` (on the client) have access to the configurations
changed at runtime.

How did I debug it:
```
yarn run build
env WEBSOCKET_URI=whatever yarn run start
```
I also put a `console.log` into `plugins/apollo-client.js`.
2020-02-17 23:30:50 +01:00
mattwr18
6cf067937d Clean up
- remove the code for subscriptions to Post as we won't implement this
  at this time... I've created a new branch with the code that can be
built on later
- remove unused subscription path
- add possibility to use websockets uri for production env.
2020-02-05 20:24:23 +01:00
mattwr18
2f43069ea0 Subscribe to notifications/remove polling
- We want to publish when a notification occurs for a specific user, not
  have the client poll the backend for ever user every minute.

- Co-authored-by: @Tirokk <wolle.huss@pjannto.com>
2020-02-05 17:37:38 +01:00
roschaefer
3be5dee08b Draft: Setup subsriptions for backend+frontend
Please clean up this commit and squash it later on.
2020-01-24 17:25:45 +01:00
Alina Beck
a210dd599d Merge branch 'master' into migrate-styleguide-icons 2019-11-20 19:35:03 +03:00
Alina Beck
4347bdd1ed replace require.context babel plugin 2019-11-20 15:12:51 +03:00
Robert Schäfer
f6550b9b00
Merge pull request #2248 from Human-Connection/2240-infinite-scrolling-out-of-control
Fix infinite scrolling out of control
2019-11-15 17:03:31 +01:00
mattwr18
a6c169c2e0 Fix infinite scrolling out of control 2019-11-15 14:35:08 +01:00
roschaefer
db25403429 Fix lint 2019-11-15 11:20:50 +01:00
Alina Beck
2504fff3ba make BaseComponents globally available 2019-11-14 13:56:53 +03:00
Mogge
8728feaa37
fix: Only one ellipse is displayed 2019-10-21 11:33:26 +02:00
roschaefer
b2dccfb51c refactor: improve locale imports
While refactoring the login form component I found many inconsistent
ways of importing the list of locales. So I decided to refactor the
imports altogether. Don't use `process.env` to import locales!
2019-10-15 16:41:33 +02:00
mattwr18
d6ae96f94b Use same npm package as excerptMiddleware in truncate
- We want to remove the html from the count, and trucate just the
content; otherwise, we can have a situation where a person mentions
several people, but only the the first user's name appears, and not a
predetermined number of characters.
2019-09-23 08:47:10 +02:00
Wolfgang Huß
199079cff8 Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1455-fix-update-comment-list 2019-09-12 08:46:36 +02:00
roschaefer
d6b7374ddb Change strategy, only build docker image
I couldnt' get the local build to run with the alternative
`nuxt.config.js`. So I'm building docker only now.
2019-09-11 08:43:26 +02:00
Wolfgang Huß
9f203cda3b Refactor by melting EditCommentForm.vue into CommentForm.vue 2019-09-09 13:06:44 +02:00
roschaefer
c585b23d7a Fix notification queries in webapp 2019-08-30 16:00:32 +02:00
Wolfgang Huß
f653bac9e1 Merge branch 'master' of https://github.com/Human-Connection/Human-Connection into 1017-send-out-notifications-on-create-omment
# Conflicts:
#	backend/src/middleware/handleHtmlContent/handleContentData.spec.js
2019-08-16 18:22:36 +02:00