@cocreate/users 1.29.0 → 1.30.0
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/docs/index.html +10 -12
- package/package.json +7 -7
- package/src/client.js +5 -3
- package/src/server.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# [1.30.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.29.0...v1.30.0) (2023-11-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update nav, edit button and css path ([b3c3b92](https://github.com/CoCreate-app/CoCreate-users/commit/b3c3b9297c8d659ed8faa3b66ece41e57eccd671))
|
|
7
|
+
* userStatus across various clientid ([74bdc4e](https://github.com/CoCreate-app/CoCreate-users/commit/74bdc4ebae5d974012cec98d3ba20a7b18911e78))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* upgrade dependencies for latest features and fixes ([3d7328b](https://github.com/CoCreate-app/CoCreate-users/commit/3d7328ba0620445279ae0565b1d69c531dbb7c7a))
|
|
13
|
+
|
|
1
14
|
# [1.29.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.28.6...v1.29.0) (2023-11-19)
|
|
2
15
|
|
|
3
16
|
|
package/docs/index.html
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
type="text/css" />
|
|
29
29
|
<link
|
|
30
30
|
rel="stylesheet"
|
|
31
|
-
href="
|
|
31
|
+
href="../index.css"
|
|
32
32
|
array="files"
|
|
33
33
|
object="60888216117c640e7596303f"
|
|
34
34
|
key="src"
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
</head>
|
|
39
39
|
|
|
40
40
|
<body>
|
|
41
|
+
<!-- Navbar -->
|
|
41
42
|
<nav
|
|
42
|
-
class="
|
|
43
|
+
class="width:100% display:flex align-items:center background:transparent padding-top:10px padding-bottom:10px"
|
|
43
44
|
content_id="content"
|
|
44
|
-
scroll="sticky-nav,
|
|
45
|
-
scroll-up="
|
|
46
|
-
scroll-down="
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
key="src"></nav>
|
|
45
|
+
scroll="sticky-nav,"
|
|
46
|
+
scroll-up="5"
|
|
47
|
+
scroll-down="5"
|
|
48
|
+
path="../"
|
|
49
|
+
src="../components/navbar.html"></nav>
|
|
50
50
|
<sidenav
|
|
51
51
|
id="menuL"
|
|
52
52
|
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
@@ -358,10 +358,8 @@
|
|
|
358
358
|
<button
|
|
359
359
|
href="https://github.com/CoCreate-app/CoCreate-users/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
|
|
360
360
|
target="_blank"
|
|
361
|
-
class="position:fixed bottom:15px right:15px
|
|
362
|
-
<i
|
|
363
|
-
class="height:20px fill:#505050"
|
|
364
|
-
src="/assets/svg/pencil-alt.svg"></i>
|
|
361
|
+
class="display:flex justify-content:center align-items:center position:fixed bottom:15px right:15px height:50px width:50px border-radius:50% box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
362
|
+
<i class="height:20px" src="../assets/svg/pencil-alt.svg"></i>
|
|
365
363
|
</button>
|
|
366
364
|
</main>
|
|
367
365
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/users",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"description": "A simple users component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"users",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"webpack-log": "^3.0.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocreate/actions": "^1.
|
|
62
|
-
"@cocreate/crud-client": "^1.
|
|
63
|
-
"@cocreate/element-prototype": "^1.
|
|
64
|
-
"@cocreate/elements": "^1.
|
|
65
|
-
"@cocreate/local-storage": "^1.
|
|
66
|
-
"@cocreate/render": "^1.
|
|
61
|
+
"@cocreate/actions": "^1.13.0",
|
|
62
|
+
"@cocreate/crud-client": "^1.30.0",
|
|
63
|
+
"@cocreate/element-prototype": "^1.14.1",
|
|
64
|
+
"@cocreate/elements": "^1.27.1",
|
|
65
|
+
"@cocreate/local-storage": "^1.11.1",
|
|
66
|
+
"@cocreate/render": "^1.34.0"
|
|
67
67
|
}
|
|
68
68
|
}
|
package/src/client.js
CHANGED
|
@@ -175,10 +175,12 @@ const CoCreateUser = {
|
|
|
175
175
|
},
|
|
176
176
|
|
|
177
177
|
redirect: (data) => {
|
|
178
|
-
if (data.user_id
|
|
179
|
-
return
|
|
180
|
-
if (!data.user_id && data.clientId !== Crud.socket.clientId)
|
|
178
|
+
if (data.user_id !== Crud.socket.user_id || data.clientId !== Crud.socket.clientId)
|
|
181
179
|
return
|
|
180
|
+
// if (data.user_id && data.user_id !== Crud.socket.user_id)
|
|
181
|
+
// return
|
|
182
|
+
// if (!data.user_id && data.clientId !== Crud.socket.clientId)
|
|
183
|
+
// return
|
|
182
184
|
if (data.userStatus == 'on' || data.userStatus == 'idle') {
|
|
183
185
|
let redirectTag = document.querySelector('[session="true"]');
|
|
184
186
|
|
package/src/server.js
CHANGED
|
@@ -113,6 +113,7 @@ class CoCreateUser {
|
|
|
113
113
|
socket: data.socket,
|
|
114
114
|
method: 'updateUserStatus',
|
|
115
115
|
user_id: data.user_id,
|
|
116
|
+
clientId: data.clientId,
|
|
116
117
|
userStatus: data.userStatus,
|
|
117
118
|
token: data.token,
|
|
118
119
|
organization_id: data.organization_id || socket.organization_id
|
|
@@ -122,6 +123,7 @@ class CoCreateUser {
|
|
|
122
123
|
method: 'updateUserStatus',
|
|
123
124
|
user_id: data.user_id,
|
|
124
125
|
userStatus: data.userStatus,
|
|
126
|
+
clientId: data.clientId,
|
|
125
127
|
token: data.token,
|
|
126
128
|
organization_id: data.organization_id || socket.organization_id
|
|
127
129
|
}))
|