this.me 2.8.2 → 2.8.3

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.
@@ -1,211 +0,0 @@
1
-
2
-
3
- <!DOCTYPE html>
4
- <html lang="en">
5
-
6
- <head>
7
- ...
8
- <meta charset="utf-8">
9
- <meta name="viewport" content="width=device-width, initial-scale=1">
10
- <title>This.Me src/me.js</title>
11
-
12
- <script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
13
- <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
14
- <script src="./build/entry.js"></script>
15
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
16
- <!--[if lt IE 9]>
17
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
18
- <![endif]-->
19
- <link href="https://fonts.googleapis.com/css?family=Roboto:100,400,700|Inconsolata,700" rel="stylesheet">
20
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
21
- <link type="text/css" rel="stylesheet" href="https://jmblog.github.io/color-themes-for-google-code-prettify/themes/tomorrow-night.min.css">
22
- <link type="text/css" rel="stylesheet" href="styles/app.min.css">
23
- <link type="text/css" rel="stylesheet" href="styles/iframe.css">
24
- <link type="text/css" rel="stylesheet" href="style.css">
25
- <script async defer src="https://buttons.github.io/buttons.js"></script>
26
-
27
-
28
- </head>
29
-
30
-
31
-
32
- <body class="layout small-header">
33
- <div id="stickyNavbarOverlay"></div>
34
-
35
-
36
- <div class="top-nav">
37
- <div class="inner">
38
- <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
39
- <span aria-hidden="true"></span>
40
- <span aria-hidden="true"></span>
41
- <span aria-hidden="true"></span>
42
- </a>
43
- <div class="logo">
44
-
45
-
46
- <a href="index.html">
47
- <h1 class="navbar-item">This.Me</h1>
48
- </a>
49
-
50
- </div>
51
- <div class="menu">
52
-
53
- <div class="navigation">
54
- <a
55
- href="index.html"
56
- class="link"
57
- >
58
- Documentation
59
- </a>
60
-
61
-
62
-
63
- <a
64
- class="link user-link "
65
- href="https://suign.github.io/all.this/"
66
- >
67
- all.This @Packages
68
- </a>
69
-
70
- <a
71
- class="link user-link "
72
- href="https://github.com/suiGn/neurons.me"
73
- >
74
- Github
75
- </a>
76
-
77
- <a
78
- class="link user-link "
79
- href="https://neurons.me"
80
- >
81
- App
82
- </a>
83
-
84
-
85
-
86
- </div>
87
- </div>
88
- </div>
89
- </div>
90
- <div id="main">
91
- <div
92
- class="sidebar "
93
- id="sidebarNav"
94
- >
95
-
96
- <div class="search-wrapper">
97
- <input id="search" type="text" placeholder="Search docs..." class="input">
98
- </div>
99
-
100
- <nav>
101
-
102
- <h2><a href="index.html">Documentation</a></h2><div class="category"><h3>Modules</h3><ul><li><a href="module-00-Index.html">00-Index</a></li><li><a href="module-CLI.html">CLI</a></li></ul><h3>Classes</h3><ul><li><a href="Me.html">Me</a></li></ul><h3>Global</h3><ul><li><a href="global.html#createMe">createMe</a></li><li><a href="global.html#listMeProfiles">listMeProfiles</a></li><li><a href="global.html#selectMe">selectMe</a></li><li><a href="global.html#selectProfile">selectProfile</a></li><li><a href="global.html#writeMe">writeMe</a></li></ul></div>
103
-
104
- </nav>
105
- </div>
106
- <div class="core" id="main-content-wrapper">
107
- <div class="content">
108
- <header class="page-title">
109
- <p>Source</p>
110
- <h1>src/me.js</h1>
111
- </header>
112
-
113
-
114
-
115
-
116
-
117
- <section>
118
- <article>
119
- <pre class="prettyprint source linenums"><code>/**
120
- * Represents a user identity in the this.me system.
121
- */
122
- class Me {
123
- /**
124
- * Create a me instance.
125
- * @param {string} name - The first name of the user.
126
- * @param {string} lastname - The last name of the user.
127
- * @param {string} birthday - The birthday of the user in YYYY-MM-DD format.
128
- * @param {string} password - The password chosen by the user.
129
- * @param {string} pin - The personal identification number chosen by the user.
130
- */
131
- constructor(name, lastname, birthday, password, pin) {
132
- this.name = name;
133
- this.lastname = lastname;
134
- this.birthday = birthday;
135
- this.password = password;
136
- this.pin = pin;
137
- }
138
-
139
- /**
140
- * Validates the user data. Throws an error if any field is empty.
141
- * @throws Will throw an error if a required field is missing.
142
- */
143
- validateData() {
144
- if (!this.name || !this.lastname || !this.birthday || !this.password || !this.pin) {
145
- throw new Error("All fields must be filled");
146
- }
147
- // Further validation rules can be added here
148
- }
149
-
150
- /**
151
- * Prepares and returns the identity object for hashing.
152
- * @returns {Object} The identity object with user data.
153
- */
154
- getIdentityObject() {
155
- this.validateData();
156
- return {
157
- name: this.name,
158
- lastname: this.lastname,
159
- birthday: this.birthday,
160
- credentials: `${this.password}:${this.pin}` // Combining password and pin
161
- };
162
- }
163
- }
164
-
165
- export default Me;
166
- </code></pre>
167
- </article>
168
- </section>
169
-
170
-
171
-
172
-
173
- </div>
174
-
175
- <footer class="footer">
176
- <div class="content has-text-centered">
177
- <p>
178
- <style>
179
- .center-div {
180
- display: flex;
181
- justify-content: center;
182
- align-items: center;
183
- height: 89px;
184
- }
185
-
186
- img {
187
- max-width: 100%;
188
- max-height: 100%;
189
- }
190
- </style>
191
- <div class="center-div">
192
- <img src="https://suign.github.io/neurons.me/neurons_logo.png" alt="Witness our Seal.">
193
- </div>
194
- <a href="http://neurons.me" target="_blank">neurons.me</a>
195
- </p>
196
- </div>
197
- </footer>
198
-
199
- </div>
200
- <div id="side-nav" class="side-nav">
201
- </div>
202
- </div>
203
- <script src="scripts/app.min.js"></script>
204
- <script>PR.prettyPrint();</script>
205
- <script src="scripts/linenumber.js"> </script>
206
-
207
- <script src="scripts/search.js"> </script>
208
-
209
-
210
- </body>
211
- </html>