-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): add more info to object page (#75)
- Loading branch information
Showing
6 changed files
with
104 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,103 @@ | ||
<mvc:View controllerName="org.openui5.ui5community.controller.Object" | ||
xmlns="sap.m" | ||
xmlns:m="sap.m" | ||
xmlns:mvc="sap.ui.core.mvc" | ||
xmlns:semantic="sap.m.semantic" | ||
xmlns:form="sap.ui.layout.form" | ||
xmlns:md="cc.md"> | ||
xmlns:md="cc.md" | ||
xmlns="sap.uxap" | ||
xmlns:layout="sap.ui.layout" | ||
xmlns:tnt="sap.tnt"> | ||
<ObjectPageLayout id="ObjectPageLayout" upperCaseAnchorBar="false"> | ||
<headerTitle> | ||
<ObjectPageHeader id="headerForTest" | ||
objectTitle="{data>name}" | ||
objectSubtitle="{data>description}" | ||
titleSelectorTooltip="Custom Tooltip"> | ||
</ObjectPageHeader> | ||
</headerTitle> | ||
<headerContent> | ||
<layout:VerticalLayout> | ||
<m:ObjectStatus title="Author" text="{data>author}"/> | ||
<m:ObjectStatus title="License" text="{data>license}"/> | ||
<m:Link text="GitHub" href="{data>githublink}"/> | ||
<m:Link text="NPM" href="{data>npmlink}"/> | ||
</layout:VerticalLayout> | ||
<layout:VerticalLayout> | ||
<tnt:InfoLabel id="downloads365" text="Downloads last 365 days {data>downloads365}" renderMode="Loose" | ||
colorScheme="5" /> | ||
<tnt:InfoLabel id="downloads30" text="Downloads last 30 days {data>downloads30}" renderMode="Loose" | ||
colorScheme="5" /> | ||
<tnt:InfoLabel id="version" text=" Version {data>version}" renderMode="Loose" | ||
colorScheme="3" /> | ||
</layout:VerticalLayout> | ||
<layout:VerticalLayout> | ||
<m:ObjectStatus title="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="Last update" text="{ | ||
path: 'data>updatedAt', | ||
type: 'sap.ui.model.type.DateTime', | ||
formatOptions: { | ||
source: {pattern: 'yyyy-MM-ddTHH:mm:ss.SSSX'}, | ||
pattern: 'dd.MM.yyyy' | ||
} | ||
}"/> | ||
</layout:VerticalLayout> | ||
|
||
<semantic:SemanticPage id="page" title="{data>name}" enableScrolling="false" showFooter="false" busy="{objectView>/busy}" busyIndicatorDelay="{objectView>/delay}"> | ||
<semantic:content> | ||
<md:Markdown id="test" content="{data>readme}" /> | ||
</semantic:content> | ||
</semantic:SemanticPage> | ||
</headerContent> | ||
<sections> | ||
|
||
<ObjectPageSection titleUppercase="true" title="README"> | ||
<subSections> | ||
<ObjectPageSubSection titleUppercase="false"> | ||
<blocks> | ||
<md:Markdown id="test" content="{data>readme}" /> | ||
</blocks> | ||
</ObjectPageSubSection> | ||
</subSections> | ||
</ObjectPageSection> | ||
|
||
<!-- <ObjectPageSection titleUppercase="false" title="Dependencies"> | ||
<subSections> | ||
<ObjectPageSubSection titleUppercase="false"> | ||
<blocks> | ||
<m:Table id="dependenciesTable" | ||
inset="false" | ||
items="{ | ||
path: 'data>dependencies/', | ||
sorter: { | ||
path: 'Name' | ||
} | ||
}"> | ||
<m:columns> | ||
<m:Column> | ||
<m:Text text="Name" /> | ||
</m:Column> | ||
<m:Column> | ||
<m:Text text="Version" /> | ||
</m:Column> | ||
</m:columns> | ||
<m:items> | ||
<m:ColumnListItem vAlign="Middle"> | ||
<m:cells> | ||
<m:ObjectIdentifier | ||
title="{Name}" | ||
text="{value}"/> | ||
<m:Text | ||
text="{data>livereload}" /> | ||
</m:cells> | ||
</m:ColumnListItem> | ||
</m:items> | ||
</m:Table> | ||
</blocks> | ||
</ObjectPageSubSection> | ||
</subSections> | ||
</ObjectPageSection> --> | ||
</sections> | ||
</ObjectPageLayout> | ||
</mvc:View> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters