mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 18:01:23 +02:00
Rename taktik → times across the entire app: package names (@taktik → @times), appId, localStorage keys, export filenames, type names (TaktikSettings → TimesSettings), monorepo scripts, shared-branding, mana-auth trustedOrigins, docker-compose, and documentation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
60 lines
1.3 KiB
TypeScript
60 lines
1.3 KiB
TypeScript
import tailwindcss from '@tailwindcss/vite';
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
|
|
import { defineConfig } from 'vite';
|
|
import { getBuildDefines } from '@manacore/shared-vite-config';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
tailwindcss(),
|
|
sveltekit(),
|
|
SvelteKitPWA({
|
|
registerType: 'autoUpdate',
|
|
manifest: {
|
|
name: 'Times',
|
|
short_name: 'Times',
|
|
description: 'Zeiterfassung & Timetracking',
|
|
theme_color: '#f59e0b',
|
|
background_color: '#0f172a',
|
|
display: 'standalone',
|
|
icons: [
|
|
{
|
|
src: 'pwa-192x192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png',
|
|
},
|
|
{
|
|
src: 'pwa-512x512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
},
|
|
],
|
|
shortcuts: [
|
|
{
|
|
name: 'Timer starten',
|
|
short_name: 'Timer',
|
|
url: '/?action=start',
|
|
icons: [{ src: 'icons/icon.svg', sizes: '96x96' }],
|
|
},
|
|
{
|
|
name: 'Neuer Eintrag',
|
|
short_name: 'Eintrag',
|
|
url: '/entries?action=new',
|
|
icons: [{ src: 'icons/icon.svg', sizes: '96x96' }],
|
|
},
|
|
],
|
|
},
|
|
workbox: {
|
|
globPatterns: ['client/**/*.{js,css,ico,png,svg,webp,woff,woff2}'],
|
|
},
|
|
}),
|
|
],
|
|
server: {
|
|
port: 5197,
|
|
strictPort: true,
|
|
},
|
|
preview: {
|
|
port: 5197,
|
|
},
|
|
define: getBuildDefines(),
|
|
});
|