spacedrive/apps/mobile/.svgrrc.js

6 lines
90 B
JavaScript
Raw Normal View History

[ENG-971] More File Icons (code extensions) (#1217) * added bearded icons * implemented bearded icons * Made separate `LayeredFileIcon` component * Delete index.tsx * Update LayeredFileIcon.tsx * Update LayeredFileIcon.tsx * Update Thumb.tsx * modified `generate.mjs` file modified `generate.mjs` file to automatically generate index file for our icons * Automatically generated by `generate.mjs` script auto generate files are also included in code, so i also included it * `bearded-icons` in `ext` folder * Update LayeredFileIcon.tsx * Update LayeredFileIcon.tsx * formatted LayeredFileIcon.tsx * Update Thumb.tsx * added more icons to utilize * made seperate file for `IconMapping` * fixed typescript error by `Record<string, React.ReactElement>` * More fixes in typescript BTW, I am still learning TypeScript, but I know at least how much is required to get my work complete. * moved icons to `assets/svgs/ext` * added `kind !== 'Code'` * Update Thumb.tsx * Enable LayeredFileIcon for any file icon - Change IconMapping to define layered icons by kind/extension, instead of just extensions - Always render LayeredFileIcon component and determine whether the layered icon should or not be rendered internally - Format code * Using our own name conventions * `getLayeredIcon` implementation * using our own directory structure * directory structure * fix 1 * fixed relative import * `getLayeredIcon` utility implementation * for our `kind`/`extention`.svg folder structure * improvements in `getLayeredIcon` * added icons in `Code` * Delete IconMapping.tsx * fixed imports * fix typescript, mobile svg handling etc --------- Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com> Co-authored-by: Jamie Pine <32987599+jamiepine@users.noreply.github.com> Co-authored-by: Utku <74243531+utkubakir@users.noreply.github.com>
2023-08-22 14:45:31 +00:00
module.exports = {
icon: true,
typescript: true,
svgProps: { fill: 'currentColor' }
};