Skip to content

Commit 1c43a04

Browse files
committed
register poc dashboard apps
1 parent dd38157 commit 1c43a04

File tree

13 files changed

+282
-1
lines changed

13 files changed

+282
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The files in this folder is positioned here temporarily. They will be moved to the correct location later.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
2+
import { html, customElement, css } from '@umbraco-cms/backoffice/external/lit';
3+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
4+
5+
const elementName = 'umb-training-intro-dashboard-app';
6+
@customElement(elementName)
7+
export class UmbCertificationIntroDashboardAppElement extends UmbLitElement {
8+
override render() {
9+
return html`
10+
<p>
11+
<umb-localize key="settingsDashboard_trainingDescription"></umb-localize>
12+
</p>
13+
<uui-button
14+
look="outline"
15+
href="https://umbraco.com/training/"
16+
label=${this.localize.term('settingsDashboard_getCertified')}
17+
target="_blank"
18+
rel="noopener"></uui-button>
19+
`;
20+
}
21+
22+
static override styles = [
23+
UmbTextStyles,
24+
css`
25+
p {
26+
margin-top: 0;
27+
}
28+
`,
29+
];
30+
}
31+
32+
export { UmbCertificationIntroDashboardAppElement as element };
33+
34+
declare global {
35+
interface HTMLElementTagNameMap {
36+
[elementName]: UmbCertificationIntroDashboardAppElement;
37+
}
38+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';
2+
3+
export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> = [
4+
{
5+
type: 'dashboardApp',
6+
alias: 'Umb.DashboardApp.CertificationIntro',
7+
name: 'Certification Intro Dashboard App',
8+
weight: 400,
9+
element: () => import('./certification-intro-dashboard-app.element.js'),
10+
meta: {
11+
headline: '#settingsDashboard_trainingHeader',
12+
size: 'small',
13+
},
14+
},
15+
];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
2+
import { html, customElement, css } from '@umbraco-cms/backoffice/external/lit';
3+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
4+
5+
const elementName = 'umb-community-intro-dashboard-app';
6+
@customElement(elementName)
7+
export class UmbCommunityIntroDashboardAppElement extends UmbLitElement {
8+
override render() {
9+
return html`
10+
<p>
11+
<umb-localize key="settingsDashboard_communityDescription"></umb-localize>
12+
</p>
13+
<uui-button
14+
look="outline"
15+
href="https://our.umbraco.com/forum"
16+
label=${this.localize.term('settingsDashboard_goForum')}
17+
target="_blank"
18+
rel="noopener"></uui-button>
19+
<uui-button
20+
look="outline"
21+
href="https://discord.umbraco.com"
22+
label=${this.localize.term('settingsDashboard_chatWithCommunity')}
23+
target="_blank"
24+
rel="noopener"></uui-button>
25+
`;
26+
}
27+
28+
static override styles = [
29+
UmbTextStyles,
30+
css`
31+
p {
32+
margin-top: 0;
33+
}
34+
`,
35+
];
36+
}
37+
38+
export { UmbCommunityIntroDashboardAppElement as element };
39+
40+
declare global {
41+
interface HTMLElementTagNameMap {
42+
[elementName]: UmbCommunityIntroDashboardAppElement;
43+
}
44+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';
2+
3+
export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> = [
4+
{
5+
type: 'dashboardApp',
6+
alias: 'Umb.DashboardApp.CommunityIntro',
7+
name: 'Community Intro Dashboard App',
8+
weight: 400,
9+
element: () => import('./community-intro-dashboard-app.element.js'),
10+
meta: {
11+
headline: '#settingsDashboard_communityHeader',
12+
size: 'small',
13+
},
14+
},
15+
];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
2+
import { html, customElement, css } from '@umbraco-cms/backoffice/external/lit';
3+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
4+
5+
const elementName = 'umb-documentation-intro-dashboard-app';
6+
@customElement(elementName)
7+
export class UmbDocumentationIntroDashboardAppElement extends UmbLitElement {
8+
override render() {
9+
return html`
10+
<p>
11+
<umb-localize key="settingsDashboard_documentationDescription"></umb-localize>
12+
</p>
13+
<uui-button
14+
look="outline"
15+
href="https://docs.umbraco.com/umbraco-cms/umbraco-cms"
16+
label=${this.localize.term('settingsDashboard_getHelp')}
17+
target="_blank"
18+
rel="noopener"></uui-button>
19+
`;
20+
}
21+
22+
static override styles = [
23+
UmbTextStyles,
24+
css`
25+
p {
26+
margin-top: 0;
27+
}
28+
`,
29+
];
30+
}
31+
32+
export { UmbDocumentationIntroDashboardAppElement as element };
33+
34+
declare global {
35+
interface HTMLElementTagNameMap {
36+
[elementName]: UmbDocumentationIntroDashboardAppElement;
37+
}
38+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';
2+
3+
export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> = [
4+
{
5+
type: 'dashboardApp',
6+
alias: 'Umb.DashboardApp.DocumentationIntro',
7+
name: 'Documentation Intro Dashboard App',
8+
weight: 400,
9+
element: () => import('./documentation-intro-dashboard-app.element.js'),
10+
meta: {
11+
headline: '#settingsDashboard_documentationHeader',
12+
size: 'small',
13+
},
14+
},
15+
{
16+
type: 'dashboardApp',
17+
alias: 'Umb.DashboardApp.VideosIntro',
18+
name: 'Videos Intro Dashboard App',
19+
weight: 400,
20+
element: () => import('./videos-intro-dashboard-app.element.js'),
21+
meta: {
22+
headline: '#settingsDashboard_videosHeader',
23+
size: 'small',
24+
},
25+
},
26+
];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
2+
import { html, customElement, css } from '@umbraco-cms/backoffice/external/lit';
3+
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
4+
5+
const elementName = 'umb-videos-intro-dashboard-app';
6+
@customElement(elementName)
7+
export class UmbVideosIntroDashboardAppElement extends UmbLitElement {
8+
override render() {
9+
return html`
10+
<p>
11+
<umb-localize key="settingsDashboard_videosDescription"></umb-localize>
12+
</p>
13+
<uui-button
14+
look="outline"
15+
href="https://www.youtube.com/c/UmbracoLearningBase"
16+
label=${this.localize.term('settingsDashboard_watchVideos')}
17+
target="_blank"
18+
rel="noopener"></uui-button>
19+
`;
20+
}
21+
22+
static override styles = [
23+
UmbTextStyles,
24+
css`
25+
p {
26+
margin-top: 0;
27+
}
28+
`,
29+
];
30+
}
31+
32+
export { UmbVideosIntroDashboardAppElement as element };
33+
34+
declare global {
35+
interface HTMLElementTagNameMap {
36+
[elementName]: UmbVideosIntroDashboardAppElement;
37+
}
38+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { manifests as communityManifests } from './community/manifests.js';
2+
import { manifests as documentationManifests } from './documentation/manifests.js';
3+
import { manifests as supportManifests } from './support/manifests.js';
4+
import { manifests as trainingManifests } from './certification/manifests.js';
5+
import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';
6+
7+
export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> = [
8+
...communityManifests,
9+
...documentationManifests,
10+
...supportManifests,
11+
...trainingManifests,
12+
];
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { UmbExtensionManifestKind } from '@umbraco-cms/backoffice/extension-registry';
2+
3+
export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> = [
4+
{
5+
type: 'dashboardApp',
6+
alias: 'Umb.DashboardApp.SupportIntro',
7+
name: 'Support Intro Dashboard App',
8+
weight: 400,
9+
element: () => import('./support-intro-dashboard-app.element.js'),
10+
meta: {
11+
headline: '#settingsDashboard_supportHeader',
12+
size: 'small',
13+
},
14+
},
15+
];

0 commit comments

Comments
 (0)