mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 21:59:40 +02:00
Add missing organization features for Teams functionality: - PUT /auth/organizations/:id - update organization - DELETE /auth/organizations/:id - delete organization - PATCH /auth/organizations/:orgId/members/:memberId/role - update member role - GET /auth/organizations/:id/invitations - list org invitations - GET /auth/invitations - list user invitations - DELETE /auth/invitations/:id - cancel or reject invitation
66 lines
1.3 KiB
TypeScript
66 lines
1.3 KiB
TypeScript
/**
|
|
* Default PWA Configuration Values
|
|
*/
|
|
|
|
import type { ManifestIcon } from './types.js';
|
|
|
|
/**
|
|
* Default dark background color for ManaCore apps
|
|
*/
|
|
export const DEFAULT_BACKGROUND_COLOR = '#09090b';
|
|
|
|
/**
|
|
* Default app categories
|
|
*/
|
|
export const DEFAULT_CATEGORIES = ['productivity', 'utilities'];
|
|
|
|
/**
|
|
* Default assets to include in PWA
|
|
*/
|
|
export const DEFAULT_INCLUDE_ASSETS = ['favicon.png', 'favicon.svg'];
|
|
|
|
/**
|
|
* Default glob patterns for precaching
|
|
*/
|
|
export const DEFAULT_GLOB_PATTERNS = ['**/*.{js,css,html,ico,png,svg,woff,woff2}'];
|
|
|
|
/**
|
|
* Default URL patterns to exclude from navigate fallback
|
|
*/
|
|
export const DEFAULT_NAVIGATE_FALLBACK_DENYLIST = [/^\/api/, /^\/auth/];
|
|
|
|
/**
|
|
* Default glob ignores (SQLite WASM for offline-first apps)
|
|
*/
|
|
export const DEFAULT_GLOB_IGNORES = ['**/*sqlite*'];
|
|
|
|
/**
|
|
* Standard PWA icon configuration
|
|
*/
|
|
export const DEFAULT_ICONS: ManifestIcon[] = [
|
|
{
|
|
src: 'pwa-192x192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png',
|
|
},
|
|
{
|
|
src: 'pwa-512x512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
},
|
|
{
|
|
src: 'pwa-512x512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
purpose: 'maskable',
|
|
},
|
|
];
|
|
|
|
/**
|
|
* Apple touch icon configuration
|
|
*/
|
|
export const APPLE_TOUCH_ICON = {
|
|
src: 'apple-touch-icon.png',
|
|
sizes: '180x180',
|
|
type: 'image/png',
|
|
};
|