Skip to content

Commit

Permalink
feat: add link to bestofcapjs
Browse files Browse the repository at this point in the history
  • Loading branch information
marianfoo committed May 31, 2024
1 parent 06bddf1 commit 6bfda01
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/i18n_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ all_packages_controller_queryparsing=Could not parse search query
app_view_addyourpackage=Add your own package
app_view_gotogithub=Go to the GitHub repository
app_view_gotobestofjs=inspired by Best of JS
app_view_gotobestofcap=Best of cap-js
app_view_gotodotabap=Open Source ABAP Projects
app_view_search_placeholder=Search for...
app_view_link_share_tooltip=Copy search link to clipboard
Expand Down
9 changes: 9 additions & 0 deletions src/view/App.view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
core:require="{ sapMLib: 'sap/m/library' }"
press="sapMLib.URLHelper.redirect('https://bestofjs.org/', true)"
/>
<Button
visible="{= ${device>/system/desktop}}"
text="bestofcapjs"
class="openui5headerButton sapUiNoMargin textColorWhite"
icon="sap-icon://cloud"
type="Transparent"
core:require="{ sapMLib: 'sap/m/library' }"
press="sapMLib.URLHelper.redirect('https://bestofcapjs.org/', true)"
/>
<Button
visible="{= ${device>/system/desktop}}"
text="dotabap"
Expand Down
13 changes: 13 additions & 0 deletions src/view/LinkHeader.fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@
<OverflowToolbarLayoutData priority="AlwaysOverflow" />
</layoutData>
</Button>
<Button
class="sapUiTinyMargin openui5headerButton"
core:require="{ sapMLib: 'sap/m/library' }"
text="{i18n>app_view_gotobestofcap}"
type="Transparent"
icon="sap-icon://cloud"
press="sapMLib.URLHelper.redirect('https://bestofcapjs.org/', true)"
visible="{= ${device>/system/phone}}"
>
<layoutData>
<OverflowToolbarLayoutData priority="AlwaysOverflow" />
</layoutData>
</Button>
<Button
class="sapUiTinyMargin openui5headerButton"
core:require="{ sapMLib: 'sap/m/library' }"
Expand Down

0 comments on commit 6bfda01

Please sign in to comment.