Changes to the client
parent
1a246943ff
commit
ea16579148
97
index.html
97
index.html
|
|
@ -1,77 +1,52 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" background="#191919">
|
<html lang="en" background="#191919">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
|
||||||
<!--App Title-->
|
<!--App Title-->
|
||||||
<title>Revolt</title>
|
<title>One Chat</title>
|
||||||
<meta name="apple-mobile-web-app-title" content="Revolt" />
|
<meta name="apple-mobile-web-app-title" content="Revolt" />
|
||||||
|
|
||||||
<!--App Scaling-->
|
<!--App Scaling-->
|
||||||
<meta
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
|
||||||
name="viewport"
|
|
||||||
content="width=device-width, initial-scale=1.0, user-scalable=no"
|
|
||||||
/>
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
|
|
||||||
<!--App Icons-->
|
<!--App Icons-->
|
||||||
<link
|
<link rel="apple-touch-icon" href="public/assets/icons/apple-touch.png" />
|
||||||
rel="apple-touch-icon"
|
|
||||||
href="public/assets/icons/apple-touch.png"
|
|
||||||
/>
|
|
||||||
<link rel="icon" type="image/png" href="/assets/logo_round.png" />
|
<link rel="icon" type="image/png" href="/assets/logo_round.png" />
|
||||||
|
|
||||||
<!--Splash Screens for iOS Devices-->
|
<!--Splash Screens for iOS Devices-->
|
||||||
<link
|
<link href="public/assets/splashscreens/iphone5_splash.png"
|
||||||
href="public/assets/splashscreens/iphone5_splash.png"
|
|
||||||
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)"
|
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
<link href="public/assets/splashscreens/iphone6_splash.png"
|
||||||
<link
|
|
||||||
href="public/assets/splashscreens/iphone6_splash.png"
|
|
||||||
media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)"
|
media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
<link href="public/assets/splashscreens/iphoneplus_splash.png"
|
||||||
<link
|
|
||||||
href="public/assets/splashscreens/iphoneplus_splash.png"
|
|
||||||
media="(device-width: 621px) and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)"
|
media="(device-width: 621px) and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
<link href="public/assets/splashscreens/iphonex_splash.png"
|
||||||
<link
|
|
||||||
href="public/assets/splashscreens/iphonex_splash.png"
|
|
||||||
media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)"
|
media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
<link href="public/assets/splashscreens/iphonexr_splash.png"
|
||||||
<link
|
|
||||||
href="public/assets/splashscreens/iphonexr_splash.png"
|
|
||||||
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2)"
|
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
<link href="public/assets/splashscreens/iphonexsmax_splash.png"
|
||||||
<link
|
|
||||||
href="public/assets/splashscreens/iphonexsmax_splash.png"
|
|
||||||
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3)"
|
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
<link href="public/assets/splashscreens/ipad_splash.png"
|
||||||
<link
|
|
||||||
href="public/assets/splashscreens/ipad_splash.png"
|
|
||||||
media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)"
|
media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
<link href="public/assets/splashscreens/ipadpro1_splash.png"
|
||||||
<link
|
|
||||||
href="public/assets/splashscreens/ipadpro1_splash.png"
|
|
||||||
media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)"
|
media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
<link href="public/assets/splashscreens/ipadpro3_splash.png"
|
||||||
<link
|
|
||||||
href="public/assets/splashscreens/ipadpro3_splash.png"
|
|
||||||
media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2)"
|
media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
<link href="public/assets/splashscreens/ipadpro2_splash.png"
|
||||||
<link
|
|
||||||
href="public/assets/splashscreens/ipadpro2_splash.png"
|
|
||||||
media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)"
|
media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)"
|
||||||
rel="apple-touch-startup-image"
|
rel="apple-touch-startup-image" />
|
||||||
/>
|
|
||||||
|
|
||||||
<!--CSS for noscript screen-->
|
<!--CSS for noscript screen-->
|
||||||
<style>
|
<style>
|
||||||
|
|
@ -88,7 +63,8 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
noscript > div {
|
|
||||||
|
noscript>div {
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
display: flex;
|
display: flex;
|
||||||
font-family: "Open Sans", sans-serif;
|
font-family: "Open Sans", sans-serif;
|
||||||
|
|
@ -96,17 +72,20 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
noscript > div > h1 {
|
|
||||||
|
noscript>div>h1 {
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
noscript > div > p {
|
|
||||||
|
noscript>div>p {
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
noscript > div > a {
|
|
||||||
|
noscript>div>a {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
padding: 8px 10px;
|
padding: 8px 10px;
|
||||||
|
|
@ -119,14 +98,17 @@
|
||||||
color: white;
|
color: white;
|
||||||
transition: background-color 0.2s;
|
transition: background-color 0.2s;
|
||||||
}
|
}
|
||||||
noscript > div > a:hover {
|
|
||||||
|
noscript>div>a:hover {
|
||||||
background-color: #cf4848;
|
background-color: #cf4848;
|
||||||
}
|
}
|
||||||
noscript > div > a:active {
|
|
||||||
|
noscript>div>a:active {
|
||||||
background-color: #b64141;
|
background-color: #b64141;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.tsx"></script>
|
<script type="module" src="/src/main.tsx"></script>
|
||||||
|
|
@ -136,8 +118,9 @@
|
||||||
<h1>Well, this is really awkward...</h1>
|
<h1>Well, this is really awkward...</h1>
|
||||||
<p>Seems like your JavaScript is disabled.</p>
|
<p>Seems like your JavaScript is disabled.</p>
|
||||||
<p>You'll need to enable JavaScript to run this app.</p>
|
<p>You'll need to enable JavaScript to run this app.</p>
|
||||||
<a href="https://app.revolt.chat" target="_blank">Reload</a>
|
<a href="https://onech.at" target="_blank">Reload</a>
|
||||||
</div>
|
</div>
|
||||||
</noscript>
|
</noscript>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
||||||
|
|
@ -252,23 +252,6 @@ export const Form = observer(({ page, callback }: Props) => {
|
||||||
<Text id="login.resend" />
|
<Text id="login.resend" />
|
||||||
</Link>
|
</Link>
|
||||||
</span>
|
</span>
|
||||||
{!IS_REVOLT && (
|
|
||||||
<>
|
|
||||||
<br />
|
|
||||||
<Tip palette="primary">
|
|
||||||
<span>
|
|
||||||
<Text id="login.unofficial_instance" />{" "}
|
|
||||||
<a
|
|
||||||
href="https://developers.revolt.chat/faq/instances#what-is-a-third-party-instance"
|
|
||||||
style={{ color: "var(--accent)" }}
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer">
|
|
||||||
<Text id="general.learn_more" />
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</Tip>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{(page === "reset" ||
|
{(page === "reset" ||
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,8 @@ export default defineConfig({
|
||||||
filename: "sw.ts",
|
filename: "sw.ts",
|
||||||
strategies: "injectManifest",
|
strategies: "injectManifest",
|
||||||
manifest: {
|
manifest: {
|
||||||
name: "Revolt",
|
name: "One Chat",
|
||||||
short_name: "Revolt",
|
short_name: "onech.at",
|
||||||
description: "User-first, privacy-focused chat platform.",
|
description: "User-first, privacy-focused chat platform.",
|
||||||
categories: ["communication", "chat", "messaging"],
|
categories: ["communication", "chat", "messaging"],
|
||||||
start_url: "/",
|
start_url: "/",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue