Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions turing-shadcn/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_API_URL=http://localhost:2700
VITE_CONSOLE_CONTEXT_PATH=/console
2 changes: 2 additions & 0 deletions turing-shadcn/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_API_URL=http://localhost:2700
VITE_CONSOLE_CONTEXT_PATH=/console
2 changes: 2 additions & 0 deletions turing-shadcn/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_API_URL=
VITE_CONSOLE_CONTEXT_PATH=/console
24 changes: 24 additions & 0 deletions turing-shadcn/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
57 changes: 57 additions & 0 deletions turing-shadcn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Turing Shadcn

This is the React + TypeScript + shadcn/ui version of the Turing UI project, converted from the original Angular implementation.

## Project Structure

- `/src/app/console` - Main console application (admin interface)
- `/src/app/welcome` - Login and authentication
- `/src/app/sn` - Search templates (Semantic Navigation)
- `/src/components/ui` - shadcn/ui components
- `/src/lib` - Utility functions
- `/src/models` - TypeScript models/interfaces
- `/src/services` - API services

## Original Angular Projects Converted

This project consolidates the following Angular applications from `turing-ui`:

1. **Console** - Main admin interface with modules:
- Semantic Navigation (SN)
- Search Engine (SE)
- Integration
- LLM (Large Language Models)
- Logging
- Store
- Token Management

2. **Welcome** - Login and authentication interface

3. **SN** - Search templates and semantic navigation

## Development

```bash
npm install
npm run dev
```

## Build

```bash
npm run compile
```

The build output will be placed in `../turing-app/src/main/resources/public/shadcn`

## Technology Stack

- **React 19** - UI framework
- **TypeScript** - Type safety
- **Vite** - Build tool
- **Tailwind CSS v4** - Styling
- **shadcn/ui** - Component library (built on Radix UI)
- **React Router** - Navigation
- **Axios** - HTTP client
- **Sonner** - Toast notifications
- **Lucide React** - Icons
21 changes: 21 additions & 0 deletions turing-shadcn/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
23 changes: 23 additions & 0 deletions turing-shadcn/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs['recommended-latest'],
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
])
13 changes: 13 additions & 0 deletions turing-shadcn/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>turing-shadcn</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading