refactor: 移除遥测并修复启动器流程

This commit is contained in:
2026-09-13 20:31:55 +08:00
parent 1fa56add19
commit 1593ac7a7c
175 changed files with 547 additions and 12210 deletions

View File

@ -1,6 +1,5 @@
import { ref } from 'vue'
import { trackEvent } from '@/helpers/analytics'
import { get_jre, test_jre } from '@/helpers/jre.js'
export default function useJavaTest() {
@ -8,7 +7,7 @@ export default function useJavaTest() {
const javaTestResult = ref<boolean | null>(null)
let testDebounceTimer: ReturnType<typeof setTimeout> | null = null
async function runJavaTest(path: string, version: number | null, track = true) {
async function runJavaTest(path: string, version: number | null) {
if (testDebounceTimer) {
clearTimeout(testDebounceTimer)
testDebounceTimer = null
@ -28,10 +27,6 @@ export default function useJavaTest() {
javaTestResult.value = false
}
testingJava.value = false
if (track) {
trackEvent('JavaTest', { path, success: javaTestResult.value })
}
}
function testJavaInstallationDebounced(path: string, version: number | null, delay = 600) {
@ -43,8 +38,8 @@ export default function useJavaTest() {
testDebounceTimer = setTimeout(() => runJavaTest(path, version, false), delay)
}
async function testJavaInstallation(path: string, version: number | null, track = false) {
await runJavaTest(path, version, track)
async function testJavaInstallation(path: string, version: number | null) {
await runJavaTest(path, version)
}
return {