mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-24 18:36:14 +03:00
update
This commit is contained in:
parent
c5f9fa496b
commit
f74d378895
7 changed files with 2056 additions and 1962 deletions
|
@ -35,7 +35,6 @@ Easiest way is with docker-compose:
|
|||
ports:
|
||||
- "4000:4000"
|
||||
environment:
|
||||
- VUE_APP_DOMAIN=http://172.18.0.4:4000
|
||||
- VUE_APP_WEB_USER=vuetr
|
||||
- VUE_APP_WEB_PASS=vuetr
|
||||
- QBIT_USER=qbit
|
||||
|
|
3967
package-lock.json
generated
3967
package-lock.json
generated
File diff suppressed because it is too large
Load diff
36
package.json
36
package.json
|
@ -9,42 +9,42 @@
|
|||
"start": "nodemon server/server.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"apexcharts": "^3.8.4",
|
||||
"apexcharts": "^3.10.1",
|
||||
"axios": "^0.18.1",
|
||||
"cors": "^2.8.5",
|
||||
"date-fns": "^1.30.1",
|
||||
"dotenv": "^8.0.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"express": "^4.17.1",
|
||||
"filepond": "^4.4.12",
|
||||
"filepond": "^4.8.0",
|
||||
"filepond-plugin-file-validate-size": "^2.2.0",
|
||||
"filepond-plugin-file-validate-type": "^1.2.4",
|
||||
"filepond-plugin-image-preview": "^4.2.1",
|
||||
"filepond-plugin-image-preview": "^4.5.0",
|
||||
"multer": "^1.4.2",
|
||||
"qbittorrent-api": "^1.0.0",
|
||||
"register-service-worker": "^1.6.2",
|
||||
"vue": "^2.6.10",
|
||||
"vue-apexcharts": "^1.4.0",
|
||||
"vue-apexcharts": "^1.5.1",
|
||||
"vue-filepond": "^5.1.3",
|
||||
"vue-router": "^3.1.2",
|
||||
"vuetify": "^1.5.16",
|
||||
"vuex": "^3.1.1"
|
||||
"vue-router": "^3.1.3",
|
||||
"vuetify": "^1.5.21",
|
||||
"vuex": "^3.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "^3.10.0",
|
||||
"@vue/cli-plugin-eslint": "^3.10.0",
|
||||
"@vue/cli-plugin-pwa": "^3.10.0",
|
||||
"@vue/cli-service": "^3.10.0",
|
||||
"eslint": "^6.1.0",
|
||||
"@vue/cli-plugin-babel": "^3.12.1",
|
||||
"@vue/cli-plugin-eslint": "^3.12.1",
|
||||
"@vue/cli-plugin-pwa": "^3.12.1",
|
||||
"@vue/cli-service": "^3.12.1",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-config-airbnb-base": "^14.0.0",
|
||||
"eslint-plugin-import": "^2.18.2",
|
||||
"eslint-plugin-import": "^2.19.1",
|
||||
"eslint-plugin-vue": "^5.2.3",
|
||||
"stylus": "^0.54.5",
|
||||
"stylus": "^0.54.7",
|
||||
"stylus-loader": "^3.0.1",
|
||||
"vue-cli-plugin-vuetify": "^0.4.6",
|
||||
"vue-template-compiler": "^2.6.10",
|
||||
"vuetify-loader": "^1.3.0",
|
||||
"webpack": "^4.39.1",
|
||||
"webpack-cli": "^3.3.6"
|
||||
"vuetify-loader": "^1.4.3",
|
||||
"webpack": "^4.41.2",
|
||||
"webpack-cli": "^3.3.10"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
|
|
|
@ -3,7 +3,7 @@ const dotenv = require('dotenv')
|
|||
const Torrent = require('./models/torrent.class.js')
|
||||
const Stat = require('./models/stat.class.js')
|
||||
|
||||
dotenv.config()
|
||||
dotenv.config({ path: '../.env' })
|
||||
|
||||
// server
|
||||
const qbt = api.connect(process.env.QBIT_HOST, process.env.QBIT_USER, process.env.QBIT_PASS)
|
||||
|
|
|
@ -2,8 +2,12 @@ const express = require('express')
|
|||
const multer = require('multer')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const dotenv = require('dotenv')
|
||||
const qbit = require('./qbit')
|
||||
|
||||
|
||||
dotenv.config({ path: '../.env' })
|
||||
|
||||
const PORT = process.env.PORT || 3000
|
||||
|
||||
const newest_torrent = {
|
||||
|
@ -24,6 +28,8 @@ app.use(express.static('dist'))
|
|||
// requests
|
||||
// login
|
||||
app.post('/login', (req, res) => {
|
||||
console.log(req.body)
|
||||
console.log(process.env.VUE_APP_WEB_USE)
|
||||
if (req.body.username !== process.env.VUE_APP_WEB_USER) {
|
||||
return res.send('No such user')
|
||||
} if (
|
||||
|
|
|
@ -3,7 +3,6 @@ const axios = require('axios')
|
|||
class Qbit {
|
||||
constructor() {
|
||||
this._axios = axios.create({
|
||||
// baseURL: process.env.VUE_APP_DOMAIN,
|
||||
timeout: 1000,
|
||||
})
|
||||
}
|
||||
|
|
5
vue.config.js
Normal file
5
vue.config.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
module.exports = {
|
||||
devServer: {
|
||||
proxy: 'http://localhost:3000/',
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue