fix: make timeout asisignable to number

This commit is contained in:
Leafd 2025-10-09 16:15:29 -04:00
parent 444fa8ef44
commit 50af8ae2ca
No known key found for this signature in database
GPG key ID: D44AE7A3699406BE
3 changed files with 16 additions and 2 deletions

View file

@ -57,7 +57,7 @@ const showApiKey = ref(false);
const hackatimeDirectories = ref<any>(null);
const sessionStats = ref<any>(null);
const presenceData = ref<any>(null);
const presenceRefreshInterval = ref<number | null>(null);
const presenceRefreshInterval = ref<ReturnType<typeof setInterval> | null>(null);
const presenceFetchInProgress = ref(false);
const oauthUrl = ref<string | null>(null);
const nextPresenceFetchAllowedAt = ref<number>(0);

View file

@ -144,7 +144,7 @@ const sessionState = ref<SessionState>({
});
const isLoading = ref(true);
let sessionRefreshInterval: number | null = null;
let sessionRefreshInterval: ReturnType<typeof setInterval> | null = null;
const userEmail = computed(() => {

View file

@ -14,6 +14,20 @@ export default defineConfig(async () => ({
__SENTRY_ENVIRONMENT__: JSON.stringify(process.env.SENTRY_ENVIRONMENT || 'development'),
},
build: {
rollupOptions: {
output: {
manualChunks: {
'vendor-vue': ['vue', 'vue-chartjs'],
'vendor-sentry': ['@sentry/vue'],
'vendor-charts': ['chart.js'],
'vendor-tauri': ['@tauri-apps/api', '@tauri-apps/plugin-deep-link', '@tauri-apps/plugin-opener', '@tauri-apps/plugin-process', '@tauri-apps/plugin-updater'],
'vendor-posthog': ['posthog-js'],
},
},
},
chunkSizeWarningLimit: 600,
},
clearScreen: false,