@7365admin1/layer-common 3.0.7 → 3.0.9
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 +13 -0
- package/components/CameraMain.vue +17 -1
- package/components/DashboardMain.vue +1854 -848
- package/components/EntryPassInformation.vue +60 -0
- package/components/HidAccessLogDashboard.vue +1691 -0
- package/components/HidEnabledGate.vue +51 -0
- package/components/HidIdentityMapping.vue +975 -0
- package/components/HidQrCodeConfiguration.vue +618 -0
- package/components/HidReaderForm.vue +246 -0
- package/components/HidReaderManagement.vue +1233 -0
- package/components/HidServiceSettingsPanel.vue +150 -0
- package/components/HidUserEnrollment.vue +1274 -0
- package/components/Layout/NavigationDrawer.vue +31 -1
- package/components/MemberInformation.vue +23 -15
- package/components/NavigationItem.vue +11 -4
- package/components/OnlineFormFill.vue +34 -0
- package/components/PassInformation.vue +73 -34
- package/components/SiteSettings.vue +60 -116
- package/components/VisitorForm.vue +815 -290
- package/components/VisitorFormSelection.vue +12 -2
- package/components/VisitorManagement.vue +652 -205
- package/composables/useCommonPermission.ts +59 -0
- package/composables/useDashboard.ts +46 -1
- package/composables/useHidAmico.ts +152 -0
- package/composables/useHidNavigation.ts +106 -0
- package/composables/useMember.ts +7 -1
- package/composables/useOptionalServices.ts +118 -0
- package/composables/useSettingsPermission.ts +138 -0
- package/composables/useSiteSettings.ts +1 -1
- package/composables/useUser.ts +1 -2
- package/nuxt.config.ts +1 -1
- package/package.json +3 -2
- package/pages/[org]/[site]/access-mgmt/access-logs/index.vue +21 -0
- package/pages/[org]/[site]/access-mgmt/administrator/index.vue +21 -0
- package/pages/[org]/[site]/access-mgmt/hid-readers/index.vue +21 -0
- package/pages/[org]/[site]/access-mgmt/hid-users/index.vue +21 -0
- package/pages/[org]/[site]/access-mgmt/identity-mapping/index.vue +21 -0
- package/types/local.d.ts +2 -1
- package/types/visitor.d.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 3.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3d105fe: Update to New Version
|
|
8
|
+
|
|
9
|
+
## 3.0.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- d2ab57b: Mask Site Settings Host url
|
|
14
|
+
- 3dc892a: Update Layer-common version
|
|
15
|
+
|
|
3
16
|
## 3.0.7
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
@click:row="handleRowClick"
|
|
33
33
|
style="max-height: 300px"
|
|
34
34
|
>
|
|
35
|
+
<template #item.host="{ value }">
|
|
36
|
+
{{ maskHostUrl(value) }}
|
|
37
|
+
</template>
|
|
35
38
|
</v-data-table>
|
|
36
39
|
</v-card-text>
|
|
37
40
|
|
|
@@ -103,7 +106,7 @@
|
|
|
103
106
|
<v-col cols="12" class="mb-2">
|
|
104
107
|
Host:
|
|
105
108
|
<span class="font-weight-bold">
|
|
106
|
-
{{ camera.host }}
|
|
109
|
+
{{ maskHostUrl(camera.host) }}
|
|
107
110
|
</span>
|
|
108
111
|
</v-col>
|
|
109
112
|
|
|
@@ -367,6 +370,19 @@ function handleSuccess() {
|
|
|
367
370
|
getCameraRefresh();
|
|
368
371
|
}
|
|
369
372
|
|
|
373
|
+
function maskHostUrl(value?: string | null) {
|
|
374
|
+
if (!value) return "";
|
|
375
|
+
|
|
376
|
+
const text = String(value);
|
|
377
|
+
const protocolMatch = text.match(/^([a-z][a-z\d+\-.]*:\/\/)(.*)$/i);
|
|
378
|
+
const prefix = protocolMatch?.[1] ?? "";
|
|
379
|
+
const rest = protocolMatch?.[2] ?? text;
|
|
380
|
+
|
|
381
|
+
if (rest.length <= 8) return `${prefix}${"*".repeat(rest.length)}`;
|
|
382
|
+
|
|
383
|
+
return `${prefix}${rest.slice(0, 3)}****${rest.slice(-3)}`;
|
|
384
|
+
}
|
|
385
|
+
|
|
370
386
|
const camera = ref<TSiteCamera>({
|
|
371
387
|
site: "",
|
|
372
388
|
host: "",
|