juxtapose 4.0.21 → 4.0.25
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 +1 -22
- package/examples.js +348 -275
- package/lib/example/mvcApplication/constants.js +1 -1
- package/lib/example/mvcApplication/controller.js +1 -1
- package/lib/example/mvcApplication/model.js +1 -1
- package/lib/example/mvcApplication/view/button/resetPassword.js +1 -1
- package/lib/example/mvcApplication/view/form/password.js +5 -4
- package/lib/example/mvcApplication/view/input/password.js +1 -1
- package/lib/example/mvcApplication/view/paragraph/message.js +1 -1
- package/lib/example/mvcApplication/view/paragraph/validationError.js +6 -5
- package/lib/example/mvcApplication/view.js +1 -1
- package/lib/example/mvcApplication.js +1 -1
- package/lib/example/simpleApplication.js +1 -1
- package/lib/examples.js +1 -1
- package/lib/index.js +1 -1
- package/lib/juxtapose.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,27 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
**[Online documentation](https://juxtapose.info)**
|
|
6
6
|
|
|
7
|
-
## The Joy of JSX
|
|
8
|
-
|
|
9
|
-
There is a series of complementary videos:
|
|
10
|
-
|
|
11
|
-
**[The Joy of JSX](https://vimeo.com/album/4562013)**
|
|
12
|
-
|
|
13
|
-
#### Corrigenda
|
|
14
|
-
|
|
15
|
-
Many of these points have been picked up in the last video in the series, 'Traditional MVC', which has been re-recorded. Also bear in mind that nearly all of the changes are to the source code of the Easy project, not this one. The files of interest are the [element.js](https://github.com/djalbat/Easy/blob/master/es6/element.js), [react.js](https://github.com/djalbat/Easy/blob/master/es6/react.js) and [jsx.js](https://github.com/djalbat/Easy/blob/master/es6/mixins/jsx.js) files.
|
|
16
|
-
|
|
17
|
-
- The `examples.html` file has moved to `index.html`.
|
|
18
|
-
- The `examples` directory in the `es6` directory has been renamed to `example`;
|
|
19
|
-
- The `Element` class now has a `fromString(...)` factory method, simplifying the `React.createElement(...)` method.
|
|
20
|
-
- The `addTo(...)`, etc methods have been taken out of the JSX mixin. The `updateParentContext(...)` method is now called directly from the loop over the child elements in the `applyProperties(...)` method.
|
|
21
|
-
- The ignored and default properties are now cumulative. Recursive methods called from the `fromProperties(...)` static factory method of the `Element` class will traverse the superclasses in order to find them.
|
|
22
|
-
- It is best to call the `assignContext(...)` method from an `initialise(...)` method called from within your own `fromProperties(...)` static factory method rather than from within `parentContext()` methods. Initialise methods are introduced in the re-recorded video.
|
|
23
|
-
- The `assignContext(...)` method has been improved. It no longer returns the names of the context properties that have been assigned, there didn't seem much point. The default for the `thenDelete` argument is `true`.
|
|
24
|
-
- More ES6 and some experimental syntax has been adopted, for example ES6 imports and exports.
|
|
25
|
-
- The static `fromProperties(...)` factory method has been replaced with a static `fromClass(...)` factory method. In most cases there is now no need to create your own such methods. You only need to do so if you want to make use of the `properties` object.
|
|
26
|
-
- The controller has been simplified in the MVC application.
|
|
27
|
-
|
|
28
7
|
## Installation
|
|
29
8
|
|
|
30
9
|
You can install Juxtapose with [npm](https://www.npmjs.com/):
|
|
@@ -66,7 +45,7 @@ You can also start a small development server:
|
|
|
66
45
|
|
|
67
46
|
npm start
|
|
68
47
|
|
|
69
|
-
The examples will then be available at http://localhost:8888
|
|
48
|
+
The examples will then be available at http://localhost:8888 and will reload automatically when changes are made.
|
|
70
49
|
|
|
71
50
|
## Contact
|
|
72
51
|
|