Skip to content

Commit c358326

Browse files
committed
sim-rs: switch visualizer off next.js
1 parent bcc5d9a commit c358326

34 files changed

+1985
-1200
lines changed

ui/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

ui/.gitignore

Lines changed: 15 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -4,130 +4,24 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7+
pnpm-debug.log*
78
lerna-debug.log*
8-
.pnpm-debug.log*
99

10-
# Diagnostic reports (https://nodejs.org/api/report.html)
11-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12-
13-
# Runtime data
14-
pids
15-
*.pid
16-
*.seed
17-
*.pid.lock
18-
19-
# Directory for instrumented libs generated by jscoverage/JSCover
20-
lib-cov
21-
22-
# Coverage directory used by tools like istanbul
23-
coverage
24-
*.lcov
25-
26-
# nyc test coverage
27-
.nyc_output
28-
29-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30-
.grunt
31-
32-
# Bower dependency directory (https://bower.io/)
33-
bower_components
34-
35-
# node-waf configuration
36-
.lock-wscript
37-
38-
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
40-
41-
# Dependency directories
42-
node_modules/
43-
jspm_packages/
44-
45-
# Snowpack dependency directory (https://snowpack.dev/)
46-
web_modules/
47-
48-
# TypeScript cache
49-
*.tsbuildinfo
50-
51-
# Optional npm cache directory
52-
.npm
53-
54-
# Optional eslint cache
55-
.eslintcache
56-
57-
# Optional stylelint cache
58-
.stylelintcache
59-
60-
# Microbundle cache
61-
.rpt2_cache/
62-
.rts2_cache_cjs/
63-
.rts2_cache_es/
64-
.rts2_cache_umd/
65-
66-
# Optional REPL history
67-
.node_repl_history
68-
69-
# Output of 'npm pack'
70-
*.tgz
71-
72-
# Yarn Integrity file
73-
.yarn-integrity
74-
75-
# dotenv environment variable files
76-
.env
77-
.env.development.local
78-
.env.test.local
79-
.env.production.local
80-
.env.local
81-
82-
# parcel-bundler cache (https://parceljs.org/)
83-
.cache
84-
.parcel-cache
85-
86-
# Next.js build output
87-
.next
88-
out
89-
90-
# Nuxt.js build / generate output
91-
.nuxt
10+
node_modules
9211
dist
93-
94-
# Gatsby files
95-
.cache/
96-
# Comment in the public line in if your project uses Gatsby and not Next.js
97-
# https://nextjs.org/blog/next-9-1#public-directory-support
98-
# public
99-
100-
# vuepress build output
101-
.vuepress/dist
102-
103-
# vuepress v2.x temp and cache directory
104-
.temp
105-
.cache
106-
107-
# Docusaurus cache and generated files
108-
.docusaurus
109-
110-
# Serverless directories
111-
.serverless/
112-
113-
# FuseBox cache
114-
.fusebox/
115-
116-
# DynamoDB Local files
117-
.dynamodb/
118-
119-
# TernJS port file
120-
.tern-port
121-
122-
# Stores VSCode versions used for testing VSCode extensions
123-
.vscode-test
124-
125-
# yarn v2
126-
.yarn/cache
127-
.yarn/unplugged
128-
.yarn/build-state.yml
129-
.yarn/install-state.gz
130-
.pnp.*
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
13125

13226
# don't commit these large files until we're ready
13327
public/scenarios.json

ui/bun.lockb

42.9 KB
Binary file not shown.

ui/bunfig.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

ui/eslint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
)

ui/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>Leios Visualizer</title>
9+
</head>
10+
11+
<body>
12+
<div id="root"></div>
13+
<script type="module" src="/src/main.tsx"></script>
14+
</body>
15+
16+
</html>

ui/next-env.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

ui/next.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

ui/package.json

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,38 @@
11
{
22
"name": "leios-visual",
3-
"module": "src/index.tsx",
3+
"private": true,
4+
"version": "0.0.0",
45
"type": "module",
56
"scripts": {
6-
"dev": "next dev --turbopack",
7-
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint",
10-
"seed": "bun src/components/files/convertTestData.ts"
11-
},
12-
"devDependencies": {
13-
"@sundaeswap/prettier-config": "^2.0.13",
14-
"@tailwindcss/postcss": "^4.0.15",
15-
"@types/bun": "latest",
16-
"@types/d3": "^7.4.3",
17-
"@types/oboe": "^2.1.4",
18-
"@types/pako": "^2.0.3",
19-
"@types/react": "^19.0.12",
20-
"@types/react-dom": "^19.0.4",
21-
"@vitejs/plugin-react": "^4.3.4",
22-
"autoprefixer": "^10.4.21",
23-
"postcss": "^8.5.3",
24-
"tailwindcss": "^4.0.15",
25-
"vite": "^6.2.3"
26-
},
27-
"peerDependencies": {
28-
"typescript": "^5.7.3"
7+
"dev": "vite",
8+
"build": "tsc -b && vite build",
9+
"lint": "eslint .",
10+
"preview": "vite preview"
2911
},
3012
"dependencies": {
31-
"@visx/responsive": "^3.12.0",
3213
"cbor": "^10.0.3",
3314
"classnames": "^2.5.1",
34-
"concat-stream": "^2.0.0",
35-
"d3": "^7.9.0",
3615
"debounce": "^2.2.0",
37-
"linebyline": "^1.3.0",
38-
"msgpack-lite": "^0.1.26",
39-
"next": "^15.2.3",
40-
"oboe": "^2.1.7",
41-
"pako": "^2.1.0",
4216
"react": "^19.0.0",
4317
"react-dom": "^19.0.0",
4418
"recharts": "^2.15.1",
45-
"swr": "^2.3.3",
4619
"yaml": "^2.7.0"
20+
},
21+
"devDependencies": {
22+
"@eslint/js": "^9.21.0",
23+
"@tailwindcss/vite": "^4.0.17",
24+
"@types/node": "^22.13.14",
25+
"@types/react": "^19.0.10",
26+
"@types/react-dom": "^19.0.4",
27+
"@vitejs/plugin-react": "^4.3.4",
28+
"eslint": "^9.21.0",
29+
"eslint-plugin-react-hooks": "^5.1.0",
30+
"eslint-plugin-react-refresh": "^0.4.19",
31+
"globals": "^15.15.0",
32+
"tailwindcss": "^4.0.17",
33+
"typescript": "~5.7.2",
34+
"typescript-eslint": "^8.24.1",
35+
"vite": "^6.2.0",
36+
"vite-plugin-node-polyfills": "^0.23.0"
4737
}
4838
}

ui/postcss.config.mjs

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)