Skip to content

Commit af5fdb9

Browse files
committed
Restore custom fork defaults
1 parent 1dc71ae commit af5fdb9

7 files changed

Lines changed: 7 additions & 17 deletions

File tree

frontend/src/ts/components/layout/footer/VersionButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function VersionButton(): JSXElement {
1212
const [indicatorVisible, setIndicatorVisible] = createSignal(true);
1313
const getVersionText = (): string => {
1414
if (isDevEnvironment()) {
15-
return "localhost";
15+
return "martinnn.com";
1616
}
1717
return getVersion().text;
1818
};

frontend/src/ts/components/layout/header/Logo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function Logo(): JSXElement {
5151
)}
5252
data-ui-element="logoSubtext"
5353
>
54-
{isDevEnvironment() ? "localhost" : "monkey see"}
54+
{isDevEnvironment() ? "martinnn.com" : "monkey see"}
5555
</div>
5656
<h1
5757
class={cn("-mt-[0.11em] text-text transition-colors duration-250", {

frontend/src/ts/constants/default-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const obj: Config = {
2929
time: 30,
3030
mode: "time",
3131
quoteLength: [1],
32-
language: "english",
32+
language: "bemba",
3333
fontSize: 2,
3434
freedomMode: false,
3535
difficulty: "normal",
@@ -39,7 +39,7 @@ const obj: Config = {
3939
paceCaretStyle: "default",
4040
flipTestColors: false,
4141
layout: "default",
42-
funbox: [],
42+
funbox: ["bigram_crunch"],
4343
confidenceMode: "off",
4444
indicateTypos: "off",
4545
compositionDisplay: "replace",

frontend/src/ts/firebase.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
getAdditionalUserInfo,
2424
} from "firebase/auth";
2525
import { promiseWithResolvers } from "./utils/misc";
26-
import { isDevEnvironment } from "./utils/env";
2726
import { createErrorMessage } from "./utils/error";
2827

2928
import {
@@ -32,7 +31,6 @@ import {
3231
} from "firebase/analytics";
3332
import { tryCatch } from "@monkeytype/util/trycatch";
3433
import { googleSignUpEvent } from "./events/google-sign-up";
35-
import { addBanner } from "./states/banners";
3634
import { setUserId } from "./states/core";
3735

3836
let app: FirebaseApp | undefined;
@@ -79,13 +77,7 @@ export async function init(callback: ReadyCallback): Promise<void> {
7977
console.error("Firebase failed to initialize", e);
8078
await callback(false, null);
8179
setUserId(null);
82-
if (isDevEnvironment()) {
83-
addBanner({
84-
level: "notice",
85-
text: "Dev Info: Firebase failed to initialize",
86-
icon: "fas fa-exclamation-triangle",
87-
});
88-
}
80+
// Firebase is intentionally unavailable on the custom public fork.
8981
} finally {
9082
resolveAuthPromise();
9183
}

frontend/src/ts/ready.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as Misc from "./utils/misc";
22
import * as MonkeyPower from "./elements/monkey-power";
3-
import * as MerchBanner from "./elements/merch-banner";
43
import * as ServerConfiguration from "./ape/server-configuration";
54
import { configLoadPromise } from "./config/lifecycle";
65
import { authPromise } from "./firebase";
@@ -17,7 +16,6 @@ onDOMReady(async () => {
1716
qs("body")?.setStyle({
1817
transition: "background .25s, transform .05s",
1918
});
20-
MerchBanner.showIfNotClosedBefore();
2119

2220
const app = document.querySelector("#app") as HTMLElement;
2321
app?.classList.remove("hidden");

frontend/src/ts/ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function setMediaQueryDebugLevel(level: number): void {
7373

7474
if (isDevEnvironment()) {
7575
qs("head title")?.setText(
76-
(qs("head title")?.native.textContent ?? "") + " (localhost)",
76+
(qs("head title")?.native.textContent ?? "") + " (martinnn.com)",
7777
);
7878
qs("body")?.appendHtml(
7979
`<div class="devIndicator tl">local</div><div class="devIndicator br">local</div>`,

frontend/src/ts/utils/misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export function reloadAfter(seconds: number): void {
487487
}
488488

489489
export function updateTitle(title?: string): void {
490-
const local = isDevEnvironment() ? "localhost - " : "";
490+
const local = isDevEnvironment() ? "martinnn.com - " : "";
491491

492492
if (title === undefined || title === "") {
493493
document.title =

0 commit comments

Comments
 (0)