@cocreate/users 1.22.8 → 1.22.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.
- package/CHANGELOG.md +8 -0
- package/demo/signin.html +123 -74
- package/demo/signout.html +47 -25
- package/demo/signup.html +150 -92
- package/docs/index.html +321 -84
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.22.9](https://github.com/CoCreate-app/CoCreate-users/compare/v1.22.8...v1.22.9) (2023-06-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* format demo html ([f35ed1a](https://github.com/CoCreate-app/CoCreate-users/commit/f35ed1a39d546047f58912c39d7a51fc4d28d9ae))
|
|
7
|
+
* Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([1cd1125](https://github.com/CoCreate-app/CoCreate-users/commit/1cd1125dee02acd064f1ed500ed7a59ab5a78e8f))
|
|
8
|
+
|
|
1
9
|
## [1.22.8](https://github.com/CoCreate-app/CoCreate-users/compare/v1.22.7...v1.22.8) (2023-06-01)
|
|
2
10
|
|
|
3
11
|
|
package/demo/signin.html
CHANGED
|
@@ -1,83 +1,132 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
|
|
7
|
-
<link rel="stylesheet" href="../index.css" collection="files" document_id="637bc8fe91249e639db315d9" name="src" type="text/css"/>
|
|
8
|
-
<link rel="manifest" href="/manifest.webmanifest">
|
|
9
|
-
</head>
|
|
3
|
+
<head>
|
|
4
|
+
<title>signIn | CoCreateJS</title>
|
|
10
5
|
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
<link
|
|
7
|
+
rel="icon"
|
|
8
|
+
href="https://cdn.cocreate.app/favicon.ico"
|
|
9
|
+
type="image/ico"
|
|
10
|
+
sizes="16x16" />
|
|
11
|
+
<link
|
|
12
|
+
rel="stylesheet"
|
|
13
|
+
href="../index.css"
|
|
14
|
+
collection="files"
|
|
15
|
+
document_id="637bc8fe91249e639db315d9"
|
|
16
|
+
name="src"
|
|
17
|
+
type="text/css" />
|
|
18
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
19
|
+
</head>
|
|
13
20
|
|
|
14
|
-
|
|
21
|
+
<body
|
|
22
|
+
style="
|
|
23
|
+
background-image: url('https://cdn.cocreate.app/background.png');
|
|
24
|
+
">
|
|
25
|
+
<a href="./signout.html" session="true" hidden></a>
|
|
15
26
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<h3>Sign In</h3>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="float:right width:25% padding-top:5px font-size:70px line-height:100px text-align:right color:very-light-gray">
|
|
25
|
-
<i class="height:20px fill:#505050" src="/assets/svg/sign-in-alt.svg"></i>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="padding:25px background:gainsboro text-align:left">
|
|
29
|
-
|
|
30
|
-
<floating-label>
|
|
31
|
-
<input type="email" name='email' placeholder="Email" class="floating-label">
|
|
32
|
-
</floating-label>
|
|
33
|
-
|
|
34
|
-
<floating-label>
|
|
35
|
-
<input type="password" name='password' placeholder="Password" class="floating-label">
|
|
36
|
-
</floating-label>
|
|
37
|
-
|
|
38
|
-
<button actions="signIn" href="signout.html" class="outline">Sign In</button>
|
|
27
|
+
<a
|
|
28
|
+
href="./signup.html"
|
|
29
|
+
title=""
|
|
30
|
+
class="position:relative z-index:1 float:right margin:15px margin-left:auto color:white"
|
|
31
|
+
>Sign Up</a
|
|
32
|
+
>
|
|
39
33
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
<div class="position:fixed!important bottom:15px right:15px">
|
|
70
|
-
<div template="signIn" class="card margin:5px padding:10px {{status}}">
|
|
71
|
-
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
|
|
72
|
-
</div>
|
|
73
|
-
|
|
74
|
-
<div template="notification" class="card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
|
|
75
|
-
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
34
|
+
<div
|
|
35
|
+
class="justify-content:center align-items:center overflow:auto display:flex flex-wrap:wrap position:absolute width:100% height:100%">
|
|
36
|
+
<div
|
|
37
|
+
class="flex-grow:1 min-width:300px max-width:400px margin:15px">
|
|
38
|
+
<form realtime="false" collection="users" id="signin">
|
|
39
|
+
<div
|
|
40
|
+
class="overflow:hidden padding:0px_25px background:white">
|
|
41
|
+
<div class="float:left width:75% padding-top:25px">
|
|
42
|
+
<h3>Sign In</h3>
|
|
43
|
+
</div>
|
|
44
|
+
<div
|
|
45
|
+
class="float:right width:25% padding-top:5px font-size:70px line-height:100px text-align:right color:very-light-gray">
|
|
46
|
+
<i
|
|
47
|
+
class="height:20px fill:#505050"
|
|
48
|
+
src="/assets/svg/sign-in-alt.svg"></i>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div
|
|
52
|
+
class="padding:25px background:gainsboro text-align:left">
|
|
53
|
+
<floating-label>
|
|
54
|
+
<input
|
|
55
|
+
type="email"
|
|
56
|
+
name="email"
|
|
57
|
+
placeholder="Email"
|
|
58
|
+
class="floating-label" />
|
|
59
|
+
</floating-label>
|
|
79
60
|
|
|
80
|
-
|
|
61
|
+
<floating-label>
|
|
62
|
+
<input
|
|
63
|
+
type="password"
|
|
64
|
+
name="password"
|
|
65
|
+
placeholder="Password"
|
|
66
|
+
class="floating-label" />
|
|
67
|
+
</floating-label>
|
|
68
|
+
|
|
69
|
+
<button
|
|
70
|
+
actions="signIn"
|
|
71
|
+
href="signout.html"
|
|
72
|
+
class="outline">
|
|
73
|
+
Sign In
|
|
74
|
+
</button>
|
|
75
|
+
|
|
76
|
+
<a show="#forgotpass" hide="#signin">Forgot Password</a>
|
|
77
|
+
</div>
|
|
78
|
+
</form>
|
|
79
|
+
|
|
80
|
+
<form collection="users" hidden id="forgotpass">
|
|
81
|
+
<div
|
|
82
|
+
class="overflow:hidden padding:0px_25px background:white">
|
|
83
|
+
<div class="float:left width:75% padding-top:25px">
|
|
84
|
+
<h3>Password Recovery</h3>
|
|
85
|
+
</div>
|
|
86
|
+
<div
|
|
87
|
+
class="float:right width:25% padding-top:5px font-size:70px line-height:100px text-align:right color:very-light-gray">
|
|
88
|
+
<i
|
|
89
|
+
class="height:20px fill:#505050"
|
|
90
|
+
src="/assets/svg/key.svg"></i>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div
|
|
94
|
+
class="padding:25px background:gainsboro text-align:left">
|
|
95
|
+
<floating-label>
|
|
96
|
+
<input
|
|
97
|
+
type="email"
|
|
98
|
+
name="email"
|
|
99
|
+
id="email"
|
|
100
|
+
placeholder="Email"
|
|
101
|
+
class="floating-label" />
|
|
102
|
+
</floating-label>
|
|
103
|
+
|
|
104
|
+
<button class="outline">
|
|
105
|
+
<a>Send Email</a>
|
|
106
|
+
</button>
|
|
81
107
|
|
|
108
|
+
<a show="#signin" hide="#forgotpass">Sign In</a>
|
|
109
|
+
</div>
|
|
110
|
+
</form>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<div class="position:fixed!important bottom:15px right:15px">
|
|
115
|
+
<div
|
|
116
|
+
template="signIn"
|
|
117
|
+
class="card margin:5px padding:10px {{status}}">
|
|
118
|
+
<span class="{{type}}">{{message}}</span
|
|
119
|
+
><a actions="removeElement"> X</a>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<div
|
|
123
|
+
template="notification"
|
|
124
|
+
class="card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
|
|
125
|
+
<span class="{{type}}">{{message}}</span
|
|
126
|
+
><a actions="removeElement"> X</a>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
82
131
|
</body>
|
|
83
|
-
</html>
|
|
132
|
+
</html>
|
package/demo/signout.html
CHANGED
|
@@ -1,39 +1,61 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
|
|
7
|
-
<link rel="stylesheet" href="../index.css" collection="files" document_id="637bc8fe91249e639db315d9" name="src" type="text/css"/>
|
|
8
|
-
<link rel="manifest" href="/manifest.webmanifest">
|
|
9
|
-
</head>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Sign Out | CoCreateJS</title>
|
|
10
5
|
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
<link
|
|
7
|
+
rel="icon"
|
|
8
|
+
href="https://cdn.cocreate.app/favicon.ico"
|
|
9
|
+
type="image/ico"
|
|
10
|
+
sizes="16x16" />
|
|
11
|
+
<link
|
|
12
|
+
rel="stylesheet"
|
|
13
|
+
href="../index.css"
|
|
14
|
+
collection="files"
|
|
15
|
+
document_id="637bc8fe91249e639db315d9"
|
|
16
|
+
name="src"
|
|
17
|
+
type="text/css" />
|
|
18
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
19
|
+
</head>
|
|
13
20
|
|
|
14
|
-
|
|
15
|
-
|
|
21
|
+
<body
|
|
22
|
+
style="
|
|
23
|
+
background-image: url('https://cdn.cocreate.app/background.png');
|
|
24
|
+
">
|
|
25
|
+
<a href="./signin.html" session="false" hidden></a>
|
|
26
|
+
|
|
27
|
+
<div
|
|
28
|
+
class="justify-content:center align-items:center overflow:auto display:flex flex-wrap:wrap position:absolute width:100% height:100%">
|
|
29
|
+
<div
|
|
30
|
+
class="flex-grow:1 min-width:300px max-width:400px margin:15px">
|
|
16
31
|
<div class="overflow:hidden padding:0px_25px background:white">
|
|
17
32
|
<div class="float:left width:75% padding-top:25px">
|
|
18
33
|
<h3>You are logged in</h3>
|
|
19
34
|
</div>
|
|
20
|
-
<div
|
|
21
|
-
|
|
35
|
+
<div
|
|
36
|
+
class="float:right width:25% padding-top:5px font-size:70px line-height:100px text-align:right color:very-light-gray">
|
|
37
|
+
<i
|
|
38
|
+
class="height:20px fill:#505050"
|
|
39
|
+
src="/assets/svg/sign-in-alt.svg"></i>
|
|
22
40
|
</div>
|
|
23
41
|
</div>
|
|
24
42
|
<div class="padding:25px background:gainsboro text-align:left">
|
|
25
|
-
<button actions="signOut" href="./signin.html">
|
|
43
|
+
<button actions="signOut" href="./signin.html">
|
|
44
|
+
Sign Out
|
|
45
|
+
</button>
|
|
26
46
|
</div>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<div class="position:fixed!important bottom:15px right:15px">
|
|
31
|
-
<div template="notification" class="card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
|
|
32
|
-
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
37
49
|
|
|
50
|
+
<div class="position:fixed!important bottom:15px right:15px">
|
|
51
|
+
<div
|
|
52
|
+
template="notification"
|
|
53
|
+
class="card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
|
|
54
|
+
<span class="{{type}}">{{message}}</span
|
|
55
|
+
><a actions="removeElement"> X</a>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
38
60
|
</body>
|
|
39
|
-
</html>
|
|
61
|
+
</html>
|
package/demo/signup.html
CHANGED
|
@@ -1,103 +1,161 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
3
|
<head>
|
|
5
|
-
<meta charset="utf-8"
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge"
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
7
|
<title>Sign Up | CoCreate</title>
|
|
9
|
-
<link
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
<link
|
|
9
|
+
rel="icon"
|
|
10
|
+
type="image/png"
|
|
11
|
+
sizes="32x32"
|
|
12
|
+
href="assets/favicon.ico" />
|
|
13
|
+
<link
|
|
14
|
+
rel="stylesheet"
|
|
15
|
+
href="../index.css"
|
|
16
|
+
collection="files"
|
|
17
|
+
document_id="637bc8fe91249e639db315d9"
|
|
18
|
+
name="src"
|
|
19
|
+
type="text/css" />
|
|
20
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
21
|
+
</head>
|
|
22
|
+
|
|
14
23
|
<style>
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
.speech-bubble:after {
|
|
25
|
+
content: "";
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 50%;
|
|
29
|
+
width: 0;
|
|
30
|
+
height: 0;
|
|
31
|
+
border: 23px solid transparent;
|
|
32
|
+
border-bottom-color: #ffffff;
|
|
33
|
+
border-top: 0;
|
|
34
|
+
margin-left: -23px;
|
|
35
|
+
margin-top: -23px;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
38
|
+
|
|
39
|
+
<body
|
|
40
|
+
style="
|
|
41
|
+
background: url('https://cdn.cocreate.app/background.png') no-repeat
|
|
42
|
+
fixed;
|
|
43
|
+
-webkit-background-size: cover;
|
|
44
|
+
-moz-background-size: cover;
|
|
45
|
+
-o-background-size: cover;
|
|
46
|
+
background-size: cover;
|
|
47
|
+
">
|
|
48
|
+
<a href="./index.html" session="true" hidden></a>
|
|
49
|
+
|
|
50
|
+
<a
|
|
51
|
+
href="./signin.html"
|
|
52
|
+
title=""
|
|
53
|
+
class="position:relative z-index:1 float:right margin:15px margin-left:auto color:white"
|
|
54
|
+
>Sign In</a
|
|
55
|
+
>
|
|
17
56
|
|
|
18
|
-
|
|
19
|
-
|
|
57
|
+
<main
|
|
58
|
+
class="justify-content:center align-items:center overflow:auto display:flex flex-wrap:wrap position:absolute width:100% height:100%">
|
|
59
|
+
<div
|
|
60
|
+
class="flex-grow:1 min-width:300px max-width:400px margin:15px">
|
|
61
|
+
<form realtime="false" autocomplete="off">
|
|
62
|
+
<section>
|
|
63
|
+
<div
|
|
64
|
+
class="overflow:hidden padding:0px_25px background:white">
|
|
65
|
+
<div class="float:left width:75% padding-top:25px">
|
|
66
|
+
<h3>Sign UP</h3>
|
|
67
|
+
</div>
|
|
68
|
+
<div
|
|
69
|
+
class="float:right width:25% padding-top:5px font-size:70px line-height:100px text-align:right color:very-light-gray">
|
|
70
|
+
<i
|
|
71
|
+
class="height:70px fill:#505050"
|
|
72
|
+
src="/assets/svg/key.svg"></i>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div
|
|
76
|
+
class="padding:25px background:gainsboro text-align:left">
|
|
77
|
+
<floating-label>
|
|
78
|
+
<input
|
|
79
|
+
type="text"
|
|
80
|
+
id="name"
|
|
81
|
+
collection="users"
|
|
82
|
+
document_id=""
|
|
83
|
+
name="name"
|
|
84
|
+
placeholder="Full Name"
|
|
85
|
+
class="floating-label"
|
|
86
|
+
autocomplete="off"
|
|
87
|
+
required />
|
|
88
|
+
</floating-label>
|
|
89
|
+
<floating-label>
|
|
90
|
+
<input
|
|
91
|
+
type="email"
|
|
92
|
+
id="email"
|
|
93
|
+
collection="users"
|
|
94
|
+
unique
|
|
95
|
+
document_id=""
|
|
96
|
+
name="email"
|
|
97
|
+
placeholder="Email"
|
|
98
|
+
class="floating-label"
|
|
99
|
+
required />
|
|
100
|
+
</floating-label>
|
|
101
|
+
<small id="errorUemail" class="text-danger"></small>
|
|
20
102
|
|
|
21
|
-
|
|
103
|
+
<floating-label>
|
|
104
|
+
<input
|
|
105
|
+
type="password"
|
|
106
|
+
id="password"
|
|
107
|
+
collection="users"
|
|
108
|
+
document_id=""
|
|
109
|
+
name="password"
|
|
110
|
+
placeholder="Password"
|
|
111
|
+
class="floating-label" />
|
|
112
|
+
</floating-label>
|
|
113
|
+
<small
|
|
114
|
+
id="errorUpassword"
|
|
115
|
+
class="text-danger"></small>
|
|
22
116
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
117
|
+
<floating-label>
|
|
118
|
+
<input
|
|
119
|
+
type="password"
|
|
120
|
+
matches="#password"
|
|
121
|
+
placeholder="Confirm Password"
|
|
122
|
+
class="floating-label" />
|
|
123
|
+
</floating-label>
|
|
124
|
+
<small
|
|
125
|
+
id="errorUconfirmpassword"
|
|
126
|
+
class="text-danger"></small>
|
|
27
127
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</floating-label>
|
|
58
|
-
<small id="errorUemail" class="text-danger"></small>
|
|
59
|
-
|
|
60
|
-
<floating-label>
|
|
61
|
-
<input type="password" id="password"
|
|
62
|
-
collection="users"
|
|
63
|
-
document_id=""
|
|
64
|
-
name="password"
|
|
65
|
-
placeholder="Password"
|
|
66
|
-
class="floating-label">
|
|
67
|
-
</floating-label>
|
|
68
|
-
<small id="errorUpassword" class="text-danger"></small>
|
|
69
|
-
|
|
70
|
-
<floating-label>
|
|
71
|
-
<input type="password"
|
|
72
|
-
matches="#password"
|
|
73
|
-
placeholder="Confirm Password"
|
|
74
|
-
class="floating-label">
|
|
75
|
-
</floating-label>
|
|
76
|
-
<small id="errorUconfirmpassword" class="text-danger"></small>
|
|
77
|
-
|
|
78
|
-
<div class="display:flex">
|
|
79
|
-
<button type="button" class="outline red-white" actions="validate, signUp, signIn" href="signout.html">
|
|
80
|
-
Sign Up
|
|
81
|
-
</button>
|
|
82
|
-
</div>
|
|
83
|
-
|
|
84
|
-
</div>
|
|
85
|
-
</section>
|
|
86
|
-
</form>
|
|
87
|
-
</div>
|
|
88
|
-
</main>
|
|
89
|
-
|
|
90
|
-
<div class="position:fixed!important bottom:15px right:15px">
|
|
91
|
-
<div template="validate" class="card margin:5px padding:10px {{status}}">
|
|
92
|
-
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
|
|
93
|
-
</div>
|
|
94
|
-
|
|
95
|
-
<div template="notification" class="card margin:5px padding:10px {{status}}">
|
|
96
|
-
<span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
|
|
97
|
-
</div>
|
|
128
|
+
<div class="display:flex">
|
|
129
|
+
<button
|
|
130
|
+
type="button"
|
|
131
|
+
class="outline red-white"
|
|
132
|
+
actions="validate, signUp, signIn"
|
|
133
|
+
href="signout.html">
|
|
134
|
+
Sign Up
|
|
135
|
+
</button>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</section>
|
|
139
|
+
</form>
|
|
140
|
+
</div>
|
|
141
|
+
</main>
|
|
142
|
+
|
|
143
|
+
<div class="position:fixed!important bottom:15px right:15px">
|
|
144
|
+
<div
|
|
145
|
+
template="validate"
|
|
146
|
+
class="card margin:5px padding:10px {{status}}">
|
|
147
|
+
<span class="{{type}}">{{message}}</span
|
|
148
|
+
><a actions="removeElement"> X</a>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
<div
|
|
152
|
+
template="notification"
|
|
153
|
+
class="card margin:5px padding:10px {{status}}">
|
|
154
|
+
<span class="{{type}}">{{message}}</span
|
|
155
|
+
><a actions="removeElement"> X</a>
|
|
156
|
+
</div>
|
|
98
157
|
</div>
|
|
99
|
-
|
|
100
|
-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
101
158
|
|
|
102
|
-
|
|
103
|
-
</
|
|
159
|
+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
160
|
+
</body>
|
|
161
|
+
</html>
|
package/docs/index.html
CHANGED
|
@@ -1,134 +1,371 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<meta charset="utf-8"
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge"
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"
|
|
7
|
-
<title>CoCreate-users Documentation | CoCreateJS
|
|
8
|
-
<link
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<title>CoCreate-users Documentation | CoCreateJS</title>
|
|
8
|
+
<link
|
|
9
|
+
rel="icon"
|
|
10
|
+
type="image/png"
|
|
11
|
+
sizes="32x32"
|
|
12
|
+
href="https://cocreate.app/images/favicon.ico" />
|
|
13
|
+
<meta
|
|
14
|
+
name="description"
|
|
15
|
+
content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
|
|
16
|
+
<meta
|
|
17
|
+
name="keywords"
|
|
18
|
+
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
11
19
|
<meta name="robots" content="index,follow" />
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
<meta
|
|
21
|
+
property="og:image"
|
|
22
|
+
content="https://cdn.cocreate.app/docs/users.png" />
|
|
23
|
+
|
|
14
24
|
<!-- CoCreate CSS -->
|
|
15
|
-
<link
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
<link
|
|
26
|
+
rel="stylesheet"
|
|
27
|
+
href="https://cdn.cocreate.app/latest/CoCreate.min.css"
|
|
28
|
+
type="text/css" />
|
|
29
|
+
<link
|
|
30
|
+
rel="stylesheet"
|
|
31
|
+
href="/docs/index.css"
|
|
32
|
+
collection="files"
|
|
33
|
+
document_id="60888216117c640e7596303f"
|
|
34
|
+
name="src"
|
|
35
|
+
type="text/css"
|
|
36
|
+
save="true" />
|
|
37
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
38
|
+
</head>
|
|
19
39
|
|
|
20
40
|
<body>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
41
|
+
<nav
|
|
42
|
+
class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
|
|
43
|
+
content_id="content"
|
|
44
|
+
scroll="sticky-nav,hide-nav"
|
|
45
|
+
scroll-up="10"
|
|
46
|
+
scroll-down="10"
|
|
47
|
+
collection="files"
|
|
48
|
+
document_id="60395ef42b3ac232657040fd"
|
|
49
|
+
name="src"></nav>
|
|
50
|
+
<sidenav
|
|
51
|
+
id="menuL"
|
|
52
|
+
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
53
|
+
resizable
|
|
54
|
+
resize-target="[content_id='content']"
|
|
55
|
+
resize-property="margin-left"
|
|
56
|
+
resize-value="width">
|
|
57
|
+
<menu
|
|
58
|
+
collection="files"
|
|
59
|
+
document_id="603717b07de7fb350ae9fec8"
|
|
60
|
+
name="src"></menu>
|
|
61
|
+
<div resize="right"></div>
|
|
62
|
+
</sidenav>
|
|
63
|
+
<main
|
|
64
|
+
class="padding-top:15px padding:15px@lg@xl"
|
|
65
|
+
content_id="content"
|
|
66
|
+
id="cocreate-users">
|
|
67
|
+
<div
|
|
68
|
+
class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
|
|
29
69
|
<div class="display:flex align-items:center">
|
|
30
70
|
<h2>CoCreate-users</h2>
|
|
31
71
|
</div>
|
|
32
|
-
<div
|
|
33
|
-
|
|
72
|
+
<div
|
|
73
|
+
class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
|
|
74
|
+
<div
|
|
75
|
+
class="display:flex align-items:center transition:0.3s padding-left:10px"
|
|
76
|
+
share-network="true"
|
|
77
|
+
share-text="Enter decription here"
|
|
78
|
+
share-title="testing im a title"
|
|
79
|
+
share-height="600"
|
|
80
|
+
share-width="700"
|
|
81
|
+
share-media="https://cdn.cocreate.app/docs/users.png"
|
|
82
|
+
hover="display:block!important"
|
|
83
|
+
hover-target=".social-networks">
|
|
34
84
|
<div class="display:none social-networks">
|
|
35
|
-
<a
|
|
36
|
-
|
|
37
|
-
|
|
85
|
+
<a
|
|
86
|
+
class="margin-right:15px"
|
|
87
|
+
share-network="twitter"
|
|
88
|
+
title="Share on twitter"
|
|
89
|
+
><i
|
|
90
|
+
class="height:20px fill:#505050"
|
|
91
|
+
src="/assets/svg/twitter.svg"></i
|
|
92
|
+
></a>
|
|
93
|
+
<a
|
|
94
|
+
class="margin-right:15px"
|
|
95
|
+
share-network="facebook"
|
|
96
|
+
title="Share on Facebook"
|
|
97
|
+
><i
|
|
98
|
+
class="height:20px fill:#505050"
|
|
99
|
+
src="/assets/svg/facebook.svg"></i
|
|
100
|
+
></a>
|
|
101
|
+
<a
|
|
102
|
+
class="margin-right:15px"
|
|
103
|
+
share-network="instagram"
|
|
104
|
+
title="Share on instagram"
|
|
105
|
+
><i
|
|
106
|
+
class="height:20px fill:#505050"
|
|
107
|
+
src="/assets/svg/instagram.svg"></i
|
|
108
|
+
></a>
|
|
38
109
|
</div>
|
|
39
|
-
<a
|
|
110
|
+
<a
|
|
111
|
+
class="margin-right:15px"
|
|
112
|
+
share-network="share"
|
|
113
|
+
title="Share on share"
|
|
114
|
+
><i
|
|
115
|
+
class="height:20px fill:#505050"
|
|
116
|
+
src="/assets/svg/share-alt.svg"></i
|
|
117
|
+
></a>
|
|
40
118
|
</div>
|
|
41
|
-
<a
|
|
119
|
+
<a
|
|
120
|
+
href="https://github.com/CoCreate-app/CoCreate-users"
|
|
121
|
+
target="_blank"
|
|
122
|
+
class="margin-right:15px"
|
|
123
|
+
><i
|
|
124
|
+
class="height:20px fill:#505050"
|
|
125
|
+
src="/assets/svg/github.svg"></i
|
|
126
|
+
></a>
|
|
42
127
|
</div>
|
|
43
128
|
</div>
|
|
44
|
-
<h1
|
|
129
|
+
<h1
|
|
130
|
+
class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
|
|
131
|
+
A headless vinilla javascript micro component. Easy
|
|
132
|
+
configuration using HTML5 attributes or Javscript api.
|
|
133
|
+
</h1>
|
|
45
134
|
<div id="users-section" class="display:flex flex-wrap:wrap">
|
|
46
|
-
<div
|
|
47
|
-
|
|
48
|
-
|
|
135
|
+
<div
|
|
136
|
+
class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
|
|
137
|
+
<div
|
|
138
|
+
id="users-install"
|
|
139
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
140
|
+
scroll
|
|
141
|
+
scroll-intersect="color:dodgerblue"
|
|
142
|
+
scroll-target="#users-install-section">
|
|
143
|
+
<span
|
|
144
|
+
class="display:flex align-items:center width:fit-content"
|
|
145
|
+
hover="display:block!important"
|
|
146
|
+
hover-target="[href='#users-install']">
|
|
49
147
|
<h2 class="padding:5px_0px">Install</h2>
|
|
50
|
-
<a
|
|
148
|
+
<a
|
|
149
|
+
class="margin-left:10px display:none"
|
|
150
|
+
href="#users-install"
|
|
151
|
+
><i
|
|
152
|
+
class="height:20px fill:#505050"
|
|
153
|
+
src="/assets/svg/link.svg"></i
|
|
154
|
+
></a>
|
|
51
155
|
</span>
|
|
52
156
|
</div>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
157
|
+
<pre><code class="language-bash">npm i @cocreate/users</code></pre>
|
|
158
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
159
|
+
Or you can use cdn link:
|
|
160
|
+
</p>
|
|
161
|
+
<pre><code class="language-html"><script>https://cdn.cocreate.app/users/latest/CoCreate-users.min.js</script></code></pre>
|
|
56
162
|
|
|
57
|
-
|
|
58
|
-
|
|
163
|
+
<div
|
|
164
|
+
id="users-usage"
|
|
165
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
166
|
+
scroll
|
|
167
|
+
scroll-intersect="color:dodgerblue"
|
|
168
|
+
scroll-target="#users-usage-section">
|
|
169
|
+
<span
|
|
170
|
+
class="display:flex align-items:center width:fit-content"
|
|
171
|
+
hover="display:block!important"
|
|
172
|
+
hover-target="[href='#users-usage']">
|
|
59
173
|
<h2 class="padding:5px_0px">Usage</h2>
|
|
60
|
-
<a
|
|
174
|
+
<a
|
|
175
|
+
class="margin-left:10px display:none"
|
|
176
|
+
href="#users-usage"
|
|
177
|
+
><i
|
|
178
|
+
class="height:20px fill:#505050"
|
|
179
|
+
src="/assets/svg/link.svg"></i
|
|
180
|
+
></a>
|
|
61
181
|
</span>
|
|
62
182
|
</div>
|
|
63
183
|
<div class="">
|
|
64
|
-
<p class="padding:10px_0px line-height:1.5">
|
|
65
|
-
|
|
184
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
185
|
+
This is users usage
|
|
186
|
+
</p>
|
|
187
|
+
|
|
66
188
|
<div class="flex-grow:1 min-width:300px width:100%">
|
|
67
189
|
<pre><code class="language-html"><div></div></code></pre>
|
|
68
190
|
</div>
|
|
69
|
-
<p class="padding:10px_0px line-height:1.5">
|
|
70
|
-
|
|
191
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
192
|
+
This is users usage
|
|
193
|
+
</p>
|
|
194
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
195
|
+
This is users usage
|
|
196
|
+
</p>
|
|
71
197
|
</div>
|
|
72
|
-
<div
|
|
73
|
-
|
|
198
|
+
<div
|
|
199
|
+
id="users-attributes"
|
|
200
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
201
|
+
scroll
|
|
202
|
+
scroll-intersect="color:dodgerblue"
|
|
203
|
+
scroll-target="#users-attributes-section">
|
|
204
|
+
<span
|
|
205
|
+
class="display:flex align-items:center width:fit-content"
|
|
206
|
+
hover="display:block!important"
|
|
207
|
+
hover-target="[href='#users-attributes']">
|
|
74
208
|
<h2 class="padding:5px_0px">Attributes</h2>
|
|
75
|
-
<a
|
|
209
|
+
<a
|
|
210
|
+
class="margin-left:10px display:none"
|
|
211
|
+
href="#users-attributes"
|
|
212
|
+
><i
|
|
213
|
+
class="height:20px fill:#505050"
|
|
214
|
+
src="/assets/svg/link.svg"></i
|
|
215
|
+
></a>
|
|
76
216
|
</span>
|
|
77
217
|
</div>
|
|
78
|
-
<ul class="list-style-type:none
|
|
79
|
-
<li
|
|
80
|
-
|
|
218
|
+
<ul class="list-style-type:none">
|
|
219
|
+
<li
|
|
220
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
221
|
+
<h4>
|
|
222
|
+
<span>users</span>
|
|
223
|
+
<span class="cocreate-badge success"
|
|
224
|
+
>string</span
|
|
225
|
+
>
|
|
226
|
+
<span class="cocreate-badge warning"
|
|
227
|
+
>optional</span
|
|
228
|
+
>
|
|
229
|
+
</h4>
|
|
81
230
|
<p>users-attribute</p>
|
|
82
231
|
</li>
|
|
83
|
-
<li
|
|
84
|
-
|
|
232
|
+
<li
|
|
233
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
234
|
+
<h4>
|
|
235
|
+
<span>users</span>
|
|
236
|
+
<span class="cocreate-badge success"
|
|
237
|
+
>string</span
|
|
238
|
+
>
|
|
239
|
+
<span class="cocreate-badge warning"
|
|
240
|
+
>optional</span
|
|
241
|
+
>
|
|
242
|
+
</h4>
|
|
85
243
|
<p>users-attribute</p>
|
|
86
244
|
</li>
|
|
87
245
|
</ul>
|
|
88
246
|
</div>
|
|
89
|
-
|
|
90
|
-
<div
|
|
247
|
+
|
|
248
|
+
<div
|
|
249
|
+
class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
|
|
91
250
|
<!-- SandBox -->
|
|
92
|
-
<div
|
|
93
|
-
|
|
251
|
+
<div
|
|
252
|
+
id="users-demo"
|
|
253
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
254
|
+
scroll
|
|
255
|
+
scroll-intersect="color:dodgerblue"
|
|
256
|
+
scroll-target="#users-demo-section">
|
|
257
|
+
<span
|
|
258
|
+
class="display:flex align-items:center width:fit-content"
|
|
259
|
+
hover="display:block!important"
|
|
260
|
+
hover-target="[href='#users-demo']">
|
|
94
261
|
<h2 class="padding:5px_0px">Demo</h2>
|
|
95
|
-
<a
|
|
262
|
+
<a
|
|
263
|
+
class="margin-left:10px display:none"
|
|
264
|
+
href="#users-demo"
|
|
265
|
+
><i
|
|
266
|
+
class="height:20px fill:#505050"
|
|
267
|
+
src="/assets/svg/link.svg"></i
|
|
268
|
+
></a>
|
|
96
269
|
</span>
|
|
97
270
|
</div>
|
|
98
|
-
<div
|
|
271
|
+
<div
|
|
272
|
+
class="position:sticky top:0 padding:15px_0px height:100vh">
|
|
99
273
|
<!-- SandBox -->
|
|
100
|
-
<div
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
274
|
+
<div
|
|
275
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
276
|
+
id="playground">
|
|
277
|
+
<div
|
|
278
|
+
id="demo-code"
|
|
279
|
+
resizable
|
|
280
|
+
class="position:relative height:50%">
|
|
281
|
+
<textarea
|
|
282
|
+
type="code"
|
|
283
|
+
lang="html"
|
|
284
|
+
collection="demos"
|
|
285
|
+
document_id=""
|
|
286
|
+
name="demo"
|
|
287
|
+
save="false"
|
|
288
|
+
id="demo"
|
|
289
|
+
input-target=".demopreview"
|
|
290
|
+
input-attribute="value"
|
|
291
|
+
input-events="input, onload"
|
|
292
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
293
|
+
<div
|
|
294
|
+
resize="bottom"
|
|
295
|
+
class="background:lightgrey"></div>
|
|
105
296
|
</div>
|
|
106
|
-
|
|
107
|
-
<div
|
|
108
|
-
|
|
297
|
+
|
|
298
|
+
<div
|
|
299
|
+
id="demo-preview"
|
|
300
|
+
class="position:relative overflow:auto background-color:white">
|
|
301
|
+
<div class="demopreview padding:20px"></div>
|
|
109
302
|
</div>
|
|
110
|
-
|
|
111
|
-
<div
|
|
112
|
-
|
|
113
|
-
<a
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
303
|
+
|
|
304
|
+
<div
|
|
305
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
306
|
+
<a
|
|
307
|
+
class="margin-right:10px"
|
|
308
|
+
id="eye"
|
|
309
|
+
show="#eye-slash"
|
|
310
|
+
hide="#eye, #demo-preview"
|
|
311
|
+
toggle="code-height"
|
|
312
|
+
toggle-target="#demo-code"
|
|
313
|
+
><i
|
|
314
|
+
class="height:18px fill:#505050"
|
|
315
|
+
src="/assets/svg/eye.svg"></i
|
|
316
|
+
></a>
|
|
317
|
+
<a
|
|
318
|
+
class="margin-right:10px"
|
|
319
|
+
hidden
|
|
320
|
+
id="eye-slash"
|
|
321
|
+
show="#eye, #demo-preview"
|
|
322
|
+
hide="#eye-slash"
|
|
323
|
+
toggle="code-height"
|
|
324
|
+
toggle-target="#demo-code"
|
|
325
|
+
><i
|
|
326
|
+
class="height:20px fill:#505050"
|
|
327
|
+
src="/assets/svg/eye-slash.svg"></i
|
|
328
|
+
></a>
|
|
329
|
+
<a
|
|
330
|
+
class="margin-right:10px"
|
|
331
|
+
id="code"
|
|
332
|
+
show="#code-slash"
|
|
333
|
+
hide="#code, #demo-code"
|
|
334
|
+
><i
|
|
335
|
+
class="height:20px fill:#505050"
|
|
336
|
+
src="/assets/svg/code.svg"></i
|
|
337
|
+
></a>
|
|
338
|
+
<a
|
|
339
|
+
class="margin-right:10px"
|
|
340
|
+
hidden
|
|
341
|
+
id="code-slash"
|
|
342
|
+
show="#code, #demo-code"
|
|
343
|
+
hide="#code-slash"
|
|
344
|
+
><i
|
|
345
|
+
class="display:flex height:18px fill:#505050"
|
|
346
|
+
src="/assets/svg/code.svg"></i
|
|
347
|
+
></a>
|
|
348
|
+
<a
|
|
349
|
+
class="margin-right:5px"
|
|
350
|
+
fullscreen
|
|
351
|
+
fullscreen-target="#playground"></a>
|
|
117
352
|
</div>
|
|
118
|
-
|
|
119
353
|
</div>
|
|
120
354
|
<!-- End SandBox -->
|
|
121
|
-
|
|
355
|
+
</div>
|
|
122
356
|
</div>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
357
|
+
</div>
|
|
358
|
+
<button
|
|
359
|
+
href="https://github.com/CoCreate-app/CoCreate-users/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
|
|
360
|
+
target="_blank"
|
|
361
|
+
class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
362
|
+
<i
|
|
363
|
+
class="height:20px fill:#505050"
|
|
364
|
+
src="/assets/svg/pencil-alt.svg"></i>
|
|
365
|
+
</button>
|
|
366
|
+
</main>
|
|
367
|
+
|
|
368
|
+
<script src="./apikey.js"></script>
|
|
131
369
|
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
132
|
-
|
|
133
370
|
</body>
|
|
134
|
-
</html>
|
|
371
|
+
</html>
|