mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
feat: add directory to dashboard and sort #538
This commit is contained in:
parent
f9434c3756
commit
f474709d4f
5 changed files with 22 additions and 1 deletions
|
@ -48,6 +48,7 @@ export default {
|
|||
{ value: 'priority', name: this.$i18n.t('modals.sort.sortBy.priority') },
|
||||
{ value: 'progress', name: this.$i18n.t('modals.sort.sortBy.progress') },
|
||||
{ value: 'ratio', name: this.$i18n.t('modals.sort.sortBy.ratio') },
|
||||
{ value: 'save_path', name: this.$i18n.t('modals.sort.sortBy.save_path') },
|
||||
{ value: 'size', name: this.$i18n.t('modals.sort.sortBy.size') },
|
||||
{ value: 'state', name: this.$i18n.t('modals.sort.sortBy.state') },
|
||||
{ value: 'time_active', name: this.$i18n.t('modals.sort.sortBy.timeActive') },
|
||||
|
|
16
src/components/Torrent/DashboardItems/Directory.vue
Normal file
16
src/components/Torrent/DashboardItems/Directory.vue
Normal file
|
@ -0,0 +1,16 @@
|
|||
<template>
|
||||
<v-flex xs6 sm1 md1>
|
||||
<div class="caption grey--text">
|
||||
{{ $t('torrent.directory') | titleCase }}
|
||||
</div>
|
||||
<div class="truncate">
|
||||
{{ torrent.savePath }}
|
||||
</div>
|
||||
</v-flex>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'Directory',
|
||||
props: ['torrent']
|
||||
}
|
||||
</script>
|
|
@ -2,6 +2,7 @@ import Size from './Size.vue'
|
|||
import Progress from './Progress.vue'
|
||||
import Download from './Download.vue'
|
||||
import Downloaded from './Downloaded.vue'
|
||||
import Directory from './Directory.vue'
|
||||
import Ratio from './Ratio.vue'
|
||||
import Upload from './Upload.vue'
|
||||
import ETA from './ETA.vue'
|
||||
|
@ -15,4 +16,4 @@ import Uploaded from './Uploaded.vue'
|
|||
import UploadedSession from './UploadedSession.vue'
|
||||
import Availability from './Availability.vue'
|
||||
|
||||
export { Size, Progress, Download, Ratio, Upload, ETA, Peers, Seeds, Status, Category, Tags, AddedOn, Uploaded, UploadedSession, Downloaded, Availability }
|
||||
export { Size, Progress, Download, Directory, Ratio, Upload, ETA, Peers, Seeds, Status, Category, Tags, AddedOn, Uploaded, UploadedSession, Downloaded, Availability }
|
||||
|
|
|
@ -374,6 +374,7 @@ const locale = {
|
|||
priority: 'Priority',
|
||||
progress: 'Progress',
|
||||
ratio: 'Ratio',
|
||||
save_path: 'Directory',
|
||||
size: 'Size',
|
||||
state: 'State',
|
||||
uploaded: 'Uploaded',
|
||||
|
|
|
@ -74,6 +74,7 @@ export default new Vuex.Store({
|
|||
{ name: 'Download', active: true },
|
||||
{ name: 'Upload', active: true },
|
||||
{ name: 'Downloaded', active: true },
|
||||
{ name: 'Directory', active: false },
|
||||
{ name: 'Uploaded', active: true },
|
||||
{ name: 'ETA', active: true },
|
||||
{ name: 'Peers', active: true },
|
||||
|
@ -91,6 +92,7 @@ export default new Vuex.Store({
|
|||
{ name: 'Download', active: true },
|
||||
{ name: 'Upload', active: true },
|
||||
{ name: 'Downloaded', active: true },
|
||||
{ name: 'Directory', active: false },
|
||||
{ name: 'Uploaded', active: true },
|
||||
{ name: 'ETA', active: true },
|
||||
{ name: 'Peers', active: true },
|
||||
|
|
Loading…
Add table
Reference in a new issue