unika-components 1.0.83 → 1.0.84

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.
@@ -1,8 +1,4 @@
1
1
 
2
- .uni-image-component {
3
- max-width: 100%;
4
- }
5
-
6
2
  h2.uni-text-component, p.uni-text-component {
7
3
  margin-bottom: 0;
8
4
  }
@@ -15,6 +11,10 @@ button.uni-text-component {
15
11
  white-space: pre-wrap;
16
12
  }
17
13
 
14
+ .uni-image-component {
15
+ max-width: 100%;
16
+ }
17
+
18
18
  .slide-guide {
19
19
  position: absolute;
20
20
  bottom: 90px;
@@ -88,71 +88,6 @@ body, html {
88
88
  }
89
89
  }
90
90
 
91
- .uni-background-component {
92
- width: 100%;
93
- }
94
- .bg-img {
95
- width: 100%;
96
- height: 100%;
97
- object-fit: cover;
98
- z-index:1;
99
- }
100
- .watermark {
101
- height: 100%;
102
- position: absolute;
103
- top: 0;
104
- left: 0;
105
- right: 0;
106
- bottom: 0;
107
- }
108
- .watermark-div {
109
- height: 100%;
110
- width:100%;
111
- position:absolute;
112
- z-index:99999999;
113
- }
114
- body:before{
115
- content: '';
116
- position: fixed;
117
- top: 0;
118
- bottom: 0;
119
- left: 0;
120
- right: 0;
121
- z-index: -1;
122
- /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
123
- background-position: center;
124
- opacity: 0.1;
125
- }
126
-
127
- .uni-video-component {
128
- position: relative;
129
- text-align: center;
130
- }
131
- .play-pause-button {
132
- position: absolute;
133
- top: 50%;
134
- left: 50%;
135
- transform: translate(-50%, -50%);
136
- cursor: pointer;
137
- font-size: 2rem;
138
- color: #fff;
139
- background: rgba(0, 0, 0, 0.6);
140
- border-radius: 50%;
141
- padding: 10px;
142
- transition: background 0.3s;
143
- }
144
- .play-pause-button:hover {
145
- background: rgba(0, 0, 0, 0.8);
146
- }
147
-
148
- .slot-number {
149
- position: absolute;
150
- bottom: 2px;
151
- left: 7px;
152
- font-size: 12px;
153
- color: #666
154
- }
155
-
156
91
  #audio {
157
92
  position: absolute;
158
93
  right: 10px;
@@ -251,6 +186,98 @@ body, html {
251
186
  }
252
187
  }
253
188
 
189
+ .uni-background-component {
190
+ width: 100%;
191
+ }
192
+ .bg-img {
193
+ width: 100%;
194
+ height: 100%;
195
+ object-fit: cover;
196
+ z-index:1;
197
+ }
198
+ .watermark {
199
+ height: 100%;
200
+ position: absolute;
201
+ top: 0;
202
+ left: 0;
203
+ right: 0;
204
+ bottom: 0;
205
+ }
206
+ .watermark-div {
207
+ height: 100%;
208
+ width:100%;
209
+ position:absolute;
210
+ z-index:99999999;
211
+ }
212
+ body:before{
213
+ content: '';
214
+ position: fixed;
215
+ top: 0;
216
+ bottom: 0;
217
+ left: 0;
218
+ right: 0;
219
+ z-index: -1;
220
+ /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
221
+ background-position: center;
222
+ opacity: 0.1;
223
+ }
224
+
225
+ .uni-video-component {
226
+ position: relative;
227
+ text-align: center;
228
+ }
229
+ .play-pause-button {
230
+ position: absolute;
231
+ top: 50%;
232
+ left: 50%;
233
+ transform: translate(-50%, -50%);
234
+ cursor: pointer;
235
+ font-size: 2rem;
236
+ color: #fff;
237
+ background: rgba(0, 0, 0, 0.6);
238
+ border-radius: 50%;
239
+ padding: 10px;
240
+ transition: background 0.3s;
241
+ }
242
+ .play-pause-button:hover {
243
+ background: rgba(0, 0, 0, 0.8);
244
+ }
245
+
246
+ .like-button {
247
+ display: flex;
248
+ flex-direction: column;
249
+ align-items: center;
250
+ cursor: pointer;
251
+ }
252
+
253
+ .icon-heart {
254
+ font-size: 24px;
255
+ color: #e74c3c;
256
+ }
257
+
258
+ .liked {
259
+ color: #f00; /* 更改颜色以示已赞 */
260
+ }
261
+
262
+ .like-count {
263
+ margin-top: 4px;
264
+ font-size: 16px;
265
+ color: #333;
266
+ }
267
+
268
+ .slot-number {
269
+ position: absolute;
270
+ bottom: 2px;
271
+ left: 7px;
272
+ font-size: 12px;
273
+ color: #666
274
+ }
275
+
276
+ .effect {
277
+ width: 100%;
278
+ height: 100%;
279
+ }
280
+
254
281
  .ant-input-number {
255
282
  box-sizing: border-box;
256
283
  margin: 0;
@@ -286,33 +313,6 @@ body, html {
286
313
  vertical-align: top;
287
314
  }
288
315
 
289
- .effect {
290
- width: 100%;
291
- height: 100%;
292
- }
293
-
294
- .like-button {
295
- display: flex;
296
- flex-direction: column;
297
- align-items: center;
298
- cursor: pointer;
299
- }
300
-
301
- .icon-heart {
302
- font-size: 24px;
303
- color: #e74c3c;
304
- }
305
-
306
- .liked {
307
- color: #f00; /* 更改颜色以示已赞 */
308
- }
309
-
310
- .like-count {
311
- margin-top: 4px;
312
- font-size: 16px;
313
- color: #333;
314
- }
315
-
316
316
  .swiper-warp {
317
317
  width: 100%;
318
318
  height: 100%;
@@ -96252,7 +96252,7 @@ var followRedirects = wrap({ http: http, https: https });
96252
96252
  var wrap_1 = wrap;
96253
96253
  followRedirects.wrap = wrap_1;
96254
96254
 
96255
- const VERSION = "1.7.1";
96255
+ const VERSION = "1.7.2";
96256
96256
 
96257
96257
  function parseProtocol(url) {
96258
96258
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -97964,11 +97964,11 @@ const fetchProgressDecorator = (total, fn) => {
97964
97964
  }));
97965
97965
  };
97966
97966
 
97967
- const isFetchSupported = typeof fetch !== 'undefined';
97968
- const isReadableStreamSupported = isFetchSupported && typeof ReadableStream !== 'undefined';
97967
+ const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
97968
+ const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
97969
97969
 
97970
97970
  // used only inside the fetch adapter
97971
- const encodeText = isFetchSupported && (typeof TextEncoder !== 'undefined' ?
97971
+ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
97972
97972
  ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
97973
97973
  async (str) => new Uint8Array(await new Response(str).arrayBuffer())
97974
97974
  );
@@ -96258,7 +96258,7 @@ summary tabindex target title type usemap value width wmode wrap`;
96258
96258
  var wrap_1 = wrap;
96259
96259
  followRedirects.wrap = wrap_1;
96260
96260
 
96261
- const VERSION = "1.7.1";
96261
+ const VERSION = "1.7.2";
96262
96262
 
96263
96263
  function parseProtocol(url) {
96264
96264
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -97970,11 +97970,11 @@ summary tabindex target title type usemap value width wmode wrap`;
97970
97970
  }));
97971
97971
  };
97972
97972
 
97973
- const isFetchSupported = typeof fetch !== 'undefined';
97974
- const isReadableStreamSupported = isFetchSupported && typeof ReadableStream !== 'undefined';
97973
+ const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
97974
+ const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
97975
97975
 
97976
97976
  // used only inside the fetch adapter
97977
- const encodeText = isFetchSupported && (typeof TextEncoder !== 'undefined' ?
97977
+ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
97978
97978
  ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
97979
97979
  async (str) => new Uint8Array(await new Response(str).arrayBuffer())
97980
97980
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.83",
3
+ "version": "1.0.84",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",
@@ -33,7 +33,6 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "animation.css": "^0.1.0",
36
- "axios": "^1.7.1",
37
36
  "danmaku-vue": "^1.0.2",
38
37
  "less-loader": "^5.0.0",
39
38
  "lodash-es": "^4.17.15",
@@ -69,6 +68,7 @@
69
68
  "@vue/test-utils": "^2.0.0-beta.8",
70
69
  "animate.css": "^3.7.2",
71
70
  "ant-design-vue": "^4.1.2",
71
+ "axios": "^1.7.2",
72
72
  "babel-eslint": "^10.1.0",
73
73
  "babel-plugin-import": "^1.13.8",
74
74
  "cross-env": "^7.0.2",