Skip to content

Commit ffab08b

Browse files
committed
Update various brand instances in code
1 parent 0667ede commit ffab08b

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

src/components/structures/VectorEmbeddedPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { _t } from 'matrix-react-sdk/src/languageHandler';
2525
export default class VectorEmbeddedPage extends EmbeddedPage {
2626
static replaces = 'EmbeddedPage';
2727

28-
// we're overriding the base component here, for Riot-specific tweaks
28+
// we're overriding the base component here, for Element-specific tweaks
2929
translate(s) {
3030
s = sanitizeHtml(_t(s));
3131
// ugly fix for https://github.com/vector-im/riot-web/issues/4243

src/vector/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en" style="height: 100%;">
33
<head>
44
<meta charset="utf-8">
5-
<title>Riot</title>
5+
<title>Element</title>
66
<link rel="apple-touch-icon" sizes="57x57" href="<%= require('../../res/vector-icons/apple-touch-icon-57.png') %>">
77
<link rel="apple-touch-icon" sizes="60x60" href="<%= require('../../res/vector-icons/apple-touch-icon-60.png') %>">
88
<link rel="apple-touch-icon" sizes="72x72" href="<%= require('../../res/vector-icons/apple-touch-icon-72.png') %>">
@@ -16,8 +16,8 @@
1616
<meta name="referrer" content="no-referrer">
1717
<link rel="shortcut icon" href="<%= require('../../res/vector-icons/favicon.ico') %>">
1818
<meta name="viewport" content="width=device-width, initial-scale=1">
19-
<meta name="apple-mobile-web-app-title" content="Riot">
20-
<meta name="application-name" content="Riot">
19+
<meta name="apple-mobile-web-app-title" content="Element">
20+
<meta name="application-name" content="Element">
2121
<meta name="msapplication-TileColor" content="#da532c">
2222
<meta name="msapplication-TileImage" content="<%= require('../../res/vector-icons/mstile-150.png') %>">
2323
<meta name="msapplication-config" content="<%= require('../../res/vector-icons/browserconfig.xml') %>">
@@ -51,7 +51,7 @@
5151
} %>
5252
</head>
5353
<body style="height: 100%; margin: 0;" data-vector-indexeddb-worker-script="<%= htmlWebpackPlugin.files.chunks['indexeddb-worker'].entry %>">
54-
<noscript>Sorry, Riot requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
54+
<noscript>Sorry, Element requires JavaScript to be enabled.</noscript> <!-- TODO: Translate this? -->
5555
<section id="matrixchat" style="height: 100%; overflow: auto;" class="notranslate"></section>
5656
<script src="<%= htmlWebpackPlugin.files.chunks['bundle'].entry %>"></script>
5757

src/vector/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async function start() {
121121
const isIos = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
122122
const isAndroid = /Android/.test(navigator.userAgent);
123123
if (isIos || isAndroid) {
124-
if (document.cookie.indexOf("riot_mobile_redirect_to_guide=false") === -1) {
124+
if (document.cookie.indexOf("element_mobile_redirect_to_guide=false") === -1) {
125125
window.location.href = "mobile_guide/";
126126
return;
127127
}

src/vector/jitsi/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let widgetApi: WidgetApi;
5555
const parentUrl = qsParam('parentUrl', true);
5656
const widgetId = qsParam('widgetId', true);
5757

58-
// Set this up as early as possible because Riot will be hitting it almost immediately.
58+
// Set this up as early as possible because Element will be hitting it almost immediately.
5959
if (parentUrl && widgetId) {
6060
widgetApi = new WidgetApi(qsParam('parentUrl'), qsParam('widgetId'), [
6161
Capability.AlwaysOnScreen,

src/vector/mobile_guide/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
</g>
163163
</svg>
164164
</span>
165-
<p>Set up Riot on iOS or Android</p>
165+
<p>Set up Element on iOS or Android</p>
166166
</div>
167167
<div class="mx_HomePage_col">
168168
<div class="mx_HomePage_row">
@@ -330,7 +330,7 @@ <h2 id="step1_heading">Install the app</h2>
330330
<div class="mx_HomePage_row">
331331
<div>
332332
<h2>2: Configure your app</h2>
333-
<a class="mx_Button" id="configure_riot_button" href="#">Configure</a>
333+
<a class="mx_Button" id="configure_element_button" href="#">Configure</a>
334334
<p class="mx_Subtext mx_SubtextTop">Tap the button above, or manually enable <em>Use custom server</em> and enter:</p>
335335
<p class="mx_Subtext">Homeserver: <em id="hs_url"></em></p>
336336
<p class="mx_Subtext" id="custom_is">Identity Server: <em id="is_url"></em></p>
@@ -339,7 +339,7 @@ <h2>2: Configure your app</h2>
339339
</div>
340340
<div class="mx_HomePage_row mx_Center mx_Spacer">
341341
<p class="mx_Spacer">
342-
<a id="back_to_riot_button" href="#" class="mx_FooterLink">
342+
<a id="back_to_element_button" href="#" class="mx_FooterLink">
343343
Go to Desktop Site
344344
</a>
345345
</p>

src/vector/mobile_guide/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import {getVectorConfig} from '../getconfig';
22

3-
function onBackToRiotClick() {
3+
function onBackToElementClick() {
44
// Cookie should expire in 4 hours
5-
document.cookie = 'riot_mobile_redirect_to_guide=false;path=/;max-age=14400';
5+
document.cookie = 'element_mobile_redirect_to_guide=false;path=/;max-age=14400';
66
window.location.href = '../';
77
}
88

99
// NEVER pass user-controlled content to this function! Hardcoded strings only please.
1010
function renderConfigError(message) {
1111
const contactMsg = "If this is unexpected, please contact your system administrator " +
1212
"or technical support representative.";
13-
message = `<h2>Error loading Riot</h2><p>${message}</p><p>${contactMsg}</p>`;
13+
message = `<h2>Error loading Element</h2><p>${message}</p><p>${contactMsg}</p>`;
1414

1515
const toHide = document.getElementsByClassName("mx_HomePage_container");
1616
const errorContainers = document.getElementsByClassName("mx_HomePage_errorContainer");
@@ -27,7 +27,7 @@ function renderConfigError(message) {
2727
}
2828

2929
async function initPage() {
30-
document.getElementById('back_to_riot_button').onclick = onBackToRiotClick;
30+
document.getElementById('back_to_element_button').onclick = onBackToElementClick;
3131

3232
let config = await getVectorConfig('..');
3333

@@ -92,7 +92,7 @@ async function initPage() {
9292
if (isUrl && !isUrl.endsWith('/')) isUrl += '/';
9393

9494
if (hsUrl !== 'https://matrix.org/') {
95-
document.getElementById('configure_riot_button').href =
95+
document.getElementById('configure_element_button').href =
9696
"https://app.element.io/config/config?hs_url=" + encodeURIComponent(hsUrl) +
9797
"&is_url=" + encodeURIComponent(isUrl);
9898
document.getElementById('step1_heading').innerHTML= '1: Install the app';

src/vector/platform/WebPlatform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export default class WebPlatform extends VectorBasePlatform {
186186
let appName = u.format();
187187
// Remove leading slashes if present
188188
appName = appName.replace(/^\/\//, "");
189-
// `appName` is now in the format `riot.im/develop`.
189+
// `appName` is now in the format `develop.element.io`.
190190

191191
const ua = new UAParser();
192192
const browserName = ua.getBrowser().name || "unknown browser";

src/vector/static/incompatible-browser.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ <h1>Unsupported browser</h1>
168168
<div class="mx_HomePage_col">
169169
<div class="mx_HomePage_row">
170170
<div>
171-
<h2 id="step1_heading">Your browser can't run Riot</h2>
172-
<p>Riot uses many advanced browser features, some of which are not available or experimental in your current browser.</p>
171+
<h2 id="step1_heading">Your browser can't run Element</h2>
172+
<p>Element uses many advanced browser features, some of which are not available or experimental in your current browser.</p>
173173
<p>Please install <a href="https://www.google.com/chrome">Chrome</a>, <a href="https://firefox.com">Firefox</a>,
174174
or <a href="https://apple.com/safari">Safari</a> for the best experience.</p>
175175
</div>
@@ -178,7 +178,7 @@ <h2 id="step1_heading">Your browser can't run Riot</h2>
178178
<div class="mx_HomePage_col">
179179
<div class="mx_HomePage_row">
180180
<div>
181-
<h2 id="step2_heading">Use Riot on mobile</h2>
181+
<h2 id="step2_heading">Use Element on mobile</h2>
182182
<p><strong>iOS</strong> (iPhone or iPad)</p>
183183
<a href="https://itunes.apple.com/app/riot-im/id1083446067?mt=8" target="_blank"
184184
class="mx_ClearDecoration">

src/vector/static/unable-to-load.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ <h1>Unable to load</h1>
182182
<div class="mx_HomePage_col">
183183
<div class="mx_HomePage_row">
184184
<div>
185-
<h2 id="step1_heading">Riot can't load</h2>
186-
<p>Something went wrong and Riot was unable to load.</p>
185+
<h2 id="step1_heading">Element can't load</h2>
186+
<p>Something went wrong and Element was unable to load.</p>
187187
</div>
188188
</div>
189189
</div>

0 commit comments

Comments
 (0)