${statusBadge(alert.status, alert.labels.severity)}
${alert.labels.alertname}: ${alert.annotations.description.replaceAll("\n","
")}
source | ${silenceLink(alert, externalURL)}
`) 62 | result = { 63 | version: 'v2', 64 | plain: plainErrors.join(`\n\n`), 65 | html: htmlErrors.join(`/
as the public path for webhook delivery. This path is now deprecated and /gitlab/webhook
should be used wherever possible.
28 | action
field in the body of the
36 | request which means they won't show up in the room. You can check the logs to see
37 | if the request made it through, however.
38 | {props.description}
23 |Notifications {config.notifications ? "Enabled" : "Disabled"}
17 |You have no configured filters.
11 | 12 |Choose which event should send a notification to the room
58 |90 | Logged in as {authState.user?.name ?? ""}.{" "} 91 | 92 | Logout 93 | 94 |
95 | ); 96 | }; 97 | -------------------------------------------------------------------------------- /web/components/roomConfig/FeedConnection.module.scss: -------------------------------------------------------------------------------- 1 | .resultListItem { 2 | list-style: none; 3 | padding-bottom: 1rem; 4 | } 5 | -------------------------------------------------------------------------------- /web/components/roomConfig/RoomConfig.module.scss: -------------------------------------------------------------------------------- 1 | .header { 2 | display: flex; 3 | flex-direction: row; 4 | align-items: flex-start; 5 | 6 | img { 7 | width: 52px; 8 | height: 52px; 9 | } 10 | 11 | @media (prefers-color-scheme: dark) { 12 | img.invert { 13 | filter: invert(100%); 14 | } 15 | } 16 | 17 | h1 { 18 | margin-left: 10px; 19 | font-weight: 600; 20 | font-size: 18px; 21 | line-height: 24px; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /web/context.ts: -------------------------------------------------------------------------------- 1 | import { createContext } from "preact"; 2 | import type { BridgeAPI } from "./BridgeAPI"; 3 | 4 | interface IBridgeContext { 5 | bridgeApi: BridgeAPI; 6 | } 7 | 8 | const fakeBridgeContext = { 9 | get bridgeApi(): BridgeAPI { 10 | throw Error("No context provided"); 11 | }, 12 | }; 13 | 14 | export const BridgeContext = createContext
35 | {errcode}
{error}
36 |
47 | You will need to wait for an administrator of the {serviceName}{" "} 48 | {oauthKind} instance to approve the new installation. If you think 49 | this is a mistake, contact the administrator of your organisation. 50 |
51 | > 52 | ); 53 | } else if (result === "success") { 54 | return ( 55 | <> 56 |You may close this window.
60 | > 61 | ); 62 | } 63 | return ( 64 | <> 65 |69 | This is an unknown state, you may need to contact your systems 70 | administrator. 71 |
72 | > 73 | ); 74 | } 75 | 76 | if (root) { 77 | render(