fix: fix branding issues, mobile app urls etc.

This commit is contained in:
2025-12-30 19:15:47 +01:00
committed by Joël
parent f078c65017
commit df2d56073c
14 changed files with 103 additions and 26 deletions
+6 -6
View File
@@ -16,7 +16,7 @@ import { type DeepPartial, type DeepReadonly, type Defaultize } from "./@types/c
// see element-web config.md for docs, or the IConfigOptions interface for dev docs
export const DEFAULTS: DeepReadonly<IConfigOptions> = {
brand: "Element",
brand: "HealthChat",
branding: {
logo_link_url: "https://element.io",
auth_header_logo_url: "themes/element/img/logos/element-logo.svg",
@@ -43,7 +43,7 @@ export const DEFAULTS: DeepReadonly<IConfigOptions> = {
// everyone's config which has the camelCase property because our default would
// be preferred over their config.
desktopBuilds: {
available: true,
available: false,
// eslint-disable-next-line @typescript-eslint/no-require-imports
logo: require("../res/img/element-desktop-logo.svg").default,
url: "https://element.io/get-started",
@@ -56,7 +56,7 @@ export const DEFAULTS: DeepReadonly<IConfigOptions> = {
},
desktop_builds: {
available: true,
available: false,
logo: "vector-icons/1024.png",
url: "https://element.io/download",
url_macos: "https://packages.element.io/desktop/install/macos/Element.dmg",
@@ -65,9 +65,9 @@ export const DEFAULTS: DeepReadonly<IConfigOptions> = {
url_linux: "https://element.io/download#linux",
},
mobile_builds: {
ios: "https://apps.apple.com/app/vector/id1083446067",
android: "https://play.google.com/store/apps/details?id=im.vector.app",
fdroid: "https://f-droid.org/repository/browse/?fdid=im.vector.app",
ios: "https://apps.apple.com/ch/app/healthchat/id6743060078",
android: "https://play.google.com/store/apps/details?id=ch.healthchat.element",
fdroid: "",
},
};
@@ -33,7 +33,7 @@ export const ErrorView: React.FC<IProps> = ({ title, messages, footer, children
className="mx_ErrorView_logo"
height="160"
src="themes/element/img/logos/element-app-logo.png"
alt="Element"
alt="HealthChat"
/>
<div className="mx_ErrorView_container">
<Heading size="md" weight="semibold">
@@ -119,7 +119,7 @@ export const UnsupportedBrowserView: React.FC<{
onAccept?(this: void): void;
}> = ({ onAccept }) => {
const config = SdkConfig.get();
const brand = config.brand ?? "Element";
const brand = config.brand ?? "HealthChat";
const hasDesktopBuilds =
config.desktop_builds?.available &&
+3 -3
View File
@@ -2,7 +2,7 @@
<html lang="en" style="height: 100%;">
<head>
<meta charset="utf-8">
<title>Element</title>
<title>HealthChat</title>
<link rel="apple-touch-icon" sizes="120x120" href="<%= require('../../res/vector-icons/120.png') %>">
<link rel="apple-touch-icon" sizes="144x144" href="<%= require('../../res/vector-icons/144.png') %>">
<link rel="apple-touch-icon" sizes="152x152" href="<%= require('../../res/vector-icons/152.png') %>">
@@ -13,8 +13,8 @@
<link rel="icon" type="image/png" sizes="144x144" href="<%= require('../../res/vector-icons/144.png') %>">
<link rel="icon" type="image/png" sizes="512x512" href="<%= require('../../res/vector-icons/512.png') %>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-title" content="Element">
<meta name="application-name" content="Element">
<meta name="apple-mobile-web-app-title" content="HealthChat">
<meta name="application-name" content="HealthChat">
<meta name="theme-color" content="#ffffff">
<meta property="og:image" content="<%= og_image_url %>" />
<meta http-equiv="Content-Security-Policy" content="