Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e07ef7dd11 | |||
| ebb0926d1d | |||
| 5333438825 | |||
| 3664341822 | |||
| d3cbff6dd1 | |||
| 5668b0773d | |||
| b757112c30 | |||
| dc3a01fb3c | |||
| 591de11072 |
@@ -123,8 +123,10 @@ npm run build
|
||||
|-------|:--------------------|:-------------|
|
||||
| de | German | ✔️ [@Schloemicher](https://github.com/Schloemicher) |
|
||||
| en-US | English | ✔️ |
|
||||
| fa | فارسی | ✔️ [@Nima-Ra](https://github.com/Nima-Ra) |
|
||||
| fr | Français | ✔️ [@gpatarin](https://github.com/gpatarin) |
|
||||
| ja | 日本語 | ✔️ [@hbkrkzk](https://github.com/hbkrkzk) |
|
||||
| ko | 한국어 | ✔️ [@KOZ39](https://github.com/KOZ39) |
|
||||
| pt-BR | Portuguese (Brazil) | ✔️ [@andrenoberto](https://github.com/andrenoberto) |
|
||||
| tr | Türkçe | ✔️ [@abdullah](https://github.com/abdullah) |
|
||||
| zh-CN | 简体中文 | ✔️ |
|
||||
|
||||
@@ -115,8 +115,10 @@ Translations into versions for other languages are welcome 🧐! Please read the
|
||||
|-------|:--------------------|:-------------|
|
||||
| de | German | ✔️ [@Schloemicher](https://github.com/Schloemicher) |
|
||||
| en-US | English | ✔️ |
|
||||
| fa | فارسی | ✔️ [@Nima-Ra](https://github.com/Nima-Ra) |
|
||||
| fr | Français | ✔️ [@gpatarin](https://github.com/gpatarin) |
|
||||
| ja | 日本語 | ✔️ [@hbkrkzk](https://github.com/hbkrkzk) |
|
||||
| ko | 한국어 | ✔️ [@KOZ39](https://github.com/KOZ39) |
|
||||
| pt-BR | Portuguese (Brazil) | ✔️ [@andrenoberto](https://github.com/andrenoberto) |
|
||||
| tr | Türkçe | ✔️ [@abdullah](https://github.com/abdullah) |
|
||||
| zh-CN | 简体中文 | ✔️ |
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Motrix",
|
||||
"version": "1.3.6",
|
||||
"version": "1.3.8",
|
||||
"description": "A full-featured download manager",
|
||||
"homepage": "https://motrix.app",
|
||||
"author": {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
@@ -0,0 +1,10 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||
<g class="nc-icon-wrapper" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" stroke="currentColor">
|
||||
<path fill="none" stroke="currentColor" stroke-miterlimit="10" d="M3,14V4 c0-0.552,0.448-1,1-1h16c0.552,0,1,0.448,1,1v6"/>
|
||||
<path fill="none" stroke="currentColor" stroke-miterlimit="10" d="M10,18H1v0 c0,1.657,1.343,3,3,3h6"/>
|
||||
<path data-cap="butt" data-color="color-2" fill="none" stroke-miterlimit="10" d="M14.126,17 c0.444-1.725,2.01-3,3.874-3c1.48,0,2.772,0.804,3.464,1.999"/>
|
||||
<polygon data-color="color-2" data-stroke="none" points="23.22,13.649 22.792,18 18.522,17.061 " stroke-linejoin="miter" stroke-linecap="square" stroke="none"/>
|
||||
<path data-cap="butt" data-color="color-2" fill="none" stroke-miterlimit="10" d="M21.874,20 c-0.444,1.725-2.01,3-3.874,3c-1.48,0-2.772-0.804-3.464-1.999"/>
|
||||
<polygon data-color="color-2" data-stroke="none" points="12.78,23.351 13.208,19 17.478,19.939 " stroke-linejoin="miter" stroke-linecap="square" stroke="none"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -6,7 +6,7 @@ Icon.register({
|
||||
'height': 24,
|
||||
'raw': `<g stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
|
||||
<path fill="none" stroke-miterlimit="10" d="M3,14V4 c0-0.552,0.448-1,1-1h16c0.552,0,1,0.448,1,1v6"></path>
|
||||
<path fill="none" stroke="#111111" stroke-miterlimit="10" d="M10,18H1v0 c0,1.657,1.343,3,3,3h6"></path>
|
||||
<path fill="none" stroke-miterlimit="10" d="M10,18H1v0 c0,1.657,1.343,3,3,3h6"></path>
|
||||
<path data-cap="butt" data-color="color-2" fill="none" stroke-miterlimit="10" d="M14.126,17 c0.444-1.725,2.01-3,3.874-3c1.48,0,2.772,0.804,3.464,1.999"></path>
|
||||
<polygon data-color="color-2" data-stroke="none" points="23.22,13.649 22.792,18 18.522,17.061 " stroke-linejoin="miter" stroke-linecap="square" stroke="none"></polygon>
|
||||
<path data-cap="butt" data-color="color-2" fill="none" stroke-miterlimit="10" d="M21.874,20 c-0.444,1.725-2.01,3-3.874,3c-1.48,0-2.772-0.804-3.464-1.999"></path>
|
||||
|
||||
@@ -155,7 +155,8 @@
|
||||
import { availableLanguages, getLanguage } from '@shared/locales'
|
||||
import { getLocaleManager } from '@/components/Locale'
|
||||
import {
|
||||
convertToTextRows
|
||||
convertCommaToLine,
|
||||
convertLineToComma
|
||||
} from '@shared/utils'
|
||||
import '@/components/Icons/sync'
|
||||
import '@/components/Icons/refresh'
|
||||
@@ -174,7 +175,7 @@
|
||||
const result = {
|
||||
allProxy,
|
||||
allProxyBackup,
|
||||
btTracker: convertToTextRows(btTracker),
|
||||
btTracker: convertCommaToLine(btTracker),
|
||||
hideAppMenu,
|
||||
locale,
|
||||
theme,
|
||||
@@ -269,9 +270,13 @@
|
||||
console.log('error submit!!')
|
||||
return false
|
||||
}
|
||||
const data = {
|
||||
...this.form,
|
||||
btTracker: convertLineToComma(this.form.btTracker)
|
||||
}
|
||||
|
||||
console.log('this.form===>', this.form)
|
||||
this.$store.dispatch('preference/save', this.form)
|
||||
console.log('this.form===>', data)
|
||||
this.$store.dispatch('preference/save', data)
|
||||
if (this.isRenderer()) {
|
||||
this.$electron.ipcRenderer.send('command', 'application:relaunch')
|
||||
}
|
||||
|
||||
@@ -332,4 +332,16 @@
|
||||
.form-preference .el-switch__label {
|
||||
color: $--dk-preference-form-text-color;
|
||||
}
|
||||
|
||||
.form-preference .el-form-item {
|
||||
a {
|
||||
color: #dfdfdf;
|
||||
&:hover {
|
||||
color: #eee;
|
||||
}
|
||||
&:active {
|
||||
color: #eee;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import api from '@/api'
|
||||
import { isEmpty } from 'lodash'
|
||||
|
||||
const state = {
|
||||
engineMode: 'MAX',
|
||||
@@ -21,13 +22,11 @@ const actions = {
|
||||
})
|
||||
})
|
||||
},
|
||||
save ({ commit }, data) {
|
||||
let { btTracker } = data
|
||||
btTracker = btTracker.trim().replace(/(?:\r\n|\r|\n)/g, ',')
|
||||
const config = {
|
||||
...data,
|
||||
btTracker
|
||||
save ({ commit }, config) {
|
||||
if (isEmpty(config)) {
|
||||
return
|
||||
}
|
||||
|
||||
commit('UPDATE_PREFERENCE_DATA', config)
|
||||
return api.savePreference(config)
|
||||
},
|
||||
|
||||
@@ -26,9 +26,9 @@ export default {
|
||||
'proxy': '프록시',
|
||||
'use-proxy': '프록시 허용',
|
||||
'bt-tracker': '트래커 서버',
|
||||
'bt-tracker-input-tips': '추적 서버, 한 줄에 하나씩',
|
||||
'bt-tracker-input-tips': '트래커 서버, 한 줄에 하나씩',
|
||||
'bt-tracker-tips': '추천 :',
|
||||
'sync-tracker-tips': 'ngosang/trackerslist 에서 데이터 동기화',
|
||||
'sync-tracker-tips': 'ngosang/trackerslist에서 동기화',
|
||||
'developer': '개발자',
|
||||
'mock-user-agent': '사용자 에이전트 흉내',
|
||||
'app-log-path': '앱 로그 경로',
|
||||
|
||||
+6
-1
@@ -327,13 +327,18 @@ export function splitTextRows (text = '') {
|
||||
return result
|
||||
}
|
||||
|
||||
export function convertToTextRows (text = '') {
|
||||
export function convertCommaToLine (text = '') {
|
||||
let arr = text.split(',')
|
||||
arr = arr.map((row) => row.trim())
|
||||
const result = arr.join('\n')
|
||||
return result
|
||||
}
|
||||
|
||||
export function convertLineToComma (text = '') {
|
||||
const result = text.trim().replace(/(?:\r\n|\r|\n)/g, ',')
|
||||
return result
|
||||
}
|
||||
|
||||
const audioSuffix = ['.aac', '.mp3', '.ogg', '.ape', '.flac', '.m4a', '.wav', '.wma', '.flav']
|
||||
const videoSuffix = ['.avi', '.mkv', '.rmvb', '.wmv', '.mp4', '.m4a', '.vob', '.mov', '.mpg']
|
||||
export function isAudioOrVideo (uri = '') {
|
||||
|
||||
Reference in New Issue
Block a user