feat: add uploaded property (#145)

This commit is contained in:
Jef LeCompte 2021-02-07 03:45:59 -05:00 committed by GitHub
parent 1f79cd90ec
commit 0a58d98b9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 12 deletions

View file

@ -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',
@ -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: {
@ -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 },
@ -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 },
@ -100,14 +101,13 @@ export default new Vuex.Store({
selectMode: false,
searchPlugins: []
},
actions: {
...actions
},
getters: {
...getters
},
mutations: {
...mutations
},
actions: {
...actions
}
})

View file

@ -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
@ -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}`
}
}
}