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 #57

Draft
wants to merge 24 commits into
base: trunk
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e663fb3
Import VueJs component from ofbizextra repository and cleaning of it
May 30, 2020
4e188c4
examplefjs plugin initialisation, copy from ofbizextra examplefjs plugin
Jun 1, 2020
a0b0ee2
patch synchronization after ofbiz-framework commit a5ab396
Jun 5, 2020
0415ee9
themeFrontjs plugin initialisation, copy from ofbizextra flatgreyfjs
Oct 23, 2020
f84d9da
partyfjs plugin initialisation, copy from ofbizextra partymgrfjs plugin
Jun 6, 2020
c4c85ab
vuejs: Patch correction for OFBIZ-11769 Add icon management
Jun 6, 2020
29e77a2
partyfjs: correction about vuejs name, change old name to the new one
Jun 6, 2020
b6ceab6
themefrontjs: update it to not load javascript (not used by vuejs app)
Jun 6, 2020
7beb2bf
vuejs: correction for theme old name
Jun 9, 2020
1dfed71
first corrections after sonarcloud remarks
Jun 9, 2020
a0dbbf2
vuejs: patch OFBIZ-11768 synchro after ofbiz commit f21dbd6
Jun 9, 2020
6ad10a7
sonarcloud remarks corrections, remove unused files, and change table to
Jun 9, 2020
3bae719
themefrontjs: update jquery-min release in header.ftl (used by
Jun 17, 2020
9ec4584
Add exampleFjs part of ofbiz-Resource-REST-reference
Jun 20, 2020
19a1ed3
vuejs: start review of documentation, rename file and start change
Jul 2, 2020
d072110
Added th to VueDisplayField.vue table.
ArkBash Aug 3, 2020
9aa9069
Improved: WidgetWorker should not write generated html to Appendable
Aug 5, 2020
337f609
FrontJsFormRenderer, temporary no more used of buildHyperlinkUri, but
Aug 5, 2020
ded1bb7
synchro ofbiz after e0a840a commit (OFBIZ-11809), so replace renderSc…
Jan 13, 2021
992ee19
in themefrontjs plugin add a main-decorator dedicated to login to avo…
Feb 12, 2021
7886773
vuejs plugin: add role="none" for table to avoid sonarcloud bug beca…
Feb 12, 2021
12f1d24
correction on documentation to avoid warning during generation
Mar 3, 2021
2ac85e5
documented: add jbake tag to generate as a document and correction on…
Mar 3, 2021
a3527e1
update package.json to upgrade some version and remove unused package
Apr 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
vuejs: patch OFBIZ-11768 synchro after ofbiz commit f21dbd6
for add vuejs as children of html
  • Loading branch information
holivier committed Feb 12, 2021
commit a0dbbf2fa185cb0fc68ec78313d89f372e067218
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 55fc09561ec975be0fc91f4eaa4f3c64175f330b Mon Sep 17 00:00:00 2001
From 912a0cc31a1bf75625537bc657946550c5b738c2 Mon Sep 17 00:00:00 2001
From: holivier <[email protected]>
Date: Wed, 27 May 2020 11:43:08 +0200
Subject: [PATCH 11/14] Improved: add vuejs as children tag of html tag in
@@ -63,18 +63,18 @@ index 0ea33934fd..44657bf1a1 100644
}

diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/HtmlWidget.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/HtmlWidget.java
index b7a9cc94bc..cbca214aa1 100644
index e03fe38027..5a4ff24fbb 100644
--- a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/HtmlWidget.java
+++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/HtmlWidget.java
@@ -39,6 +39,7 @@ import org.apache.ofbiz.base.util.cache.UtilCache;
import org.apache.ofbiz.base.util.collections.MapStack;
@@ -40,6 +40,7 @@ import org.apache.ofbiz.base.util.collections.MapStack;
import org.apache.ofbiz.base.util.string.FlexibleStringExpander;
import org.apache.ofbiz.base.util.template.FreeMarkerWorker;
import org.apache.ofbiz.security.CsrfUtil;
+import org.apache.ofbiz.widget.WidgetFactory;
import org.apache.ofbiz.widget.renderer.ScreenRenderer;
import org.apache.ofbiz.widget.renderer.ScreenStringRenderer;
import org.apache.ofbiz.widget.renderer.html.HtmlWidgetRenderer;
@@ -126,6 +127,8 @@ public class HtmlWidget extends ModelScreenWidget {
@@ -130,6 +131,8 @@ public class HtmlWidget extends ModelScreenWidget {
subWidgets.add(new HtmlTemplate(modelScreen, childElement));
} else if ("html-template-decorator".equals(childElement.getNodeName())) {
subWidgets.add(new HtmlTemplateDecorator(modelScreen, childElement));
@@ -84,7 +84,7 @@ index b7a9cc94bc..cbca214aa1 100644
throw new IllegalArgumentException("Tag not supported under the platform-specific -> html tag with name: "
+ childElement.getNodeName());
diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelScreenWidget.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelScreenWidget.java
index 97ec2258c0..453519343c 100644
index 8a7e09d5a6..04ffde9ea8 100644
--- a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelScreenWidget.java
+++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelScreenWidget.java
@@ -1069,6 +1069,71 @@ public abstract class ModelScreenWidget extends ModelWidget {
@@ -214,7 +214,7 @@ index 13263adf7d..7ea4dfa1eb 100644
public void renderImage(Appendable writer, Map<String, Object> context, ModelScreenWidget.ScreenImage image) throws IOException;

diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroScreenRenderer.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroScreenRenderer.java
npmindex a8cf74e68b..bb627fc23d 100644
index a8cf74e68b..bb627fc23d 100644
--- a/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroScreenRenderer.java
+++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/renderer/macro/MacroScreenRenderer.java
@@ -223,6 +223,10 @@ public class MacroScreenRenderer implements ScreenStringRenderer {