Skip to content

Commit 0533f02

Browse files
authored
Merge pull request #65 from sjjian/dev_0_6_0
Dev 0 6 0
2 parents a6c063d + 4734a86 commit 0533f02

File tree

6 files changed

+56
-57
lines changed

6 files changed

+56
-57
lines changed

.github/workflows/pages.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- dev_0_6_0
87
workflow_dispatch:
98

109
permissions:

docs/.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ site/.astro/
33
site/.cache/
44
site/dist/
55

6-
# 避免误提交旧的 /docs 发布产物
7-
index.html
8-
logo.png
9-
assets/
6+
# 避免误提交旧的 /docs 根目录发布产物(仅根目录,不忽略 site/public/ 等)
7+
/index.html
8+
/logo.png
9+
/assets/

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
## 语言
1111

12-
- 中文`/`
13-
- English`/en/`
12+
- English(默认)`/`
13+
- 中文`/zh/`
1414

1515
## 本地开发
1616

docs/site/public/logo.png

29.9 KB
Loading

docs/site/src/pages/index.astro

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,51 @@
11
---
22
import BaseLayout from '../layouts/BaseLayout.astro';
33
4-
const title = 'openhare - 专业跨平台桌面 SQL 查询工具';
4+
const title = 'openhare - Professional Cross-Platform Desktop SQL Query Tool';
55
const description =
6-
'openhare 是一款专业的跨平台桌面 SQL 查询工具,使用 Flutter 构建,面向 DBA、开发者与数据分析师,提供强大且直观的数据库管理与查询体验。';
6+
'openhare is a professional, cross-platform desktop SQL query tool built with Flutter. Designed for DBAs, developers, and data analysts, it delivers a powerful yet intuitive experience for managing and querying databases.';
77
const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/openhare';
8+
const downloadUrl = `${repoUrl}/releases`;
89
---
910

10-
<BaseLayout title={title} description={description} lang="zh-CN">
11+
<BaseLayout title={title} description={description} lang="en">
1112
<div class="container">
1213
<header class="topbar">
13-
<a class="topbarBrand" href={import.meta.env.BASE_URL} aria-label="返回首页">
14+
<a class="topbarBrand" href={import.meta.env.BASE_URL} aria-label="Back to home">
1415
<span class="brandMark" aria-hidden="true">
1516
<img src={`${import.meta.env.BASE_URL}logo.png`} width="28" height="28" alt="" />
1617
</span>
1718
<span class="brandText">openhare</span>
1819
</a>
19-
<a class="topbarLang" href={`${import.meta.env.BASE_URL}en/`} aria-label="Switch to English">
20+
<a class="topbarLang" href={`${import.meta.env.BASE_URL}zh/`} aria-label="切换到中文">
2021
<svg class="langIcon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
2122
<path
2223
fill="currentColor"
2324
d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm7.94 9h-3.18c-.12-2.3-.7-4.4-1.63-5.96A8.02 8.02 0 0 1 19.94 11zM12 4c.9 0 2.22 2.12 2.6 7H9.4C9.78 6.12 11.1 4 12 4zM4.06 13h3.18c.12 2.3.7 4.4 1.63 5.96A8.02 8.02 0 0 1 4.06 13zM4.06 11a8.02 8.02 0 0 1 4.81-5.96C7.94 6.6 7.36 8.7 7.24 11H4.06zm7.94 9c-.9 0-2.22-2.12-2.6-7h5.2c-.38 4.88-1.7 7-2.6 7zm3.13-1.04c.93-1.56 1.5-3.66 1.63-5.96h3.18a8.02 8.02 0 0 1-4.81 5.96zM16.76 11H7.24c.05-.64.08-1.31.08-2s-.03-1.36-.08-2h9.52c.05.64.08 1.31.08 2s-.03 1.36-.08 2z"
2425
/>
2526
</svg>
26-
<span>EN</span>
27+
<span>中文</span>
2728
</a>
2829
</header>
2930

3031
<main id="main-content" class="main">
3132
<section class="hero">
3233
<h1 class="heroTitle" data-reveal>openhare</h1>
3334
<p class="heroSub" data-reveal>
34-
一款专业的跨平台桌面 SQL 查询工具,使用 Flutter 构建。面向数据库管理员、开发者与数据分析师,提供强大且直观的数据库管理与查询体验。
35+
A professional, cross-platform desktop SQL query tool built with Flutter. Designed for database administrators,
36+
developers, and data analysts—powerful yet intuitive for managing and querying databases.
3537
</p>
3638
<div class="heroActions" data-reveal>
37-
<a class="btn btnPrimary" href={repoUrl} target="_blank" rel="noreferrer">
39+
<a class="btn btnPrimary" href={downloadUrl} target="_blank" rel="noreferrer">
3840
<svg class="btnIcon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
3941
<path
4042
fill="currentColor"
4143
d="M12 3a1 1 0 0 1 1 1v8.59l2.3-2.3a1 1 0 1 1 1.4 1.42l-4.01 4.01a1 1 0 0 1-1.4 0l-4.01-4.01a1 1 0 1 1 1.4-1.42L11 12.59V4a1 1 0 0 1 1-1zm-7 16a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1z"
4244
/>
4345
</svg>
44-
<span>下载</span>
46+
<span>Download</span>
4547
</a>
46-
<a class="btn btnGhost" href={repoUrl} target="_blank" rel="noreferrer" aria-label="打开 GitHub 仓库">
48+
<a class="btn btnGhost" href={repoUrl} target="_blank" rel="noreferrer" aria-label="Open GitHub repository">
4749
<svg class="btnIcon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
4850
<path
4951
fill="currentColor"
@@ -56,7 +58,7 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
5658
</section>
5759

5860
<section id="features" class="section" data-reveal>
59-
<h2 class="sectionTitle">功能特性</h2>
61+
<h2 class="sectionTitle">Key Features</h2>
6062
<div class="cards">
6163
<article class="card">
6264
<div class="cardIcon" aria-hidden="true">
@@ -67,8 +69,8 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
6769
/>
6870
</svg>
6971
</div>
70-
<h3>AI 助手</h3>
71-
<p>增强的 AI 能力,帮助你编写、优化并理解 SQL 查询。</p>
72+
<h3>AI-Powered Assistance</h3>
73+
<p>Enhanced AI features to help you write, optimize, and understand SQL queries.</p>
7274
</article>
7375
<article class="card">
7476
<div class="cardIcon" aria-hidden="true">
@@ -79,44 +81,44 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
7981
/>
8082
</svg>
8183
</div>
82-
<h3>跨平台</h3>
83-
<p>基于 Flutter 构建,支持 WindowsmacOS Linux</p>
84+
<h3>Cross-Platform</h3>
85+
<p>Runs seamlessly on Windows, macOS, and Linux.</p>
8486
</article>
8587
<article class="card">
8688
<div class="cardIcon" aria-hidden="true">
8789
<svg viewBox="0 0 24 24">
8890
<path
8991
fill="currentColor"
90-
d="M12 2a7 7 0 0 1 7 7v3a3 3 0 0 1-3 3h-1v2a3 3 0 0 1-3 3H7a1 1 0 1 1 0-2h6a1 1 0 0 0 1-1v-2h-2a3 3 0 0 1-3-3V9a7 7 0 0 1 7-7zm0 2a5 5 0 0 0-5 5v3a1 1 0 0 0 1 1h4v-2a1 1 0 1 1 2 0v2h2a1 1 0 0 0 1-1V9a5 5 0 0 0-5-5z"
92+
d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 0 1 7.75 6H14.5a2.5 2.5 0 0 0-5 0H4.25A8 8 0 0 1 12 4zm-8 8c0-.69.09-1.36.25-2h5.33a2.5 2.5 0 0 0 5 0h5.33c.16.64.25 1.31.25 2a8 8 0 0 1-16 0z"
9193
/>
9294
</svg>
9395
</div>
94-
<h3>多数据库支持</h3>
95-
<p>轻松连接并管理多种 SQL 数据库。</p>
96+
<h3>Fully Open Source</h3>
97+
<p>Licensed under Apache License 2.0—transparent and community-driven.</p>
9698
</article>
9799
<article class="card">
98100
<div class="cardIcon" aria-hidden="true">
99101
<svg viewBox="0 0 24 24">
100102
<path
101103
fill="currentColor"
102-
d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 0 1 7.75 6H14.5a2.5 2.5 0 0 0-5 0H4.25A8 8 0 0 1 12 4zm-8 8c0-.69.09-1.36.25-2h5.33a2.5 2.5 0 0 0 5 0h5.33c.16.64.25 1.31.25 2a8 8 0 0 1-16 0z"
104+
d="M4 6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-2H6a2 2 0 0 1-2-2V6zm8 0H6v6h6V6zm2 6v6h6v-6h-6z"
103105
/>
104106
</svg>
105107
</div>
106-
<h3>完全开源</h3>
107-
<p>Apache License 2.0,透明、可审计、社区驱动。</p>
108+
<h3>Simple &amp; Intuitive UI</h3>
109+
<p>A modern interface focused on ease of use and productivity.</p>
108110
</article>
109111
<article class="card">
110112
<div class="cardIcon" aria-hidden="true">
111113
<svg viewBox="0 0 24 24">
112114
<path
113115
fill="currentColor"
114-
d="M4 6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-2H6a2 2 0 0 1-2-2V6zm8 0H6v6h6V6zm2 6v6h6v-6h-6z"
116+
d="M12 2a7 7 0 0 1 7 7v3a3 3 0 0 1-3 3h-1v2a3 3 0 0 1-3 3H7a1 1 0 1 1 0-2h6a1 1 0 0 0 1-1v-2h-2a3 3 0 0 1-3-3V9a7 7 0 0 1 7-7zm0 2a5 5 0 0 0-5 5v3a1 1 0 0 0 1 1h4v-2a1 1 0 1 1 2 0v2h2a1 1 0 0 0 1-1V9a5 5 0 0 0-5-5z"
115117
/>
116118
</svg>
117119
</div>
118-
<h3>简洁易用</h3>
119-
<p>现代直观的界面,专注效率与生产力。</p>
120+
<h3>Multi-Database Support</h3>
121+
<p>Connect to and manage various SQL databases effortlessly.</p>
120122
</article>
121123
</div>
122124
</section>
@@ -127,4 +129,3 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
127129
</footer>
128130
</div>
129131
</BaseLayout>
130-
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
---
22
import BaseLayout from '../../layouts/BaseLayout.astro';
33
4-
const title = 'openhare - Professional Cross-Platform Desktop SQL Query Tool';
4+
const title = 'openhare - 专业跨平台桌面 SQL 查询工具';
55
const description =
6-
'openhare is a professional, cross-platform desktop SQL query tool built with Flutter. Designed for DBAs, developers, and data analysts, it delivers a powerful yet intuitive experience for managing and querying databases.';
6+
'openhare 是一款专业的跨平台桌面 SQL 查询工具,使用 Flutter 构建,面向 DBA、开发者与数据分析师,提供强大且直观的数据库管理与查询体验。';
77
const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/openhare';
8+
const downloadUrl = `${repoUrl}/releases`;
89
---
910

10-
<BaseLayout title={title} description={description} lang="en">
11+
<BaseLayout title={title} description={description} lang="zh-CN">
1112
<div class="container">
1213
<header class="topbar">
13-
<a class="topbarBrand" href={import.meta.env.BASE_URL} aria-label="Back to home">
14+
<a class="topbarBrand" href={import.meta.env.BASE_URL} aria-label="返回首页">
1415
<span class="brandMark" aria-hidden="true">
1516
<img src={`${import.meta.env.BASE_URL}logo.png`} width="28" height="28" alt="" />
1617
</span>
1718
<span class="brandText">openhare</span>
1819
</a>
19-
<a class="topbarLang" href={import.meta.env.BASE_URL} aria-label="切换到中文">
20+
<a class="topbarLang" href={import.meta.env.BASE_URL} aria-label="Switch to English">
2021
<svg class="langIcon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
2122
<path
2223
fill="currentColor"
2324
d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm7.94 9h-3.18c-.12-2.3-.7-4.4-1.63-5.96A8.02 8.02 0 0 1 19.94 11zM12 4c.9 0 2.22 2.12 2.6 7H9.4C9.78 6.12 11.1 4 12 4zM4.06 13h3.18c.12 2.3.7 4.4 1.63 5.96A8.02 8.02 0 0 1 4.06 13zM4.06 11a8.02 8.02 0 0 1 4.81-5.96C7.94 6.6 7.36 8.7 7.24 11H4.06zm7.94 9c-.9 0-2.22-2.12-2.6-7h5.2c-.38 4.88-1.7 7-2.6 7zm3.13-1.04c.93-1.56 1.5-3.66 1.63-5.96h3.18a8.02 8.02 0 0 1-4.81 5.96zM16.76 11H7.24c.05-.64.08-1.31.08-2s-.03-1.36-.08-2h9.52c.05.64.08 1.31.08 2s-.03 1.36-.08 2z"
2425
/>
2526
</svg>
26-
<span>中文</span>
27+
<span>EN</span>
2728
</a>
2829
</header>
2930

3031
<main id="main-content" class="main">
3132
<section class="hero">
3233
<h1 class="heroTitle" data-reveal>openhare</h1>
3334
<p class="heroSub" data-reveal>
34-
A professional, cross-platform desktop SQL query tool built with Flutter. Designed for database administrators,
35-
developers, and data analysts—powerful yet intuitive for managing and querying databases.
35+
一款专业的跨平台桌面 SQL 查询工具,使用 Flutter 构建。面向数据库管理员、开发者与数据分析师,提供强大且直观的数据库管理与查询体验。
3636
</p>
3737
<div class="heroActions" data-reveal>
38-
<a class="btn btnPrimary" href={repoUrl} target="_blank" rel="noreferrer">
38+
<a class="btn btnPrimary" href={downloadUrl} target="_blank" rel="noreferrer">
3939
<svg class="btnIcon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
4040
<path
4141
fill="currentColor"
4242
d="M12 3a1 1 0 0 1 1 1v8.59l2.3-2.3a1 1 0 1 1 1.4 1.42l-4.01 4.01a1 1 0 0 1-1.4 0l-4.01-4.01a1 1 0 1 1 1.4-1.42L11 12.59V4a1 1 0 0 1 1-1zm-7 16a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1z"
4343
/>
4444
</svg>
45-
<span>Download</span>
45+
<span>下载</span>
4646
</a>
47-
<a class="btn btnGhost" href={repoUrl} target="_blank" rel="noreferrer" aria-label="Open GitHub repository">
47+
<a class="btn btnGhost" href={repoUrl} target="_blank" rel="noreferrer" aria-label="打开 GitHub 仓库">
4848
<svg class="btnIcon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
4949
<path
5050
fill="currentColor"
@@ -57,7 +57,7 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
5757
</section>
5858

5959
<section id="features" class="section" data-reveal>
60-
<h2 class="sectionTitle">Key Features</h2>
60+
<h2 class="sectionTitle">功能特性</h2>
6161
<div class="cards">
6262
<article class="card">
6363
<div class="cardIcon" aria-hidden="true">
@@ -68,8 +68,8 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
6868
/>
6969
</svg>
7070
</div>
71-
<h3>AI-Powered Assistance</h3>
72-
<p>Enhanced AI features to help you write, optimize, and understand SQL queries.</p>
71+
<h3>AI 助手</h3>
72+
<p>增强的 AI 能力,帮助你编写、优化并理解 SQL 查询。</p>
7373
</article>
7474
<article class="card">
7575
<div class="cardIcon" aria-hidden="true">
@@ -80,8 +80,8 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
8080
/>
8181
</svg>
8282
</div>
83-
<h3>Cross-Platform</h3>
84-
<p>Runs seamlessly on Windows, macOS, and Linux.</p>
83+
<h3>跨平台</h3>
84+
<p>基于 Flutter 构建,支持 WindowsmacOS Linux</p>
8585
</article>
8686
<article class="card">
8787
<div class="cardIcon" aria-hidden="true">
@@ -92,32 +92,32 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
9292
/>
9393
</svg>
9494
</div>
95-
<h3>Fully Open Source</h3>
96-
<p>Licensed under Apache License 2.0—transparent and community-driven.</p>
95+
<h3>多数据库支持</h3>
96+
<p>轻松连接并管理多种 SQL 数据库。</p>
9797
</article>
9898
<article class="card">
9999
<div class="cardIcon" aria-hidden="true">
100100
<svg viewBox="0 0 24 24">
101101
<path
102102
fill="currentColor"
103-
d="M4 6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-2H6a2 2 0 0 1-2-2V6zm8 0H6v6h6V6zm2 6v6h6v-6h-6z"
103+
d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 0 1 7.75 6H14.5a2.5 2.5 0 0 0-5 0H4.25A8 8 0 0 1 12 4zm-8 8c0-.69.09-1.36.25-2h5.33a2.5 2.5 0 0 0 5 0h5.33c.16.64.25 1.31.25 2a8 8 0 0 1-16 0z"
104104
/>
105105
</svg>
106106
</div>
107-
<h3>Simple &amp; Intuitive UI</h3>
108-
<p>A modern interface focused on ease of use and productivity.</p>
107+
<h3>完全开源</h3>
108+
<p>Apache License 2.0,透明、可审计、社区驱动。</p>
109109
</article>
110110
<article class="card">
111111
<div class="cardIcon" aria-hidden="true">
112112
<svg viewBox="0 0 24 24">
113113
<path
114114
fill="currentColor"
115-
d="M12 2a7 7 0 0 1 7 7v3a3 3 0 0 1-3 3h-1v2a3 3 0 0 1-3 3H7a1 1 0 1 1 0-2h6a1 1 0 0 0 1-1v-2h-2a3 3 0 0 1-3-3V9a7 7 0 0 1 7-7zm0 2a5 5 0 0 0-5 5v3a1 1 0 0 0 1 1h4v-2a1 1 0 1 1 2 0v2h2a1 1 0 0 0 1-1V9a5 5 0 0 0-5-5z"
115+
d="M4 6a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-2H6a2 2 0 0 1-2-2V6zm8 0H6v6h6V6zm2 6v6h6v-6h-6z"
116116
/>
117117
</svg>
118118
</div>
119-
<h3>Multi-Database Support</h3>
120-
<p>Connect to and manage various SQL databases effortlessly.</p>
119+
<h3>简洁易用</h3>
120+
<p>现代直观的界面,专注效率与生产力。</p>
121121
</article>
122122
</div>
123123
</section>
@@ -128,4 +128,3 @@ const repoUrl = import.meta.env.PUBLIC_REPO_URL ?? 'https://github.com/sjjian/op
128128
</footer>
129129
</div>
130130
</BaseLayout>
131-

0 commit comments

Comments
 (0)