ea34058fa7
* chore(vite): use vite * fix(vite): alias lib directory * chore(vite): set type: module * chore: update vite and MUI * fix(vite): make MUI components load * fix: use node path resolution * chore(vite): add svg support * fix(vite): polyfill global * fix(vite): use import.meta * fix(vite): use correct svg module resolution * chore(vite): migrate to vitest * fix(vite): remove PUBLIC_URL * fix(tests): mock audio service * chore(deps): upgrade to react test library 14 * refactor(tests): simplify room test setup * refactor(tests): make Date.now() mockable * refactor(vite): remove bootstrap shim * chore(deps): drop react-scripts * chore(deps): remove source-map-explorer Source maps do not currently work with MUI and Vite: https://github.com/vitejs/vite/issues/15012 Because of this, source map utilities are currently removed. * refactor(vite): use TypeScript for Vite config * chore(actions): update actions config for new paths * fix(service-worker): use VITE_HOMEPAGE for service worker resolution * fix(vercel): use quotes for build command * fix(vite): use import.meta.env.MODE * fix(service-worker): use correct definition for publicUrl * feat(vite): use vite-plugin-pwa * fix(pwa): make update prompt work * fix(types): use vite/client types * docs(readme): update building instructions * refactor(vite): simplify theme loading workaround * refactor(vite): use manifest object * docs(readme): update tool references * chore(deps): run `npm audit fix` * fix(vite): make syntax highlighter work consistently See: https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/513 * fix(pwa): remove manifest.json references * refactor(deps): remove jest references * refactor(types): remove react-scripts reference * chore(deps): use TypeScript 5 * refactor(tests): improve persisted storage mocking
92 lines
2.0 KiB
TypeScript
92 lines
2.0 KiB
TypeScript
import { ManifestOptions } from 'vite-plugin-pwa'
|
|
|
|
export const manifest: Partial<ManifestOptions> = {
|
|
short_name: 'Chitchatter',
|
|
name: 'Chitchatter',
|
|
description:
|
|
'This is a communication tool that is free, open source, and designed for simplicity and security. All communication between you and your online peers is encrypted. There is no trace of your conversation once you leave.',
|
|
icons: [
|
|
{
|
|
src: 'favicon.ico',
|
|
sizes: '64x64 32x32 24x24 16x16',
|
|
type: 'image/x-icon',
|
|
},
|
|
{
|
|
src: 'logo192.png',
|
|
type: 'image/png',
|
|
sizes: '192x192',
|
|
},
|
|
{
|
|
src: 'logo512.png',
|
|
type: 'image/png',
|
|
sizes: '512x512',
|
|
},
|
|
],
|
|
start_url: './',
|
|
display: 'fullscreen',
|
|
theme_color: '#000000',
|
|
background_color: '#222222',
|
|
screenshots: [
|
|
{
|
|
src: 'screenshots/home-desktop.png',
|
|
sizes: '2160x1620',
|
|
type: 'image/png',
|
|
},
|
|
{
|
|
src: 'screenshots/public-room-desktop.png',
|
|
sizes: '2160x1620',
|
|
type: 'image/png',
|
|
},
|
|
{
|
|
src: 'screenshots/public-room-desktop-with-video.png',
|
|
sizes: '2160x1620',
|
|
type: 'image/png',
|
|
},
|
|
{
|
|
src: 'screenshots/home-mobile-dark.png',
|
|
sizes: '750x1334',
|
|
type: 'image/png',
|
|
form_factor: 'narrow',
|
|
},
|
|
{
|
|
src: 'screenshots/home-mobile-light.png',
|
|
sizes: '750x1334',
|
|
type: 'image/png',
|
|
form_factor: 'narrow',
|
|
},
|
|
{
|
|
src: 'screenshots/public-room-mobile.png',
|
|
sizes: '750x1334',
|
|
type: 'image/png',
|
|
form_factor: 'narrow',
|
|
},
|
|
],
|
|
|
|
shortcuts: [
|
|
{
|
|
name: 'About',
|
|
url: './about',
|
|
icons: [
|
|
{
|
|
src: 'logo512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
purpose: 'any',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'Disclaimer',
|
|
url: './disclaimer',
|
|
icons: [
|
|
{
|
|
src: 'logo512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
purpose: 'any',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|