diff --git a/.vitepress/locales/en.ts b/.vitepress/locales/en.ts deleted file mode 100644 index 20804fcd8..000000000 --- a/.vitepress/locales/en.ts +++ /dev/null @@ -1,446 +0,0 @@ -import { baseHelper } from '../theme/utils' -import { socialList } from '../theme/composables/socialList' - -import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' -import type { CustomConfig } from './types' - -export const META_URL = 'https://yuanshen.site/docs/en/' -export const META_TITLE = 'Genshin Interactive Map' -export const META_KEYWORDS = - 'Genshin Interactive Map, Genshin Map, Kongying Tavern, yuanshenmap, Genshin Impact Map, Kongying Map' -export const META_DESCRIPTION = - 'A Genshin interactive map by Kongying Tavern for completionists' -export const META_IMAGE = 'https://yuanshen.site/docs/imgs/common/cover.jpg' -export const LOCAL_CODE = 'en-US' -export const LOCAL_BASE = 'en' - -export const enConfig: LocaleSpecificConfig< - DefaultTheme.Config & CustomConfig -> = { - titleTemplate: 'Kongying Tavern', - themeConfig: { - keyword: META_KEYWORDS, - description: META_DESCRIPTION, - image: META_IMAGE, - siteTitle: 'Genshin Interactive Map', - outlineTitle: 'On This Page', - lastUpdatedText: 'Update Date', - logo: '/imgs/common/logo/logo_256.png', - ui: { - button: { - submit: 'Submit', - cancel: 'Cancel', - }, - }, - docsFeedback: { - feedbackMsg: 'Was this document helpful?', - good: 'Yes', - bad: 'No', - feedbackFailMsg: - 'Feedback failed, please retry or contact admin (QQ: 1961266616)!', - feedbackSuccessMsg: 'Feedback submitted successfully, thank you!', - badFeedbackSuccessMsg: 'Please specify any issues below~', - form: { - chooseIssues: 'Did you encounter these issues?', - translationIssue: 'Translation', - typosIssue: 'Typos/Punctuation', - ContentImgLinkIssue: 'Inaccurate Content, Image or Link', - feedbackDetail: 'Details/Suggestions', - feedbackTip: 'Describe issues or suggestions here', - otherIssue: 'Other (specify below)', - contactWay: 'Contact (optional)', - issueOptions: [ - { label: 'Page Display Error', value: 'pagedisplay-issue' }, - { label: 'Typos, Punctuation', value: 'typos-issue' }, - { label: 'Content, Image, Link Error', value: 'content-issue' }, - { label: 'Other Issues', value: 'other-issue' }, - ], - }, - }, - notFound: { - title: 'PAGE NOT FOUND', - quote: - "But if you don't change your direction, and if you keep looking, you may end up where you are heading.", - linkLabel: 'Take me home', - }, - team: { - title: '关于团队', - desc: '地图的背后是一个基本来自中国的团队,以下是部分成员的个人信息。', - coreMember: { - title: '核心团队成员', - desc: '核心团队成员是那些积极长期参与维护一个或多个核心项目的人。 他们对空荧酒馆的生态系统做出了重大贡献。', - }, - emeritiMember: { - title: '名誉核心团队', - desc: '我们在此致敬过去曾做出过突出贡献的不再活跃的团队成员。', - }, - partnerMember: { - title: '社区伙伴', - desc: '我们与这些主要合作伙伴建立了更加亲密的关系,经常与他们就即将到来的功能展开合作。', - }, - }, - socialLinks: [ - { icon: 'github', link: 'https://github.com/kongying-tavern' }, - { - icon: { - svg: socialList.reddit.icon, - }, - link: 'https://www.reddit.com/user/Kongying_Tavern', - }, - { icon: 'discord', link: 'https://discord.gg/aFe57AKZUF' }, - { icon: 'x', link: 'https://twitter.com/KongyingTavern' }, - ], - docFooter: { - prev: 'Previous page', - next: 'Next page', - }, - staff: { - title: 'Staff', - desc: '空荧酒馆『原神地图』项目参与制作', - communityStaff: { - title: '社区运营', - }, - clientStaff: { - title: '客户端开发', - }, - webStaff: { - title: '网页端开发', - }, - translateStaff: { - title: '本地化翻译', - }, - pinStaff: { - title: '地图点位标记', - }, - }, - asideLinks: { - title: 'Links', - starOnGitHub: 'Star on GitHub ', - contactUsText: 'Chat on Discord', - contactUsLink: 'https://discord.gg/SWz6RTWNkm', - sponsor: 'Become a Sponsor', - editLink: 'Edit this page', - }, - payment: { - wechatpay: { - name: 'WeChat Pay', - address: 'wxp://f2f0dd1rszrnqJc_gnlwV_lRX5dlZ1Dtn9rp', - }, - alipay: { - name: 'Alipay', - address: 'https://qr.alipay.com/tsx11609thmpw9odmvdlxd6', - }, - qqpay: { - name: 'QQ Pay', - address: - 'https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=790489566&ac=CAEQ3tP3-AIY0v2k_AU%3D_xxx_sign&n=AAAAAAAA&f=wallet', - }, - paypal: { - name: 'PayPal', - address: 'https://www.paypal.com/paypalme/yuanshenditu', - }, - bilibili: { - name: 'bilibili', - address: 'https://space.bilibili.com/518076785', - }, - }, - nav: baseHelper(nav(), LOCAL_BASE), - sidebar: baseHelper(sidebar(), LOCAL_BASE), - footer: baseHelper(footer(), LOCAL_BASE), - }, - head: [ - ['meta', { property: 'og:site_name', content: META_TITLE }], - ['meta', { property: 'og:locale', content: 'en-US' }], - ], -} - -function nav(): DefaultTheme.NavItem[] { - return [ - { - text: 'Download', - link: '/download-client.md', - }, - { - text: 'Support us', - link: '/support-us.md', - }, - { - text: 'Community', - link: '/community.md', - }, - { - text: 'Support', - activeMatch: `^/en/manual/`, - items: [ - { - text: 'Client User Manual', - link: '/manual/client-user-manual', - }, - { - text: 'Feedback', - link: 'https://support.qq.com/products/321980', - }, - { - text: 'New Features', - link: 'https://support.qq.com/products/321980/topic-detail/2016/', - }, - ], - }, - { - text: 'About', - items: [ - { - text: 'About Us', - items: [ - { - text: 'Join Us', - link: '/join.md', - }, - { - text: 'Our Team', - link: '/team.md', - }, - ], - }, - { - text: 'Update Log', - items: [ - { - text: 'Web', - link: 'https://support.qq.com/products/321980/blog/505810', - }, - { - text: 'Client', - link: 'https://discord.gg/SWz6RTWNkm', - }, - ], - }, - { - text: 'Acknowledgement', - items: [ - { - text: 'Credits', - link: '/credits.md', - }, - { - text: 'Contributors', - link: '/contribution.md', - }, - { - text: 'Sponsors', - link: '/support-us.md#Sponsor%20Acknowledgements', - }, - ], - }, - { - text: 'Legal (Chinese)', - items: [ - { - text: 'Disclaimer', - link: '/disclaimer.md', - }, - { - text: 'Privacy', - link: '/privacy.md', - }, - { - text: 'Agreement', - link: '/agreement.md', - }, - ], - }, - { - text: 'Other', - items: [ - { - text: 'Friend-links', - link: '/friends-links.md', - }, - ], - }, - ], - }, - ] -} - -function footer(): CustomConfig['footer'] { - return { - qrcodeTitle: 'Discord Server', - qrcodeMessage: 'Contact us on discord', - qrcodeLink: 'https://discord.gg/aFe57AKZUF', - navigation: [ - { - title: 'About', - items: [ - { - text: 'Join Us', - link: '/join', - }, - { - text: 'Our team', - link: '/team', - }, - { - text: 'Sponsors', - link: '/support-us', - }, - ], - }, - { - title: 'Legal (Chinese)', - items: [ - { - text: 'Disclaimer', - link: '/disclaimer', - }, - { - text: 'Privacy', - link: '/privacy', - }, - { - text: 'Agreement', - link: '/agreement', - }, - ], - }, - { - title: 'Support', - items: [ - { - text: 'Client User Manual', - link: '/manual/client-user-manual', - }, - { - text: 'Feedback', - link: 'https://support.qq.com/products/321980', - }, - { - text: 'New Features', - link: 'https://support.qq.com/products/321980/topic-detail/2016/', - }, - ], - }, - ], - } -} - -function sidebar(): DefaultTheme.SidebarItem[] { - return { - // @ts-ignore - '/manual': [ - { - text: 'Table of Contents', - link: '/manual/client-user-manual', - }, - { - text: 'Guides', - collapsed: false, - items: [ - { - text: 'Automatic Tracking', - items: [ - { - text: 'Introduction', - link: '/manual/guide/auto-tracking/importantnotes', - }, - { - text: 'Troubleshooting', - link: '/manual/guide/auto-tracking/troubleshoot', - }, - ], - }, - { - text: 'Framerate/Tracking Control', - link: '/manual/guide/bg/bgfrate', - }, - { - text: 'Multi Mark', - link: '/manual/guide/batch-selection/instructions', - }, - { - text: 'Canvas Guide', - link: '/manual/guide/canvas/guide', - }, - { - text: 'Easter Egg', - link: '/manual/guide/easter-egg/view', - }, - { - text: 'Hide/Show Found', - link: '/manual/guide/hide-show-done/hidedoneshowdone', - }, - { - text: 'Overlay Mode', - items: [ - { - text: 'Instructions', - link: '/manual/guide/overlay-mode/instructions', - }, - { - text: 'Windowed Fullscreen', - link: '/manual/guide/overlay-mode/fullscreen-windowed/launching', - }, - ], - }, - { - text: 'Restore/Recover Progress', - link: '/manual/guide/restore-recover/progress', - }, - ], - }, - { - text: 'FAQ', - collapsed: false, - items: [ - { - text: 'Account safety', - link: '/manual/faq/accountsafety/acntban.md', - }, - { - text: 'Auto Update', - link: '/manual/faq/autoupdate/updater.md', - }, - { - text: 'Installation Error', - items: [ - { - text: 'Code 2503', - link: '/manual/faq/instlerror/code2503.md', - }, - { - text: 'Missing .dll file', - link: '/manual/faq/instlerror/missingdll.md', - }, - ], - }, - { - text: 'Launch Error', - items: [ - { - text: 'Stuck/No Progress', - link: '/manual/faq/launcherror/emptydialog.md', - }, - { - text: 'Version Check Failed', - link: '/manual/faq/launcherror/versioncheck.md', - }, - ], - }, - { - text: 'About Login', - items: [ - { - text: 'Login Problems', - link: '/manual/faq/login/accountlogin.md', - }, - { - text: 'Repeated Login Requests', - link: '/manual/faq/login/clientrepeatedly.md', - }, - ], - }, - ], - }, - ], - } -} diff --git a/.vitepress/locales/en/404.ts b/.vitepress/locales/en/404.ts new file mode 100644 index 000000000..7b13f4d37 --- /dev/null +++ b/.vitepress/locales/en/404.ts @@ -0,0 +1,10 @@ +import type { DefaultTheme } from 'vitepress' + +const notFound: DefaultTheme.NotFoundOptions = { + title: 'PAGE NOT FOUND', + quote: + "But if you don't change your direction, and if you keep looking, you may end up where you are heading.", + linkLabel: 'Take me home', +} + +export default notFound diff --git a/.vitepress/locales/en/aside-links.ts b/.vitepress/locales/en/aside-links.ts new file mode 100644 index 000000000..d5bd5e79f --- /dev/null +++ b/.vitepress/locales/en/aside-links.ts @@ -0,0 +1,12 @@ +import type { CustomConfig } from '../types' + +const asideLinks: CustomConfig['asideLinks'] = { + title: 'Links', + starOnGitHub: 'Star on GitHub', + contactUsText: 'Chat on Discord', + contactUsLink: 'https://discord.gg/SWz6RTWNkm', + sponsor: 'Become a Sponsor', + editLink: 'Edit this page', +} + +export default asideLinks diff --git a/.vitepress/locales/en/constants.ts b/.vitepress/locales/en/constants.ts new file mode 100644 index 000000000..59cffe1bb --- /dev/null +++ b/.vitepress/locales/en/constants.ts @@ -0,0 +1,15 @@ +import type { CustomConstant } from '../types' + +const constants: CustomConstant = { + META_URL: 'https://yuanshen.site/docs/en/', + META_TITLE: 'Genshin Interactive Map', + META_KEYWORDS: + 'Genshin Interactive Map, Genshin Map, Kongying Tavern, yuanshenmap, Genshin Impact Map, Kongying Map', + META_DESCRIPTION: + 'A Genshin interactive map by Kongying Tavern for completionists', + META_IMAGE: 'https://yuanshen.site/docs/imgs/common/cover.jpg', + LOCAL_CODE: 'en-US', + LOCAL_BASE: 'en', +} + +export default constants diff --git a/.vitepress/locales/en/docs-feedback.ts b/.vitepress/locales/en/docs-feedback.ts new file mode 100644 index 000000000..ada8296ae --- /dev/null +++ b/.vitepress/locales/en/docs-feedback.ts @@ -0,0 +1,29 @@ +import type { CustomConfig } from '../types' + +const docsFeedback: CustomConfig['docsFeedback'] = { + feedbackMsg: 'Was this document helpful?', + good: 'Yes', + bad: 'No', + feedbackFailMsg: + 'Feedback failed, please retry or contact admin (QQ: 1961266616)!', + feedbackSuccessMsg: 'Feedback submitted successfully, thank you!', + badFeedbackSuccessMsg: 'Please specify any issues below~', + form: { + chooseIssues: 'Did you encounter these issues?', + translationIssue: 'Translation', + typosIssue: 'Typos/Punctuation', + ContentImgLinkIssue: 'Inaccurate Content, Image or Link', + feedbackDetail: 'Details/Suggestions', + feedbackTip: 'Describe issues or suggestions here', + otherIssue: 'Other (specify below)', + contactWay: 'Contact (optional)', + issueOptions: [ + { label: 'Page Display Error', value: 'pagedisplay-issue' }, + { label: 'Typos, Punctuation', value: 'typos-issue' }, + { label: 'Content, Image, Link Error', value: 'content-issue' }, + { label: 'Other Issues', value: 'other-issue' }, + ], + }, +} + +export default docsFeedback diff --git a/.vitepress/locales/en/footer.ts b/.vitepress/locales/en/footer.ts new file mode 100644 index 000000000..9d92eab94 --- /dev/null +++ b/.vitepress/locales/en/footer.ts @@ -0,0 +1,62 @@ +import type { CustomConfig } from '../types' + +const footer: CustomConfig['footer'] = { + qrcodeTitle: 'Discord Server', + qrcodeMessage: 'Contact us on discord', + qrcodeLink: 'https://discord.gg/aFe57AKZUF', + navigation: [ + { + title: 'About', + items: [ + { + text: 'Join Us', + link: '/join', + }, + { + text: 'Our team', + link: '/team', + }, + { + text: 'Sponsors', + link: '/support-us', + }, + ], + }, + { + title: 'Legal (Chinese)', + items: [ + { + text: 'Disclaimer', + link: '/disclaimer', + }, + { + text: 'Privacy', + link: '/privacy', + }, + { + text: 'Agreement', + link: '/agreement', + }, + ], + }, + { + title: 'Support', + items: [ + { + text: 'Client User Manual', + link: '/manual/client-user-manual', + }, + { + text: 'Feedback', + link: 'https://support.qq.com/products/321980', + }, + { + text: 'New Features', + link: 'https://support.qq.com/products/321980/topic-detail/2016/', + }, + ], + }, + ], +} + +export default footer diff --git a/.vitepress/locales/en/head.ts b/.vitepress/locales/en/head.ts new file mode 100644 index 000000000..80cc5d2eb --- /dev/null +++ b/.vitepress/locales/en/head.ts @@ -0,0 +1,9 @@ +import type { LocaleSpecificConfig } from 'vitepress' +import C from './constants' + +const head: LocaleSpecificConfig['head'] = [ + ['meta', { property: 'og:site_name', content: C.META_TITLE }], + ['meta', { property: 'og:locale', content: 'en-US' }], +] + +export default head diff --git a/.vitepress/locales/en/index.ts b/.vitepress/locales/en/index.ts new file mode 100644 index 000000000..2c41c026b --- /dev/null +++ b/.vitepress/locales/en/index.ts @@ -0,0 +1,56 @@ +import { baseHelper } from '../../theme/utils' + +import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' +import type { CustomConfig } from '../types' + +import C from './constants' +import Head from './head' +import Nav from './nav' +import Sidebar from './sidebar' +import Footer from './footer' +import _404 from './404' +import UI from './ui' +import SocialLinks from './social-links' +import AsideLinks from './aside-links' +import DocsFeedback from './docs-feedback' + +import Staff from './staff' +import Team from './team' +import Payment from './payment' + +export const enConfig: LocaleSpecificConfig< + DefaultTheme.Config & CustomConfig +> = { + titleTemplate: 'Kongying Tavern', + description: C.META_DESCRIPTION, + head: Head, + themeConfig: { + siteTitle: C.META_TITLE, + keyword: C.META_KEYWORDS, + description: C.META_DESCRIPTION, + image: C.META_IMAGE, + logo: '/imgs/common/logo/logo_256.png', + + outlineTitle: 'On This Page', + lastUpdatedText: 'Update Date', + returnToTopLabel: '回到顶部', + langMenuLabel: '更改语言', + notFound: _404, + ui: UI, + socialLinks: SocialLinks, + asideLinks: AsideLinks, + docsFeedback: DocsFeedback, + docFooter: { + prev: 'Previous page', + next: 'Next page', + }, + + staff: Staff, + team: Team, + payment: Payment, + + nav: baseHelper(Nav, C.LOCAL_BASE), + sidebar: baseHelper(Sidebar, C.LOCAL_BASE), + footer: baseHelper(Footer, C.LOCAL_BASE), + }, +} diff --git a/.vitepress/locales/en/nav.ts b/.vitepress/locales/en/nav.ts new file mode 100644 index 000000000..0014b5439 --- /dev/null +++ b/.vitepress/locales/en/nav.ts @@ -0,0 +1,144 @@ +import type { DefaultTheme } from 'vitepress' + +const nav: DefaultTheme.NavItem[] = [ + { + text: 'Community', + link: '/community', + activeMatch: '^/en/community', + }, + { + text: 'Support us', + link: '/support-us', + activeMatch: '^/en/support-us', + }, + { + text: 'Map Utilities', + activeMatch: '^/en/(download-client|manual/)', + items: [ + { + text: 'Download', + link: '/download-client', + activeMatch: '^/en/download-client', + }, + { + text: 'Windows Client', + items: [ + { + text: 'Manual', + link: '/manual/client-user-manual', + activeMatch: '^/en/manual/', + }, + { + text: 'Release Notes', + link: 'https://support.qq.com/products/321980/blog/505884', + }, + ], + }, + { + text: 'Web Version', + items: [ + { + text: 'Try Now', + link: 'https://v3.yuanshen.site', + }, + { + text: 'Release Notes', + link: 'https://support.qq.com/products/321980/blog/505810', + }, + ], + }, + ], + }, + { + text: 'Support', + items: [ + { + text: 'Feedback', + link: 'https://support.qq.com/products/321980', + }, + { + text: 'Feature Requests', + link: 'https://support.qq.com/products/321980/topic-detail/2016/', + }, + ], + }, + { + text: 'About', + activeMatch: + '^/en/(join|team|staff|support-us|credits|disclaimer|privacy|agreement|translations|friends-links)', + items: [ + { + text: 'About Us', + items: [ + { + text: 'Join Us', + link: '/join', + activeMatch: '^/en/join', + }, + { + text: 'Our Team', + link: '/team', + activeMatch: '^/en/team', + }, + ], + }, + { + text: 'Acknowledgements', + items: [ + { + text: 'Contributors', + link: '/staff', + activeMatch: '^/en/staff', + }, + { + text: 'Sponsors', + link: '/support-us#sponsor-acknowledgement', + activeMatch: '^/en/support-us', + }, + { + text: 'Credits', + link: '/credits', + activeMatch: '^/en/credits', + }, + ], + }, + { + text: 'Legal (Chinese)', + items: [ + { + text: 'Disclaimer', + link: '/disclaimer', + activeMatch: '^/en/disclaimer', + }, + { + text: 'Privacy', + link: '/privacy', + activeMatch: '^/en/privacy', + }, + { + text: 'Agreement', + link: '/agreement', + activeMatch: '^/en/agreement', + }, + ], + }, + { + text: 'Other', + items: [ + { + text: 'Translate for Us', + link: '/translations', + activeMatch: '^/en/translations', + }, + { + text: 'Friend-links', + link: '/friends-links', + activeMatch: '^/en/friends-links', + }, + ], + }, + ], + }, +] + +export default nav diff --git a/.vitepress/locales/en/payment.ts b/.vitepress/locales/en/payment.ts new file mode 100644 index 000000000..dca655033 --- /dev/null +++ b/.vitepress/locales/en/payment.ts @@ -0,0 +1,27 @@ +import type { CustomConfig } from '../types' + +const payment: CustomConfig['payment'] = { + wechatpay: { + name: 'WeChat Pay', + address: 'wxp://f2f0dd1rszrnqJc_gnlwV_lRX5dlZ1Dtn9rp', + }, + alipay: { + name: 'Alipay', + address: 'https://qr.alipay.com/tsx11609thmpw9odmvdlxd6', + }, + qqpay: { + name: 'QQ Pay', + address: + 'https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=790489566&ac=CAEQ3tP3-AIY0v2k_AU%3D_xxx_sign&n=AAAAAAAA&f=wallet', + }, + paypal: { + name: 'PayPal', + address: 'https://www.paypal.com/paypalme/yuanshenditu', + }, + bilibili: { + name: 'bilibili', + address: 'https://space.bilibili.com/518076785', + }, +} + +export default payment diff --git a/.vitepress/locales/en/sidebar.ts b/.vitepress/locales/en/sidebar.ts new file mode 100644 index 000000000..5249fee3e --- /dev/null +++ b/.vitepress/locales/en/sidebar.ts @@ -0,0 +1,122 @@ +import type { DefaultTheme } from 'vitepress' + +const sidebar: DefaultTheme.SidebarItem[] = { + // @ts-ignore + '/manual': [ + { + text: 'Table of Contents', + link: '/manual/client-user-manual', + }, + { + text: 'Guides', + collapsed: false, + items: [ + { + text: 'Automatic Tracking', + items: [ + { + text: 'Introduction', + link: '/manual/guide/auto-tracking/importantnotes', + }, + { + text: 'Troubleshooting', + link: '/manual/guide/auto-tracking/troubleshoot', + }, + ], + }, + { + text: 'Framerate/Tracking Control', + link: '/manual/guide/bg/bgfrate', + }, + { + text: 'Multi Mark', + link: '/manual/guide/batch-selection/instructions', + }, + { + text: 'Canvas Guide', + link: '/manual/guide/canvas/guide', + }, + { + text: 'Easter Egg', + link: '/manual/guide/easter-egg/view', + }, + { + text: 'Hide/Show Found', + link: '/manual/guide/hide-show-done/hidedoneshowdone', + }, + { + text: 'Overlay Mode', + items: [ + { + text: 'Instructions', + link: '/manual/guide/overlay-mode/instructions', + }, + { + text: 'Windowed Fullscreen', + link: '/manual/guide/overlay-mode/fullscreen-windowed/launching', + }, + ], + }, + { + text: 'Restore/Recover Progress', + link: '/manual/guide/restore-recover/progress', + }, + ], + }, + { + text: 'FAQ', + collapsed: false, + items: [ + { + text: 'Account safety', + link: '/manual/faq/accountsafety/acntban', + }, + { + text: 'Auto Update', + link: '/manual/faq/autoupdate/updater', + }, + { + text: 'Installation Error', + items: [ + { + text: 'Code 2503', + link: '/manual/faq/instlerror/code2503', + }, + { + text: 'Missing .dll file', + link: '/manual/faq/instlerror/missingdll', + }, + ], + }, + { + text: 'Launch Error', + items: [ + { + text: 'Stuck/No Progress', + link: '/manual/faq/launcherror/emptydialog', + }, + { + text: 'Version Check Failed', + link: '/manual/faq/launcherror/versioncheck', + }, + ], + }, + { + text: 'About Login', + items: [ + { + text: 'Login Problems', + link: '/manual/faq/login/accountlogin', + }, + { + text: 'Repeated Login Requests', + link: '/manual/faq/login/clientrepeatedly', + }, + ], + }, + ], + }, + ], +} + +export default sidebar diff --git a/.vitepress/locales/en/social-links.ts b/.vitepress/locales/en/social-links.ts new file mode 100644 index 000000000..8905b52f9 --- /dev/null +++ b/.vitepress/locales/en/social-links.ts @@ -0,0 +1,16 @@ +import type { DefaultTheme } from 'vitepress' +import { socialList } from '../../theme/composables/socialList' + +const socialLinks: DefaultTheme.SocialLink[] = [ + { icon: 'github', link: 'https://github.com/kongying-tavern' }, + { + icon: { + svg: socialList.reddit.icon, + }, + link: 'https://www.reddit.com/user/Kongying_Tavern', + }, + { icon: 'discord', link: 'https://discord.gg/aFe57AKZUF' }, + { icon: 'x', link: 'https://twitter.com/KongyingTavern' }, +] + +export default socialLinks diff --git a/.vitepress/locales/en/staff.ts b/.vitepress/locales/en/staff.ts new file mode 100644 index 000000000..4fe154910 --- /dev/null +++ b/.vitepress/locales/en/staff.ts @@ -0,0 +1,23 @@ +import type { CustomConfig } from '../types' + +const staff: CustomConfig['staff'] = { + title: 'Staff', + desc: '空荧酒馆『原神地图』项目参与制作', + communityStaff: { + title: '社区运营', + }, + clientStaff: { + title: '客户端开发', + }, + webStaff: { + title: '网页端开发', + }, + translateStaff: { + title: '本地化翻译', + }, + pinStaff: { + title: '地图点位标记', + }, +} + +export default staff diff --git a/.vitepress/locales/en/team.ts b/.vitepress/locales/en/team.ts new file mode 100644 index 000000000..507e2d8e6 --- /dev/null +++ b/.vitepress/locales/en/team.ts @@ -0,0 +1,20 @@ +import type { CustomConfig } from '../types' + +const team: CustomConfig['team'] = { + title: '关于团队', + desc: '地图的背后是一个基本来自中国的团队,以下是部分成员的个人信息。', + coreMember: { + title: '核心团队成员', + desc: '核心团队成员是那些积极长期参与维护一个或多个核心项目的人。 他们对空荧酒馆的生态系统做出了重大贡献。', + }, + emeritiMember: { + title: '名誉核心团队', + desc: '我们在此致敬过去曾做出过突出贡献的不再活跃的团队成员。', + }, + partnerMember: { + title: '社区伙伴', + desc: '我们与这些主要合作伙伴建立了更加亲密的关系,经常与他们就即将到来的功能展开合作。', + }, +} + +export default team diff --git a/.vitepress/locales/en/ui.ts b/.vitepress/locales/en/ui.ts new file mode 100644 index 000000000..9b98a19ba --- /dev/null +++ b/.vitepress/locales/en/ui.ts @@ -0,0 +1,13 @@ +import type { CustomConfig } from '../types' + +const ui: CustomConfig['ui'] = { + banner: { + wip: 'Sorry, this page translation is still in progress.', + }, + button: { + submit: 'Submit', + cancel: 'Cancel', + }, +} + +export default ui diff --git a/.vitepress/locales/fr.ts b/.vitepress/locales/fr.ts deleted file mode 100644 index f3f8d5777..000000000 --- a/.vitepress/locales/fr.ts +++ /dev/null @@ -1,454 +0,0 @@ -import { baseHelper } from '../theme/utils' -import { socialList } from '../theme/composables/socialList' - -import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' -import type { CustomConfig } from './types' - -export const META_URL = 'https://yuanshen.site/docs/fr/' -export const META_TITLE = 'Genshin Interactive Map' -export const META_KEYWORDS = - 'Genshin Interactive Map, Genshin Map, Kongying Tavern, yuanshenmap, Genshin Impact Map, Kongying Map' -export const META_DESCRIPTION = - 'A Genshin interactive map by Kongying Tavern for completionists' -export const META_IMAGE = 'https://yuanshen.site/docs/imgs/common/cover.jpg' -export const LOCAL_CODE = 'fr' -export const LOCAL_BASE = 'fr' - -export const frConfig: LocaleSpecificConfig< - DefaultTheme.Config & CustomConfig -> = { - titleTemplate: 'Kongying Tavern', - themeConfig: { - keyword: META_KEYWORDS, - description: META_DESCRIPTION, - image: META_IMAGE, - siteTitle: 'Carte interactive de Genshin', - outlineTitle: 'Sur cette page', - logo: '/imgs/common/logo/logo_256.png', - lastUpdatedText: 'Dernière mise à jour ', - notFound: { - title: 'PAGE NOT FOUNDz', - quote: - "But if you don't change your direction, and if you keep looking, you may end up where you are heading.", - linkLabel: 'Take me home', - }, - ui: { - button: { - submit: 'Soumettre', - cancel: 'Annuler', - }, - }, - docsFeedback: { - feedbackMsg: 'Ce document vous a-t-il été utile ?', - good: 'Utile', - bad: 'Pas utile', - feedbackFailMsg: - "Échec de la rétroaction, veuillez réessayer ou contacter l'administrateur (QQ : 1961266616) !", - feedbackSuccessMsg: 'Rétroaction soumise avec succès, merci !', - badFeedbackSuccessMsg: 'Veuillez spécifier les problèmes ci-dessous~', - form: { - chooseIssues: "Avez-vous rencontré l'un de ces problèmes ?", - translationIssue: 'Problème de traduction', - typosIssue: 'Erreurs de frappe/ponctuation', - ContentImgLinkIssue: - "Contenu inexact, problème de chargement d'image ou de lien", - feedbackDetail: 'Détails/Suggestions', - feedbackTip: 'Décrivez les problèmes rencontrés ou les suggestions ici', - otherIssue: 'Autres problèmes (spécifiez ci-dessous)', - contactWay: 'Coordonnées (facultatif)', - issueOptions: [ - { label: "Erreur d'affichage de page", value: 'pagedisplay-issue' }, - { label: 'Erreurs de frappe, ponctuation', value: 'typos-issue' }, - { label: 'Contenu, image, erreur de lien', value: 'content-issue' }, - { label: 'Autres problèmes', value: 'other-issue' }, - ], - }, - }, - team: { - title: '关于团队', - desc: '地图的背后是一个基本来自中国的团队,以下是部分成员的个人信息。', - coreMember: { - title: '核心团队成员', - desc: '核心团队成员是那些积极长期参与维护一个或多个核心项目的人。 他们对空荧酒馆的生态系统做出了重大贡献。', - }, - emeritiMember: { - title: '名誉核心团队', - desc: '我们在此致敬过去曾做出过突出贡献的不再活跃的团队成员。', - }, - partnerMember: { - title: '社区伙伴', - desc: '我们与这些主要合作伙伴建立了更加亲密的关系,经常与他们就即将到来的功能展开合作。', - }, - }, - socialLinks: [ - { icon: 'github', link: 'https://github.com/kongying-tavern' }, - { - icon: { - svg: socialList.reddit.icon, - }, - link: 'https://www.reddit.com/user/Kongying_Tavern', - ariaLabel: 'Reddit', - }, - { icon: 'discord', link: 'https://discord.gg/aFe57AKZUF' }, - { icon: 'x', link: 'https://twitter.com/KongyingTavern' }, - ], - asideLinks: { - title: 'Links', - starOnGitHub: 'Star on GitHub ', - contactUsText: 'Chat on Discord', - contactUsLink: 'https://discord.gg/SWz6RTWNkm', - sponsor: 'Become a Sponsor', - editLink: 'Edit this page', - }, - staff: { - title: 'Staff', - desc: '空荧酒馆『原神地图』项目参与制作', - communityStaff: { - title: '社区运营', - }, - clientStaff: { - title: '客户端开发', - }, - webStaff: { - title: '网页端开发', - }, - translateStaff: { - title: '本地化翻译', - }, - pinStaff: { - title: '地图点位标记', - }, - }, - docFooter: { - prev: 'Page précédente', - next: 'Page suivante', - }, - editLink: { - pattern: 'https://github.com/kongying-tavern/docs/edit/main/src/:path', - text: 'Suggérer des modifications à cette page', - }, - payment: { - wechatpay: { - name: 'WeChat Pay', - address: 'wxp://f2f0dd1rszrnqJc_gnlwV_lRX5dlZ1Dtn9rp', - }, - alipay: { - name: 'Alipay', - address: 'https://qr.alipay.com/tsx11609thmpw9odmvdlxd6', - }, - qqpay: { - name: 'QQ Pay', - address: - 'https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=790489566&ac=CAEQ3tP3-AIY0v2k_AU%3D_xxx_sign&n=AAAAAAAA&f=wallet', - }, - paypal: { - name: 'PayPal', - address: 'https://www.paypal.com/paypalme/yuanshenditu', - }, - bilibili: { - name: 'bilibili', - address: 'https://space.bilibili.com/518076785', - }, - }, - nav: baseHelper(nav(), LOCAL_BASE), - sidebar: baseHelper(sidebar(), LOCAL_BASE), - footer: baseHelper(footer(), LOCAL_BASE), - }, - head: [ - ['meta', { name: 'keywords', content: META_KEYWORDS }], - ['meta', { property: 'og:url', content: META_URL }], - ['meta', { property: 'og:description', content: META_DESCRIPTION }], - ['meta', { property: 'twitter:url', content: META_URL }], - ['meta', { property: 'twitter:title', content: META_TITLE }], - ['meta', { property: 'twitter:description', content: META_DESCRIPTION }], - ['meta', { property: 'og:site_name', content: META_TITLE }], - ['meta', { property: 'og:locale', content: LOCAL_CODE }], - ['meta', { property: 'og:image', content: META_IMAGE }], - [ - 'meta', - { - name: 'twitter:image', - content: META_IMAGE, - }, - ], - ], -} - -function nav(): DefaultTheme.NavItem[] { - return [ - { - text: 'Télécharger', - link: '/download-client.md', - }, - { - text: 'Soutenez-nous', - link: '/support-us.md', - }, - { - text: 'Communauté', - link: '/community.md', - }, - { - text: 'Support', - items: [ - { - text: "Manuel d'utilisation du client", - link: '/manual/client-user-manual', - }, - { - text: "Retour d'expérience", - link: 'https://support.qq.com/products/321980', - }, - { - text: 'Nouvelles fonctionnalités', - link: 'https://support.qq.com/products/321980/topic-detail/2016/', - }, - ], - }, - { - text: 'À propos', - items: [ - { - text: 'À propos de nous', - items: [ - { - text: 'Rejoignez-nous', - link: '/join.md', - }, - { - text: 'Notre équipe', - link: '/team.md', - }, - ], - }, - { - text: 'Journal des mises à jour', - items: [ - { - text: 'Web', - link: 'https://support.qq.com/products/321980/blog/505810', - }, - { - text: 'Client', - link: 'https://discord.gg/SWz6RTWNkm', - }, - ], - }, - { - text: 'Remerciements', - items: [ - { - text: 'Crédits', - link: '/credits.md', - }, - { - text: 'Contributeurs', - link: '/contribution.md', - }, - { - text: 'Sponsors', - link: '/support-us.md#Sponsor%20Acknowledgements', - }, - ], - }, - { - text: 'Mentions légales (chinois)', - items: [ - { - text: 'Clause de non-responsabilité', - link: '/disclaimer.md', - }, - { - text: 'Confidentialité', - link: '/privacy.md', - }, - { - text: 'Accord', - link: '/agreement.md', - }, - ], - }, - ], - }, - ] -} - -function footer(): CustomConfig['footer'] { - return { - qrcodeTitle: 'Serveur Discord', - qrcodeMessage: 'Contactez-nous sur Discord', - qrcodeLink: 'https://discord.gg/aFe57AKZUF', - navigation: [ - { - title: 'À propos', - items: [ - { - text: 'Rejoignez-nous', - link: '/join', - }, - { - text: 'Notre équipe', - link: '/team', - }, - { - text: 'Sponsors', - link: '/support-us', - }, - ], - }, - { - title: 'Mentions légales (chinois)', - items: [ - { - text: 'Clause de non-responsabilité', - link: '/disclaimer', - }, - { - text: 'Confidentialité', - link: '/privacy', - }, - { - text: 'Accord', - link: '/agreement', - }, - ], - }, - { - title: 'Support', - items: [ - { - text: "Manuel d'utilisation du client", - link: '/manual/client-user-manual', - }, - { - text: "Retour d'expérience", - link: 'https://support.qq.com/products/321980', - }, - { - text: 'Nouvelles fonctionnalités', - link: 'https://support.qq.com/products/321980/topic-detail/2016/', - }, - ], - }, - ], - } -} - -function sidebar(): DefaultTheme.SidebarItem[] { - return { - // @ts-ignore - '/manual': [ - { - text: 'Table des matières', - link: '/manual/client-user-manual', - }, - { - text: 'Guides', - items: [ - { - text: 'Suivi automatique', - items: [ - { - text: 'Introduction', - link: '/manual/guide/auto-tracking/importantnotes', - }, - { - text: 'Résolution des problèmes', - link: '/manual/guide/auto-tracking/troubleshoot', - }, - ], - }, - { - text: "Contrôle de la fréquence d'images/du suivi", - link: '/manual/guide/bg/bgfrate', - }, - { - text: 'Marquage multiple', - link: '/manual/guide/batch-selection/instructions', - }, - { - text: 'Guide du canvas', - link: '/manual/guide/canvas/guide', - }, - { - text: 'Easter Egg', - link: '/manual/guide/easter-egg/view', - }, - { - text: 'Cacher/Afficher les éléments trouvés', - link: '/manual/guide/hide-show-done/hidedoneshowdone', - }, - { - text: 'Mode superposition', - items: [ - { - text: 'Instructions', - link: '/manual/guide/overlay-mode/instructions', - }, - { - text: 'Fenêtré plein écran', - link: '/manual/guide/overlay-mode/fullscreen-windowed/launching', - }, - ], - }, - { - text: 'Restauration/récupération de la progression', - link: '/manual/guide/restore-recover/progress', - }, - ], - }, - { - text: 'FAQ', - items: [ - { - text: 'Sécurité du compte', - link: '/manual/faq/accountsafety/acntban.md', - }, - { - text: 'Mise à jour automatique', - link: '/manual/faq/autoupdate/updater.md', - }, - { - text: "Erreur d'installation", - items: [ - { - text: 'Code 2503', - link: '/manual/faq/instlerror/code2503.md', - }, - { - text: 'Fichier .dll manquant', - link: '/manual/faq/instlerror/missingdll.md', - }, - ], - }, - { - text: 'Erreur de lancement', - items: [ - { - text: 'Blocage/pas de progression', - link: '/manual/faq/launcherror/emptydialog.md', - }, - { - text: 'Échec de la vérification de la version', - link: '/manual/faq/launcherror/versioncheck.md', - }, - ], - }, - { - text: 'À propos de la connexion', - items: [ - { - text: 'Problèmes de connexion', - link: '/manual/faq/login/accountlogin.md', - }, - { - text: 'Demandes de connexion répétées', - link: '/manual/faq/login/clientrepeatedly.md', - }, - ], - }, - ], - }, - ], - } -} diff --git a/.vitepress/locales/fr/404.ts b/.vitepress/locales/fr/404.ts new file mode 100644 index 000000000..7b13f4d37 --- /dev/null +++ b/.vitepress/locales/fr/404.ts @@ -0,0 +1,10 @@ +import type { DefaultTheme } from 'vitepress' + +const notFound: DefaultTheme.NotFoundOptions = { + title: 'PAGE NOT FOUND', + quote: + "But if you don't change your direction, and if you keep looking, you may end up where you are heading.", + linkLabel: 'Take me home', +} + +export default notFound diff --git a/.vitepress/locales/fr/aside-links.ts b/.vitepress/locales/fr/aside-links.ts new file mode 100644 index 000000000..d5bd5e79f --- /dev/null +++ b/.vitepress/locales/fr/aside-links.ts @@ -0,0 +1,12 @@ +import type { CustomConfig } from '../types' + +const asideLinks: CustomConfig['asideLinks'] = { + title: 'Links', + starOnGitHub: 'Star on GitHub', + contactUsText: 'Chat on Discord', + contactUsLink: 'https://discord.gg/SWz6RTWNkm', + sponsor: 'Become a Sponsor', + editLink: 'Edit this page', +} + +export default asideLinks diff --git a/.vitepress/locales/fr/constants.ts b/.vitepress/locales/fr/constants.ts new file mode 100644 index 000000000..4e163e37f --- /dev/null +++ b/.vitepress/locales/fr/constants.ts @@ -0,0 +1,15 @@ +import type { CustomConstant } from '../types' + +const constants: CustomConstant = { + META_URL: 'https://yuanshen.site/docs/fr/', + META_TITLE: 'Carte interactive de Genshin', + META_KEYWORDS: + 'Genshin Interactive Map, Genshin Map, Kongying Tavern, yuanshenmap, Genshin Impact Map, Kongying Map', + META_DESCRIPTION: + 'A Genshin interactive map by Kongying Tavern for completionists', + META_IMAGE: 'https://yuanshen.site/docs/imgs/common/cover.jpg', + LOCAL_CODE: 'fr', + LOCAL_BASE: 'fr', +} + +export default constants diff --git a/.vitepress/locales/fr/docs-feedback.ts b/.vitepress/locales/fr/docs-feedback.ts new file mode 100644 index 000000000..fcde203c4 --- /dev/null +++ b/.vitepress/locales/fr/docs-feedback.ts @@ -0,0 +1,30 @@ +import type { CustomConfig } from '../types' + +const docsFeedback: CustomConfig['docsFeedback'] = { + feedbackMsg: 'Ce document vous a-t-il été utile?', + good: 'Utile', + bad: 'Pas utile', + feedbackFailMsg: + "Échec de la rétroaction, veuillez réessayer ou contacter l'administrateur (QQ : 1961266616)!", + feedbackSuccessMsg: 'Rétroaction soumise avec succès, merci!', + badFeedbackSuccessMsg: 'Veuillez spécifier les problèmes ci-dessous~', + form: { + chooseIssues: "Avez-vous rencontré l'un de ces problèmes?", + translationIssue: 'Problème de traduction', + typosIssue: 'Erreurs de frappe/ponctuation', + ContentImgLinkIssue: + "Contenu inexact, problème de chargement d'image ou de lien", + feedbackDetail: 'Détails/Suggestions', + feedbackTip: 'Décrivez les problèmes rencontrés ou les suggestions ici', + otherIssue: 'Autres problèmes (spécifiez ci-dessous)', + contactWay: 'Coordonnées (facultatif)', + issueOptions: [ + { label: "Erreur d'affichage de page", value: 'pagedisplay-issue' }, + { label: 'Erreurs de frappe, ponctuation', value: 'typos-issue' }, + { label: 'Contenu, image, erreur de lien', value: 'content-issue' }, + { label: 'Autres problèmes', value: 'other-issue' }, + ], + }, +} + +export default docsFeedback diff --git a/.vitepress/locales/fr/footer.ts b/.vitepress/locales/fr/footer.ts new file mode 100644 index 000000000..80da203ef --- /dev/null +++ b/.vitepress/locales/fr/footer.ts @@ -0,0 +1,62 @@ +import type { CustomConfig } from '../types' + +const footer: CustomConfig['footer'] = { + qrcodeTitle: 'Serveur Discord', + qrcodeMessage: 'Contactez-nous sur Discord', + qrcodeLink: 'https://discord.gg/aFe57AKZUF', + navigation: [ + { + title: 'À propos', + items: [ + { + text: 'Rejoignez-nous', + link: '/join', + }, + { + text: 'Notre équipe', + link: '/team', + }, + { + text: 'Sponsors', + link: '/support-us', + }, + ], + }, + { + title: 'Mentions légales (chinois)', + items: [ + { + text: 'Clause de non-responsabilité', + link: '/disclaimer', + }, + { + text: 'Confidentialité', + link: '/privacy', + }, + { + text: 'Accord', + link: '/agreement', + }, + ], + }, + { + title: 'Support', + items: [ + { + text: "Manuel d'utilisation du client", + link: '/manual/client-user-manual', + }, + { + text: "Retour d'expérience", + link: 'https://support.qq.com/products/321980', + }, + { + text: 'Nouvelles fonctionnalités', + link: 'https://support.qq.com/products/321980/topic-detail/2016/', + }, + ], + }, + ], +} + +export default footer diff --git a/.vitepress/locales/fr/head.ts b/.vitepress/locales/fr/head.ts new file mode 100644 index 000000000..8d2ced427 --- /dev/null +++ b/.vitepress/locales/fr/head.ts @@ -0,0 +1,23 @@ +import type { LocaleSpecificConfig } from 'vitepress' +import C from './constants' + +const head: LocaleSpecificConfig['head'] = [ + ['meta', { name: 'keywords', content: C.META_KEYWORDS }], + ['meta', { property: 'og:url', content: C.META_URL }], + ['meta', { property: 'og:description', content: C.META_DESCRIPTION }], + ['meta', { property: 'twitter:url', content: C.META_URL }], + ['meta', { property: 'twitter:title', content: C.META_TITLE }], + ['meta', { property: 'twitter:description', content: C.META_DESCRIPTION }], + ['meta', { property: 'og:site_name', content: C.META_TITLE }], + ['meta', { property: 'og:locale', content: C.LOCAL_CODE }], + ['meta', { property: 'og:image', content: C.META_IMAGE }], + [ + 'meta', + { + name: 'twitter:image', + content: C.META_IMAGE, + }, + ], +] + +export default head diff --git a/.vitepress/locales/fr/index.ts b/.vitepress/locales/fr/index.ts new file mode 100644 index 000000000..ead8100c0 --- /dev/null +++ b/.vitepress/locales/fr/index.ts @@ -0,0 +1,56 @@ +import { baseHelper } from '../../theme/utils' + +import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' +import type { CustomConfig } from '../types' + +import C from './constants' +import Head from './head' +import Nav from './nav' +import Sidebar from './sidebar' +import Footer from './footer' +import _404 from './404' +import UI from './ui' +import SocialLinks from './social-links' +import AsideLinks from './aside-links' +import DocsFeedback from './docs-feedback' + +import Staff from './staff' +import Team from './team' +import Payment from './payment' + +export const frConfig: LocaleSpecificConfig< + DefaultTheme.Config & CustomConfig +> = { + titleTemplate: 'Taverne Kongying', + description: C.META_DESCRIPTION, + head: Head, + themeConfig: { + siteTitle: C.META_TITLE, + keyword: C.META_KEYWORDS, + description: C.META_DESCRIPTION, + image: C.META_IMAGE, + logo: '/imgs/common/logo/logo_256.png', + + outlineTitle: 'Sur cette page', + lastUpdatedText: 'Dernière mise à jour', + returnToTopLabel: '回到顶部', + langMenuLabel: '更改语言', + notFound: _404, + ui: UI, + socialLinks: SocialLinks, + asideLinks: AsideLinks, + docsFeedback: DocsFeedback, + docFooter: { + prev: 'Page précédente', + next: 'Page suivante', + }, + + staff: Staff, + team: Team, + payment: Payment, + + nav: baseHelper(Nav, C.LOCAL_BASE), + sidebar: baseHelper(Sidebar, C.LOCAL_BASE), + footer: baseHelper(Footer, C.LOCAL_BASE), + }, +} diff --git a/.vitepress/locales/fr/nav.ts b/.vitepress/locales/fr/nav.ts new file mode 100644 index 000000000..8aecb2a11 --- /dev/null +++ b/.vitepress/locales/fr/nav.ts @@ -0,0 +1,144 @@ +import type { DefaultTheme } from 'vitepress' + +const nav: DefaultTheme.NavItem[] = [ + { + text: 'Communauté', + link: '/community', + activeMatch: '^/fr/community', + }, + { + text: 'Soutenez-nous', + link: '/support-us', + activeMatch: '^/fr/support-us', + }, + { + text: 'APP', + activeMatch: '^/fr/(download-client|manual/)', + items: [ + { + text: 'Télécharger le client', + link: '/download-client', + activeMatch: '^/fr/download-client', + }, + { + text: 'Client pour Windows', + items: [ + { + text: `Guides d'utilisations`, + link: '/manual/client-user-manual', + activeMatch: '^/fr/manual/', + }, + { + text: 'Note des mises à jour', + link: 'https://support.qq.com/products/321980/blog/505884', + }, + ], + }, + { + text: 'Carte en ligne', + items: [ + { + text: 'Éssayer maintenant', + link: 'https://v3.yuanshen.site', + }, + { + text: 'Note des mises à jour', + link: 'https://support.qq.com/products/321980/blog/505810', + }, + ], + }, + ], + }, + { + text: 'Support', + items: [ + { + text: "Retour d'expérience", + link: 'https://support.qq.com/products/321980', + }, + { + text: 'Nouvelles fonctionnalités', + link: 'https://support.qq.com/products/321980/topic-detail/2016/', + }, + ], + }, + { + text: 'À propos', + activeMatch: + '^/fr/(join|team|staff|support-us|credits|disclaimer|privacy|agreement|translations|friends-links)', + items: [ + { + text: 'À propos de nous', + items: [ + { + text: 'Rejoignez-nous', + link: '/join', + activeMatch: '^/fr/join', + }, + { + text: 'Notre équipe', + link: '/team', + activeMatch: '^/fr/team', + }, + ], + }, + { + text: 'Remerciements', + items: [ + { + text: 'Contributeurs', + link: '/staff', + activeMatch: '^/fr/staff', + }, + { + text: 'Sponsors', + link: '/support-us#sponsor-acknowledgement', + activeMatch: '^/fr/support-us', + }, + { + text: 'Crédits', + link: '/credits', + activeMatch: '^/fr/credits', + }, + ], + }, + { + text: 'Mentions légales (chinois)', + items: [ + { + text: 'Clause de non-responsabilité', + link: '/disclaimer', + activeMatch: '^/fr/disclaimer', + }, + { + text: 'Confidentialité', + link: '/privacy', + activeMatch: '^/fr/privacy', + }, + { + text: 'Accord', + link: '/agreement', + activeMatch: '^/fr/agreement', + }, + ], + }, + { + text: 'À propos', + items: [ + { + text: 'Participer aux translations', + link: '/translations', + activeMatch: '^/fr/translations', + }, + { + text: 'Échange de liens', + link: '/friends-links', + activeMatch: '^/fr/friends-links', + }, + ], + }, + ], + }, +] + +export default nav diff --git a/.vitepress/locales/fr/payment.ts b/.vitepress/locales/fr/payment.ts new file mode 100644 index 000000000..dca655033 --- /dev/null +++ b/.vitepress/locales/fr/payment.ts @@ -0,0 +1,27 @@ +import type { CustomConfig } from '../types' + +const payment: CustomConfig['payment'] = { + wechatpay: { + name: 'WeChat Pay', + address: 'wxp://f2f0dd1rszrnqJc_gnlwV_lRX5dlZ1Dtn9rp', + }, + alipay: { + name: 'Alipay', + address: 'https://qr.alipay.com/tsx11609thmpw9odmvdlxd6', + }, + qqpay: { + name: 'QQ Pay', + address: + 'https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=790489566&ac=CAEQ3tP3-AIY0v2k_AU%3D_xxx_sign&n=AAAAAAAA&f=wallet', + }, + paypal: { + name: 'PayPal', + address: 'https://www.paypal.com/paypalme/yuanshenditu', + }, + bilibili: { + name: 'bilibili', + address: 'https://space.bilibili.com/518076785', + }, +} + +export default payment diff --git a/.vitepress/locales/fr/sidebar.ts b/.vitepress/locales/fr/sidebar.ts new file mode 100644 index 000000000..bd8c3fb59 --- /dev/null +++ b/.vitepress/locales/fr/sidebar.ts @@ -0,0 +1,120 @@ +import type { DefaultTheme } from 'vitepress' + +const sidebar: DefaultTheme.SidebarItem[] = { + // @ts-ignore + '/manual': [ + { + text: 'Table des matières', + link: '/manual/client-user-manual', + }, + { + text: 'Guides', + items: [ + { + text: 'Suivi automatique', + items: [ + { + text: 'Introduction', + link: '/manual/guide/auto-tracking/importantnotes', + }, + { + text: 'Résolution des problèmes', + link: '/manual/guide/auto-tracking/troubleshoot', + }, + ], + }, + { + text: "Contrôle de la fréquence d'images/du suivi", + link: '/manual/guide/bg/bgfrate', + }, + { + text: 'Marquage multiple', + link: '/manual/guide/batch-selection/instructions', + }, + { + text: 'Guide du canvas', + link: '/manual/guide/canvas/guide', + }, + { + text: 'Easter Egg', + link: '/manual/guide/easter-egg/view', + }, + { + text: 'Cacher/Afficher les éléments trouvés', + link: '/manual/guide/hide-show-done/hidedoneshowdone', + }, + { + text: 'Mode superposition', + items: [ + { + text: 'Instructions', + link: '/manual/guide/overlay-mode/instructions', + }, + { + text: 'Fenêtré plein écran', + link: '/manual/guide/overlay-mode/fullscreen-windowed/launching', + }, + ], + }, + { + text: 'Restauration/récupération de la progression', + link: '/manual/guide/restore-recover/progress', + }, + ], + }, + { + text: 'FAQ', + items: [ + { + text: 'Sécurité du compte', + link: '/manual/faq/accountsafety/acntban', + }, + { + text: 'Mise à jour automatique', + link: '/manual/faq/autoupdate/updater', + }, + { + text: "Erreur d'installation", + items: [ + { + text: 'Code 2503', + link: '/manual/faq/instlerror/code2503', + }, + { + text: 'Fichier .dll manquant', + link: '/manual/faq/instlerror/missingdll', + }, + ], + }, + { + text: 'Erreur de lancement', + items: [ + { + text: 'Blocage/pas de progression', + link: '/manual/faq/launcherror/emptydialog', + }, + { + text: 'Échec de la vérification de la version', + link: '/manual/faq/launcherror/versioncheck', + }, + ], + }, + { + text: 'À propos de la connexion', + items: [ + { + text: 'Problèmes de connexion', + link: '/manual/faq/login/accountlogin', + }, + { + text: 'Demandes de connexion répétées', + link: '/manual/faq/login/clientrepeatedly', + }, + ], + }, + ], + }, + ], +} + +export default sidebar diff --git a/.vitepress/locales/fr/social-links.ts b/.vitepress/locales/fr/social-links.ts new file mode 100644 index 000000000..ccf5567f5 --- /dev/null +++ b/.vitepress/locales/fr/social-links.ts @@ -0,0 +1,17 @@ +import type { DefaultTheme } from 'vitepress' +import { socialList } from '../../theme/composables/socialList' + +const socialLinks: DefaultTheme.SocialLink[] = [ + { icon: 'github', link: 'https://github.com/kongying-tavern' }, + { + icon: { + svg: socialList.reddit.icon, + }, + link: 'https://www.reddit.com/user/Kongying_Tavern', + ariaLabel: 'Reddit', + }, + { icon: 'discord', link: 'https://discord.gg/aFe57AKZUF' }, + { icon: 'x', link: 'https://twitter.com/KongyingTavern' }, +] + +export default socialLinks diff --git a/.vitepress/locales/fr/staff.ts b/.vitepress/locales/fr/staff.ts new file mode 100644 index 000000000..4fe154910 --- /dev/null +++ b/.vitepress/locales/fr/staff.ts @@ -0,0 +1,23 @@ +import type { CustomConfig } from '../types' + +const staff: CustomConfig['staff'] = { + title: 'Staff', + desc: '空荧酒馆『原神地图』项目参与制作', + communityStaff: { + title: '社区运营', + }, + clientStaff: { + title: '客户端开发', + }, + webStaff: { + title: '网页端开发', + }, + translateStaff: { + title: '本地化翻译', + }, + pinStaff: { + title: '地图点位标记', + }, +} + +export default staff diff --git a/.vitepress/locales/fr/team.ts b/.vitepress/locales/fr/team.ts new file mode 100644 index 000000000..507e2d8e6 --- /dev/null +++ b/.vitepress/locales/fr/team.ts @@ -0,0 +1,20 @@ +import type { CustomConfig } from '../types' + +const team: CustomConfig['team'] = { + title: '关于团队', + desc: '地图的背后是一个基本来自中国的团队,以下是部分成员的个人信息。', + coreMember: { + title: '核心团队成员', + desc: '核心团队成员是那些积极长期参与维护一个或多个核心项目的人。 他们对空荧酒馆的生态系统做出了重大贡献。', + }, + emeritiMember: { + title: '名誉核心团队', + desc: '我们在此致敬过去曾做出过突出贡献的不再活跃的团队成员。', + }, + partnerMember: { + title: '社区伙伴', + desc: '我们与这些主要合作伙伴建立了更加亲密的关系,经常与他们就即将到来的功能展开合作。', + }, +} + +export default team diff --git a/.vitepress/locales/fr/ui.ts b/.vitepress/locales/fr/ui.ts new file mode 100644 index 000000000..ff59df9b0 --- /dev/null +++ b/.vitepress/locales/fr/ui.ts @@ -0,0 +1,13 @@ +import type { CustomConfig } from '../types' + +const ui: CustomConfig['ui'] = { + banner: { + wip: 'Cette page est en cours de maintenance et ne représente pas le résultat final.', + }, + button: { + submit: 'Soumettre', + cancel: 'Annuler', + }, +} + +export default ui diff --git a/.vitepress/locales/ja.ts b/.vitepress/locales/ja.ts deleted file mode 100644 index bb9f74397..000000000 --- a/.vitepress/locales/ja.ts +++ /dev/null @@ -1,470 +0,0 @@ -import { socialList } from '../theme/composables/socialList' -import { baseHelper } from '../theme/utils' - -import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' -import type { CustomConfig } from './types' - -export const META_URL = 'https://yuanshen.site/docs/ja/' -export const META_TITLE = '原神マップ' -export const META_KEYWORDS = - '原神マップ, テイワットマップ, 空蛍酒場, yuanshenmap, Genshin Impact Map, Kongying Map' -export const META_DESCRIPTION = - '空蛍酒場は開発している資源、任務など攻略全般掲載するマップ' -export const META_IMAGE = 'https://yuanshen.site/docs/imgs/common/cover.jpg' -export const LOCAL_CODE = 'ja-JP' -export const LOCAL_BASE = 'ja' - -export const jaConfig: LocaleSpecificConfig< - DefaultTheme.Config & CustomConfig -> = { - titleTemplate: 'Kongying Tavern', - themeConfig: { - keyword: META_KEYWORDS, - description: META_DESCRIPTION, - image: META_IMAGE, - siteTitle: '原神マップ', - outlineTitle: 'このページでは', - logo: '/imgs/common/logo/logo_256.png', - lastUpdatedText: '更新日時', - notFound: { - title: 'PAGE NOT FOUNDz', - quote: - "But if you don't change your direction, and if you keep looking, you may end up where you are heading.", - linkLabel: 'Take me home', - }, - ui: { - button: { - submit: '提出する', - cancel: 'キャンセル', - }, - }, - docsFeedback: { - feedbackMsg: 'このドキュメントは役立ちましたか?', - good: '役立つ', - bad: '役に立たない', - feedbackFailMsg: - 'フィードバックが失敗しました。再試行するか、管理者に連絡してください(QQ:1961266616)!', - feedbackSuccessMsg: - 'フィードバックが正常に送信されました。ありがとうございます!', - badFeedbackSuccessMsg: '以下の問題を具体的にお知らせください~', - form: { - chooseIssues: '以下の問題に遭遇しましたか?', - translationIssue: '翻訳の問題', - typosIssue: '誤字/句読点のエラー', - ContentImgLinkIssue: - '不正確なコンテンツ表現、画像読み込みエラー、またはリンクエラー', - feedbackDetail: '詳細/提案', - feedbackTip: 'ここに遭遇した問題や提案を説明してください', - otherIssue: 'その他の問題(以下で具体的に指定してください)', - contactWay: '連絡先(任意)', - issueOptions: [ - { label: 'ページ表示エラー', value: 'pagedisplay-issue' }, - { label: '誤字、句読点のエラー', value: 'typos-issue' }, - { label: 'コンテンツ、画像、リンクのエラー', value: 'content-issue' }, - { label: 'その他の問題', value: 'other-issue' }, - ], - }, - }, - team: { - title: '关于团队', - desc: '地图的背后是一个基本来自中国的团队,以下是部分成员的个人信息。', - coreMember: { - title: '核心团队成员', - desc: '核心团队成员是那些积极长期参与维护一个或多个核心项目的人。 他们对空荧酒馆的生态系统做出了重大贡献。', - }, - emeritiMember: { - title: '名誉核心团队', - desc: '我们在此致敬过去曾做出过突出贡献的不再活跃的团队成员。', - }, - partnerMember: { - title: '社区伙伴', - desc: '我们与这些主要合作伙伴建立了更加亲密的关系,经常与他们就即将到来的功能展开合作。', - }, - }, - asideLinks: { - title: 'Links', - starOnGitHub: 'Star on GitHub', - contactUsText: 'Chat on Discord', - contactUsLink: 'https://discord.gg/SWz6RTWNkm', - sponsor: 'スポンサーになる', - editLink: 'このページを編集する', - }, - socialLinks: [ - { icon: 'github', link: 'https://github.com/kongying-tavern' }, - { - icon: { - svg: socialList.reddit.icon, - }, - link: 'https://www.reddit.com/user/Kongying_Tavern', - ariaLabel: 'reddit', - }, - { icon: 'discord', link: 'https://discord.gg/aFe57AKZUF' }, - { icon: 'x', link: 'https://twitter.com/KongyingTavern' }, - ], - docFooter: { - prev: '前へ', - next: '次へ', - }, - staff: { - title: 'Staff', - desc: '空荧酒馆『原神地图』项目参与制作', - communityStaff: { - title: '社区运营', - }, - clientStaff: { - title: '客户端开发', - }, - webStaff: { - title: '网页端开发', - }, - translateStaff: { - title: '本地化翻译', - }, - pinStaff: { - title: '地图点位标记', - }, - }, - payment: { - wechatpay: { - name: 'WeChat Pay', - address: 'wxp://f2f0dd1rszrnqJc_gnlwV_lRX5dlZ1Dtn9rp', - }, - alipay: { - name: 'Alipay', - address: 'https://qr.alipay.com/tsx11609thmpw9odmvdlxd6', - }, - qqpay: { - name: 'QQ Pay', - address: - 'https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=790489566&ac=CAEQ3tP3-AIY0v2k_AU%3D_xxx_sign&n=AAAAAAAA&f=wallet', - }, - paypal: { - name: 'PayPal', - address: 'https://www.paypal.com/paypalme/yuanshenditu', - }, - bilibili: { - name: 'bilibili', - address: 'https://space.bilibili.com/518076785', - }, - }, - nav: baseHelper(nav(), LOCAL_BASE), - sidebar: baseHelper(sidebar(), LOCAL_BASE), - footer: baseHelper(footer(), LOCAL_BASE), - }, - head: [ - ['meta', { name: 'keywords', content: META_KEYWORDS }], - ['meta', { property: 'og:url', content: META_URL }], - ['meta', { property: 'og:description', content: META_DESCRIPTION }], - ['meta', { property: 'twitter:url', content: META_URL }], - ['meta', { property: 'twitter:title', content: META_TITLE }], - ['meta', { property: 'twitter:description', content: META_DESCRIPTION }], - ['meta', { property: 'og:site_name', content: META_TITLE }], - ['meta', { property: 'og:locale', content: LOCAL_CODE }], - [ - 'meta', - { - property: 'og:image', - content: META_IMAGE, - }, - ], - [ - 'meta', - { - name: 'twitter:image', - content: META_IMAGE, - }, - ], - ], -} - -function nav(): DefaultTheme.NavItem[] { - return [ - { - text: 'ダウンロード', - link: '/download-client.md', - }, - { - text: 'コミュニティ', - link: '/community.md', - }, - { - text: 'スポンサーになる', - link: '/support-us.md', - }, - { - text: 'フィードバック', - items: [ - { - text: 'マニュアル', - link: '/manual/client-user-manual', - }, - { - text: 'フィートバック', - link: 'https://support.qq.com/products/321980', - }, - { - text: '機能紹介', - link: 'https://support.qq.com/products/321980/faqs-more/?id=126362', - }, - { - text: 'ご要望', - link: 'https://support.qq.com/products/321980/topic-detail/2016/', - }, - ], - }, - { - text: 'もっと知る', - items: [ - { - text: '私たちを知る', - items: [ - { - text: '開発に参画', - link: '/join.md', - }, - { - text: 'チームを知る', - link: '/team.md', - }, - ], - }, - { - text: 'アップデートログ', - items: [ - { - text: 'Web版', - link: 'https://support.qq.com/products/321980/blog/505810', - }, - { - text: 'Windows版', - link: 'https://support.qq.com/products/321980/blog/772498', - }, - ], - }, - { - text: '感謝', - items: [ - { - text: '技術提供', - link: '/credits.md', - }, - { - text: '貢献者感謝', - link: '/contribution.md', - }, - { - text: '寄付感謝', - link: '/support-us.md#Sponsor%20Acknowledgements', - }, - ], - }, - { - text: '法令について', - items: [ - { - text: '免責事項', - link: '/disclaimer.md', - }, - { - text: 'プライバシーポリシー', - link: '/privacy.md', - }, - { - text: '利用規約', - link: '/agreement.md', - }, - ], - }, - { - text: 'その他', - items: [ - { - text: 'リンク集', - link: '/friends-links.md', - }, - ], - }, - ], - }, - ] -} - -function footer(): CustomConfig['footer'] { - return { - qrcodeTitle: 'Discordサーバー', - qrcodeMessage: 'Contact us on discord', - qrcodeLink: 'https://discord.gg/aFe57AKZUF', - navigation: [ - { - title: '私たちについて', - items: [ - { - text: '仲間になる', - link: '/join', - }, - { - text: 'Our team', - link: '/team', - }, - { - text: 'スポンサー', - link: '/support-us', - }, - ], - }, - { - title: '法令について', - items: [ - { - text: '免責事項', - link: '/disclaimer', - }, - { - text: 'プライバシーポリシー', - link: '/privacy', - }, - { - text: '利用規約', - link: '/agreement', - }, - ], - }, - { - title: 'サポート', - items: [ - { - text: 'ユーザマニュアル', - link: '/manual/client-user-manual', - }, - { - text: 'フィードバック', - link: 'https://support.qq.com/products/321980', - }, - { - text: '新機能', - link: 'https://support.qq.com/products/321980/topic-detail/2016/', - }, - ], - }, - ], - } -} - -function sidebar(): DefaultTheme.SidebarItem[] { - return { - // @ts-ignore - '/manual': [ - { - text: '目次', - link: '/manual/client-user-manual', - }, - { - text: '使い方ガイド', - items: [ - { - text: '【オートトラッキング】', - items: [ - { - text: '機能紹介', - link: '/manual/guide/auto-tracking/importantnotes', - }, - { - text: 'トラブルシューティング', - link: '/manual/guide/auto-tracking/troubleshoot', - }, - ], - }, - { - text: '【バックグラウンドユーセージ】フレームレート設定', - link: '/manual/guide/bg/bgfrate', - }, - { - text: '【一括選択】利用ガイド', - link: '/manual/guide/batch-selection/instructions', - }, - { - text: '【キャンバス】ルート計画機能紹介', - link: '/manual/guide/canvas/guide', - }, - { - text: '【おまけ】金リンゴ群島を見る', - link: '/manual/guide/easter-egg/view', - }, - { - text: '【表示】/【非表示】マーカー', - link: '/manual/guide/hide-show-done/hidedoneshowdone', - }, - { - text: '【オーバーレイモード】', - items: [ - { - text: '利用ガイド', - link: '/manual/guide/overlay-mode/instructions', - }, - { - text: '【ウィンドウ全画面】ゲーム起動', - link: '/manual/guide/overlay-mode/fullscreen-windowed/launching', - }, - ], - }, - { - text: '【セーブデータ】データ復元', - link: '/manual/guide/restore-recover/progress', - }, - ], - }, - { - text: 'よくある質問', - items: [ - { - text: 'ゲームアカウントが凍結される可能性は?', - link: '/manual/faq/accountsafety/acntban.md', - }, - { - text: '【自動更新】自動更新されない', - link: '/manual/faq/autoupdate/updater.md', - }, - { - text: '【インストールできない】', - items: [ - { - text: 'エラーコード 2503', - link: '/manual/faq/instlerror/code2503.md', - }, - { - text: '【インストールできない】.dll がないため', - link: '/manual/faq/instlerror/missingdll.md', - }, - ], - }, - { - text: '【アプリ開かない】', - items: [ - { - text: '画面真っ白またはプログレスバーが止まる', - link: '/manual/faq/launcherror/emptydialog.md', - }, - { - text: '「データクエリ失敗」「バージョンチェック失敗」', - link: '/manual/faq/launcherror/versioncheck.md', - }, - ], - }, - { - text: 'ログイン', - items: [ - { - text: '【ログインできない】ログイン方法', - link: '/manual/faq/login/accountlogin.md', - }, - { - text: '【毎回ログインを求められる】', - link: '/manual/faq/login/clientrepeatedly.md', - }, - ], - }, - ], - }, - ], - } -} diff --git a/.vitepress/locales/ja/404.ts b/.vitepress/locales/ja/404.ts new file mode 100644 index 000000000..bf2a6ebcc --- /dev/null +++ b/.vitepress/locales/ja/404.ts @@ -0,0 +1,10 @@ +import type { DefaultTheme } from 'vitepress' + +export const notFound: DefaultTheme.NotFoundOptions = { + title: 'PAGE NOT FOUND', + quote: + "But if you don't change your direction, and if you keep looking, you may end up where you are heading.", + linkLabel: 'Take me home', +} + +export default notFound diff --git a/.vitepress/locales/ja/aside-links.ts b/.vitepress/locales/ja/aside-links.ts new file mode 100644 index 000000000..0434ca406 --- /dev/null +++ b/.vitepress/locales/ja/aside-links.ts @@ -0,0 +1,12 @@ +import type { CustomConfig } from '../types' + +const asideLinks: CustomConfig['asideLinks'] = { + title: 'Links', + starOnGitHub: 'Star on GitHub', + contactUsText: 'Chat on Discord', + contactUsLink: 'https://discord.gg/SWz6RTWNkm', + sponsor: 'スポンサーになる', + editLink: 'このページを編集する', +} + +export default asideLinks diff --git a/.vitepress/locales/ja/constants.ts b/.vitepress/locales/ja/constants.ts new file mode 100644 index 000000000..2d93fafa2 --- /dev/null +++ b/.vitepress/locales/ja/constants.ts @@ -0,0 +1,15 @@ +import type { CustomConstant } from '../types' + +const constants: CustomConstant = { + META_URL: 'https://yuanshen.site/docs/ja/', + META_TITLE: '原神マップ', + META_KEYWORDS: + '原神マップ, テイワットマップ, 空蛍酒場, yuanshenmap, Genshin Impact Map, Kongying Map', + META_DESCRIPTION: + '空蛍酒場は開発している資源、任務など攻略全般掲載するマップ', + META_IMAGE: 'https://yuanshen.site/docs/imgs/common/cover.jpg', + LOCAL_CODE: 'ja-JP', + LOCAL_BASE: 'ja', +} + +export default constants diff --git a/.vitepress/locales/ja/docs-feedback.ts b/.vitepress/locales/ja/docs-feedback.ts new file mode 100644 index 000000000..4233af166 --- /dev/null +++ b/.vitepress/locales/ja/docs-feedback.ts @@ -0,0 +1,31 @@ +import type { CustomConfig } from '../types' + +const docsFeedback: CustomConfig['docsFeedback'] = { + feedbackMsg: 'このドキュメントは役立ちましたか?', + good: '役立つ', + bad: '役に立たない', + feedbackFailMsg: + 'フィードバックが失敗しました。再試行するか、管理者に連絡してください(QQ:1961266616)!', + feedbackSuccessMsg: + 'フィードバックが正常に送信されました。ありがとうございます!', + badFeedbackSuccessMsg: '以下の問題を具体的にお知らせください~', + form: { + chooseIssues: '以下の問題に遭遇しましたか?', + translationIssue: '翻訳の問題', + typosIssue: '誤字/句読点のエラー', + ContentImgLinkIssue: + '不正確なコンテンツ表現、画像読み込みエラー、またはリンクエラー', + feedbackDetail: '詳細/提案', + feedbackTip: 'ここに遭遇した問題や提案を説明してください', + otherIssue: 'その他の問題(以下で具体的に指定してください)', + contactWay: '連絡先(任意)', + issueOptions: [ + { label: 'ページ表示エラー', value: 'pagedisplay-issue' }, + { label: '誤字、句読点のエラー', value: 'typos-issue' }, + { label: 'コンテンツ、画像、リンクのエラー', value: 'content-issue' }, + { label: 'その他の問題', value: 'other-issue' }, + ], + }, +} + +export default docsFeedback diff --git a/.vitepress/locales/ja/footer.ts b/.vitepress/locales/ja/footer.ts new file mode 100644 index 000000000..74fc88e91 --- /dev/null +++ b/.vitepress/locales/ja/footer.ts @@ -0,0 +1,62 @@ +import type { CustomConfig } from '../types' + +const footer: CustomConfig['footer'] = { + qrcodeTitle: 'Discordサーバー', + qrcodeMessage: 'Contact us on discord', + qrcodeLink: 'https://discord.gg/aFe57AKZUF', + navigation: [ + { + title: '私たちについて', + items: [ + { + text: '仲間になる', + link: '/join', + }, + { + text: 'Our team', + link: '/team', + }, + { + text: 'スポンサー', + link: '/support-us', + }, + ], + }, + { + title: '法令について', + items: [ + { + text: '免責事項', + link: '/disclaimer', + }, + { + text: 'プライバシーポリシー', + link: '/privacy', + }, + { + text: '利用規約', + link: '/agreement', + }, + ], + }, + { + title: 'サポート', + items: [ + { + text: 'ユーザマニュアル', + link: '/manual/client-user-manual', + }, + { + text: 'フィードバック', + link: 'https://support.qq.com/products/321980', + }, + { + text: '新機能', + link: 'https://support.qq.com/products/321980/topic-detail/2016/', + }, + ], + }, + ], +} + +export default footer diff --git a/.vitepress/locales/ja/head.ts b/.vitepress/locales/ja/head.ts new file mode 100644 index 000000000..22d499dc2 --- /dev/null +++ b/.vitepress/locales/ja/head.ts @@ -0,0 +1,29 @@ +import type { LocaleSpecificConfig } from 'vitepress' +import C from './constants' + +const head: LocaleSpecificConfig['head'] = [ + ['meta', { name: 'keywords', content: C.META_KEYWORDS }], + ['meta', { property: 'og:url', content: C.META_URL }], + ['meta', { property: 'og:description', content: C.META_DESCRIPTION }], + ['meta', { property: 'twitter:url', content: C.META_URL }], + ['meta', { property: 'twitter:title', content: C.META_TITLE }], + ['meta', { property: 'twitter:description', content: C.META_DESCRIPTION }], + ['meta', { property: 'og:site_name', content: C.META_TITLE }], + ['meta', { property: 'og:locale', content: C.LOCAL_CODE }], + [ + 'meta', + { + property: 'og:image', + content: C.META_IMAGE, + }, + ], + [ + 'meta', + { + name: 'twitter:image', + content: C.META_IMAGE, + }, + ], +] + +export default head diff --git a/.vitepress/locales/ja/index.ts b/.vitepress/locales/ja/index.ts new file mode 100644 index 000000000..ba75203a5 --- /dev/null +++ b/.vitepress/locales/ja/index.ts @@ -0,0 +1,56 @@ +import { baseHelper } from '../../theme/utils' + +import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' +import type { CustomConfig } from '../types' + +import C from './constants' +import Head from './head' +import Nav from './nav' +import Sidebar from './sidebar' +import Footer from './footer' +import _404 from './404' +import UI from './ui' +import SocialLinks from './social-links' +import AsideLinks from './aside-links' +import DocsFeedback from './docs-feedback' + +import Staff from './staff' +import Team from './team' +import Payment from './payment' + +export const jaConfig: LocaleSpecificConfig< + DefaultTheme.Config & CustomConfig +> = { + titleTemplate: '空蛍酒場', + description: C.META_DESCRIPTION, + head: Head, + themeConfig: { + siteTitle: C.META_TITLE, + keyword: C.META_KEYWORDS, + description: C.META_DESCRIPTION, + image: C.META_IMAGE, + logo: '/imgs/common/logo/logo_256.png', + + outlineTitle: 'このページでは', + lastUpdatedText: '更新日時', + returnToTopLabel: '回到顶部', + langMenuLabel: '更改语言', + notFound: _404, + ui: UI, + socialLinks: SocialLinks, + asideLinks: AsideLinks, + docsFeedback: DocsFeedback, + docFooter: { + prev: '前へ', + next: '次へ', + }, + + staff: Staff, + team: Team, + payment: Payment, + + nav: baseHelper(Nav, C.LOCAL_BASE), + sidebar: baseHelper(Sidebar, C.LOCAL_BASE), + footer: baseHelper(Footer, C.LOCAL_BASE), + }, +} diff --git a/.vitepress/locales/ja/nav.ts b/.vitepress/locales/ja/nav.ts new file mode 100644 index 000000000..85f5825a9 --- /dev/null +++ b/.vitepress/locales/ja/nav.ts @@ -0,0 +1,144 @@ +import type { DefaultTheme } from 'vitepress' + +const nav: DefaultTheme.NavItem[] = [ + { + text: 'コミュニティ', + link: '/community', + activeMatch: '^/ja/community', + }, + { + text: 'スポンサーになる', + link: '/support-us', + activeMatch: '^/ja/support-us', + }, + { + text: 'アプリ', + activeMatch: '^/ja/(download-client|manual/)', + items: [ + { + text: 'アプリダウンロード', + link: '/download-client', + activeMatch: '^/ja/download-client', + }, + { + text: 'Windowsアプリ', + items: [ + { + text: 'ガイダンス', + link: '/manual/client-user-manual', + activeMatch: '^/ja/manual/', + }, + { + text: 'リリースノート', + link: 'https://support.qq.com/products/321980/blog/505884', + }, + ], + }, + { + text: 'Webアプリ', + items: [ + { + text: '今すぐ体験', + link: 'https://v3.yuanshen.site', + }, + { + text: 'リリースノート', + link: 'https://support.qq.com/products/321980/blog/505810', + }, + ], + }, + ], + }, + { + text: 'フィードバック', + items: [ + { + text: 'フィートバック', + link: 'https://support.qq.com/products/321980', + }, + { + text: 'ご要望', + link: 'https://support.qq.com/products/321980/topic-detail/2016/', + }, + ], + }, + { + text: 'もっと知る', + activeMatch: + '^/ja/(join|team|staff|support-us|credits|disclaimer|privacy|agreement|translations|friends-links)', + items: [ + { + text: '私たちを知る', + items: [ + { + text: '開発に参画', + link: '/join', + activeMatch: '^/ja/join', + }, + { + text: 'チームを知る', + link: '/team', + activeMatch: '^/ja/team', + }, + ], + }, + { + text: '感謝', + items: [ + { + text: '貢献者感謝', + link: '/staff', + activeMatch: '^/ja/staff', + }, + { + text: '寄付感謝', + link: '/support-us#sponsor-acknowledgement', + activeMatch: '^/ja/support-us', + }, + { + text: '技術提供', + link: '/credits', + activeMatch: '^/ja/credits', + }, + ], + }, + { + text: '法令について', + items: [ + { + text: '免責事項', + link: '/disclaimer', + activeMatch: '^/ja/disclaimer', + }, + { + text: 'プライバシーポリシー', + link: '/privacy', + activeMatch: '^/ja/privacy', + }, + { + text: '利用規約', + link: '/agreement', + activeMatch: '^/ja/agreement', + }, + ], + }, + { + text: 'その他', + items: [ + { + text: '翻訳に参加', + link: '/translations', + activeMatch: '^/ja/translations', + }, + { + text: 'リンク集', + link: '/friends-links', + activeMatch: '^/ja/friends-links', + }, + ], + }, + ], + }, +] + +export default nav diff --git a/.vitepress/locales/ja/payment.ts b/.vitepress/locales/ja/payment.ts new file mode 100644 index 000000000..dca655033 --- /dev/null +++ b/.vitepress/locales/ja/payment.ts @@ -0,0 +1,27 @@ +import type { CustomConfig } from '../types' + +const payment: CustomConfig['payment'] = { + wechatpay: { + name: 'WeChat Pay', + address: 'wxp://f2f0dd1rszrnqJc_gnlwV_lRX5dlZ1Dtn9rp', + }, + alipay: { + name: 'Alipay', + address: 'https://qr.alipay.com/tsx11609thmpw9odmvdlxd6', + }, + qqpay: { + name: 'QQ Pay', + address: + 'https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=790489566&ac=CAEQ3tP3-AIY0v2k_AU%3D_xxx_sign&n=AAAAAAAA&f=wallet', + }, + paypal: { + name: 'PayPal', + address: 'https://www.paypal.com/paypalme/yuanshenditu', + }, + bilibili: { + name: 'bilibili', + address: 'https://space.bilibili.com/518076785', + }, +} + +export default payment diff --git a/.vitepress/locales/ja/sidebar.ts b/.vitepress/locales/ja/sidebar.ts new file mode 100644 index 000000000..1c5eb9922 --- /dev/null +++ b/.vitepress/locales/ja/sidebar.ts @@ -0,0 +1,120 @@ +import type { DefaultTheme } from 'vitepress' + +const sidebar: DefaultTheme.SidebarItem[] = { + // @ts-ignore + '/manual': [ + { + text: '目次', + link: '/manual/client-user-manual', + }, + { + text: '使い方ガイド', + items: [ + { + text: '【オートトラッキング】', + items: [ + { + text: '機能紹介', + link: '/manual/guide/auto-tracking/importantnotes', + }, + { + text: 'トラブルシューティング', + link: '/manual/guide/auto-tracking/troubleshoot', + }, + ], + }, + { + text: '【バックグラウンドユーセージ】フレームレート設定', + link: '/manual/guide/bg/bgfrate', + }, + { + text: '【一括選択】利用ガイド', + link: '/manual/guide/batch-selection/instructions', + }, + { + text: '【キャンバス】ルート計画機能紹介', + link: '/manual/guide/canvas/guide', + }, + { + text: '【おまけ】金リンゴ群島を見る', + link: '/manual/guide/easter-egg/view', + }, + { + text: '【表示】/【非表示】マーカー', + link: '/manual/guide/hide-show-done/hidedoneshowdone', + }, + { + text: '【オーバーレイモード】', + items: [ + { + text: '利用ガイド', + link: '/manual/guide/overlay-mode/instructions', + }, + { + text: '【ウィンドウ全画面】ゲーム起動', + link: '/manual/guide/overlay-mode/fullscreen-windowed/launching', + }, + ], + }, + { + text: '【セーブデータ】データ復元', + link: '/manual/guide/restore-recover/progress', + }, + ], + }, + { + text: 'よくある質問', + items: [ + { + text: 'ゲームアカウントが凍結される可能性は?', + link: '/manual/faq/accountsafety/acntban', + }, + { + text: '【自動更新】自動更新されない', + link: '/manual/faq/autoupdate/updater', + }, + { + text: '【インストールできない】', + items: [ + { + text: 'エラーコード 2503', + link: '/manual/faq/instlerror/code2503', + }, + { + text: '【インストールできない】.dll がないため', + link: '/manual/faq/instlerror/missingdll', + }, + ], + }, + { + text: '【アプリ開かない】', + items: [ + { + text: '画面真っ白またはプログレスバーが止まる', + link: '/manual/faq/launcherror/emptydialog', + }, + { + text: '「データクエリ失敗」「バージョンチェック失敗」', + link: '/manual/faq/launcherror/versioncheck', + }, + ], + }, + { + text: 'ログイン', + items: [ + { + text: '【ログインできない】ログイン方法', + link: '/manual/faq/login/accountlogin', + }, + { + text: '【毎回ログインを求められる】', + link: '/manual/faq/login/clientrepeatedly', + }, + ], + }, + ], + }, + ], +} + +export default sidebar diff --git a/.vitepress/locales/ja/social-links.ts b/.vitepress/locales/ja/social-links.ts new file mode 100644 index 000000000..5d69f286a --- /dev/null +++ b/.vitepress/locales/ja/social-links.ts @@ -0,0 +1,17 @@ +import type { DefaultTheme } from 'vitepress' +import { socialList } from '../../theme/composables/socialList' + +const socialLinks: DefaultTheme.SocialLink[] = [ + { icon: 'github', link: 'https://github.com/kongying-tavern' }, + { + icon: { + svg: socialList.reddit.icon, + }, + link: 'https://www.reddit.com/user/Kongying_Tavern', + ariaLabel: 'reddit', + }, + { icon: 'discord', link: 'https://discord.gg/aFe57AKZUF' }, + { icon: 'x', link: 'https://twitter.com/KongyingTavern' }, +] + +export default socialLinks diff --git a/.vitepress/locales/ja/staff.ts b/.vitepress/locales/ja/staff.ts new file mode 100644 index 000000000..4fe154910 --- /dev/null +++ b/.vitepress/locales/ja/staff.ts @@ -0,0 +1,23 @@ +import type { CustomConfig } from '../types' + +const staff: CustomConfig['staff'] = { + title: 'Staff', + desc: '空荧酒馆『原神地图』项目参与制作', + communityStaff: { + title: '社区运营', + }, + clientStaff: { + title: '客户端开发', + }, + webStaff: { + title: '网页端开发', + }, + translateStaff: { + title: '本地化翻译', + }, + pinStaff: { + title: '地图点位标记', + }, +} + +export default staff diff --git a/.vitepress/locales/ja/team.ts b/.vitepress/locales/ja/team.ts new file mode 100644 index 000000000..507e2d8e6 --- /dev/null +++ b/.vitepress/locales/ja/team.ts @@ -0,0 +1,20 @@ +import type { CustomConfig } from '../types' + +const team: CustomConfig['team'] = { + title: '关于团队', + desc: '地图的背后是一个基本来自中国的团队,以下是部分成员的个人信息。', + coreMember: { + title: '核心团队成员', + desc: '核心团队成员是那些积极长期参与维护一个或多个核心项目的人。 他们对空荧酒馆的生态系统做出了重大贡献。', + }, + emeritiMember: { + title: '名誉核心团队', + desc: '我们在此致敬过去曾做出过突出贡献的不再活跃的团队成员。', + }, + partnerMember: { + title: '社区伙伴', + desc: '我们与这些主要合作伙伴建立了更加亲密的关系,经常与他们就即将到来的功能展开合作。', + }, +} + +export default team diff --git a/.vitepress/locales/ja/ui.ts b/.vitepress/locales/ja/ui.ts new file mode 100644 index 000000000..165fda609 --- /dev/null +++ b/.vitepress/locales/ja/ui.ts @@ -0,0 +1,13 @@ +import type { CustomConfig } from '../types' + +const ui: CustomConfig['ui'] = { + banner: { + wip: '申し訳ありませんが、このページの翻訳はまだ進行中です。', + }, + button: { + submit: '提出する', + cancel: 'キャンセル', + }, +} + +export default ui diff --git a/.vitepress/locales/types.ts b/.vitepress/locales/types.ts index ba9de3c32..788bd188e 100644 --- a/.vitepress/locales/types.ts +++ b/.vitepress/locales/types.ts @@ -51,6 +51,9 @@ export interface CustomConfig { } > ui: { + banner: { + wip: string + } button: { submit: string cancel: string @@ -79,3 +82,13 @@ export interface CustomConfig { } } } + +export interface CustomConstant { + META_URL: string + META_TITLE: string + META_KEYWORDS: string + META_DESCRIPTION: string + META_IMAGE: string + LOCAL_CODE: string + LOCAL_BASE: string +} diff --git a/.vitepress/locales/zh.ts b/.vitepress/locales/zh.ts deleted file mode 100644 index 081bf4372..000000000 --- a/.vitepress/locales/zh.ts +++ /dev/null @@ -1,455 +0,0 @@ -import { baseHelper } from '../theme/utils' -import { socialList } from '../theme/composables/socialList' -import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' -import type { CustomConfig } from './types' - -export const META_URL = 'https://yuanshen.site/docs/' -export const META_TITLE = '原神地图' -export const META_DESCRIPTION = '空荧酒馆制作的原神全资源攻略地图。' -export const META_KEYWORDS = - '原神地图, 空荧地图, 空荧酒馆原神地图, 空荧酒馆, 原神资源, yuanshen, Kongying Tavern' -export const META_IMAGE = 'https://yuanshen.site/docs/imgs/common/cover.jpg' -export const LOCAL_CODE = 'zh-CN' -export const LOCAL_BASE = '' - -export const zhConfig: LocaleSpecificConfig< - DefaultTheme.Config & CustomConfig -> = { - titleTemplate: '空荧酒馆', - description: META_DESCRIPTION, - head: [ - ['meta', { property: 'og:site_name', content: META_TITLE }], - ['meta', { property: 'og:locale', content: LOCAL_CODE }], - ], - themeConfig: { - siteTitle: '原神地图', - keyword: META_KEYWORDS, - description: META_DESCRIPTION, - image: META_IMAGE, - outlineTitle: '本页目录', - logo: '/imgs/common/logo/logo_256.png', - lastUpdatedText: '更新日期', - returnToTopLabel: '回到顶部', - langMenuLabel: '更改语言', - notFound: { - title: '这个页面找不到了', - quote: '可能跟温迪一起出游了吧', - linkLabel: '回到首页', - }, - staff: { - title: 'Staff', - desc: '空荧酒馆『原神地图』项目参与制作', - communityStaff: { - title: '社区运营', - }, - clientStaff: { - title: '客户端开发', - }, - webStaff: { - title: '网页端开发', - }, - translateStaff: { - title: '本地化翻译', - }, - pinStaff: { - title: '地图点位标记', - }, - }, - team: { - title: '关于团队', - desc: '地图的背后是一个基本来自中国的团队,以下是部分成员的个人信息。', - coreMember: { - title: '核心团队成员', - desc: '核心团队成员是那些积极长期参与维护一个或多个核心项目的人。 他们对空荧酒馆的生态系统做出了重大贡献。', - }, - emeritiMember: { - title: '名誉核心团队', - desc: '我们在此致敬过去曾做出过突出贡献的不再活跃的团队成员。', - }, - partnerMember: { - title: '社区伙伴', - desc: '我们与这些主要合作伙伴建立了更加亲密的关系,经常与他们就即将到来的功能展开合作。', - }, - }, - socialLinks: [ - { icon: 'github', link: 'https://github.com/kongying-tavern/' }, - { icon: 'discord', link: 'https://discord.gg/aFe57AKZUF' }, - { icon: 'x', link: 'https://twitter.com/KongyingTavern' }, - { - icon: { - svg: socialList.bilibili.icon, - }, - link: 'https://space.bilibili.com/518076785', - ariaLabel: 'bilibili', - }, - ], - docFooter: { - prev: '上一页', - next: '下一页', - }, - asideLinks: { - title: '快捷链接', - starOnGitHub: 'Star on GitHub ', - contactUsText: '加入Discord服务器', - contactUsLink: 'https://discord.gg/SWz6RTWNkm', - sponsor: '支持我们', - editLink: '报告页面错误', - }, - ui: { - button: { - submit: '提交', - cancel: '取消', - }, - }, - docsFeedback: { - feedbackMsg: '这篇文档是否对你有帮助?', - good: '有帮助', - bad: '无帮助', - feedbackFailMsg: '反馈失败,请重试或联系管理员(QQ:1961266616)!', - feedbackSuccessMsg: '提交成功,感谢你的反馈!', - badFeedbackSuccessMsg: '希望你能在下方告知我们具体问题~', - form: { - chooseIssues: '是否遇到以下问题?', - translationIssue: '翻译问题', - typosIssue: '错别字/标点符号', - ContentImgLinkIssue: '文案表达不准确、图片加载失败或链接错误', - feedbackDetail: '反馈内容/更多建议', - feedbackTip: '请详细描述你在使用文档过程中遇到的问题或优化建议', - otherIssue: '其他问题(请在反馈内容中具体描述)', - contactWay: '联系方式(可选)', - issueOptions: [ - { label: '页面显示错误', value: 'pagedisplay-issue' }, - { label: '错别字、标点符号错误', value: 'typos-issue' }, - { label: '内容表达有误、图片/文字链接错误', value: 'content-issue' }, - { label: '其他问题', value: 'other-issue' }, - ], - }, - }, - payment: { - wechatpay: { - name: '微信支付', - address: 'wxp://f2f0dd1rszrnqJc_gnlwV_lRX5dlZ1Dtn9rp', - }, - alipay: { - name: '支付宝', - address: 'https://qr.alipay.com/tsx11609thmpw9odmvdlxd6', - }, - qqpay: { - name: 'QQ 支付', - address: - 'https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=790489566&ac=CAEQ3tP3-AIY0v2k_AU%3D_xxx_sign&n=AAAAAAAA&f=wallet', - }, - paypal: { - name: 'PayPal', - address: 'https://www.paypal.com/paypalme/yuanshenditu', - }, - bilibili: { - name: 'bilibili', - address: 'https://space.bilibili.com/518076785', - }, - }, - sidebar: baseHelper(sidebar(), LOCAL_BASE), - footer: baseHelper(footer(), LOCAL_BASE), - nav: baseHelper(nav(), LOCAL_BASE), - }, -} - -function nav(): DefaultTheme.NavItem[] { - return [ - { - text: '客户端下载', - link: '/download-client.md', - }, - { - text: '加入社区', - link: '/community.md', - }, - { - text: '支持我们', - link: '/support-us.md', - }, - { - text: '帮助和反馈', - activeMatch: `^/manual/`, - items: [ - { - text: '客户端使用手册', - link: 'manual/client-user-manual', - }, - { - text: '问题反馈', - link: 'https://support.qq.com/products/321980', - }, - { - text: '功能介绍', - link: 'https://support.qq.com/products/321980/faqs-more/?id=126362', - }, - { - text: '功能投票', - link: 'https://support.qq.com/products/321980/topic-detail/2016/', - }, - ], - }, - { - text: '了解更多', - - items: [ - { - text: '了解我们', - items: [ - { - text: '加入我们', - link: '/join.md', - }, - { - text: '了解团队', - link: '/team.md', - }, - ], - }, - { - text: '更新日志', - items: [ - { - text: '网页端', - link: 'https://support.qq.com/products/321980/blog/505810', - }, - { - text: '客户端', - link: 'https://support.qq.com/products/321980/blog/772498', - }, - ], - }, - { - text: '鸣谢', - items: [ - { - text: '制作人员', - link: '/staff.md', - }, - { - text: '赞助鸣谢', - link: '/support-us.md#赞助鸣谢', - }, - { - text: '技术鸣谢', - link: '/credits.md', - }, - ], - }, - { - text: '法律相关', - items: [ - { - text: '免责声明', - link: '/disclaimer.md', - }, - { - text: '隐私政策', - link: '/privacy.md', - }, - { - text: '用户协议', - link: '/agreement.md', - }, - ], - }, - { - text: '其他', - items: [ - { - text: '参与翻译', - link: '/translations.md', - }, - { - text: '友情链接', - link: '/friends-links.md', - }, - ], - }, - ], - }, - ] -} - -function footer(): CustomConfig['footer'] { - return { - qrcodeTitle: '开发反馈群', - qrcodeMessage: '欢迎QQ扫码联系我们', - qrcodeLink: 'https://jq.qq.com/?_wv=1027&k=nbveGrfQ', - navigation: [ - { - title: '关于', - items: [ - { - text: '加入我们', - link: '/join', - }, - { - text: '赞助鸣谢', - link: '/support-us', - }, - { - text: '友情链接', - link: '/friends-links', - }, - ], - }, - { - title: '政策', - items: [ - { - text: '免责声明', - link: '/disclaimer', - }, - { - text: '隐私政策', - link: '/privacy', - }, - { - text: '用户协议', - link: '/agreement', - }, - ], - }, - { - title: '产品', - items: [ - { - text: '客户端使用手册', - link: 'manual/client-user-manual', - }, - { - text: '客户端更新日志', - link: 'https://support.qq.com/products/321980/blog/505884', - }, - { - text: '网页版更新日志', - link: 'https://support.qq.com/products/321980/blog/505810', - }, - ], - }, - ], - } -} - -function sidebar(): DefaultTheme.SidebarItem[] { - return { - // @ts-ignore - '/manual': [ - { - text: '目录', - link: 'manual/client-user-manual', - }, - { - text: '使用帮助', - collapsed: false, - items: [ - { - text: '【自动追踪】', - items: [ - { - text: '功能介绍', - link: 'manual/guide/auto-tracking/importantnotes', - }, - { - text: '疑难解答', - link: 'manual/guide/auto-tracking/troubleshoot', - }, - ], - }, - { - text: '【地图性能占用高】前后台帧率设置', - link: 'manual/guide/bg/bgfrate', - }, - { - text: '【批量选择】使用说明', - link: 'manual/guide/batch-selection/instructions', - }, - { - text: '【画板】路线功能 教程', - link: 'manual/guide/canvas/guide', - }, - { - text: '【彩蛋】查看历史版本内容', - link: 'manual/guide/easter-egg/view', - }, - { - text: '【隐藏】标记/【显示】标记', - link: 'manual/guide/hide-show-done/hidedoneshowdone', - }, - { - text: '【覆盖模式】', - items: [ - { - text: '使用说明', - link: 'manual/guide/overlay-mode/instructions', - }, - { - text: '【窗口全屏】启动游戏', - link: 'manual/guide/overlay-mode/fullscreen-windowed/launching', - }, - ], - }, - { - text: '【存档丢失】存档还原/误删恢复', - link: 'manual/guide/restore-recover/progress', - }, - ], - }, - { - text: '常见问题', - collapsed: false, - items: [ - { - text: '使用地图客户端会被封号吗?', - link: 'manual/faq/accountsafety/acntban.md', - }, - { - text: '【自动更新】没有反应', - link: 'manual/faq/autoupdate/updater.md', - }, - { - text: '安装错误', - items: [ - { - text: '错误码 2503', - link: 'manual/faq/instlerror/code2503.md', - }, - { - text: '【无法安装】提示缺乏 dll 文件', - link: 'manual/faq/instlerror/missingdll.md', - }, - ], - }, - { - text: '【无法打开】', - items: [ - { - text: '空窗提示或卡进度条', - link: 'manual/faq/launcherror/emptydialog.md', - }, - { - text: '“数据查询失败”、“版本查询失败”', - link: 'manual/faq/launcherror/versioncheck.md', - }, - ], - }, - { - text: '登录', - items: [ - { - text: '【不能登录】如何登录', - link: 'manual/faq/login/accountlogin.md', - }, - { - text: '【每次打开都需重新登陆】', - link: 'manual/faq/login/clientrepeatedly.md', - }, - ], - }, - ], - }, - ], - } -} diff --git a/.vitepress/locales/zh/404.ts b/.vitepress/locales/zh/404.ts new file mode 100644 index 000000000..533f46dea --- /dev/null +++ b/.vitepress/locales/zh/404.ts @@ -0,0 +1,9 @@ +import type { DefaultTheme } from 'vitepress' + +const notFound: DefaultTheme.NotFoundOptions = { + title: '这个页面找不到了', + quote: '可能跟温迪一起出游了吧', + linkLabel: '回到首页', +} + +export default notFound diff --git a/.vitepress/locales/zh/aside-links.ts b/.vitepress/locales/zh/aside-links.ts new file mode 100644 index 000000000..132e0f7dc --- /dev/null +++ b/.vitepress/locales/zh/aside-links.ts @@ -0,0 +1,12 @@ +import type { CustomConfig } from '../types' + +const asideLinks: CustomConfig['asideLinks'] = { + title: '快捷链接', + starOnGitHub: 'Star on GitHub', + contactUsText: '加入Discord服务器', + contactUsLink: 'https://discord.gg/SWz6RTWNkm', + sponsor: '支持我们', + editLink: '报告页面错误', +} + +export default asideLinks diff --git a/.vitepress/locales/zh/constants.ts b/.vitepress/locales/zh/constants.ts new file mode 100644 index 000000000..add980fbd --- /dev/null +++ b/.vitepress/locales/zh/constants.ts @@ -0,0 +1,14 @@ +import type { CustomConstant } from '../types' + +const constants: CustomConstant = { + META_URL: 'https://yuanshen.site/docs/', + META_TITLE: '原神地图', + META_DESCRIPTION: '空荧酒馆制作的原神全资源攻略地图。', + META_KEYWORDS: + '原神地图, 空荧地图, 空荧酒馆原神地图, 空荧酒馆, 原神资源, yuanshen, Kongying Tavern', + META_IMAGE: 'https://yuanshen.site/docs/imgs/common/cover.jpg', + LOCAL_CODE: 'zh-CN', + LOCAL_BASE: '', +} + +export default constants diff --git a/.vitepress/locales/zh/docs-feedback.ts b/.vitepress/locales/zh/docs-feedback.ts new file mode 100644 index 000000000..482842665 --- /dev/null +++ b/.vitepress/locales/zh/docs-feedback.ts @@ -0,0 +1,28 @@ +import type { CustomConfig } from '../types' + +const docsFeedback: CustomConfig['docsFeedback'] = { + feedbackMsg: '这篇文档是否对你有帮助?', + good: '有帮助', + bad: '无帮助', + feedbackFailMsg: '反馈失败,请重试或联系管理员(QQ:1961266616)!', + feedbackSuccessMsg: '提交成功,感谢你的反馈!', + badFeedbackSuccessMsg: '希望你能在下方告知我们具体问题~', + form: { + chooseIssues: '是否遇到以下问题?', + translationIssue: '翻译问题', + typosIssue: '错别字/标点符号', + ContentImgLinkIssue: '文案表达不准确、图片加载失败或链接错误', + feedbackDetail: '反馈内容/更多建议', + feedbackTip: '请详细描述你在使用文档过程中遇到的问题或优化建议', + otherIssue: '其他问题(请在反馈内容中具体描述)', + contactWay: '联系方式(可选)', + issueOptions: [ + { label: '页面显示错误', value: 'pagedisplay-issue' }, + { label: '错别字、标点符号错误', value: 'typos-issue' }, + { label: '内容表达有误、图片/文字链接错误', value: 'content-issue' }, + { label: '其他问题', value: 'other-issue' }, + ], + }, +} + +export default docsFeedback diff --git a/.vitepress/locales/zh/footer.ts b/.vitepress/locales/zh/footer.ts new file mode 100644 index 000000000..6bf64797b --- /dev/null +++ b/.vitepress/locales/zh/footer.ts @@ -0,0 +1,62 @@ +import type { CustomConfig } from '../types' + +const footer: CustomConfig['footer'] = { + qrcodeTitle: '开发反馈群', + qrcodeMessage: '欢迎QQ扫码联系我们', + qrcodeLink: 'https://jq.qq.com/?_wv=1027&k=nbveGrfQ', + navigation: [ + { + title: '关于', + items: [ + { + text: '加入我们', + link: '/join', + }, + { + text: '赞助鸣谢', + link: '/support-us', + }, + { + text: '友情链接', + link: '/friends-links', + }, + ], + }, + { + title: '政策', + items: [ + { + text: '免责声明', + link: '/disclaimer', + }, + { + text: '隐私政策', + link: '/privacy', + }, + { + text: '用户协议', + link: '/agreement', + }, + ], + }, + { + title: '产品', + items: [ + { + text: '客户端使用手册', + link: '/manual/client-user-manual', + }, + { + text: '客户端更新日志', + link: 'https://support.qq.com/products/321980/blog/505884', + }, + { + text: '网页版更新日志', + link: 'https://support.qq.com/products/321980/blog/505810', + }, + ], + }, + ], +} + +export default footer diff --git a/.vitepress/locales/zh/head.ts b/.vitepress/locales/zh/head.ts new file mode 100644 index 000000000..563d32b7c --- /dev/null +++ b/.vitepress/locales/zh/head.ts @@ -0,0 +1,9 @@ +import type { LocaleSpecificConfig } from 'vitepress' +import C from './constants' + +const head: LocaleSpecificConfig['head'] = [ + ['meta', { property: 'og:site_name', content: C.META_TITLE }], + ['meta', { property: 'og:locale', content: C.LOCAL_CODE }], +] + +export default head diff --git a/.vitepress/locales/zh/index.ts b/.vitepress/locales/zh/index.ts new file mode 100644 index 000000000..4841c434f --- /dev/null +++ b/.vitepress/locales/zh/index.ts @@ -0,0 +1,56 @@ +import { baseHelper } from '../../theme/utils' + +import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress' +import type { CustomConfig } from '../types' + +import C from './constants' +import Head from './head' +import Nav from './nav' +import Sidebar from './sidebar' +import Footer from './footer' +import _404 from './404' +import UI from './ui' +import SocialLinks from './social-links' +import AsideLinks from './aside-links' +import DocsFeedback from './docs-feedback' + +import Staff from './staff' +import Team from './team' +import Payment from './payment' + +export const zhConfig: LocaleSpecificConfig< + DefaultTheme.Config & CustomConfig +> = { + titleTemplate: '空荧酒馆', + description: C.META_DESCRIPTION, + head: Head, + themeConfig: { + siteTitle: C.META_TITLE, + keyword: C.META_KEYWORDS, + description: C.META_DESCRIPTION, + image: C.META_IMAGE, + logo: '/imgs/common/logo/logo_256.png', + + outlineTitle: '本页目录', + lastUpdatedText: '更新日期', + returnToTopLabel: '回到顶部', + langMenuLabel: '更改语言', + notFound: _404, + ui: UI, + socialLinks: SocialLinks, + asideLinks: AsideLinks, + docsFeedback: DocsFeedback, + docFooter: { + prev: '上一页', + next: '下一页', + }, + + staff: Staff, + team: Team, + payment: Payment, + + nav: baseHelper(Nav, C.LOCAL_BASE), + sidebar: baseHelper(Sidebar, C.LOCAL_BASE), + footer: baseHelper(Footer, C.LOCAL_BASE), + }, +} diff --git a/.vitepress/locales/zh/nav.ts b/.vitepress/locales/zh/nav.ts new file mode 100644 index 000000000..2f3330adf --- /dev/null +++ b/.vitepress/locales/zh/nav.ts @@ -0,0 +1,127 @@ +import type { DefaultTheme } from 'vitepress' + +const nav: DefaultTheme.NavItem[] = [ + { + text: '加入社区', + link: '/community', + }, + { + text: '支持我们', + link: '/support-us', + }, + { + text: '地图工具', + items: [ + { + text: '下载客户端', + link: '/download-client', + }, + { + text: 'Windows客户端', + items: [ + { + text: '使用手册', + link: '/manual/client-user-manual', + }, + { + text: '更新日志', + link: 'https://support.qq.com/products/321980/blog/505884', + }, + ], + }, + { + text: '地图网页版', + items: [ + { + text: '立即体验', + link: 'https://v3.yuanshen.site', + }, + { + text: '更新日志', + link: 'https://support.qq.com/products/321980/blog/505810', + }, + ], + }, + ], + }, + { + text: '帮助和反馈', + items: [ + { + text: '问题反馈', + link: 'https://support.qq.com/products/321980', + }, + { + text: '功能投票', + link: 'https://support.qq.com/products/321980/topic-detail/2016/', + }, + ], + }, + { + text: '了解更多', + items: [ + { + text: '了解我们', + items: [ + { + text: '加入我们', + link: '/join', + }, + { + text: '了解团队', + link: '/team', + }, + ], + }, + { + text: '鸣谢', + items: [ + { + text: '制作人员', + link: '/staff', + }, + { + text: '赞助鸣谢', + link: '/support-us#sponsor-acknowledgement', + }, + { + text: '技术鸣谢', + link: '/credits', + }, + ], + }, + { + text: '法律相关', + items: [ + { + text: '免责声明', + link: '/disclaimer', + }, + { + text: '隐私政策', + link: '/privacy', + }, + { + text: '用户协议', + link: '/agreement', + }, + ], + }, + { + text: '其他', + items: [ + { + text: '参与翻译', + link: '/translations', + }, + { + text: '友情链接', + link: '/friends-links', + }, + ], + }, + ], + }, +] + +export default nav diff --git a/.vitepress/locales/zh/payment.ts b/.vitepress/locales/zh/payment.ts new file mode 100644 index 000000000..0ac21759f --- /dev/null +++ b/.vitepress/locales/zh/payment.ts @@ -0,0 +1,27 @@ +import type { CustomConfig } from '../types' + +const payment: CustomConfig['payment'] = { + wechatpay: { + name: '微信支付', + address: 'wxp://f2f0dd1rszrnqJc_gnlwV_lRX5dlZ1Dtn9rp', + }, + alipay: { + name: '支付宝', + address: 'https://qr.alipay.com/tsx11609thmpw9odmvdlxd6', + }, + qqpay: { + name: 'QQ 支付', + address: + 'https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=790489566&ac=CAEQ3tP3-AIY0v2k_AU%3D_xxx_sign&n=AAAAAAAA&f=wallet', + }, + paypal: { + name: 'PayPal', + address: 'https://www.paypal.com/paypalme/yuanshenditu', + }, + bilibili: { + name: 'bilibili', + address: 'https://space.bilibili.com/518076785', + }, +} + +export default payment diff --git a/.vitepress/locales/zh/sidebar.ts b/.vitepress/locales/zh/sidebar.ts new file mode 100644 index 000000000..3e1aaa94f --- /dev/null +++ b/.vitepress/locales/zh/sidebar.ts @@ -0,0 +1,122 @@ +import type { DefaultTheme } from 'vitepress' + +const sidebar: DefaultTheme.SidebarItem[] = { + // @ts-ignore + '/manual': [ + { + text: '目录', + link: '/manual/client-user-manual', + }, + { + text: '使用帮助', + collapsed: false, + items: [ + { + text: '【自动追踪】', + items: [ + { + text: '功能介绍', + link: '/manual/guide/auto-tracking/importantnotes', + }, + { + text: '疑难解答', + link: '/manual/guide/auto-tracking/troubleshoot', + }, + ], + }, + { + text: '【地图性能占用高】前后台帧率设置', + link: '/manual/guide/bg/bgfrate', + }, + { + text: '【批量选择】使用说明', + link: '/manual/guide/batch-selection/instructions', + }, + { + text: '【画板】路线功能 教程', + link: '/manual/guide/canvas/guide', + }, + { + text: '【彩蛋】查看历史版本内容', + link: '/manual/guide/easter-egg/view', + }, + { + text: '【隐藏】标记/【显示】标记', + link: '/manual/guide/hide-show-done/hidedoneshowdone', + }, + { + text: '【覆盖模式】', + items: [ + { + text: '使用说明', + link: '/manual/guide/overlay-mode/instructions', + }, + { + text: '【窗口全屏】启动游戏', + link: '/manual/guide/overlay-mode/fullscreen-windowed/launching', + }, + ], + }, + { + text: '【存档丢失】存档还原/误删恢复', + link: '/manual/guide/restore-recover/progress', + }, + ], + }, + { + text: '常见问题', + collapsed: false, + items: [ + { + text: '使用地图客户端会被封号吗?', + link: '/manual/faq/accountsafety/acntban', + }, + { + text: '【自动更新】没有反应', + link: '/manual/faq/autoupdate/updater', + }, + { + text: '安装错误', + items: [ + { + text: '错误码 2503', + link: '/manual/faq/instlerror/code2503', + }, + { + text: '【无法安装】提示缺乏 dll 文件', + link: '/manual/faq/instlerror/missingdll', + }, + ], + }, + { + text: '【无法打开】', + items: [ + { + text: '空窗提示或卡进度条', + link: '/manual/faq/launcherror/emptydialog', + }, + { + text: '“数据查询失败”、“版本查询失败”', + link: '/manual/faq/launcherror/versioncheck', + }, + ], + }, + { + text: '登录', + items: [ + { + text: '【不能登录】如何登录', + link: '/manual/faq/login/accountlogin', + }, + { + text: '【每次打开都需重新登陆】', + link: '/manual/faq/login/clientrepeatedly', + }, + ], + }, + ], + }, + ], +} + +export default sidebar diff --git a/.vitepress/locales/zh/social-links.ts b/.vitepress/locales/zh/social-links.ts new file mode 100644 index 000000000..83fc6809c --- /dev/null +++ b/.vitepress/locales/zh/social-links.ts @@ -0,0 +1,17 @@ +import type { DefaultTheme } from 'vitepress' +import { socialList } from '../../theme/composables/socialList' + +const socialLinks: DefaultTheme.SocialLink[] = [ + { icon: 'github', link: 'https://github.com/kongying-tavern/' }, + { icon: 'discord', link: 'https://discord.gg/aFe57AKZUF' }, + { icon: 'x', link: 'https://twitter.com/KongyingTavern' }, + { + icon: { + svg: socialList.bilibili.icon, + }, + link: 'https://space.bilibili.com/518076785', + ariaLabel: 'bilibili', + }, +] + +export default socialLinks diff --git a/.vitepress/locales/zh/staff.ts b/.vitepress/locales/zh/staff.ts new file mode 100644 index 000000000..4fe154910 --- /dev/null +++ b/.vitepress/locales/zh/staff.ts @@ -0,0 +1,23 @@ +import type { CustomConfig } from '../types' + +const staff: CustomConfig['staff'] = { + title: 'Staff', + desc: '空荧酒馆『原神地图』项目参与制作', + communityStaff: { + title: '社区运营', + }, + clientStaff: { + title: '客户端开发', + }, + webStaff: { + title: '网页端开发', + }, + translateStaff: { + title: '本地化翻译', + }, + pinStaff: { + title: '地图点位标记', + }, +} + +export default staff diff --git a/.vitepress/locales/zh/team.ts b/.vitepress/locales/zh/team.ts new file mode 100644 index 000000000..507e2d8e6 --- /dev/null +++ b/.vitepress/locales/zh/team.ts @@ -0,0 +1,20 @@ +import type { CustomConfig } from '../types' + +const team: CustomConfig['team'] = { + title: '关于团队', + desc: '地图的背后是一个基本来自中国的团队,以下是部分成员的个人信息。', + coreMember: { + title: '核心团队成员', + desc: '核心团队成员是那些积极长期参与维护一个或多个核心项目的人。 他们对空荧酒馆的生态系统做出了重大贡献。', + }, + emeritiMember: { + title: '名誉核心团队', + desc: '我们在此致敬过去曾做出过突出贡献的不再活跃的团队成员。', + }, + partnerMember: { + title: '社区伙伴', + desc: '我们与这些主要合作伙伴建立了更加亲密的关系,经常与他们就即将到来的功能展开合作。', + }, +} + +export default team diff --git a/.vitepress/locales/zh/ui.ts b/.vitepress/locales/zh/ui.ts new file mode 100644 index 000000000..0dfbe986e --- /dev/null +++ b/.vitepress/locales/zh/ui.ts @@ -0,0 +1,13 @@ +import type { CustomConfig } from '../types' + +const ui: CustomConfig['ui'] = { + banner: { + wip: '此页面正在施工中,不代表最终效果。', + }, + button: { + submit: '提交', + cancel: '取消', + }, +} + +export default ui diff --git a/.vitepress/theme/components/Banner.vue b/.vitepress/theme/components/Banner.vue index b28f03c86..b9f10b94a 100644 --- a/.vitepress/theme/components/Banner.vue +++ b/.vitepress/theme/components/Banner.vue @@ -1,14 +1,18 @@ diff --git a/.vitepress/theme/components/Coins.vue b/.vitepress/theme/components/Coins.vue index 57fca71cb..5c547534c 100644 --- a/.vitepress/theme/components/Coins.vue +++ b/.vitepress/theme/components/Coins.vue @@ -30,18 +30,19 @@
- -