Commit Graph

13 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
Niels Lyngsø
dae902c2a0 Partly Document Type Workspace (#636)
* move container property logic into a manager

* restructure of property structure helpers

* simpler styling

* migrate structural code to helper classes

* rename to helper

* re arrange

* rename + transfer structural views

* styling

* context observers

* refactor container observables

* _observeOwnerProperties

* clean up

* creation of base structure

* add property method

* move style

* view and edit properties

* use !

* import ordering

* correct typing

* fixes
2023-04-03 11:34:54 +02:00
Jacob Overgaard
796533ff11 Refactor libs into @umbraco-cms/backoffice/* (#608)
* merge libs rollup configs to one rollup

* move css from libs to src/core

* run rollup on cms build

* move test-utils to /utils folder

* move css to src/core

* mark @umbraco-cms/backoffice as external when building for CMS

* rename all models to include @umbraco-cms/backoffice in their path to allow us to publish as a single module

* rename all imports to @umbraco-cms/backoffice/*

* rename events to umb-events to avoid rollup error of protected module name(?)

* test that libs can build

* move css to src/core

* move umb-lit-element and modal elements to src/core

* move some modal interfaces back to libs/modal

* move the icon store into src/core since it is very localized to the backoffice

* comment out build:libs for now since Github runs out of memory

* rename to match tsconfig alias

* add package.json to libs

* only make libs for lib folders

* turn off emit for typescript since we are handling types for libs separately

* build libs locally

* add script to move libs to final destination with some transform

* move libs after build

* move package.json to dist folder first (so we can publish from there)

* remove inline comments

* ensure the outputDir exists

* Remove re-export of extensions-registry library from models library

* move to individual files to avoid circular imports

* check if outputDir exists before trying to create it

* write transforms first in dist file and then copy the file to outputDir

* ensure all umbraco types are external

* copy information from main package.json file
2023-03-21 11:41:06 +01:00
Jacob Overgaard
8fd2bf910c build declarations for libraries 2023-03-07 15:31:56 +01:00
Jacob Overgaard
62f3c2d6fa Feature/server packages v2 (#574)
* new api models

* use new PackageResource

* do not error out on missing default exports (esmodules auto-execute)

* do not check for js extensions (they might have been registered on the client without a js file)

* prepend the api baseurl to any relataive server JS dependencies

* ignore tsbuildinfo

* create base file for tsconfig

* extend from base config and optimise include/exclude paths

* install rollup plugin to handle json files

* use plugin to bundle json files

* call script for cms builds that builds libs

* add rollup config to utils lib

* add a context token to the extension registry instance itself and provide it through BackofficeElement

* add rollup node resolve

* add node resolve

* only include element mixin in element library

* add error description to module load error

* add types to UmbExtensionRegistry token

* set UmbNotificationService as string in its token to avoid minification

* correct comment

* reverse order of checks

* add host to server extensions and support life-cycle check

* add imports

* use lit rather than lit-html

* correct comment

* add PackageManifestModel

* add import

* run libs build for cms

* revert reorder

* use string name for NotificationContext token

* make alias public readonly of UmbContextToken

* remove TODO

* use UmbContextToken::toString() for all stores

* use string alias for contexts

* move default data so we avoid importing a big lit library just to get default data interface

* add rollup to two extra libraries

* make sure we build uui and lit into our libraries for the few cases we import something

* add lockfile

* add separate options for .js files

* add function to install types of module

* add types output

* remove unused tsconfig-base file for now
2023-03-02 20:29:20 +01:00
Lone Iversen
e81d79638e test file, udi to key 2023-02-20 10:00:17 +01:00
Lone Iversen
6ba488c239 Update libs/utils/udi-service.ts
Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2023-02-17 15:36:03 +01:00
Lone Iversen
40c5900388 udi service 2023-02-17 11:22:11 +01:00
Jacob Overgaard
57ba1e2d51 remove baseUrl function since import.meta.env.BASE_URL provides what we need 2023-02-13 10:00:06 +01:00
Jacob Overgaard
e7a33cf446 umbracoPath just returns a function 2023-02-01 14:21:56 +01:00
Niels Lyngsø
2a6d7f66e2 rename to getLookAndColorFromUserStatus 2023-01-25 12:54:58 +01:00
Jacob Overgaard
79e99b8185 move utils and test-utils to libs 2023-01-24 10:31:53 +01:00