Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(client): rebuild comment meta, close #1316 #1351 #1389

Merged
merged 4 commits into from
Sep 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/client/__tests__/highlighter.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script>
const waline = Waline.init({
el: '#waline',
serverURL: 'https://waline.vercel.app',
serverURL: 'https://walinejs.comment.lithub.cc',
path: '/',
lang: 'en-US',
highlighter: (code, lang) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/client/__tests__/init.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
lang: 'en-US',
path: '/',
pageview: true,
serverURL: 'https://waline.vercel.app',
serverURL: 'https://walinejs.comment.lithub.cc',
emoji: [
'//unpkg.com/@waline/[email protected]/bilibili',
'//unpkg.com/@waline/[email protected]/qq',
Expand Down
2 changes: 1 addition & 1 deletion packages/client/__tests__/katex.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script>
const waline = Waline.init({
el: '#waline',
serverURL: 'https://waline.vercel.app',
serverURL: 'https://walinejs.comment.lithub.cc',
path: '/',
lang: 'en-US',
texRenderer: (blockmode, tex) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/__tests__/legacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
tv_惊吓: '0d15c7e2ee58e935adc6a7193ee042388adc22af.png',
},
visitor: true,
serverURL: 'https://waline.vercel.app',
serverURL: 'https://walinejs.comment.lithub.cc',
highlight: false,
emoji: [
'//unpkg.com/@waline/[email protected]/bilibili',
Expand Down
2 changes: 1 addition & 1 deletion packages/client/__tests__/mathjax.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script>
const waline = Waline.init({
el: '#waline',
serverURL: 'https://waline.vercel.app',
serverURL: 'https://walinejs.comment.lithub.cc',
path: '/',
lang: 'en-US',
texRenderer: (blockmode, tex) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/__tests__/pageview.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
阅读量: <span id="/" class="waline-pageview-count"></span>
<script>
Waline.pageviewCount({
serverURL: 'https://waline.vercel.app',
serverURL: 'https://walinejs.comment.lithub.cc',
path: '/',
});
</script>
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/components/CommentCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
</div>
</div>
<div class="wl-meta" aria-hidden="true">
<span v-if="comment.addr" v-text="comment.addr" />
<span v-if="comment.browser" v-text="comment.browser" />
<span v-if="comment.os" v-text="comment.os" />
<span v-if="comment.addr" class="wl-addr" :data-value="comment.addr" v-text="comment.addr" />
<span v-if="comment.browser" class="wl-browser" :data-value="comment.browser" v-text="comment.browser" />
<span v-if="comment.os" class="wl-os" :data-value="comment.os" v-text="comment.os" />
</div>
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="wl-content" v-html="comment.comment" />
Expand Down
4 changes: 0 additions & 4 deletions packages/client/src/styles/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@
font-size: var(--waline-info-font-size);
line-height: 1.5;

@media (max-width: 520px) {
display: none;
}

&:empty {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/client/template/init.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
path: '/',
comment: true,
pageview: true,
serverURL: 'https://waline.vercel.app',
serverURL: 'https://walinejs.comment.lithub.cc',
emoji: [
'//unpkg.com/@waline/[email protected]/bilibili',
'//unpkg.com/@waline/[email protected]/qq',
Expand Down
2 changes: 1 addition & 1 deletion packages/client/template/legacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
tv_惊吓: '0d15c7e2ee58e935adc6a7193ee042388adc22af.png',
},
visitor: true,
serverURL: 'https://waline.vercel.app',
serverURL: 'https://walinejs.comment.lithub.cc',
highlight: false,
emoji: [
'//unpkg.com/@waline/[email protected]/bilibili',
Expand Down
2 changes: 1 addition & 1 deletion packages/client/template/pageview.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import { pageviewCount } from '../src/entrys/pageview.ts';

pageviewCount({
serverURL: 'https://waline.vercel.app',
serverURL: 'https://walinejs.comment.lithub.cc',
path: '/',
});
</script>
Expand Down