mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-17 15:52:04 +03:00
fix: mobile long press #911
This commit is contained in:
parent
b7d0e353d2
commit
d394ab885b
5 changed files with 66 additions and 69 deletions
80
CHANGELOG.md
80
CHANGELOG.md
|
@ -2,54 +2,70 @@
|
|||
|
||||
## [1.7.1](https://github.com/WDaan/VueTorrent/compare/v1.7.0...v1.7.1) (2023-08-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* cache app.js in PWA mode ([#1038](https://github.com/WDaan/VueTorrent/issues/1038)) ([9ea02fb](https://github.com/WDaan/VueTorrent/commit/9ea02fbf8c786363eb273d40d333eb50f34ce6e3))
|
||||
* delayed torrent display on page opening ([#1022](https://github.com/WDaan/VueTorrent/issues/1022)) ([ee6a73e](https://github.com/WDaan/VueTorrent/commit/ee6a73eacc1b7c922917a21bae6f966fa4b74c25))
|
||||
* magnet handling ([#1041](https://github.com/WDaan/VueTorrent/issues/1041)) ([c57da2d](https://github.com/WDaan/VueTorrent/commit/c57da2d95a1100e43bdeb0d7f62512b88d27af10))
|
||||
* **overview:** Canvas not displaying correctly ([#1032](https://github.com/WDaan/VueTorrent/issues/1032)) ([b68c487](https://github.com/WDaan/VueTorrent/commit/b68c4870ef47001989735166440bfc2b3eca103a))
|
||||
* progress and relavance numbers in DetailedPeers screen ([#1034](https://github.com/WDaan/VueTorrent/issues/1034)) ([4cd7772](https://github.com/WDaan/VueTorrent/commit/4cd7772502f0dacf595aeb6d70e52bb458156330))
|
||||
* **styles:** overflowing tab arrows with light theme [#1040](https://github.com/WDaan/VueTorrent/issues/1040) ([a91712a](https://github.com/WDaan/VueTorrent/commit/a91712a5da7db9951bd93e19ff0459c5e1c78934))
|
||||
* **torrent:** Wrong date format on longer duration than month ([091244b](https://github.com/WDaan/VueTorrent/commit/091244b718081138beb6e71d27d10fe45ceadc27))
|
||||
|
||||
- cache app.js in PWA mode ([#1038](https://github.com/WDaan/VueTorrent/issues/1038))
|
||||
([9ea02fb](https://github.com/WDaan/VueTorrent/commit/9ea02fbf8c786363eb273d40d333eb50f34ce6e3))
|
||||
- delayed torrent display on page opening ([#1022](https://github.com/WDaan/VueTorrent/issues/1022))
|
||||
([ee6a73e](https://github.com/WDaan/VueTorrent/commit/ee6a73eacc1b7c922917a21bae6f966fa4b74c25))
|
||||
- magnet handling ([#1041](https://github.com/WDaan/VueTorrent/issues/1041)) ([c57da2d](https://github.com/WDaan/VueTorrent/commit/c57da2d95a1100e43bdeb0d7f62512b88d27af10))
|
||||
- **overview:** Canvas not displaying correctly ([#1032](https://github.com/WDaan/VueTorrent/issues/1032))
|
||||
([b68c487](https://github.com/WDaan/VueTorrent/commit/b68c4870ef47001989735166440bfc2b3eca103a))
|
||||
- progress and relavance numbers in DetailedPeers screen ([#1034](https://github.com/WDaan/VueTorrent/issues/1034))
|
||||
([4cd7772](https://github.com/WDaan/VueTorrent/commit/4cd7772502f0dacf595aeb6d70e52bb458156330))
|
||||
- **styles:** overflowing tab arrows with light theme [#1040](https://github.com/WDaan/VueTorrent/issues/1040)
|
||||
([a91712a](https://github.com/WDaan/VueTorrent/commit/a91712a5da7db9951bd93e19ff0459c5e1c78934))
|
||||
- **torrent:** Wrong date format on longer duration than month ([091244b](https://github.com/WDaan/VueTorrent/commit/091244b718081138beb6e71d27d10fe45ceadc27))
|
||||
|
||||
### Improvements
|
||||
|
||||
* adding darker color to files actively or force uploading ([#1035](https://github.com/WDaan/VueTorrent/issues/1035)) ([e2078e4](https://github.com/WDaan/VueTorrent/commit/e2078e4444197e723aad6e052ca8a9e69266768b))
|
||||
* cache fonts on PWA ([#1039](https://github.com/WDaan/VueTorrent/issues/1039)) ([a16fb34](https://github.com/WDaan/VueTorrent/commit/a16fb342b814a8b5e58d9b9316138b8bb0bab3c4))
|
||||
* Inifite scroll view ([#1049](https://github.com/WDaan/VueTorrent/issues/1049)) ([c17f1b6](https://github.com/WDaan/VueTorrent/commit/c17f1b6e8ab5d94a03bc6c43fd2a8bf1526b45fa))
|
||||
* **overview:** Disable canvas first-time render ([#1029](https://github.com/WDaan/VueTorrent/issues/1029)) ([d679ad4](https://github.com/WDaan/VueTorrent/commit/d679ad4c3e3515af00429c2eeb0a7796f0cf35c3))
|
||||
- adding darker color to files actively or force uploading ([#1035](https://github.com/WDaan/VueTorrent/issues/1035))
|
||||
([e2078e4](https://github.com/WDaan/VueTorrent/commit/e2078e4444197e723aad6e052ca8a9e69266768b))
|
||||
- cache fonts on PWA ([#1039](https://github.com/WDaan/VueTorrent/issues/1039)) ([a16fb34](https://github.com/WDaan/VueTorrent/commit/a16fb342b814a8b5e58d9b9316138b8bb0bab3c4))
|
||||
- Inifite scroll view ([#1049](https://github.com/WDaan/VueTorrent/issues/1049)) ([c17f1b6](https://github.com/WDaan/VueTorrent/commit/c17f1b6e8ab5d94a03bc6c43fd2a8bf1526b45fa))
|
||||
- **overview:** Disable canvas first-time render ([#1029](https://github.com/WDaan/VueTorrent/issues/1029))
|
||||
([d679ad4](https://github.com/WDaan/VueTorrent/commit/d679ad4c3e3515af00429c2eeb0a7796f0cf35c3))
|
||||
|
||||
## [1.7.0](https://github.com/WDaan/VueTorrent/compare/v1.6.1...v1.7.0) (2023-08-01)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **units:** customizable units ([#984](https://github.com/WDaan/VueTorrent/issues/984)) ([0594af3](https://github.com/WDaan/VueTorrent/commit/0594af387f9679610fd1bc887db3915ce345c65b))
|
||||
|
||||
- **units:** customizable units ([#984](https://github.com/WDaan/VueTorrent/issues/984))
|
||||
([0594af3](https://github.com/WDaan/VueTorrent/commit/0594af387f9679610fd1bc887db3915ce345c65b))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* App not redirecting to login page ([#1008](https://github.com/WDaan/VueTorrent/issues/1008)) ([cd1e77b](https://github.com/WDaan/VueTorrent/commit/cd1e77b0c22d7905ee34478187205f252856e4b9))
|
||||
* **Content:** Fix percent progress not displaying properly ([#1007](https://github.com/WDaan/VueTorrent/issues/1007)) ([ef546cb](https://github.com/WDaan/VueTorrent/commit/ef546cb96cc0ce255883bd9c2b2645c3abb48784))
|
||||
* **dashboard:** Not able to delete torrent in certain cases ([#975](https://github.com/WDaan/VueTorrent/issues/975)) ([4445d37](https://github.com/WDaan/VueTorrent/commit/4445d371390463d4a801dc6fa1edc04bf76b7847))
|
||||
* locale key for [#967](https://github.com/WDaan/VueTorrent/issues/967) ([#973](https://github.com/WDaan/VueTorrent/issues/973)) ([6b2a444](https://github.com/WDaan/VueTorrent/commit/6b2a44495c26600e016732a71e8bc634d8e6414d))
|
||||
* logout behaviour ([8533344](https://github.com/WDaan/VueTorrent/commit/8533344d888bb02e8e5ecaf2182b18351ea9ae70))
|
||||
* Remove savePath rule when creating category ([#970](https://github.com/WDaan/VueTorrent/issues/970)) ([9f59632](https://github.com/WDaan/VueTorrent/commit/9f59632d912acc58f022f9aacfd288d0cd66effc))
|
||||
|
||||
- App not redirecting to login page ([#1008](https://github.com/WDaan/VueTorrent/issues/1008))
|
||||
([cd1e77b](https://github.com/WDaan/VueTorrent/commit/cd1e77b0c22d7905ee34478187205f252856e4b9))
|
||||
- **Content:** Fix percent progress not displaying properly ([#1007](https://github.com/WDaan/VueTorrent/issues/1007))
|
||||
([ef546cb](https://github.com/WDaan/VueTorrent/commit/ef546cb96cc0ce255883bd9c2b2645c3abb48784))
|
||||
- **dashboard:** Not able to delete torrent in certain cases ([#975](https://github.com/WDaan/VueTorrent/issues/975))
|
||||
([4445d37](https://github.com/WDaan/VueTorrent/commit/4445d371390463d4a801dc6fa1edc04bf76b7847))
|
||||
- locale key for [#967](https://github.com/WDaan/VueTorrent/issues/967) ([#973](https://github.com/WDaan/VueTorrent/issues/973))
|
||||
([6b2a444](https://github.com/WDaan/VueTorrent/commit/6b2a44495c26600e016732a71e8bc634d8e6414d))
|
||||
- logout behaviour ([8533344](https://github.com/WDaan/VueTorrent/commit/8533344d888bb02e8e5ecaf2182b18351ea9ae70))
|
||||
- Remove savePath rule when creating category ([#970](https://github.com/WDaan/VueTorrent/issues/970))
|
||||
([9f59632](https://github.com/WDaan/VueTorrent/commit/9f59632d912acc58f022f9aacfd288d0cd66effc))
|
||||
|
||||
### Improvements
|
||||
|
||||
* Fixed intervals ([#1002](https://github.com/WDaan/VueTorrent/issues/1002)) ([898040d](https://github.com/WDaan/VueTorrent/commit/898040d5c926a49d6e168465347cd4c78c9c62c9))
|
||||
* **overview:** Add quick actions buttons ([#967](https://github.com/WDaan/VueTorrent/issues/967)) ([10ada6e](https://github.com/WDaan/VueTorrent/commit/10ada6ed23800f535e99f4e515a265dda4b71501))
|
||||
* **RssArticles:** Add clearable property to filter ([#992](https://github.com/WDaan/VueTorrent/issues/992)) ([5b24a02](https://github.com/WDaan/VueTorrent/commit/5b24a0235b2607d1f92e88e7561200d2ce32e832))
|
||||
* **search:** autofocus and / shortcut to open search ([#949](https://github.com/WDaan/VueTorrent/issues/949)) ([b2edc32](https://github.com/WDaan/VueTorrent/commit/b2edc3274d00c8d0fbf8b2718087c94da3e7247d))
|
||||
* **search:** Rework search data to save in store ([#991](https://github.com/WDaan/VueTorrent/issues/991)) ([470ae36](https://github.com/WDaan/VueTorrent/commit/470ae36cb57cbd501312f993f690e14c94bc7ccc))
|
||||
* **Torrent Card:** Highlight torrent card when TRC menu is showed ([#966](https://github.com/WDaan/VueTorrent/issues/966)) ([1ba0881](https://github.com/WDaan/VueTorrent/commit/1ba088163cc88ebd9917086995c911605c57b57a))
|
||||
* **Torrent Detail:** Add escape exception if modals ([#974](https://github.com/WDaan/VueTorrent/issues/974)) ([28aeb3e](https://github.com/WDaan/VueTorrent/commit/28aeb3e8f36b2ccfc1eb09bdbd6b06834a147954))
|
||||
* **torrentDetail:** top actions fire on current torrent ([#994](https://github.com/WDaan/VueTorrent/issues/994)) ([b547d9d](https://github.com/WDaan/VueTorrent/commit/b547d9d2174922002cf7086e269a6dfd55a1d44d))
|
||||
* **TRC:** display "set priority" visibility when queuing is enabled only ([#976](https://github.com/WDaan/VueTorrent/issues/976)) ([f2cd9e1](https://github.com/WDaan/VueTorrent/commit/f2cd9e19a118a2492170a4e99445cff5a956209a))
|
||||
- Fixed intervals ([#1002](https://github.com/WDaan/VueTorrent/issues/1002)) ([898040d](https://github.com/WDaan/VueTorrent/commit/898040d5c926a49d6e168465347cd4c78c9c62c9))
|
||||
- **overview:** Add quick actions buttons ([#967](https://github.com/WDaan/VueTorrent/issues/967))
|
||||
([10ada6e](https://github.com/WDaan/VueTorrent/commit/10ada6ed23800f535e99f4e515a265dda4b71501))
|
||||
- **RssArticles:** Add clearable property to filter ([#992](https://github.com/WDaan/VueTorrent/issues/992))
|
||||
([5b24a02](https://github.com/WDaan/VueTorrent/commit/5b24a0235b2607d1f92e88e7561200d2ce32e832))
|
||||
- **search:** autofocus and / shortcut to open search ([#949](https://github.com/WDaan/VueTorrent/issues/949))
|
||||
([b2edc32](https://github.com/WDaan/VueTorrent/commit/b2edc3274d00c8d0fbf8b2718087c94da3e7247d))
|
||||
- **search:** Rework search data to save in store ([#991](https://github.com/WDaan/VueTorrent/issues/991))
|
||||
([470ae36](https://github.com/WDaan/VueTorrent/commit/470ae36cb57cbd501312f993f690e14c94bc7ccc))
|
||||
- **Torrent Card:** Highlight torrent card when TRC menu is showed ([#966](https://github.com/WDaan/VueTorrent/issues/966))
|
||||
([1ba0881](https://github.com/WDaan/VueTorrent/commit/1ba088163cc88ebd9917086995c911605c57b57a))
|
||||
- **Torrent Detail:** Add escape exception if modals ([#974](https://github.com/WDaan/VueTorrent/issues/974))
|
||||
([28aeb3e](https://github.com/WDaan/VueTorrent/commit/28aeb3e8f36b2ccfc1eb09bdbd6b06834a147954))
|
||||
- **torrentDetail:** top actions fire on current torrent ([#994](https://github.com/WDaan/VueTorrent/issues/994))
|
||||
([b547d9d](https://github.com/WDaan/VueTorrent/commit/b547d9d2174922002cf7086e269a6dfd55a1d44d))
|
||||
- **TRC:** display "set priority" visibility when queuing is enabled only ([#976](https://github.com/WDaan/VueTorrent/issues/976))
|
||||
([f2cd9e1](https://github.com/WDaan/VueTorrent/commit/f2cd9e19a118a2492170a4e99445cff5a956209a))
|
||||
|
||||
## [1.6.1](https://github.com/WDaan/VueTorrent/compare/v1.6.0...v1.6.1) (2023-07-13)
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
</div>
|
||||
<div v-else>
|
||||
<span v-if="!$vuetify.breakpoint.xsOnly">[{{ node.size | formatData(shouldUseBinaryData()) }}]</span>
|
||||
<span v-if="!$vuetify.breakpoint.xsOnly" class="ml-4">{{ (node.progress*100) | progress }}</span>
|
||||
<span v-if="!$vuetify.breakpoint.xsOnly" class="ml-4">{{ (node.progress * 100) | progress }}</span>
|
||||
<span v-if="!$vuetify.breakpoint.xsOnly" class="ml-4">[ {{ getNodePriority(node) }} ]</span>
|
||||
<v-menu open-on-hover offset-y>
|
||||
<template #activator="{ on }">
|
||||
|
|
|
@ -63,10 +63,9 @@ export default class Torrent {
|
|||
globalSpeed: number
|
||||
globalVolume: number
|
||||
constructor(data: QbitTorrent, format = 'DD/MM/YYYY, HH:mm:ss') {
|
||||
|
||||
const seeding_time_duration = data.seeding_time > 0 ? dayjs.duration(data.seeding_time, 'seconds') : null
|
||||
const time_active_duration = dayjs.duration(data.time_active, 'seconds')
|
||||
|
||||
|
||||
this.added_on = dayjs(data.added_on * 1000).format(format)
|
||||
this.amount_left = data.amount_left
|
||||
this.auto_tmm = data.auto_tmm
|
||||
|
@ -98,7 +97,7 @@ export default class Torrent {
|
|||
this.ratio_limit = data.max_ratio
|
||||
this.ratio_time_limit = data.max_seeding_time
|
||||
this.savePath = data.save_path
|
||||
this.seeding_time = data.seeding_time > 0 ? (Math.floor(seeding_time_duration.asDays()) + 'd ' + seeding_time_duration.format(durationFormat)) : null
|
||||
this.seeding_time = data.seeding_time > 0 ? Math.floor(seeding_time_duration.asDays()) + 'd ' + seeding_time_duration.format(durationFormat) : null
|
||||
this.seen_complete = data.seen_complete > 0 ? dayjs(data.seen_complete * 1000).format(format) : i18n.t('dashboard.not_complete').toString()
|
||||
this.seq_dl = data.seq_dl
|
||||
this.size = data.size
|
||||
|
|
|
@ -197,12 +197,12 @@ body {
|
|||
width: 100% !important;
|
||||
}
|
||||
|
||||
.v-tabs--align-with-title.theme--light>.v-slide-group--is-overflowing>.v-slide-group__prev>.v-icon,
|
||||
.v-tabs--align-with-title.theme--light>.v-slide-group--is-overflowing>.v-slide-group__next>.v-icon {
|
||||
color: white;
|
||||
.v-tabs--align-with-title.theme--light > .v-slide-group--is-overflowing > .v-slide-group__prev > .v-icon,
|
||||
.v-tabs--align-with-title.theme--light > .v-slide-group--is-overflowing > .v-slide-group__next > .v-icon {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.v-tabs--align-with-title.theme--light>.v-slide-group--is-overflowing>.v-slide-group__prev--disabled>.v-icon,
|
||||
.v-tabs--align-with-title.theme--light>.v-slide-group--is-overflowing>.v-slide-group__next--disabled>.v-icon {
|
||||
color: #ffffffB0 !important;
|
||||
.v-tabs--align-with-title.theme--light > .v-slide-group--is-overflowing > .v-slide-group__prev--disabled > .v-icon,
|
||||
.v-tabs--align-with-title.theme--light > .v-slide-group--is-overflowing > .v-slide-group__next--disabled > .v-icon {
|
||||
color: #ffffffb0 !important;
|
||||
}
|
||||
|
|
|
@ -356,39 +356,23 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
strTouchStart(e, data) {
|
||||
this.trcMoveTick = 0
|
||||
this.hideTorrentRightClickMenu(e)
|
||||
clearTimeout(this.tmCalc.TouchTimer)
|
||||
if (e.touches.length === 1) {
|
||||
// one finger only
|
||||
this.tmCalc.LastFinger = 1
|
||||
this.tmCalc.TouchTimer = setTimeout(() => this.showTorrentRightClickMenu(e.touches[0], data, true), 400)
|
||||
}
|
||||
if (e.touches.length === 2) {
|
||||
// two finger
|
||||
this.tmCalc.LastFinger = 2
|
||||
if (this.tmCalc.LastHash === data.torrent.hash) {
|
||||
e.preventDefault()
|
||||
this.showTorrentRightClickMenu(e.touches[0], data, true)
|
||||
}
|
||||
}
|
||||
this.tmCalc.LastHash = data.torrent.hash
|
||||
this.tmCalc.TouchTimer = setTimeout(() => {
|
||||
e.preventDefault()
|
||||
this.showTorrentRightClickMenu(e.touches[0], data, true)
|
||||
}, 300)
|
||||
},
|
||||
strTouchMove(e) {
|
||||
this.trcMoveTick++
|
||||
if (this.trcMenu.show === true && e.touches.length > 1) {
|
||||
e.preventDefault()
|
||||
} else if (this.trcMoveTick > 1 && e.touches.length === 1) {
|
||||
if (this.tmCalc.LastFinger === 1) this.hideTorrentRightClickMenu(e)
|
||||
clearTimeout(this.tmCalc.TouchTimer)
|
||||
}
|
||||
this.hideTorrentRightClickMenu(e)
|
||||
clearTimeout(this.tmCalc.TouchTimer)
|
||||
},
|
||||
strTouchEnd(e) {
|
||||
e.preventDefault()
|
||||
clearTimeout(this.tmCalc.TouchTimer)
|
||||
if (this.trcMenu.show) e.preventDefault()
|
||||
},
|
||||
showTorrentRightClickMenu(e, data, touchmode = false) {
|
||||
if (this.trcMenu.show) return false
|
||||
if (this.trcMenu.show === true) return false
|
||||
this.data = data
|
||||
if (e.preventDefault) e.preventDefault()
|
||||
|
||||
|
@ -399,9 +383,7 @@ export default {
|
|||
this.tmCalc.TouchMode = touchmode
|
||||
this.trcMenu.X = e.clientX + (touchmode ? 12 : 6)
|
||||
this.trcMenu.Y = e.clientY + (touchmode ? 12 : 6)
|
||||
this.$nextTick(() => {
|
||||
this.trcMenu.show = true
|
||||
})
|
||||
this.trcMenu.show = true
|
||||
},
|
||||
hideTorrentRightClickMenu() {
|
||||
if (!this.selectMode && this.getModals().length === 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue