From ddf0d4d06571d1a6e214a6359bd6d6554d7caf55 Mon Sep 17 00:00:00 2001 From: molan-git Date: Mon, 15 Jun 2020 10:42:10 +0200 Subject: [PATCH] new user profile labels --- harbour-tooter.pro | 3 +- qml/lib/Worker.js | 13 +- qml/pages/ConversationPage.qml | 10 +- qml/pages/MainPage.qml | 3 +- qml/pages/SettingsPage.qml | 8 +- qml/pages/components/ItemUser.qml | 13 +- qml/pages/components/MyList.qml | 5 +- qml/pages/components/ProfileHeader.qml | 27 +++- qml/pages/components/Toot.qml | 187 ----------------------- qml/pages/components/VisualContainer.qml | 16 +- 10 files changed, 57 insertions(+), 228 deletions(-) delete mode 100644 qml/pages/components/Toot.qml diff --git a/harbour-tooter.pro b/harbour-tooter.pro index a5a786b..577a632 100644 --- a/harbour-tooter.pro +++ b/harbour-tooter.pro @@ -71,7 +71,6 @@ DISTFILES += qml/harbour-tooter.qml \ qml/cover/CoverPage.qml \ qml/pages/MainPage.qml \ qml/pages/LoginPage.qml \ - qml/pages/components/Toot.qml \ qml/pages/Browser.qml \ qml/lib/API.js \ qml/images/icon-s-following \ @@ -93,7 +92,7 @@ SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172 # to disable building translations every time, comment out the # following CONFIG line -CONFIG += sailfishapp_i18n +# CONFIG += sailfishapp_i18n TRANSLATIONS += translations/harbour-tooter.ts \ translations/harbour-tooter-de.ts \ diff --git a/qml/lib/Worker.js b/qml/lib/Worker.js index 0317523..91d4252 100644 --- a/qml/lib/Worker.js +++ b/qml/lib/Worker.js @@ -132,7 +132,6 @@ function parseAccounts(collection, prefix, data){ res[prefix + 'account_username'] = data["username"] res[prefix + 'account_acct'] = data["acct"] res[prefix + 'account_display_name'] = data["display_name"] - res[prefix + 'account_discoverable'] = data["discoverable"] res[prefix + 'account_locked'] = data["locked"] res[prefix + 'account_created_at'] = data["created_at"] res[prefix + 'account_avatar'] = data["avatar"] @@ -152,7 +151,7 @@ function parseNotification(data){ switch (item['type']){ case "mention": if (!data.status) { - break; + break; } item = parseToot(data.status) @@ -257,10 +256,10 @@ function parseToot (data){ item = parseAccounts(item, "", data["account"]) } item['content'] = data['content'] - .replaceAll('