mirror of
https://github.com/System-End/hackatime-desktop.git
synced 2026-04-19 15:18:22 +00:00
fix: make timeout asisignable to number
This commit is contained in:
parent
444fa8ef44
commit
50af8ae2ca
3 changed files with 16 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue