Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
Fix Facebook Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudi Timmermans committed Apr 19, 2018
1 parent c9c4135 commit b2d71be
Show file tree
Hide file tree
Showing 57 changed files with 18 additions and 18 deletions.
Empty file modified qml/components/ExternalWebview.qml
100755 → 100644
Empty file.
8 changes: 4 additions & 4 deletions qml/components/FBWebview.qml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ Item {

function activate(category) {
if(category == "sailbook-request") {
webview.url = "https://m.facebook.com/friends";
webview.url = "https://touch.facebook.com/friends";
app.activate();
console.debug("Notification activation: " + category);
}
else if(category == "sailbook-message") {
webview.url = "https://m.facebook.com/messages";
webview.url = "https://touch.facebook.com/messages";
app.activate();
console.debug("Notification activation: " + category);
}
else if(category == "sailbook-notification") {
webview.url = "https://m.facebook.com/notifications";
webview.url = "https://touch.facebook.com/notifications";
app.activate();
console.debug("Notification activation: " + category);
}
Expand Down Expand Up @@ -128,7 +128,7 @@ Item {
}
clip: true // Enforce painting inside our defined screen
opacity: loading || !connected? 0.0: 1.0
url: "https://m.facebook.com/home.php?sk=" + Util.getFeedPriority(settings.priorityFeed)
url: "https://touch.facebook.com/home.php?sk=" + Util.getFeedPriority(settings.priorityFeed)
onLoadingChanged: loading? undefined: Messages.publishNotifications();

// Rounding floating numbers in JS: https://stackoverflow.com/questions/9453421/how-to-round-float-numbers-in-javascript
Expand Down
Empty file modified qml/components/IconTextButton.qml
100755 → 100644
Empty file.
Empty file modified qml/components/ImagePicker.qml
100755 → 100644
Empty file.
Empty file modified qml/components/NavigationButton.qml
100755 → 100644
Empty file.
Empty file modified qml/components/PlaceholderWebview.qml
100755 → 100644
Empty file.
Empty file modified qml/components/TextLabel.qml
100755 → 100644
Empty file.
Empty file modified qml/cover/CoverPage.qml
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion qml/harbour-sailbook.qml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ApplicationWindow

property variant notifications: [0,0,0,0,0,0,0,0,0]
property string appName: "Sailbook"
property string version: "10.0-0"
property string version: "11.0-0"
property string userAgentName
property string userAgent

Expand Down
Empty file modified qml/js/media.js
100755 → 100644
Empty file.
Empty file modified qml/js/messages.js
100755 → 100644
Empty file.
Empty file modified qml/js/util.js
100755 → 100644
Empty file.
Empty file modified qml/pages/AboutPage.qml
100755 → 100644
Empty file.
Empty file modified qml/pages/ExternalUrlPage.qml
100755 → 100644
Empty file.
18 changes: 9 additions & 9 deletions qml/pages/FirstPage.qml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ Page {
Row {
anchors { fill: parent }
NavigationButton { onClicked: fbWebview.goBack(); iconSource: "qrc:///images/icon-back.svg"; visible: settings.placeBack==1 && fbWebview.canGoBack }
NavigationButton { onClicked: fbWebview.setUrl("https://m.facebook.com/home.php?sk=" + Util.getFeedPriority(settings.priorityFeed)); notifyIndicator: app.notifications[0]; iconSource: "qrc:///images/icon-newsfeed.svg"; visible: settings.showFeed }
NavigationButton { onClicked: fbWebview.setUrl("https://m.facebook.com/friends"); notifyIndicator: app.notifications[1]; iconSource: "qrc:///images/icon-requests.svg"; visible: settings.showFriends }
NavigationButton { onClicked: fbWebview.setUrl("https://m.facebook.com/messages"); notifyIndicator: app.notifications[2]; iconSource: "qrc:///images/icon-messages.svg"; visible: settings.showMessages }
NavigationButton { onClicked: fbWebview.setUrl("https://m.facebook.com/notifications"); notifyIndicator: app.notifications[3]; iconSource: "qrc:///images/icon-notifications.svg"; visible: settings.showNotifications }
NavigationButton { onClicked: fbWebview.setUrl("https://m.facebook.com/search/top?soft=search"); notifyIndicator: app.notifications[4]; iconSource: "qrc:///images/icon-search.svg"; visible: settings.showSearch }
NavigationButton { onClicked: fbWebview.setUrl("https://m.facebook.com/events/upcoming"); notifyIndicator: app.notifications[5]; iconSource: "qrc:///images/icon-events.svg"; visible: settings.showEvents }
NavigationButton { onClicked: fbWebview.setUrl("https://m.facebook.com/groups"); notifyIndicator: app.notifications[6]; iconSource: "qrc:///images/icon-groups.svg"; visible: settings.showGroups }
NavigationButton { onClicked: fbWebview.setUrl("https://m.facebook.com/pages/?category=liked"); notifyIndicator: app.notifications[7]; iconSource: "qrc:///images/icon-pages.svg"; visible: settings.showLikedPages }
NavigationButton { onClicked: fbWebview.setUrl("https://m.facebook.com/settings"); notifyIndicator: app.notifications[8]; iconSource: "qrc:///images/icon-settings.svg"; visible: settings.showSettings }
NavigationButton { onClicked: fbWebview.setUrl("https://touch.facebook.com/home.php?sk=" + Util.getFeedPriority(settings.priorityFeed)); notifyIndicator: app.notifications[0]; iconSource: "qrc:///images/icon-newsfeed.svg"; visible: settings.showFeed }
NavigationButton { onClicked: fbWebview.setUrl("https://touch.facebook.com/friends"); notifyIndicator: app.notifications[1]; iconSource: "qrc:///images/icon-requests.svg"; visible: settings.showFriends }
NavigationButton { onClicked: fbWebview.setUrl("https://touch.facebook.com/messages"); notifyIndicator: app.notifications[2]; iconSource: "qrc:///images/icon-messages.svg"; visible: settings.showMessages }
NavigationButton { onClicked: fbWebview.setUrl("https://touch.facebook.com/notifications"); notifyIndicator: app.notifications[3]; iconSource: "qrc:///images/icon-notifications.svg"; visible: settings.showNotifications }
NavigationButton { onClicked: fbWebview.setUrl("https://touch.facebook.com/search/top?soft=search"); notifyIndicator: app.notifications[4]; iconSource: "qrc:///images/icon-search.svg"; visible: settings.showSearch }
NavigationButton { onClicked: fbWebview.setUrl("https://touch.facebook.com/events/upcoming"); notifyIndicator: app.notifications[5]; iconSource: "qrc:///images/icon-events.svg"; visible: settings.showEvents }
NavigationButton { onClicked: fbWebview.setUrl("https://touch.facebook.com/groups"); notifyIndicator: app.notifications[6]; iconSource: "qrc:///images/icon-groups.svg"; visible: settings.showGroups }
NavigationButton { onClicked: fbWebview.setUrl("https://touch.facebook.com/pages/?category=liked"); notifyIndicator: app.notifications[7]; iconSource: "qrc:///images/icon-pages.svg"; visible: settings.showLikedPages }
NavigationButton { onClicked: fbWebview.setUrl("https://touch.facebook.com/settings"); notifyIndicator: app.notifications[8]; iconSource: "qrc:///images/icon-settings.svg"; visible: settings.showSettings }
}
}
}
Expand Down
Empty file modified qml/pages/ImagePage.qml
100755 → 100644
Empty file.
Empty file modified qml/pages/ImageSelectorPage.qml
100755 → 100644
Empty file.
Empty file modified qml/pages/SettingsPage.qml
100755 → 100644
Empty file.
Empty file modified qml/pages/TranslationsPage.qml
100755 → 100644
Empty file.
Empty file modified qml/pages/VideoPage.qml
100755 → 100644
Empty file.
Empty file modified qml/resources/css/external.css
100755 → 100644
Empty file.
Empty file modified qml/resources/css/sailbook-theme-ambience.css
100755 → 100644
Empty file.
Empty file modified qml/resources/css/sailbook-theme-facebook.css
100755 → 100644
Empty file.
Empty file modified qml/resources/css/sailbook-theme-night.css
100755 → 100644
Empty file.
Empty file modified qml/resources/images/icon-back.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-belgium.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-events.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-external.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-finland.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-fontawesome.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-french.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-germany.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-github.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-groups.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-italy.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-messages.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-newsfeed.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-notifications.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-notifications.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-pages.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-paypal.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-requests.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-sailbook.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-sailbook.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-search.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-settings.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-telegram.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-trans.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/icon-twitter.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified qml/resources/images/image-placeholder.gif
100755 → 100644
Empty file modified qml/resources/images/image-placeholder.png
100755 → 100644
Empty file modified qml/resources/js/external.js
100755 → 100644
Empty file.
Empty file modified qml/resources/js/sailbook.js
100755 → 100644
Empty file.
Empty file modified rpm/harbour-sailbook.changes
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions rpm/harbour-sailbook.spec
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Name: harbour-sailbook
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Sailbook
Version: 10.1
Release: 7
Version: 11.0
Release: 0
Group: Qt/Qt
License: GPLv3
URL: https://github.com/DylanVanAssche/harbour-sailbook
Expand Down
4 changes: 2 additions & 2 deletions rpm/harbour-sailbook.yaml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name: harbour-sailbook
Summary: Sailbook
Version: 10.1
Release: 7
Version: 11.0
Release: 0
# The contents of the Group field should be one of the groups listed here:
# http://gitorious.org/meego-developer-tools/spectacle/blobs/master/data/GROUPS
Group: Qt/Qt
Expand Down
Empty file modified src/harbour-sailbook.cpp
100755 → 100644
Empty file.

0 comments on commit b2d71be

Please sign in to comment.