@adminforth/upload 2.14.0 → 2.14.2

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.
@@ -17,18 +17,18 @@ steps:
17
17
  - infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
18
18
 
19
19
  build:
20
- image: node:20
20
+ image: devforth/node20-pnpm:latest
21
21
  when:
22
22
  - event: push
23
23
  commands:
24
24
  - apt update && apt install -y rsync
25
25
  - . /woodpecker/deploy.vault.env
26
- - npm clean-install
26
+ - pnpm install
27
27
  - /bin/bash ./.woodpecker/buildRelease.sh
28
28
  - npm audit signatures
29
29
 
30
30
  release:
31
- image: node:20
31
+ image: devforth/node20-pnpm:latest
32
32
  when:
33
33
  - event:
34
34
  - push
@@ -36,7 +36,7 @@ steps:
36
36
  - main
37
37
  commands:
38
38
  - . /woodpecker/deploy.vault.env
39
- - npx semantic-release
39
+ - pnpm exec semantic-release
40
40
 
41
41
  slack-on-failure:
42
42
  image: curlimages/curl
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 59,824 bytes received 134 bytes 119,916.00 bytes/sec
15
- total size is 59,335 speedup is 0.99
14
+ sent 59,945 bytes received 134 bytes 120,158.00 bytes/sec
15
+ total size is 59,456 speedup is 0.99
@@ -32,7 +32,9 @@
32
32
  </template>
33
33
  </div>
34
34
  </template>
35
-
35
+ <template v-else>
36
+ {{ t('No image') }}
37
+ </template>
36
38
 
37
39
  </div>
38
40
  </template>
@@ -66,6 +68,9 @@
66
68
  import { ref, computed , onMounted, watch, nextTick} from 'vue'
67
69
  import mediumZoom from 'medium-zoom'
68
70
  import { useRoute } from 'vue-router'
71
+ import { useI18n } from 'vue-i18n';
72
+
73
+ const { t } = useI18n();
69
74
 
70
75
  const img = ref(null);
71
76
  const zoom = ref(null);
@@ -32,7 +32,9 @@
32
32
  </template>
33
33
  </div>
34
34
  </template>
35
-
35
+ <template v-else>
36
+ {{ t('No image') }}
37
+ </template>
36
38
 
37
39
  </div>
38
40
  </template>
@@ -66,6 +68,9 @@
66
68
  import { ref, computed , onMounted, watch, nextTick} from 'vue'
67
69
  import mediumZoom from 'medium-zoom'
68
70
  import { useRoute } from 'vue-router'
71
+ import { useI18n } from 'vue-i18n';
72
+
73
+ const { t } = useI18n();
69
74
 
70
75
  const img = ref(null);
71
76
  const zoom = ref(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/upload",
3
- "version": "2.14.0",
3
+ "version": "2.14.2",
4
4
  "description": "Plugin for uploading files for adminforth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,6 @@
13
13
  "url": "https://github.com/devforth/adminforth-upload.git"
14
14
  },
15
15
  "scripts": {
16
- "prepare": "npm link adminforth",
17
16
  "build": "tsc && rsync -av --exclude 'node_modules' custom dist/"
18
17
  },
19
18
  "type": "module",
@@ -24,7 +23,7 @@
24
23
  "@aws-sdk/s3-request-presigner": "^3.629.0"
25
24
  },
26
25
  "peerDependencies": {
27
- "adminforth": "next"
26
+ "adminforth": "^2.24.0"
28
27
  },
29
28
  "keywords": [
30
29
  "adminforth",
@@ -43,6 +42,7 @@
43
42
  [
44
43
  "semantic-release-slack-bot",
45
44
  {
45
+ "packageName": "@adminforth/upload",
46
46
  "notifyOnSuccess": true,
47
47
  "notifyOnFail": true,
48
48
  "slackIcon": ":package:",