From c6f5bc7d80847d0b0fa5b94dd62dca9025e298a1 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Fri, 8 Mar 2024 09:54:55 +0800 Subject: [PATCH] add glass --- index.html | 2 +- src/AlertListScreen.vue | 10 +++- src/assets/glass.png | Bin 0 -> 4304 bytes src/utils/glass.js | 101 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+), 2 deletions(-) create mode 100644 src/assets/glass.png create mode 100644 src/utils/glass.js diff --git a/index.html b/index.html index 8388c4b..53ffa83 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Vite + Vue - +
diff --git a/src/AlertListScreen.vue b/src/AlertListScreen.vue index da40e8f..fb8c83e 100644 --- a/src/AlertListScreen.vue +++ b/src/AlertListScreen.vue @@ -8,6 +8,14 @@ import AppHeader from "./components/Base/Header.vue"; import Tools from "./components/Tools.vue"; import FullEqList from "./FullEqList.vue"; import { connect0 } from "./utils/useWebsocket"; +import Glass from "./utils/glass"; + +// +const gls = new Glass("a2m1"); +setTimeout(() => { + gls.move(); +}, 1000); +// const mainContainer = ref(null); const props = defineProps({ @@ -53,7 +61,7 @@ function handleResolutionChange(width, height) {