Vokturz commited on
Commit
e19d3ef
·
1 Parent(s): 5541427

Clean up project dependencies and assets

Browse files
index.html CHANGED
@@ -2,11 +2,10 @@
2
  <html lang="en">
3
  <head>
4
  <meta charset="utf-8" />
5
- <link rel="icon" href="/favicon.ico" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
  <meta name="theme-color" content="#000000" />
8
  <meta name="description" content="" />
9
- <link rel="apple-touch-icon" href="/logo192.png" />
10
  <link rel="manifest" href="/manifest.json" />
11
 
12
  <title>Transformers.js Playground</title>
 
2
  <html lang="en">
3
  <head>
4
  <meta charset="utf-8" />
5
+ <link rel="icon" href="/public/favicon.ico" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
  <meta name="theme-color" content="#000000" />
8
  <meta name="description" content="" />
 
9
  <link rel="manifest" href="/manifest.json" />
10
 
11
  <title>Transformers.js Playground</title>
package.json CHANGED
@@ -5,7 +5,6 @@
5
  "private": true,
6
  "dependencies": {
7
  "@headlessui/react": "^2.2.4",
8
- "@tailwindcss/postcss": "^4.1.11",
9
  "@tailwindcss/typography": "^0.5.16",
10
  "@tailwindcss/vite": "^4.1.11",
11
  "@testing-library/dom": "^10.4.0",
@@ -22,7 +21,6 @@
22
  "lodash": "^4.17.21",
23
  "lucide-react": "^0.525.0",
24
  "path-browserify": "^1.0.1",
25
- "postcss": "^8.5.6",
26
  "react": "^19.1.0",
27
  "react-dom": "^19.1.0",
28
  "react-markdown": "^10.1.0",
@@ -38,24 +36,6 @@
38
  "build": "tsc && vite build",
39
  "serve": "vite preview"
40
  },
41
- "eslintConfig": {
42
- "extends": [
43
- "react-app",
44
- "react-app/jest"
45
- ]
46
- },
47
- "browserslist": {
48
- "production": [
49
- ">0.2%",
50
- "not dead",
51
- "not op_mini all"
52
- ],
53
- "development": [
54
- "last 1 chrome version",
55
- "last 1 firefox version",
56
- "last 1 safari version"
57
- ]
58
- },
59
  "devDependencies": {
60
  "@types/lodash": "^4.17.20",
61
  "@types/react-syntax-highlighter": "^15.5.13",
 
5
  "private": true,
6
  "dependencies": {
7
  "@headlessui/react": "^2.2.4",
 
8
  "@tailwindcss/typography": "^0.5.16",
9
  "@tailwindcss/vite": "^4.1.11",
10
  "@testing-library/dom": "^10.4.0",
 
21
  "lodash": "^4.17.21",
22
  "lucide-react": "^0.525.0",
23
  "path-browserify": "^1.0.1",
 
24
  "react": "^19.1.0",
25
  "react-dom": "^19.1.0",
26
  "react-markdown": "^10.1.0",
 
36
  "build": "tsc && vite build",
37
  "serve": "vite preview"
38
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  "devDependencies": {
40
  "@types/lodash": "^4.17.20",
41
  "@types/react-syntax-highlighter": "^15.5.13",
pnpm-lock.yaml CHANGED
@@ -11,9 +11,6 @@ importers:
11
  '@headlessui/react':
12
  specifier: ^2.2.4
13
  version: 2.2.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
14
- '@tailwindcss/postcss':
15
- specifier: ^4.1.11
16
- version: 4.1.11
17
  '@tailwindcss/typography':
18
  specifier: ^0.5.16
19
  version: 0.5.16(tailwindcss@4.1.11)
@@ -62,9 +59,6 @@ importers:
62
  path-browserify:
63
  specifier: ^1.0.1
64
  version: 1.0.1
65
- postcss:
66
- specifier: ^8.5.6
67
- version: 8.5.6
68
  react:
69
  specifier: ^19.1.0
70
  version: 19.1.0
@@ -114,10 +108,6 @@ packages:
114
  '@adobe/css-tools@4.4.3':
115
  resolution: {integrity: sha512-VQKMkwriZbaOgVCby1UDY/LDk5fIjhQicCvVPFqfe+69fWaPWydbWJ3wRt59/YzIwda1I81loas3oCoHxnqvdA==}
116
 
117
- '@alloc/quick-lru@5.2.0':
118
- resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
119
- engines: {node: '>=10'}
120
-
121
  '@ampproject/remapping@2.3.0':
122
  resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
123
  engines: {node: '>=6.0.0'}
@@ -797,9 +787,6 @@ packages:
797
  resolution: {integrity: sha512-Q69XzrtAhuyfHo+5/HMgr1lAiPP/G40OMFAnws7xcFEYqcypZmdW8eGXaOUIeOl1dzPJBPENXgbjsOyhg2nkrg==}
798
  engines: {node: '>= 10'}
799
 
800
- '@tailwindcss/postcss@4.1.11':
801
- resolution: {integrity: sha512-q/EAIIpF6WpLhKEuQSEVMZNMIY8KhWoAemZ9eylNAih9jxMGAYPPWBn3I9QL/2jZ+e7OEz/tZkX5HwbBR4HohA==}
802
-
803
  '@tailwindcss/typography@0.5.16':
804
  resolution: {integrity: sha512-0wDLwCVF5V3x3b1SGXPCDcdsbDHMBe+lkFzBRaHeLvNi+nrrnZ1lA18u+OTWO8iSWU2GxUOCvlXtDuqftc1oiA==}
805
  peerDependencies:
@@ -1954,8 +1941,6 @@ snapshots:
1954
 
1955
  '@adobe/css-tools@4.4.3': {}
1956
 
1957
- '@alloc/quick-lru@5.2.0': {}
1958
-
1959
  '@ampproject/remapping@2.3.0':
1960
  dependencies:
1961
  '@jridgewell/gen-mapping': 0.3.12
@@ -2524,14 +2509,6 @@ snapshots:
2524
  '@tailwindcss/oxide-win32-arm64-msvc': 4.1.11
2525
  '@tailwindcss/oxide-win32-x64-msvc': 4.1.11
2526
 
2527
- '@tailwindcss/postcss@4.1.11':
2528
- dependencies:
2529
- '@alloc/quick-lru': 5.2.0
2530
- '@tailwindcss/node': 4.1.11
2531
- '@tailwindcss/oxide': 4.1.11
2532
- postcss: 8.5.6
2533
- tailwindcss: 4.1.11
2534
-
2535
  '@tailwindcss/typography@0.5.16(tailwindcss@4.1.11)':
2536
  dependencies:
2537
  lodash.castarray: 4.4.0
 
11
  '@headlessui/react':
12
  specifier: ^2.2.4
13
  version: 2.2.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
 
 
 
14
  '@tailwindcss/typography':
15
  specifier: ^0.5.16
16
  version: 0.5.16(tailwindcss@4.1.11)
 
59
  path-browserify:
60
  specifier: ^1.0.1
61
  version: 1.0.1
 
 
 
62
  react:
63
  specifier: ^19.1.0
64
  version: 19.1.0
 
108
  '@adobe/css-tools@4.4.3':
109
  resolution: {integrity: sha512-VQKMkwriZbaOgVCby1UDY/LDk5fIjhQicCvVPFqfe+69fWaPWydbWJ3wRt59/YzIwda1I81loas3oCoHxnqvdA==}
110
 
 
 
 
 
111
  '@ampproject/remapping@2.3.0':
112
  resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
113
  engines: {node: '>=6.0.0'}
 
787
  resolution: {integrity: sha512-Q69XzrtAhuyfHo+5/HMgr1lAiPP/G40OMFAnws7xcFEYqcypZmdW8eGXaOUIeOl1dzPJBPENXgbjsOyhg2nkrg==}
788
  engines: {node: '>= 10'}
789
 
 
 
 
790
  '@tailwindcss/typography@0.5.16':
791
  resolution: {integrity: sha512-0wDLwCVF5V3x3b1SGXPCDcdsbDHMBe+lkFzBRaHeLvNi+nrrnZ1lA18u+OTWO8iSWU2GxUOCvlXtDuqftc1oiA==}
792
  peerDependencies:
 
1941
 
1942
  '@adobe/css-tools@4.4.3': {}
1943
 
 
 
1944
  '@ampproject/remapping@2.3.0':
1945
  dependencies:
1946
  '@jridgewell/gen-mapping': 0.3.12
 
2509
  '@tailwindcss/oxide-win32-arm64-msvc': 4.1.11
2510
  '@tailwindcss/oxide-win32-x64-msvc': 4.1.11
2511
 
 
 
 
 
 
 
 
 
2512
  '@tailwindcss/typography@0.5.16(tailwindcss@4.1.11)':
2513
  dependencies:
2514
  lodash.castarray: 4.4.0
postcss.config.mjs DELETED
@@ -1,5 +0,0 @@
1
- export default {
2
- plugins: {
3
- '@tailwindcss/postcss': {}
4
- }
5
- }
 
 
 
 
 
 
public/logo192.png DELETED
Binary file (5.35 kB)
 
public/logo512.png DELETED
Binary file (9.66 kB)
 
src/components/Modal.tsx CHANGED
@@ -63,7 +63,7 @@ const Modal: React.FC<ModalProps> = ({
63
  <div className="fixed inset-0 z-50 overflow-y-auto">
64
  {/* Backdrop */}
65
  <div
66
- className="fixed inset-0 bg-black bg-opacity-50 transition-opacity"
67
  onClick={onClose}
68
  />
69
 
 
63
  <div className="fixed inset-0 z-50 overflow-y-auto">
64
  {/* Backdrop */}
65
  <div
66
+ className="fixed inset-0 bg-black opacity-50 transition-opacity"
67
  onClick={onClose}
68
  />
69
 
src/components/ModelSelector.tsx CHANGED
@@ -332,7 +332,7 @@ function ModelSelector() {
332
  value={customModelName}
333
  onChange={(e) => setCustomModelName(e.target.value)}
334
  onKeyDown={handleCustomInputKeyPress}
335
- placeholder="Enter model name (e.g., Qwen/Qwen3-0.6B)"
336
  className="flex-1 px-2 py-1 text-sm border border-gray-300 rounded-sm focus:outline-hidden focus:ring-1 focus:ring-blue-500"
337
  autoFocus
338
  />
 
332
  value={customModelName}
333
  onChange={(e) => setCustomModelName(e.target.value)}
334
  onKeyDown={handleCustomInputKeyPress}
335
+ placeholder="onnx-community/Qwen3-0.6B-ONNX"
336
  className="flex-1 px-2 py-1 text-sm border border-gray-300 rounded-sm focus:outline-hidden focus:ring-1 focus:ring-blue-500"
337
  autoFocus
338
  />
src/components/Sidebar.tsx CHANGED
@@ -22,7 +22,7 @@ const Sidebar = ({ isOpen, onClose, setIsModalOpen }: SidebarProps) => {
22
  {/* Overlay */}
23
  {isOpen && (
24
  <div
25
- className="fixed inset-0 bg-black bg-opacity-50 z-40 lg:hidden"
26
  onClick={onClose}
27
  />
28
  )}
@@ -79,7 +79,7 @@ const Sidebar = ({ isOpen, onClose, setIsModalOpen }: SidebarProps) => {
79
  <div className="mt-4 w-42">
80
  <button
81
  onClick={() => setIsModalOpen(true)}
82
- className="flex items-center w-full px-3 py-2 text-sm text-gray-600 bg-gray-50 rounded-lg border border-gray-200 hover:bg-gray-100 transition-colors"
83
  >
84
  <FileText className="w-4 h-4 mr-2 shrink-0" />
85
  <span className="truncate">View README.md</span>
 
22
  {/* Overlay */}
23
  {isOpen && (
24
  <div
25
+ className="fixed inset-0 bg-black opacity-50 z-40 lg:hidden"
26
  onClick={onClose}
27
  />
28
  )}
 
79
  <div className="mt-4 w-42">
80
  <button
81
  onClick={() => setIsModalOpen(true)}
82
+ className="flex items-center w-44 px-3 py-2 text-sm text-gray-600 bg-gray-50 rounded-lg border border-gray-200 hover:bg-gray-100 transition-colors"
83
  >
84
  <FileText className="w-4 h-4 mr-2 shrink-0" />
85
  <span className="truncate">View README.md</span>