185 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
e87a33eb3f
feat(backend): push posts (#8609)
* push posts

push posts

* unpush posts

* fix comment query

* locales

* fix locales

* fix tests

* Update webapp/locales/de.json

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>

* Update webapp/locales/de.json

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>

* Update webapp/locales/de.json

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>

* fix unpushedSuccessfully english message

* remove paremeters from unpushPost

* rename pushPostToTop -> pushPost, tests

* update locales & tests webapp

* fix lint

---------

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-06-03 17:57:21 +02:00
16803e45e6
fix broken observe on post (#8610)
Due to missing tests & problematic refactoring, posts could no longer be
observed and the new observe state beeing indicated without reloading
the page.

This reverts parts of
https://github.com/Ocelot-Social-Community/Ocelot-Social/pull/8598 to
fix the problem
2025-05-31 10:44:29 +02:00
4b3a26d517
feat(webapp): shout comments (#8600)
* shout comments

* fix notifications

* Remove whitespace for empty category sections

* Overhaul post actions

* Adjust spacing

* Allow fine-grained size control for icons and circle buttons via css variables; adjust comments layout

* Adjust spacing

* Add test for ActionButton (WIP)

* Rename import

* Remove text and add count bubble

* Use filled icons to indicate active states

* Adjust sizes and orientation

* Remove unused properties, add test

* Fix ObserveButton test

* Fix ShoutButton test

* fix tests

* Adapt styles

* Adjust style for larger numbers

* Remove unused icon

* Fix test structure

* Remove unused class names

---------

Co-authored-by: Maximilian Harz <maxharz@gmail.com>
2025-05-31 00:13:15 +02:00
Moriz Wahl
b736a2a2e3
feat(backend): pin more than one post (#8598)
* feat(backend): pin more than one post

* add postPinnedCount query, better names for env variable

* add store and mixin for pinned posts counts

* test pinned post store

* context menu for pin posts

* fix typos

* unpin posts is always possible

---------

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-05-28 19:12:27 +02:00
Moriz Wahl
a3178a91b4
refactor(webapp): store for categories (#8551)
* after authentification, query the categories if active and store them

* get categories from store

* use category store to get categories

* get categories from store

* mock store to have access to categories

* to get rid of the active categories config variable in the frontend, the Category query returns an empty array when categories are not active

* remove CATEGORIES_ACTIVE from .env

* should return string to avoid warnings in console

* replace all env calls for categories active by getter from store

* use categoriesActive getter

* ignore order of returned categories

* mixin to get the category infos from the store, to ensure, that the quey has been called

* fix misspelling

---------

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-05-27 15:03:26 +02:00
Max
1e6a74b8ce
feat(frontend): observe posts (#8293)
* After creating the post, the author of it automatically observes it to get notifications when there are interactions

* a user that comments a post, automatically observes that post to get notifications when there are more interactions on that post

* mutation that switches the state of the obeservation of a post on and off

* remove duplicate code

* fix unit tests

* add metric observed users count to posts

* change naming

* Add follow post entry to post menu

* Add FollowButton (WIP), show unfollow in menu when already followed

* Follow/unfollow post => observe

* Update slashed bell

* Add requests to observe/unobserve posts

* Add ObserveButton functionality

* Rename isObservedByMe

* Add observingUsersCount; simplify ObserveButton and menu entries

* Fix locales

* Add snapshot test for ObserveButton (WIP)

* Remove empty routes push

* Add test for ObserveButton

* Add test for ContentMenu, improve ObserveButton test

* Remove unneeded fields from PostQuery

---------

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2025-04-04 11:54:43 +00:00
Markus
d70fd979fb fixed event info layout 2024-02-01 11:57:13 +01:00
Wolfgang Huß
04290921fc Move event location name to an own component 2023-06-07 16:40:51 +02:00
Wolfgang Huß
52cf19d5fc Rename component 'DateRange' to 'DateTimeRange' 2023-06-07 15:46:18 +02:00
Wolfgang Huß
7ad74b1398 Move date time range to an own component 2023-06-07 14:07:22 +02:00
elweyn
bb7721b670 Fix linting! 2023-06-06 14:35:57 +02:00
elweyn
ab579e521b Change side menu text of Post.
Co-authored-by: Tirokk <wolle.huss@pjannto.com>
2023-06-06 11:24:52 +02:00
elweyn
6accd65ee1 Add methods for Start/End Date-/Time-String
Co-authored-by: Tirokk <wolle.huss@pjannto.com>
2023-06-06 11:13:57 +02:00
Markus
7c37d9f9ef added conditional check for event time, code syntaxes 2023-05-17 15:32:49 +02:00
Markus
0c2c199e74 added linting 2023-05-10 15:26:33 +02:00
Markus
092feb5ee7 [webapp] added event info to post page 2023-05-10 15:20:01 +02:00
ogerly
5b256ed3e4 fix lint 2023-04-26 13:44:31 +02:00
ogerly
b6ffdab321 refactor post event 2023-04-26 08:56:57 +02:00
ogerly
2c5576f8a1 fix lint, fix locales 2023-04-25 22:11:25 +02:00
ogerly
ef0ee1ec0d Merge branch '6044-Add-create-New-Event' of https://github.com/Ocelot-Social-Community/Ocelot-Social into 6044-Add-create-New-Event 2023-04-25 21:05:04 +02:00
ogerly
fbdb6ca074 show all event datas in post 2023-04-25 21:04:58 +02:00
72ae881d9a
fixed undefined post problem 2023-04-25 21:03:24 +02:00
ogerly
43728dd0a5 flex system for eventdatas in post 2023-04-25 19:57:48 +02:00
ogerly
c930dd6d52 last step construct 2023-04-25 18:45:23 +02:00
Moriz Wahl
e2ac3ba846 sort categories on group profile 2022-11-28 14:02:37 +01:00
Moriz Wahl
ab9b14d756 sort catgeories on post 2022-11-28 13:55:01 +01:00
Moriz Wahl
847775a3f4 fix: Comments on Posts in Groups in Webapp 2022-10-28 11:00:27 +02:00
Wolfgang Huß
731f3a51aa Add group to user teaser, on post page, and on news feed 2022-10-17 18:45:02 +02:00
Wolfgang Huß
1703638dd6 Implement group indication headline for view and edit post page 2022-10-07 23:26:47 +02:00
Wolfgang Huß
a48a338e26 Merge branch 'category-tooltipps' of github.com:Ocelot-Social-Community/Ocelot-Social into 5059-groups/5318-group-profile-description-etc
# Conflicts:
#	webapp/components/PostTeaser/PostTeaser.vue
#	webapp/pages/post/_id/_slug/index.vue
2022-09-16 07:18:25 +02:00
Wolfgang Huß
1d3fc9b88a Set tooltip on post page categories 2022-09-16 07:08:32 +02:00
Wolfgang Huß
e570d0773a Remove unneeded eslint-enable 2022-09-16 05:25:00 +02:00
Moriz Wahl
64153ea9e3 change delay of category tooltip to 1500 2022-09-15 10:04:26 +02:00
Moriz Wahl
5727eeb49f feature: Tooltips for Topics 2022-09-13 09:17:04 +02:00
Moriz Wahl
bc955003f7 add optional categories to teaser and post 2022-07-25 20:03:00 +02:00
Wolfgang Huß
aa454893ce Refactor pageParams, third step
- Implement emails.js in backend as well.
- Move backend links.js into emails.js, because code is not a duplicate of webapp anymore.
2021-08-05 14:44:54 +02:00
Wolfgang Huß
58728df97b Refinied design 2021-02-11 12:39:38 +01:00
Moriz Wahl
4097cc16f7 remove emojis from post page 2021-02-11 12:39:38 +01:00
Moriz Wahl
650e83f4c2 file upload: refactored 2021-02-08 16:10:38 +01:00
Moriz Wahl
80e296604d height of image in post/index.vue is calculated correctly. Why is this necessary? 2021-02-05 14:19:47 +01:00
Moriz Wahl
cbf50014ed removed categories from posts 2021-01-15 00:36:55 +01:00
Moriz Wahl
bd962bbfcc merging rebranding branch from / 2020-11-10 10:28:20 +01:00
Wolfgang Huß
e33a190ffe Fix syntax
- My conflict resolved on GitHub missed a bracket.
2020-06-06 10:04:51 +02:00
Wolfgang Huß
cf3f9fa210
Merge branch 'master' into 3013-set-the-teaser-image-to-the-appropriate-size-ratio-from-the-beginning 2020-06-06 09:50:49 +02:00
roschaefer
387ea64faa Parameterize links 2020-06-05 17:15:12 +02:00
Dries Cruyskens
38d7ab9661 Moved the sorting function to helper file to prevent duplicate code. 2020-06-04 00:18:51 +02:00
Dries Cruyskens
43a3b57dd9 Fixed linting issues and comments. 2020-05-30 03:20:50 +02:00
Dries Cruyskens
136e83afc2 Alphabetically sorting tags using compute functions on index and more-info page. Added test checking tags are present and shown alphabetically. 2020-05-30 03:10:11 +02:00
Dries Cruyskens
4ab7972a83 Inversed the aspect ratio to fix bug. 2020-05-29 18:26:23 +02:00