Skip to content

Commit

Permalink
chore: add ui
Browse files Browse the repository at this point in the history
cjkoepke committed Oct 30, 2024
1 parent 23ec73d commit 0c2e0dd
Showing 8 changed files with 33 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always",
"source.organizeImports": "explicit",
},
"editor.formatOnSave": true, // Disable default formatter if ESLint is handling formatting
}
Binary file modified ui/bun.lockb
Binary file not shown.
5 changes: 5 additions & 0 deletions ui/bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[install.scopes]
"@sundaeswap" = { token = "$NPM_AUTH_TOKEN" }

[test]
root = "./src"
3 changes: 3 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,9 @@
"build": "vite build"
},
"devDependencies": {
"@sundaeswap/prettier-config": "^2.0.13",
"@types/bun": "latest",
"@types/d3": "^7.4.3",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
@@ -18,6 +20,7 @@
"typescript": "^5.0.0"
},
"dependencies": {
"d3": "^7.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
}
1 change: 1 addition & 0 deletions ui/prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { config as default } from "@sundaeswap/prettier-config";
6 changes: 5 additions & 1 deletion ui/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import type { FC } from "react";

import { World } from "./components/World";

export const App: FC = () => {
return <p>Test.</p>
return (
<World />
)
}
8 changes: 5 additions & 3 deletions ui/src/components/World.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import type { FC } from "react";
import { type FC } from "react";

export const World: FC = () => {
return (
return (
<>

)
</>
);
}

0 comments on commit 0c2e0dd

Please sign in to comment.