diff --git a/.env.development b/.env.development index 4c4ce5dc..09c46958 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,2 @@ -VITE_USE_FAKE_TORRENTS=true +VITE_USE_FAKE_TORRENTS=false VITE_FAKE_TORRENT_COUNT=30 \ No newline at end of file diff --git a/env.d.ts b/env.d.ts index d9f24faa..b24071a9 100644 --- a/env.d.ts +++ b/env.d.ts @@ -2,3 +2,8 @@ declare module '*.vue' { import Vue from 'vue' export default Vue } + +declare module 'vuetify/lib/framework' { + import Vuetify from 'vuetify'; + export default Vuetify; +} diff --git a/src/actions/Torrents.js b/src/actions/Torrents.js index 24c1299b..0f342a7c 100644 --- a/src/actions/Torrents.js +++ b/src/actions/Torrents.js @@ -18,7 +18,8 @@ export class Torrents { store.state.torrents = data.map(t => new Torrent(t)) // load fake torrents if enabled - if (isProduction() && !import.meta.env.VITE_USE_FAKE_TORRENTS) return + if (isProduction()) return + if(import.meta.env.VITE_USE_FAKE_TORRENTS == 'false') return const count = import.meta.env.VITE_FAKE_TORRENT_COUNT store.state.torrents.push(...generateMultiple(count)) } diff --git a/src/store/actions.js b/src/store/actions.js index 7c21c403..f68265bb 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -4,9 +4,9 @@ import { i18n } from '../plugins/i18n' export default { INIT_INTERVALS: async context => { - // context.state.intervals[0] = setInterval(() => { - // context.commit('updateMainData') - // }, 2000) + context.state.intervals[0] = setInterval(() => { + context.commit('updateMainData') + }, 2000) }, LOGIN: async (context, payload) => { const res = await qbit.login(payload) diff --git a/tsconfig.json b/tsconfig.json index 30895676..e6e422ad 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "paths": { "@/*": ["src/*"] }, - "lib": ["esnext", "dom", "dom.iterable", "scripthost"] + "lib": ["WebWorker"] }, "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], "exclude": ["node_modules"]