kmycode / mastoom Goto Github PK
View Code? Open in Web Editor NEWMastodon cross-platform client
License: MIT License
Mastodon cross-platform client
License: MIT License
UWPでは、認証に小窓出るみたいなあれありますよね、
WebView使うとUWPアプリの審査に影響出るかもしれないので、小窓みたいなのに切り替えたいです。
(アプリデバッグするたびに認証するのめんどいので、#6 の後にやりたいです)
アプリ内のWebViewを使ったOAuth認証は、セキュアである、というOAuthの考え方とあわないかなーって思います。(WebViewはURI表示されないのでフィッシングサイトへ誘導されても気付かない)
Android、iOSでも、それに見合った方法がないか、気が向いたら調べてみたいですー!
ユーザの手動操作によってConnectionGroupのActivatedの値を変更するまで、BehaviorにOAuthHelperが設定されない。
ていうか、BehaviorのHelperPropertyが変化した時のイベントが発生していない。
ActivatedのPropertyChangedは発火しているようだし、どうもおかしい。
認証方法変更時にもOAuthModelを使いまわしたいので、どうにかしたい
より。
簡単に MastoomXF.Shared にできるかなーとやってみたのですが、
MastoomXF.Shared から Mastoom.Shared を参照できない
でさっそくハマりました 😰
ちょっと再実装になってしまったけど、 #2 の
https://github.com/kmycode/mastoom/pull/2/files#diff-c48148810a3cd420add9f2f4a9c47b9f
の StatusParser
というクラスで HTML で返される Toot の Content をパースして、 TootSpan
のリストに変換しています。
これは SgmlReader for Portable Class Library というライブラリを使っています。
master の方では Html Agility Pack を使われているようなので、それでも良いと思いますが、パース結果を TootSpan
のようにモデル化してもらえると、プラットフォーム関係なく使えるので、そうしてもらえるとありがたいです。
StatusParser
のパース実装は mastodon のドキュメントなどを一切見ずに実装したので、間違ってるところがあるかもしれません(が、数時間 Federeted Timeline を流して、エラーになるものはなかったみたいです)。
#5 と少しだけ関連しますが、こちらも認証した結果の AccessToken は端末内に保存しておく必要がありますね。
UWP, Mobile ともに、いずれ必要になると思うので issue だけ立てておきます。
の 4つ は、今はハードコードだけど、
パッと思いつくのは
くらいです。
すでに自分のタイムラインに流れているトゥートを誰かがBTすると、BT内容が表示されなくなることが多い。
後で直すので忘れないようにイシューとっておく
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.