First commit
Showing
12 changed files
with
312 additions
and
0 deletions
1 | .*.sw? | 1 | .*.sw? |
2 | |||
3 | # runtime added files | ||
4 | build | ||
5 | lib/example-*.jar | ||
6 | |||
7 | # IntelliJ IDEA files | ||
8 | .idea/ | ||
9 | out/ | ||
10 | *.ipr | ||
11 | *.iws | ||
12 | *.iml | ||
13 | |||
14 | # Eclipse files (and some general ones also used by Eclipse) | ||
15 | .metadata | ||
16 | .gradle | ||
17 | bin/ | ||
18 | tmp/ | ||
19 | *.tmp | ||
20 | *.bak | ||
21 | *.swp | ||
22 | *~.nib | ||
23 | local.properties | ||
24 | .settings/ | ||
25 | .loadpath | ||
26 | |||
27 | # NetBeans files | ||
28 | nbproject/private/ | ||
29 | nbbuild/ | ||
30 | .nb-gradle/ | ||
31 | dist/ | ||
32 | nbdist/ | ||
33 | nbactions.xml | ||
34 | nb-configuration.xml | ||
35 | |||
36 | # OSX auto files | ||
37 | .DS_Store | ||
38 | .AppleDouble | ||
39 | .LSOverride | ||
40 | ._* | ||
41 | |||
42 | # Windows auto files | ||
43 | Thumbs.db | ||
44 | ehthumbs.db | ||
45 | Desktop.ini | ||
46 | |||
47 | # Linux auto files | ||
48 | *~ | ... | ... |
AUTHORS
0 → 100644
1 | Mantle Business Artifacts (http://github.com/moqui/mantle) | ||
2 | |||
3 | This software is in the public domain under CC0 1.0 Universal plus a | ||
4 | Grant of Patent License. | ||
5 | |||
6 | To the extent possible under law, the author(s) have dedicated all | ||
7 | copyright and related and neighboring rights to this software to the | ||
8 | public domain worldwide. This software is distributed without any | ||
9 | warranty. | ||
10 | |||
11 | You should have received a copy of the CC0 Public Domain Dedication | ||
12 | along with this software (see the LICENSE.md file). If not, see | ||
13 | <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
14 | |||
15 | =========================================================================== | ||
16 | |||
17 | Copyright Waiver | ||
18 | |||
19 | I dedicate any and all copyright interest in this software to the | ||
20 | public domain. I make this dedication for the benefit of the public at | ||
21 | large and to the detriment of my heirs and successors. I intend this | ||
22 | dedication to be an overt act of relinquishment in perpetuity of all | ||
23 | present and future rights to this software under copyright law. | ||
24 | |||
25 | To the best of my knowledge and belief, my contributions are either | ||
26 | originally authored by me or are derived from prior works which I have | ||
27 | verified are also in the public domain and are not subject to claims | ||
28 | of copyright by other parties. | ||
29 | |||
30 | To the best of my knowledge and belief, no individual, business, | ||
31 | organization, government, or other entity has any copyright interest | ||
32 | in my contributions, and I affirm that I will not make contributions | ||
33 | that are otherwise encumbered. | ||
34 | |||
35 | Signed by git commit adding my legal name and git username: | ||
36 | |||
37 | Written in 2024 by Michael Jones - acetousk | ||
38 | |||
39 | =========================================================================== | ||
40 | |||
41 | Grant of Patent License | ||
42 | |||
43 | I hereby grant to recipients of software a perpetual, worldwide, | ||
44 | non-exclusive, no-charge, royalty-free, irrevocable (except as stated in | ||
45 | this section) patent license to make, have made, use, offer to sell, sell, | ||
46 | import, and otherwise transfer the Work, where such license applies only to | ||
47 | those patent claims licensable by me that are necessarily infringed by my | ||
48 | Contribution(s) alone or by combination of my Contribution(s) with the | ||
49 | Work to which such Contribution(s) was submitted. If any entity institutes | ||
50 | patent litigation against me or any other entity (including a cross-claim | ||
51 | or counterclaim in a lawsuit) alleging that my Contribution, or the Work to | ||
52 | which I have contributed, constitutes direct or contributory patent | ||
53 | infringement, then any patent licenses granted to that entity under this | ||
54 | Agreement for that Contribution or Work shall terminate as of the date such | ||
55 | litigation is filed. | ||
56 | |||
57 | Signed by git commit adding my legal name and git username: | ||
58 | |||
59 | Written in 2024 by Michael Jones - acetousk |
LICENSE.md
0 → 100644
This diff is collapsed.
Click to expand it.
MoquiConf.xml
0 → 100644
1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
2 | <!-- No copyright or license for configuration file, details here are not considered a creative work. --> | ||
3 | <moqui-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-3.xsd"> | ||
4 | <screen-facade> | ||
5 | <screen location="component://webroot/screen/webroot/apps.xml"> | ||
6 | <subscreens-item name="mjml" menu-title="Moqui Mjml" menu-index="97" location="component://moqui-mjml/screen/MjmlApp.xml"/> | ||
7 | </screen> | ||
8 | </screen-facade> | ||
9 | </moqui-conf> |
README.md
0 → 100644
build.gradle
0 → 100644
1 | /* | ||
2 | * This software is in the public domain under CC0 1.0 Universal plus a | ||
3 | * Grant of Patent License. | ||
4 | * | ||
5 | * To the extent possible under law, the author(s) have dedicated all | ||
6 | * copyright and related and neighboring rights to this software to the | ||
7 | * public domain worldwide. This software is distributed without any | ||
8 | * warranty. | ||
9 | * | ||
10 | * You should have received a copy of the CC0 Public Domain Dedication | ||
11 | * along with this software (see the LICENSE.md file). If not, see | ||
12 | * <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
13 | */ | ||
14 | |||
15 | apply plugin: 'groovy' | ||
16 | |||
17 | version = '3.0.0' | ||
18 | // sourceCompatibility = '1.8' | ||
19 | def moquiDir = file(projectDir.absolutePath + '/../../..') | ||
20 | def frameworkDir = file(moquiDir.absolutePath + '/framework') | ||
21 | |||
22 | repositories { | ||
23 | flatDir name: 'localLib', dirs: frameworkDir.absolutePath + '/lib' | ||
24 | mavenCentral() | ||
25 | } | ||
26 | |||
27 | // Log4J has annotation processors, disable to avoid warning | ||
28 | tasks.withType(JavaCompile) { options.compilerArgs << "-proc:none" } | ||
29 | tasks.withType(GroovyCompile) { options.compilerArgs << "-proc:none" } | ||
30 | |||
31 | dependencies { | ||
32 | implementation project(':framework') | ||
33 | testImplementation project(':framework').configurations.testImplementation.allDependencies | ||
34 | } | ||
35 | |||
36 | // by default the Java plugin runs test on build, change to not do that (only run test if explicit task) | ||
37 | // no longer workds as of gradle 4.8 or possibly earlier, use clear() instead: check.dependsOn.remove(test) | ||
38 | check.dependsOn.clear() | ||
39 | |||
40 | jar { | ||
41 | destinationDirectory = file(projectDir.absolutePath + '/lib') | ||
42 | // this is required to change from the default that includes the path to this module (ie 'runtime/component/mjml') | ||
43 | archiveBaseName = 'moqui-mjml' | ||
44 | } | ||
45 | task cleanLib(type: Delete) { delete file(jar.archivePath) } | ||
46 | clean.dependsOn cleanLib | ||
47 | |||
48 | test { | ||
49 | useJUnitPlatform() | ||
50 | testLogging { events "passed", "skipped", "failed" } | ||
51 | testLogging.showStandardStreams = true; testLogging.showExceptions = true | ||
52 | maxParallelForks 1 | ||
53 | |||
54 | dependsOn cleanTest | ||
55 | |||
56 | systemProperty 'moqui.runtime', moquiDir.absolutePath + '/runtime' | ||
57 | systemProperty 'moqui.conf', 'conf/MoquiDevConf.xml' | ||
58 | systemProperty 'moqui.init.static', 'true' | ||
59 | maxHeapSize = "512M" | ||
60 | |||
61 | classpath += files(sourceSets.main.output.classesDirs) | ||
62 | // filter out classpath entries that don't exist (gradle adds a bunch of these), or ElasticSearch JarHell will blow up | ||
63 | classpath = classpath.filter { it.exists() } | ||
64 | |||
65 | beforeTest { descriptor -> | ||
66 | logger.lifecycle("Running test: ${descriptor}") | ||
67 | } | ||
68 | } |
data/MjmlSecurityData.xml
0 → 100644
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!-- | ||
3 | This software is in the public domain under CC0 1.0 Universal plus a | ||
4 | Grant of Patent License. | ||
5 | |||
6 | To the extent possible under law, the author(s) have dedicated all | ||
7 | copyright and related and neighboring rights to this software to the | ||
8 | public domain worldwide. This software is distributed without any | ||
9 | warranty. | ||
10 | |||
11 | You should have received a copy of the CC0 Public Domain Dedication | ||
12 | along with this software (see the LICENSE.md file). If not, see | ||
13 | <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
14 | --> | ||
15 | <entity-facade-xml type="seed-initial"> | ||
16 | <!-- NOTE: subscreen configuration is now in the MoquiConf.xml file instead of DB records | ||
17 | <moqui.screen.SubscreensItem screenLocation="component://webroot/screen/webroot/apps.xml" subscreenName="mjml" menuTitle="Example" | ||
18 | menuIndex="97" menuInclude="Y" subscreenLocation="component://mjml/screen/MjmlApp.xml"/> | ||
19 | --> | ||
20 | |||
21 | <!-- Artifact group for all of the Moqui Mjml application via the MoquiMjmlApp screen (the root screen for the app) --> | ||
22 | <moqui.security.ArtifactGroup artifactGroupId="MOQUI_MJML_APP" description="Moqui Mjml App (via root screen)"/> | ||
23 | <moqui.security.ArtifactGroupMember artifactGroupId="MOQUI_MJML_APP" artifactTypeEnumId="AT_XML_SCREEN" | ||
24 | inheritAuthz="Y" artifactName="component://moqui-mjml/screen/MjmlApp.xml"/> | ||
25 | <!-- Full permissions for the ADMIN user group --> | ||
26 | <moqui.security.ArtifactAuthz artifactAuthzId="MOQUI_MJML_AUTHZ_ALL" userGroupId="ADMIN" artifactGroupId="MOQUI_MJML_APP" | ||
27 | authzTypeEnumId="AUTHZT_ALWAYS" authzActionEnumId="AUTHZA_ALL"/> | ||
28 | |||
29 | <!-- Artifact group for all of the Moqui Mjml REST API via the mjml resource (the root resource) --> | ||
30 | <moqui.security.ArtifactGroup artifactGroupId="MOQUI_MJML_API" description="Example REST API (via root resource)"/> | ||
31 | <moqui.security.ArtifactGroupMember artifactGroupId="MOQUI_MJML_API" artifactTypeEnumId="AT_REST_PATH" | ||
32 | inheritAuthz="Y" artifactName="/example"/> | ||
33 | <!-- Full permissions for the ADMIN user group --> | ||
34 | <moqui.security.ArtifactAuthz artifactAuthzId="MOQUI_MJML_API_AUTHZ_ALL" userGroupId="ADMIN" artifactGroupId="MOQUI_MJML_API" | ||
35 | authzTypeEnumId="AUTHZT_ALWAYS" authzActionEnumId="AUTHZA_ALL"/> | ||
36 | </entity-facade-xml> |
entity/MjmlEntities.xml
0 → 100644
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!-- | ||
3 | This software is in the public domain under CC0 1.0 Universal plus a | ||
4 | Grant of Patent License. | ||
5 | |||
6 | To the extent possible under law, the author(s) have dedicated all | ||
7 | copyright and related and neighboring rights to this software to the | ||
8 | public domain worldwide. This software is distributed without any | ||
9 | warranty. | ||
10 | |||
11 | You should have received a copy of the CC0 Public Domain Dedication | ||
12 | along with this software (see the LICENSE.md file). If not, see | ||
13 | <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
14 | --> | ||
15 | <entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/entity-definition-3.xsd"> | ||
16 | |||
17 | </entities> |
lib/README
0 → 100644
screen/MjmlApp.xml
0 → 100644
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!-- | ||
3 | This software is in the public domain under CC0 1.0 Universal plus a | ||
4 | Grant of Patent License. | ||
5 | |||
6 | To the extent possible under law, the author(s) have dedicated all | ||
7 | copyright and related and neighboring rights to this software to the | ||
8 | public domain worldwide. This software is distributed without any | ||
9 | warranty. | ||
10 | |||
11 | You should have received a copy of the CC0 Public Domain Dedication | ||
12 | along with this software (see the LICENSE.md file). If not, see | ||
13 | <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
14 | --> | ||
15 | <screen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
16 | xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/xml-screen-3.xsd" | ||
17 | menu-image="fa fa-flash" menu-image-type="icon" standalone="true"> | ||
18 | |||
19 | |||
20 | |||
21 | <widgets> | ||
22 | |||
23 | </widgets> | ||
24 | </screen> |
service/mjml.rest.xml
0 → 100644
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!-- | ||
3 | This software is in the public domain under CC0 1.0 Universal plus a | ||
4 | Grant of Patent License. | ||
5 | |||
6 | To the extent possible under law, the author(s) have dedicated all | ||
7 | copyright and related and neighboring rights to this software to the | ||
8 | public domain worldwide. This software is distributed without any | ||
9 | warranty. | ||
10 | |||
11 | You should have received a copy of the CC0 Public Domain Dedication | ||
12 | along with this software (see the LICENSE.md file). If not, see | ||
13 | <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
14 | --> | ||
15 | |||
16 | <!-- General Guideline Verbs: GET=find, POST=create, PUT=store (create or update), PATCH=update, DELETE=delete --> | ||
17 | |||
18 | <resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/rest-api-3.xsd" | ||
19 | name="moqui-mjml" displayName="Mjml REST API" version="2.0.0"> | ||
20 | |||
21 | </resource> |
service/moqui/mjml/MjmlServices.xml
0 → 100644
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!-- | ||
3 | This software is in the public domain under CC0 1.0 Universal plus a | ||
4 | Grant of Patent License. | ||
5 | |||
6 | To the extent possible under law, the author(s) have dedicated all | ||
7 | copyright and related and neighboring rights to this software to the | ||
8 | public domain worldwide. This software is distributed without any | ||
9 | warranty. | ||
10 | |||
11 | You should have received a copy of the CC0 Public Domain Dedication | ||
12 | along with this software (see the LICENSE.md file). If not, see | ||
13 | <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
14 | --> | ||
15 | <services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/service-definition-3.xsd"> | ||
16 | |||
17 | |||
18 | </services> |
-
Please register or sign in to post a comment