-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend vendor modules #2016
Frontend vendor modules #2016
Commits on Mar 16, 2023
-
frontend: fork and vendor flag-icons
Added a reduced version of flag-icons in frontends/web/node_vendor with the following command: npm i --save flag-icons@file:./node_vendor/flag-icons Changes in flag-icons: - removed devDeps and scripts from package.json - removed unused less and sass files
Configuration menu - View commit details
-
Copy full SHA for e2b9275 - Browse repository at this point
Copy the full SHA e2b9275View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66999e4 - Browse repository at this point
Copy the full SHA 66999e4View commit details -
frontend: add python script to update svg ids
Makes 'npm run ids' work again. This script adds the country code to the svg's. script taken with 1 modification (trycatch for missing imgs) from: https://github.com/lipis/flag-icons/blob/29edfe0288970b77976024832f1f3cf0a8667357/flag-ids.py
Configuration menu - View commit details
-
Copy full SHA for de906ec - Browse repository at this point
Copy the full SHA de906ecView commit details -
As the flags are only shown in a dropdown they can be compressed with less precission. ran 'npm run svgo:all'
Configuration menu - View commit details
-
Copy full SHA for d5bacfb - Browse repository at this point
Copy the full SHA d5bacfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f285be0 - Browse repository at this point
Copy the full SHA f285be0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0ddaf2 - Browse repository at this point
Copy the full SHA e0ddaf2View commit details -
frontend: flag-icons remove unused css
Removed minified CSS and unused 1x1 CSS classes with the follwing regex: \.fi-[a-z]{2}(-[a-z]{2,3})?\.fis \{\n background-image: url\(\.\.\/flags\/1x1\/[a-z]{2}(-[a-z]{2,3})?\.svg\);\n\}\n
Configuration menu - View commit details
-
Copy full SHA for 6abb5f3 - Browse repository at this point
Copy the full SHA 6abb5f3View commit details -
frontend: use 1x1 flags for ch, np and va
Some flags have a square format (1:1 ratio).
Configuration menu - View commit details
-
Copy full SHA for ca193b8 - Browse repository at this point
Copy the full SHA ca193b8View commit details -
frontend: remove white background of np flag
This is not visible in light mode but in dark mode the flag should not have a white background. Related: - lipis/flag-icons#449
Configuration menu - View commit details
-
Copy full SHA for bf8b577 - Browse repository at this point
Copy the full SHA bf8b577View commit details -
frontend: update latest changes fron flag-icons
Applied unreleased changes, as they include fixes or reduce file size i.e. do flag.
Configuration menu - View commit details
-
Copy full SHA for 86360fa - Browse repository at this point
Copy the full SHA 86360faView commit details