Warning, /network/tokodon/src/content/ui/Debug/DebugPage.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
0002 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0003 
0004 import QtQuick
0005 import QtQuick.Controls 2 as QQC2
0006 import QtQuick.Layouts
0007 import QtQml.Models
0008 
0009 import org.kde.kirigami 2 as Kirigami
0010 import org.kde.kirigamiaddons.formcard 1 as FormCard
0011 import org.kde.kirigamiaddons.components 1 as Components
0012 
0013 import org.kde.tokodon
0014 
0015 MastoPage {
0016     title: "Debug"
0017 
0018     FormCard.FormHeader {
0019         title: "Notifications"
0020     }
0021 
0022     FormCard.FormCard {
0023         FormCard.FormButtonDelegate {
0024             text: "Mention"
0025             onClicked: AccountManager.selectedAccount.mentionNotification()
0026         }
0027 
0028         FormCard.FormButtonDelegate {
0029             text: "Favorite"
0030             onClicked: AccountManager.selectedAccount.favoriteNotification()
0031         }
0032 
0033         FormCard.FormButtonDelegate {
0034             text: "Boost"
0035             onClicked: AccountManager.selectedAccount.boostNotification()
0036         }
0037 
0038         FormCard.FormButtonDelegate {
0039             text: "Follow"
0040             onClicked: AccountManager.selectedAccount.followNotification()
0041         }
0042 
0043         FormCard.FormButtonDelegate {
0044             text: "Follow Request"
0045             onClicked: AccountManager.selectedAccount.followRequestNotification()
0046         }
0047 
0048         FormCard.FormButtonDelegate {
0049             text: "Status"
0050             onClicked: AccountManager.selectedAccount.statusNotification()
0051         }
0052 
0053         FormCard.FormButtonDelegate {
0054             text: "Update/Edit"
0055             onClicked: AccountManager.selectedAccount.updateNotification()
0056         }
0057 
0058         FormCard.FormButtonDelegate {
0059             text: "Poll"
0060             onClicked: AccountManager.selectedAccount.pollNotification()
0061         }
0062     }
0063 }