-
Notifications
You must be signed in to change notification settings - Fork 2.9k
V16: Adds server context to store information about paths #18967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a377b67
fix: straightens out unnecessary imports of components and re-exports…
iOvergaard 9f7b1a8
fix: imports repository from file directly
iOvergaard 0452c6b
feat: introduces a "server" package and moves UmbAppContext logic to …
iOvergaard 78933ec
feat: updates all cases of `UmbAppContext` -> `UmbServerContext`
iOvergaard f6083f3
build: adjusts MAX_CIRCULAR_DEPENDENCIES from 6 to 3
iOvergaard 97b0d16
Update src/Umbraco.Web.UI.Client/devops/circular/index.js
iOvergaard b7c1d7a
feat: removes unused interface
iOvergaard 8e76877
Merge branch 'v16/feature/server-context' of https://github.com/umbra…
iOvergaard a75ae4b
build: adds server bundle to vite
iOvergaard 7734195
build: vite should build index barrel
iOvergaard 289b4f3
build: readjust to 5 to account for previous failed build
iOvergaard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
src/Umbraco.Web.UI.Client/src/apps/app/app-context-config.interface.ts
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,2 @@ | ||
| export type * from './app-context-config.interface.js'; | ||
| export * from './app-logo.element.js'; | ||
| export * from './app.element.js'; | ||
| export * from './app.context.js'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| export * from './network-connection-status.manager.js'; | ||
| export * from './server-connection.js'; | ||
| export * from './server.context-token.js'; | ||
| export * from './server.context.js'; | ||
|
|
||
| export type * from './types.js'; |
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
src/Umbraco.Web.UI.Client/src/packages/core/server/server.context-token.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import type { UmbServerContext } from './server.context.js'; | ||
| import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; | ||
|
|
||
| export const UMB_SERVER_CONTEXT = new UmbContextToken<UmbServerContext>('UmbServerContext'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/Umbraco.Web.UI.Client/src/packages/core/server/types.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import type { UmbServerConnection } from './server-connection.js'; | ||
|
|
||
| export interface UmbServerContextConfig { | ||
| /** | ||
| * The server URL to use for the context. | ||
| */ | ||
| serverUrl: string; | ||
| /** | ||
| * The backoffice path to use for the context. | ||
| */ | ||
| backofficePath: string; | ||
| /** | ||
| * The server connection to use for the context. | ||
| */ | ||
| serverConnection: UmbServerConnection; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/Umbraco.Web.UI.Client/src/packages/media/media/components/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| import './input-media/index.js'; | ||
|
|
||
| export * from './input-rich-media/index.js'; | ||
| export * from './input-media/index.js'; | ||
| export * from './input-image-cropper/index.js'; | ||
| export * from './input-media/index.js'; | ||
| export * from './input-rich-media/index.js'; | ||
| export * from './input-upload-field/index.js'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-image-cropper/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,8 @@ | ||
| export * from './input-image-cropper.element.js'; | ||
| export * from './crop-change.event.js'; | ||
| export * from './focalpoint-change.event.js'; | ||
| export * from './image-cropper-field.element.js'; | ||
| export * from './image-cropper-focus-setter.element.js'; | ||
| export * from './image-cropper-preview.element.js'; | ||
| export * from './image-cropper.element.js'; | ||
| export * from './input-image-cropper.element.js'; | ||
| export type * from './types.js'; |
1 change: 1 addition & 0 deletions
1
src/Umbraco.Web.UI.Client/src/packages/media/media/components/input-upload-field/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.