From 7e60eec7016bd578eda0ca1c5d9dec1d963c23c7 Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:43:43 +0800 Subject: [PATCH] perf: support border radius on Linux, Windows 7 and below --- .github/workflows/release-linux.yaml | 2 +- .github/workflows/release-macos.yaml | 2 +- .github/workflows/release-windows.yaml | 2 +- frontend/src/App.vue | 22 +-- frontend/src/AppContent.vue | 185 ++++++++++++++----------- frontend/src/styles/style.scss | 15 +- main.go | 17 ++- 7 files changed, 123 insertions(+), 122 deletions(-) diff --git a/.github/workflows/release-linux.yaml b/.github/workflows/release-linux.yaml index c5701f5..387827e 100644 --- a/.github/workflows/release-linux.yaml +++ b/.github/workflows/release-linux.yaml @@ -53,7 +53,7 @@ jobs: - name: Build frontend assets shell: bash run: | - npm install -g npm@8 + npm install -g npm@9 jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json mv tmp.json wails.json cd frontend diff --git a/.github/workflows/release-macos.yaml b/.github/workflows/release-macos.yaml index 382192e..0c0c747 100644 --- a/.github/workflows/release-macos.yaml +++ b/.github/workflows/release-macos.yaml @@ -59,7 +59,7 @@ jobs: - name: Build frontend assets shell: bash run: | - npm install -g npm@8 + npm install -g npm@9 jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json mv tmp.json wails.json cd frontend diff --git a/.github/workflows/release-windows.yaml b/.github/workflows/release-windows.yaml index 709ad6e..dc2a09d 100644 --- a/.github/workflows/release-windows.yaml +++ b/.github/workflows/release-windows.yaml @@ -52,7 +52,7 @@ jobs: - name: Build frontend assets shell: bash run: | - npm install -g npm@8 + npm install -g npm@9 jq '.info.productVersion = "${{ steps.normalise_version.outputs.version }}"' wails.json > tmp.json mv tmp.json wails.json cd frontend diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 4930fbb..c71774f 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -26,7 +26,7 @@ hljs.registerLanguage('plaintext', plaintext) const prefStore = usePreferencesStore() const connectionStore = useConnectionStore() const i18n = useI18n() -const initializing = ref(false) +const initializing = ref(true) onMounted(async () => { try { initializing.value = true @@ -61,12 +61,8 @@ watch( :theme-overrides="themeOverrides" :locale="prefStore.themeLocale" class="fill-height"> - - -
- - + @@ -82,16 +78,4 @@ watch( - + diff --git a/frontend/src/AppContent.vue b/frontend/src/AppContent.vue index 17c6b5f..0a904ca 100644 --- a/frontend/src/AppContent.vue +++ b/frontend/src/AppContent.vue @@ -19,8 +19,11 @@ import iconUrl from '@/assets/images/icon.png' const themeVars = useThemeVars() +const props = defineProps({ + loading: Boolean, +}) + const data = reactive({ - initializing: false, navMenuWidth: 60, hoverResize: false, resizing: false, @@ -75,103 +78,117 @@ watch(