mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 23:22:06 -05:00
Merge branch 'master' of https://gitlab.insrt.uk/revolt/revite
This commit is contained in:
commit
cb797c9689
4 changed files with 15 additions and 3 deletions
BIN
public/assets/icons/masking-512x512.png
Normal file
BIN
public/assets/icons/masking-512x512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
BIN
public/assets/icons/mono-48x48.png
Normal file
BIN
public/assets/icons/mono-48x48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 665 B |
|
@ -137,7 +137,7 @@ self.addEventListener("push", (event) => {
|
||||||
: JSON.stringify(data.content),
|
: JSON.stringify(data.content),
|
||||||
timestamp: decodeTime(data._id),
|
timestamp: decodeTime(data._id),
|
||||||
tag: data.channel,
|
tag: data.channel,
|
||||||
badge: "https://app.revolt.chat/assets/icons/android-chrome-512x512.png",
|
badge: "https://app.revolt.chat/assets/icons/mono-48x48.png",
|
||||||
data:
|
data:
|
||||||
channel?.channel_type === "TextChannel"
|
channel?.channel_type === "TextChannel"
|
||||||
? `/server/${channel.server}/channel/${channel._id}`
|
? `/server/${channel.server}/channel/${channel._id}`
|
||||||
|
|
|
@ -38,7 +38,7 @@ function getVersion() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const branch = getGitBranch();
|
const branch = getGitBranch();
|
||||||
const isNightly = branch !== 'production';
|
const isNightly = false;//branch !== 'production';
|
||||||
const iconPrefix = isNightly ? 'nightly-' : '';
|
const iconPrefix = isNightly ? 'nightly-' : '';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
@ -54,8 +54,8 @@ export default defineConfig({
|
||||||
description: isNightly ? "Early preview builds of Revolt." : "User-first, privacy-focused chat platform.",
|
description: isNightly ? "Early preview builds of Revolt." : "User-first, privacy-focused chat platform.",
|
||||||
categories: ["messaging"],
|
categories: ["messaging"],
|
||||||
start_url: "/",
|
start_url: "/",
|
||||||
|
orientation: "any",
|
||||||
display: "standalone",
|
display: "standalone",
|
||||||
orientation: "portrait",
|
|
||||||
background_color: "#101823",
|
background_color: "#101823",
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
|
@ -67,6 +67,18 @@ export default defineConfig({
|
||||||
"src": `/assets/icons/${iconPrefix}android-chrome-512x512.png`,
|
"src": `/assets/icons/${iconPrefix}android-chrome-512x512.png`,
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"sizes": "512x512"
|
"sizes": "512x512"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": `/assets/icons/mono-48x48.png`,
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "48x48",
|
||||||
|
"purpose": "monochrome"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": `/assets/icons/masking-512x512.png`,
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"purpose": "maskable"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue