Skip to content

Commit

Permalink
update to use 8.3.0 ngx TPL and replace the RSS feed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-albert committed Jun 4, 2024
1 parent 0a2590a commit 31b8ecb
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 92 deletions.
10 changes: 6 additions & 4 deletions _c8oProject/connectors/RSSConnector.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
↑default: true
server: rss.cnn.com
↓Default_transaction [transactions.HttpTransaction]:
↑default: true
https: true
port: 443
server: apod.com
trustAllServerCertificates: false
↓GetFeed [transactions.XmlHttpTransaction]:
subDir: rss/edition.rss
↑default: true
subDir: feed.rss
118 changes: 45 additions & 73 deletions _c8oProject/mobilePages/Page.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,11 @@ title: First page
textValue:
- xmlizable:
- ↑classname: com.twinsoft.convertigo.beans.ngx.components.MobileSmartSourceType
- MobileSmartSourceType: plain:Hello World
↓ButtonSet [ngx.components.UIDynamicElement-1491634611427]:
beanData: '{"ionBean":"ButtonSet","SetPosition":"plain:end"}'
tagName: ion-buttons
↓Button [ngx.components.UIDynamicElement-1491634621907]:
beanData: '{"ionBean":"Button","ButtonFormType":"plain:false"}'
tagName: ion-button
↓Icon [ngx.components.UIDynamicElement-1491634637555]:
beanData: '{"ionBean":"Icon","IconName":"plain:ellipsis-vertical-outline"}'
tagName: ion-icon
- MobileSmartSourceType: plain:Astronomy Picture of the Day
↓Content [ngx.components.UIDynamicElement-1489674805352]:
beanData: '{"ionBean":"Content"}'
comment: Page content
tagName: ion-content
↓H1 [ngx.components.UIDynamicElement-1514310804865]:
beanData: '{"ionBean":"Heading1"}'
tagName: h1
↓Text [ngx.components.UIText-1514310812815]:
textValue:
- xmlizable:
- ↑classname: com.twinsoft.convertigo.beans.ngx.components.MobileSmartSourceType
- MobileSmartSourceType: plain:CNN Demo
↓Button [ngx.components.UIDynamicElement-1514310909287]:
beanData: |
'{
Expand All @@ -76,71 +59,60 @@ title: First page
↓Event [ngx.components.UIControlEvent-1514310966235]:
comment: Use onTap preferably to onClick
↓CallSequence [ngx.components.UIDynamicAction-1514381726265]:
beanData: '{"ionBean":"CallSequenceAction","requestable":"plain:sample_HelloWorld.GetCNNFeed"}'
beanData: '{"ionBean":"CallSequenceAction","requestable":"plain:sample_HelloWorld.GetFeed"}'
↓ListContainer [ngx.components.UIDynamicElement-1514381665124]:
beanData: '{"ionBean":"List"}'
tagName: ion-list
↓Directive1 [ngx.components.UIControlDirective-1514539687603]:
directiveIndexName: idx
directiveSource:
- xmlizable:
- ↑classname: com.twinsoft.convertigo.beans.ngx.components.MobileSmartSourceType
- MobileSmartSourceType: source:{"filter":"Sequence","project":"sample_HelloWorld","input":"listen(['sample_HelloWorld.GetCNNFeed'])?.news"}
- MobileSmartSourceType: source:{"filter":"Sequence","project":"sample_HelloWorld","input":"listen(['sample_HelloWorld.GetFeed'])?.news"}
↓GenericItem [ngx.components.UIDynamicElement-1514381673163]:
beanData: '{"ionBean":"ListItem"}'
beanData: '{"ionBean":"ListItem","IonColor":"script:idx % 2 ? ''tertiary'' : ''secondary''"}'
tagName: ion-item
↓Label [ngx.components.UIDynamicElement-1643707378121]:
beanData: '{"ionBean":"Label"}'
tagName: ion-label
↓Image [ngx.components.UIDynamicElement-1514381931907]:
beanData: '{"ionBean":"Image","url":"source:{\"filter\":\"Iteration\",\"project\":\"HelloWorld\",\"input\":\"item1514539687603?.imageUrl\"}"}'
selfClose: true
tagName: img
↓H1 [ngx.components.UIDynamicElement-1514381799636]:
beanData: '{"ionBean":"Heading1"}'
tagName: h1
↓Text [ngx.components.UIText-1514381805734]:
textValue:
- xmlizable:
- ↑classname: com.twinsoft.convertigo.beans.ngx.components.MobileSmartSourceType
- MobileSmartSourceType: source:{"filter":"Iteration","project":"HelloWorld","input":"item1514539687603?.title"}
↓Paragraph [ngx.components.UIDynamicElement-1514381816549]:
beanData: '{"ionBean":"Paragraph"}'
tagName: p
↓Text [ngx.components.UIText-1514381821650]:
textValue:
- xmlizable:
- ↑classname: com.twinsoft.convertigo.beans.ngx.components.MobileSmartSourceType
- MobileSmartSourceType: source:{"filter":"Iteration","project":"HelloWorld","input":"item1514539687603?.description"}
↓FormatLayout [ngx.components.UIDynamicAttr-1643706624740]:
beanData: '{"ionBean":"FormatLayout","TextAlignment":"plain:ion-text-wrap"}'
comment: FormatLayout
tagName: div
↓Footer [ngx.components.UIDynamicElement-1491634242460]:
beanData: '{"ionBean":"Footer"}'
comment: Page footer
tagName: ion-footer
↓ToolBar [ngx.components.UIDynamicElement-1491634317538]:
beanData: '{"ionBean":"ToolBar"}'
tagName: ion-toolbar
↓ButtonSet [ngx.components.UIDynamicElement-1491634325595]:
beanData: '{"ionBean":"ButtonSet","SetPosition":"plain:start"}'
tagName: ion-buttons
↓Button [ngx.components.UIDynamicElement-1491634332730]:
beanData: '{"ionBean":"Button","ButtonFormType":"plain:false"}'
tagName: ion-button
↓Text [ngx.components.UIText-1491634340354]:
textValue:
- xmlizable:
- ↑classname: com.twinsoft.convertigo.beans.ngx.components.MobileSmartSourceType
- MobileSmartSourceType: plain:Action 1
↓ButtonSet1 [ngx.components.UIDynamicElement-1491634373539]:
beanData: '{"ionBean":"ButtonSet","SetPosition":"plain:end"}'
tagName: ion-buttons
↓Button [ngx.components.UIDynamicElement-1491634376874]:
beanData: '{"ionBean":"Button","ButtonFormType":"plain:false"}'
tagName: ion-button
↓Text [ngx.components.UIText-1491634383107]:
textValue:
- xmlizable:
- ↑classname: com.twinsoft.convertigo.beans.ngx.components.MobileSmartSourceType
- MobileSmartSourceType: plain:Action 2
↓Grid [ngx.components.UIDynamicElement-1717492806589]:
beanData: '{"ionBean":"Grid"}'
tagName: ion-grid
↓GridRow [ngx.components.UIDynamicElement-1717492806576]:
beanData: '{"ionBean":"GridRow"}'
tagName: ion-row
↓GridCol [ngx.components.UIDynamicElement-1717492806578]:
beanData: '{"ionBean":"GridCol","Size":"plain:auto"}'
tagName: ion-col
↓Image1 [ngx.components.UIDynamicElement-1514381931907]:
beanData: |
'{
"ionBean": "Image",
"url": "source:{\"filter\":\"Iteration\",\"project\":\"HelloWorld\",\"input\":\"item1514539687603?.imageUrl\"}",
"width": "plain:200px"
}'
selfClose: true
tagName: img
↓GridCol1 [ngx.components.UIDynamicElement-1717492806584]:
beanData: '{"ionBean":"GridCol"}'
tagName: ion-col
↓Label [ngx.components.UIDynamicElement-1643707378121]:
beanData: '{"ionBean":"Label"}'
tagName: ion-label
↓H1 [ngx.components.UIDynamicElement-1514381799636]:
beanData: '{"ionBean":"Heading1"}'
tagName: h1
↓Text [ngx.components.UIText-1514381805734]:
textValue:
- xmlizable:
- ↑classname: com.twinsoft.convertigo.beans.ngx.components.MobileSmartSourceType
- MobileSmartSourceType: source:{"filter":"Iteration","project":"HelloWorld","input":"item1514539687603?.title"}
↓Paragraph [ngx.components.UIDynamicElement-1514381816549]:
beanData: '{"ionBean":"Paragraph"}'
tagName: p
↓Text [ngx.components.UIText-1514381821650]:
textValue:
- xmlizable:
- ↑classname: com.twinsoft.convertigo.beans.ngx.components.MobileSmartSourceType
- MobileSmartSourceType: source:{"filter":"Iteration","project":"HelloWorld","input":"item1514539687603?.description"}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
- java.lang.String:
- ↑value: 1514539223596
- java.lang.String:
- ↑value: ./group/content[1]/@url
- ↑value: ./enclosure/@url
2 changes: 1 addition & 1 deletion c8oProject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
corsOrigin: =Origin
version: 8.3.0
↓RSSConnector [connectors.HttpConnector]: 🗏 connectors/RSSConnector.yaml
GetCNNFeed [sequences.GenericSequence]: 🗏 sequences/GetCNNFeed.yaml
GetFeed [sequences.GenericSequence]: 🗏 sequences/GetFeed.yaml
↓project [references.ProjectSchemaReference]:
projectName: mobilebuilder_tpl_8_3_0_ngx=https://github.com/convertigo/c8oprj-mobilebuilder-tpl/archive/mobilebuilder_tpl_8_3_0_ngx.zip
↓MobileApplication [core.MobileApplication]:
Expand Down
14 changes: 1 addition & 13 deletions project.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,16 @@ Hello World project demonstrating a feed reader
<details><summary><span style="color:DarkGoldenRod"><i>Transactions</i></span></summary><blockquote><p>


<details><summary><b>Default_transaction</b></summary><blockquote><p>


### ![](https://github.com/convertigo/convertigo/blob/develop/engine/src/com/twinsoft/convertigo/beans/transactions/images/httptransaction_color_16x16.png?raw=true "HttpTransaction") Default_transaction


</p></blockquote></details>

<details><summary><b>GetFeed</b></summary><blockquote><p>


### ![](https://github.com/convertigo/convertigo/blob/develop/engine/src/com/twinsoft/convertigo/beans/transactions/images/xmlhttptransaction_color_16x16.png?raw=true "XmlHttpTransaction") GetFeed


</p></blockquote></details>
</p></blockquote></details>
</p></blockquote></details>

<details><summary><span style="color:DarkGoldenRod"><i>Sequences</i></span></summary><blockquote><p>


## ![](https://github.com/convertigo/convertigo/blob/develop/engine/src/com/twinsoft/convertigo/beans/sequences/images/genericsequence_color_16x16.png?raw=true "GenericSequence") GetCNNFeed
## ![](https://github.com/convertigo/convertigo/blob/develop/engine/src/com/twinsoft/convertigo/beans/sequences/images/genericsequence_color_16x16.png?raw=true "GenericSequence") GetFeed


</p></blockquote></details>
Expand Down
118 changes: 118 additions & 0 deletions xsd/internal/RSSConnector/GetFeed.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sample_HelloWorld_ns="http://www.convertigo.com/convertigo/projects/sample_HelloWorld" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.convertigo.com/convertigo/projects/sample_HelloWorld">
<xsd:element name="RSSConnector__GetFeed" type="sample_HelloWorld_ns:RSSConnector__GetFeedRequestData">
<xsd:annotation/>
</xsd:element>
<xsd:element name="RSSConnector__GetFeedResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="response" type="sample_HelloWorld_ns:RSSConnector__GetFeedResponseData"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="RSSConnector__GetFeedResponseType">
<xsd:sequence>
<xsd:element name="document" type="sample_HelloWorld_ns:RSSConnector__GetFeedResponseData"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RSSConnector__GetFeedRequestData">
<xsd:sequence/>
</xsd:complexType>
<xsd:complexType name="RSSConnector_GetFeed_document_rss_channel_imageType">
<xsd:sequence>
<xsd:element minOccurs="0" name="title" type="xsd:string"/>
<xsd:element minOccurs="0" name="url" type="xsd:anyURI"/>
<xsd:element minOccurs="0" name="link" type="xsd:anyURI"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RSSConnector_GetFeed_document_rss_channel_item_enclosureType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="length" type="xsd:byte"/>
<xsd:attribute default="string" name="type" type="xsd:string"/>
<xsd:attribute name="url" type="xsd:anyURI"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="RSSConnector_GetFeed_document_rss_channel_itemType">
<xsd:sequence>
<xsd:element minOccurs="0" name="title" type="xsd:string"/>
<xsd:element minOccurs="0" name="link" type="xsd:anyURI"/>
<xsd:element minOccurs="0" name="guid" type="xsd:anyURI"/>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="creator" type="xsd:string"/>
<xsd:element minOccurs="0" name="pubDate" type="xsd:string"/>
<xsd:element minOccurs="0" name="description" type="xsd:string"/>
<xsd:element minOccurs="0" name="encoded" type="xsd:string"/>
<xsd:element minOccurs="0" name="enclosure" type="sample_HelloWorld_ns:RSSConnector_GetFeed_document_rss_channel_item_enclosureType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RSSConnector_GetFeed_document_rss_channelType">
<xsd:sequence>
<xsd:element minOccurs="0" name="title" type="xsd:string"/>
<xsd:element minOccurs="0" name="link" type="xsd:anyURI"/>
<xsd:element minOccurs="0" name="description" type="xsd:string"/>
<xsd:element minOccurs="0" name="lastBuildDate" type="xsd:string"/>
<xsd:element minOccurs="0" name="docs" type="xsd:anyURI"/>
<xsd:element minOccurs="0" name="generator" type="xsd:anyURI"/>
<xsd:element minOccurs="0" name="language" type="xsd:string"/>
<xsd:element minOccurs="0" name="image" type="sample_HelloWorld_ns:RSSConnector_GetFeed_document_rss_channel_imageType"/>
<xsd:element minOccurs="0" name="copyright" type="xsd:string"/>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="item" type="sample_HelloWorld_ns:RSSConnector_GetFeed_document_rss_channel_itemType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RSSConnector_GetFeed_document_rssType">
<xsd:sequence>
<xsd:element minOccurs="0" name="channel" type="sample_HelloWorld_ns:RSSConnector_GetFeed_document_rss_channelType"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:double"/>
</xsd:complexType>
<xsd:complexType name="RSSConnector__GetFeedResponseData">
<xsd:sequence>
<xsd:element minOccurs="0" name="rss" type="sample_HelloWorld_ns:RSSConnector_GetFeed_document_rssType"/>
<xsd:element minOccurs="0" name="error" type="sample_HelloWorld_ns:ConvertigoError"/>
</xsd:sequence>
<xsd:attribute name="connector" type="xsd:string"/>
<xsd:attribute name="context" type="xsd:string"/>
<xsd:attribute name="contextId" type="xsd:string"/>
<xsd:attribute name="fromStub" type="xsd:boolean"/>
<xsd:attribute name="fromcache" type="xsd:boolean"/>
<xsd:attribute name="generated" type="xsd:string"/>
<xsd:attribute name="project" type="xsd:string"/>
<xsd:attribute name="sequence" type="xsd:string"/>
<xsd:attribute name="signature" type="xsd:long"/>
<xsd:attribute name="transaction" type="xsd:string"/>
<xsd:attribute name="version" type="xsd:string"/>
<xsd:attribute name="screenclass" type="xsd:string"/>
<xsd:attribute name="userReference" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="ConvertigoErrorContextVariable">
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="value" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="ConvertigoErrorContext">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="variable" type="sample_HelloWorld_ns:ConvertigoErrorContextVariable"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ConvertigoError">
<xsd:sequence minOccurs="0">
<xsd:element name="code" type="xsd:integer"/>
<xsd:element name="message" type="xsd:string"/>
<xsd:element name="details" type="xsd:string"/>
<xsd:element name="context" type="sample_HelloWorld_ns:ConvertigoErrorContext"/>
<xsd:element name="exception" type="xsd:string"/>
<xsd:element name="stacktrace" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute name="project" type="xsd:string"/>
<xsd:attribute name="connector" type="xsd:string"/>
<xsd:attribute name="transaction" type="xsd:string"/>
<xsd:attribute name="sequence" type="xsd:string"/>
<xsd:attribute name="type">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="c8o"/>
<xsd:enumeration value="project"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:schema>

0 comments on commit 31b8ecb

Please sign in to comment.