47 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
Moriz Wahl
470ea3f23e
fix(webapp): query categories on login to get the count (#8542)
* fix(webapp): queru categories to get the count

* padd the weapper to fill in
2025-05-12 12:53:22 +02:00
117c0d75e7
refactor(backend): user graphql (#8354)
* refactor user graphql

- remove isLoggedIn query
- currentUser query only for authenticated, currenUser always returns a
User
- currentUser query implementation uses neo4jgraphql with id parameter
- remove custom email field from user
- fix bug in frontend when there is no categories

* remove comment

* remove unused filter

* fix currentuser test

* fixedswitchUserRole mutation

* fix categories
2025-04-12 00:50:16 +00:00
Moriz Wahl
60627ffcf2 ensure that selected categories are resteted before toggling them to set saved categories 2022-09-08 15:34:29 +02:00
Moriz Wahl
b323d0f580 set category filter as stored in db after login 2022-09-07 20:19:10 +02:00
Wolfgang Huß
e9189a3c58 Fix linting 2021-09-12 08:28:56 +02:00
somesh202
fa6d3bb95d centered-login-form 2021-09-11 11:30:30 +05:30
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ß
97fdb7cd5c Refactor pageParams 2021-08-03 15:30:58 +02:00
Wolfgang Huß
7da8cef5ab Merge branch 'master' of https://github.com/Ocelot-Social-Community/Ocelot-Social into 4432-fix-header-logo-rebrand-replacement
# Conflicts:
#	webapp/components/LoginForm/LoginForm.vue
2021-05-18 22:28:58 +02:00
Wolfgang Huß
2f72e4eba3 Follow @Mogge suggestions 2021-05-18 22:09:56 +02:00
Wolfgang Huß
9a736100df Remove comment 2021-05-18 19:38:39 +02:00
Wolfgang Huß
ff6cc306af Refactor logos, first step 2021-05-18 17:04:48 +02:00
Brandon Tripp
cf58064e91 Add tests for ShowPassword component. Lint LoginForm and ShowPassword. 2021-05-15 12:30:35 -06:00
Brandon Tripp
0e763c0ac3 Login Form updated to use ShowPassword component. 2021-05-15 12:30:35 -06:00
Wolfgang Huß
8b77bc2612 Change sign up route in LoginForm 2021-03-19 08:21:32 +01:00
Moriz Wahl
c405e008e4 checks that a cookie exists after login. If not, throw an error saying that no cookie can be set 2020-12-18 11:31:16 +01:00
Wolfgang Huß
d2d257bc1c Merge branch 'master' of https://github.com/Ocelot-Social-Community/Ocelot-Social into white-labeling
# Conflicts:
#	backend/Dockerfile
#	webapp/Dockerfile
#	webapp/Dockerfile.maintenance
#	webapp/components/LoginForm/LoginForm.vue
#	webapp/package.json
2020-12-02 11:11:26 +01:00
Brandon Tripp
4efc1d3bf6 Linted the code to correct one error. 2020-12-01 13:37:58 -07:00
Brandon Tripp
8afcd6e4ea The styling was adjusted to center eye icon and make entire span clickable. 2020-12-01 11:28:58 -07:00
Brandon Tripp
d7641c3a35 Changed spec descriptions to be more clear. 2020-11-25 21:18:26 -07:00
Brandon Tripp
8d1931f94c Linting for new tests and LoginForm changes. 2020-11-24 15:38:49 -07:00
Brandon Tripp
f71fb6b07b Modified reveal password wrapper to contain test data, added tests for icon default and change of icon upon click. Preliminary test for returning focus to input field. 2020-11-24 15:35:35 -07:00
Brandon Tripp
74b56cbca7 linting of LoginForm.vue 2020-11-20 14:10:43 -07:00
Brandon Tripp
f56664b334 Refactor of click event to use a methhod and the @click rather than mouse down. Small adjustment to button spacing. 2020-11-20 13:39:43 -07:00
Brandon Tripp
59df64027e adding linted code to pull request. 2020-11-20 11:33:11 -07:00
Brandon Tripp
d33b9861fa added to new style to password field to incorporate the ds-input with the hide and show password icon 2020-11-20 10:30:39 -07:00
Brandon Tripp
15cd45e8e1 added password field icon and toggle functionality for the icon and password field on hide/reveal icon click 2020-11-20 09:26:35 -07:00
Moriz Wahl
128e1f06cc logos changed. SVG should be in better quality 2020-11-10 14:41:09 +01:00
roschaefer
650b3cef43 Remove "Human Connection" from translations 2020-06-16 14:19:07 +02:00
roschaefer
193f977863 fix: Remove broken moreInfoURL
The links specified in the locales were pointing to the English site and
were mostly broken anyways.
2020-06-05 17:19:58 +02:00
roschaefer
bc70e8b3b0 refactor: Image paths
* removed obsolete images
* moved all overwritable images to a location webapp/static/img/custom/
* better names
2020-06-05 11:49:18 +02:00
Alina Beck
ad385490bc follow @mattwr18 PR review
- replace magic numbers with tokens
- remove unused name attribute
- use slot shorthand (for the slots added in this PR)
2020-02-17 10:44:52 +01:00
Alina Beck
60818c5902 replace CardWithColumns with new and improved BaseCard 2020-02-11 16:57:25 +01:00
Alina Beck
3c8c9d51e1 re-refactor LoginForm, ContributionForm and TeaserImage 2020-02-11 16:34:35 +01:00
Alina Beck
9c3378807c introduce CardWithColumns component 2020-02-11 11:23:34 +01:00
Alina Beck
861b9aff94 clean up LoginForm 2020-02-10 15:46:49 +01:00
Alina Beck
34006a25e2 rename primary to filled 2020-01-09 13:25:12 +05:30
Alina Beck
56b1a74e64 let eslint do some magic 2019-12-19 12:53:38 +05:30
Alina Beck
ee11f4e366 replace even more ds-buttons with base-buttons (wip) 2019-12-19 11:39:39 +05:30
roschaefer
ae360f2201 fix #2329: Normalize email on login in the backend 2019-11-22 15:24:27 +01:00
roschaefer
145b6727b1 Fix 2329 in the frontend 2019-11-22 15:08:25 +01:00
Youri Seichter
967273a1af remove error logging as it results in linting errors 2019-10-16 19:38:51 +02:00
Youri Seichter
b89ef8987e Change login.failure translations, log login.failure error 2019-10-16 17:57:03 +02:00
Youri Seichter
b72f3da489 Make login failure translateable, translate 'login.failure' to german and english 2019-10-16 17:06:44 +02:00
roschaefer
fced9ce435 refactor: remove ready quickfix in LoginForm
According to the code comments this is a quick fix to avoid a visible
re-arrangement of elements in the browser. To be honest: I would rather
have the visible re-arrangement than this obscure quickfix. Everything
that's visible and annoying will be fixed. Everything we just hide, we
will forget.
2019-10-16 12:16:38 +02:00
roschaefer
8dff7496c0 refactor: create LoginForm component
I moved most code in pages/login.vue to a separate LoginForm component.
The intention is to have a separate vue storybook for the LoginForm
component.
2019-10-16 12:16:38 +02:00