Commit Graph

18 Commits

Author SHA1 Message Date
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
Nathan Woulfe
e7961af9d3 fixes model changes 2023-03-16 18:02:40 +10:00
Jacob Overgaard
535fc2f252 add rollup.config.js to store lib 2023-03-13 16:43:07 +01:00
Jacob Overgaard
12bd6decea make import from uui more specific to avoid getting the whole commonjs module in the rollup bundle 2023-03-13 16:42:38 +01:00
Jacob Overgaard
8fd2bf910c build declarations for libraries 2023-03-07 15:31:56 +01:00
Niels Lyngsø
60ad1c3835 Feature/tree store base (#514)
* out comment temprorary for development

* initial prep

* comment

* change port number for dev generate api

* generated new apis

* document-type repository

* rename to item

* rename to document

* use ItemType

* not name detail for full models

* correct token

* imports

* correct imports

* use DocumentTypeTreeItem

* mega type adapt commit

* move DataType import

* rename document detail store

* add document

* new mock data

* partialUpdateFrozenArray

* imports

* document context work

* document and document type in context

* data-type stores + data-sources

* byKey document + data-type

* remove type

* comment

* data-type repository

* data-type context adjustments

* data-type data observable

* fix model import

* use ContentTypeCompositionType

* correct mock data

* .

* split treedata / data

* correct mock endpoints

* new models

* update model usage

* correct models

* imports

* correct models

* update model imports

* update models

* update type

* update docuemnt models

* use DocumentModel

* DocumentModel

* import lit/decorators.js

* lint fixes

* remove console.logs

* implementation of tree store base class

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-02-13 13:23:53 +00:00
Jacob Overgaard
132acb5810 use import.meta.env.BASE_URL to load icons so they work in the CMS which has a different base url 2023-02-13 10:00:06 +01:00
Niels Lyngsø
650f14e8ca dont use store, use context 2023-01-27 12:23:45 +01:00
Niels Lyngsø
08964bbb13 Merge remote-tracking branch 'origin/main' into feature/media-bulk-actions
# Conflicts:
#	src/backoffice/media/media/workspace/media-workspace.context.ts
2023-01-27 12:20:53 +01:00
Niels Lyngsø
9ea6726089 avoid using store in implementations 2023-01-27 12:18:02 +01:00
Niels Lyngsø
d57e834429 better comment 2023-01-27 09:50:27 +01:00
Niels Lyngsø
e2c1fb15f1 mega refactor commit 2023-01-27 09:29:55 +01:00
Niels Lyngsø
6c4933a3a0 getScaffold method 2023-01-26 12:16:15 +01:00
Jacob Overgaard
b39f08f745 update import paths 2023-01-25 10:41:55 +01:00
Niels Lyngsø
8af2e944d4 Merge remote-tracking branch 'origin/main' into feature/implement-type-specific-subjects
# Conflicts:
#	.storybook/preview.js
#	libs/store/store-base.ts
#	libs/store/store.ts
#	src/backoffice/backoffice.element.ts
#	src/backoffice/documents/document-blueprints/document-blueprint.store.ts
#	src/backoffice/documents/document-types/document-type.store.ts
#	src/backoffice/documents/documents/document.store.ts
#	src/backoffice/media/media-types/media-type.store.ts
#	src/backoffice/media/media/media.store.ts
#	src/backoffice/members/member-groups/member-group.store.ts
#	src/backoffice/members/member-types/member-type.store.ts
#	src/backoffice/settings/data-types/data-type.store.ts
#	src/backoffice/shared/collection/collection.context.ts
#	src/backoffice/shared/components/input-document-picker/input-document-picker.element.ts
#	src/backoffice/shared/components/tree/tree-item.element.ts
#	src/backoffice/shared/components/tree/tree.element.ts
#	src/backoffice/shared/components/variant-selector/variant-selector.element.ts
#	src/backoffice/shared/components/workspace/workspace-content/workspace-content.context.ts
#	src/backoffice/translation/dictionary/dictionary.store.ts
#	src/backoffice/users/user-groups/user-group.store.ts
#	src/backoffice/users/users/user.store.ts
#	src/core/modal/layouts/picker-user-group/picker-layout-user-group.element.ts
2023-01-24 11:10:32 +01:00
Jacob Overgaard
68ba8bd2f7 add rollup to @umbraco-cms/store 2023-01-24 08:38:35 +01:00
Jacob Overgaard
a6ab87d12c add error logging to iconstore 2023-01-23 16:36:54 +01:00
Jacob Overgaard
bc02acdeb9 move store to libs 2023-01-23 15:22:36 +01:00