diff --git a/index.html b/index.html index 1b17417e..a7fccbac 100644 --- a/index.html +++ b/index.html @@ -1,11 +1,11 @@ - + - Revolt - + Stoat (Legacy) + { window.open( - "https://wiki.revolt.chat/notes/project/financial-support/", + "https://ko-fi.com/stoatchat", "_blank", ); }} diff --git a/src/components/navigation/right/MemberList.tsx b/src/components/navigation/right/MemberList.tsx index ff4c9a21..5cfb3189 100644 --- a/src/components/navigation/right/MemberList.tsx +++ b/src/components/navigation/right/MemberList.tsx @@ -121,7 +121,7 @@ export default function MemberList({ Offline users have temporarily been disabled for larger servers - see{" "} issue #178 diff --git a/src/context/Theme.tsx b/src/context/Theme.tsx index f079c9e9..12e0c0fa 100644 --- a/src/context/Theme.tsx +++ b/src/context/Theme.tsx @@ -78,6 +78,7 @@ export type Theme = Overrides & { css?: string; monospaceFont?: MonospaceFonts; "min-opacity"?: number; + "logo-filter"?: string; }; export type ComputedVariables = Theme & { @@ -288,6 +289,7 @@ export const PRESETS: Record = { "status-busy": "#F84848", "status-streaming": "#977EFF", "status-invisible": "#A5A5A5", + "logo-filter": "unset", }, dark: { accent: "#FD6671", @@ -316,6 +318,7 @@ export const PRESETS: Record = { "status-busy": "#F84848", "status-streaming": "#977EFF", "status-invisible": "#A5A5A5", + "logo-filter": "invert(1)", }, }; diff --git a/src/pages/home/Home.tsx b/src/pages/home/Home.tsx index 64a1216d..16dc8bb7 100644 --- a/src/pages/home/Home.tsx +++ b/src/pages/home/Home.tsx @@ -107,7 +107,10 @@ export default observer(() => {


- +

{ )} - + } - description={ - - }> - + description="Revolt is now Stoat and has a brand new app."> + {typeof window.native === "object" + ? "Download new app" + : "Switch to new app"} - + { href={action.href} target="_blank" rel="noreferrer"> -
{action.text}
{" "} +
+ {action.text} +
{" "}
) : null, )} @@ -59,7 +61,11 @@ export default observer(() => {
{!("native" in window) && ( - + )} diff --git a/src/pages/settings/Settings.module.scss b/src/pages/settings/Settings.module.scss index 8429ea90..ace67ae1 100644 --- a/src/pages/settings/Settings.module.scss +++ b/src/pages/settings/Settings.module.scss @@ -141,6 +141,10 @@ color: goldenrod !important; } + .newApp { + color: green !important; + } + .logOut, .deleteServer { color: var(--error) !important; diff --git a/src/pages/settings/Settings.tsx b/src/pages/settings/Settings.tsx index 2e5f5a55..0d987752 100644 --- a/src/pages/settings/Settings.tsx +++ b/src/pages/settings/Settings.tsx @@ -207,11 +207,6 @@ export default observer(() => { icon: , title: , }, - { - id: "feedback", - icon: , - title: , - }, ]} children={ @@ -263,16 +258,23 @@ export default observer(() => { category="pages" custom={ <> - - modalController.push({ type: "changelog" }) - }> - - - + {typeof window.native === "object" ? ( + + Download new app + + ) : ( + + Switch to new app + + )} @@ -281,7 +283,7 @@ export default observer(() => { @@ -309,7 +311,7 @@ export default observer(() => { { try { - const result = await navigator.mediaDevices.getUserMedia( - constraints, - ); + const result = + await navigator.mediaDevices.getUserMedia(constraints); setMediaStream(result); } catch (err) { @@ -96,28 +95,14 @@ export function Audio() {
- We are currently{" "} + Legacy voice is no longer supported,{" "} - rebuilding the client - {" "} - and{" "} - - the voice server - {" "} - from scratch. -
-
- The old voice should work in most cases, but it may - inexplicably not connect in some scenarios and / or - exhibit weird behaviour. + href="https://stoat.chat/app" + target="_blank"> + use the new app + + . diff --git a/src/revision.ts b/src/revision.ts index 93402bf7..769dc063 100644 --- a/src/revision.ts +++ b/src/revision.ts @@ -1,7 +1,7 @@ /* eslint-disable */ // Strings needs to be explictly stated here as they can cause type issues elsewhere. -export const REPO_URL: string = "https://github.com/revoltchat/revite/commit"; +export const REPO_URL: string = "https://github.com/stoatchat/for-legacy-web/commit"; export const GIT_REVISION: string = "__GIT_REVISION__"; export const GIT_BRANCH: string = "__GIT_BRANCH__";