@live-change/access-control-frontend 0.8.84 → 0.8.86
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/front/src/invite/InviteEmail.vue +7 -5
- package/front/src/router.js +21 -19
- package/index.js +7 -0
- package/package.json +19 -19
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<strong>{{ from.name }}</strong>
|
|
11
11
|
</span>
|
|
12
12
|
<span v-else>One of our users</span>
|
|
13
|
-
invited you to use
|
|
13
|
+
invited you to use {{ brandName }}'s {{ data.objectType }} by entering your email address.
|
|
14
14
|
</p>
|
|
15
15
|
<div v-if="data.message.trim().length > 0">
|
|
16
16
|
<p>He left message for you:</p>
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
</p>
|
|
40
40
|
<p>
|
|
41
41
|
See you soon<br>
|
|
42
|
-
|
|
42
|
+
{{ brandName }} Team
|
|
43
43
|
</p>
|
|
44
44
|
<img src="/images/logo128.png">
|
|
45
45
|
</div>
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
Let us know in case it's not for you.
|
|
56
56
|
|
|
57
57
|
See you soon
|
|
58
|
-
|
|
58
|
+
{{ brandName }} Team
|
|
59
59
|
</pre>
|
|
60
60
|
</template>
|
|
61
61
|
|
|
@@ -78,15 +78,17 @@
|
|
|
78
78
|
const data = JSON.parse(json)
|
|
79
79
|
|
|
80
80
|
const secrets = data.secrets
|
|
81
|
-
const secretLink = secrets.find(secret => secret.type
|
|
81
|
+
const secretLink = secrets.find(secret => secret.type === 'link')
|
|
82
82
|
|
|
83
83
|
const [ from ] = await Promise.all([
|
|
84
84
|
live(path().userIdentification.sessionOrUserOwnedIdentification(
|
|
85
85
|
{ sessionOrUserType: data.fromType, sessionOrUser: data.from }))
|
|
86
86
|
])
|
|
87
87
|
|
|
88
|
+
const brandName = ENV_BRAND_NAME
|
|
89
|
+
|
|
88
90
|
const metadata = {
|
|
89
|
-
from:
|
|
91
|
+
from: `${ENV_BRAND_NAME} <admin@${ENV_BRAND_DOMAIN}>`,
|
|
90
92
|
subject: `${from?.name ?? 'Our user'} invited you to ${data.objectType}`,
|
|
91
93
|
to: contact
|
|
92
94
|
}
|
package/front/src/router.js
CHANGED
|
@@ -11,11 +11,8 @@ import { userRoutes, installUserRedirects } from "@live-change/user-frontend"
|
|
|
11
11
|
import { dbAdminRoutes } from "@live-change/db-admin"
|
|
12
12
|
|
|
13
13
|
export function routes(config = {}) {
|
|
14
|
-
console.log("DB ROUTES", dbAdminRoutes({ prefix: '/_db' }))
|
|
15
14
|
const { prefix = '/', route = (r) => r } = config
|
|
16
15
|
return [
|
|
17
|
-
...userRoutes({ ...config, prefix: prefix + 'user/' }),
|
|
18
|
-
|
|
19
16
|
...configurationRoutes(config),
|
|
20
17
|
...inviteRoutes(config),
|
|
21
18
|
|
|
@@ -28,21 +25,6 @@ export function routes(config = {}) {
|
|
|
28
25
|
}
|
|
29
26
|
}),
|
|
30
27
|
|
|
31
|
-
route({
|
|
32
|
-
name: 'accessControl:testPage', path: prefix + '', meta: { },
|
|
33
|
-
component: () => import("./TestPage.vue"),
|
|
34
|
-
props: {
|
|
35
|
-
objectType: 'example_Example',
|
|
36
|
-
object: 'one'
|
|
37
|
-
}
|
|
38
|
-
}),
|
|
39
|
-
|
|
40
|
-
route({
|
|
41
|
-
name: 'accessControl:invitationAccepted', path: prefix + '', meta: { },
|
|
42
|
-
redirect: { name: 'accessControl:testPage' }
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
...dbAdminRoutes({ prefix: '/_db', route: r => ({ ...r, meta: { ...r.meta, raw: true }}) })
|
|
46
28
|
]
|
|
47
29
|
}
|
|
48
30
|
|
|
@@ -61,7 +43,27 @@ export function createRouter(app, config) {
|
|
|
61
43
|
// use appropriate history implementation for server/client
|
|
62
44
|
// import.meta.env.SSR is injected by Vite.
|
|
63
45
|
history: import.meta.env.SSR ? createMemoryHistory() : createWebHistory(),
|
|
64
|
-
routes:
|
|
46
|
+
routes: [
|
|
47
|
+
...userRoutes({ ...config, prefix: prefix + 'user/' }),
|
|
48
|
+
|
|
49
|
+
...routes(config),
|
|
50
|
+
|
|
51
|
+
{
|
|
52
|
+
name: 'accessControl:testPage', path: '/', meta: { },
|
|
53
|
+
component: () => import("./TestPage.vue"),
|
|
54
|
+
props: {
|
|
55
|
+
objectType: 'example_Example',
|
|
56
|
+
object: 'one'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
{
|
|
61
|
+
name: 'accessControl:invitationAccepted', path: '/accepted', meta: { },
|
|
62
|
+
redirect: { name: 'accessControl:testPage' }
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
...dbAdminRoutes({ prefix: '/_db', route: r => ({ ...r, meta: { ...r.meta, raw: true }}) })
|
|
66
|
+
]
|
|
65
67
|
})
|
|
66
68
|
installUserRedirects(router, app, config)
|
|
67
69
|
return router
|
package/index.js
CHANGED
|
@@ -10,6 +10,13 @@ import AccessRequests from "./front/src/configuration/AccessRequests.vue"
|
|
|
10
10
|
import PublicAccess from "./front/src/configuration/PublicAccess.vue"
|
|
11
11
|
export { AccessControl, AccessInvitations, AccessList, AccessRequests, PublicAccess }
|
|
12
12
|
|
|
13
|
+
import { routes as accessControlRoutes } from "./front/src/router.js"
|
|
14
|
+
export { accessControlRoutes }
|
|
15
|
+
|
|
16
|
+
import inviteRoutes from "./front/src/invite/routes.js"
|
|
17
|
+
import configurationRoutes from "./front/src/configuration/routes.js"
|
|
18
|
+
export { inviteRoutes, configurationRoutes }
|
|
19
|
+
|
|
13
20
|
import "./front/src/notifications/index.js"
|
|
14
21
|
|
|
15
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/access-control-frontend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.86",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
},
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/access-control-service": "^0.8.
|
|
25
|
-
"@live-change/cli": "^0.8.
|
|
26
|
-
"@live-change/dao": "^0.8.
|
|
27
|
-
"@live-change/dao-vue3": "^0.8.
|
|
28
|
-
"@live-change/dao-websocket": "^0.8.
|
|
29
|
-
"@live-change/db-admin": "^0.8.
|
|
30
|
-
"@live-change/framework": "^0.8.
|
|
31
|
-
"@live-change/frontend-base": "^0.8.
|
|
32
|
-
"@live-change/password-authentication-service": "^0.8.
|
|
33
|
-
"@live-change/secret-code-service": "^0.8.
|
|
34
|
-
"@live-change/secret-link-service": "^0.8.
|
|
35
|
-
"@live-change/session-service": "^0.8.
|
|
36
|
-
"@live-change/user-frontend": "^0.8.
|
|
37
|
-
"@live-change/user-service": "^0.8.
|
|
38
|
-
"@live-change/vue3-components": "^0.8.
|
|
39
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
24
|
+
"@live-change/access-control-service": "^0.8.86",
|
|
25
|
+
"@live-change/cli": "^0.8.86",
|
|
26
|
+
"@live-change/dao": "^0.8.86",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.86",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.86",
|
|
29
|
+
"@live-change/db-admin": "^0.8.86",
|
|
30
|
+
"@live-change/framework": "^0.8.86",
|
|
31
|
+
"@live-change/frontend-base": "^0.8.86",
|
|
32
|
+
"@live-change/password-authentication-service": "^0.8.86",
|
|
33
|
+
"@live-change/secret-code-service": "^0.8.86",
|
|
34
|
+
"@live-change/secret-link-service": "^0.8.86",
|
|
35
|
+
"@live-change/session-service": "^0.8.86",
|
|
36
|
+
"@live-change/user-frontend": "^0.8.86",
|
|
37
|
+
"@live-change/user-service": "^0.8.86",
|
|
38
|
+
"@live-change/vue3-components": "^0.8.86",
|
|
39
|
+
"@live-change/vue3-ssr": "^0.8.86",
|
|
40
40
|
"@vueuse/core": "^10.11.0",
|
|
41
41
|
"codeceptjs-assert": "^0.0.5",
|
|
42
42
|
"compression": "^1.7.4",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vue3-scroll-border": "0.1.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@live-change/codeceptjs-helper": "^0.8.
|
|
56
|
+
"@live-change/codeceptjs-helper": "^0.8.86",
|
|
57
57
|
"codeceptjs": "^3.6.5",
|
|
58
58
|
"generate-password": "1.7.1",
|
|
59
59
|
"playwright": "^1.41.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
65
65
|
"license": "BSD-3-Clause",
|
|
66
66
|
"description": "",
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "3db6ec0c618b4e17974a525ef184fa6fae9b8ee0"
|
|
68
68
|
}
|