Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OFBIZ-11756 vue js renderer #169

Open
wants to merge 15 commits into
base: trunk
Choose a base branch
from

Conversation

Olivier-Heintz
Copy link

Implemented: Add a Vue.Js renderer (OFBIZ-11756)

Explanation
This PR is an umbrella for a group of commit needed to add a Vue.Js renderer.
All Jira area sub-task of OFBIZ-11756, and there is detail for each.
VueJs renderer is a new plugins, so, a PR in ofbiz-plugins
To show the result of the VueJs renderer, there area 2 others plugin, a dedicated theme and ExampleFjs

Thanks: for Julien for all vue.js code

@Olivier-Heintz Olivier-Heintz force-pushed the OFBIZ-11756_VueJs_renderer branch 2 times, most recently from dcd64c9 to 7005ff1 Compare June 17, 2020 12:56
@sonarcloud
Copy link

sonarcloud bot commented Jul 2, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Olivier-Heintz Olivier-Heintz force-pushed the OFBIZ-11756_VueJs_renderer branch 2 times, most recently from d2820b8 to 3ef09fa Compare September 2, 2020 13:43
@Olivier-Heintz Olivier-Heintz force-pushed the OFBIZ-11756_VueJs_renderer branch 2 times, most recently from ea40ac7 to 007f09d Compare October 5, 2020 08:47
@sonarcloud
Copy link

sonarcloud bot commented Oct 5, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Jan 13, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Feb 18, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented May 24, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Olivier-Heintz Olivier-Heintz force-pushed the OFBIZ-11756_VueJs_renderer branch 2 times, most recently from e2dfa62 to 1d69e31 Compare June 26, 2021 08:34
@sonarcloud
Copy link

sonarcloud bot commented Jun 26, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

holivier added 10 commits August 24, 2021 22:15
…-11757)

It's now possible to use ${ for area-id
1. add "use-when" management in the xsd and in the modelForm.UpdateArea,
2. add in modelForm a static method to return a valid list of updateArea
from a list of updateArea and context
3. duplicate all methods returning a list of updateArea, by same name
but with context as parameters which return only valid updateArea list
(ex: in formFieldBuilder for getOnClickUpdateAreas and
getOnChangeUpdateAreas)
… a updateArea list in json format (OFBIZ-11759)
…a (OFBIZ-11760)

In link, added in url-mode and
in on-field-event-update-area added in event-type.

Add post,put, delete (get is the default)
…ame as for on-event-update-area (OFBIZ-11761)

Not necessary to modify model*.java because it's manage by update-area
object in the two case
* add attribute watcher-name for tag container
* add in link-type enum set-area, refresh-area and set-watcher,
refresh-watcher
* add in xxx-event-update-area, in event-type enum set-area,
refresh-area and set-watcher, refresh-watcher

Concept is:
1. container is the main piece of dynamics screen (update a part of
screen on event), a new attribute is added watcher-name, and existing
one auto-update-target is using as target

2. There are two/four new "action" usable by link - hyperlink
 * set-area (and refresh-area)
 * set-watcher (and refresh-watcher)

3. set-area is used to update a containerId, and, most of the time, uses
only for included containerId
set-watcher put some "parameters" in a watcher-name

4. when the content of a whatcher-name change, all containerId which
watch it, use their auto-update-target as target and watcher-name
content as parameters to update the container content.

5. refresh-area is similar with set-area but target used will be the
auto-update-target define at the container level and, if a watcher-name
is define for this container, it's content will be used as parameters
(for solving {} in target or as parameters if no {} in target.
…-11764)

it's a click event, when click the form is submitted
…type (OFBIZ-11765)

it's a click event, when click the field is update, it's useful in
lookup form to update field from which the lookup has been call

No modification in renderer in this commit
…vent-type (OFBIZ-11766)

it's a click event, when click all the screenlet with the areaId are
collapse

No modification in renderer in this commit
area-target can be used to detail action to do toggle, collapse or
expand
…s event-type (OFBIZ-11767)

it's a click event, when click one or all open modal area closed.
it's use for lookup and for modal created with link with layered-modal

No modification in renderer in this commit
holivier added 5 commits August 24, 2021 22:22
this tag is used to call vuejs specifics component in the standard vuejs
application (the vuejs renderer).
vuejs specifics components are similar to ftl files in html standard
renderer.
(OFBIZ-11769)

two properties files, to be able to use a logical name not a "path"
…FBIZ-11770)

When a watcherName is associated to a Portal - Portlet, it's used to
created a container (with this watcher) "around" the portlet, and so be
able to update it with a set-area, refresh-area, set-watcher,
refresh-watcher
…ent-update-area (field and form).

auto-parameters-portlet add for parameters in parameters-map:
- portalPageId
- portalPortletId
- portletSeqId
- currentAreaId
auto-parameters-portlet is used by showPortlet to be able to renderer
only one portlet, because often, it's necessary to have the 4 parameters
for a future other update (ex: button back)
@sonarcloud
Copy link

sonarcloud bot commented Aug 24, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.2% 0.2% Duplication

@JacquesLeRoux
Copy link
Contributor

Hi Olivier, what is the status here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants