-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Levana-Protocol/perp-4037/init-frontend
PERP-4037 | Initialize project
- Loading branch information
Showing
49 changed files
with
8,875 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## Levana Predict Frontend | ||
|
||
This project uses Vite and PNPM. The PNPM version is locked by the Node tool [Corepack](https://github.com/nodejs/corepack). | ||
|
||
### Live sites | ||
|
||
The following domains are hosted on Cloudflare: | ||
|
||
- | ||
- | ||
|
||
### Usage | ||
|
||
#### Enabling Corepack: | ||
|
||
``` | ||
corepack enable pnpm | ||
``` | ||
|
||
> This will automatically install the pnpm version used by the project. | ||
#### Installing dependencies: | ||
|
||
``` | ||
pnpm install | ||
``` | ||
|
||
#### Running the app (on port 3000): | ||
|
||
``` | ||
pnpm dev | ||
``` | ||
|
||
#### Adding dependencies | ||
|
||
``` | ||
pnpm add <pkgs> | ||
``` | ||
|
||
> For dev dependencies, use the `-D` flag. | ||
### Project Structure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!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>Levana Predict</title> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "levana-predict", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc -b && vite build", | ||
"preview": "vite preview", | ||
"install": "graz generate -g -M neutron -T neutrontestnet" | ||
}, | ||
"dependencies": { | ||
"@emotion/react": "^11.13.3", | ||
"@emotion/styled": "^11.13.0", | ||
"@fontsource/inter": "^5.0.20", | ||
"@mui/joy": "5.0.0-beta.48", | ||
"@mui/system": "^6.0.2", | ||
"@tanstack/react-store": "^0.5.5", | ||
"@vitejs/plugin-react": "^4.3.1", | ||
"graz": "^0.1.19", | ||
"jdenticon": "^3.3.0", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-router-dom": "^6.26.1", | ||
"ts-pattern": "^5.3.1", | ||
"vite-plugin-node-polyfills": "^0.22.0", | ||
"vite-tsconfig-paths": "^5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
"@vitejs/plugin-react-swc": "^3.5.0", | ||
"globals": "^15.9.0", | ||
"typescript": "^5.5.3", | ||
"vite": "^5.4.1" | ||
}, | ||
"packageManager": "[email protected]+sha512.f6d863130973207cb7a336d6b439a242a26ac8068077df530d6a86069419853dc1ffe64029ec594a9c505a3a410d19643c870aba6776330f5cfddcf10a9c1617" | ||
} |
Oops, something went wrong.