Skip to content

hiiwave/TosSearchTW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tos Search Gadget

This is a search gadget for Tree of Savior game.

Features:

  • Support Chinese(zh-tw) / English
  • Support typeahead(autocomplete)
  • Link search result to tosgbase

Demo:

https://hiiwave.github.io/TosSearchTW/frontend/index.html

Screenshot:

Search by English Search by Chinese
search_en search_tw

Developer Note

This project is composed of three parts:

  1. Scraper (tosneet_scraper/): Extract data (item list, npc list, .etc) from tosgbase. Implemeneted by scrapy.

  2. Dictionary (tos_dictionary/): Merge scraped data, append zh-tw language, and export a lookup table. Implemented by pandas. The language mapping file is exported from project Tos-Translator.

  3. Frontend (frontend/): The web interface of this gadget. Implemented by typeahead.js.

Please refer to README.md in these subfolders for more details.

Known Issues:

  • Some suggestions fail to show when they include spaces and there are longer words including them; for example the word "Swordsman Master" does not show possibly due to the existence of "Swordsman Master Costume". In this case you could still type "Swordsman Master" and click search button to get the result. It seems to be a typeahead.js issue, see this or this for more details.

Change Log:

2018.3.8 - 3.9 (v0.2.4)

  • Implement image thumbnails
  • Add Loader at the right side before loading completes
  • Vertical/ Horizontal align UI elements

2018.3.7 (v0.2 Released)

  • Integrate more data categories, including npcs, zones, skills, and attributes
  • Implement dropdown menu
  • Implement Enter key listening

2018.3.6 (v0.1 Released)

  • Implement frontend
  • Support category: items

2018.3.5

Contribution

Any issue reporting or pull request is welcome.

LICENSE

MIT