@7365admin1/layer-common 4.190.1 → 4.190.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.
- package/CHANGELOG.md +10 -4
- package/components/HidUserEnrollment.vue +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.190.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dc06ae4: HID user enrolment: accept face photos up to 2 MB (was 1 MB), with "This photo is larger than 2 MB. Please choose a smaller photo." over it (DV-2365).
|
|
8
|
+
|
|
3
9
|
## 4.190.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -4182,11 +4188,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
|
|
|
4182
4188
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
4183
4189
|
own rule from two endpoints the console already calls, unprojected:
|
|
4184
4190
|
|
|
4185
|
-
|
|
4186
|
-
|
|
4191
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
4192
|
+
GET /api/roles/id/:role that membership's role document
|
|
4187
4193
|
|
|
4188
|
-
|
|
4189
|
-
|
|
4194
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
4195
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
4190
4196
|
|
|
4191
4197
|
`role.default` is the marker because it is the only property of a platform
|
|
4192
4198
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -3183,8 +3183,9 @@ function onPhotoChange(event: Event) {
|
|
|
3183
3183
|
showToast("Facial enrollment only accepts JPG or PNG images.", "error");
|
|
3184
3184
|
return;
|
|
3185
3185
|
}
|
|
3186
|
-
|
|
3187
|
-
|
|
3186
|
+
// DV-2365: 2 MB, the limit core and API-core accept (1 MB before).
|
|
3187
|
+
if (file.size >= 2 * 1024 * 1024) {
|
|
3188
|
+
showToast("This photo is larger than 2 MB. Please choose a smaller photo.", "error");
|
|
3188
3189
|
return;
|
|
3189
3190
|
}
|
|
3190
3191
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.190.
|
|
5
|
+
"version": "4.190.2",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|