-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: 🎨 format them again use prettier
- Loading branch information
1 parent
0e6474e
commit 7467ce9
Showing
43 changed files
with
176 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-tomorrow.min.css" | ||
> | ||
/> | ||
</template> | ||
</Layout> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
--- | ||
layout: home | ||
title: Sodesu | ||
|
||
hero: | ||
name: Sodesu | ||
text: 一个精简版 Waline 评论系统前端 | ||
tagline: 小巧、快速,由 Solid.js 和 UnoCSS 驱动。 | ||
actions: | ||
- theme: brand | ||
text: 快速开始 | ||
link: /guide/getting-started | ||
- theme: alt | ||
text: 查看源码 | ||
link: https://github.com/BeiyanYunyi/sodesu | ||
features: | ||
- icon: 🚀 | ||
title: Solid.js | ||
details: 又快又小。使用长得像 JSX 的模板构建。 | ||
- icon: 📦 | ||
title: 使用 UnoCSS | ||
details: CSS 体积控制在 8.97kB,如果你的博客系统也用了 UnoCSS,那么 CSS 体积不会简单相加。 | ||
- icon: ❤ | ||
title: 兼容 Waline | ||
details: 可直接重用原版 Waline 前端的配置项,迁移简单。 | ||
- icon: ☁️ | ||
title: 轻量 | ||
details: 23 kB gzipped 的完整 JS 体积。 | ||
--- | ||
--- | ||
layout: home | ||
title: Sodesu | ||
|
||
hero: | ||
name: Sodesu | ||
text: 一个精简版 Waline 评论系统前端 | ||
tagline: 小巧、快速,由 Solid.js 和 UnoCSS 驱动。 | ||
actions: | ||
- theme: brand | ||
text: 快速开始 | ||
link: /guide/getting-started | ||
- theme: alt | ||
text: 查看源码 | ||
link: https://github.com/BeiyanYunyi/sodesu | ||
features: | ||
- icon: 🚀 | ||
title: Solid.js | ||
details: 又快又小。使用长得像 JSX 的模板构建。 | ||
- icon: 📦 | ||
title: 使用 UnoCSS | ||
details: CSS 体积控制在 8.97kB,如果你的博客系统也用了 UnoCSS,那么 CSS 体积不会简单相加。 | ||
- icon: ❤ | ||
title: 兼容 Waline | ||
details: 可直接重用原版 Waline 前端的配置项,迁移简单。 | ||
- icon: ☁️ | ||
title: 轻量 | ||
details: 23 kB gzipped 的完整 JS 体积。 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,10 @@ Sodesu 与 Waline 官方前端的设计目的并不相同。我写 Sodesu 的初 | |
Waline 后端使用 Prism 将 markdown 中的代码块进行高亮处理,而 Sodesu 的样式中并未包括 Prism。为了让 Sodesu 正确呈现代码样式(而非一片灰),你需要在前端额外引入 Prism 的样式。经测试,在所有官方主题中,`prism-tomorrow` 主题的效果是最好的。示例引入方式如下: | ||
|
||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-tomorrow.min.css" /> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-tomorrow.min.css" | ||
/> | ||
``` | ||
|
||
::: info | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,8 @@ | |
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
阅读量: <span id="/" class="waline-pageview-count"></span> 评论数: | ||
<span id="/" class="waline-comment-count"></span>页面阅读量 1: | ||
<span class="waline-pageview-count" data-path="/guide/features/pageview.html"></span>页面阅读量 2:<span | ||
class="waline-pageview-count" | ||
data-path="/guide/features/i18n.html" | ||
></span> | ||
<span class="waline-pageview-count" data-path="/guide/features/pageview.html"></span>页面阅读量 | ||
2:<span class="waline-pageview-count" data-path="/guide/features/i18n.html"></span> | ||
<div id="root"></div> | ||
<script type="module"> | ||
import Sodesu from '/src/index.tsx'; | ||
|
@@ -24,13 +22,17 @@ | |
el: '#root', | ||
serverURL: 'https://walinejs.comment.lithub.cc', | ||
dark: 'auto', | ||
path: window.location.pathname === '/' ? '/' : window.location.pathname.replace(/\/$/, '.html'), | ||
path: | ||
window.location.pathname === '/' ? '/' : window.location.pathname.replace(/\/$/, '.html'), | ||
pageview: true, | ||
comment: true, | ||
commentClassName: 'prose', | ||
renderPreview: remarkRenderer, | ||
}); | ||
</script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-tomorrow.min.css" /> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism-tomorrow.min.css" | ||
/> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.