miolo 3.0.0-beta.223 → 3.0.0-beta.224

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miolo",
3
- "version": "3.0.0-beta.223",
3
+ "version": "3.0.0-beta.224",
4
4
  "description": "all-in-one koa-based server",
5
5
  "author": "Donato Lorenzo <donato@afialapis.com>",
6
6
  "contributors": [
@@ -45,9 +45,9 @@
45
45
  "intre": "^3.0.0-beta.4",
46
46
  "joi": "^18.2.3",
47
47
  "lucide-react": "^1.24.0",
48
- "miolo-cli": "^3.0.0-beta.223",
48
+ "miolo-cli": "^3.0.0-beta.224",
49
49
  "miolo-model": "file:../miolo-model",
50
- "miolo-react": "^3.0.0-beta.223",
50
+ "miolo-react": "^3.0.0-beta.224",
51
51
  "next-themes": "^0.4.6",
52
52
  "radix-ui": "^1.6.2",
53
53
  "react": "^19.2.7",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@biomejs/biome": "2.5.3",
65
- "miolo": "^3.0.0-beta.223",
65
+ "miolo": "^3.0.0-beta.224",
66
66
  "sass-embedded": "^1.100.0"
67
67
  },
68
68
  "overrides": {
@@ -6,7 +6,7 @@ import DataContext from "./DataContext.jsx"
6
6
  /**
7
7
  * @typedef {import('#ns/models/TodoList.mjs').default} TodoList
8
8
  * @typedef {import('#ns/models/Todo.mjs').default} Todo
9
- *
9
+ *
10
10
  * @typedef {Object} DataContextData
11
11
  * @property {TodoList} lastTodos - The list of last todos.
12
12
  * @property {(options?: Object) => Promise<void>} refreshLastTodos - Function to refresh the list of last todos.
@@ -5,7 +5,6 @@ import useUIContext from "#cli/context/ui/useUIContext.mjs"
5
5
  import TodoList from "#ns/models/TodoList.mjs"
6
6
  import TodosContext from "./TodosContext.jsx"
7
7
 
8
-
9
8
  /**
10
9
  * @typedef {Object} TodosProviderData
11
10
  * @property {TodoList} todoList - The list of todos.
@@ -23,8 +22,6 @@ import TodosContext from "./TodosContext.jsx"
23
22
  * @property {Function} pingSocket - Function to ping the socket.
24
23
  */
25
24
 
26
-
27
-
28
25
  const TodosProvider = ({ children }) => {
29
26
  // const [status, setStatus] = useState("loaded")
30
27
  const { logger } = useMioloContext()
@@ -1,7 +1,6 @@
1
1
  import { useContext } from "react"
2
2
  import TodosContext from "./TodosContext.jsx"
3
3
 
4
-
5
4
  /**
6
5
  * @typedef {import('./TodosProvider.jsx').TodosProviderData} TodosProviderData
7
6
  * @returns {TodosProviderData}
@@ -48,7 +48,7 @@ export default class Todo extends MioloModel {
48
48
  * Get the last update date of the todo.
49
49
  * @returns {number|undefined} The last update date of the todo.
50
50
  * @public
51
- */
51
+ */
52
52
  get lastUpdateAt() {
53
53
  return this.get_value("last_update_at")
54
54
  }
@@ -66,7 +66,7 @@ export default class Todo extends MioloModel {
66
66
  * Get the user who last updated the todo.
67
67
  * @returns {number|undefined} The user who last updated the todo.
68
68
  * @public
69
- */
69
+ */
70
70
  get lastUpdateBy() {
71
71
  return this.get_value("last_update_by")
72
72
  }
@@ -1,7 +1,6 @@
1
1
  import { MioloArray } from "miolo-model"
2
2
  import Todo from "./Todo.mjs"
3
3
 
4
-
5
4
  export default class TodoList extends MioloArray {
6
5
  /**
7
6
  * @param {Array<Todo> | Array<Object>} [items=[]]
@@ -5,7 +5,7 @@ export default class User extends MioloModel {
5
5
  * Get the id of the user.
6
6
  * @returns {number} The id of the user.
7
7
  * @public
8
- */
8
+ */
9
9
  get id() {
10
10
  return this.get_value("id")
11
11
  }
@@ -14,7 +14,7 @@ export default class User extends MioloModel {
14
14
  * Get the username of the user.
15
15
  * @returns {string|undefined} The username of the user.
16
16
  * @public
17
- */
17
+ */
18
18
  get username() {
19
19
  return this.get_value("username")
20
20
  }
@@ -23,7 +23,7 @@ export default class User extends MioloModel {
23
23
  * Get the password of the user.
24
24
  * @returns {string|undefined} The password of the user.
25
25
  * @public
26
- */
26
+ */
27
27
  get password() {
28
28
  return this.get_value("password")
29
29
  }
@@ -32,7 +32,7 @@ export default class User extends MioloModel {
32
32
  * Get the name of the user.
33
33
  * @returns {string|undefined} The name of the user.
34
34
  * @public
35
- */
35
+ */
36
36
  get name() {
37
37
  return this.get_value("name")
38
38
  }
@@ -41,7 +41,7 @@ export default class User extends MioloModel {
41
41
  * Get the email of the user.
42
42
  * @returns {string|undefined} The email of the user.
43
43
  * @public
44
- */
44
+ */
45
45
  get email() {
46
46
  return this.get_value("email")
47
47
  }
@@ -50,7 +50,7 @@ export default class User extends MioloModel {
50
50
  * Get the active status of the user.
51
51
  * @returns {boolean|undefined} The active status of the user.
52
52
  * @public
53
- */
53
+ */
54
54
  get active() {
55
55
  return this.get_value("active")
56
56
  }
@@ -59,7 +59,7 @@ export default class User extends MioloModel {
59
59
  * Get the last login date of the user.
60
60
  * @returns {number|undefined} The last login date of the user.
61
61
  * @public
62
- */
62
+ */
63
63
  get lastLoginDate() {
64
64
  return this.get_value("last_login_date")
65
65
  }
@@ -68,7 +68,7 @@ export default class User extends MioloModel {
68
68
  * Get the last login IP of the user.
69
69
  * @returns {string|undefined} The last login IP of the user.
70
70
  * @public
71
- */
71
+ */
72
72
  get lastLoginIp() {
73
73
  return this.get_value("last_login_ip")
74
74
  }
@@ -77,7 +77,7 @@ export default class User extends MioloModel {
77
77
  * Get the login count of the user.
78
78
  * @returns {number} The login count of the user.
79
79
  * @public
80
- */
80
+ */
81
81
  get loginCount() {
82
82
  return this.get_value("login_count", 0)
83
83
  }
@@ -86,7 +86,7 @@ export default class User extends MioloModel {
86
86
  * Get the last connection date of the user.
87
87
  * @returns {number|undefined} The last connection date of the user.
88
88
  * @public
89
- */
89
+ */
90
90
  get lastConnAt() {
91
91
  return this.get_value("last_conn_at")
92
92
  }
@@ -95,7 +95,7 @@ export default class User extends MioloModel {
95
95
  * Get the creation date of the user.
96
96
  * @returns {number|undefined} The creation date of the user.
97
97
  * @public
98
- */
98
+ */
99
99
  get createdAt() {
100
100
  return this.get_value("created_at")
101
101
  }
@@ -104,7 +104,7 @@ export default class User extends MioloModel {
104
104
  * Get the last update date of the user.
105
105
  * @returns {number|undefined} The last update date of the user.
106
106
  * @public
107
- */
107
+ */
108
108
  get lastUpdateAt() {
109
109
  return this.get_value("last_update_at")
110
110
  }