This repository contains all the icons available within the Sentinel 2-Factor Authentication app.
A lot of icons are already present, but if you are missing one you can either:
It’s super simple, here are the requirements:
.png
formatsquared size
(400x400 preferred size, do not submit huge images to avoid slow load times)lowercase
/icons/assets/
folder/icons/index.json
referenced to the icon (check the following section to understand how the algorithm works)pull request
The index.json
is structured in this way
<issuer>: <name of the icon without extension>
an example is the following where we have 2 issuers pointing to the same icon.
"binance": "binance",
"binance.us": "binance"
The app will take the issuer and apply
lowercase()
replace('.com','')
trim()
before trying to match the resulting string with a key of the index.json
.
If the attempt fails, it will try to split()
the issuer on the blank space, take the first substring and try to match it again.
Issuer = "Binance US.com"
lowercase()
+ replace('.com','')
+ trim()
Resulting Issuer = "binance us"
The match will fail ❌, no key was found in index.json
.
split(" ")[0]
Resulting Issuer = [binance, us] -> "binance"
Match found ✅! The correct icon will be displayed.
If you have any questions or suggestion feel free to reach out to me! ☺️
For more info, check out getsentinel.io