@live-change/user-frontend 0.8.13 → 0.8.14

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.
@@ -7,6 +7,7 @@ export {}
7
7
 
8
8
  declare module 'vue' {
9
9
  export interface GlobalComponents {
10
+ Button: typeof import('primevue/button')['default']
10
11
  RouterLink: typeof import('vue-router')['RouterLink']
11
12
  RouterView: typeof import('vue-router')['RouterView']
12
13
  }
@@ -2,11 +2,23 @@
2
2
  <div class="w-full lg:w-6 md:w-9">
3
3
  <div class="surface-card border-round shadow-2 p-4">
4
4
  <div class="text-900 font-medium mb-3 text-xl">Test Index</div>
5
+ <div>
6
+ <Button @click="testNotification" label="Add test notification" />
7
+ </div>
5
8
  </div>
6
9
  </div>
7
10
  </template>
8
11
 
9
12
  <script setup>
13
+
14
+ import { useApi } from '@live-change/vue3-ssr'
15
+
16
+ const api = useApi()
17
+
18
+ function testNotification() {
19
+ api.actions.notification.testNotification({ })
20
+ }
21
+
10
22
  </script>
11
23
 
12
24
  <style scoped>
@@ -52,13 +52,15 @@
52
52
 
53
53
  <script setup>
54
54
 
55
- import { NotificationsIcon } from "@live-change/user-frontend"
55
+ import NotificationsIcon from './notifications/NotificationsIcon.vue'
56
+ import NotificationsList from './notifications/NotificationsList.vue'
56
57
 
57
58
  import { UserIcon } from "@live-change/user-frontend"
58
59
 
59
60
  import { useApi } from "@live-change/vue3-ssr"
60
61
  import { computed } from "vue"
61
62
 
63
+
62
64
  const api = useApi()
63
65
 
64
66
  const isMember = computed(() => api.client.value.roles.includes('member'))
@@ -12,7 +12,7 @@
12
12
  class="align-items-center flex-grow-1 justify-content-between hidden absolute w-full md:w-auto surface-overlay
13
13
  right-0 top-100 z-1 shadow-2 overflow-x-hidden overflow-y-auto"
14
14
  style="max-height: calc(100vh - 8rem)">
15
- <loading-zone suspense v-if="isMounted">
15
+ <loading-zone suspense va-if="isMounted">
16
16
  <template v-slot:loading>
17
17
  <div class="flex align-items-center justify-content-center top-0 left-0 notifications-loading">
18
18
  <ProgressSpinner animationDuration=".5s"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-frontend",
3
- "version": "0.8.13",
3
+ "version": "0.8.14",
4
4
  "scripts": {
5
5
  "memDev": "node --inspect --expose-gc server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; node server/start.js localDev --enableSessions --initScript ./init.js",
@@ -21,29 +21,29 @@
21
21
  },
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@live-change/cli": "^0.8.13",
25
- "@live-change/dao": "^0.8.13",
26
- "@live-change/dao-vue3": "^0.8.13",
27
- "@live-change/dao-websocket": "^0.8.13",
28
- "@live-change/email-service": "^0.8.13",
29
- "@live-change/framework": "^0.8.13",
30
- "@live-change/identicon-service": "^0.8.13",
31
- "@live-change/image-frontend": "^0.8.13",
32
- "@live-change/message-authentication-service": "^0.8.13",
33
- "@live-change/notification-service": "^0.8.13",
34
- "@live-change/password-authentication-service": "^0.8.13",
35
- "@live-change/pattern": "^0.8.13",
36
- "@live-change/secret-code-service": "^0.8.13",
37
- "@live-change/secret-link-service": "^0.8.13",
38
- "@live-change/security-frontend": "^0.8.13",
39
- "@live-change/security-service": "^0.8.13",
40
- "@live-change/session-service": "^0.8.13",
41
- "@live-change/timer-service": "^0.8.13",
42
- "@live-change/upload-service": "^0.8.13",
43
- "@live-change/user-identification-service": "^0.8.13",
44
- "@live-change/user-service": "^0.8.13",
45
- "@live-change/vue3-components": "^0.8.13",
46
- "@live-change/vue3-ssr": "^0.8.13",
24
+ "@live-change/cli": "^0.8.14",
25
+ "@live-change/dao": "^0.8.14",
26
+ "@live-change/dao-vue3": "^0.8.14",
27
+ "@live-change/dao-websocket": "^0.8.14",
28
+ "@live-change/email-service": "^0.8.14",
29
+ "@live-change/framework": "^0.8.14",
30
+ "@live-change/identicon-service": "^0.8.14",
31
+ "@live-change/image-frontend": "^0.8.14",
32
+ "@live-change/message-authentication-service": "^0.8.14",
33
+ "@live-change/notification-service": "^0.8.14",
34
+ "@live-change/password-authentication-service": "^0.8.14",
35
+ "@live-change/pattern": "^0.8.14",
36
+ "@live-change/secret-code-service": "^0.8.14",
37
+ "@live-change/secret-link-service": "^0.8.14",
38
+ "@live-change/security-frontend": "^0.8.14",
39
+ "@live-change/security-service": "^0.8.14",
40
+ "@live-change/session-service": "^0.8.14",
41
+ "@live-change/timer-service": "^0.8.14",
42
+ "@live-change/upload-service": "^0.8.14",
43
+ "@live-change/user-identification-service": "^0.8.14",
44
+ "@live-change/user-service": "^0.8.14",
45
+ "@live-change/vue3-components": "^0.8.14",
46
+ "@live-change/vue3-ssr": "^0.8.14",
47
47
  "@vueuse/core": "^10.7.2",
48
48
  "codeceptjs-assert": "^0.0.5",
49
49
  "codeceptjs-video-helper": "0.1.3",
@@ -64,7 +64,7 @@
64
64
  "wtfnode": "^0.9.1"
65
65
  },
66
66
  "devDependencies": {
67
- "@live-change/codeceptjs-helper": "^0.8.13",
67
+ "@live-change/codeceptjs-helper": "^0.8.14",
68
68
  "codeceptjs": "^3.5.12",
69
69
  "generate-password": "1.7.1",
70
70
  "playwright": "^1.41.2",
@@ -75,5 +75,5 @@
75
75
  "author": "",
76
76
  "license": "BSD-3-Clause",
77
77
  "description": "",
78
- "gitHead": "4453aa639a9fe1a857d93d73ebd28a82c97fdd87"
78
+ "gitHead": "d81b573fb8891746ae1c67f4f68558123c9f85f7"
79
79
  }
package/server/start.js CHANGED
@@ -10,7 +10,7 @@ import { starter } from '@live-change/cli'
10
10
 
11
11
  starter(appConfig)
12
12
 
13
- /*
13
+ //*
14
14
  import os from 'os'
15
15
  const formatMemoryUsage = (data) => `${Math.round(data / 1024 / 1024 * 100) / 100} MB`;
16
16
  const formatUptime = (data) => // dd:hh:mm:ss