first commit
This commit is contained in:
24
.gitignore
vendored
Normal file
24
.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
backend/.secrets
|
||||
12
backend/app.js
Normal file
12
backend/app.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import express from 'express';
|
||||
import cors from 'cors';
|
||||
import notesRoutes from './routes/notes.routes.js';
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(cors());
|
||||
app.use(express.json());
|
||||
|
||||
app.use('/api/notes', notesRoutes);
|
||||
|
||||
export default app;
|
||||
1
backend/config/index.js
Normal file
1
backend/config/index.js
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
402
backend/data/notes.json
Normal file
402
backend/data/notes.json
Normal file
@@ -0,0 +1,402 @@
|
||||
[
|
||||
{
|
||||
"id": "note_038",
|
||||
"text": "Live follow mode frequently breaks",
|
||||
"x": 710,
|
||||
"y": 579,
|
||||
"author": "user_9",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_005",
|
||||
"text": "SSO login loops back to the sign-in page",
|
||||
"x": 184,
|
||||
"y": 124,
|
||||
"author": "user_7",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_023",
|
||||
"text": "Undo/redo sometimes lags and applies late",
|
||||
"x": 236,
|
||||
"y": 687,
|
||||
"author": "user_9",
|
||||
"color": "purple"
|
||||
},
|
||||
{
|
||||
"id": "note_017",
|
||||
"text": "Exported file names are inconsistent and hard to track",
|
||||
"x": 676,
|
||||
"y": 201,
|
||||
"author": "user_4",
|
||||
"color": "blue"
|
||||
},
|
||||
{
|
||||
"id": "note_049",
|
||||
"text": "Need better controls for aligning and distributing notes",
|
||||
"x": 462,
|
||||
"y": 487,
|
||||
"author": "user_7",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_010",
|
||||
"text": "OAuth consent screen appears every time I sign in",
|
||||
"x": 228,
|
||||
"y": 124,
|
||||
"author": "user_9",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_036",
|
||||
"text": "Cursor presence is distracting and overlaps content",
|
||||
"x": 788,
|
||||
"y": 605,
|
||||
"author": "user_5",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_011",
|
||||
"text": "Need better export options (PDF quality is too low)",
|
||||
"x": 748,
|
||||
"y": 212,
|
||||
"author": "user_9",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_012",
|
||||
"text": "Exported PDF cuts off content near the edges",
|
||||
"x": 733,
|
||||
"y": 159,
|
||||
"author": "user_6",
|
||||
"color": "blue"
|
||||
},
|
||||
{
|
||||
"id": "note_019",
|
||||
"text": "Embedded exports don’t update when the board changes",
|
||||
"x": 662,
|
||||
"y": 132,
|
||||
"author": "user_1",
|
||||
"color": "blue"
|
||||
},
|
||||
{
|
||||
"id": "note_020",
|
||||
"text": "Can’t export comments and reactions with the content",
|
||||
"x": 739,
|
||||
"y": 139,
|
||||
"author": "user_7",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_039",
|
||||
"text": "Guest collaborators can’t see updates without refreshing",
|
||||
"x": 759,
|
||||
"y": 711,
|
||||
"author": "user_9",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_024",
|
||||
"text": "App crashes when opening a large board",
|
||||
"x": 239,
|
||||
"y": 597,
|
||||
"author": "user_10",
|
||||
"color": "purple"
|
||||
},
|
||||
{
|
||||
"id": "note_041",
|
||||
"text": "Hard to find the right template quickly",
|
||||
"x": 536,
|
||||
"y": 394,
|
||||
"author": "user_4",
|
||||
"color": "orange"
|
||||
},
|
||||
{
|
||||
"id": "note_040",
|
||||
"text": "Activity feed lacks context about what changed",
|
||||
"x": 710,
|
||||
"y": 771,
|
||||
"author": "user_7",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_014",
|
||||
"text": "Export takes too long and sometimes never finishes",
|
||||
"x": 798,
|
||||
"y": 211,
|
||||
"author": "user_2",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_031",
|
||||
"text": "Hard to tell who is editing what in real time",
|
||||
"x": 761,
|
||||
"y": 704,
|
||||
"author": "user_8",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_032",
|
||||
"text": "Comments get lost — no clear thread view",
|
||||
"x": 818,
|
||||
"y": 641,
|
||||
"author": "user_5",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_050",
|
||||
"text": "Can’t lock sections to prevent accidental edits during workshops",
|
||||
"x": 521,
|
||||
"y": 471,
|
||||
"author": "user_6",
|
||||
"color": "orange"
|
||||
},
|
||||
{
|
||||
"id": "note_001",
|
||||
"text": "Login flow feels confusing",
|
||||
"x": 193,
|
||||
"y": 191,
|
||||
"author": "user_5",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_025",
|
||||
"text": "Saving indicator spins but changes aren’t saved",
|
||||
"x": 129,
|
||||
"y": 781,
|
||||
"author": "user_3",
|
||||
"color": "purple"
|
||||
},
|
||||
{
|
||||
"id": "note_021",
|
||||
"text": "Board feels slow when there are many sticky notes",
|
||||
"x": 341,
|
||||
"y": 695,
|
||||
"author": "user_10",
|
||||
"color": "purple"
|
||||
},
|
||||
{
|
||||
"id": "note_002",
|
||||
"text": "Login flow is broken on mobile",
|
||||
"x": 214,
|
||||
"y": 281,
|
||||
"author": "user_9",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_046",
|
||||
"text": "Tags are missing — I need better categorization",
|
||||
"x": 472,
|
||||
"y": 435,
|
||||
"author": "user_6",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_018",
|
||||
"text": "No way to schedule recurring exports for stakeholders",
|
||||
"x": 661,
|
||||
"y": 229,
|
||||
"author": "user_9",
|
||||
"color": "blue"
|
||||
},
|
||||
{
|
||||
"id": "note_034",
|
||||
"text": "Too many notification emails for minor edits",
|
||||
"x": 769,
|
||||
"y": 739,
|
||||
"author": "user_9",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_003",
|
||||
"text": "When I enter my username and password I get an unknown error",
|
||||
"x": 189,
|
||||
"y": 193,
|
||||
"author": "user_2",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_008",
|
||||
"text": "Cannot change my password — save button does nothing",
|
||||
"x": 244,
|
||||
"y": 188,
|
||||
"author": "user_2",
|
||||
"color": "orange"
|
||||
},
|
||||
{
|
||||
"id": "note_015",
|
||||
"text": "Sharing link permissions are confusing",
|
||||
"x": 688,
|
||||
"y": 290,
|
||||
"author": "user_6",
|
||||
"color": "blue"
|
||||
},
|
||||
{
|
||||
"id": "note_033",
|
||||
"text": "Mentions (@) don’t notify the right people",
|
||||
"x": 696,
|
||||
"y": 669,
|
||||
"author": "user_5",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_006",
|
||||
"text": "Two-factor code is rejected even when correct",
|
||||
"x": 162,
|
||||
"y": 213,
|
||||
"author": "user_1",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_028",
|
||||
"text": "High CPU usage even when idle on a board",
|
||||
"x": 190,
|
||||
"y": 695,
|
||||
"author": "user_8",
|
||||
"color": "purple"
|
||||
},
|
||||
{
|
||||
"id": "note_009",
|
||||
"text": "Account gets locked too quickly after one failed attempt",
|
||||
"x": 280,
|
||||
"y": 255,
|
||||
"author": "user_10",
|
||||
"color": "orange"
|
||||
},
|
||||
{
|
||||
"id": "note_029",
|
||||
"text": "Offline mode loses edits when reconnecting",
|
||||
"x": 338,
|
||||
"y": 632,
|
||||
"author": "user_1",
|
||||
"color": "pink"
|
||||
},
|
||||
{
|
||||
"id": "note_035",
|
||||
"text": "No notification when someone resolves my comment",
|
||||
"x": 673,
|
||||
"y": 636,
|
||||
"author": "user_2",
|
||||
"color": "blue"
|
||||
},
|
||||
{
|
||||
"id": "note_037",
|
||||
"text": "Can’t easily hand off facilitation to another user",
|
||||
"x": 816,
|
||||
"y": 707,
|
||||
"author": "user_2",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_013",
|
||||
"text": "Cannot export selected area — only full board exports",
|
||||
"x": 696,
|
||||
"y": 205,
|
||||
"author": "user_4",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_016",
|
||||
"text": "Downloaded image is blurry compared to the canvas",
|
||||
"x": 677,
|
||||
"y": 245,
|
||||
"author": "user_5",
|
||||
"color": "blue"
|
||||
},
|
||||
{
|
||||
"id": "note_043",
|
||||
"text": "Can’t organize boards into folders the way I need",
|
||||
"x": 504,
|
||||
"y": 398,
|
||||
"author": "user_4",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_022",
|
||||
"text": "Canvas freezes for a few seconds when zooming",
|
||||
"x": 254,
|
||||
"y": 707,
|
||||
"author": "user_8",
|
||||
"color": "pink"
|
||||
},
|
||||
{
|
||||
"id": "note_026",
|
||||
"text": "Search is slow on boards with lots of content",
|
||||
"x": 253,
|
||||
"y": 658,
|
||||
"author": "user_2",
|
||||
"color": "pink"
|
||||
},
|
||||
{
|
||||
"id": "note_048",
|
||||
"text": "Duplicating a board loses some formatting",
|
||||
"x": 382,
|
||||
"y": 410,
|
||||
"author": "user_10",
|
||||
"color": "orange"
|
||||
},
|
||||
{
|
||||
"id": "note_007",
|
||||
"text": "I’m logged out unexpectedly after a few minutes",
|
||||
"x": 185,
|
||||
"y": 157,
|
||||
"author": "user_3",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_045",
|
||||
"text": "No bulk rename for multiple sticky notes",
|
||||
"x": 455,
|
||||
"y": 427,
|
||||
"author": "user_1",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_042",
|
||||
"text": "Template search results feel irrelevant",
|
||||
"x": 400,
|
||||
"y": 474,
|
||||
"author": "user_6",
|
||||
"color": "orange"
|
||||
},
|
||||
{
|
||||
"id": "note_044",
|
||||
"text": "Naming conventions aren’t enforced and things get messy",
|
||||
"x": 469,
|
||||
"y": 434,
|
||||
"author": "user_9",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_004",
|
||||
"text": "Password reset email never arrives",
|
||||
"x": 207,
|
||||
"y": 267,
|
||||
"author": "user_9",
|
||||
"color": "yellow"
|
||||
},
|
||||
{
|
||||
"id": "note_047",
|
||||
"text": "Hard to keep consistent styles across boards",
|
||||
"x": 420,
|
||||
"y": 426,
|
||||
"author": "user_8",
|
||||
"color": "green"
|
||||
},
|
||||
{
|
||||
"id": "note_030",
|
||||
"text": "I see random 'something went wrong' banners with no details",
|
||||
"x": 214,
|
||||
"y": 594,
|
||||
"author": "user_5",
|
||||
"color": "purple"
|
||||
},
|
||||
{
|
||||
"id": "note_027",
|
||||
"text": "Scrolling stutters on older laptops",
|
||||
"x": 178,
|
||||
"y": 586,
|
||||
"author": "user_7",
|
||||
"color": "pink"
|
||||
}
|
||||
]
|
||||
20
backend/package.json
Normal file
20
backend/package.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "resias-backend",
|
||||
"version": "0.1.0",
|
||||
"description": "Resias AI clustering feature - backend for ProjectPilot",
|
||||
"type": "module",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"start": "node server.js",
|
||||
"dev": "nodemon server.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.4.7",
|
||||
"express": "^4.21.2",
|
||||
"openai": "^4.82.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^3.1.9"
|
||||
}
|
||||
}
|
||||
1
backend/routes/notes.routes.js
Normal file
1
backend/routes/notes.routes.js
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
8
backend/server.js
Normal file
8
backend/server.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import app from './app.js';
|
||||
import config from './config/index.js';
|
||||
|
||||
const PORT = config.port || 3001;
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Envision backend running on port ${PORT}`);
|
||||
});
|
||||
1
backend/services/clustering.service.js
Normal file
1
backend/services/clustering.service.js
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
125
frontend/package-lock.json
generated
Normal file
125
frontend/package-lock.json
generated
Normal file
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "^5.90.21",
|
||||
"react-router-dom": "^7.13.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tanstack/query-core": {
|
||||
"version": "5.90.20",
|
||||
"resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.20.tgz",
|
||||
"integrity": "sha512-OMD2HLpNouXEfZJWcKeVKUgQ5n+n3A2JFmBaScpNDUqSrQSjiveC7dKMe53uJUg1nDG16ttFPz2xfilz6i2uVg==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/tannerlinsley"
|
||||
}
|
||||
},
|
||||
"node_modules/@tanstack/react-query": {
|
||||
"version": "5.90.21",
|
||||
"resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.90.21.tgz",
|
||||
"integrity": "sha512-0Lu6y5t+tvlTJMTO7oh5NSpJfpg/5D41LlThfepTixPYkJ0sE2Jj0m0f6yYqujBwIXlId87e234+MxG3D3g7kg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@tanstack/query-core": "5.90.20"
|
||||
},
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/tannerlinsley"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18 || ^19"
|
||||
}
|
||||
},
|
||||
"node_modules/cookie": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
|
||||
"integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/react": {
|
||||
"version": "19.2.4",
|
||||
"resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
|
||||
"integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/react-dom": {
|
||||
"version": "19.2.4",
|
||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",
|
||||
"integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"scheduler": "^0.27.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^19.2.4"
|
||||
}
|
||||
},
|
||||
"node_modules/react-router": {
|
||||
"version": "7.13.0",
|
||||
"resolved": "https://registry.npmjs.org/react-router/-/react-router-7.13.0.tgz",
|
||||
"integrity": "sha512-PZgus8ETambRT17BUm/LL8lX3Of+oiLaPuVTRH3l1eLvSPpKO3AvhAEb5N7ihAFZQrYDqkvvWfFh9p0z9VsjLw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"cookie": "^1.0.1",
|
||||
"set-cookie-parser": "^2.6.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=18",
|
||||
"react-dom": ">=18"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"react-dom": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/react-router-dom": {
|
||||
"version": "7.13.0",
|
||||
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.13.0.tgz",
|
||||
"integrity": "sha512-5CO/l5Yahi2SKC6rGZ+HDEjpjkGaG/ncEP7eWFTvFxbHP8yeeI0PxTDjimtpXYlR3b3i9/WIL4VJttPrESIf2g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"react-router": "7.13.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=18",
|
||||
"react-dom": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/scheduler": {
|
||||
"version": "0.27.0",
|
||||
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
|
||||
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/set-cookie-parser": {
|
||||
"version": "2.7.2",
|
||||
"resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
|
||||
"integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
}
|
||||
6
frontend/package.json
Normal file
6
frontend/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "^5.90.21",
|
||||
"react-router-dom": "^7.13.0"
|
||||
}
|
||||
}
|
||||
0
frontend/resias/README.md
Normal file
0
frontend/resias/README.md
Normal file
23
frontend/resias/eslint.config.js
Normal file
23
frontend/resias/eslint.config.js
Normal file
@@ -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.flat.recommended,
|
||||
reactRefresh.configs.vite,
|
||||
],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2020,
|
||||
globals: globals.browser,
|
||||
},
|
||||
},
|
||||
])
|
||||
13
frontend/resias/index.html
Normal file
13
frontend/resias/index.html
Normal file
@@ -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>my-react-app</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
3269
frontend/resias/package-lock.json
generated
Normal file
3269
frontend/resias/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
30
frontend/resias/package.json
Normal file
30
frontend/resias/package.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "resias-frontend",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@types/node": "^24.10.1",
|
||||
"@types/react": "^19.2.7",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react": "^5.1.1",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.4.24",
|
||||
"globals": "^16.5.0",
|
||||
"typescript": "~5.9.3",
|
||||
"typescript-eslint": "^8.48.0",
|
||||
"vite": "^7.3.1"
|
||||
}
|
||||
}
|
||||
42
frontend/resias/src/App.css
Normal file
42
frontend/resias/src/App.css
Normal file
@@ -0,0 +1,42 @@
|
||||
#root {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
transition: filter 300ms;
|
||||
}
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
.logo.react:hover {
|
||||
filter: drop-shadow(0 0 2em #61dafbaa);
|
||||
}
|
||||
|
||||
@keyframes logo-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
a:nth-of-type(2) .logo {
|
||||
animation: logo-spin infinite 20s linear;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.read-the-docs {
|
||||
color: #888;
|
||||
}
|
||||
18
frontend/resias/src/App.tsx
Normal file
18
frontend/resias/src/App.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Routes, Route, Navigate } from 'react-router-dom';
|
||||
import Home from './pages/Home';
|
||||
import './App.css'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="app-shell">
|
||||
<main className="app-main">
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
<Route path="*" element={<Navigate to="/" replace />} />
|
||||
</Routes>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
68
frontend/resias/src/index.css
Normal file
68
frontend/resias/src/index.css
Normal file
@@ -0,0 +1,68 @@
|
||||
:root {
|
||||
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
||||
line-height: 1.5;
|
||||
font-weight: 400;
|
||||
|
||||
color-scheme: light dark;
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background-color: #242424;
|
||||
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 500;
|
||||
color: #646cff;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
a:hover {
|
||||
color: #535bf2;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3.2em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.6em 1.2em;
|
||||
font-size: 1em;
|
||||
font-weight: 500;
|
||||
font-family: inherit;
|
||||
background-color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.25s;
|
||||
}
|
||||
button:hover {
|
||||
border-color: #646cff;
|
||||
}
|
||||
button:focus,
|
||||
button:focus-visible {
|
||||
outline: 4px auto -webkit-focus-ring-color;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
button {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
15
frontend/resias/src/main.tsx
Normal file
15
frontend/resias/src/main.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<App />
|
||||
</QueryClientProvider>
|
||||
</StrictMode>,
|
||||
)
|
||||
11
frontend/resias/src/pages/Home.tsx
Normal file
11
frontend/resias/src/pages/Home.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
const Home = () => {
|
||||
return (
|
||||
<div>
|
||||
<h1>Home</h1>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Home;
|
||||
28
frontend/resias/tsconfig.app.json
Normal file
28
frontend/resias/tsconfig.app.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
"target": "ES2022",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"types": ["vite/client"],
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
7
frontend/resias/tsconfig.json
Normal file
7
frontend/resias/tsconfig.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.app.json" },
|
||||
{ "path": "./tsconfig.node.json" }
|
||||
]
|
||||
}
|
||||
26
frontend/resias/tsconfig.node.json
Normal file
26
frontend/resias/tsconfig.node.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||
"target": "ES2023",
|
||||
"lib": ["ES2023"],
|
||||
"module": "ESNext",
|
||||
"types": ["node"],
|
||||
"skipLibCheck": true,
|
||||
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"erasableSyntaxOnly": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedSideEffectImports": true
|
||||
},
|
||||
"include": ["vite.config.ts"]
|
||||
}
|
||||
7
frontend/resias/vite.config.ts
Normal file
7
frontend/resias/vite.config.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
})
|
||||
Reference in New Issue
Block a user