Releases: jeeMv/SpringBoot-VueJS
Releases · jeeMv/SpringBoot-VueJS
1.1.4 release
1.0.22 release
Added
- getter/setters for vueJS data
- clone and assign methods
1.0.21 release
Updated
- Fix jsArray pb with remove and replace
- Maven dependencies
1.0.17 release
Updated
- lambda expressions usage in
Http
class
Fixed
JsArray
bug inremove
method
1.0.15 release
Added
JavascriptMultiModulesResource
class -> For the creation of several scripts (modules) in the same JS file, with the possibility of incorporating java variables.
Usage:
Javascript multi modules resource
To avoid the multiplicity of javascript files, it is possible to group several scripts in the same file.
Each script (qualified as a module) must be identified in the javascript file by a comment on a single line bearing its name, and a comment marking the end (also mentioning the name of the script).
resource/static/js/multi.js
Each script can possibly be isolated, which is without consequences.
//resource/static/js/multi.js
//----------------consoleMsg-----------------------
console.log("${message}");
//----------------consoleMsg (end)-----------------
//----------------alertMsg-------------------------
(function(){
alert("${message}");
})();
//----------------alertMsg (end)-------------------
In the java controller
@GetMapping("sampleMulti")
public String testJsMulti(@ModelAttribute("vue") VueJS vue) throws IOException {
JavascriptMultiModulesResource jsMulti=JavascriptMultiModulesResource.create("multi");
jsMulti.getModule("consoleMsg").put("message", "This is a console message");
vue.addMethod("click", js.parseContent("consoleMsg"));
return "view";
}
1.0.14 release
Updated
versions:
- java 14
- com.fasterxml.jackson.core 2.11
- org.aspectj 1.9.6
- org.springframework 5.2.9
- org.springframework.boot 2.3.4
Http request methods:
url
parameter can contains a JS expression:
Http.get("'/foo'+js")
1.0.12 release
Updated
versions:
- com.fasterxml.jackson.core 2.10
- org.aspectj 1.9.4
- org.springframework 5.2
- org.springframework.boot 2.1.9
Added
- shortHand in directives
1.0.11 release
Added
- Components unique file creation
VueComponent.globalJS()