Merge branch 'main' of https://github.com/umbraco/Umbraco.CMS.Backoffice
This commit is contained in:
29
src/Umbraco.Web.UI.Client/.editorconfig
Normal file
29
src/Umbraco.Web.UI.Client/.editorconfig
Normal file
@@ -0,0 +1,29 @@
|
||||
# EditorConfig helps developers define and maintain consistent
|
||||
# coding styles between different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
|
||||
[*]
|
||||
|
||||
# Change these settings to your own preference
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# We recommend you to keep these unchanged
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.json]
|
||||
indent_size = 2
|
||||
|
||||
[*.{html,js,md}]
|
||||
block_comment_start = /**
|
||||
block_comment = *
|
||||
block_comment_end = */
|
||||
@@ -62,7 +62,7 @@ export class UmbLogin extends UmbContextConsumerMixin(LitElement) {
|
||||
await postUserLogin({ username, password, persist });
|
||||
this._loggingIn = false;
|
||||
// TODO: how do we know where to go?
|
||||
this._router?.push('/section/Content');
|
||||
this._router?.push('/section/content');
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
this._loggingIn = false;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { BehaviorSubject, Observable } from 'rxjs';
|
||||
|
||||
// TODO: how do we want to type extensions?
|
||||
export type UmbExtensionType = 'startUp' | 'section' | 'propertyEditor' | 'dashboard';
|
||||
export type UmbExtensionType = 'startUp' | 'section' | 'propertyEditorUI' | 'dashboard';
|
||||
|
||||
|
||||
export interface UmbExtensionManifestBase {
|
||||
@@ -19,7 +19,7 @@ export type UmbExtensionManifestSection = {
|
||||
} & UmbExtensionManifestBase;
|
||||
|
||||
export type UmbExtensionManifestPropertyEditor = {
|
||||
type: 'propertyEditor';
|
||||
type: 'propertyEditorUI';
|
||||
meta: UmbManifestPropertyEditorMeta;
|
||||
} & UmbExtensionManifestBase;
|
||||
|
||||
|
||||
@@ -83,18 +83,30 @@ const registerInternalManifests = async () => {
|
||||
weight: 10
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'propertyEditorUI',
|
||||
alias: 'Umb.PropertyEditorUI.Text',
|
||||
name: 'Text',
|
||||
elementName: 'umb-property-editor-text',
|
||||
js: () => import('./property-editors/property-editor-text.element'),
|
||||
meta: {
|
||||
icon: 'document',
|
||||
group: 'common',
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'propertyEditorUI',
|
||||
alias: 'Umb.PropertyEditorUI.Textarea',
|
||||
name: 'Textarea',
|
||||
elementName: 'umb-property-editor-textarea',
|
||||
js: () => import('./property-editors/property-editor-textarea.element'),
|
||||
meta: {
|
||||
icon: 'document',
|
||||
group: 'common',
|
||||
}
|
||||
},
|
||||
];
|
||||
manifests.forEach((manifest: UmbExtensionManifest) => extensionRegistry.register(manifest));
|
||||
|
||||
extensionRegistry.register({
|
||||
type: 'propertyEditor',
|
||||
alias: 'Umb.PropertyEditor.MyPropertyEditor',
|
||||
name: 'Settings',
|
||||
elementName: 'umb-settings-section',
|
||||
meta: {
|
||||
test: 20
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const setup = async () => {
|
||||
|
||||
Reference in New Issue
Block a user