86 Commits

Author SHA1 Message Date
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
4e4eff8dc9
fix(webapp): fix layout break and hidden group name appearance (#8538)
Fixes long comment overflow.
There is some underlying problem with flex box and overflows. A better solution could be to use a grid, but this was the fastest I would come up with.

Fixes hidden group name appearance
2025-05-10 09:22:51 +00:00
Max
ce1844e521
feat(webapp): several group and personal invitation links (#8504)
* invite codes refactor

typo

* lint fixes

* remove duplicate initeCodes on User

* fix typo

* clean permissionMiddleware

* dummy permissions

* separate validateInviteCode call

* permissions group & user

* test validateInviteCode + adjustments

* more validateInviteCode fixes

* missing test

* generatePersonalInviteCode

* generateGroupInviteCode

* old tests

* lint fixes

* more lint fixes

* fix validateInviteCode

* fix redeemInviteCode, fix signup

* fix all tests

* fix lint

* uniform types in config

* test & fix invalidateInviteCode

* cleanup test

* fix & test redeemInviteCode

* permissions

* fix Group->inviteCodes

* more cleanup

* improve tests

* fix code generation

* cleanup

* order inviteCodes result on User and Group

* lint

* test max invite codes + fix

* better description of collision

* tests: properly define group ids

* reused old group query

* reuse old Groupmembers query

* remove duplicate skip

* update comment

* fix uniqueInviteCode

* fix test

* fix lint

* Get invite codes

* Show invitation data in registration

* Add invitation list to menu (WIP)

* Add mutations, add CreateInvitation, some fixes

* Improve style, fix long comments

* Lock scrolling when popover is open, but prevent layout change

* small fixes

* instant updates

* Introduce config for link limit; add texts, layout changes

* Validate comment length

* Improve layout

* Add message to copied link

* Add invite link section to group settings

* Handle hidden groups

* Add menu entry for group invite links

* Fix locale

* hotfix invite codes

* Add copy messages

* More styling (WIP)

* Design update

* Don't forget user state

* Localize placeholder

* Add locale

* Instant updates for group invites

* fix registration with invite code

* Fix text overflow

* Fix instant updates

* Overhaul styles, add locales, add heading

* Add test and snapshot for CreateInvitation

* Improve accessability; add invitation test

* Add tests for InvitationList

* Fix locales

* Round plus button

* Fix tests

* Fix tests

* fix locales

* fix linting

* Don't show name of hidden group in invite message

* Add more tests

* Update webapp/locales/de.json

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>

* Update webapp/locales/de.json

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-05-10 08:25:03 +00:00
sebastian2357
ff366a4075
fix(webapp): mobile optimization (#8516)
* - optimized header
- added possibility of extra mobile logo

* - changed behavior of NotificationMenu link get directly open for mobile

* - moved notification links to the top of the menu

* - optimized chat view for mobile

* - added logo branding structure

* - added logo branding structure

* - fixed chat height

* - fixed paddings for internal pages

* Fix linting

* Fix linting

---------

Co-authored-by: Sebastian Stein <sebastian@codepassion.de>
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-05-09 17:04:06 +00:00
Max
ba0cc147e7
fix(webapp): fix admin badges settings (#8438)
* Remove proxy from nuxt.config, instead add proxy filter

* Show message when there are no badges
2025-04-26 17:25:27 +00:00
Max
c090db3866
feat(webapp): badges admin settings (#8401)
Adds a link to badges settings in the user table, where admins can set the available badges.
2025-04-22 17:28:51 +00: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
mahula
73fac22148 linting according to updated linter 2024-03-10 22:49:46 +01:00
Wolfgang Huß
5ecf6a7fee Change cancel button in 'MySomethingList' from danger to green 2023-07-19 12:31:52 +02:00
Wolfgang Huß
29a05efadb Fix linting 2023-06-20 13:56:52 +02:00
elweyn
cb0f97238c Refactor code to computed methods.
Co-authored-by: Tirokk <wolle.huss@pjannto.com>
2023-06-20 11:10:57 +02:00
Wolfgang Huß
53d3a921bf Force target '_blank' in registration 'terms and conditions', 'data privacy' links by 'PageParamsLink' 2023-06-14 13:20:56 +02:00
Moriz Wahl
4ce5bdd6fa get most components working 2023-02-15 10:23:34 +01:00
Wolfgang Huß
02598e5224 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 5137-refactor-social-media-and-mysomethinglist 2022-11-23 14:34:23 +01:00
Wolfgang Huß
bda0b3f088 Fix Cypress tests for the users social media
- Refactor Cypress tests to make them more language independent.

Co-Authored-By: mahula <lenzmath@posteo.de>
2022-11-23 14:22:45 +01:00
Wolfgang Huß
b20b797d60 Fix target property in 'PageParamsLink.vue' 2022-10-28 12:48:27 +02:00
Wolfgang Huß
00c10cc1a7 Refine footer links and donation link and fix their tests 2022-10-28 11:50:15 +02:00
ogerly
bad97a2fca fix lint 2022-10-27 08:50:37 +02:00
ogerly
1dfdc61220 footer links target dynamic 2022-10-27 08:48:58 +02:00
ogerly
31a4be9375 add target url dynamic 2022-10-27 08:24:20 +02:00
Moriz Wahl
88b5fb9b46 have i18n as option for search groups, fix test 2022-10-23 13:02:04 +02:00
Moriz Wahl
e27f9b00e6 remove location from group fragment, remove search type from search string on search page 2022-10-23 01:18:58 +02:00
Moriz Wahl
d1b05b7e02 add groups to search result page 2022-10-21 18:35:21 +02:00
Wolfgang Huß
a5c65faf15 Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 5137-refactor-social-media-and-mysomethinglist
# Conflicts:
#	webapp/pages/settings/my-social-media.vue
2022-10-04 10:08:29 +02:00
Wolfgang Huß
4075e63167 Fix linting 2022-08-02 08:54:33 +02:00
Wolfgang Huß
d39213f559 Refactor MySomethingList and social media list and adding deletion modal dialog 2022-08-02 08:52:13 +02:00
Moriz Wahl
938f5ccdf9 fix all tests 2022-07-25 23:20:05 +02:00
ogerly
f63165aa70 deleted unused css 2022-05-06 10:55:05 +02:00
Wolfgang Huß
23b7efa0e5 Change some little things in the frontend tests 2022-05-06 09:09:00 +02:00
Wolfgang Huß
d67b0c8500 Fix tests for favicon urls 2021-11-22 15:54:36 +01:00
Wolfgang Huß
7c43372423 Correct namings etc.
- Rename all "link" contaning names from MySomeThingList.
- Remove comment from notificationsMiddleware.
- Create translations.
2021-11-11 18:24:44 +01:00
Wolfgang Huß
51eca9ac83 Fix and refine tests 2021-11-11 15:38:26 +01:00
Wolfgang Huß
32844b8197 Cleanup 2021-11-11 12:05:26 +01:00
Wolfgang Huß
b7400339ab Split social media page and list component
- Rename variables.
- Implement callbacks.
- Fix tests.
2021-11-11 11:53:56 +01:00
Wolfgang Huß
280f0f5a78 Implement edit callback, fist step 2021-11-09 10:48:22 +01:00
Wolfgang Huß
58464fd53e Remove input addSocialMedia 2021-11-04 18:55:36 +01:00
Wolfgang Huß
433c5fd883 Implement MySomethingList for social media, use edit-item slot
- Pass formData and formSchema by properties.
2021-11-03 13:55:11 +01:00
Wolfgang Huß
d3cc49d37b Implement MySomethingList for social media, use list item slot 2021-11-03 13:04:45 +01:00
Wolfgang Huß
41252785d2 Fix tests 2021-08-05 17:57:48 +02:00
Wolfgang Huß
37cb8a2afb Fix linting 2021-08-05 16:24:50 +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ß
e8a0a5d13c Refactor pageParams, second step 2021-08-03 20:07:39 +02:00
Wolfgang Huß
97fdb7cd5c Refactor pageParams 2021-08-03 15:30:58 +02:00
Wolfgang Huß
a3d3656bf1 Implement login-button 2021-08-02 16:17:35 +02:00
Wolfgang Huß
df1e622094 Implement internal page component, first step 2021-08-02 13:48:57 +02:00
Wolfgang Huß
3ef41adfb1 Refactor TabNavigator.story.js 2021-01-25 15:28:07 +01:00
Wolfgang Huß
ae09aee91c Renamed NewTabNavigation to TabNavigation
- Renamed old TabNavigation to OldTabNavigation.
2021-01-21 20:27:13 +01:00
Wolfgang Huß
9ce1e089fa Fix lint 2021-01-21 16:38:55 +01:00
Wolfgang Huß
101b50486c Cleanup comments 2021-01-21 13:03:32 +01:00
Wolfgang Huß
830eb1010c Refactored SearchResults.spec.js to new tab component 2021-01-21 11:36:39 +01:00