-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathObject.view.xml
156 lines (156 loc) · 6 KB
/
Object.view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<mvc:View
controllerName="org.openui5.bestofui5.controller.Object"
xmlns:m="sap.m"
xmlns:mvc="sap.ui.core.mvc"
xmlns:form="sap.ui.layout.form"
xmlns:md="cc.md"
xmlns="sap.uxap"
xmlns:layout="sap.ui.layout"
xmlns:tnt="sap.tnt"
xmlns:cc="org.openui5.bestofui5.control"
xmlns:core="sap.ui.core"
displayBlock="true"
height="100%"
>
<ObjectPageLayout alwaysShowContentHeader="true" id="ObjectPageLayout" showAnchorBar="false" upperCaseAnchorBar="false" height="100%" class="fixImageWidth">
<headerTitle>
<ObjectPageHeader id="headerForTest" objectTitle="{data>name}" objectSubtitle="{data>description}" />
</headerTitle>
<headerContent>
<m:VBox>
<m:ObjectStatus title="{i18n>object_view_header_author}" text="{data>author}" />
<m:ObjectStatus title="{i18n>object_view_header_license}" text="{data>license}" />
<m:HBox>
<core:Icon src="sap-icon://font-awesome-icons/github" class="sapUiSmallMarginEnd" />
<m:Link text="{i18n>object_view_header_github}" href="{data>githublink}" target="_blank" />
</m:HBox>
<m:HBox>
<core:Icon src="sap-icon://font-awesome-icons/npm" class="sapUiSmallMarginEnd" />
<m:Link text="{i18n>object_view_header_npm}" href="{data>npmlink}" target="_blank" />
</m:HBox>
<m:layoutData>
<m:FlexItemData growFactor="1" />
</m:layoutData>
</m:VBox>
<m:VBox>
<tnt:InfoLabel id="downloads365" text="{i18n>object_view_header_downloads365} {data>downloads365}" renderMode="Loose" colorScheme="5" visible="{= ${data>downloads365} >= 0}" />
<tnt:InfoLabel id="downloads30" text="{i18n>object_view_header_downloads30} {data>downloadsCurrentMonth}" renderMode="Loose" colorScheme="5" visible="{= ${data>downloadsCurrentMonth} >= 0}" />
<tnt:InfoLabel
id="downloads14"
text="{i18n>object_view_header_downloads14} {data>downloadsCurrentFortnight}"
renderMode="Loose"
colorScheme="5"
visible="{= ${data>downloadsCurrentFortnight} >= 0}"
/>
<tnt:InfoLabel id="version" text="{i18n>object_view_header_version} {data>version}" renderMode="Loose" colorScheme="3" visible="{= !!${data>version}}" />
<m:layoutData>
<m:FlexItemData growFactor="1" />
</m:layoutData>
</m:VBox>
<m:VBox>
<m:ObjectStatus
title="{i18n>object_view_header_created_at}"
text="{
path: 'data>createdAt',
type: 'sap.ui.model.type.DateTime',
formatOptions: {
source: {pattern: 'yyyy-MM-ddTHH:mm:ss.SSSX'},
pattern: 'dd.MM.yyyy'
}
}"
/>
<m:ObjectStatus
title="{i18n>object_view_header_updated_at}"
text="{
path: 'data>updatedAt',
type: 'sap.ui.model.type.DateTime',
formatOptions: {
source: {pattern: 'yyyy-MM-ddTHH:mm:ss.SSSX'},
pattern: 'dd.MM.yyyy'
}
}"
/>
<m:layoutData>
<m:FlexItemData growFactor="1" />
</m:layoutData>
</m:VBox>
</headerContent>
<sections>
<ObjectPageSection id="npmSection">
<subSections>
<ObjectPageSubSection mode="Expanded" title="{i18n>object_view_section_npm}" titleUppercase="true" id="npmDownloadsSection">
<blocks>
<cc:BarChart title="{i18n>object_view_section_npm_chart_header}" color="#288bff" records="{data>downloadsHistory}">
<cc:ChartRecord label='{data>yearMonth}' value="{data>downloads}" />
</cc:BarChart>
</blocks>
</ObjectPageSubSection>
</subSections>
</ObjectPageSection>
<ObjectPageSection id="readmeSection">
<subSections>
<ObjectPageSubSection mode="Expanded" title="{i18n>object_view_section_readme}" id="readme" titleUppercase="true">
<blocks>
<md:Markdown id="test2" content="{data>readme}" baseURL="https://raw.githubusercontent.com/{data>gitHubOwner}/{data>gitHubRepo}/main///" class="wrapCodeText" />
</blocks>
</ObjectPageSubSection>
</subSections>
</ObjectPageSection>
<ObjectPageSection id="versionsSection">
<subSections>
<ObjectPageSubSection mode="Expanded" title="{i18n>object_view_section_versions}" id="versions" titleUppercase="true">
<blocks>
<m:List
items="{
path: 'data>versions/',
sorter: {
path: 'version',
descending: true
},
filters: [
{
filters: [
{
path: 'version',
operator: 'NE',
value1: 'created'
},
{
path: 'version',
operator: 'NE',
value1: 'modified'
},
{
path: 'version',
operator: 'NE',
value1: '0.0.1-security'
}
],
and: true
}
]
}"
id="listVersions"
>
<m:StandardListItem
type="Navigation"
press=".onPressStandardListItemNpmLink"
id="listVersionsItem"
title="{data>version}"
description="{
path: 'data>date',
type: 'sap.ui.model.type.DateTime',
formatOptions: {
source: {pattern: 'yyyy-MM-ddTHH:mm:ss.SSSX'},
pattern: 'dd.MM.yyyy'
}
}"
/>
</m:List>
</blocks>
</ObjectPageSubSection>
</subSections>
</ObjectPageSection>
</sections>
</ObjectPageLayout>
</mvc:View>