From 8abee1ba916a2a1a34507c1d26943a1b1f6d7ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=AF=B8=E7=81=B0?= Date: Mon, 25 Aug 2025 10:56:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(projects):=20=E2=9C=A8=20sync=20global=20s?= =?UTF-8?q?earch=20button=20toggle.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(projects): :sparkles: sync global search button toggle. * docs(projects): :pencil: add warning about upcoming V2 version and link to plan list. --- README.en_US.md | 6 ++++++ README.md | 6 ++++++ src/layouts/modules/global-header/index.vue | 2 +- src/layouts/modules/theme-drawer/modules/page-fun.vue | 3 +++ src/locales/langs/en-us.ts | 3 +++ src/locales/langs/zh-cn.ts | 3 +++ src/theme/settings.ts | 3 +++ src/typings/app.d.ts | 8 ++++++++ 8 files changed, 33 insertions(+), 1 deletion(-) diff --git a/README.en_US.md b/README.en_US.md index 0ab4f15..0251474 100644 --- a/README.en_US.md +++ b/README.en_US.md @@ -18,6 +18,12 @@ > [!NOTE] > If you think `SoybeanAdmin` is helpful to you, or you like our project, please give us a ⭐️ on GitHub. Your support is the driving force for us to continue to improve and add new features! Thank you for your support! +> [!NOTE] +> The `SoybeanAdmin` quick start series videos have been uploaded to [Bilibili](https://www.bilibili.com/video/BV1YKdRYXELC) Go online [click here](https://www.bilibili.com/video/BV1YKdRYXELC) Go check it out + +> [!WARNING] +> `SoybeanAdmin` is planning to develop a `V2` version, see [plan list](https://github.com/soybeanjs/soybean-admin/issues/767) + ## Introduction [`SoybeanAdmin`](https://github.com/soybeanjs/soybean-admin) is a clean, elegant, beautiful and powerful admin template, based on the latest front-end technology stack, including Vue3, Vite6, TypeScript, Pinia and UnoCSS. It has built-in rich theme configuration and components, strict code specifications, and an automated file routing system. In addition, it also uses the online mock data solution based on ApiFox. `SoybeanAdmin` provides you with a one-stop admin solution, no additional configuration, and out of the box. It is also a best practice for learning cutting-edge technologies quickly. diff --git a/README.md b/README.md index 7a2214c..f0609c8 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,12 @@ > [!NOTE] > 如果您觉得 `SoybeanAdmin`对您有所帮助,或者您喜欢我们的项目,请在 GitHub 上给我们一个 ⭐️。您的支持是我们持续改进和增加新功能的动力!感谢您的支持! +> [!NOTE] +> `SoybeanAdmin` 快速上手系列视频已在 [Bilibili](https://www.bilibili.com/video/BV1YKdRYXELC) 上线 [点击这里](https://www.bilibili.com/video/BV1YKdRYXELC) 前往查看 + +> [!WARNING] +> `SoybeanAdmin` 正在计划开发 `V2` 版本,详情见[计划清单](https://github.com/soybeanjs/soybean-admin/issues/767) + ## 简介 [`SoybeanAdmin`](https://github.com/soybeanjs/soybean-admin) 是一个清新优雅、高颜值且功能强大的后台管理模板,基于最新的前端技术栈,包括 Vue3, Vite6, TypeScript, Pinia 和 UnoCSS。它内置了丰富的主题配置和组件,代码规范严谨,实现了自动化的文件路由系统。此外,它还采用了基于 ApiFox 的在线Mock数据方案。`SoybeanAdmin` 为您提供了一站式的后台管理解决方案,无需额外配置,开箱即用。同样是一个快速学习前沿技术的最佳实践。 diff --git a/src/layouts/modules/global-header/index.vue b/src/layouts/modules/global-header/index.vue index 8c97e12..44e92b4 100644 --- a/src/layouts/modules/global-header/index.vue +++ b/src/layouts/modules/global-header/index.vue @@ -36,7 +36,7 @@ const { isFullscreen, toggle } = useFullscreen();
- +
diff --git a/src/layouts/modules/theme-drawer/modules/page-fun.vue b/src/layouts/modules/theme-drawer/modules/page-fun.vue index 4f1b87a..886b464 100644 --- a/src/layouts/modules/theme-drawer/modules/page-fun.vue +++ b/src/layouts/modules/theme-drawer/modules/page-fun.vue @@ -136,6 +136,9 @@ const isWrapperScrollMode = computed(() => themeStore.layout.scrollMode === 'wra + + + diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index b090430..7fda8a0 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -112,6 +112,9 @@ const local: App.I18n.Schema = { }, multilingual: { visible: 'Display multilingual button' + }, + globalSearch: { + visible: 'Display global search button' } }, tab: { diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index 9ca3656..3bba13c 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -112,6 +112,9 @@ const local: App.I18n.Schema = { }, multilingual: { visible: '显示多语言按钮' + }, + globalSearch: { + visible: '显示全局搜索按钮' } }, tab: { diff --git a/src/theme/settings.ts b/src/theme/settings.ts index 4cfa185..63c2cb2 100644 --- a/src/theme/settings.ts +++ b/src/theme/settings.ts @@ -30,6 +30,9 @@ export const themeSettings: App.Theme.ThemeSetting = { }, multilingual: { visible: true + }, + globalSearch: { + visible: true } }, tab: { diff --git a/src/typings/app.d.ts b/src/typings/app.d.ts index 60ca580..30cb477 100644 --- a/src/typings/app.d.ts +++ b/src/typings/app.d.ts @@ -58,6 +58,11 @@ declare namespace App { /** Whether to show the multilingual */ visible: boolean; }; + /** Global search */ + globalSearch: { + /** Whether to show the global search */ + visible: boolean; + }; }; /** Tab */ tab: { @@ -371,6 +376,9 @@ declare namespace App { multilingual: { visible: string; }; + globalSearch: { + visible: string; + }; }; tab: { visible: string;