Skip to content

Commit a8ef985

Browse files
committed
feat: add Eclipse Hosted Services integration with legal information dialog
1 parent 7a27265 commit a8ef985

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* Eclipse Hosted Services integration for the public demo (e.g. docks.eclipse.dev).
3+
*
4+
* Deployment: app.kispace.de today; CNAME to docks.eclipse.dev after EF approval — then EF
5+
* Hosted Services Policy applies to you as Service Operator for that deployment.
6+
*
7+
* - Legal: toolbar entry + dialog (required footer content).
8+
* - No third-party analytics or cookie banners: this demo does not use user tracking or
9+
* marketing cookies by design.
10+
* - This demo does not collect PI or use Eclipse OIDC. If that changes, follow EF policy
11+
* (OIDC, eclipse.org-gdpr, DPIA, security contacts).
12+
*/
13+
14+
import {
15+
contributionRegistry,
16+
infoDialog,
17+
TOOLBAR_BOTTOM_END,
18+
type HTMLContribution,
19+
} from '@eclipse-docks/core';
20+
import { html } from '@eclipse-docks/core/externals/lit';
21+
22+
const ECLIPSE_LEGAL_HTML = `
23+
<p><strong>Copyright © Eclipse Foundation AISBL. All Rights Reserved.</strong></p>
24+
<ul>
25+
<li><a href="https://www.eclipse.org/" target="_blank" rel="noopener noreferrer">Eclipse Foundation</a></li>
26+
<li><a href="https://www.eclipse.org/legal/privacy/" target="_blank" rel="noopener noreferrer">Privacy Policy</a></li>
27+
<li><a href="https://www.eclipse.org/legal/terms-of-use/" target="_blank" rel="noopener noreferrer">Website Terms of Use</a></li>
28+
<li><a href="https://www.eclipse.org/legal/compliance/" target="_blank" rel="noopener noreferrer">Compliance</a></li>
29+
<li><a href="https://www.eclipse.org/legal/" target="_blank" rel="noopener noreferrer">Legal</a></li>
30+
</ul>
31+
`.trim();
32+
33+
function openEclipseLegalDialog(): void {
34+
void infoDialog('Eclipse legal', ECLIPSE_LEGAL_HTML, true);
35+
}
36+
37+
contributionRegistry.registerContribution(
38+
TOOLBAR_BOTTOM_END,
39+
{
40+
label: 'Eclipse legal',
41+
slot: 'end',
42+
component: () => html`
43+
<wa-button
44+
appearance="plain"
45+
variant="brand"
46+
size="small"
47+
title="Eclipse Foundation legal information"
48+
@click=${openEclipseLegalDialog}
49+
>
50+
Eclipse legal
51+
</wa-button>
52+
`,
53+
} as HTMLContribution,
54+
);

packages/app/src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { TOOLBAR_MAIN, appLoaderService, contributionRegistry, type HTMLContribu
22
import { html } from '@eclipse-docks/core/externals/lit';
33
import { fetchReleases } from "@eclipse-docks/extension-github-service";
44

5+
import './eclipse-hosted-services';
56
import './dashboard-layout';
67

78
contributionRegistry.registerContribution(TOOLBAR_MAIN, {

0 commit comments

Comments
 (0)