Skip to content

Commit

Permalink
add update metacubexd button
Browse files Browse the repository at this point in the history
  • Loading branch information
whalechoi committed Nov 11, 2024
1 parent 5175f05 commit 6028a9a
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 91 deletions.
174 changes: 87 additions & 87 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
},
"devDependencies": {
"@vant/auto-import-resolver": "^1.2.1",
"@vitejs/plugin-vue": "^5.1.4",
"@vitejs/plugin-vue": "^5.1.5",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.10"
"vite": "^5.4.11"
}
}
9 changes: 7 additions & 2 deletions src/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{{ $t('dashboard.tool-update-adghome') }}
</van-button>
</van-col>
<van-col span="11">
<van-col v-if="status.coreType==='v2ray'||status.coreType==='xray'" span="11">
<van-button plain hairline type="default" block @click="execUpdateCmd('geodata')">
{{ $t('dashboard.tool-update-geodata') }}
</van-button>
Expand All @@ -48,11 +48,16 @@
{{ $t('dashboard.tool-update-subscribe') }}
</van-button>
</van-col>
<van-col span="11">
<van-col v-if="status.coreType==='mihomo'" span="11">
<van-button plain hairline type="default" block @click="execUpdateCmd('yacd-meta')">
{{ $t('dashboard.tool-update-yacd-meta') }}
</van-button>
</van-col>
<van-col v-if="status.coreType==='mihomo'" span="11">
<van-button plain hairline type="default" block @click="execUpdateCmd('metacubexd')">
{{ $t('dashboard.tool-update-metacubexd') }}
</van-button>
</van-col>
<van-col span="11">
<van-button plain hairline type="default" block @click="execUpdateCmd('tun2socks')">
{{ $t('dashboard.tool-update-tun2socks') }}
Expand Down
1 change: 1 addition & 0 deletions src/locales/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const dashboard = {
'tool-update-geodata': 'Update Geodata',
'tool-update-subscribe': 'Update Subscribe',
'tool-update-yacd-meta': 'Update Yacd-Meta',
'tool-update-metacubexd': 'Update MetaCubeXD',
'tool-update-tun2socks': 'Update Tun2socks',
'tool-switch': 'Switch Clash Subscribe',
'tool-switch-success': 'Switch success',
Expand Down
Loading

0 comments on commit 6028a9a

Please sign in to comment.