* Fix 3rd party extensions order and add test to avoid regression
* Prevent possible error in test
* Apply suggestions from code review
* Apply suggestion
* Remove uneeded import
* Add some icons in Readme
* Align icons at left
* Add some more icons
* Remove inline image
- Use relative icons path
* Format Third Party Extensions
as a table
* force website build
* added readme-icons foler with icons for the readme.md file, as well as icons for light and dark modes in the readme.md titles
* restored corrupted svgs for readme-icons
* moved the icons to asset/readme, added icons for Drawio, Hexo and Jetpack Compose
* - Use `develop` branch absolutified links for README images
- Strip dark image theme links before publish to Github and npm
- Clean third party extensions table
* Commit to tag (ony inside master branch)
* Fix differences in README
* Reintroduce link in README logo
* Drop uneeded newline from README
* Fix error in README
* Add newlines for SVGs
* Newlines for all SVGs
* Reuse black icons from library
* Commit using Github Actions bot
* Reuse diagrams.net library icon for white version
* Fix comment
* Bump 'strip-gh-theme-links' action to v2
* removed assets/readme icons
* Test with 'fill=white'
* Test with 'style="fill:white"'
* added filter:invert(1) to PHP, TS, Simple Icons and Blender
* added readme-icons test, changed the name of light icons in assets/readme
* reloaded icons in Readme
* fixed typo in iconsPath for readme-icons test
* fixed typo on the darkiconsPath resolution
* restored absolute paths
* minimized the white icons on assets/readme
* restored test scripts
* Apply changes
* Disable color output testing in CI
* Revert latest change
Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
Co-authored-by: Jorge Amado Soria Ramirez <darksoul.uci@gmail.com>
* switch from jest to uvu
* remove jest config
* convert index.test.js to uvu
* use assert.type
* Get rid of jest-diff
* Remove uneeded splits
* remove out.txt
* switch to fake-diff
* refactor: reorganize tests, reduce repetition
* fix conflicts
* fix conflicts
* remove unnecessary type checks and use toStrictEqual
* move index tests to separate file
* test svg values in testIcon
* Use getter for 'svg' instead of 'path' in packaged javascript version of icons
* Use variable to avoid calling `escape` twice
* Convert title to HTML friendly in build script
* Update tests
* Only friendly title for SVG content
* Add equality test for SVG contents
* Add missing import
* Test using icons template
* Fix lint error
* Fix lint error in utils
* Read files synchronicly in tests
* Remove done from tests, make them pass
* Remove uneeded imports
* Remove replacements in tests
* Update with changes in develop
* Drop uneeded requirement
* Space between requirements
* Simplify encoding utility
* Fix syntax error
* Apply @ericcornelissen's suggestions
* Apply @ericcornelissen's suggestions
* Add prettier as a dependency
* Add format command and configure prettier
I opted for single quotes to be in line with other simple-icons projects
I ignore the data file because changing its formatting is quite a bit of
trouble for all open PRs.
* Run prettier
* Replace all functions by arrow functions
* Move prettier configuration to config file
Move it to a file so editors (and other software) can pick up on the
configuration. I went with .js because (a) it allows for comments and
(2) it seems most of the config files are in JavaScript already.
* Add prettier --check when running npm run lint (This adds it to the CI as well)
* Add husky and format changes before committing
* Use object destructuring for imports consistently
* Add shebang and fileoverview to jsonlint.js
* Test if icons have "guidelines" when they should
... and don't when they shouldn't.
* Update paht test in icons.test.js
* Improve test names and test conditions
* Test if icons have a "license" when they should
... and don't when they shouldn't.
* Test value of guidelines
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
* Test if SPDX license URL is a URL indeed
Using the same regular expression as we use for URLs in the JSON data
(see .jsonschema.json#url).
* Accept icon rather than title in `iconToSlug`
This removes the need in (most of the) calls to this function to
seperately check if there is a custom slug already defined for the icon.
* Rename `titleToSlug` to `getIconSlug`
* Revert unnecessary style change
* Update function documentation
* Keep `titleToSlug` and add `getIconSlug` helper
Unfortunately `this` is not available because we're using arrow syntax
for these functions, but refering to `titleToSlug` through
`module.exports` works fine as well.
* Fix parameter name in `getIconSlug` docs
- Rename `titleToFilename` to `titleToSlug`
- Fix indentation where necessary
- Use quotes internally consistently (to reduce the diff size, unfortunately this is the opposite quote from what we use in other projects)
- Update comments & documentation
- Construct file paths
And more...
* Add URL friendy/slug/file name as property to package icon objects
* Test new property
* Build index from template
* Add .get function to index.js export
* Test new .get function in index.js export
* Use Uglify-JS to minify the code in the package's index.js
* Update API in README.md
* Renaem test using "slug" instead of "name"
* Add URL friendy/slug/file name as property to package icon objects
* Test new property
* Add 'name' property to examples in README
* Rename "name" property to "slug"
* Update prepublish script to add path to generated .js files
* Test generated path values
* Fix Furry Network icon
The Furry Network icon used to have "e"s in the path, however the
official SVG definition does not specify the E command.
source: https://www.w3schools.com/graphics/svg_path.asp