Skip to content

Commit 97cb4b3

Browse files
committed
feat: update feature icons and descriptions across multiple language documentation files
- Changed emoji icons to more descriptive names in Arabic, German, Spanish, French, Hindi, Japanese, Korean, Russian, Traditional Chinese, and Simplified Chinese documentation. - Added a new Vue component for rendering feature grids with Ant Design icons. - Updated package.json and pnpm-lock.yaml to include @ant-design/icons-vue dependency.
1 parent e634375 commit 97cb4b3

19 files changed

Lines changed: 490 additions & 158 deletions

website/docs/.vitepress/config.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default defineConfig({
5454

5555
locales: {
5656
root: {
57-
label: 'English',
57+
label: '🇺🇸 English',
5858
lang: 'en',
5959
title: 'AQBot',
6060
description: 'AQBot — Open-source AI desktop client with built-in AI gateway, multi-model chat, MCP server support.',
@@ -76,7 +76,7 @@ export default defineConfig({
7676
},
7777
},
7878
zh: {
79-
label: '简体中文',
79+
label: '🇨🇳 简体中文',
8080
lang: 'zh-CN',
8181
link: '/zh/',
8282
title: 'AQBot',
@@ -104,7 +104,7 @@ export default defineConfig({
104104
},
105105
},
106106
'zh-tw': {
107-
label: '繁體中文',
107+
label: '🇭🇰 繁體中文',
108108
lang: 'zh-TW',
109109
link: '/zh-tw/',
110110
title: 'AQBot',
@@ -132,7 +132,7 @@ export default defineConfig({
132132
},
133133
},
134134
ja: {
135-
label: '日本語',
135+
label: '🇯🇵 日本語',
136136
lang: 'ja',
137137
link: '/ja/',
138138
title: 'AQBot',
@@ -160,7 +160,7 @@ export default defineConfig({
160160
},
161161
},
162162
ko: {
163-
label: '한국어',
163+
label: '🇰🇷 한국어',
164164
lang: 'ko',
165165
link: '/ko/',
166166
title: 'AQBot',
@@ -188,7 +188,7 @@ export default defineConfig({
188188
},
189189
},
190190
fr: {
191-
label: 'Français',
191+
label: '🇫🇷 Français',
192192
lang: 'fr',
193193
link: '/fr/',
194194
title: 'AQBot',
@@ -216,7 +216,7 @@ export default defineConfig({
216216
},
217217
},
218218
de: {
219-
label: 'Deutsch',
219+
label: '🇩🇪 Deutsch',
220220
lang: 'de',
221221
link: '/de/',
222222
title: 'AQBot',
@@ -244,7 +244,7 @@ export default defineConfig({
244244
},
245245
},
246246
es: {
247-
label: 'Español',
247+
label: '🇪🇸 Español',
248248
lang: 'es',
249249
link: '/es/',
250250
title: 'AQBot',
@@ -272,7 +272,7 @@ export default defineConfig({
272272
},
273273
},
274274
ru: {
275-
label: 'Русский',
275+
label: '🇷🇺 Русский',
276276
lang: 'ru',
277277
link: '/ru/',
278278
title: 'AQBot',
@@ -300,7 +300,7 @@ export default defineConfig({
300300
},
301301
},
302302
hi: {
303-
label: 'हिन्दी',
303+
label: '🇮🇳 हिन्दी',
304304
lang: 'hi',
305305
link: '/hi/',
306306
title: 'AQBot',
@@ -328,7 +328,7 @@ export default defineConfig({
328328
},
329329
},
330330
ar: {
331-
label: 'العربية',
331+
label: '🇸🇦 العربية',
332332
lang: 'ar',
333333
link: '/ar/',
334334
title: 'AQBot',

website/docs/.vitepress/theme/DownloadBar.vue

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<script setup lang="ts">
22
import { ref, computed, onMounted } from 'vue';
33
import { useData } from 'vitepress';
4-
import { ArrowRight } from 'lucide-vue-next';
4+
import {
5+
AppleOutlined,
6+
WindowsOutlined,
7+
ReadOutlined,
8+
} from '@ant-design/icons-vue';
59
610
declare const __APP_VERSION__: string;
711
const VERSION = __APP_VERSION__;
@@ -21,36 +25,19 @@ onMounted(() => {
2125
detectedOS.value = 'macos';
2226
}
2327
});
24-
25-
const osLabel = computed(() => {
26-
const labels: Record<string, { en: string; zh: string }> = {
27-
macos: { en: 'for macOS', zh: 'macOS 版' },
28-
windows: { en: 'for Windows', zh: 'Windows 版' },
29-
linux: { en: 'for Linux', zh: 'Linux 版' },
30-
};
31-
const l = labels[detectedOS.value];
32-
return isZh.value ? l.zh : l.en;
33-
});
3428
</script>
3529

3630
<template>
3731
<div class="download-bar">
3832
<a href="/download" class="dl-btn dl-primary">
39-
<!-- OS icon -->
40-
<svg v-if="detectedOS === 'macos'" class="os-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
41-
<path d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"/>
42-
</svg>
43-
<svg v-else-if="detectedOS === 'windows'" class="os-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
44-
<path d="M3 12V6.5l8-1.1V12H3zm10 0V5.2l8-1.2V12h-8zM3 13h8v6.6l-8-1.1V13zm10 0h8v6l-8 1.2V13z"/>
45-
</svg>
46-
<svg v-else class="os-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 448 512" fill="currentColor">
47-
<path d="M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7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 15.7 2.5 1.4 5.6 2 8.5 1 2.5-.9 4.3-3.1 5-5.7.4-1.5.2-3.1-.4-4.5-1.4-3.2-4.6-5-7.6-6.6-3-1.5-6.2-3-8-5.8-1.6-2.5-2-5.6-1.2-8.5.6-2.2 2.1-4.2 4.2-5 3.2-1.2 6.7.3 8.5 3.1 1 1.5 1.4 3.4 1.2 5.2.2.5.4 1 .5 1.5.3 1 .5 2.1.5 3.2 0 3.5-1.3 6.8-3.5 9.3 2.4 1.7 5.2 2.7 8.2 2.7 4.4 0 8.5-2.1 11.1-5.5 2.8-3.7 3.5-8.6 1.8-12.9z"/>
48-
</svg>
33+
<AppleOutlined v-if="detectedOS === 'macos'" class="os-icon" />
34+
<WindowsOutlined v-else-if="detectedOS === 'windows'" class="os-icon" />
35+
<svg v-else class="os-icon" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 448 512" fill="currentColor"><path d="M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 85.4 157.7 130.9c.3 30.4-16.3 51-33.4 72-15.2 18-35.1 44.3-46.5 74.4-9.3 24.6-12.9 51.8-3.7 79.1-1.4.5-2.8 1.2-4.1 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.2 2.7 4.4 0 8.5-2.1 11.1-5.5 2.8-3.7 3.5-8.6 1.8-12.9z"/></svg>
4936
<span>{{ isZh ? '下载' : 'Download' }} v{{ VERSION }}</span>
5037
</a>
5138
<a href="/features" class="dl-btn dl-docs">
39+
<ReadOutlined class="os-icon" />
5240
<span>{{ isZh ? '文档' : 'Docs' }}</span>
53-
<ArrowRight :size="18" />
5441
</a>
5542
</div>
5643
</template>
@@ -100,12 +87,12 @@ const osLabel = computed(() => {
10087
10188
.dl-docs {
10289
color: var(--vp-c-text-1);
103-
border: 2px solid var(--vp-c-text-3);
90+
border: 2px solid var(--vp-c-divider);
10491
background: transparent;
10592
}
10693
.dl-docs:hover {
10794
border-color: var(--vp-c-brand-1);
108-
color: var(--vp-c-brand-1);
95+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
10996
transform: translateY(-1px);
11097
}
11198

0 commit comments

Comments
 (0)