Duibonduil commited on
Commit
14c5b3b
·
verified ·
1 Parent(s): 5a72d6a

Upload 8 files

Browse files
aworld/cmd/web/webui/.gitignore ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ pnpm-debug.log*
8
+ lerna-debug.log*
9
+
10
+ node_modules
11
+ dist-ssr
12
+ *.local
13
+
14
+ # Editor directories and files
15
+ .vscode/*
16
+ !.vscode/extensions.json
17
+ .idea
18
+ .DS_Store
19
+ *.suo
20
+ *.ntvs*
21
+ *.njsproj
22
+ *.sln
23
+ *.sw?
aworld/cmd/web/webui/README.md ADDED
@@ -0,0 +1 @@
 
 
1
+ Front End Code Here
aworld/cmd/web/webui/eslint.config.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import js from '@eslint/js'
2
+ import globals from 'globals'
3
+ import reactHooks from 'eslint-plugin-react-hooks'
4
+ import reactRefresh from 'eslint-plugin-react-refresh'
5
+ import tseslint from 'typescript-eslint'
6
+
7
+ export default tseslint.config(
8
+ { ignores: ['dist'] },
9
+ {
10
+ extends: [js.configs.recommended, ...tseslint.configs.recommended],
11
+ files: ['**/*.{ts,tsx}'],
12
+ languageOptions: {
13
+ ecmaVersion: 2020,
14
+ globals: globals.browser,
15
+ },
16
+ plugins: {
17
+ 'react-hooks': reactHooks,
18
+ 'react-refresh': reactRefresh,
19
+ },
20
+ rules: {
21
+ ...reactHooks.configs.recommended.rules,
22
+ 'react-refresh/only-export-components': [
23
+ 'warn',
24
+ { allowConstantExport: true },
25
+ ],
26
+ },
27
+ },
28
+ )
aworld/cmd/web/webui/index.html ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/aworld_logo.png" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Aworld</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>
aworld/cmd/web/webui/package-lock.json ADDED
The diff for this file is too large to render. See raw diff
 
aworld/cmd/web/webui/package.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Aworld-UI",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc -b && vite build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "@ant-design/x": "^1.4.0",
14
+ "antd": "^5.26.0",
15
+ "antd-style": "^3.7.1",
16
+ "mermaid": "^11.7.0",
17
+ "react": "^19.1.0",
18
+ "react-dom": "^19.1.0",
19
+ "react-markdown": "^10.1.0",
20
+ "uuid": "^11.1.0"
21
+ },
22
+ "devDependencies": {
23
+ "@eslint/js": "^9.25.0",
24
+ "@types/react": "^19.1.2",
25
+ "@types/react-dom": "^19.1.2",
26
+ "@vitejs/plugin-react": "^4.4.1",
27
+ "eslint": "^9.25.0",
28
+ "eslint-plugin-react-hooks": "^5.2.0",
29
+ "eslint-plugin-react-refresh": "^0.4.19",
30
+ "globals": "^16.0.0",
31
+ "less": "^4.3.0",
32
+ "typescript": "~5.8.3",
33
+ "typescript-eslint": "^8.30.1",
34
+ "vite": "^6.3.5"
35
+ },
36
+ "repository": "[email protected]:inclusionAI/AWorld.git"
37
+ }
aworld/cmd/web/webui/tsconfig.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": "./src",
4
+ "paths": {
5
+ "@/*": ["*"]
6
+ },
7
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
8
+ "target": "ES2020",
9
+ "useDefineForClassFields": true,
10
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
11
+ "module": "ESNext",
12
+ "skipLibCheck": true,
13
+
14
+ /* Bundler mode */
15
+ "moduleResolution": "bundler",
16
+ "allowImportingTsExtensions": true,
17
+ "verbatimModuleSyntax": true,
18
+ "moduleDetection": "force",
19
+ "noEmit": true,
20
+ "jsx": "react-jsx",
21
+
22
+ /* Linting */
23
+ "strict": true,
24
+ "noUnusedLocals": true,
25
+ "noUnusedParameters": true,
26
+ "erasableSyntaxOnly": true,
27
+ "noFallthroughCasesInSwitch": true,
28
+ "noUncheckedSideEffectImports": true,
29
+ },
30
+ "include": ["src"],
31
+ }
aworld/cmd/web/webui/vite.config.ts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { defineConfig } from 'vite';
2
+ import react from '@vitejs/plugin-react';
3
+
4
+ // https://vite.dev/config/
5
+ export default defineConfig({
6
+ plugins: [react()],
7
+ server: {
8
+ proxy: {
9
+ '^/api': {
10
+ target: 'http://localhost:8000',
11
+ changeOrigin: true,
12
+ secure: false,
13
+ ws: true
14
+ }
15
+ }
16
+ }
17
+ });