Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add uploaded property #145

Merged
merged 1 commit into from Feb 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why I didn't just set this to the value...

Suggested change
port: 8000,
port: vueTorrentPort,

Whoops 😅

port: `${vueTorrentPort}`,
proxy: {
'/api': {
target: 'http://localhost:8080'
target: `http://localhost:${qBittorrentPort}`
}
}
}
Expand Down