dphelper 1.2.5 → 1.2.7

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/.github/README.md CHANGED
@@ -1,25 +1,13 @@
1
1
  # I am dpHelper
2
2
 
3
- ```
4
- dpHelper Devtools by Dario Passariello
5
- ```
6
-
7
3
  ![dpHelper](https://raw.githubusercontent.com/passariello/dphelper/HEAD/assets/logos/logo.svg)
8
4
 
9
- Manager | DevTools by [Dario Passariello](https://dario.passariello.ca) (c)
5
+ **Manager | DevTools** by [Dario Passariello](https://dario.passariello.ca) (c)
10
6
 
11
7
  <!-- ![git repository](https://img.shields.io/badge/git%20repository-updated-green.svg) -->
12
8
  ![browser extension](https://img.shields.io/badge/browser%20extension-beta-orange.svg)
13
-
14
- ---
15
-
16
9
  ![TypeScript](https://img.shields.io/badge/TypeScript-006b98?logo=TypeScript&logoColor=white)
17
- ![React-js](https://img.shields.io/badge/React-js-006b98?logo=React-js&logoColor=white)
18
10
  ![dpHelper](https://img.shields.io/badge/dpHelper-npm-green?logo=dpHelper&logoColor=white)
19
- ![layerpro](https://img.shields.io/badge/layerpro-npm-green?logo=layerpro&logoColor=white)
20
- <!-- ![Node-js](https://img.shields.io/badge/Node-js-006b98?logo=Node-js&logoColor=white) -->
21
- <!-- ![Express](https://img.shields.io/badge/Express-006b98?logo=Express&logoColor=white) -->
22
- <!-- ![Api](https://img.shields.io/badge/Api-006b98?logo=Api&logoColor=white) -->
23
11
 
24
12
  ## About 🔥
25
13
 
@@ -35,28 +23,38 @@ Please, read the [LICENSE](/LICENSE.txt) agreement before to implementing in you
35
23
  You can see an HTML version where dpHelper and LayerPro works.
36
24
  You can use with html, react, vue or any other frontend / library.
37
25
 
26
+ ## What you need to know about "no-refresh/reload" 🧐
27
+
28
+ dpHelper is designed to work primaly with website, application and portals that use "AJAX / XMLHttpRequest" technology like PWA, SPA, Angular, React, JQuery etc.
29
+ What mean?... So, modern browser and modern application use "NO REFRESH" behavior and these render only the part of browser needs changes instead re-render o refresh the entire page. Refresh o reload the entire page cause the lose of entire "states" ... my suggestion is to redesign/rewamp you code using a technology more robust and faster. So, if you want to use dpHelper as state / store manager you can use only store function in a non Ajax engine. Feel free to contact me in case you need support or more information.
30
+
31
+ Here some links for you:
32
+
33
+ [https://en.wikipedia.org/wiki/Ajax_(programming)](Ajax_(programming))
34
+
35
+ [https://developer.mozilla.org/en-US/docs/Glossary/SPA](SPA (Single-page application))
36
+
37
+ [https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest](XMLHttpRequest)
38
+
39
+ I am no a techGuy | nerd | geek? ... no worries. Fix it... go to hiring one 🤭
40
+
38
41
  ## The Best Way To Use State and Store 💥
39
42
 
40
43
  You can use "state" to store all what you want and reuse everywhere. Like other state manager you can store information in JSON format and you can use them in react, useEffect, dispatch in a very easy way.
41
44
 
42
45
  _example:_
43
46
 
44
- You can use devtools in your browser and type " **state.test = 'I am ready'** ".
45
- Every time you want to use '**test**' you need just recall **state.test**.
47
+ You can use browser's devtools console and type " **state.test = 'I am ready'** ".
48
+ Every time you want to use '**test**' values you need just recall **state.test**.
46
49
 
47
50
  ```javascript
51
+ // Set a state
48
52
  state.test = "I am ready";
49
- ```
50
-
51
- recall
52
53
 
53
- ```javascript
54
+ // Get the state
54
55
  state.test
55
- ```
56
56
 
57
- To see all states just use
58
-
59
- ```javascript
57
+ // List all states
60
58
  state
61
59
  ```
62
60
 
@@ -65,11 +63,13 @@ state
65
63
  If you want to run a funtion everytime a state change you can use:
66
64
 
67
65
  ```javascript
68
- // Observer is a non cumulative listener, is trigged from customEvent / dispatch from state
69
- observer(
70
- "test",
71
- ()=>alert("Test Changes to: " + state.test)
72
- )
66
+ /**
67
+ * Observer is a non cumulative listener,
68
+ * is trigged from customEvent / dispatch from state
69
+ * @parameters
70
+ * [ name, function ]
71
+ */
72
+ observer("test", ()=> alert( "Test Changes to: " + state.test ) )
73
73
  ```
74
74
 
75
75
  You can use it everywere. Works like "useState" in react but with more flexibility
@@ -79,7 +79,7 @@ You can use it everywere. Works like "useState" in react but with more flexibili
79
79
  **INFO**: if you want to use as permanent storage (localStorage) you need to use " **store** " instead state.
80
80
  **IMPORTANT**: Store use localStorage... data are persistant and you need to remove if necessary for security (like logout)
81
81
 
82
- **SECURITY**: Do not store any sensitive data. Data stay in the computer if are not properly removed
82
+ **SECURITY**: Do not store any sensitive data. Data stay in the computer if are not properly removed ( use store.clearAll() )
83
83
 
84
84
  ```javascript
85
85
  // Set a store:
@@ -132,7 +132,7 @@ note: you don't need to use npm install in this case or you get an error
132
132
 
133
133
  ## How to use it
134
134
 
135
- type 'dphelper' in your dev console to have a look about all available tools that you can use globaly!
135
+ type 'dphelper' as panel in your browser to have a look about all available tools that you can use!
136
136
 
137
137
  You can call these from everywhere without import (just one at index)
138
138
 
@@ -151,4 +151,4 @@ This extension allows you to manage your app's dpHelper NPM. Here you will find
151
151
 
152
152
  ---
153
153
 
154
- copyright (c) 2019 - 2024 by Dario Passariello
154
+ Dario Passariello Copyright (c) 2019 - 2024, All rights reserved
package/README.md CHANGED
@@ -1,25 +1,13 @@
1
1
  # I am dpHelper
2
2
 
3
- ```
4
- dpHelper Devtools by Dario Passariello
5
- ```
6
-
7
3
  ![dpHelper](https://raw.githubusercontent.com/passariello/dphelper/HEAD/assets/logos/logo.svg)
8
4
 
9
- Manager | DevTools by [Dario Passariello](https://dario.passariello.ca) (c)
5
+ **Manager | DevTools** by [Dario Passariello](https://dario.passariello.ca) (c)
10
6
 
11
7
  <!-- ![git repository](https://img.shields.io/badge/git%20repository-updated-green.svg) -->
12
8
  ![browser extension](https://img.shields.io/badge/browser%20extension-beta-orange.svg)
13
-
14
- ---
15
-
16
9
  ![TypeScript](https://img.shields.io/badge/TypeScript-006b98?logo=TypeScript&logoColor=white)
17
- ![React-js](https://img.shields.io/badge/React-js-006b98?logo=React-js&logoColor=white)
18
10
  ![dpHelper](https://img.shields.io/badge/dpHelper-npm-green?logo=dpHelper&logoColor=white)
19
- ![layerpro](https://img.shields.io/badge/layerpro-npm-green?logo=layerpro&logoColor=white)
20
- <!-- ![Node-js](https://img.shields.io/badge/Node-js-006b98?logo=Node-js&logoColor=white) -->
21
- <!-- ![Express](https://img.shields.io/badge/Express-006b98?logo=Express&logoColor=white) -->
22
- <!-- ![Api](https://img.shields.io/badge/Api-006b98?logo=Api&logoColor=white) -->
23
11
 
24
12
  ## About 🔥
25
13
 
@@ -35,28 +23,38 @@ Please, read the [LICENSE](/LICENSE.txt) agreement before to implementing in you
35
23
  You can see an HTML version where dpHelper and LayerPro works.
36
24
  You can use with html, react, vue or any other frontend / library.
37
25
 
26
+ ## What you need to know about "no-refresh/reload" 🧐
27
+
28
+ dpHelper is designed to work primaly with website, application and portals that use "AJAX / XMLHttpRequest" technology like PWA, SPA, Angular, React, JQuery etc.
29
+ What mean?... So, modern browser and modern application use "NO REFRESH" behavior and these render only the part of browser needs changes instead re-render o refresh the entire page. Refresh o reload the entire page cause the lose of entire "states" ... my suggestion is to redesign/rewamp you code using a technology more robust and faster. So, if you want to use dpHelper as state / store manager you can use only store function in a non Ajax engine. Feel free to contact me in case you need support or more information.
30
+
31
+ Here some links for you:
32
+
33
+ [https://en.wikipedia.org/wiki/Ajax_(programming)](Ajax_(programming))
34
+
35
+ [https://developer.mozilla.org/en-US/docs/Glossary/SPA](SPA (Single-page application))
36
+
37
+ [https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest](XMLHttpRequest)
38
+
39
+ I am no a techGuy | nerd | geek? ... no worries. Fix it... go to hiring one 🤭
40
+
38
41
  ## The Best Way To Use State and Store 💥
39
42
 
40
43
  You can use "state" to store all what you want and reuse everywhere. Like other state manager you can store information in JSON format and you can use them in react, useEffect, dispatch in a very easy way.
41
44
 
42
45
  _example:_
43
46
 
44
- You can use devtools in your browser and type " **state.test = 'I am ready'** ".
45
- Every time you want to use '**test**' you need just recall **state.test**.
47
+ You can use browser's devtools console and type " **state.test = 'I am ready'** ".
48
+ Every time you want to use '**test**' values you need just recall **state.test**.
46
49
 
47
50
  ```javascript
51
+ // Set a state
48
52
  state.test = "I am ready";
49
- ```
50
-
51
- recall
52
53
 
53
- ```javascript
54
+ // Get the state
54
55
  state.test
55
- ```
56
56
 
57
- To see all states just use
58
-
59
- ```javascript
57
+ // List all states
60
58
  state
61
59
  ```
62
60
 
@@ -65,11 +63,13 @@ state
65
63
  If you want to run a funtion everytime a state change you can use:
66
64
 
67
65
  ```javascript
68
- // Observer is a non cumulative listener, is trigged from customEvent / dispatch from state
69
- observer(
70
- "test",
71
- ()=>alert("Test Changes to: " + state.test)
72
- )
66
+ /**
67
+ * Observer is a non cumulative listener,
68
+ * is trigged from customEvent / dispatch from state
69
+ * @parameters
70
+ * [ name, function ]
71
+ */
72
+ observer("test", ()=> alert( "Test Changes to: " + state.test ) )
73
73
  ```
74
74
 
75
75
  You can use it everywere. Works like "useState" in react but with more flexibility
@@ -79,7 +79,7 @@ You can use it everywere. Works like "useState" in react but with more flexibili
79
79
  **INFO**: if you want to use as permanent storage (localStorage) you need to use " **store** " instead state.
80
80
  **IMPORTANT**: Store use localStorage... data are persistant and you need to remove if necessary for security (like logout)
81
81
 
82
- **SECURITY**: Do not store any sensitive data. Data stay in the computer if are not properly removed
82
+ **SECURITY**: Do not store any sensitive data. Data stay in the computer if are not properly removed ( use store.clearAll() )
83
83
 
84
84
  ```javascript
85
85
  // Set a store:
@@ -132,7 +132,7 @@ note: you don't need to use npm install in this case or you get an error
132
132
 
133
133
  ## How to use it
134
134
 
135
- type 'dphelper' in your dev console to have a look about all available tools that you can use globaly!
135
+ type 'dphelper' as panel in your browser to have a look about all available tools that you can use!
136
136
 
137
137
  You can call these from everywhere without import (just one at index)
138
138
 
@@ -151,4 +151,4 @@ This extension allows you to manage your app's dpHelper NPM. Here you will find
151
151
 
152
152
  ---
153
153
 
154
- copyright (c) 2019 - 2024 by Dario Passariello
154
+ Dario Passariello Copyright (c) 2019 - 2024, All rights reserved