@adminforth/upload 2.1.0 → 2.2.0
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/.woodpecker/release.yml +0 -2
- package/build.log +2 -2
- package/custom/imageGenerator.vue +5 -5
- package/dist/custom/imageGenerator.vue +5 -5
- package/dist/index.js +2 -0
- package/index.ts +2 -0
- package/package.json +1 -1
package/.woodpecker/release.yml
CHANGED
package/build.log
CHANGED
|
@@ -11,5 +11,5 @@ custom/preview.vue
|
|
|
11
11
|
custom/tsconfig.json
|
|
12
12
|
custom/uploader.vue
|
|
13
13
|
|
|
14
|
-
sent 46,
|
|
15
|
-
total size is 45,
|
|
14
|
+
sent 46,106 bytes received 134 bytes 92,480.00 bytes/sec
|
|
15
|
+
total size is 45,617 speedup is 0.99
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
<img
|
|
54
54
|
:src="zoomedImage"
|
|
55
55
|
ref="zoomedImg"
|
|
56
|
-
class="max-w-full max-h-full rounded-lg object-contain cursor-grab"
|
|
56
|
+
class="max-w-full max-h-full rounded-lg object-contain cursor-grab z-75"
|
|
57
57
|
/>
|
|
58
58
|
</div>
|
|
59
59
|
|
|
60
60
|
<div class="flex flex-col items-center justify-center w-full relative">
|
|
61
61
|
<div
|
|
62
62
|
v-if="loading"
|
|
63
|
-
class=" absolute flex items-center justify-center w-full h-full z-
|
|
63
|
+
class=" absolute flex items-center justify-center w-full h-full z-40 bg-white/80 dark:bg-gray-900/80 rounded-lg"
|
|
64
64
|
>
|
|
65
65
|
<div role="status" class="absolute -translate-x-1/2 -translate-y-1/2 top-2/4 left-1/2">
|
|
66
66
|
<svg aria-hidden="true" class="w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/></svg>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
</div>
|
|
69
69
|
</div>
|
|
70
70
|
|
|
71
|
-
<div v-if="loadingTimer" class="absolute pt-12 flex items-center justify-center w-full h-full z-
|
|
71
|
+
<div v-if="loadingTimer" class="absolute pt-12 flex items-center justify-center w-full h-full z-40 bg-white/80 dark:bg-gray-900/80 rounded-lg">
|
|
72
72
|
<div class="text-gray-800 dark:text-gray-100 text-lg font-semibold"
|
|
73
73
|
v-if="!historicalAverage"
|
|
74
74
|
>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
90
90
|
|
|
91
|
-
<div v-if="errorMessage" class="absolute flex items-center justify-center w-full h-full z-
|
|
91
|
+
<div v-if="errorMessage" class="absolute flex items-center justify-center w-full h-full z-40 bg-white/80 dark:bg-gray-900/80 rounded-lg">
|
|
92
92
|
<div class="pt-20 text-red-500 dark:text-red-400 text-lg font-semibold">
|
|
93
93
|
{{ errorMessage }}
|
|
94
94
|
</div>
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
|
|
98
98
|
<div id="gallery" class="relative w-full" data-carousel="static">
|
|
99
99
|
<!-- Carousel wrapper -->
|
|
100
|
-
<div class="relative h-56 overflow-hidden rounded-lg md:h-[calc(100vh-
|
|
100
|
+
<div class="relative h-56 overflow-hidden rounded-lg md:h-[calc(100vh-400px)]">
|
|
101
101
|
<!-- Item 1 -->
|
|
102
102
|
<div v-for="(img, index) in images" :key="index" class="hidden duration-700 ease-in-out" data-carousel-item>
|
|
103
103
|
<img :src="img" class="absolute block max-w-full max-h-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2 object-cover"
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
<img
|
|
54
54
|
:src="zoomedImage"
|
|
55
55
|
ref="zoomedImg"
|
|
56
|
-
class="max-w-full max-h-full rounded-lg object-contain cursor-grab"
|
|
56
|
+
class="max-w-full max-h-full rounded-lg object-contain cursor-grab z-75"
|
|
57
57
|
/>
|
|
58
58
|
</div>
|
|
59
59
|
|
|
60
60
|
<div class="flex flex-col items-center justify-center w-full relative">
|
|
61
61
|
<div
|
|
62
62
|
v-if="loading"
|
|
63
|
-
class=" absolute flex items-center justify-center w-full h-full z-
|
|
63
|
+
class=" absolute flex items-center justify-center w-full h-full z-40 bg-white/80 dark:bg-gray-900/80 rounded-lg"
|
|
64
64
|
>
|
|
65
65
|
<div role="status" class="absolute -translate-x-1/2 -translate-y-1/2 top-2/4 left-1/2">
|
|
66
66
|
<svg aria-hidden="true" class="w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/></svg>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
</div>
|
|
69
69
|
</div>
|
|
70
70
|
|
|
71
|
-
<div v-if="loadingTimer" class="absolute pt-12 flex items-center justify-center w-full h-full z-
|
|
71
|
+
<div v-if="loadingTimer" class="absolute pt-12 flex items-center justify-center w-full h-full z-40 bg-white/80 dark:bg-gray-900/80 rounded-lg">
|
|
72
72
|
<div class="text-gray-800 dark:text-gray-100 text-lg font-semibold"
|
|
73
73
|
v-if="!historicalAverage"
|
|
74
74
|
>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
90
90
|
|
|
91
|
-
<div v-if="errorMessage" class="absolute flex items-center justify-center w-full h-full z-
|
|
91
|
+
<div v-if="errorMessage" class="absolute flex items-center justify-center w-full h-full z-40 bg-white/80 dark:bg-gray-900/80 rounded-lg">
|
|
92
92
|
<div class="pt-20 text-red-500 dark:text-red-400 text-lg font-semibold">
|
|
93
93
|
{{ errorMessage }}
|
|
94
94
|
</div>
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
|
|
98
98
|
<div id="gallery" class="relative w-full" data-carousel="static">
|
|
99
99
|
<!-- Carousel wrapper -->
|
|
100
|
-
<div class="relative h-56 overflow-hidden rounded-lg md:h-[calc(100vh-
|
|
100
|
+
<div class="relative h-56 overflow-hidden rounded-lg md:h-[calc(100vh-400px)]">
|
|
101
101
|
<!-- Item 1 -->
|
|
102
102
|
<div v-for="(img, index) in images" :key="index" class="hidden duration-700 ease-in-out" data-carousel-item>
|
|
103
103
|
<img :src="img" class="absolute block max-w-full max-h-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2 object-cover"
|
package/dist/index.js
CHANGED
|
@@ -271,8 +271,10 @@ export default class UploadPlugin extends AdminForthPlugin {
|
|
|
271
271
|
else {
|
|
272
272
|
previewUrl = yield this.options.storageAdapter.getDownloadUrl(filePath, 1800);
|
|
273
273
|
}
|
|
274
|
+
const tagline = `${ADMINFORTH_NOT_YET_USED_TAG}=true`;
|
|
274
275
|
return {
|
|
275
276
|
uploadUrl,
|
|
277
|
+
tagline,
|
|
276
278
|
filePath,
|
|
277
279
|
uploadExtraParams,
|
|
278
280
|
previewUrl,
|
package/index.ts
CHANGED
|
@@ -307,9 +307,11 @@ export default class UploadPlugin extends AdminForthPlugin {
|
|
|
307
307
|
} else {
|
|
308
308
|
previewUrl = await this.options.storageAdapter.getDownloadUrl(filePath, 1800);
|
|
309
309
|
}
|
|
310
|
+
const tagline = `${ADMINFORTH_NOT_YET_USED_TAG}=true`;
|
|
310
311
|
|
|
311
312
|
return {
|
|
312
313
|
uploadUrl,
|
|
314
|
+
tagline,
|
|
313
315
|
filePath,
|
|
314
316
|
uploadExtraParams,
|
|
315
317
|
previewUrl,
|