Spaces:
Sleeping
Sleeping
rm front
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- frontend/README.md +0 -90
- frontend/node_modules/.bin/acorn +0 -1
- frontend/node_modules/.bin/ansi-html +0 -1
- frontend/node_modules/.bin/autoprefixer +0 -1
- frontend/node_modules/.bin/browserslist +0 -1
- frontend/node_modules/.bin/css-blank-pseudo +0 -1
- frontend/node_modules/.bin/css-has-pseudo +0 -1
- frontend/node_modules/.bin/css-prefers-color-scheme +0 -1
- frontend/node_modules/.bin/cssesc +0 -1
- frontend/node_modules/.bin/detect +0 -1
- frontend/node_modules/.bin/detect-port +0 -1
- frontend/node_modules/.bin/ejs +0 -1
- frontend/node_modules/.bin/escodegen +0 -1
- frontend/node_modules/.bin/esgenerate +0 -1
- frontend/node_modules/.bin/eslint +0 -1
- frontend/node_modules/.bin/esparse +0 -1
- frontend/node_modules/.bin/esvalidate +0 -1
- frontend/node_modules/.bin/he +0 -1
- frontend/node_modules/.bin/html-minifier-terser +0 -1
- frontend/node_modules/.bin/import-local-fixture +0 -1
- frontend/node_modules/.bin/is-docker +0 -1
- frontend/node_modules/.bin/jake +0 -1
- frontend/node_modules/.bin/jest +0 -1
- frontend/node_modules/.bin/jiti +0 -1
- frontend/node_modules/.bin/js-yaml +0 -1
- frontend/node_modules/.bin/jsesc +0 -1
- frontend/node_modules/.bin/json5 +0 -1
- frontend/node_modules/.bin/loose-envify +0 -1
- frontend/node_modules/.bin/mime +0 -1
- frontend/node_modules/.bin/mkdirp +0 -1
- frontend/node_modules/.bin/multicast-dns +0 -1
- frontend/node_modules/.bin/nanoid +0 -1
- frontend/node_modules/.bin/node-which +0 -1
- frontend/node_modules/.bin/parser +0 -1
- frontend/node_modules/.bin/react-scripts +0 -1
- frontend/node_modules/.bin/regjsparser +0 -1
- frontend/node_modules/.bin/resolve +0 -1
- frontend/node_modules/.bin/rimraf +0 -1
- frontend/node_modules/.bin/rollup +0 -1
- frontend/node_modules/.bin/semver +0 -1
- frontend/node_modules/.bin/sucrase +0 -1
- frontend/node_modules/.bin/sucrase-node +0 -1
- frontend/node_modules/.bin/svgo +0 -1
- frontend/node_modules/.bin/tailwind +0 -1
- frontend/node_modules/.bin/tailwindcss +0 -1
- frontend/node_modules/.bin/terser +0 -1
- frontend/node_modules/.bin/tsc +0 -1
- frontend/node_modules/.bin/tsserver +0 -1
- frontend/node_modules/.bin/update-browserslist-db +0 -1
- frontend/node_modules/.bin/uuid +0 -1
frontend/README.md
DELETED
@@ -1,90 +0,0 @@
|
|
1 |
-
# Text Classification Frontend
|
2 |
-
|
3 |
-
A modern React frontend for the text classification API, built with TypeScript and Tailwind CSS.
|
4 |
-
|
5 |
-
## Features
|
6 |
-
|
7 |
-
- Text classification
|
8 |
-
- Batch classification
|
9 |
-
- Category suggestions
|
10 |
-
- Classification validation
|
11 |
-
- Classification improvement
|
12 |
-
- Real-time feedback
|
13 |
-
- Modern UI with Tailwind CSS
|
14 |
-
|
15 |
-
## Prerequisites
|
16 |
-
|
17 |
-
- Node.js (v14 or later)
|
18 |
-
- npm or yarn
|
19 |
-
- Running backend server (http://localhost:8000)
|
20 |
-
|
21 |
-
## Installation
|
22 |
-
|
23 |
-
1. Install dependencies:
|
24 |
-
```bash
|
25 |
-
npm install
|
26 |
-
# or
|
27 |
-
yarn install
|
28 |
-
```
|
29 |
-
|
30 |
-
2. Start the development server:
|
31 |
-
```bash
|
32 |
-
npm start
|
33 |
-
# or
|
34 |
-
yarn start
|
35 |
-
```
|
36 |
-
|
37 |
-
The application will be available at http://localhost:3000.
|
38 |
-
|
39 |
-
## Project Structure
|
40 |
-
|
41 |
-
- `src/components/` - React components
|
42 |
-
- `Home.tsx` - Home page with system status
|
43 |
-
- `Classify.tsx` - Text classification interface
|
44 |
-
- `Validate.tsx` - Classification validation interface
|
45 |
-
- `Improve.tsx` - Classification improvement interface
|
46 |
-
- `src/api/` - API service functions
|
47 |
-
- `src/types/` - TypeScript type definitions
|
48 |
-
- `public/` - Static assets
|
49 |
-
|
50 |
-
## Usage
|
51 |
-
|
52 |
-
1. **Home Page**
|
53 |
-
- View system status
|
54 |
-
- Check model information
|
55 |
-
- Monitor API health
|
56 |
-
|
57 |
-
2. **Classify Page**
|
58 |
-
- Enter text to classify
|
59 |
-
- Perform batch classification
|
60 |
-
- Get category suggestions
|
61 |
-
- View classification results with confidence scores
|
62 |
-
|
63 |
-
3. **Validate Page**
|
64 |
-
- Enter text samples
|
65 |
-
- Validate classifications
|
66 |
-
- View accuracy scores
|
67 |
-
- Get improvement suggestions
|
68 |
-
|
69 |
-
4. **Improve Page**
|
70 |
-
- Enter text samples
|
71 |
-
- Provide validation report
|
72 |
-
- Specify categories
|
73 |
-
- Get improved classifications
|
74 |
-
|
75 |
-
## Development
|
76 |
-
|
77 |
-
- The application uses TypeScript for type safety
|
78 |
-
- Tailwind CSS for styling
|
79 |
-
- React Router for navigation
|
80 |
-
- Axios for API requests
|
81 |
-
|
82 |
-
## Building for Production
|
83 |
-
|
84 |
-
```bash
|
85 |
-
npm run build
|
86 |
-
# or
|
87 |
-
yarn build
|
88 |
-
```
|
89 |
-
|
90 |
-
The build artifacts will be stored in the `build/` directory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
frontend/node_modules/.bin/acorn
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../acorn/bin/acorn
|
|
|
|
frontend/node_modules/.bin/ansi-html
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../ansi-html/bin/ansi-html
|
|
|
|
frontend/node_modules/.bin/autoprefixer
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../autoprefixer/bin/autoprefixer
|
|
|
|
frontend/node_modules/.bin/browserslist
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../browserslist/cli.js
|
|
|
|
frontend/node_modules/.bin/css-blank-pseudo
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../css-blank-pseudo/dist/cli.cjs
|
|
|
|
frontend/node_modules/.bin/css-has-pseudo
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../css-has-pseudo/dist/cli.cjs
|
|
|
|
frontend/node_modules/.bin/css-prefers-color-scheme
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../css-prefers-color-scheme/dist/cli.cjs
|
|
|
|
frontend/node_modules/.bin/cssesc
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../cssesc/bin/cssesc
|
|
|
|
frontend/node_modules/.bin/detect
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../detect-port-alt/bin/detect-port
|
|
|
|
frontend/node_modules/.bin/detect-port
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../detect-port-alt/bin/detect-port
|
|
|
|
frontend/node_modules/.bin/ejs
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../ejs/bin/cli.js
|
|
|
|
frontend/node_modules/.bin/escodegen
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../escodegen/bin/escodegen.js
|
|
|
|
frontend/node_modules/.bin/esgenerate
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../escodegen/bin/esgenerate.js
|
|
|
|
frontend/node_modules/.bin/eslint
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../eslint/bin/eslint.js
|
|
|
|
frontend/node_modules/.bin/esparse
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../esprima/bin/esparse.js
|
|
|
|
frontend/node_modules/.bin/esvalidate
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../esprima/bin/esvalidate.js
|
|
|
|
frontend/node_modules/.bin/he
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../he/bin/he
|
|
|
|
frontend/node_modules/.bin/html-minifier-terser
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../html-minifier-terser/cli.js
|
|
|
|
frontend/node_modules/.bin/import-local-fixture
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../import-local/fixtures/cli.js
|
|
|
|
frontend/node_modules/.bin/is-docker
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../is-docker/cli.js
|
|
|
|
frontend/node_modules/.bin/jake
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../jake/bin/cli.js
|
|
|
|
frontend/node_modules/.bin/jest
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../jest/bin/jest.js
|
|
|
|
frontend/node_modules/.bin/jiti
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../jiti/bin/jiti.js
|
|
|
|
frontend/node_modules/.bin/js-yaml
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../js-yaml/bin/js-yaml.js
|
|
|
|
frontend/node_modules/.bin/jsesc
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../jsesc/bin/jsesc
|
|
|
|
frontend/node_modules/.bin/json5
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../json5/lib/cli.js
|
|
|
|
frontend/node_modules/.bin/loose-envify
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../loose-envify/cli.js
|
|
|
|
frontend/node_modules/.bin/mime
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../mime/cli.js
|
|
|
|
frontend/node_modules/.bin/mkdirp
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../mkdirp/bin/cmd.js
|
|
|
|
frontend/node_modules/.bin/multicast-dns
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../multicast-dns/cli.js
|
|
|
|
frontend/node_modules/.bin/nanoid
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../nanoid/bin/nanoid.cjs
|
|
|
|
frontend/node_modules/.bin/node-which
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../which/bin/node-which
|
|
|
|
frontend/node_modules/.bin/parser
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../@babel/parser/bin/babel-parser.js
|
|
|
|
frontend/node_modules/.bin/react-scripts
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../react-scripts/bin/react-scripts.js
|
|
|
|
frontend/node_modules/.bin/regjsparser
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../regjsparser/bin/parser
|
|
|
|
frontend/node_modules/.bin/resolve
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../resolve/bin/resolve
|
|
|
|
frontend/node_modules/.bin/rimraf
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../rimraf/bin.js
|
|
|
|
frontend/node_modules/.bin/rollup
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../rollup/dist/bin/rollup
|
|
|
|
frontend/node_modules/.bin/semver
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../semver/bin/semver.js
|
|
|
|
frontend/node_modules/.bin/sucrase
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../sucrase/bin/sucrase
|
|
|
|
frontend/node_modules/.bin/sucrase-node
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../sucrase/bin/sucrase-node
|
|
|
|
frontend/node_modules/.bin/svgo
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../svgo/bin/svgo
|
|
|
|
frontend/node_modules/.bin/tailwind
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../tailwindcss/lib/cli.js
|
|
|
|
frontend/node_modules/.bin/tailwindcss
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../tailwindcss/lib/cli.js
|
|
|
|
frontend/node_modules/.bin/terser
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../terser/bin/terser
|
|
|
|
frontend/node_modules/.bin/tsc
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../typescript/bin/tsc
|
|
|
|
frontend/node_modules/.bin/tsserver
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../typescript/bin/tsserver
|
|
|
|
frontend/node_modules/.bin/update-browserslist-db
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../update-browserslist-db/cli.js
|
|
|
|
frontend/node_modules/.bin/uuid
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
../uuid/dist/bin/uuid
|
|
|
|