Minimal bsky web client implementation.
penpenpng / skylight Goto Github PK
View Code? Open in Web Editor NEWMinimal bsky.social web client implementation.
Home Page: https://penpenpng.github.io/skylight/
License: MIT License
Minimal bsky.social web client implementation.
Home Page: https://penpenpng.github.io/skylight/
License: MIT License
Minimal bsky web client implementation.
ProfileのFollowersタブをクリックしても自分の投稿が表示されるだけになっています
もしかしたら、
https://github.com/penpenpng/skylight/blob/main/src/lib/atp.ts
getPostの内部処理が間違っているかも。
responseがundefinedになってしまっていた
実装は僕の方で書き直してるこちらを参照されたし
https://github.com/ShinoharaTa/AozoraWebClient/blob/develop/plugins/atp.ts
async getPost(params: { uri: string }) {
const response = await this.getPostThread({ ...params, depth: 0 })
if (!response.thread.notFound) {
return response.thread.post
} else {
return null
}
}
async getPostThread(params: { uri: string; depth?: number }) {
const { success, data } = await this.agent.api.app.bsky.feed.getPostThread(
params
)
return success ? data : null
}
手軽にデータを保存するにはlocalstorageはとても優秀です。
しかしlocalstorageのLSのデータは永続的に残り、かつアクセスできてしまいます。
そのためセキュリティ観点からあまりそこに保存するのは望まれません。
Vue系を使っていたと思うので、Storeの設定からCookieに変更すべきかと思います。
以下の2つ、対応が必要かなと思います。
急ぎの対応ではないのですが、僕もAndroidで使用したいと思うときがありますので提案させていただきました。
名前が長い(未設定)の場合、スマートフォンで表示すると画面の外側にはみ出してしまうことが懸念されます
このスクリーンショットを参考にしてください
対応方法は以下の通りでいかがでしょうか
開発者モードでPrint Feed Objectボタンを表示した際に発生したので、きっと名前が長いユーザーをフォローすると崩れるなどにつながってしまうかと懸念しています
List of things that might be implemented.
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.