@live-change/user-frontend 0.8.10 → 0.8.12
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/.nx/cache/file-map.json +433 -0
- package/.nx/cache/nx_files.nxt +0 -0
- package/.nx/cache/project-graph.json +6 -0
- package/build-stats/ssr-srcentryserverjs-outDir-distserver.html +4842 -0
- package/build-stats/ssrManifest-outDir-distclient.html +4842 -0
- package/front/components.d.ts +13 -0
- package/front/src/App.vue +2 -0
- package/front/src/NavBar.vue +39 -99
- package/front/src/connected/{Connect.vue → ConnectEmail.vue} +8 -4
- package/front/src/connected/ConnectPhone.vue +62 -0
- package/front/src/connected/Connected.vue +5 -4
- package/front/src/connected/routes.js +7 -2
- package/front/src/entry-server.js +4 -3
- package/front/src/identification/IdentificationSettings.vue +6 -5
- package/front/src/nav/UserIcon.vue +18 -27
- package/front/src/notifications/NotificationsIcon.vue +9 -18
- package/front/src/notifications/NotificationsList.vue +2 -6
- package/front/src/notifications/UnknownNotification.vue +6 -2
- package/front/src/router.js +2 -3
- package/front/vite.config.js.timestamp-1711533638521-1cea1a18c0069.mjs +12 -0
- package/index.js +2 -1
- package/package.json +30 -30
- package/server/{services.config.js → app.config.js} +14 -3
- package/server/security.config.js +2 -2
- package/server/services.list.js +38 -0
- package/server/start.js +37 -0
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/user-frontend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.12",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
|
-
"localDevInit": "rm tmp.db;
|
|
7
|
-
"localDev": "node server/start.js localDev --enableSessions",
|
|
8
|
-
"dev": "node server/start.js dev --enableSessions",
|
|
5
|
+
"memDev": "node --inspect --expose-gc server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
|
+
"localDevInit": "rm tmp.db; node server/start.js localDev --enableSessions --initScript ./init.js",
|
|
7
|
+
"localDev": "node --inspect --expose-gc server/start.js localDev --enableSessions",
|
|
8
|
+
"dev": "node --inspect --expose-gc server/start.js dev --enableSessions",
|
|
9
9
|
"ssrDev": "node server/start.js ssrDev --enableSessions",
|
|
10
10
|
"serveAllMem": "cross-env NODE_ENV=production lcli ssrServer --withApi --withServices --updateServices --enableSessions --withDb --dbBackend mem --createDb",
|
|
11
11
|
"serveAll": "cross-env NODE_ENV=production lcli ssrServer --withApi --withServices --updateServices --enableSessions",
|
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
},
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/cli": "^0.8.
|
|
25
|
-
"@live-change/dao": "^0.8.
|
|
26
|
-
"@live-change/dao-vue3": "^0.8.
|
|
27
|
-
"@live-change/dao-websocket": "^0.8.
|
|
28
|
-
"@live-change/email-service": "^0.8.
|
|
29
|
-
"@live-change/framework": "^0.8.
|
|
30
|
-
"@live-change/identicon-service": "^0.8.
|
|
31
|
-
"@live-change/image-frontend": "^0.8.
|
|
32
|
-
"@live-change/message-authentication-service": "^0.8.
|
|
33
|
-
"@live-change/notification-service": "^0.8.
|
|
34
|
-
"@live-change/password-authentication-service": "^0.8.
|
|
35
|
-
"@live-change/pattern": "^0.8.
|
|
36
|
-
"@live-change/secret-code-service": "^0.8.
|
|
37
|
-
"@live-change/secret-link-service": "^0.8.
|
|
38
|
-
"@live-change/security-frontend": "^0.8.
|
|
39
|
-
"@live-change/security-service": "^0.8.
|
|
40
|
-
"@live-change/session-service": "^0.8.
|
|
41
|
-
"@live-change/timer-service": "^0.8.
|
|
42
|
-
"@live-change/upload-service": "^0.8.
|
|
43
|
-
"@live-change/user-identification-service": "^0.8.
|
|
44
|
-
"@live-change/user-service": "^0.8.
|
|
45
|
-
"@live-change/vue3-components": "^0.8.
|
|
46
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
24
|
+
"@live-change/cli": "^0.8.12",
|
|
25
|
+
"@live-change/dao": "^0.8.12",
|
|
26
|
+
"@live-change/dao-vue3": "^0.8.12",
|
|
27
|
+
"@live-change/dao-websocket": "^0.8.12",
|
|
28
|
+
"@live-change/email-service": "^0.8.12",
|
|
29
|
+
"@live-change/framework": "^0.8.12",
|
|
30
|
+
"@live-change/identicon-service": "^0.8.12",
|
|
31
|
+
"@live-change/image-frontend": "^0.8.12",
|
|
32
|
+
"@live-change/message-authentication-service": "^0.8.12",
|
|
33
|
+
"@live-change/notification-service": "^0.8.12",
|
|
34
|
+
"@live-change/password-authentication-service": "^0.8.12",
|
|
35
|
+
"@live-change/pattern": "^0.8.12",
|
|
36
|
+
"@live-change/secret-code-service": "^0.8.12",
|
|
37
|
+
"@live-change/secret-link-service": "^0.8.12",
|
|
38
|
+
"@live-change/security-frontend": "^0.8.12",
|
|
39
|
+
"@live-change/security-service": "^0.8.12",
|
|
40
|
+
"@live-change/session-service": "^0.8.12",
|
|
41
|
+
"@live-change/timer-service": "^0.8.12",
|
|
42
|
+
"@live-change/upload-service": "^0.8.12",
|
|
43
|
+
"@live-change/user-identification-service": "^0.8.12",
|
|
44
|
+
"@live-change/user-service": "^0.8.12",
|
|
45
|
+
"@live-change/vue3-components": "^0.8.12",
|
|
46
|
+
"@live-change/vue3-ssr": "^0.8.12",
|
|
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.
|
|
67
|
+
"@live-change/codeceptjs-helper": "^0.8.12",
|
|
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": "
|
|
78
|
+
"gitHead": "5c93162184742550bf6a5e7b37a5537c69f8a3c4"
|
|
79
79
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import App from "@live-change/framework"
|
|
2
|
+
const app = App.app()
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
const contactTypes = ['email', 'phone']
|
|
5
|
+
|
|
6
|
+
import securityConfig from './security.config.js'
|
|
7
|
+
|
|
8
|
+
app.config = {
|
|
4
9
|
services: [
|
|
5
10
|
{
|
|
6
11
|
name: 'timer',
|
|
@@ -19,6 +24,10 @@ module.exports = {
|
|
|
19
24
|
name: 'email',
|
|
20
25
|
path: '@live-change/email-service'
|
|
21
26
|
},
|
|
27
|
+
{
|
|
28
|
+
name: 'smsapi',
|
|
29
|
+
path: '@live-change/email-service'
|
|
30
|
+
},
|
|
22
31
|
{
|
|
23
32
|
name: 'secretLink',
|
|
24
33
|
path: '@live-change/secret-link-service'
|
|
@@ -44,7 +53,7 @@ module.exports = {
|
|
|
44
53
|
{
|
|
45
54
|
name: 'security',
|
|
46
55
|
path: '@live-change/security-service',
|
|
47
|
-
...
|
|
56
|
+
...securityConfig
|
|
48
57
|
},
|
|
49
58
|
{
|
|
50
59
|
name: 'userIdentification',
|
|
@@ -76,3 +85,5 @@ module.exports = {
|
|
|
76
85
|
// { path: '@live-change/google-account-service' },
|
|
77
86
|
]
|
|
78
87
|
}
|
|
88
|
+
|
|
89
|
+
export default app.config
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import lcp from "@live-change/pattern"
|
|
2
2
|
|
|
3
3
|
const clientKeys = (client) => [
|
|
4
4
|
{ key: 'user', value: client.user },
|
|
@@ -46,7 +46,7 @@ const counters = [
|
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
export default {
|
|
50
50
|
clientKeys,
|
|
51
51
|
patterns,
|
|
52
52
|
counters
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import session from '@live-change/session-service'
|
|
2
|
+
import user from '@live-change/user-service'
|
|
3
|
+
import email from '@live-change/email-service'
|
|
4
|
+
import smsapi from '@live-change/smsapi-service'
|
|
5
|
+
import passwordAuthentication from '@live-change/password-authentication-service'
|
|
6
|
+
import userIdentification from '@live-change/user-identification-service'
|
|
7
|
+
import identicon from '@live-change/identicon-service'
|
|
8
|
+
import localeSettings from '@live-change/locale-settings-service'
|
|
9
|
+
import security from '@live-change/security-service'
|
|
10
|
+
import notification from '@live-change/notification-service'
|
|
11
|
+
import upload from '@live-change/upload-service'
|
|
12
|
+
import image from '@live-change/image-service'
|
|
13
|
+
import secretCode from '@live-change/secret-code-service'
|
|
14
|
+
import secretLink from '@live-change/secret-link-service'
|
|
15
|
+
import messageAuthentication from '@live-change/message-authentication-service'
|
|
16
|
+
|
|
17
|
+
import backup from '@live-change/backup-service'
|
|
18
|
+
import init from './init.js'
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
session,
|
|
22
|
+
user,
|
|
23
|
+
email,
|
|
24
|
+
smsapi,
|
|
25
|
+
passwordAuthentication,
|
|
26
|
+
userIdentification,
|
|
27
|
+
identicon,
|
|
28
|
+
security,
|
|
29
|
+
notification,
|
|
30
|
+
upload,
|
|
31
|
+
image,
|
|
32
|
+
secretCode,
|
|
33
|
+
secretLink,
|
|
34
|
+
messageAuthentication,
|
|
35
|
+
localeSettings,
|
|
36
|
+
backup,
|
|
37
|
+
init
|
|
38
|
+
}
|
package/server/start.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import appConfig from './app.config.js'
|
|
2
|
+
|
|
3
|
+
import * as services from './services.list.js'
|
|
4
|
+
for(const serviceConfig of appConfig.services) {
|
|
5
|
+
serviceConfig.module = services[serviceConfig.name]
|
|
6
|
+
}
|
|
7
|
+
appConfig.init = services['init']
|
|
8
|
+
|
|
9
|
+
import { starter } from '@live-change/cli'
|
|
10
|
+
|
|
11
|
+
starter(appConfig)
|
|
12
|
+
|
|
13
|
+
//*
|
|
14
|
+
import os from 'os'
|
|
15
|
+
const formatMemoryUsage = (data) => `${Math.round(data / 1024 / 1024 * 100) / 100} MB`;
|
|
16
|
+
const formatUptime = (data) => // dd:hh:mm:ss
|
|
17
|
+
`${Math.floor(data / 86400)}:`
|
|
18
|
+
+`${Math.floor(data % 86400 / 3600)}:${Math.floor(data % 3600 / 60)}:${Math.floor(data % 60)}`
|
|
19
|
+
setInterval(() => {
|
|
20
|
+
const memoryData = process.memoryUsage()
|
|
21
|
+
if(typeof gc != 'undefined') {
|
|
22
|
+
console.log("Running GC!")
|
|
23
|
+
gc()
|
|
24
|
+
}
|
|
25
|
+
console.log(`Memory usage:`)
|
|
26
|
+
console.log(` rss: ${formatMemoryUsage(memoryData.rss)}`)
|
|
27
|
+
console.log(` heapTotal: ${formatMemoryUsage(memoryData.heapTotal)}`)
|
|
28
|
+
console.log(` heapUsed: ${formatMemoryUsage(memoryData.heapUsed)}`)
|
|
29
|
+
console.log(` external: ${formatMemoryUsage(memoryData.external)}`)
|
|
30
|
+
console.log(` arrayBuffers: ${formatMemoryUsage(memoryData.arrayBuffers)}`)
|
|
31
|
+
console.log(` os total: ${formatMemoryUsage(os.totalmem())}`)
|
|
32
|
+
console.log(` os free: ${formatMemoryUsage(os.freemem())}`)
|
|
33
|
+
console.log(` os uptime: ${formatUptime(os.uptime())}`)
|
|
34
|
+
console.log(`---------------------------------`)
|
|
35
|
+
}, 5000)
|
|
36
|
+
//*/
|
|
37
|
+
|