Commit Graph

641 Commits

Author SHA1 Message Date
Mads Rasmussen
773144146b implement UmbId util 2023-04-27 21:13:46 +02:00
JesmoDev
c9701ace39 Feature: Wire Users backend - Part 1 (#659)
* UsersResource format

* wip update of repo and server

* get user workspace to show

* split up the section folder into the existing user and user group folders

* cleanup

* move stuff around

* collection repository

* added isSelected to the collection context

* cleanup

* user edit workspace kind of works again

* fixed header

* saving kinda works

* add notes

* cleaning up

* clean clean

* fixing build errors

* fixing build errors

* fix

* build errors

* fix import

* comment out wrong import

* remove store alias from collection class

* move input-user files to user folder + temp render in property editor

* align input naming

* delete unused test file

* wip align user picker modal code

* fix buttons in edit workspace

* property update method is now using types

* User edit workspace cleanup

* cleanup

* render info items

* remove methods from current user store

* wire all detail methods with server

* wire up user detail repository

* clean up

* remove debugger

* delete test files

* clean up

* wire up create user modal

* move header to element

* wire up user filter

* use correct type

* use correct type

* typescript temp fixes

* add interface for filter model

* temp typescript fixes

* comment out

* temp typescript fixes

* remove unused

* wip user invite

* fix import

* temp alert

* remove unused

* temp type cast

* fix import

* fix import

* move user utils to user folder

* fix tests

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-04-25 15:04:41 +02:00
Jesper Møller Jensen
10ef1c8ee3 generate:api 2023-04-25 18:45:28 +12:00
Jacob Overgaard
5ae631b223 Authentication using OpenID (#654)
* install app auth

* add service to handle auth

* add openid handling to general app

* move props to constructor

* update default api url to https

* add support for adjusting umbracoUrl from outside

* use origin url for redirect if empty from env

* merge origin/main

* merge origin/main

* add redirect uri support

* only check auth on firstUpdated

* merge origin/main

* fix redirect_uri

* listen for auth-success events before anything else

* save current route to restore after login

* set token function for all OpenAPI requests

* include credentials after login

* update openapi-typescript-codegen

* generate new models with bugfixes for CancelablePromise and request

* remove auth-success event

* wait with fetchServiceConfiguration until we actually need to query the server

* revert change where service configuration was delayed

* use LocalStorageBackend to save/restore token state

* improve documentation

* cleanup todos

* improve docs

* update documentation and set everything to private fields

* remove undefined

* add a token to provide server url

* add more docs

* provide the base url of the server through a token

* add more docs

* fix import

* allow to override the backoffice base url through a property

* use private modifier

* duplicate login image

* make generic error element to use as error page

* check for initialisation errors and show error page if necessary

* rename class to UmbAuthFlow

* control the notification manually with runtime status call

* add styling

* add stack to problemdetails

* forward all errors

* support problemdetails rendering

* allow passthrough without a token

* move error logic to function

* add support for BOOT_FAILED and default errors

* rename background img

* remove false character

* check for isMocking to simplify auth flow

* add support for generic ApiErrors

* make sure all errors from api controllers are ApiError or CancelError to be able to fine-tune the handling of them

* remove unused legacy method

* show notifications (for now) after session expiration

* break early on CancelErrors

* revert options argument

* remove login token after a 401 is detected

* catch api errors

* prefix class with Umb

* throw errors instead of using ProblemDetailsModel

* add TODO

* add TODO

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-04-24 12:27:25 +02:00
Mads Rasmussen
38fb9f2c02 Merge branch 'main' into bugfix-data-type-folder-deletion 2023-04-21 14:15:06 +02:00
Jacob Overgaard
9e72e5edd5 Vite 4.3 (#660)
* update vite to 4.3.1

* re-export router-slot/model as types to avoid warning in vite

* add named type exports to avoid typescript + vite + esm funny business (warnings)

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-04-21 14:13:41 +02:00
Mads Rasmussen
9ab0a37077 use correct method on repository to request a folder 2023-04-21 12:05:27 +02:00
Niels Lyngsø
0d9a824e75 Merge branch 'main' into feature/one-step-closer-to-core-code-aligned-with-packages 2023-04-20 15:57:10 +02:00
Niels Lyngsø
cf92fa30f8 Merge branch 'feature/document-type-workspace-take-3' of https://github.com/umbraco/Umbraco.CMS.Backoffice into feature/document-type-workspace-take-3 2023-04-20 15:35:38 +02:00
Niels Lyngsø
459f4b2dac rename angular version to txt 2023-04-20 15:35:37 +02:00
Niels Lyngsø
e54a5843b6 Merge branch 'main' into feature/document-type-workspace-take-3 2023-04-20 15:34:14 +02:00
Niels Lyngsø
6b1f2092b2 rename class 2023-04-20 15:33:15 +02:00
Niels Lyngsø
59b1c62fde cleaned the tests 2023-04-20 15:32:51 +02:00
Mads Rasmussen
e13956d47e Merge branch 'main' into feature/one-step-closer-to-core-code-aligned-with-packages 2023-04-20 15:22:30 +02:00
Mads Rasmussen
39ecc9fd32 Feature: Data Type Copy Action (#653)
* add copy data source

* add copy repo

* add copy logic to mock db

* add copy request interceptor

* add data type copy server data source

* add copy method to data type repo

* add data type copy entity action

* show copied notification

* update hasChildren flag

* use correct icon

* note

---------

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2023-04-20 13:21:08 +00:00
Mads Rasmussen
eb4b1cbffb Merge branch 'main' into feature/one-step-closer-to-core-code-aligned-with-packages 2023-04-20 15:14:24 +02:00
Niels Lyngsø
a4bb08ff60 Merge remote-tracking branch 'origin/main' into feature/document-type-workspace-take-3
# Conflicts:
#	src/backoffice/shared/components/input-template/input-template.element.ts
#	src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.element.ts
#	src/core/mocks/data/document-type.data.ts
2023-04-20 15:12:11 +02:00
Jacob Overgaard
b04eb74ab4 Merge pull request #578 from umbraco/manual-json-schema
JSON Schema for Extensions
2023-04-20 14:51:23 +02:00
Mads Rasmussen
00f5c62882 Merge branch 'main' into feature/move-data-type 2023-04-20 14:25:56 +02:00
Jacob Overgaard
29641d5c12 Merge remote-tracking branch 'origin/main' into manual-json-schema 2023-04-20 14:11:38 +02:00
Jacob Overgaard
3fa5453832 Merge branch 'main' into manual-json-schema 2023-04-20 13:44:59 +02:00
Niels Lyngsø
8687efd7b2 rename picker context to picker input context 2023-04-20 13:34:01 +02:00
Niels Lyngsø
e61763524f todo comment 2023-04-20 13:28:48 +02:00
Mads Rasmussen
feb315079a update after merge 2023-04-20 13:06:05 +02:00
Mads Rasmussen
19ffe8643b Merge branch 'main' into feature/data-type-picker 2023-04-20 13:05:56 +02:00
Niels Lyngsø
a7b14da047 Merge remote-tracking branch 'origin/main' into feature/document-type-workspace-take-3 2023-04-20 11:21:12 +02:00
Niels Lyngsø
6918e98b67 icon 2023-04-19 14:17:27 +02:00
Niels Lyngsø
263cbb75f5 Merge remote-tracking branch 'origin/main' into feature/document-type-workspace-take-3
# Conflicts:
#	libs/router/generate-route-path-builder.function.ts
#	src/backoffice/shared/components/workspace/workspace-layout/workspace-layout.element.ts
2023-04-19 13:07:12 +02:00
Mads Rasmussen
e60de8cb98 update interfaces 2023-04-19 09:53:45 +02:00
Mads Rasmussen
d8f9688f8a add todos 2023-04-19 09:33:20 +02:00
Mads Rasmussen
7aaf208dc5 add logic to move data type 2023-04-18 21:14:31 +02:00
Niels Lyngsø
65db67f530 clean up 2023-04-18 15:34:44 +02:00
Niels Lyngsø
e1745685c0 containerSelector 2023-04-18 15:21:30 +02:00
Mads Rasmussen
431cef5c44 data and error are optional 2023-04-18 13:31:07 +02:00
Mads Rasmussen
36607d9e1e rename methods to legacy to prevent naming clash 2023-04-18 13:30:54 +02:00
Niels Lyngsø
9036dd787d clean up 2023-04-18 13:22:28 +02:00
Niels Lyngsø
12ba3536c1 working drag 2023-04-18 13:21:12 +02:00
Niels Lyngsø
d65cf550bc initial sorting implementation 2023-04-18 12:55:53 +02:00
Mads Rasmussen
be83afee13 clean up 2023-04-17 22:00:41 +02:00
Mads Rasmussen
e4209d1e7e add getter for min a max 2023-04-17 21:58:15 +02:00
Mads Rasmussen
d28f3d47c6 mock item request 2023-04-17 21:14:33 +02:00
Mads Rasmussen
e84fde8ad9 register language item store 2023-04-17 20:37:55 +02:00
Mads Rasmussen
ba9676d92a temp updates to follow store interface 2023-04-17 17:12:26 +02:00
Mads Rasmussen
542ecfcb41 move store crud logic to base class, add interface + add item store interface 2023-04-17 16:56:05 +02:00
Mads Rasmussen
459df80680 add item repository 2023-04-17 16:18:55 +02:00
Mads Rasmussen
586a73bfd2 add item data source 2023-04-17 16:18:28 +02:00
Mads Rasmussen
f2c9c23b00 use picker context in language picker 2023-04-17 15:43:59 +02:00
Niels Lyngsø
f7d4c8d76d imports 2023-04-17 11:05:37 +02:00
Niels Lyngsø
42610b8483 type corrections 2023-04-17 11:05:01 +02:00
Niels Lyngsø
a7b2aec5d2 ideas for testing 2023-04-17 11:04:56 +02:00