mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-08-02 18:27:06 -04: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>
48 lines
1.3 KiB
JSON
48 lines
1.3 KiB
JSON
{
|
|
"name": "@sd/desktop",
|
|
"version": "1.0.0",
|
|
"main": "index.ts",
|
|
"license": "GPL-3.0-only",
|
|
"private": true,
|
|
"scripts": {
|
|
"vite": "vite",
|
|
"dev": "node ./src-tauri/scripts/tauri.js dev",
|
|
"dev-vite": "vite --clearScreen=false --mode development",
|
|
"build": "node ./src-tauri/scripts/tauri.js build",
|
|
"dmg": "open ../../target/release/bundle/dmg/",
|
|
"typecheck": "tsc -b",
|
|
"lint": "eslint src --cache"
|
|
},
|
|
"dependencies": {
|
|
"@rspc/client": "=0.0.0-main-799eec5d",
|
|
"@rspc/tauri": "=0.0.0-main-799eec5d",
|
|
"@sd/client": "workspace:*",
|
|
"@sd/interface": "workspace:*",
|
|
"@sd/ui": "workspace:*",
|
|
"@tanstack/react-query": "^4.24.4",
|
|
"@tauri-apps/api": "1.3.0",
|
|
"comlink": "^4.4.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-router-dom": "6.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@iarna/toml": "^2.2.5",
|
|
"@sd/config": "workspace:*",
|
|
"@tauri-apps/cli": "1.3.1",
|
|
"@types/babel-core": "^6.25.7",
|
|
"@types/react": "^18.0.21",
|
|
"@types/react-dom": "^18.0.6",
|
|
"@vitejs/plugin-react": "^2.1.0",
|
|
"react-devtools": "^4.27.2",
|
|
"sass": "^1.55.0",
|
|
"semver": "^7.5.0",
|
|
"typescript": "^5.0.4",
|
|
"vite": "^4.0.4",
|
|
"vite-plugin-svgr": "^2.2.1",
|
|
"vite-tsconfig-paths": "^4.0.3",
|
|
"vite-plugin-comlink": "^3.0.5",
|
|
"vite-plugin-html": "^3.2.0"
|
|
}
|
|
}
|