${repeat(
- matchfilter,
+ matchfilter.slice(0, 5),
(tag: TagResponseModel) => tag.id,
(tag: TagResponseModel, index: number) => {
return html` {
- console.log('tags registrer');
extensionRegistry.registerMany(manifests);
};
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/tags/repository/tag.store.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/repository/tag.store.ts
index 5ddf7e15c9..7fc8a4aa97 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/tags/repository/tag.store.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/tags/repository/tag.store.ts
@@ -21,7 +21,6 @@ export class UmbTagStore extends UmbStoreBase {
*/
constructor(host: UmbControllerHostElement) {
super(host, UMB_TAG_STORE_CONTEXT_TOKEN.toString(), new UmbArrayState([], (x) => x.id));
- console.log('Store is open');
}
/**
@@ -48,7 +47,11 @@ export class UmbTagStore extends UmbStoreBase {
);
}
- //TODO Skriv god kommentar til filter/exclude
+ // TODO
+ // There isnt really any way to exclude certain tags when searching for suggestions.
+ // This is important for the skip/take in the endpoint. We do not want to get the tags from database that we already have picked.
+ // Forexample: we have 10 different tags that includes "berry" (and searched for "berry") and we have a skip of 0 and take of 5.
+ // If we already has picked lets say 4 of them, the list will only show 1 more, even though there is more remaining in the database.
byQuery(group: TagResponseModel['group'], culture: string, query: string) {
return this._data.getObservablePart((items) =>
From d0b285ba9a1f7e0d0974aeb79c112f83c37fa5b5 Mon Sep 17 00:00:00 2001
From: Lone Iversen <108085781+loivsen@users.noreply.github.com>
Date: Tue, 9 May 2023 10:44:43 +0200
Subject: [PATCH 14/20] culture todo
---
.../src/backoffice/tags/repository/tag.repository.ts | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/tags/repository/tag.repository.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/repository/tag.repository.ts
index 37efa072a2..c244f5ce90 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/tags/repository/tag.repository.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/tags/repository/tag.repository.ts
@@ -42,10 +42,15 @@ export class UmbTagRepository {
if (data) {
// TODO: allow to append an array of items to the store
+ // TODO: append culture? "Invariant" if null.
data.items.forEach((x) => this.#tagStore?.append(x));
}
- return { data, error, asObservable: () => this.#tagStore!.byQuery(tagGroupName, requestCulture, query) };
+ return {
+ data,
+ error,
+ asObservable: () => this.#tagStore!.byQuery(tagGroupName, requestCulture, query),
+ };
}
async queryTags(
From b43baf928712ea77307936cd622ccb2731e83188 Mon Sep 17 00:00:00 2001
From: Lone Iversen <108085781+loivsen@users.noreply.github.com>
Date: Tue, 9 May 2023 12:02:04 +0200
Subject: [PATCH 15/20] move tags
---
.../src/backoffice/core/components/index.ts | 1 -
.../core/property-editors/uis/manifests.ts | 2 --
.../src/backoffice/tags/components/index.ts | 1 +
.../tags-input/tags-input.element.ts | 7 ++++++-
.../tags-input/tags-input.stories.ts | 0
.../src/backoffice/tags/index.ts | 6 ++++--
.../tags/property-editors/Umbraco.Tags.ts | 19 +++++++++++++++++++
.../tags/property-editors/manifests.ts | 4 ++++
.../tags/config/storage-type/manifests.ts | 0
...rty-editor-ui-tags-storage-type.element.ts | 0
...rty-editor-ui-tags-storage-type.stories.ts | 0
...operty-editor-ui-tags-storage-type.test.ts | 0
.../property-editors}/tags/manifests.ts | 0
.../tags/property-editor-ui-tags.element.ts | 5 +++--
.../tags/property-editor-ui-tags.stories.ts | 0
.../tags/property-editor-ui-tags.test.ts | 0
16 files changed, 37 insertions(+), 8 deletions(-)
create mode 100644 src/Umbraco.Web.UI.Client/src/backoffice/tags/components/index.ts
rename src/Umbraco.Web.UI.Client/src/backoffice/{core => tags}/components/tags-input/tags-input.element.ts (98%)
rename src/Umbraco.Web.UI.Client/src/backoffice/{core => tags}/components/tags-input/tags-input.stories.ts (100%)
create mode 100644 src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/Umbraco.Tags.ts
create mode 100644 src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/manifests.ts
rename src/Umbraco.Web.UI.Client/src/backoffice/{core/property-editors/uis => tags/property-editors}/tags/config/storage-type/manifests.ts (100%)
rename src/Umbraco.Web.UI.Client/src/backoffice/{core/property-editors/uis => tags/property-editors}/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts (100%)
rename src/Umbraco.Web.UI.Client/src/backoffice/{core/property-editors/uis => tags/property-editors}/tags/config/storage-type/property-editor-ui-tags-storage-type.stories.ts (100%)
rename src/Umbraco.Web.UI.Client/src/backoffice/{core/property-editors/uis => tags/property-editors}/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts (100%)
rename src/Umbraco.Web.UI.Client/src/backoffice/{core/property-editors/uis => tags/property-editors}/tags/manifests.ts (100%)
rename src/Umbraco.Web.UI.Client/src/backoffice/{core/property-editors/uis => tags/property-editors}/tags/property-editor-ui-tags.element.ts (92%)
rename src/Umbraco.Web.UI.Client/src/backoffice/{core/property-editors/uis => tags/property-editors}/tags/property-editor-ui-tags.stories.ts (100%)
rename src/Umbraco.Web.UI.Client/src/backoffice/{core/property-editors/uis => tags/property-editors}/tags/property-editor-ui-tags.test.ts (100%)
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/components/index.ts b/src/Umbraco.Web.UI.Client/src/backoffice/core/components/index.ts
index 594c53e7f4..a485d7735e 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/core/components/index.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/core/components/index.ts
@@ -36,7 +36,6 @@ import './input-eye-dropper/input-eye-dropper.element';
import './input-multi-url-picker/input-multi-url-picker.element';
import './input-slider/input-slider.element';
import './input-toggle/input-toggle.element';
-import './tags-input/tags-input.element';
import './input-upload-field/input-upload-field.element';
import './property-type-based-property/property-type-based-property.element';
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/manifests.ts
index 8ee7084153..d0975419e2 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/manifests.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/manifests.ts
@@ -10,7 +10,6 @@ import { manifest as multipleTextString } from './multiple-text-string/manifests
import { manifest as textArea } from './textarea/manifests';
import { manifest as slider } from './slider/manifests';
import { manifest as toggle } from './toggle/manifests';
-import { manifests as tags } from './tags/manifests';
import { manifest as markdownEditor } from './markdown-editor/manifests';
import { manifest as radioButtonList } from './radio-button-list/manifests';
import { manifest as checkboxList } from './checkbox-list/manifests';
@@ -66,7 +65,6 @@ export const manifests: Array = [
...blockGrid,
...collectionView,
...tinyMCE,
- ...tags,
{
type: 'propertyEditorUI',
alias: 'Umb.PropertyEditorUI.Number',
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/tags/components/index.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/components/index.ts
new file mode 100644
index 0000000000..a4fa49584b
--- /dev/null
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/tags/components/index.ts
@@ -0,0 +1 @@
+export * from './tags-input/tags-input.element';
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/components/tags-input/tags-input.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/components/tags-input/tags-input.element.ts
similarity index 98%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/components/tags-input/tags-input.element.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/components/tags-input/tags-input.element.ts
index edacc9e74d..0d0b0fd37c 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/core/components/tags-input/tags-input.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/tags/components/tags-input/tags-input.element.ts
@@ -4,7 +4,7 @@ import { customElement, property, query, queryAll, state } from 'lit/decorators.
import { FormControlMixin } from '@umbraco-ui/uui-base/lib/mixins';
import { repeat } from 'lit/directives/repeat.js';
import { UUIInputElement, UUIInputEvent, UUITagElement } from '@umbraco-ui/uui';
-import { UmbTagRepository } from '../../../tags/repository/tag.repository';
+import { UmbTagRepository } from '../../repository/tag.repository';
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
import { TagResponseModel } from '@umbraco-cms/backoffice/backend-api';
@@ -47,6 +47,11 @@ export class UmbTagsInputElement extends FormControlMixin(UmbLitElement) {
#repository = new UmbTagRepository(this);
+ constructor() {
+ super();
+ console.log('tags-input');
+ }
+
public focus() {
this._tagInput.focus();
}
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/components/tags-input/tags-input.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/components/tags-input/tags-input.stories.ts
similarity index 100%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/components/tags-input/tags-input.stories.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/components/tags-input/tags-input.stories.ts
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/tags/index.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/index.ts
index 98398a7edb..8b556a6664 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/tags/index.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/tags/index.ts
@@ -1,8 +1,10 @@
import { manifests as repositoryManifests } from './repository/manifests';
-
+import { manifests as propertyEditorManifests } from './property-editors/manifests';
import { UmbEntrypointOnInit } from '@umbraco-cms/backoffice/extensions-api';
-export const manifests = [...repositoryManifests];
+import './components';
+
+export const manifests = [...repositoryManifests, ...propertyEditorManifests];
export const onInit: UmbEntrypointOnInit = (host, extensionRegistry) => {
extensionRegistry.registerMany(manifests);
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/Umbraco.Tags.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/Umbraco.Tags.ts
new file mode 100644
index 0000000000..5385d679b3
--- /dev/null
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/Umbraco.Tags.ts
@@ -0,0 +1,19 @@
+import type { ManifestPropertyEditorModel } from '@umbraco-cms/backoffice/extensions-registry';
+
+export const manifest: ManifestPropertyEditorModel = {
+ type: 'propertyEditorModel',
+ name: 'Tags',
+ alias: 'Umbraco.Tags',
+ meta: {
+ config: {
+ properties: [
+ {
+ alias: 'startNodeId',
+ label: 'Start node',
+ description: '',
+ propertyEditorUI: 'Umb.PropertyEditorUI.Tags',
+ },
+ ],
+ },
+ },
+};
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/manifests.ts
new file mode 100644
index 0000000000..1f987be412
--- /dev/null
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/manifests.ts
@@ -0,0 +1,4 @@
+import { manifests as tagsUI } from './tags/manifests';
+import type { ManifestTypes } from '@umbraco-cms/backoffice/extensions-registry';
+
+export const manifests: Array = [...tagsUI];
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/config/storage-type/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/config/storage-type/manifests.ts
similarity index 100%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/config/storage-type/manifests.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/config/storage-type/manifests.ts
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts
similarity index 100%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.element.ts
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/config/storage-type/property-editor-ui-tags-storage-type.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.stories.ts
similarity index 100%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/config/storage-type/property-editor-ui-tags-storage-type.stories.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.stories.ts
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts
similarity index 100%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/config/storage-type/property-editor-ui-tags-storage-type.test.ts
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/manifests.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/manifests.ts
similarity index 100%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/manifests.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/manifests.ts
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/property-editor-ui-tags.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.element.ts
similarity index 92%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/property-editor-ui-tags.element.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.element.ts
index f557538fbb..87fe03e2e4 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/property-editor-ui-tags.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.element.ts
@@ -2,8 +2,8 @@ import { html } from 'lit';
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
import { customElement, property, state } from 'lit/decorators.js';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { UmbTagsInputElement } from '../../../components/tags-input/tags-input.element';
-import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '../../../components/workspace-property/workspace-property.context';
+import { UmbTagsInputElement } from '../../components/tags-input/tags-input.element';
+import { UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN } from '../../../core/components/workspace-property/workspace-property.context';
import { UmbPropertyEditorExtensionElement } from '@umbraco-cms/backoffice/extensions-registry';
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
import { DataTypePropertyPresentationModel } from '@umbraco-cms/backoffice/backend-api';
@@ -34,6 +34,7 @@ export class UmbPropertyEditorUITagsElement extends UmbLitElement implements Umb
constructor() {
super();
+ console.log('ui tags');
this.consumeContext(UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN, (context) => {
this.observe(context.variantId, (id) => {
if (id && id.culture !== undefined) {
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/property-editor-ui-tags.stories.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.stories.ts
similarity index 100%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/property-editor-ui-tags.stories.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.stories.ts
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/property-editor-ui-tags.test.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.test.ts
similarity index 100%
rename from src/Umbraco.Web.UI.Client/src/backoffice/core/property-editors/uis/tags/property-editor-ui-tags.test.ts
rename to src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.test.ts
From 2843181cc793a62708151eca4838ed732a9f1a2f Mon Sep 17 00:00:00 2001
From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Date: Wed, 10 May 2023 10:00:42 +0200
Subject: [PATCH 16/20] set backoffice path to slash
---
src/Umbraco.Web.UI.Client/src/app.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Umbraco.Web.UI.Client/src/app.ts b/src/Umbraco.Web.UI.Client/src/app.ts
index 67bd2eb16a..7c299b310f 100644
--- a/src/Umbraco.Web.UI.Client/src/app.ts
+++ b/src/Umbraco.Web.UI.Client/src/app.ts
@@ -40,7 +40,7 @@ export class UmbAppElement extends UmbLitElement {
*/
@property({ type: String })
// TODO: get from server config
- private backofficePath = import.meta.env.DEV ? '' : '/umbraco';
+ private backofficePath = import.meta.env.DEV ? '/' : '/umbraco';
private _routes: UmbRoute[] = [
{
From 0535051d04ee5234feabea3b3b4ed9e0f8d413a4 Mon Sep 17 00:00:00 2001
From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Date: Wed, 10 May 2023 09:36:58 +0200
Subject: [PATCH 17/20] add docs for authentication
---
.../docs/authentication.md | 65 +++++++++++++++++++
1 file changed, 65 insertions(+)
create mode 100644 src/Umbraco.Web.UI.Client/docs/authentication.md
diff --git a/src/Umbraco.Web.UI.Client/docs/authentication.md b/src/Umbraco.Web.UI.Client/docs/authentication.md
new file mode 100644
index 0000000000..91f3b38e5e
--- /dev/null
+++ b/src/Umbraco.Web.UI.Client/docs/authentication.md
@@ -0,0 +1,65 @@
+# Authentication
+
+## What is this?
+
+You can now authorize against the Management API using OpenID Connect. Most endpoints will soon require a token, albeit they are open for now.
+
+## How does it work?
+
+You need to authorize against the Management API using OpenID Connect if you want to access protected endpoints running on a real Umbraco instance. This will give you a token that you can use to access the API. The token is stored in local storage and will be used for all subsequent requests.
+
+If you are running the backoffice locally, you can use the `VITE_UMBRACO_USE_MSW` environment variable to bypass the OpenID Connect flow and use mocked responses instead by setting it to `on` in the `.env.local` file.
+
+## How to use
+
+There are two ways to use this:
+
+### Running directly in the Umbraco-CMS repository
+
+1. Checkout the `v13/dev` branch of [Umbraco-CMS](https://github.com/umbraco/Umbraco-cms/tree/v13/dev)
+2. Run `git submodule update --init` to initialize and pull down the backoffice repository
+ 1. If you are using a Git GUI client, you might need to do this manually
+3. Go to src/Umbraco.Web.UI.New or switch default startup project to "Umbraco.Web.UI.New"
+4. Start the backend server: `dotnet run` or run the project from your IDE
+5. Access https://localhost:44339/umbraco and complete the installation of Umbraco
+6. You should see the log in screen after installation
+7. Log in using the credentials you provided during installation
+
+### Running with Vite
+
+1. Perform steps 1 to 5 from before
+2. Open this file in an editor: `src/Umbraco.Web.UI.New/appsettings.Development.json`
+3. Add this to the Umbraco.CMS section to override the backoffice host:
+
+```json
+"Umbraco": {
+ "CMS": {
+ "NewBackOffice":{
+ "BackOfficeHost": "http://localhost:5173"
+ },
+ },
+ [...]
+}
+```
+
+4. Set Vite to use Umbraco API by copying the ".env" file to ".env.local" and setting the following:
+
+```
+VITE_UMBRACO_USE_MSW=off
+VITE_UMBRACO_API_URL=https://localhost:44339
+```
+
+5. Start the vite server: `npm run dev` in your backoffice folder
+6. Check that you are sent to the login page
+7. Log in
+
+## To test a secure endpoint
+
+If you want to mark an endpoint as secure, you can add the `[Authorize]` attribute to the controller or action. This will require you to be logged in to access the endpoint.
+
+## What does not work yet
+
+- You cannot log out through the UI
+ - Clear your local storage to log out for now
+- If your session expires or your token is revoked, you will start getting 401 network errors, which for now only will be shown as a notification in the UI - we need to figure out how to send you back to log in
+- We do not _yet_ poll to see if the token is still valid or check how long before you are logged out, so you won't be notified before trying to perfor actions that require a token
From c8f53b63b86ee6e9f97f2af6c71b2a73ce94341c Mon Sep 17 00:00:00 2001
From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Date: Wed, 10 May 2023 09:37:10 +0200
Subject: [PATCH 18/20] add a link from the readme to authentication.md
---
src/Umbraco.Web.UI.Client/.github/README.md | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/Umbraco.Web.UI.Client/.github/README.md b/src/Umbraco.Web.UI.Client/.github/README.md
index 5d50e21a29..52bcd87919 100644
--- a/src/Umbraco.Web.UI.Client/.github/README.md
+++ b/src/Umbraco.Web.UI.Client/.github/README.md
@@ -27,10 +27,15 @@ The development environment is the default environment and is used when running
### Run against a local Umbraco instance
+> **Note**
+> Make sure you have followed the [Authentication guide](../docs/authentication.md) before continuing.
+
+If you have a local Umbraco instance running, you can use the development environment to run against it by overriding the API URL and bypassing the mock-service-worker in the frontend client.
+
Create a `.env.local` file and set the following variables:
```bash
-VITE_UMBRACO_API_URL=http://localhost:5000 # This will be the URL to your Umbraco instance
+VITE_UMBRACO_API_URL=https://localhost:44339 # This will be the URL to your Umbraco instance
VITE_UMBRACO_USE_MSW=off # Indicate that you want all API calls to bypass MSW (mock-service-worker)
```
From cb3c84e4c09e5e0191bfb5f8af49d0be1a9cf580 Mon Sep 17 00:00:00 2001
From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Date: Wed, 10 May 2023 10:05:20 +0200
Subject: [PATCH 19/20] add new appsetting to docs
---
src/Umbraco.Web.UI.Client/docs/authentication.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Umbraco.Web.UI.Client/docs/authentication.md b/src/Umbraco.Web.UI.Client/docs/authentication.md
index 91f3b38e5e..0ab31d4be6 100644
--- a/src/Umbraco.Web.UI.Client/docs/authentication.md
+++ b/src/Umbraco.Web.UI.Client/docs/authentication.md
@@ -35,7 +35,8 @@ There are two ways to use this:
"Umbraco": {
"CMS": {
"NewBackOffice":{
- "BackOfficeHost": "http://localhost:5173"
+ "BackOfficeHost": "http://localhost:5173",
+ "AuthorizeCallbackPathName": "/"
},
},
[...]
From fe23177893467218dd42ffaa6b89d4b97560932c Mon Sep 17 00:00:00 2001
From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Date: Wed, 10 May 2023 10:21:52 +0200
Subject: [PATCH 20/20] remove console.log
---
.../property-editors/tags/property-editor-ui-tags.element.ts | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.element.ts
index 87fe03e2e4..e46ba4b81e 100644
--- a/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/backoffice/tags/property-editors/tags/property-editor-ui-tags.element.ts
@@ -34,7 +34,6 @@ export class UmbPropertyEditorUITagsElement extends UmbLitElement implements Umb
constructor() {
super();
- console.log('ui tags');
this.consumeContext(UMB_WORKSPACE_PROPERTY_CONTEXT_TOKEN, (context) => {
this.observe(context.variantId, (id) => {
if (id && id.culture !== undefined) {