Commit Graph

685 Commits

Author SHA1 Message Date
Mads Rasmussen
80464e37de Merge branch 'main' into feature/selection 2023-05-08 16:09:33 +02:00
Mads Rasmussen
3efa0eb877 use selection manager in tree 2023-05-08 10:02:10 +02:00
Mads Rasmussen
25212fa3f0 add selection manager 2023-05-08 10:01:37 +02:00
Mads Rasmussen
0dcbdc4a0a move workspace-split-view-manager to workspace lib 2023-05-03 16:08:19 +02:00
Mads Rasmussen
56fee66c96 update import 2023-05-03 16:01:01 +02:00
Mads Rasmussen
da76acbb9f add module for variant logic + update imports 2023-05-03 15:59:47 +02:00
Mads Rasmussen
6c79fadf08 move tree contexts to lib 2023-05-03 15:02:06 +02:00
Mads Rasmussen
0b798037c0 move tree context to lib 2023-05-03 14:57:13 +02:00
Mads Rasmussen
9717fd8a97 move examine dashboard into search package 2023-05-02 21:32:49 +02:00
Mads Rasmussen
f7f2da7659 Chore: Cleanup of Generic models lib (#681)
* move collection filter model to collection lib

* move temp member type details

* move temp user group details model

* move user details model out of models lib

* move document blue print out of models

* fix import paths

* use relative import paths

* move member details out of models

* move more models out of core models file

* fix import path

* Prefix

* remove entity type

* add null check

* typescript fixes

* move tree interfaces to tree lib

* fix import order

---------

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2023-05-02 11:04:52 +02:00
Mads Rasmussen
1a63b34fc0 Feature: Section lib (#678)
create section lib
2023-05-02 10:47:29 +02:00
Mads Rasmussen
5a98aff39d Chore: Move workspace context (#675)
* move workspace context

* Update document-type-workspace.context.ts

* fix duplicate import
2023-05-02 10:34:09 +02:00
Mads Rasmussen
6b5a1a3185 Feature: Allow picking of Tree Root (#669)
* include manifest in local variable name

* this is run when the alias is changed

* add manifest to variable

* add TODO

* update tree repo interface to get a tree root

* simplify

* return data type tree root

* add request root method to tree context

* render tree directly in tree menu item

* render root in tree element

* map has children to model

* set root to custom type

* add requestTreeRoot method to all repos that implement a treeRepository

* avalanche of type updates

* allow null (root) in pickers

* allow tree item extension for multiple "entity" types

* get tree root items if getChildren receives null

* add tree root model

* update tree root data

* allow entity action to be applied to multiple entity types

* allow move and copy to root

* selection in picker can include null

* temp typescript fix

* add support for hiding the tree root

* fix file system trees get root items

* clean up

* update move/copy mock db logic

* allow create action on data type root

* restrict data type entity actions on specific entity types

* temp add action to all entities

* temp typescript hack

* Update tree-item.model.ts

---------

Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
2023-05-02 10:33:16 +02:00
Julia Gru
2a691db889 Chore / Update API types (#680)
* generate api

* fix casing in users
2023-05-01 11:35:04 +02:00
Niels Lyngsø
bf6cd22f22 move structure manager (#677)
* move structure helpers

* refactor usage of document type repository

* lint fixes
2023-04-28 13:33:32 +02:00
Mads Rasmussen
ab5a90c7e9 Merge branch 'main' into feature-Collection-Lib 2023-04-28 09:52:36 +02:00
Mads Rasmussen
95167d569e implement UmbId util 2023-04-28 09:21:12 +02:00
Mads Rasmussen
d098723885 set up a collection lib 2023-04-27 22:04:14 +02:00
Mads Rasmussen
773144146b implement UmbId util 2023-04-27 21:13:46 +02:00
Niels Lyngsø
27cdc57086 manifest 2023-04-27 16:06:55 +02:00
Niels Lyngsø
67e93fae27 UmbMenuItemExtensionElement 2023-04-27 16:03:28 +02:00
Niels Lyngsø
1c2814764c use UmbWorkspaceEditorViewExtensionElement 2023-04-27 15:57:33 +02:00
Niels Lyngsø
2a49129056 workspaceView rename to workspaceEditorView 2023-04-27 15:42:10 +02:00
Niels Lyngsø
802fc63169 rename workspaceView to workspaceEditorView 2023-04-27 15:36:54 +02:00
Niels Lyngsø
0333e84ee8 interface for workspace view 2023-04-27 15:35:57 +02:00
Niels Lyngsø
b558e02591 UmbExternalLoginProviderExtensionElement 2023-04-27 13:49:11 +02:00
Niels Lyngsø
bad14429b3 UmbSectionSidebarAppExtensionElement 2023-04-27 13:32:47 +02:00
Niels Lyngsø
bd0f98dc92 rename extension interfaces 2023-04-27 13:26:34 +02:00
Niels Lyngsø
ef157b1365 section element 2023-04-27 13:23:32 +02:00
Niels Lyngsø
3c3e792fae remove unused location type 2023-04-27 13:23:14 +02:00
Niels Lyngsø
089be3d167 use UmbRoute 2023-04-27 11:18:12 +02:00
Niels Lyngsø
4f3f35cd63 dashboard element + section view element 2023-04-27 11:13:11 +02:00
Niels Lyngsø
c7c237ebda interface for tree item element 2023-04-26 14:52:39 +02:00
Niels Lyngsø
20d73ac22b split interfaces 2023-04-26 14:52:24 +02:00
Niels Lyngsø
a4dd2647de action interface 2023-04-26 14:42:01 +02:00
Niels Lyngsø
368ecbba4e manifest with view clean up 2023-04-26 14:41:41 +02:00
Niels Lyngsø
689d410c72 Merge remote-tracking branch 'origin/main' into feature/add-extension-interfaces 2023-04-26 14:23:49 +02:00
Niels Lyngsø
eb6d85a198 make sure type prop is optional 2023-04-26 14:20:25 +02:00
Niels Lyngsø
27f8275c48 ClassType for ManifestClass 2023-04-26 14:17:58 +02:00
Niels Lyngsø
5389fe65fe make a Type Parameter 2023-04-26 14:08:23 +02:00
Niels Lyngsø
ba7b4a8167 sort imports 2023-04-26 14:07:51 +02:00
Niels Lyngsø
3898848a81 index 2023-04-26 14:05:54 +02:00
Niels Lyngsø
fff62c9413 rename models 2023-04-26 14:04:51 +02:00
Niels Lyngsø
81c29f6537 move UmbPropertyEditorElement 2023-04-26 14:01:09 +02:00
Niels Lyngsø
271f67a604 refactor ManifestWithLoader 2023-04-26 13:28:34 +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