[-]
[+]
|
Changed |
_service:tar_git:install-history.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:install-history.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -2,9 +2,7 @@
<service name="tar_git">
<param name="url">https://codeberg.org/nephros/install-history</param>
<param name="branch"></param>
- <!--
- <param name="revision">0.9.10</param>
- -->
+ <param name="revision">0.9.10+git1</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Changed |
_service:tar_git:install-history-0.9.10+git1.tar.gz/qml/pages/MainPage.qml
^
|
@@ -1,11 +1,11 @@
import QtQuick 2.6
import Sailfish.Silica 1.0
+import Sailfish.Silica.Background 1.0
Page {
id: page
- property bool unclutter: false
-
+ PageHeader { id: header ; title: qsTr("Install History") ; description: qsTr("%L1 records").arg(appHistoryModel.count)}
DockedPanel { id: detailInfo
property var date
@@ -21,32 +21,41 @@
modal: true
//clip: true
animationDuration : 250
- height: content.height
+ height:detailCol.height
+ //height:Theme.itemSizeMedium * 3
width: parent.width
- //background: Rectangle {
+ /*
Rectangle {
- clip: true
- opacity: 1.0
anchors.fill: parent
anchors.centerIn: parent
radius: Theme.paddingSmall
- color: Theme.rgba(Theme.overlayBackgroundColor, 1.0)
- }
- Separator { anchors.verticalCenter: parent.top; anchors.horizontalCenter: parent.horizontalCenter;
- width: parent.width ; height: Theme.paddingSmall
- color: Theme.primaryColor;
- horizontalAlignment: Qt.AlignHCenter
+ color: Theme.rgba(Theme.secondaryColor, 0.5)
}
- Row { id: content
+ */
+ background: ColorBackground { color: Theme.overlayBackgroundColor }
+ //background: ThemeBackground {
+ // material: BlurMaterial {}
+ // color: Theme.highlightDimmerFromColor(Theme.secondaryHighlightColor, Theme.colorScheme)
+ // highlightColor: Theme.highlightColor
+ // opacity: Theme.opacityOverlay
+ //}
+ Column {
+ id: detailCol
anchors.centerIn: parent
width: parent.width
+ //anchors.fill: parent
spacing: Theme.paddingMedium
- padding: Theme.paddingLarge
- Image { id: icon
- anchors.verticalCenter: detailCol.verticalCenter
- width: sourceSize.width
- source: detailInfo.hasIcon ? "image://theme/" + detailInfo.appName : "image://theme/icon-m-file-rpm"
- opacity: detailInfo.hasIcon ? 1.0 : 0.8
+ DetailItem{ label: qsTr("Package Name"); value: detailInfo.appName ; }
+ DetailItem{ label: qsTr("Version"); value: detailInfo.version ; }
+ DetailItem{ label: detailInfo.install ? qsTr("Installed") : qsTr("Removed");
+ //value: Format.formatDate(detailInfo.date, Formatter.DateMedium)
+ value: Format.formatDate(detailInfo.dateTime, Formatter.TimepointSectionRelative)
+ + " " + Format.formatDate(detailInfo.dateTime, Formatter.TimeValue)
+ }
+ DetailItem{ label: qsTr("Repository") ; value: detailInfo.repo ? detailInfo.repo : qsTr("n/a")}
+ Image {
+ anchors.horizontalCenter: parent.horizontalCenter
+ source: detailInfo.hasIcon ? "image://theme/" + detailInfo.appName: ""
sourceSize.width: Theme.iconSizeLarge
sourceSize.height: Theme.iconSizeLarge
fillMode: Image.PreserveAspectFit
@@ -54,258 +63,225 @@
smooth: false
asynchronous: true
}
- Column { id: detailCol
- width: Math.max(implicitWidth, parent.width - icon.width)
- Repeater { model: detailModel; delegate: DetailItem{ alignment: Qt.AlignLeft; label: lbl; value: val } }
- }
- }
- ListModel{ id: detailModel }
- onExpandedChanged: updateModel()
- function updateModel() {
- detailModel.clear();
- detailModel.append( { "lbl": qsTr("Package"), "val": detailInfo.appName });
- detailModel.append( { "lbl": qsTr("Version"), "val": detailInfo.version });
- detailModel.append( { "lbl": detailInfo.install ? qsTr("Installed") : qsTr("Removed"),
- "val": Format.formatDate(detailInfo.dateTime, Formatter.DateMedium)
- + " " + Format.formatDate(detailInfo.dateTime, Formatter.TimeValue)
- });
- detailModel.append( { "lbl": qsTr("Repository"), "val": detailInfo.repo ? detailInfo.repo : qsTr("n/a") } );
}
}
- PullDownMenu { id: pdp
- flickable: flick
- MenuItem { text: page.unclutter ? qsTr("Verbose Display") : qsTr("Reduced Display") ;
- onClicked: page.unclutter = !page.unclutter
- }
- MenuItem { text: dateSearch.visible ? qsTr("Hide search") : qsTr("Search by Date") ;
- onClicked: {
- dateSearch.visible = !dateSearch.visible
- nameSearch.visible = false
- }
- }
- MenuItem { text: nameSearch.visible ? qsTr("Hide search") : qsTr("Search by Name") ;
- onClicked: {
- nameSearch.visible = !nameSearch.visible
- dateSearch.visible = false
- }
- }
- }
- SilicaFlickable { id: flick
- anchors.fill: parent
- PageHeader { id: header ; title: qsTr("Install History") ; description: qsTr("%L1 records").arg(appHistoryModel.count)}
- Column {
- id: searchBar
- anchors.top: header.bottom
+ Column {
+ id: searchBar
+ anchors.top: header.bottom
+ width: parent.width
+ ComboBox {
+ id: combo
+ label: qsTr("Jump to…")
width: parent.width
- SearchField { id: dateSearch
- //canHide: true;
- visible: false
- readOnly: true
- placeholderText: view.jumpDate != null ? view.jumpDate.toISOString().substr(0,10) : qsTr("Date")
- onClicked: {
- var dialog = pageStack.push(datePicker)
- dialog.accepted.connect( function() { view.jumpDate = dialog.date; })
- }
- Separator { anchors.verticalCenter: parent.bottom; width: parent.width; color: Theme.primaryColor;}
- }
- SearchField { id: nameSearch
- //canHide: true;
- visible: false
- placeholderText: qsTr("Name")
- inputMethodHints: Qt.ImhNoAutoUppercase
- EnterKey.enabled: text.length > 3
- EnterKey.iconSource: "image://theme/icon-m-enter-next"
- EnterKey.onClicked: view.findNames(text)
- onVisibleChanged: { focus = visible }
- Separator { anchors.verticalCenter: parent.bottom; width: parent.width; color: Theme.primaryColor;}
- }
+ description: qsTr("tap to select")
+ currentIndex: -1
+ menu: ContextMenu {
+ MenuItem { text: qsTr("Date") }
+ MenuItem { text: qsTr("Name") }
+ MenuItem { text: qsTr("hide search") }
+ }
+ }
+ SearchField {
+ //canHide: true;
+ visible: combo.currentIndex == 0
+ readOnly: true
+ placeholderText: view.jumpDate != null ? view.jumpDate.toISOString().substr(0,10) : qsTr("Date")
+ onClicked: {
+ var dialog = pageStack.push(datePicker)
+ dialog.accepted.connect( function() { view.jumpDate = dialog.date; })
+ }
+ Separator { anchors.verticalCenter: parent.bottom; width: parent.width; color: Theme.primaryColor;}
+ }
+ SearchField {
+ //canHide: true;
+ visible: combo.currentIndex == 1
+ placeholderText: qsTr("Name")
+ inputMethodHints: Qt.ImhNoAutoUppercase
+ // is read-only and an error on older Silica
+ //acceptableInput: text.length > 3
+ EnterKey.enabled: text.length > 3
+ EnterKey.iconSource: "image://theme/icon-m-enter-next"
+ EnterKey.onClicked: view.findNames(text)
+ onVisibleChanged: { if (visible) { focus = true } }
+ //onTextChanged: {
+ // if (text.length > 3) {
+ // view.findNames(text)
+ // }
+ //}
+ Separator { anchors.verticalCenter: parent.bottom; width: parent.width; color: Theme.primaryColor;}
}
+ }
- SilicaListView { id: view
- anchors.top: searchBar.bottom
- height: parent.height - (header.height + searchBar.height)
- width: parent.width - Theme.horizontalPageMargin
- anchors.horizontalCenter: parent.horizontalCenter
- cacheBuffer: page.height * 2
- clip: true
- spacing: Theme.paddingMedium
- model: appHistoryModel
- section {
- labelPositioning: page.unclutter ? ViewSection.CurrentLabelAtStart : ViewSection.InlineLabels
|
[-]
[+]
|
Changed |
_service:tar_git:install-history-0.9.10+git1.tar.gz/translations/settings-install-history-de.ts
^
|
@@ -21,7 +21,7 @@
</message>
<message>
<source>hide search</source>
- <translation type="vanished">Suche ausblenden</translation>
+ <translation>Suche ausblenden</translation>
</message>
<message>
<source>Search on %1</source>
@@ -29,11 +29,11 @@
</message>
<message>
<source>Jump to…</source>
- <translation type="vanished">Springe zu…</translation>
+ <translation>Springe zu…</translation>
</message>
<message>
<source>tap to select</source>
- <translation type="vanished">Tippe zum Ändern</translation>
+ <translation>Tippe zum Ändern</translation>
</message>
<message>
<source>Version</source>
@@ -57,41 +57,7 @@
</message>
<message>
<source>Package Name</source>
- <translation type="vanished">Paketname</translation>
- </message>
- <message>
- <source>Hide search</source>
- <translation>Suche verbergen</translation>
- </message>
- <message>
- <source>Search by Date</source>
- <translation>Suche nach Datum</translation>
- </message>
- <message>
- <source>Search by Name</source>
- <translation>Suche nach Name</translation>
- </message>
- <message>
- <source>Package</source>
<translation>Paketname</translation>
</message>
- <message>
- <source>Verbose Display</source>
- <translation>Auführliche Ansicht</translation>
- </message>
- <message>
- <source>Reduced Display</source>
- <translation>Reduzierte Ansicht</translation>
- </message>
- <message>
- <source>local</source>
- <comment>name for a local repo</comment>
- <translation>lokal</translation>
- </message>
- <message>
- <source>local</source>
- <comment>type of a local repo</comment>
- <translation>lokal</translation>
- </message>
</context>
</TS>
|
[-]
[+]
|
Changed |
_service:tar_git:install-history-0.9.10+git1.tar.gz/translations/settings-install-history-en.ts
^
|
@@ -12,69 +12,51 @@
<translation type="unfinished"></translation>
</message>
<message>
- <source>Date</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Name</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Search on %1</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Version</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Installed</source>
+ <source>Jump to…</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Removed</source>
+ <source>tap to select</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>n/a</source>
+ <source>Date</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Repository</source>
+ <source>Name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Hide search</source>
+ <source>hide search</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Search by Date</source>
+ <source>Search on %1</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Search by Name</source>
+ <source>Version</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Package</source>
+ <source>Installed</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Verbose Display</source>
+ <source>Removed</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>Reduced Display</source>
+ <source>n/a</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>local</source>
- <comment>name for a local repo</comment>
+ <source>Package Name</source>
<translation type="unfinished"></translation>
</message>
<message>
- <source>local</source>
- <comment>type of a local repo</comment>
+ <source>Repository</source>
<translation type="unfinished"></translation>
</message>
</context>
|
[-]
[+]
|
Changed |
_service:tar_git:install-history-0.9.10+git1.tar.gz/translations/settings-install-history-sv.ts
^
|
@@ -13,11 +13,11 @@
</message>
<message>
<source>Jump to…</source>
- <translation type="vanished">Hoppa till…</translation>
+ <translation>Hoppa till…</translation>
</message>
<message>
<source>tap to select</source>
- <translation type="vanished">Tryck för att välja</translation>
+ <translation>Tryck för att välja</translation>
</message>
<message>
<source>Date</source>
@@ -29,7 +29,7 @@
</message>
<message>
<source>hide search</source>
- <translation type="vanished">Dölj sök</translation>
+ <translation>Dölj sök</translation>
</message>
<message>
<source>Search on %1</source>
@@ -53,45 +53,11 @@
</message>
<message>
<source>Package Name</source>
- <translation type="vanished">Paketnamn</translation>
+ <translation>Paketnamn</translation>
</message>
<message>
<source>Repository</source>
<translation>Förrådsplats</translation>
</message>
- <message>
- <source>Hide search</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Search by Date</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Search by Name</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Package</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Verbose Display</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>Reduced Display</source>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>local</source>
- <comment>name for a local repo</comment>
- <translation type="unfinished"></translation>
- </message>
- <message>
- <source>local</source>
- <comment>type of a local repo</comment>
- <translation type="unfinished"></translation>
- </message>
</context>
</TS>
|
[-]
[+]
|
Changed |
_service:tar_git:install-history.yaml
^
|
@@ -4,16 +4,14 @@
Release: 0
Group: Applications
License: MIT
-SCM: https://codeberg.org/nephros/install-history
-URL: https://codeberg.org/nephros/install-history
Sources:
- '%{name}-%{version}.tar.gz'
Description: |
%{summary}.
- There is no Launcher icon for this app, it adds an entry in the Settings
- application under the Info section instead.
+ Due to sailjail, the app lives in the Settings application.
+ This is necessary in order to read the zypper install log.
%if "%{?vendor}" == "chum"
Type: desktop-application
@@ -30,7 +28,6 @@
- https://codeberg.org/nephros/install-history/raw/branch/master/Screenshot_002.png
- https://codeberg.org/nephros/install-history/raw/branch/master/Screenshot_003.png
Url:
- Homepage: https://forum.sailfishos.org/t/10253
Bugtracker: https://codeberg.org/nephros/install-history/issues
%endif
SetupOptions: -q -n %{name}-%{version}
|