Skip to content

Commit ddce5d5

Browse files
committed
chore: migrate link component
1 parent f385ba5 commit ddce5d5

File tree

11 files changed

+27
-28
lines changed

11 files changed

+27
-28
lines changed

lib/components/contacts.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const Contacts = ({ isDetailPage = false }) => {
1414
const themeTitle = Configs.isCN() ? '切换主题' : 'Switch themes'
1515
const linkProps = {
1616
rel: 'noreferrer',
17-
pure: true,
1817
target: '_blank',
1918
}
2019

lib/components/posts/post-item.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const PostItem = ({ post }) => {
1616
return (
1717
<div className="item">
1818
<NextLink href={post.url} as={post.url} passHref>
19-
<Link pure>
19+
<Link>
2020
{post.name}
2121
<span className="date" dangerouslySetInnerHTML={{__html: getDateString(post.meta.date)}}>
2222
</span>

lib/components/posts/posts.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const getMoreLink = len => {
1010
if (len < Configs.latestLimit) return null
1111
return (
1212
<NextLink href="/blog" passHref>
13-
<Link pure title="More">...</Link>
13+
<Link title="More">...</Link>
1414
</NextLink>
1515
)
1616
}

lib/components/profile-links.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const fillSpace = name => {
1616
const makeLink = data => {
1717
return (
1818
<NextLink href={data.url} key={data.url} passHref>
19-
<Link pure>{fillSpace(data.name)}</Link>
19+
<Link>{fillSpace(data.name)}</Link>
2020
</NextLink>
2121
)
2222
}

lib/components/profile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Profile = React.memo(({
1919
<div className="profile">
2020
<Row align="bottom" className="user">
2121
<NextLink href="/" passHref>
22-
<Link pure>
22+
<Link>
2323
<User src="/assets/avatar.png" name={Configs.author}>{Configs.summary}</User>
2424
</Link>
2525
</NextLink>

pages/fixed/about.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const Alipay = () => {
5454
现在你所见的站点来自我的开源项目 <Link rel="nofollow" href="https://github.com/unix/unix.bio">unix/unix.bio (MIT)</Link> ,
5555
你可以无偿的使用它构建属于自己的博客。
5656

57-
或者你想赞助、捐赠我?请点击下面的按钮。非常感谢 <NextLink href="/others/sponsors"><Link pure color>所有的赞助者</Link></NextLink>。
57+
或者你想赞助、捐赠我?请点击下面的按钮。非常感谢 <NextLink href="/others/sponsors"><Link color>所有的赞助者</Link></NextLink>。
5858

5959
<Row>
6060
<Spacer x={1} />

pages/fixed/projects.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ export const meta = {
1313
<Spacer y={2} />
1414
<Dot type="success">高活跃度项目</Dot>
1515
<Spacer />
16-
<Link pure href="https://github.com/unix/func"><Code>func</Code> - 现代化的,IoC 范式命令行框架。</Link>
16+
<Link href="https://github.com/unix/func"><Code>func</Code> - 现代化的,IoC 范式命令行框架。</Link>
1717
<Spacer y={.5} />
1818

19-
<Link pure href="https://github.com/zeit-ui/vue"><Code>zeit-ui/vue</Code> - ZEIT UI 的 Vue 实现</Link>
19+
<Link href="https://github.com/zeit-ui/vue"><Code>zeit-ui/vue</Code> - ZEIT UI 的 Vue 实现</Link>
2020
<Spacer y={.5} />
2121

22-
<Link pure href="https://github.com/zeit-ui/react"><Code>zeit-ui/react</Code> - ZEIT UI 的 React 实现</Link>
22+
<Link href="https://github.com/zeit-ui/react"><Code>zeit-ui/react</Code> - ZEIT UI 的 React 实现</Link>
2323
<Spacer y={.5} />
2424

25-
<Link pure href="https://github.com/unix/views-show"><Code>views-show</Code> - 无服务器的浏览量统计服务</Link>
25+
<Link href="https://github.com/unix/views-show"><Code>views-show</Code> - 无服务器的浏览量统计服务</Link>
2626
<Spacer y={.5} />
2727

28-
<Link pure href="https://github.com/unix/koa-ts"><Code>koa-ts</Code> - Koa2 与 TS 的最佳实践,包含脚手架</Link>
28+
<Link href="https://github.com/unix/koa-ts"><Code>koa-ts</Code> - Koa2 与 TS 的最佳实践,包含脚手架</Link>
2929
<Spacer y={.5} />
3030

31-
<Link pure href="https://github.com/unix/want"><Code>want</Code> - 以不下载的方式在线运行命令,无负担运维</Link>
31+
<Link href="https://github.com/unix/want"><Code>want</Code> - 以不下载的方式在线运行命令,无负担运维</Link>
3232
<Spacer y={.5} />
3333

34-
<Link pure href="https://github.com/unix/done"><Code>done</Code> - 自动化、标准化的 Release 工具</Link>
34+
<Link href="https://github.com/unix/done"><Code>done</Code> - 自动化、标准化的 Release 工具</Link>
3535
<Spacer y={.5} />
3636

37-
<Link pure href="https://github.com/unix/cdn-viewer"><Code>cdn-viewer</Code> - 以文件树审阅任何版本时的仓库或包</Link>
37+
<Link href="https://github.com/unix/cdn-viewer"><Code>cdn-viewer</Code> - 以文件树审阅任何版本时的仓库或包</Link>
3838
<Spacer y={.5} />
3939

4040
<Spacer y={3} />

pages/others/sponsors.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const SponsorList = () => {
3535
我可以帮助你远程解决一些问题或是 Review 代码。
3636

3737

38-
你可以在 <NextLink href="/fixed/about"><Link color pure>关于我</Link></NextLink> 的页面找到捐赠链接,
38+
你可以在 <NextLink href="/fixed/about"><Link color>关于我</Link></NextLink> 的页面找到捐赠链接,
3939
捐赠时的留言将在此展示。
4040

4141
<Spacer y={2} />

pages/posts/getting-started-with-zeit-ui-react.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ export const meta = {
88
image: 'https://user-images.githubusercontent.com/11304944/76085431-fd036480-5fec-11ea-8412-9e581425344a.png',
99
}
1010

11-
有意思的是,和 <Link pure href="/posts/getting-started-with-zeit-ui-vue">在 Vue 的指南</Link> 中非常相似,我们也提供了 ZEIT UI 在 React 框架上的支持,
11+
有意思的是,和 <Link href="/posts/getting-started-with-zeit-ui-vue">在 Vue 的指南</Link> 中非常相似,我们也提供了 ZEIT UI 在 React 框架上的支持,
1212
包括数十个有着统一风格的组件,当然还有完善的文档支持。令人兴奋的是,所有的组件都以 `React FC` 的方式实现,
1313
它们都是以优雅的方案构建出的难以想象的高性能组件,也有着 React Hooks 与 Context 精彩的应用,在未来 `Concurrent` 受到支持时我们也会立刻考虑在它们在组件中的优化方案。
1414
就是这样,`@zeit-ui/react`**进步的,高效的,极简风格且优雅的组件库**
1515

1616
在开始创建你的第一个 ZEIT UI 项目之前,我们还必须同步一个基础观念:极简的风格并非简陋,**真正的简约也不是删繁就简,而是在纷繁中构建秩序**
17-
来自 ZEIT 的设计风格绝不是灵光一现的作品,而是设计大师 <Link pure href="https://evilrabb.it/" rel="nofollow">Evil Rabbit</Link> 与其团队设计师精心雕琢的设计语言,
17+
来自 ZEIT 的设计风格绝不是灵光一现的作品,而是设计大师 <Link href="https://evilrabb.it/" rel="nofollow">Evil Rabbit</Link> 与其团队设计师精心雕琢的设计语言,
1818
如果你使用在此基础上构建的 UI 库 `@zeit-ui/react` 时发现任何瑕疵,那一定是我们拙劣的技术实现所致,不必担心,我们可以一同优化与解决缺陷。
1919

2020
<Spacer y={.5} />
2121

2222
<Note type="warning" label="注意">
23-
请确保你拥有最新版本的 <Link pure rel="nofollow" href="https://nodejs.org/en/download/">NodeJS</Link>,
24-
同时也需要准备 NodeJS 的包管理器 <Link pure rel="nofollow" href="https://www.npmjs.com/">NPM</Link> 或是 <Link pure rel="nofollow" href="https://yarnpkg.com/">Yarn</Link>
23+
请确保你拥有最新版本的 <Link rel="nofollow" href="https://nodejs.org/en/download/">NodeJS</Link>,
24+
同时也需要准备 NodeJS 的包管理器 <Link rel="nofollow" href="https://www.npmjs.com/">NPM</Link> 或是 <Link rel="nofollow" href="https://yarnpkg.com/">Yarn</Link>
2525
</Note>
2626

2727
<Spacer y={.5} />
2828

29-
为了轻易的和任何 React 项目接轨,也作为简易的示范,我们使用知名的脚手架 <Link pure rel="nofollow" href="https://github.com/facebook/create-react-app">create-react-app</Link> 创建通用项目。
29+
为了轻易的和任何 React 项目接轨,也作为简易的示范,我们使用知名的脚手架 <Link rel="nofollow" href="https://github.com/facebook/create-react-app">create-react-app</Link> 创建通用项目。
3030
**即便你的项目并非此脚手架创建,也能以此通用项目作为参考,非常简单的使用 `ZEIT UI`**
3131

3232
<Spacer y={2} />
@@ -86,7 +86,7 @@ ReactDOM.render(
8686

8787
是的,`@zeit-ui/react` 没有任何 `.css` 文件,我们把每个组件的样式分发给组件本身,你完全无需考虑样式的问题。
8888
这在你未来需要**统一定制主题风格**时非常有帮助,甚至能帮助你在 **Server Render** 时获的最佳效果。有关定制主题等高级内容,
89-
你可以参阅 <Link pure color href="https://react.zeit-ui.co/docs/customization/themes">如何定制主题的文档</Link>。
89+
你可以参阅 <Link color href="https://react.zeit-ui.co/docs/customization/themes">如何定制主题的文档</Link>。
9090

9191
<Spacer y={2} />
9292

@@ -125,7 +125,7 @@ function App() {
125125
到此为止我们似乎做的不错,运用 ZEIT UI 构建了一个简单的页面。
126126
你可以在 <Link rel="nofollow" href="https://github.com/zeit-ui/react-getting-started/tree/7ca0d66505f03bac709feeb58538df325bc9d8ea">示例项目</Link> 中查看这次的提交。
127127

128-
想要了解更多的组件?你可以看看 <Link pure color rel="nofollow" href="https://react.zeit-ui.co/">ZEIT - UI React 的 官方文档</Link>。
128+
想要了解更多的组件?你可以看看 <Link color rel="nofollow" href="https://react.zeit-ui.co/">ZEIT - UI React 的 官方文档</Link>。
129129

130130

131131
<Spacer y={2} />
@@ -140,7 +140,7 @@ function App() {
140140
在你的页面获得最佳表现力时也确保了性能与体验。
141141

142142
最后,`@zeit-ui/react` 完整且优先的提供 `Server Render` 支持,你所见的博客与我们的文档都是由服务端预渲染所完成,
143-
你可以在 <Link pure color rel="nofollow" href="https://react.zeit-ui.co/docs/getting-started/server-render">这里了解如何配置</Link>。
143+
你可以在 <Link color rel="nofollow" href="https://react.zeit-ui.co/docs/getting-started/server-render">这里了解如何配置</Link>。
144144

145145
<Spacer y={2} />
146146

pages/posts/getting-started-with-zeit-ui-vue.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ export const meta = {
1515
<Spacer y={.5} />
1616

1717
<Note type="warning" label="注意">
18-
请确保你拥有最新版本的 <Link pure rel="nofollow" href="https://nodejs.org/en/download/">NodeJS</Link>,
19-
同时也需要准备 NodeJS 的包管理器 <Link pure rel="nofollow" href="https://www.npmjs.com/">NPM</Link> 或是 <Link pure rel="nofollow" href="https://yarnpkg.com/">Yarn</Link>。
18+
请确保你拥有最新版本的 <Link rel="nofollow" href="https://nodejs.org/en/download/">NodeJS</Link>,
19+
同时也需要准备 NodeJS 的包管理器 <Link rel="nofollow" href="https://www.npmjs.com/">NPM</Link> 或是 <Link rel="nofollow" href="https://yarnpkg.com/">Yarn</Link>。
2020
</Note>
2121

2222
<Spacer y={.5} />
2323

24-
为了轻易的和任何 Vue 项目接轨,我们使用 Vue 官方的脚手架 <Link pure rel="nofollow" href="https://cli.vuejs.org/zh/guide/">@vue/cli</Link> 创建通用项目。
24+
为了轻易的和任何 Vue 项目接轨,我们使用 Vue 官方的脚手架 <Link rel="nofollow" href="https://cli.vuejs.org/zh/guide/">@vue/cli</Link> 创建通用项目。
2525
**即便你的项目并非官方脚手架创建,也能以此通用项目作为参考,非常简单的使用 `ZEIT UI`**
2626

2727
<Spacer y={2} />

0 commit comments

Comments
 (0)