Skip to content

Commit 5c5c428

Browse files
authored
[UI] Add ability to store user sessions (#27)
The are placed in StoredSessions folder 6-hex file names, links are looking like this: http://localhost:3000/1561c1 to achive this a major refactoring of the frontend was done, splitting main page.js into session context and explorer content, also adding session id instances of a unique page and route.
1 parent f6ec0cc commit 5c5c428

File tree

10 files changed

+1399
-1213
lines changed

10 files changed

+1399
-1213
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ yarn-error.log*
4444
# typescript
4545
*.tsbuildinfo
4646
next-env.d.ts
47+
48+
# ignore stored sessions
49+
StoredSessions/*

StoredSessions/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
6+
"dev:ui": "next dev",
7+
"dev:api": "./mlir_venv/bin/python -m uvicorn backend.server:app --host 0.0.0.0 --port 8000 --reload",
8+
"start:all": "concurrently \"npm run dev:ui\" \"npm run dev:api\"",
79
"build": "next build",
810
"start": "next start",
9-
"lint": "next lint",
10-
"start:all": "concurrently \"npm run dev\" \"./mlir_venv/bin/python -m uvicorn backend.server:app --host 0.0.0.0 --port 8000 --reload\""
11+
"lint": "next lint"
1112
},
1213
"dependencies": {
1314
"@monaco-editor/react": "^4.7.0",

0 commit comments

Comments
 (0)