* [WIP] Create Umbraco/Bellissima Package
* Removes existing 'UmbracoPackage'
This is because the RCL based one will be the only one going forward
* Rename existing UmbracoPackageRCL to UmbracoPackage
* Drop the mentions of RCL in the identifiers
* CodeQL GitHub Action is complaining due to V15 wanting v9 .NET
* Rename UmbracoPackage template to UmbracoExtension
As this will only scaffold an extension and not other bits for a package such as Nuget, Github Actions & other things needed to be done to ship out a package
* Remove package lock as npm install by the OS should generate this and can differ between Windows, Linux/OSX
* Move JS clientside stuff into a folder called Client
Will allow us to ignore the folder if or when doing a dotnet pack with a rule in CSProj
* Add in .VSCode recommened extensions file to get the useful Lit Extension for completions in VSCode
* For now remove the example dashboard & prop editor
* Add a simple entrypoint
* Fix path for primary output after rename
* Use link suggested from Lotte
* Use backofficeEntryPoint as entryPoint is deprecated
* Update the umbraco-package.json to opt into telemetry as per PR suggestion
* Improve commented code to include a link to docs
* Improve readme from suggestions
* Updates package.json to use latest Vite & TS
Copies the tsconfig from the default scaffolding of vite lit-ts CLI
* Adds the base property suggestion from Jacob & puts in a comment as to what its used for
* Work in progress from hackathon day/afternoon
* Hey-API generating a HTTP Client had changed and was a PITA to figure out what had changed
Things to do for next time:
Include these files if they include --include-samples flag
* constants.ts
* Controllers/
* Composers/
* client/src/api
* client/src/dashboards/
* client/src/entrypoints
Change file contents
* client/src/bundle.manifests.ts
* client/src/package.json (extra dependencies)
* Adds in new property/flag/switch for dotnet new template
* Warren cant spell Whether 🙈
* Update template.json to exclude the sample files if flag is not set/false
* Make SLN happy/build
* Conditional content in files for IncludeExample flag/switch
* Need to include the content otherwise it doesnt get packed by nuget
* Fix the path for the openapi-ts-config.ts file to be included/excluded
* Use the project name from the dotnet new to help name manifests
* Update namespaces so they get updated when dotnet new templatge is run with the --name
* Updated example
* Fix up VS Code recommended extension for Lit VSCode
Should be .json not a .ts
* Fix up build - as we dont use the imported UmbCurrentUserContext
* Remove the relative path to the JSON schema as unable to know path to the web project
* Typo fix as spooted by Rich
* Update templates/UmbracoExtension/.template.config/template.json
Co-authored-by: Lotte Pitcher <LottePitcher@users.noreply.github.com>
* Adds a --site-domain flag/switch to use for setting the domain prefix
Sets a default value of https://localhost:5000
We have no way of knowing what URL/domain the site is running at for the Umbraco website project
* Rename stuff so its not 'example' & only have ping if include-examples is not set
* As agreed with Lotte makes sense we always generate OpenAPI & TS client
* Update umbraco-extension description
* Generic node script to generate the TS client
Checks if it can connect to it first and prompts user to ensure Umbraco site running or perhaps they need to change the URL in package.json for the node script
* Generated API has conditional stuff in now to have just Ping or the more examples based on switch/flag
* Adds symbols safeNamespace and safeName
safeNamespace uses the one built in and then safeName, depends on the cleaned namespace to then use a custom transform (forms) to then use a regex replace on . and _ to ensure we have a nicer name still for namespaces, class names, URL/routes for the swagger etc...
* change to use Umbraco.Extension as sourcename - check \.template.config\readme.md for 'placeholder' guidance
* use '-sd' as shortname for site-domain as otherwise shows up as '-p:d'
* fix typescript build error when not including examples
* use provided name for API description as always being added
* Missing renames of Contrioller stuff with Lotte @ hackathon
* We missed the ctor
* Titlecase the API URLs for Swagger/API Controller
* dashboard tweaks
* Missing [Server] on Whats the Time Modal/UUI-box
---------
Co-authored-by: leekelleher <leekelleher@gmail.com>
Co-authored-by: Lotte Pitcher <LottePitcher@users.noreply.github.com>
Co-authored-by: Lotte Pitcher <github@lottepitcher.co.uk>
* Optimed sql for checking if a list documents is tracked by a reference
* Remove unoptimzed method and update Media controller too
* Revert spacing, formatting and unneeded code change
This partially reverts commit d32b6acf4fa2f167e40b789e0cd02ce355a3a8ed.
* Cleanup temporary renaming
* Add default implementations
* Fix merge issue
---------
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
* update submodule
* update submodule
* Reintroduce a favicon (#17422)
* Fixes issue where package name was compared to package id, so packages had pending migrations from the management api endpoint, without actually have it.
---------
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
* Support limited language access at block level
* Account for AllowEditInvariantFromNonDefault when updating properties (#17333)
* Remove obsolete ctor
* Add explanatory comment
* Set AllowEditInvariantFromNonDefault to true on tests
* Refactor to account for merge and default language
* Merge invariant values on top of the already merged values
* Add integration test to prove invariant merging
---------
Co-authored-by: kjac <kja@umbraco.dk>
---------
Co-authored-by: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com>
* Initial working localLinks migration
* Cleanup
* Refactor for extendability part 1
* Refactor part 2
* Fixed circular dependency
* Made sure all the extendable logic for the migration is marked as obsolete for v18
* Refactor to use Interface and non circular references instead
* Use Npco for SQLserver compatibility and include media properties too
---------
Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
* Initial working localLinks migration
* Cleanup
* Refactor for extendability part 1
* Refactor part 2
* Fixed circular dependency
* Made sure all the extendable logic for the migration is marked as obsolete for v18
* Refactor to use Interface and non circular references instead
* Use Npco for SQLserver compatibility and include media properties too
---------
Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
As noted in #16659, everything from `App_Plugins` is copied into the web
output. This is unneeded and in the case of the `node_modules` directory
unwanted behavior, these files are sources and not output that Umbracco
needs to serve packages/extensions.
The old behavior has led to many of the "path too long" errors we've
been seeing while building extensions.
* Add logging to RTE integration tests to trace the source of the failing tests
* Revert build host change
* Explicitly log to console
* Make the test assertions less fragile
As noted in #16659, everything from `App_Plugins` is copied into the web
output. This is unneeded and in the case of the `node_modules` directory
unwanted behavior, these files are sources and not output that Umbracco
needs to serve packages/extensions.
The old behavior has led to many of the "path too long" errors we've
been seeing while building extensions.
* Move DocumentCacheService
* Add clear all documentws from memory cache
* Fix RedirectTracker
* Implement refresh node/branch/all/delete
* Only update databasecache in RefreshContentAsync
* Fix tests
* Skip blueprints in cache
* Clear caches when contenttype is updated
* Clear cache on data type update
* Refresh media
* Only update memory cache from refreshers
* Fix imports
* Add named options
* Use cache entry settings in media
* Obsolete nucache settings
---------
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
* Added DisableBuildCompression to not make compressed versions of backoffice client. That should dotnet not spend time on when building
* Also add to our own execuable even that we do not ship it
* Also add to our own execuable even that we do not ship it
* Use <CompressionEnabled>false</CompressionEnabled> instead
* Revert "Also add to our own execuable even that we do not ship it"
This reverts commit 183200d24b6d381fee0dc35894db72abb037e634.
* Added new notification to hook in after the premigrations and use this to init different services.
* Force MaxDegreeOfParallelism to 1, while investigating scopes
* Tried some more workarounds
* Updated scopes and changed parallel to non parallel to ensure migration works
* Missing scope
* Make it parallel again - The secret is, the SuppressFlow needs to be when you create the task, but not on the await!.
* Fixed issue when DEBUG_SCOPES is not added to tests.
* Remove test exception
* Try build on ubuntu again, even that we know it can be stuck. Just a test to see if all tests pass
* Updated comment
---------
Co-authored-by: kjac <kja@umbraco.dk>
* Updated tests for v15
* V14 QA Skip Users tests on Sqlite (#17330)
* Split sqlite test because we run into db locks
* Uses the new command
(cherry picked from commit 728dc89909)
(cherry picked from commit 126bce7721)
* Fixed tests
---------
Co-authored-by: Nhu Dinh <hnd@umbraco.dk>