mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-20 07:37:26 -05:00
* added some files `standard` mime type * Used `TEXTViewer` Component to show Code Preview * Update Thumb.tsx * added `prismjs` * removed unnecessary comment * `CODEViewer` Component for Syntax Highlighting * formatting * using **Atom** Theme for `Prism` * merge text/code viewers & bg-app-focus for prism currently calling onError and onLoad without an Event argument that should change but i'm not really sure what to do there * removed unused imports * Update index.ts * `TEXTViewer` to `TextViewer_` * `TextViewer_` to `TextViewer` * Don't highlight normal TextFiles * clean code * `TEXTViewer` to `TextViewer` * using tailwind classes more * doing things correctly. * installed `prismjs` in interface * using own scroller * Update Thumb.tsx * Add an AbortController to the fetch request - Fix onError and onLoad calls - Format code * Fix onError being called when request was aborted due to re-render - Fix Compoenent re-rendering loop due to circular reference in useEffect - Remove unused imports * Improve text file serving and code syntax highlight - Implement way to identify text files in file-ext crate - Do not depend only on the file extension to identify text files in custom_uri - Import more prismjs language rules files - Add line numbers to TextViewer when rendering code * Clippy and prettier * Fix reading zero byte data to Vec - Improve empty file handling * Expand code highlight to more file types - Fix 10MB when it should be 10KB - Add supported for more code and config files extensions to sd-file-ext - Add comlink and vite-plugin-comlink for easy js worker integration - Move Prismjs logic to a Worker, because larger files (1000+ lines) where causing the UI to hang - Replace line-number prismjs plugin with our own implementation * Fix uppercase extension name --------- Co-authored-by: Utku <74243531+utkubakir@users.noreply.github.com> Co-authored-by: pr <pineapplerind.info@gmail.com> Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
92 lines
2.5 KiB
JSON
92 lines
2.5 KiB
JSON
{
|
|
"name": "@sd/interface",
|
|
"version": "1.0.0",
|
|
"license": "GPL-3.0-only",
|
|
"private": true,
|
|
"main": "index.tsx",
|
|
"types": "index.tsx",
|
|
"exports": {
|
|
".": "./index.tsx",
|
|
"./assets/*": "./assets/*",
|
|
"./components/*": "./components/*",
|
|
"./hooks/*": "./hooks/*"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint . --cache",
|
|
"typecheck": "tsc -b",
|
|
"build": "tsc"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource/inter": "^4.5.13",
|
|
"@headlessui/react": "^1.7.3",
|
|
"@icons-pack/react-simple-icons": "^7.2.0",
|
|
"@radix-ui/react-progress": "^1.0.1",
|
|
"@radix-ui/react-slider": "^1.1.0",
|
|
"@radix-ui/react-toast": "^1.1.2",
|
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
"@remix-run/router": "^1.4.0",
|
|
"@sd/assets": "workspace:*",
|
|
"@sd/client": "workspace:*",
|
|
"@sd/ui": "workspace:*",
|
|
"@sentry/browser": "^7.16.0",
|
|
"@splinetool/react-spline": "^2.2.3",
|
|
"@splinetool/runtime": "^0.9.128",
|
|
"@tailwindcss/forms": "^0.5.3",
|
|
"@tanstack/react-query": "^4.12.0",
|
|
"@tanstack/react-query-devtools": "^4.22.0",
|
|
"@tanstack/react-table": "^8.8.5",
|
|
"@tanstack/react-virtual": "3.0.0-beta.54",
|
|
"@types/react-scroll-sync": "^0.8.4",
|
|
"@types/uuid": "^9.0.2",
|
|
"@vitejs/plugin-react": "^2.1.0",
|
|
"autoprefixer": "^10.4.12",
|
|
"class-variance-authority": "^0.5.3",
|
|
"clsx": "^1.2.1",
|
|
"crypto-random-string": "^5.0.0",
|
|
"dayjs": "^1.11.8",
|
|
"dragselect": "^2.7.4",
|
|
"framer-motion": "^10.11.5",
|
|
"phosphor-react": "^1.4.1",
|
|
"prismjs": "^1.29.0",
|
|
"react": "^18.2.0",
|
|
"react-colorful": "^5.6.1",
|
|
"react-dnd": "^16.0.1",
|
|
"react-dnd-html5-backend": "^16.0.1",
|
|
"react-dom": "^18.2.0",
|
|
"react-error-boundary": "^3.1.4",
|
|
"react-hook-form": "~7.45.2",
|
|
"react-json-view": "^1.21.3",
|
|
"react-loading-skeleton": "^3.1.0",
|
|
"react-qr-code": "^2.0.11",
|
|
"react-router": "6.9.0",
|
|
"react-router-dom": "6.9.0",
|
|
"react-scroll-sync": "^0.11.0",
|
|
"react-selecto": "^1.26.0",
|
|
"react-sticky-el": "^2.1.0",
|
|
"react-use-draggable-scroll": "^0.4.7",
|
|
"remix-params-helper": "^0.4.10",
|
|
"rooks": "^5.14.0",
|
|
"tailwindcss": "^3.3.2",
|
|
"ts-deepmerge": "^6.0.3",
|
|
"type-fest": "^4.2.0",
|
|
"use-count-up": "^3.0.1",
|
|
"use-debounce": "^8.0.4",
|
|
"use-resize-observer": "^9.1.0",
|
|
"uuid": "^9.0.0",
|
|
"valtio": "^1.7.4"
|
|
},
|
|
"devDependencies": {
|
|
"@sd/config": "workspace:*",
|
|
"@types/babel-core": "^6.25.7",
|
|
"@types/loadable__component": "^5.13.4",
|
|
"@types/node": "^18.11.9",
|
|
"@types/react": "^18.0.21",
|
|
"@types/react-dom": "^18.0.6",
|
|
"@types/react-router-dom": "^5.3.3",
|
|
"@vitejs/plugin-react": "^1.3.1",
|
|
"typescript": "5.0.4",
|
|
"vite": "^4.0.4",
|
|
"vite-plugin-svgr": "^2.2.1"
|
|
}
|
|
}
|