mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-29 20:21:44 +08:00
del: 移除安卓支持
This commit is contained in:
@@ -66,7 +66,7 @@ export interface FeatureCapability {
|
||||
}
|
||||
|
||||
export interface PlatformCapabilities {
|
||||
mode: 'android_amlogic' | 'linux' | 'windows'
|
||||
mode: 'linux' | 'windows'
|
||||
mode_label: string
|
||||
video_capture: FeatureCapability
|
||||
encoder: FeatureCapability
|
||||
|
||||
@@ -125,7 +125,6 @@ const authStore = useAuthStore()
|
||||
const featureVisibility = useFeatureVisibility()
|
||||
|
||||
const isWindows = computed(() => systemStore.platform?.mode === 'windows')
|
||||
const isAndroid = computed(() => systemStore.platform?.mode === 'android_amlogic')
|
||||
const msdAvailable = computed(() => systemStore.platform?.msd.available ?? systemStore.capabilities?.msd.available ?? false)
|
||||
|
||||
const activeSection = ref<SettingsSectionId>('appearance')
|
||||
@@ -285,7 +284,6 @@ async function loadSectionData(section: SettingsSectionId) {
|
||||
])
|
||||
return
|
||||
case 'about':
|
||||
if (isAndroid.value) return
|
||||
await Promise.all([
|
||||
loadUpdateOverview(),
|
||||
refreshUpdateStatus(),
|
||||
@@ -2181,7 +2179,6 @@ async function triggerAutoRestart() {
|
||||
}
|
||||
|
||||
async function loadUpdateOverview() {
|
||||
if (isAndroid.value) return
|
||||
updateLoading.value = true
|
||||
try {
|
||||
updateOverview.value = await updateApi.overview(updateChannel.value)
|
||||
@@ -2197,7 +2194,6 @@ async function loadUpdateOverview() {
|
||||
}
|
||||
|
||||
async function refreshUpdateStatus() {
|
||||
if (isAndroid.value) return
|
||||
try {
|
||||
updateStatus.value = await updateApi.status()
|
||||
|
||||
@@ -2230,7 +2226,6 @@ function stopUpdatePolling() {
|
||||
}
|
||||
|
||||
function startUpdatePolling() {
|
||||
if (isAndroid.value) return
|
||||
if (updateStatusTimer !== null) return
|
||||
updateStatusTimer = window.setInterval(async () => {
|
||||
await refreshUpdateStatus()
|
||||
@@ -2245,7 +2240,6 @@ function startUpdatePolling() {
|
||||
}
|
||||
|
||||
async function startOnlineUpgrade() {
|
||||
if (isAndroid.value) return
|
||||
try {
|
||||
updateSawRestarting.value = false
|
||||
updateSawRequestFailure.value = false
|
||||
@@ -2642,7 +2636,7 @@ onMounted(async () => {
|
||||
})
|
||||
|
||||
watch(updateChannel, async () => {
|
||||
if (activeSection.value === 'about' && !isAndroid.value) {
|
||||
if (activeSection.value === 'about') {
|
||||
await loadUpdateOverview()
|
||||
}
|
||||
})
|
||||
@@ -5198,7 +5192,7 @@ watch(isWindows, () => {
|
||||
|
||||
<!-- About Section -->
|
||||
<div v-show="activeSection === 'about'" class="space-y-6">
|
||||
<Card v-if="!isAndroid">
|
||||
<Card>
|
||||
<CardHeader class="flex flex-row items-start justify-between space-y-0">
|
||||
<div class="space-y-1.5">
|
||||
<CardTitle>{{ t('settings.onlineUpgrade') }}</CardTitle>
|
||||
|
||||
Reference in New Issue
Block a user