summaryrefslogtreecommitdiff
path: root/contents/ui/configGeneral.qml
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-04-05 17:18:14 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-04-05 17:18:14 +0800
commit670655326ec305797b2c460b42e7ee53b057082e (patch)
tree2795d5312f3e95ba48af93f2cb210a7bf0e8e0f1 /contents/ui/configGeneral.qml
parentdc920a81f58d745be895817d136b144c1665481b (diff)
Add basic canvas API request and related config
Diffstat (limited to 'contents/ui/configGeneral.qml')
-rw-r--r--contents/ui/configGeneral.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/contents/ui/configGeneral.qml b/contents/ui/configGeneral.qml
new file mode 100644
index 0000000..c13b5ea
--- /dev/null
+++ b/contents/ui/configGeneral.qml
@@ -0,0 +1,23 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+import QtQuick.Layouts 1.15
+import org.kde.kirigami 2.5 as Kirigami
+
+Kirigami.FormLayout {
+ id: page
+ property alias cfg_canvasUrl: canvasUrl.text
+ property alias cfg_oauth2Token: oauth2Token.text
+
+ TextField {
+ id: canvasUrl
+ Kirigami.FormData.label: i18n("Canvas URL:")
+ placeholderText: i18n("https://your.canvas.url/")
+ }
+
+ TextField {
+ id: oauth2Token
+ Kirigami.FormData.label: i18n("OAuth2 Token:")
+ placeholderText: i18n("")
+ }
+}
+