@waline/client 2.14.4 → 2.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/comment.cjs +1 -1
- package/dist/comment.js +1 -1
- package/dist/comment.mjs +1 -1
- package/dist/component.mjs +1 -1
- package/dist/legacy.umd.js +1 -1
- package/dist/pageview.cjs +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.mjs +1 -1
- package/dist/shim.cjs +1 -1
- package/dist/shim.mjs +1 -1
- package/dist/waline-meta.css +1 -1
- package/dist/waline-meta.css.map +1 -1
- package/dist/waline.cjs +1 -1
- package/dist/waline.css +1 -1
- package/dist/waline.css.map +1 -1
- package/dist/waline.js +1 -1
- package/dist/waline.mjs +1 -1
- package/package.json +5 -5
- package/src/components/WalineComment.vue +5 -1
- package/src/styles/card.scss +17 -13
- package/src/styles/emoji.scss +1 -1
- package/src/styles/gif.scss +1 -1
- package/src/styles/highlight.scss +1 -0
- package/src/styles/layout.scss +15 -15
- package/src/styles/meta.scss +1 -1
- package/src/styles/normalize.scss +7 -3
- package/src/styles/panel.scss +3 -3
- package/src/styles/reaction.scss +2 -2
- package/src/styles/user-list.scss +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waline/client",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.5",
|
|
4
4
|
"description": "client for waline comment system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"valine",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@vueuse/core": "^9.
|
|
112
|
+
"@vueuse/core": "^9.10.0",
|
|
113
113
|
"autosize": "^5.0.2",
|
|
114
114
|
"marked": "^4.2.5",
|
|
115
115
|
"vue": "^3.2.45"
|
|
@@ -125,15 +125,15 @@
|
|
|
125
125
|
"@rollup/plugin-terser": "0.2.1",
|
|
126
126
|
"@types/autosize": "4.0.1",
|
|
127
127
|
"@types/marked": "4.0.8",
|
|
128
|
-
"@types/node": "18.11.
|
|
128
|
+
"@types/node": "18.11.18",
|
|
129
129
|
"@vitejs/plugin-vue": "4.0.0",
|
|
130
130
|
"recaptcha-v3": "1.10.0",
|
|
131
131
|
"rimraf": "3.0.2",
|
|
132
|
-
"rollup": "3.
|
|
132
|
+
"rollup": "3.9.1",
|
|
133
133
|
"rollup-plugin-dts": "5.1.0",
|
|
134
134
|
"rollup-plugin-ts": "3.0.2",
|
|
135
135
|
"typescript": "4.9.4",
|
|
136
|
-
"vite": "4.0.
|
|
136
|
+
"vite": "4.0.4"
|
|
137
137
|
},
|
|
138
138
|
"engines": {
|
|
139
139
|
"node": ">=14"
|
|
@@ -84,7 +84,10 @@
|
|
|
84
84
|
</template>
|
|
85
85
|
|
|
86
86
|
<script setup lang="ts">
|
|
87
|
-
/* eslint-disable vue/
|
|
87
|
+
/* eslint-disable vue/define-props-declaration */
|
|
88
|
+
/* eslint-disable vue/no-unused-properties */
|
|
89
|
+
/* eslint-disable vue/require-prop-comment */
|
|
90
|
+
/* eslint-disable vue/require-prop-types */
|
|
88
91
|
import { useStyleTag } from '@vueuse/core';
|
|
89
92
|
import { computed, onMounted, onUnmounted, provide, ref, watch } from 'vue';
|
|
90
93
|
import Reaction from './ArticleReaction.vue';
|
|
@@ -336,6 +339,7 @@ provide('config', config);
|
|
|
336
339
|
|
|
337
340
|
onMounted(() => {
|
|
338
341
|
watch(
|
|
342
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
339
343
|
() => [props.serverURL, props.path],
|
|
340
344
|
() => refresh(),
|
|
341
345
|
{ immediate: true }
|
package/src/styles/card.scss
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
.wl-card {
|
|
13
13
|
.wl-item {
|
|
14
|
-
padding-
|
|
14
|
+
padding-inline-end: 0;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
--avatar-size: var(--waline-avatar-size);
|
|
20
20
|
|
|
21
21
|
position: relative;
|
|
22
|
-
margin-
|
|
22
|
+
margin-inline-end: 0.75em;
|
|
23
23
|
|
|
24
24
|
@media (max-width: 720px) {
|
|
25
25
|
--avatar-size: var(--waline-m-avatar-size);
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.verified-icon {
|
|
36
36
|
position: absolute;
|
|
37
37
|
top: calc(var(--avatar-size) * 3 / 4);
|
|
38
|
-
|
|
38
|
+
inset-inline-start: calc(var(--avatar-size) * 3 / 4);
|
|
39
39
|
|
|
40
40
|
border-radius: 50%;
|
|
41
41
|
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
border-bottom: 1px dashed var(--waline-border-color);
|
|
53
53
|
|
|
54
54
|
&:first-child {
|
|
55
|
-
margin-
|
|
55
|
+
margin-inline-start: 1em;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.wl-head {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
display: inline-block;
|
|
67
67
|
|
|
68
|
-
margin-
|
|
68
|
+
margin-inline-end: 0.5em;
|
|
69
69
|
|
|
70
70
|
font-weight: bold;
|
|
71
71
|
font-size: 0.875em;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
.wl-badge {
|
|
87
87
|
display: inline-block;
|
|
88
88
|
|
|
89
|
-
margin-
|
|
89
|
+
margin-inline-end: 1em;
|
|
90
90
|
padding: 0 0.3em;
|
|
91
91
|
border: 1px solid var(--waline-badge-color);
|
|
92
92
|
border-radius: 4px;
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.wl-time {
|
|
100
|
-
margin-
|
|
100
|
+
margin-inline-end: 0.875em;
|
|
101
101
|
color: var(--waline-info-color);
|
|
102
102
|
font-size: 0.75em;
|
|
103
103
|
}
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
> span {
|
|
110
110
|
display: inline-block;
|
|
111
111
|
|
|
112
|
-
margin-
|
|
112
|
+
margin-inline-end: 0.25em;
|
|
113
113
|
padding: 2px 4px;
|
|
114
114
|
border-radius: 0.2em;
|
|
115
115
|
|
|
@@ -128,6 +128,10 @@
|
|
|
128
128
|
.wl-comment-actions {
|
|
129
129
|
float: right;
|
|
130
130
|
line-height: 1;
|
|
131
|
+
|
|
132
|
+
[dir='rtl'] & {
|
|
133
|
+
float: left;
|
|
134
|
+
}
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
.wl-delete,
|
|
@@ -179,7 +183,7 @@
|
|
|
179
183
|
position: absolute;
|
|
180
184
|
top: 0;
|
|
181
185
|
bottom: 3.15em;
|
|
182
|
-
|
|
186
|
+
inset-inline-start: 0;
|
|
183
187
|
z-index: 999;
|
|
184
188
|
|
|
185
189
|
display: block;
|
|
@@ -194,7 +198,7 @@
|
|
|
194
198
|
|
|
195
199
|
position: absolute;
|
|
196
200
|
bottom: 0;
|
|
197
|
-
|
|
201
|
+
inset-inline-start: 0;
|
|
198
202
|
z-index: 999;
|
|
199
203
|
|
|
200
204
|
display: block;
|
|
@@ -232,19 +236,19 @@
|
|
|
232
236
|
border-radius: 0;
|
|
233
237
|
|
|
234
238
|
&:first-child {
|
|
235
|
-
border-
|
|
239
|
+
border-inline-end: 0;
|
|
236
240
|
border-radius: 0.5em 0 0 0.5em;
|
|
237
241
|
}
|
|
238
242
|
|
|
239
243
|
&:last-child {
|
|
240
|
-
border-
|
|
244
|
+
border-inline-start: 0;
|
|
241
245
|
border-radius: 0 0.5em 0.5em 0;
|
|
242
246
|
}
|
|
243
247
|
}
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
.wl-quote {
|
|
247
|
-
border-
|
|
251
|
+
border-inline-start: 1px dashed rgb(237 237 237 / 50%);
|
|
248
252
|
|
|
249
253
|
.wl-user {
|
|
250
254
|
--avatar-size: var(--waline-m-avatar-size);
|
package/src/styles/emoji.scss
CHANGED
package/src/styles/gif.scss
CHANGED
package/src/styles/layout.scss
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
span.wl-tex {
|
|
21
21
|
display: inline-block;
|
|
22
22
|
|
|
23
|
-
margin-
|
|
23
|
+
margin-inline-end: 0.25em;
|
|
24
24
|
padding: 2px 4px;
|
|
25
25
|
border-radius: 0.2em;
|
|
26
26
|
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
padding: 0.5em 0;
|
|
75
75
|
color: var(--waline-light-grey);
|
|
76
76
|
font-size: var(--waline-info-font-size);
|
|
77
|
-
text-align:
|
|
77
|
+
text-align: end;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.wl-meta-head {
|
|
@@ -84,22 +84,22 @@
|
|
|
84
84
|
padding: 0.375em;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
.wl-sort {
|
|
88
88
|
margin: 0;
|
|
89
89
|
list-style-type: none;
|
|
90
|
-
}
|
|
91
90
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
91
|
+
li {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
color: var(--waline-info-color);
|
|
94
|
+
font-size: 0.75em;
|
|
95
|
+
cursor: pointer;
|
|
98
96
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
97
|
+
&.active {
|
|
98
|
+
color: var(--waline-theme-color);
|
|
99
|
+
}
|
|
102
100
|
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
+ li {
|
|
102
|
+
margin-inline-start: 1em;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
105
|
}
|
package/src/styles/meta.scss
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
[data-waline] {
|
|
2
2
|
font-size: var(--waline-font-size);
|
|
3
|
-
text-align:
|
|
3
|
+
text-align: start;
|
|
4
|
+
|
|
5
|
+
[dir='rtl'] & {
|
|
6
|
+
direction: rtl;
|
|
7
|
+
}
|
|
4
8
|
|
|
5
9
|
* {
|
|
6
10
|
box-sizing: content-box;
|
|
@@ -88,7 +92,7 @@
|
|
|
88
92
|
blockquote {
|
|
89
93
|
margin: 0.5em 0;
|
|
90
94
|
padding: 0.5em 0 0.5em 1em;
|
|
91
|
-
border-
|
|
95
|
+
border-inline-start: 8px solid var(--waline-bq-color);
|
|
92
96
|
color: var(--waline-dark-grey);
|
|
93
97
|
|
|
94
98
|
> p {
|
|
@@ -98,7 +102,7 @@
|
|
|
98
102
|
|
|
99
103
|
ol,
|
|
100
104
|
ul {
|
|
101
|
-
margin-
|
|
105
|
+
margin-inline-start: 1.25em;
|
|
102
106
|
padding: 0;
|
|
103
107
|
}
|
|
104
108
|
|
package/src/styles/panel.scss
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.wl-close {
|
|
8
8
|
position: absolute;
|
|
9
9
|
top: -4px;
|
|
10
|
-
|
|
10
|
+
inset-inline-end: -4px;
|
|
11
11
|
|
|
12
12
|
padding: 0;
|
|
13
13
|
border: none;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
.wl-logout-btn {
|
|
29
29
|
position: absolute;
|
|
30
30
|
top: -10px;
|
|
31
|
-
|
|
31
|
+
inset-inline-end: -10px;
|
|
32
32
|
|
|
33
33
|
padding: 3px;
|
|
34
34
|
border: none;
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
button {
|
|
278
|
-
margin-
|
|
278
|
+
margin-inline-start: 0.75em;
|
|
279
279
|
|
|
280
280
|
svg {
|
|
281
281
|
display: block;
|
package/src/styles/reaction.scss
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
.reaction-loading {
|
|
69
69
|
position: absolute;
|
|
70
70
|
top: -4px;
|
|
71
|
-
|
|
71
|
+
inset-inline-end: -5px;
|
|
72
72
|
|
|
73
73
|
width: 18px;
|
|
74
74
|
height: 18px;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
.reaction-votes {
|
|
80
80
|
position: absolute;
|
|
81
81
|
top: -9px;
|
|
82
|
-
|
|
82
|
+
inset-inline-end: -9px;
|
|
83
83
|
|
|
84
84
|
min-width: 1em;
|
|
85
85
|
padding: 2px;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
overflow: hidden;
|
|
39
39
|
|
|
40
|
-
margin-
|
|
40
|
+
margin-inline-end: 10px;
|
|
41
41
|
border-radius: 4px;
|
|
42
42
|
|
|
43
43
|
line-height: 0;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
.wl-user-badge {
|
|
52
52
|
position: absolute;
|
|
53
|
-
|
|
53
|
+
inset-inline-end: 0;
|
|
54
54
|
bottom: 0;
|
|
55
55
|
|
|
56
56
|
min-width: 0.7em;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
display: inline-block;
|
|
77
77
|
vertical-align: text-top;
|
|
78
78
|
|
|
79
|
-
margin-
|
|
79
|
+
margin-inline-start: 0.5em;
|
|
80
80
|
padding: 0 0.3em;
|
|
81
81
|
border: 1px solid var(--waline-badge-color);
|
|
82
82
|
border-radius: 4px;
|