@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waline/client",
3
- "version": "2.14.4",
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.9.0",
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.17",
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.8.1",
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.3"
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/no-unused-properties vue/require-prop-comment vue/require-prop-types */
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 }
@@ -11,7 +11,7 @@
11
11
 
12
12
  .wl-card {
13
13
  .wl-item {
14
- padding-right: 0;
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-right: 0.75em;
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
- left: calc(var(--avatar-size) * 3 / 4);
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-left: 1em;
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-right: 0.5em;
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-right: 1em;
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-right: 0.875em;
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-right: 0.25em;
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
- left: 0;
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
- left: 0;
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-right: 0;
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-left: 0;
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-left: 1px dashed rgb(237 237 237 / 50%);
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);
@@ -1,7 +1,7 @@
1
1
  .wl-emoji-popup {
2
2
  position: absolute;
3
3
  top: 100%;
4
- left: 1.25em;
4
+ inset-inline-start: 1.25em;
5
5
  z-index: 10;
6
6
 
7
7
  max-width: 526px;
@@ -1,7 +1,7 @@
1
1
  .wl-gif-popup {
2
2
  position: absolute;
3
3
  top: 100%;
4
- left: 1.25em;
4
+ inset-inline-start: 1.25em;
5
5
  z-index: 10;
6
6
 
7
7
  width: calc(100% - 3em);
@@ -13,6 +13,7 @@
13
13
  line-height: 1.4;
14
14
 
15
15
  code {
16
+ direction: ltr;
16
17
  padding: 0;
17
18
  border-radius: 0;
18
19
  background: transparent !important;
@@ -20,7 +20,7 @@
20
20
  span.wl-tex {
21
21
  display: inline-block;
22
22
 
23
- margin-right: 0.25em;
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: right;
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
- ul.wl-sort {
87
+ .wl-sort {
88
88
  margin: 0;
89
89
  list-style-type: none;
90
- }
91
90
 
92
- .wl-sort li {
93
- display: inline-block;
94
- color: var(--waline-info-color);
95
- font-size: 0.75em;
96
- cursor: pointer;
97
- }
91
+ li {
92
+ display: inline-block;
93
+ color: var(--waline-info-color);
94
+ font-size: 0.75em;
95
+ cursor: pointer;
98
96
 
99
- .wl-sort li + li {
100
- margin-left: 1em;
101
- }
97
+ &.active {
98
+ color: var(--waline-theme-color);
99
+ }
102
100
 
103
- .wl-sort li.active {
104
- color: var(--waline-theme-color);
101
+ + li {
102
+ margin-inline-start: 1em;
103
+ }
104
+ }
105
105
  }
@@ -21,7 +21,7 @@ $safari-icon: '<svg viewBox="0 0 512 512" fill="#999"><path d="m274.69 274.69-37
21
21
 
22
22
  width: 1em;
23
23
  height: 1em;
24
- margin-right: 2px;
24
+ margin-inline-end: 2px;
25
25
 
26
26
  background-position: center center;
27
27
  background-repeat: no-repeat;
@@ -1,6 +1,10 @@
1
1
  [data-waline] {
2
2
  font-size: var(--waline-font-size);
3
- text-align: left;
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-left: 8px solid var(--waline-bq-color);
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-left: 1.25em;
105
+ margin-inline-start: 1.25em;
102
106
  padding: 0;
103
107
  }
104
108
 
@@ -7,7 +7,7 @@
7
7
  .wl-close {
8
8
  position: absolute;
9
9
  top: -4px;
10
- right: -4px;
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
- right: -10px;
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-left: 0.75em;
278
+ margin-inline-start: 0.75em;
279
279
 
280
280
  svg {
281
281
  display: block;
@@ -68,7 +68,7 @@
68
68
  .reaction-loading {
69
69
  position: absolute;
70
70
  top: -4px;
71
- right: -5px;
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
- right: -9px;
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-right: 10px;
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
- right: 0;
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-left: 0.5em;
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;