cradova 2.3.1 → 3.0.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/README.md +12 -11
- package/dist/index.d.ts +381 -359
- package/dist/index.js +411 -561
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,7 +41,11 @@
|
|
|
41
41
|
|
|
42
42
|
Cradova is a web development framework for building Single Page Applications and PWAs.
|
|
43
43
|
|
|
44
|
-
It's a fast, simple and modern,
|
|
44
|
+
It's a fast, simple and modern, with powerful state management and routing system.
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
No matter how complex your UI, cradova helps you build fast, reactivity and scalable web apps.
|
|
48
|
+
```
|
|
45
49
|
|
|
46
50
|
Cradova follows the [VJS specification](https://github.com/fridaycandour/cradova/blob/main/spec.md)
|
|
47
51
|
|
|
@@ -58,7 +62,7 @@ Undoubtedly, this provides a significant advantage. You can experience it firsth
|
|
|
58
62
|
|
|
59
63
|
Cradova has already been utilized in multiple production projects, and we will continuously update this page to showcase our advancements as we keep improving.
|
|
60
64
|
|
|
61
|
-
[current version changes](https://github.com/fridaycandour/cradova/blob/main/CHANGELOG.md#
|
|
65
|
+
[current version changes](https://github.com/fridaycandour/cradova/blob/main/CHANGELOG.md#v300)
|
|
62
66
|
|
|
63
67
|
## Installation
|
|
64
68
|
|
|
@@ -117,10 +121,9 @@ import _, { button, createSignal, Ref, reference, h1, br, div } from "cradova";
|
|
|
117
121
|
function counter() {
|
|
118
122
|
let num = 0;
|
|
119
123
|
return _("h1| 0", {
|
|
120
|
-
shouldUpdate: true,
|
|
121
124
|
onclick() {
|
|
122
125
|
num++;
|
|
123
|
-
this.
|
|
126
|
+
this.innerText = num;
|
|
124
127
|
},
|
|
125
128
|
});
|
|
126
129
|
}
|
|
@@ -129,11 +132,11 @@ function counter() {
|
|
|
129
132
|
|
|
130
133
|
function dataCounter() {
|
|
131
134
|
return _("h1| 0", {
|
|
132
|
-
shouldUpdate: true,
|
|
133
135
|
"data-num": "0",
|
|
134
136
|
onclick() {
|
|
135
137
|
const num = this.getAttribute("data-num") * 1 + 1;
|
|
136
|
-
this.
|
|
138
|
+
this.setAttribute("data-num", num });
|
|
139
|
+
this.innerText = num;
|
|
137
140
|
},
|
|
138
141
|
});
|
|
139
142
|
}
|
|
@@ -142,13 +145,10 @@ function dataCounter() {
|
|
|
142
145
|
|
|
143
146
|
function HelloMessage() {
|
|
144
147
|
return div({
|
|
145
|
-
shouldUpdate: true,
|
|
146
148
|
text: "Click to get a greeting",
|
|
147
149
|
onclick() {
|
|
148
150
|
const name = prompt("what are your names");
|
|
149
|
-
this.
|
|
150
|
-
text: name ? "hello " + name : "Click to get a greeting",
|
|
151
|
-
});
|
|
151
|
+
this.innerText = name ? "hello " + name : "Click to get a greeting";
|
|
152
152
|
},
|
|
153
153
|
});
|
|
154
154
|
}
|
|
@@ -439,6 +439,7 @@ We are currently working to [set](https://github.com/fridaycandour/cradova/blob/
|
|
|
439
439
|
- UI component libraries for cradova
|
|
440
440
|
- Sample projects
|
|
441
441
|
- maintenance and promotion
|
|
442
|
+
<!--
|
|
442
443
|
|
|
443
444
|
## Sponsor
|
|
444
445
|
|
|
@@ -446,4 +447,4 @@ Your support is appreciated and needed to advance Cradova for more performance a
|
|
|
446
447
|
|
|
447
448
|
Sponsorships can be done via [Patreon](https://www.patreon.com/FridayCandour) and [KO-FI](https://www.ko-fi.com/fridaycandour).
|
|
448
449
|
|
|
449
|
-
Both monthly-recurring sponsorships and one-time donations are accepted.
|
|
450
|
+
Both monthly-recurring sponsorships and one-time donations are accepted. -->
|