From 60c615ce8a554b8efbf4c8548f0374fb1f572829 Mon Sep 17 00:00:00 2001 From: Vben Date: Sun, 6 Oct 2024 17:27:32 +0800 Subject: [PATCH] refactor: adjust layout refresh button and watermark; allow static i18n on language switch (#4579) * refactor: adjust layout refresh button and watermark; allow static i18n on language switch * chore: typo --- apps/web-antd/src/layouts/basic.vue | 19 +++++++- apps/web-antd/src/router/guard.ts | 4 +- apps/web-ele/src/layouts/basic.vue | 19 +++++++- apps/web-ele/src/router/guard.ts | 4 +- apps/web-naive/src/layouts/basic.vue | 20 ++++++++- apps/web-naive/src/router/guard.ts | 4 +- docs/src/en/guide/essentials/settings.md | 6 +-- docs/src/guide/essentials/settings.md | 6 +-- .../__snapshots__/config.test.ts.snap | 2 +- packages/@core/preferences/src/config.ts | 3 +- packages/@core/preferences/src/types.ts | 4 +- .../tabs-ui/src/components/widgets/index.ts | 1 - .../src/components/widgets/tool-refresh.vue | 31 ------------- packages/effects/hooks/src/use-watermark.ts | 13 +----- packages/effects/layouts/src/basic/README.md | 4 +- .../layouts/src/basic/header/header.vue | 43 +++++++++++++------ packages/effects/layouts/src/basic/layout.vue | 26 +++-------- .../layouts/src/basic/tabbar/tabbar.vue | 13 +----- .../preferences/blocks/layout/tabbar.vue | 4 -- .../preferences/blocks/layout/widget.vue | 4 ++ .../preferences/preferences-drawer.vue | 4 +- packages/locales/src/langs/en-US.json | 4 +- packages/locales/src/langs/zh-CN.json | 4 +- playground/src/layouts/basic.vue | 20 ++++++++- playground/src/router/guard.ts | 5 +-- 25 files changed, 142 insertions(+), 125 deletions(-) delete mode 100644 packages/@core/ui-kit/tabs-ui/src/components/widgets/tool-refresh.vue diff --git a/apps/web-antd/src/layouts/basic.vue b/apps/web-antd/src/layouts/basic.vue index 3c302634b82..d7435b8aede 100644 --- a/apps/web-antd/src/layouts/basic.vue +++ b/apps/web-antd/src/layouts/basic.vue @@ -1,10 +1,11 @@