mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
feat: add uploaded property (#145)
This commit is contained in:
parent
1f79cd90ec
commit
0a58d98b9f
2 changed files with 16 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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}`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue