From fcf1889419b83b3b21d9842e30d402f80437777a Mon Sep 17 00:00:00 2001 From: norbiros Date: Tue, 20 Aug 2024 19:21:04 +0200 Subject: [PATCH] fix(theseus): Lint & more --- .editorconfig | 3 + apps/app-frontend/src/App.vue | 13 +- .../src/components/ui/SplashScreen.vue | 2 +- .../app-frontend/src/composables/macCssFix.js | 20 ++ apps/app-frontend/src/main.js | 2 - apps/app-frontend/src/mixins/macCssFix.js | 27 --- apps/app-frontend/src/routes.js | 2 +- apps/app/build.rs | 194 ++++++++++++++++-- apps/app/capabilities/plugins.json | 3 + apps/app/gen/schemas/capabilities.json | 2 +- apps/app/src/api/auth.rs | 4 +- apps/app/src/main.rs | 10 +- packages/app-lib/src/event/emit.rs | 6 +- packages/app-lib/src/event/mod.rs | 3 +- packages/ui/src/components/base/Card.vue | 24 ++- 15 files changed, 241 insertions(+), 74 deletions(-) create mode 100644 apps/app-frontend/src/composables/macCssFix.js delete mode 100644 apps/app-frontend/src/mixins/macCssFix.js diff --git a/.editorconfig b/.editorconfig index 63dfdc715..72764c8e8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,3 +13,6 @@ max_line_length = 100 [*.md] max_line_length = off trim_trailing_whitespace = false + +[*.rs] +indent_size = 4 \ No newline at end of file diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index d1a5c1f59..3122667b9 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue @@ -24,12 +24,13 @@ import { mixpanel_is_loaded, } from '@/helpers/mixpanel' import { saveWindowState, StateFlags } from '@tauri-apps/plugin-window-state' -import { getCurrentWindow } from '@tauri-apps/api/window'; +import { getCurrentWindow } from '@tauri-apps/api/window' import { getVersion } from '@tauri-apps/api/app' import { TauriEvent } from '@tauri-apps/api/event' import URLConfirmModal from '@/components/ui/URLConfirmModal.vue' import { install_from_file } from './helpers/pack' import { useError } from '@/store/error.js' +import { useCheckDisableMouseover } from '@/composables/macCssFix.js' import ModInstallModal from '@/components/ui/install_flow/ModInstallModal.vue' import IncompatibilityWarningModal from '@/components/ui/install_flow/IncompatibilityWarningModal.vue' import InstallConfirmModal from '@/components/ui/install_flow/InstallConfirmModal.vue' @@ -56,6 +57,10 @@ const os = ref('') const stateInitialized = ref(false) +onMounted(async () => { + await useCheckDisableMouseover() +}) + async function setupApp() { stateInitialized.value = true const { @@ -289,7 +294,11 @@ async function handleCommand(e) { -