spacedrive/interface
Aditya e4b03619d2
[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
..
app [ENG-971] More File Icons (code extensions) (#1217) 2023-08-22 14:45:31 +00:00
assets [ENG-469] Make Prettier and ESLint work together (#706) 2023-04-14 21:21:21 +00:00
components [ENG-974] DB Backup prototype (#1216) 2023-08-17 05:37:10 +00:00
hooks [ENG-300] Explorer multi-select (#1197) 2023-08-15 08:23:41 +00:00
types [ENG-469] Make Prettier and ESLint work together (#706) 2023-04-14 21:21:21 +00:00
util [ENG-974] DB Backup prototype (#1216) 2023-08-17 05:37:10 +00:00
.eslintrc.js [ENG-528] QuickPreview isn't correctly handling errors for video/audio playback (#815) 2023-05-18 03:31:15 +00:00
ErrorFallback.tsx [ENG-986] - Reset confirm dialog (#1232) 2023-08-18 16:43:41 +00:00
index.tsx [ENG-537] Notification system (#805) 2023-07-12 07:43:27 +00:00
package.json [ENG-300] Explorer multi-select (#1197) 2023-08-15 08:23:41 +00:00
tsconfig.json Revert some schema changes from #992 (#1003) 2023-06-23 05:57:19 +00:00