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

Onboard Open Weather Connector to Axon-ivy market #2

Merged
merged 46 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ccc556d
Initial commit
ndkhanh-axonivy Jan 11, 2024
6189f03
product-name
ndkhanh-axonivy Jan 11, 2024
45b1b2c
Initial project setup
ndkhanh-axonivy Jan 11, 2024
0a8b5dd
Init project
ndkhanh-axonivy Jan 22, 2024
137d599
Update chart listener
ndkhanh-axonivy Jan 23, 2024
4b8d8cf
Update pom
khanhnd17 Jan 23, 2024
36df516
Merge branch 'master' of https://github.com/ndkhanh-axonivy/open-weat…
khanhnd17 Jan 23, 2024
2be3e86
Fill real data to UI
ndkhanh-axonivy Jan 25, 2024
e564c37
Update forecast weather
ndkhanh-axonivy Jan 26, 2024
a6842b5
Merge branch 'master' of https://github.com/ndkhanh-axonivy/open-weat…
khanhnd17 Jan 27, 2024
4a8f782
Add action for UI
khanhnd17 Jan 28, 2024
67a6914
Update panChart
ndkhanh-axonivy Jan 29, 2024
ed062e2
Refactor code
ndkhanh-axonivy Feb 2, 2024
e7be950
refactor html
ndkhanh-axonivy Feb 4, 2024
54f54c1
Update new chart pop
ndkhanh-axonivy Feb 14, 2024
c9562e9
update converter feature
ndkhanh-axonivy Feb 17, 2024
785fa45
Refactor
ndkhanh-axonivy Feb 18, 2024
46d8c66
Enhance UI
ndkhanh-axonivy Feb 20, 2024
6be6ddc
Update feature pan chart when first time switch to another tab
ndkhanh-axonivy Feb 20, 2024
c99987a
remove unused comment
ndkhanh-axonivy Feb 20, 2024
9ed75bc
Add AuthFeature and update README.md
ndkhanh-axonivy Feb 21, 2024
735f22a
Update README.md
ndkhanh-axonivy Feb 21, 2024
8f180cc
Merge branch 'master' of https://github.com/ndkhanh-axonivy/open-weat…
ndkhanh-axonivy Feb 22, 2024
85421d6
Remove Product project sample
ndkhanh-axonivy Feb 22, 2024
436dceb
Update variable file
ndkhanh-axonivy Feb 22, 2024
0b6c7d3
Update precipitation chart
ndkhanh-axonivy Feb 23, 2024
7d78b3a
Update test process for weather geo
ndkhanh-axonivy Feb 23, 2024
220cb1e
Update unit test for ivy process
ndkhanh-axonivy Mar 5, 2024
85e0584
Merge branch 'master' of https://github.com/ndkhanh-axonivy/open-weat…
ndkhanh-axonivy Mar 5, 2024
2e9833f
Reformat process UI
ndkhanh-axonivy Mar 5, 2024
ba02436
Rename formatted to postfix name
ndkhanh-axonivy Mar 5, 2024
566f07f
Remove appId value in demo project
ndkhanh-axonivy Mar 5, 2024
20e7c79
Update groupId in product project
ndkhanh-axonivy Mar 5, 2024
c699ddb
Update README with how to get api key
ndkhanh-axonivy Mar 5, 2024
f615a8c
Refactor variable name
ndkhanh-axonivy Mar 5, 2024
800b493
Remove hard string and update cms
ndkhanh-axonivy Mar 5, 2024
7a22a50
Add dark theme
ndkhanh-axonivy Mar 6, 2024
d6dcc92
Update dark mode theme
ndkhanh-axonivy Mar 6, 2024
a5d0651
Remove unused function
ndkhanh-axonivy Mar 7, 2024
4fc2815
Delete unused images
ndkhanh-axonivy Mar 7, 2024
7f6b690
Update README.md
ndkhanh-axonivy Mar 12, 2024
75fb460
Delete open-weather-connector-product/images/forecast-sub-process.png
ndkhanh-axonivy Mar 12, 2024
619d6f6
Handle feedbacks
ndkhanh-axonivy Mar 12, 2024
bede198
Fix unit test errors
ndkhanh-axonivy Mar 13, 2024
9bb1062
Handle feedbacks
ndkhanh-axonivy Mar 14, 2024
a389fd6
Add custom for Units
ndkhanh-axonivy Mar 14, 2024
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
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>open-weather-connector-modules</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
4 changes: 4 additions & 0 deletions .settings/org.eclipse.m2e.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
15 changes: 0 additions & 15 deletions MY-PRODUCT-NAME-product/README.md

This file was deleted.

67 changes: 0 additions & 67 deletions MY-PRODUCT-NAME-product/pom.xml

This file was deleted.

70 changes: 0 additions & 70 deletions MY-PRODUCT-NAME-product/product.json

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# MY-PRODUCT-NAME
# Open Weather Connector

[![CI Build](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml)
[![CI Build](https://github.com/axonivy-market/open-weather-connector/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-market/open-weather-connector/actions/workflows/ci.yml)

"YOUR SHORT DESCRIPTION GOES HERE"
The Open Weather Connector provides to easily retrieve weather data, forecasts, air quality information, and location coordinates for any location worldwide by integrating the [OpenWeatherMap API](https://openweathermap.org/).

Read our [documentation](MY-PRODUCT-NAME-product/README.md).
Read our [documentation](open-weather-connector-product/README.md).
33 changes: 33 additions & 0 deletions open-weather-connector-demo/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**/*.ivyClass|**/*.p.json|**/*.rddescriptor|**/*.xhtml" kind="src" path="src_hd">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src_wsproc">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src_dataClasses">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry exported="true" kind="con" path="IVY_CONTAINER"/>
<classpathentry kind="con" path="WEBAPP_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
19 changes: 19 additions & 0 deletions open-weather-connector-demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# general
Thumbs.db
.DS_Store
*~
*.log

# java
*.class
hs_err_pid*

# maven
target/
lib/mvn-deps/

# ivy
classes/
src_dataClasses/
src_wsproc/
logs/
49 changes: 49 additions & 0 deletions open-weather-connector-demo/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>open-weather-connector-demo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>ch.ivyteam.ivy.designer.dataClasses.ui.ivyDataClassBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>ch.ivyteam.ivy.designer.process.ui.ivyWebServiceProcessClassBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>ch.ivyteam.ivy.designer.ide.ivyModelValidationBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>ch.ivyteam.ivy.project.IvyProjectNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions open-weather-connector-demo/.settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="webContent"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.connector.openweather.open.weather.connector.demo.Data
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.connector.openweather.open.weather.connector.demo
ch.ivyteam.ivy.project.preferences\:PRIMEFACES_VERSION=11
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=100000
eclipse.preferences.version=1
10 changes: 10 additions & 0 deletions open-weather-connector-demo/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=17
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="open-weather-connector-demo">
<wb-resource deploy-path="/" source-path="/webContent" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src_hd"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src_wsproc"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src_dataClasses"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/js"/>
<property name="context-root" value="open-weather-connector-demo"/>
<property name="java-output-path" value="/open-weather-connector-demo/target/classes"/>
</wb-module>
</project-modules>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<root>
<facet id="jst.jsf">
<node name="libprov">
<attribute name="provider-id" value="jsf-user-library-provider"/>
</node>
</facet>
</root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="17"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="jst.jsf" version="2.1"/>
</faceted-project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
css-profile/<project>=org.eclipse.wst.css.core.cssprofile.css3
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Window
26 changes: 26 additions & 0 deletions open-weather-connector-demo/cms/cms_en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Dialogs:
com:
axonivy:
connector:
openweather:
demo:
ui:
ForecastWeatherDemo:
CelsiusNotation: °C
CityNameLabel: City name
CountryCodeLabel: Country code
FahrenheitNotation: °F
Header: Find Weather Forecasts in Any City
HumidityLabel: Humidity
PrecipitationLabel: Precipitation
SearchLabel: Search
StateCodeLabel: State code
TemperatureLabel: Temperature
Title: ForecastWeatherDemo
WindSpeedLabel: Wind speed
Processes:
ForecastWeatherDemo:
Tasks:
DisplayForecastWeather:
name: Display forecast weather
name: Get forecast weather
Loading
Loading