Luigit
repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by admin

quickshell/nuguland/test-fixtures/ui/task-services/Noko.qml

Raw
import QtQuick

Item {
    property bool ready: true
    property bool listening: false
    property bool transcribing: false
    property bool installing: false
    property bool updateUnknown: false
    property bool updateAvailable: false
    property bool checkingUpdates: false
    property bool updateChecked: true
    property string lastError: ""
    property string installLabel: ""
    property real installProgress: 0
    property string role: "ui.accent"
    property string label: "noko"
    property int triggers: 0
    readonly property bool active: listening
    readonly property bool strong: listening
    readonly property string status: listening ? "capturing" : "ready"
    property var assets: ({
            vad: {
                exists: true
            },
            parakeet: {
                complete: true
            },
            runtime: {
                exists: true
            }
        })
    property var doctor: ({
            systemDependencies: [
                {
                    command: "pw-record",
                    exists: true
                },
                {
                    command: "wtype",
                    exists: true
                }
            ]
        })
    property var historyEntries: Array.from({
        length: 12
    }, (_, i) => ({
                transcript: `synthetic capture ${i}`,
                duration: 2
            }))
    function refresh() {
    }
    function trigger() {
        listening = !listening;
        triggers++;
    }
}