From 244c4c0b507647ef8f727aecaf1bd23367aeffa9 Mon Sep 17 00:00:00 2001 From: taiyme <53635909+taiyme@users.noreply.github.com> Date: Sat, 16 Nov 2024 20:35:34 +0900 Subject: [PATCH] perf?(frontend): DI.pageMetadata, DI.router --- .../frontend/src/components/MkPageWindow.vue | 19 +- .../src/components/global/MkPageHeader.vue | 22 +- .../src/components/global/RouterView.vue | 29 +- packages/frontend/src/di.ts | 16 + packages/frontend/src/pages/admin/index.vue | 408 +++++++++--------- .../frontend/src/pages/admin/performance.vue | 4 +- packages/frontend/src/pages/flash/flash.vue | 15 +- packages/frontend/src/pages/gallery/post.vue | 5 +- packages/frontend/src/pages/note.vue | 12 +- packages/frontend/src/pages/page.vue | 15 +- .../frontend/src/pages/settings/index.vue | 394 ++++++++--------- .../frontend/src/pages/user/followers.vue | 7 +- .../frontend/src/pages/user/following.vue | 7 +- packages/frontend/src/pages/user/index.vue | 14 +- packages/frontend/src/router/definition.ts | 2 + packages/frontend/src/router/main.ts | 3 +- packages/frontend/src/router/supplier.ts | 7 +- .../frontend/src/scripts/page-metadata.ts | 108 ++--- .../frontend/src/scripts/tms/provide-ui.ts | 25 -- packages/frontend/src/ui/classic.vue | 35 +- packages/frontend/src/ui/deck.vue | 3 - packages/frontend/src/ui/deck/main-column.vue | 21 +- packages/frontend/src/ui/minimum.vue | 31 +- packages/frontend/src/ui/universal.vue | 33 +- packages/frontend/src/ui/visitor.vue | 34 +- packages/frontend/src/ui/zen.vue | 32 +- 26 files changed, 603 insertions(+), 698 deletions(-) create mode 100644 packages/frontend/src/di.ts delete mode 100644 packages/frontend/src/scripts/tms/provide-ui.ts diff --git a/packages/frontend/src/components/MkPageWindow.vue b/packages/frontend/src/components/MkPageWindow.vue index 87686a6499a8..da717510a7b6 100644 --- a/packages/frontend/src/components/MkPageWindow.vue +++ b/packages/frontend/src/components/MkPageWindow.vue @@ -16,9 +16,9 @@ SPDX-License-Identifier: AGPL-3.0-only @closed="emit('closed')" >