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/elements
Ken Sternberg a52e4a3262
web: extract form processing (#7298)
* web: break circular dependency between AKElement & Interface.

This commit changes the way the root node of the web application shell is
discovered by child components, such that the base class shared by both
no longer results in a circular dependency between the two models.

I've run this in isolation and have seen no failures of discovery; the identity
token exists as soon as the Interface is constructed and is found by every item
on the page.

* web: fix broken typescript references

This built... and then it didn't?  Anyway, the current fix is to
provide type information the AkInterface for the data that consumers
require.

* web: extract the form processing from the form submission process

Our forms have a lot of customized value handling, and the function `serializeForm` takes
our input structures and creates a JSON object ready for submission across the wire for
the various models provided by the API.

That function was embedded in the `ak-form` object, but it has no actual dependencies on
the state of that object; aside from identifying the input elements, which is done at the
very start of processing, this large block of code stands alone.  Separating out the
"processing the form" from "identifying the form" allows us to customize our form handling
and preserve form information on the client for transactional purposes such as our wizard.

w
2023-10-25 14:39:50 -07:00
..
ak-locale-context Revert "web: Updates to the Context and Tasks libraries from lit. (#7168)" 2023-10-18 11:22:00 +02:00
buttons web: isolate clipboard handling (#7229) 2023-10-19 16:26:02 -07:00
cards enterprise: initial enterprise (#5721) 2023-07-17 17:57:08 +02:00
charts core: Initial RBAC (#6806) 2023-10-16 17:31:50 +02:00
chips web: rework and expand tooltips (#6435) 2023-07-31 19:35:09 +02:00
enterprise enterprise: add more info to enterprise forecast (#6292) 2023-07-18 23:24:44 +02:00
forms web: extract form processing (#7298) 2023-10-25 14:39:50 -07:00
messages web: Replace lingui.js with lit-localize (#5761) 2023-06-02 08:08:36 -07:00
notifications web: Detangling some circular dependencies in Admin and User (#6852) 2023-09-13 10:16:24 -07:00
oauth web: Replace lingui.js with lit-localize (#5761) 2023-06-02 08:08:36 -07:00
rbac web/admin: add preview banner to RBAC pages (#7295) 2023-10-25 20:15:28 +02:00
router web: Replace lingui.js with lit-localize (#5761) 2023-06-02 08:08:36 -07:00
sidebar web/admin: theme adjustments (#5944) 2023-06-13 15:41:48 +02:00
table core: Initial RBAC (#6806) 2023-10-16 17:31:50 +02:00
user web: remove `./element`⇢`./user` references (#6866) 2023-09-14 10:15:15 -07:00
utils web: isolate clipboard handling (#7229) 2023-10-19 16:26:02 -07:00
wizard web: laying the groundwork for future expansion (#7045) 2023-10-02 13:33:27 -07:00
Alert.ts web: toggle dark/light theme manually (#4876) 2023-03-09 23:17:53 +01:00
Base.ts web: break circular dependency between AKElement & Interface. (#7165) 2023-10-20 14:26:57 -07:00
CodeMirror.ts web/admin: fix prompt form and codemirror mode (#7231) 2023-10-19 23:53:04 +02:00
Diagram.ts security: cure53 fix (#6039) 2023-06-22 22:25:04 +02:00
Divider.ts web: toggle dark/light theme manually (#4876) 2023-03-09 23:17:53 +01:00
EmptyState.ts web: toggle dark/light theme manually (#4876) 2023-03-09 23:17:53 +01:00
Expand.ts web: app icons v2 (#6410) 2023-07-28 14:25:56 +02:00
Label.ts web: toggle dark/light theme manually (#4876) 2023-03-09 23:17:53 +01:00
LoadingOverlay.ts flows: improved import (#3807) 2022-10-18 22:01:42 +02:00
Markdown.ts web: toggle dark/light theme manually (#4876) 2023-03-09 23:17:53 +01:00
PageHeader.ts core: Initial RBAC (#6806) 2023-10-16 17:31:50 +02:00
Spinner.ts web: Replace lingui.js with lit-localize (#5761) 2023-06-02 08:08:36 -07:00
Tabs.ts web/user: fix user settings colours on dark theme (#6499) 2023-08-08 00:58:57 +02:00
TreeView.ts web: Replace lingui.js with lit-localize (#5761) 2023-06-02 08:08:36 -07:00