mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-04-23 00:27:06 +08:00
e948dbfcc1
EasyTier Core / pre_job (push) Has been cancelled
EasyTier GUI / pre_job (push) Has been cancelled
EasyTier Mobile / pre_job (push) Has been cancelled
EasyTier Test / pre_job (push) Has been cancelled
EasyTier Core / build (freebsd-13.2-x86_64, 13.2, ubuntu-22.04, x86_64-unknown-freebsd) (push) Has been cancelled
EasyTier Core / build (linux-aarch64, ubuntu-22.04, aarch64-unknown-linux-musl) (push) Has been cancelled
EasyTier Core / build (linux-arm, ubuntu-22.04, arm-unknown-linux-musleabi) (push) Has been cancelled
EasyTier Core / build (linux-armhf, ubuntu-22.04, arm-unknown-linux-musleabihf) (push) Has been cancelled
EasyTier Core / build (linux-armv7, ubuntu-22.04, armv7-unknown-linux-musleabi) (push) Has been cancelled
EasyTier Core / build (linux-armv7hf, ubuntu-22.04, armv7-unknown-linux-musleabihf) (push) Has been cancelled
EasyTier Core / build (linux-mips, ubuntu-22.04, mips-unknown-linux-musl) (push) Has been cancelled
EasyTier Core / build (linux-mipsel, ubuntu-22.04, mipsel-unknown-linux-musl) (push) Has been cancelled
EasyTier Core / build (linux-x86_64, ubuntu-22.04, x86_64-unknown-linux-musl) (push) Has been cancelled
EasyTier Core / build (macos-aarch64, macos-latest, aarch64-apple-darwin) (push) Has been cancelled
EasyTier Core / build (macos-x86_64, macos-latest, x86_64-apple-darwin) (push) Has been cancelled
EasyTier Core / build (windows-x86_64, windows-latest, x86_64-pc-windows-msvc) (push) Has been cancelled
EasyTier Core / core-result (push) Has been cancelled
EasyTier GUI / build-gui (linux-aarch64, aarch64-unknown-linux-gnu, ubuntu-22.04, aarch64-unknown-linux-musl) (push) Has been cancelled
EasyTier GUI / build-gui (linux-x86_64, x86_64-unknown-linux-gnu, ubuntu-22.04, x86_64-unknown-linux-musl) (push) Has been cancelled
EasyTier GUI / build-gui (macos-aarch64, aarch64-apple-darwin, macos-latest, aarch64-apple-darwin) (push) Has been cancelled
EasyTier GUI / build-gui (macos-x86_64, x86_64-apple-darwin, macos-latest, x86_64-apple-darwin) (push) Has been cancelled
EasyTier GUI / build-gui (windows-x86_64, x86_64-pc-windows-msvc, windows-latest, x86_64-pc-windows-msvc) (push) Has been cancelled
EasyTier GUI / gui-result (push) Has been cancelled
EasyTier Mobile / build-mobile (android, ubuntu-22.04, android) (push) Has been cancelled
EasyTier Mobile / mobile-result (push) Has been cancelled
EasyTier Test / test (push) Has been cancelled
support basic functions in frontend 1. create/del network 2. inspect network running status
60 lines
1.4 KiB
TypeScript
60 lines
1.4 KiB
TypeScript
import Aura from '@primevue/themes/aura'
|
|
import PrimeVue from 'primevue/config'
|
|
import ToastService from 'primevue/toastservice'
|
|
|
|
import { createRouter, createWebHistory } from 'vue-router/auto'
|
|
import { routes } from 'vue-router/auto-routes'
|
|
import App from '~/App.vue'
|
|
import { i18n, loadLanguageAsync } from '~/modules/i18n'
|
|
|
|
import { getAutoLaunchStatusAsync, loadAutoLaunchStatusAsync } from './modules/auto_launch'
|
|
import '~/styles.css'
|
|
import 'primeicons/primeicons.css'
|
|
import 'primeflex/primeflex.css'
|
|
|
|
if (import.meta.env.PROD) {
|
|
document.addEventListener('keydown', (event) => {
|
|
if (
|
|
event.key === 'F5'
|
|
|| (event.ctrlKey && event.key === 'r')
|
|
|| (event.metaKey && event.key === 'r')
|
|
) {
|
|
event.preventDefault()
|
|
}
|
|
})
|
|
|
|
document.addEventListener('contextmenu', (event) => {
|
|
event.preventDefault()
|
|
})
|
|
}
|
|
|
|
async function main() {
|
|
await loadLanguageAsync(localStorage.getItem('lang') || 'en')
|
|
await loadAutoLaunchStatusAsync(getAutoLaunchStatusAsync())
|
|
|
|
const app = createApp(App)
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
})
|
|
|
|
app.use(router)
|
|
app.use(createPinia())
|
|
app.use(i18n, { useScope: 'global' })
|
|
app.use(PrimeVue, {
|
|
theme: {
|
|
preset: Aura,
|
|
options: {
|
|
prefix: 'p',
|
|
darkModeSelector: 'system',
|
|
cssLayer: false,
|
|
},
|
|
},
|
|
})
|
|
app.use(ToastService as any)
|
|
app.mount('#app')
|
|
}
|
|
|
|
main()
|