Skip to content

Commit

Permalink
feat: add uploaded property (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef committed Feb 7, 2021
1 parent 1f79cd9 commit 0a58d98
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
20 changes: 10 additions & 10 deletions src/store/index.js
@@ -1,6 +1,9 @@
import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersist from 'vuex-persist'
import actions from './actions'
import getters from './getters'
import mutations from './mutations'

const vuexPersist = new VuexPersist({
key: 'vuetorrent',
Expand All @@ -14,10 +17,6 @@ const vuexPersist = new VuexPersist({

Vue.use(Vuex)

import getters from './getters'
import mutations from './mutations'
import actions from './actions'

export default new Vuex.Store({
plugins: [vuexPersist.plugin],
state: {
Expand Down Expand Up @@ -63,9 +62,10 @@ export default new Vuex.Store({
busyTorrentProperties: [
{ name: 'Size', active: true },
{ name: 'Progress', active: true },
{ name: 'Downloaded', active: true },
{ name: 'Download', active: true },
{ name: 'Upload', active: true },
{ name: 'Downloaded', active: true },
{ name: 'Uploaded', active: true },
{ name: 'ETA', active: true },
{ name: 'Peers', active: true },
{ name: 'Seeds', active: true },
Expand All @@ -79,9 +79,10 @@ export default new Vuex.Store({
doneTorrentProperties: [
{ name: 'Size', active: true },
{ name: 'Progress', active: true },
{ name: 'Downloaded', active: true },
{ name: 'Download', active: true },
{ name: 'Upload', active: true },
{ name: 'Downloaded', active: true },
{ name: 'Uploaded', active: true },
{ name: 'ETA', active: true },
{ name: 'Peers', active: true },
{ name: 'Seeds', active: true },
Expand All @@ -100,14 +101,13 @@ export default new Vuex.Store({
selectMode: false,
searchPlugins: []
},
actions: {
...actions
},
getters: {
...getters
},

mutations: {
...mutations
},
actions: {
...actions
}
})
8 changes: 6 additions & 2 deletions vue.config.js
@@ -1,4 +1,8 @@
const webpack = require('webpack')

const qBittorrentPort = process.env['QBITTORRENT_PORT'] ?? 8080
const vueTorrentPort = process.env['VUETORRENT_PORT'] ?? 8000

module.exports = {
chainWebpack: config => {
config
Expand Down Expand Up @@ -27,10 +31,10 @@ module.exports = {
poll: true
},
host: '0.0.0.0',
port: 8000,
port: `${vueTorrentPort}`,
proxy: {
'/api': {
target: 'http://localhost:8080'
target: `http://localhost:${qBittorrentPort}`
}
}
}
Expand Down

0 comments on commit 0a58d98

Please sign in to comment.