This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/src
Ken Sternberg d35c7df789
web: detangle element to admin references (#6864)
* Web: Detangling some circular dependencies in Admin and User

Admin, User, and Flow should not dependend upon each other, at least
not in a circular way.  If Admin and User depend on Flow, that's
fine, but Flow should not correspondingly depend upon elements of
either; if they have something in common, let's put them in
`@goauthentik/common` or find some other smart place to store them.

This commit refactors the intentToLabel and actionToLabel functions
into `@goauthentik/common/labels` and converts them to static tables
for maintenance purposes.

* web: "Consistency is the hobgoblin of small minds" - Ralph Waldo Emerson

* web: I found these confusing to look at, so I added comments.

* web: remove admin-to-user component reference(s)

There was only one: AppIcon.  This has been moved to `components`.

Touching the LibraryApplications page triggered a cyclomatic
complexity check.  Extracting the expansion block and streamlining
the class and style declarations with lit directives helped.

* web: remove admin from elements

This commit removes the two references from `elements` to `admin`: the list of UserEvents and a
reference to the FlowSearch type, used by the Forms manager to decide how to extract a value.
For FlowSearch, a different convention for detecting the type was implemented (instances of the
object have a unique fieldname for the value holder).  UserEvents and ObjectChangelog have been
moved to `components` as they're clearly dependent upon the API.

This defers work on removing Admin from Components, as that is (again) references going the
wrong way, but that can happen later.

* web: remove admin-to-user component reference(s) (#6856)

There was only one: AppIcon.  This has been moved to `components`.

Touching the LibraryApplications page triggered a cyclomatic
complexity check.  Extracting the expansion block and streamlining
the class and style declarations with lit directives helped.

* This was supposed to be merged.
2023-09-13 12:28:42 -07:00
..
admin web: detangle element to admin references (#6864) 2023-09-13 12:28:42 -07:00
assets/images web/flows: update flow background (#6579) 2023-08-20 22:27:54 +02:00
common web: Detangling some circular dependencies in Admin and User (#6852) 2023-09-13 10:16:24 -07:00
components web: detangle element to admin references (#6864) 2023-09-13 12:28:42 -07:00
elements web: detangle element to admin references (#6864) 2023-09-13 12:28:42 -07:00
flow web: don't import entire SourceViewPage in flow and user interface (#6761) 2023-09-06 14:00:16 +02:00
locales web: Replace lingui.js with lit-localize (#5761) 2023-06-02 08:08:36 -07:00
polyfill web: bump @formatjs/intl-listformat from 7.2.2 to 7.3.0 in /web (#5866) 2023-06-08 13:28:15 +02:00
standalone web: refactor locale handler into top-level context handler (#6022) 2023-07-07 14:23:10 +00:00
stories web/flows: add more stories (#6444) 2023-08-03 17:27:58 +02:00
user web: Detangling some circular dependencies in Admin and User (#6852) 2023-09-13 10:16:24 -07:00
custom.css *: add placeholder custom.css to easily allow user customisation 2022-02-14 20:05:00 +01:00
global.d.ts web/elements: pass full Markdown object to ak-markdown, get title from metadata 2021-12-16 12:18:43 +01:00
locale-codes.ts website: update translation docs (#5875) 2023-06-06 12:32:32 +02:00