@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.
Files changed (39) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/components/CameraMain.vue +17 -1
  3. package/components/DashboardMain.vue +1854 -848
  4. package/components/EntryPassInformation.vue +60 -0
  5. package/components/HidAccessLogDashboard.vue +1691 -0
  6. package/components/HidEnabledGate.vue +51 -0
  7. package/components/HidIdentityMapping.vue +975 -0
  8. package/components/HidQrCodeConfiguration.vue +618 -0
  9. package/components/HidReaderForm.vue +246 -0
  10. package/components/HidReaderManagement.vue +1233 -0
  11. package/components/HidServiceSettingsPanel.vue +150 -0
  12. package/components/HidUserEnrollment.vue +1274 -0
  13. package/components/Layout/NavigationDrawer.vue +31 -1
  14. package/components/MemberInformation.vue +23 -15
  15. package/components/NavigationItem.vue +11 -4
  16. package/components/OnlineFormFill.vue +34 -0
  17. package/components/PassInformation.vue +73 -34
  18. package/components/SiteSettings.vue +60 -116
  19. package/components/VisitorForm.vue +815 -290
  20. package/components/VisitorFormSelection.vue +12 -2
  21. package/components/VisitorManagement.vue +652 -205
  22. package/composables/useCommonPermission.ts +59 -0
  23. package/composables/useDashboard.ts +46 -1
  24. package/composables/useHidAmico.ts +152 -0
  25. package/composables/useHidNavigation.ts +106 -0
  26. package/composables/useMember.ts +7 -1
  27. package/composables/useOptionalServices.ts +118 -0
  28. package/composables/useSettingsPermission.ts +138 -0
  29. package/composables/useSiteSettings.ts +1 -1
  30. package/composables/useUser.ts +1 -2
  31. package/nuxt.config.ts +1 -1
  32. package/package.json +3 -2
  33. package/pages/[org]/[site]/access-mgmt/access-logs/index.vue +21 -0
  34. package/pages/[org]/[site]/access-mgmt/administrator/index.vue +21 -0
  35. package/pages/[org]/[site]/access-mgmt/hid-readers/index.vue +21 -0
  36. package/pages/[org]/[site]/access-mgmt/hid-users/index.vue +21 -0
  37. package/pages/[org]/[site]/access-mgmt/identity-mapping/index.vue +21 -0
  38. package/types/local.d.ts +2 -1
  39. 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: "",