-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8ba93c
commit 8ef6e28
Showing
19 changed files
with
417 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...dyn/nop-dyn-service/src/test/resources/_vfs/_delta/default/nop/core/xlib/meta-reload.xlib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<lib x:schema="/nop/schema/xlib.xdef" | ||
xmlns:x="/nop/schema/xdsl.xdef" xmlns:xdsl="xdsl" xmlns:xpl="xpl" xmlns:c="c" xmlns:ui="ui"> | ||
|
||
<tags> | ||
<DefaultMetaPostExtends outputMode="node"> | ||
<attr name="_dsl_root" implicit="true"/> | ||
|
||
<source> | ||
<c:script> | ||
logInfo("DefaultM2222___{}", _dsl_root) | ||
</c:script> | ||
<thisLib:GenDictLabelFields/> | ||
</source> | ||
</DefaultMetaPostExtends> | ||
|
||
|
||
<GenDictLabelFields outputMode="node"> | ||
<attr name="_dsl_root" implicit="true"/> | ||
|
||
<source> | ||
<meta> | ||
<props> | ||
<c:for var="prop" items="${_dsl_root.childByTag('props').children}"> | ||
<c:script><![CDATA[ | ||
let name = prop.attrText('name'); | ||
if(name.endsWith("_label")) | ||
continue; | ||
let dict = prop.childAttr('schema','dict'); | ||
if(!dict) | ||
continue; | ||
]]></c:script> | ||
|
||
<prop name="${name}" graphql:labelProp="${name}_label" | ||
xpl:if="!prop.hasAttr('graphql:labelProp')"> | ||
</prop> | ||
|
||
<prop name="${name}_label" displayName="${prop.getAttr('displayName')}" internal="true" | ||
graphql:dictName="${dict}" graphql:dictValueProp="${name}"> | ||
<schema type="String"/> | ||
</prop> | ||
</c:for> | ||
</props> | ||
</meta> | ||
</source> | ||
</GenDictLabelFields> | ||
</tags> | ||
</lib> |
26 changes: 26 additions & 0 deletions
26
...leId}/model/{entityMeta.bizObjName}/{!!entityModel}{entityModel.shortName}_one.xmeta.xgen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<meta x:schema="/nop/schema/xmeta.xdef" xmlns:x="/nop/schema/xdsl.xdef" x:dump="true"> | ||
<entityName>${entityModel.name}</entityName> | ||
|
||
<primaryKey>${_.join(entityModel.pkColumnNames,',')}</primaryKey> | ||
<c:script>const dispCol = entityModel.getColumnByTag('disp')</c:script> | ||
<displayProp xpl:if="dispCol">${dispCol.name}</displayProp> | ||
|
||
<c:print> | ||
<x:gen-extends111> | ||
<meta-reload:DefaultMetaGenExtends xpl:lib="/nop/core/xlib/meta-reload.xlib"/> | ||
</x:gen-extends111> | ||
|
||
<x:post-extends> | ||
<meta-reload:DefaultMetaPostExtends xpl:lib="/nop/core/xlib/meta-reload.xlib"/> | ||
</x:post-extends> | ||
</c:print> | ||
|
||
<c:import from="/nop/codegen/xlib/meta-gen.xlib"/> | ||
|
||
<props> | ||
<c:for var="col" items="${entityModel.columns}"> | ||
<prop name="${col.name}___11111" displayName="${col.displayName}" propId="${col.propId}"/> | ||
</c:for> | ||
</props> | ||
<meta-gen:GenMetaExt entityModel="${entityModel}" xpl:lib="/nop/codegen/xlib/meta-gen.xlib"/> | ||
</meta> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.