hifocus / instapp

Get apps instantly via web. (This project is currently deprecated, aside from some infrequent fixes)
https://get.js.org
MIT License
150 stars 15 forks source link

Build-in Instant Search #13

Open hifocus opened 6 years ago

hifocus commented 6 years ago

Is your feature request related to a problem? Please describe. No. Just want to add the instant search function to apps page

Describe the solution you'd like In the future we're going to support more and more apps, in the meantime it might be a problem for users to find out if we support a specific app. So a search bar is necessary.

Describe alternatives you've considered https://www.algolia.com Might be a solution. And also https://github.com/algolia/instantsearch.js

Additional context I'll try it by myself but I don't think I can get it done. If any of you have ideas just leave a comment below.

KeJunMao commented 6 years ago

我觉得无须第三方库,使用 liquid 生成 json,或者生成数组对象,使用 js 索引,或者直接搜索 dom 即可,需要考虑的只有性能。

hifocus commented 6 years ago

I think we will need to process all the downloiad links to json format as soon as possible.

The json will include these information:

  1. App Name
  2. App Type (Like Browser, Player, Editor etc.)
  3. Download Link Type (China Optimized, Non China Optimized, Blocked By The Internet Restrict Policy etc.) They should have different reminder in the page
  4. Latest Release Data if possible

For the json format, I still not quite clear about how to fit in the alias system.

And also I don't know should we add in CDN Type or not, that can work with the Download Link Type or not.

Please give out some ideas.