From 1986e59b58b2c4612e5251447b29a05d18893dc9 Mon Sep 17 00:00:00 2001 From: LubuWest Date: Fri, 27 Nov 2015 21:24:25 +0100 Subject: [PATCH] First commit --- README.md | 9 + Source/Update.png | Bin 0 -> 810 bytes Source/service.js | 256 +++++++++++++++++++++++ Source/test.qml | 392 ++++++++++++++++++++++++++++++++++++ Source/test.qmlproject | 20 ++ Source/test.qmlproject.user | 146 ++++++++++++++ TODO.txt | 35 ++++ 7 files changed, 858 insertions(+) create mode 100644 README.md create mode 100644 Source/Update.png create mode 100644 Source/service.js create mode 100644 Source/test.qml create mode 100644 Source/test.qmlproject create mode 100644 Source/test.qmlproject.user create mode 100644 TODO.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000..9b0f848 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +## Friendica# + +## Screenshot ## + +![screenshot]() + + +## Details ## + Friendica Client with Javascript and QML in an early stage diff --git a/Source/Update.png b/Source/Update.png new file mode 100644 index 0000000000000000000000000000000000000000..cfe5a0211a04e835abb0b50a2ff8bfff318c58a5 GIT binary patch literal 810 zcmV+_1J(SAP)23Q zper@v!cC!(s))K3AAf)wLHh?t(TElc3K9&3uGN(aqNp1ex@ar3Sal&jVvPY8E);}X zt>2XI$}q%a&fK}V9{44Y%;URfX3jZt8xro;3l4$pV6BF-lExIc4c;W`V5>k5%z{NB zFTgp_8I`yL;Io4;lTTouPhn{=?m?Kz80ZKqZV-HoKwLl(WL<c_$6kq`S*ZFmHrs}4=zplYRXeJ@^aL?W9X@B*%$@(+wOsU4C1azHfcNG zmDE#Qn@eCFU{w+2p6d^rJ3AtJ+m&bT^=5;fUMv+E=OVE*FFZ32!ls$NQqsE2)i#2I oEQxwF5=@%`D#P3X?_DPO17l47%eURcDF6Tf07*qoM6N<$f`LbIv;Y7A literal 0 HcmV?d00001 diff --git a/Source/service.js b/Source/service.js new file mode 100644 index 0000000..8615e2f --- /dev/null +++ b/Source/service.js @@ -0,0 +1,256 @@ +function friendicaRequest(url,user,password,api,callback) { + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function() { + if (xhr.readyState === XMLHttpRequest.HEADERS_RECEIVED) { + } else if(xhr.readyState === XMLHttpRequest.DONE) { + try{ callback(xhr.responseText); + } + catch (e){ + print("friendicaRequest: Data retrieval failure! "+ e); + } + } + } + xhr.open("GET", url+api,false,user,password); + xhr.send(); + } + +function requestFriends(url,user,password,database,callback){ + friendicaRequest(url,user,password,"/api/statuses/friends", function (obj){ + var friends=JSON.parse(obj); + for (var i=0;i + + + + + EnvironmentId + {4e26e1df-26fd-4b76-8028-2f213523c328} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop + {e9e69f48-1ef9-4389-91ea-9cc2982eefff} + -1 + 0 + 0 + 0 + + + 0 + Deployment + + ProjectExplorer.BuildSteps.Deploy + + 1 + Lokales Deployment + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 0 + + + QML Scene + QmlProjectManager.QmlRunConfiguration.QmlScene + CurrentFile + + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..5fcdc04 --- /dev/null +++ b/TODO.txt @@ -0,0 +1,35 @@ +TODO +====== + + +Layout +____________ + + + +Config +____________ + +- Server Domain +- SSL Check +- OAuth? + +Fotos erhalten +_______________ + +- Liste der Fotos mit api/friendica/photos/list +- Daten der Fotos als JSON über api/friendica/photo.xml?photo_id=[ID], "album" als Feld vorhanden +- Raw data in File? +- Download/Sortieren der Fotos? + +Fotos senden +____________ + +- Upload über api/media/upload.xml?media= (raw data)? +- Berechtigungen? Album? +- Album erstellen/bearbeiten + + + + +