|
| 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 | +); |
0 commit comments