the-hideout / tarkov-dev

The official site for tarkov.dev - A web app to track item prices, view trader barters, quests, maps, and much more!
https://tarkov.dev
MIT License
130 stars 48 forks source link

[Player Page] Load Profile From File Type - .json #920

Closed DysektAI closed 2 months ago

DysektAI commented 2 months ago

Proposal

Exporting / Downloading profiles are saved in .json format, I feel like it's appropriate to set the "Load profile from file" to the expected file formats / extensions for users to know which files they are expected to use and to filter the file system automatically for those files.

Super simple way to do this just adjust the input to the following: <input type='file' id='file' ref={inputFile} style={{display: 'none'}} onChange={loadProfile} accept="application/json,.json"/>

Result image *Mine says Adobe After Effects, due to Adobe setting it in my registry

Current input code direct link

Shebuka commented 2 months ago

Can you make a PR with the fix?