Code Monkey home page Code Monkey logo

bangumin's People

Contributors

dependabot[bot] avatar edwardez avatar flygoat avatar puranzhang avatar wattlebird 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bangumin's Issues

iOS 已下架

如题,是否因未对开发者账号续费导致下架啊?

Support submit reply.

It would be nice if munin can allow user to post reply, to support this, munin needs to parse bbcode(which is the reply format on bangumi) into a AST.

Currently there is no bbcode parser in dart, hence we need to write one.

This task can be broken in following parts.

  1. Write a parser to parser bbcode into ast.(when user wants to edit a post, bbcode is returned)

  2. Parser user post into bbcode.(when user wants to submit a reply, we need to transpile it into bbcode)

2.5 Choose a rich text editor in flutter.

  1. Actual implementation.

可以手动更改域名吗?

  使用应用时访问速度很慢,然后想到 Bangumi 是有三个域名的,如果应用是使用网页的 API 的话,那么是否可以手动更改访问的域名来达到最佳访问速度?

http request might return 503 if too many requests are sent at the same time

api.bgm.tv will return 503 if too many requests are sent at the same time

artillery quick --count 100 -n 1 https://api.bgm.tv/subject/1

Report 
  Scenarios launched:  100
  Scenarios completed: 100
  Requests completed:  100
  RPS sent: 22.32
  Request latency:
    min: 197.1
    max: 2241.2
    median: 225
    p95: 2216.6
    p99: 2231
  Codes:
    200: 20
    503: 80

in order to bypass CORS, all requests are proxied through our own server
might be a problem in production (proxy pool/convert app into a ionic one/request bangumin to be added to the Access-Control-Allow-Origin list?)

Design Choice: How to handle CORS

Background

bangumin is essentially, a website, in order to send requests to bgm, we'll need to handle CORS

Solutions

  • Various solutions on bgm server side: not feasible, we'll need to persuade Sai to add bangumi to their CORS header(as a reference, https://bgm.tv/group/topic/346003)

  • Use Nginx to reverse proxy bangumi request, considering #6 , it will be easier for us to set up load balancing to mitigate peak requests

  • However, we're sending requests to bangumi, and all security concerns should still be considered(CSRF, XSS, etc), it would be better if node.js can handle the CORS requests: that being said, we can set up a nginx as the front reverse proxy, and use node.js to actually handle the proxy requests

“动态” Unable to load

Screenshot_20190808-011225_BangumiN
After login, "动态" tag refused to load with authentication failure warning while other functions like "进度", "讨论" or "主页" work fine.
Screenshot_20190808-011242_BangumiN

I'm happy to help with debugging like dumping logs or doing tests.

Thanks.

FYI: I don't have any "好友" on bangumi, so API format may different with others since it will display the timeline of whole site. Meanwhile users with at least one "好友" will only get timeline from their "好友".

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.