Git Product home page Git Product logo

skylight's Introduction

skylight's People

Contributors

heguro avatar penpenpng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

skylight's Issues

atp.ts getPostの処理

もしかしたら、
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でのTokenの扱いについて

手軽にデータを保存するにはlocalstorageはとても優秀です。

しかしlocalstorageのLSのデータは永続的に残り、かつアクセスできてしまいます。
そのためセキュリティ観点からあまりそこに保存するのは望まれません。

Vue系を使っていたと思うので、Storeの設定からCookieに変更すべきかと思います。

以下の2つ、対応が必要かなと思います。

  • Cookieに移行
    • HttpOnly属性必須
    • Secure属性必須
    • Expireの設定(7日 ~ 30日)悩んだら7日で
  • 既存のLocalStorageのsessがあったばあい削除するコードも用意しておくと良いかもです

名前が長い場合、画面からはみ出してしまう

急ぎの対応ではないのですが、僕もAndroidで使用したいと思うときがありますので提案させていただきました。
名前が長い(未設定)の場合、スマートフォンで表示すると画面の外側にはみ出してしまうことが懸念されます

このスクリーンショットを参考にしてください

image

対応方法は以下の通りでいかがでしょうか

  1. superlongactorname.bsky.social 等→superlon...bsky.social
  2. T.Shinoharadisplaynamemaxlength → T.Shinoharadisp... 17:59:59

開発者モードでPrint Feed Objectボタンを表示した際に発生したので、きっと名前が長いユーザーをフォローすると崩れるなどにつながってしまうかと懸念しています

TODO

List of things that might be implemented.

  • Notification badge
  • Improve notification tab tile UI
  • Optional auto refresh
  • Display images
  • Display quoted note
  • Show users reposting or voting
  • Post detail page
  • Show reply parent in timeline
  • Add route /profile/:handle/follows, followers, posts
  • Update profile
  • Post image
  • Delete post
  • Toast feedback
  • LISENCE
  • Post note including URL
  • Post reply
  • Display users' header image
  • Link to user profile
  • Notification tab
  • Infinite scrolling
  • Position-fixed input UI
  • Keyboard shortcut to focus input UI
  • PWA support
  • Fix layout issue
  • Performance improvement

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.