Skip to content

Commit

Permalink
Added wm-rn-widgets-gallery app
Browse files Browse the repository at this point in the history
  • Loading branch information
anitha-thummalapally committed Oct 31, 2022
0 parents commit b968f7d
Show file tree
Hide file tree
Showing 358 changed files with 12,095 additions and 0 deletions.
69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Information about Project Folder Structure and Files

## pom.xml
Add any maven dependencies to this file. Dependencies declared in this file will be available on the classpath.

## lib
Add custom jar files to this folder. Files added to this folder will be copied to WEB-INF/lib/ on the classpath.

## services
All services should be added via studio. Once added, services can be edited via eclipse or other editors, including adding additional classes.
Classes in this folder will be compiled when the project is run or deployed.
Files added to this folder will be copied to WEB-INF/classes/ on the classpath.
Modifications to imported services can be lost upon re-import.

To see external updates in studio, use the refresh button in the java editor.

## src/main/java
Add your application sources such as java class files to this folder.
Files added to this folder will be copied to WEB-INF/classes/ on the classpath.

## src/main/resources
Add your application resources such as properties and xml files to this folder.
Files added to this folder will be copied to WEB-INF/classes/ on the classpath.

## src/main/webapp
Add web application sources to this folder.
Files you need to know:
- **app.css:** Application CSS
- **index.html:** Can be edited directly to customize, such as including meta, script and other tags.
- **app.js:** Contains any application owned component definitions and functions.
- **app.variables.json:** Contains any application variable definition.

## src/test/java
Add your unit tests specific to the application such as JUnit tests to this folder.

## src/test/resources
Add your test resources such as properties and xml files to this folder.

## src/main/webapp/WEB-INF/data
This data directory is for HSQLDB Databases.

By default, it contains some sample databases.
If your project does not use these sample database, you can delete these files and directory to reduce the size of your project.

You can also add your own HSQLDB database or other data files to this directory. All HSQLDB databases must be in this directory.

## src/main/webapp/pages
Each project page creates a folder by the name of the page, i.e Main.
All page files in the pages folder are studio managed.
Files you need to know:
- **Page CSS (i.e. Main.css):** Contains custom css added in source, css or by applying custom styles to components.
- **Page HTML (i.e. Main.html):** Contains any custom markup added in the source, markup editor. Can be edited with the project closed.
- **Page JS (i.e. Main.js):** Can be edited via the file system. Use the refresh button in the source, script panel if you edit this file outside of studio.
- **Page Variable (i.e. Main.variable.json):** Can be edited via the file system. Use the refresh button in the source, script panel if you edit this file outside of studio.

## src/main/webapp/services
Contains service definition files used by studio. These files are not user editable.

## src/main/webapp/resources
Created upon first use of the resources panel in studio. These are the folders uses by the resources panel and resources in binding.

## src/main/webapp/WEB-INF
web.xml is a studio managed file. Use user-web.xml. Changes to user-web.xml will be merged into web.xml on the classpath.

## src/main/webapp/WEB-INF/classes
This folder is populated by studio. Do not edit or add any files to this folder. Changes will be lost. Use src/main/resources instead.

## src/main/webapp/WEB-INF/lib
This folder is populated by studio. Do not edit or add any files to this folder. Changes will be lost. Add jars into lib directory of the project or add dependencies in the pom.xml instead.
69 changes: 69 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<project name="ProjectBuildHelper" basedir=".">
<description>
Project Build Helper
</description>
<property name="webInf" location="src/main/webapp/WEB-INF"/>
<property name="uiOutputDirectory" location="target/ui-build/output-files"/>
<!-- Below are the default build values -->
<property name="cdn-url" value=""/>
<property name="optimizeUIBuild" value=""/>
<property name="build.ui.mode" value="wm"/>
<property name="app.pwa.enabled" value="false"/>

<target name="copy-libs-jar">
<mkdir dir="${webInf}/lib"/>
<echo>Copying jars from ${basedir}/lib to ${webInf}/lib</echo>
<copy todir="${webInf}/lib" overwrite="true">
<fileset dir="lib">
<exclude name="Readme.txt"/>
</fileset>
</copy>
</target>

<target name="copy-wm-project-properties">
<mkdir dir="target/classes"/>
<echo>Copying .wmproject.properties file to target/classes(classpath)</echo>
<copy file=".wmproject.properties" todir="target/classes" overwrite="true" failonerror="false"/>
</target>


<target name="cmd-template">
<condition property="cmd.executable" value="cmd" else="${cmd.name}">
<os family="windows"/>
</condition>
<condition property="cmd.argline" value="/c ${cmd.name} ${cmd.arg}" else="${cmd.arg}">
<os family="windows"/>
</condition>

<echo>Executing command "${cmd.executable}" with args "${cmd.argline}" in directory ${cmd.executable.dir}</echo>
<exec executable="${cmd.executable}" dir="${cmd.executable.dir}" failonerror="true">
<arg line="${cmd.argline}"/>
</exec>
</target>

<target name="uiBuild">
<mkdir dir="${uiOutputDirectory}"/>
<antcall target="cmd-template">
<param name="cmd.name" value="node"/>
<param name="cmd.arg"
value="ui-build.js --nodeVMArgs='${build.ui.node.args}' --runtimeUIVersion=${wavemaker.app.runtime.ui.version} --appSrc=. --optimizeUIBuild=${optimizeUIBuild}"/>
<param name="cmd.executable.dir" value="./"/>
</antcall>
</target>

<target name="generate-resources">
<delete dir="target/generated-resources"/>
<mkdir dir="target/generated-resources"/>
<copy todir="target/generated-resources" includeemptydirs="false">
<fileset dir="services" includes="**/src/**" defaultexcludes="no" casesensitive="yes" erroronmissingdir="false">
<patternset id="excluded.files">
<exclude name="**/*.java"/>
<exclude name="**/*.md"/>
</patternset>
</fileset>
<cutdirsmapper dirs="2"/>
</copy>
</target>

<target name="init" depends="copy-libs-jar,copy-wm-project-properties"></target>
</project>
7 changes: 7 additions & 0 deletions dependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[ {
"name" : "native-mobile",
"version" : "4.2",
"platformVersion" : null,
"artifactType" : "THEME",
"artifactDependencyList" : null
} ]
9 changes: 9 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"messages" : { },
"formats" : { },
"files" : {
"angular" : "en",
"fullCalendar" : null,
"moment" : null
}
}
3 changes: 3 additions & 0 deletions lib/Readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Add custom jar files to this folder. Files added to this folder will be copied to WEB-INF for deployment and on the classpath.

Files you add directly to WEB-INF will likely be lost when you deploy your project, so jar files MUST be added here.
Loading

0 comments on commit b968f7d

Please sign in to comment.