Git Product home page Git Product logo

hkug's People

Contributors

edmondyip avatar hk-ng 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hkug's Issues

Integrated HKgaldon

  • Migrate HKgaldon post
  • Add option to select wether display the post list or not by each forum

Add wiki page on the LIHKG API version 2

Here is a example on common HTTP header after authentication:

HTTP header

Header login user used in browser used in android value sample
x-li-device x sha1(UUID) bd62c29291cbe9fb9662ef70f8c5042d55680f0
x-li-device-type x browser or android browser
x-li-digest sha1(jeams${{http method in lower case}}${{url}}$${{user token}}${{value from x-li-request-time}}) 82f1f6d46e14f73b088fbac68984aae5f157c971
x-li-load-time x x ????? 4.3450985
x-li-plus ????? 473672897fbc4c2447aefa76e69f26191e6385c1
x-li-request-time unix time stamp in UTC 1525597958
x-li-user user id

Note about x-li-digest:

The digest example was generated as following

name value
{{http method in lower case}} get
{{url}} https://lihkg.com/api_v2/thread/634747/page/1?order=reply_time
{{user token}} fc108e0701575efb4a70b69db2779860d02b9d33
{{value from x-li-request-time}} 1525597958

sha1( jeams${{http method in lower case}}${{url}}$${{user token}}${{value from x-li-request-time}} )
---> sha1( jeams$get$https://lihkg.com/api_v2/thread/634747/page/1?order=reply_time$$fc108e0701575efb4a70b69db2779860d02b9d33$1525597958 )
---> 82f1f6d46e14f73b088fbac68984aae5f157c971

With common HTTP header above, we can access the API after user login

Float button for pages selector.

screenshot 2018-06-07 18 41 32

Made a float button for myself using original code. If you don't mind, I would like to summit a pull request after I completed the full development of this float button.

class: Topic 各種唔同提議

export default class Topic {
constructor({
id,
forum,
category,
title,
createdDate,
authorId,
authorName,
lastReplyDate,
totalReplies,
like,
dislike,
totalPage,
} = {}) {

  • authorId: 會唔會係冇用嘅資料? 大部份topic list都只係display個author名就夠

  • category: 如果係user轉台先攞topic list, category會唔會次次攞都一樣?

  • id: 係就咁一個integer, 定係一個hash(forum, url)

  • authorGender: hkg/lihkg 手機version都有出topic果時出埋author係巴定絲

  • url: 我提議記錄埋topic指向嘅url, 因為user click入去果時應該會用到個url
    hkg - https://m.hkgolden.com/view.aspx?message=6887195&type=YY (YY係category, 係optional)
    lihkg - https://lihkg.com/thread/XXXXXX/page/1
    應該只係記低XXXXXX果part就夠

[Request][Tracking] Error handling

To handle either HKG or LIHKG server fown, it should prompt server down message and display remaining post of other forum(s).

  • Prompt server down message
  • Display remaining post

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.